Skip to content

Own the yaml and ajv packages the workflow checks parse with #18644

Done

Description

@kyle-sexton

Goal

This repository's workflow checks and their tests load yaml and ajv from a package this repository owns, scripts/ci-deps/, instead of from the node_modules of the synced runner-policy copy (.github/standards/runner-policy/). This is the first reader move before that copy is read from a run-time checkout of standards main and then deleted.

Basis

Brief acceptance Q2 of the standards sync track (owner decision D1): CI-only synced files (runner-policy, vocabulary, trusted-actors, dependabot-policy) are read from a run-time checkout of standards main that records its SHA; every reader is repointed, and gating files change expand-then-contract (readers move first, copies are deleted last). This change only moves readers of the copy's node_modules; it deletes nothing, removes no hold path and loosens nothing. runner-policy.mjs itself still runs from the copy (a later PR moves it to the standards checkout).

Done when

  • scripts/ci-deps/package.json and its package-lock.json pin yaml 2.9.1 and ajv 8.20.0, the versions .github/standards/runner-policy/package.json pins today, with engines node >=24.
  • scripts/check-read-caller-keys.mjs, scripts/check-artifact-retention.mjs and scripts/check-workflow-template-size.mjs resolve yaml (and ajv/dist/2020) from scripts/ci-deps, and their not-installed messages name npm ci --prefix scripts/ci-deps.
  • The tests that createRequire the runner-policy package or symlink its node_modules use scripts/ci-deps instead, and their test-scope lines name scripts/ci-deps/package.json.
  • The pr-require-checks.yml gate job installs scripts/ci-deps beside runner-policy and keys its npm cache on both lockfiles; the test legs and maintenance-audit-test-selection.yml install scripts/ci-deps in place of runner-policy and key on its lockfile.
  • scripts/setup-env.sh installs scripts/ci-deps in place of runner-policy, and pr-run-activity-read.yml copies that package's files from the base and its node_modules into the checkout.
  • .github/dependabot.yml has an npm entry for /scripts/ci-deps with the same weekly schedule, 3-day cooldown and minor/patch group as the other npm roots.
  • Docs that name the runner-policy install for these packages (docs/cloud-sessions.md, docs/conventions/pr-pipeline/pr-run-activity.md) name scripts/ci-deps.
  • No file outside .github/standards/ and the gate job's runner-policy step reaches into .github/standards/runner-policy/node_modules.

Activity

  1. added
    session-owned
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions