Repository navigation
ci(pr-pipeline): run the runner-policy gate from the standards checkout - #18715
Conversation
The lint-repo job checks out the run's melodic-software/standards commit with download-standards and installs and runs components/runner-policy from it instead of the synced .github/standards/runner-policy copy. The npm cache key drops the copy's lockfile: hashFiles reads only the workspace, and the engine's pins match scripts/ci-deps'. runner_policy_paths and docs/ci-runner-routing.md point at the standards component. The copy stays until the deletion PR. Closes #18713 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: no findingsThe Closing issue #18713, "Done when" items:
Other checks:
Not applicable:
Spend: none. The added step is one download in a job that already runs. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #18715, run the runner-policy gate from the standards checkoutNo security issues found. What I checked
PR context: it contains no embedded instructions aimed at the lane. Spend: one extra standards download and critical-findings: 0 |
|
The unattended merge path is about to ask GitHub to enqueue this pull request at head |
…le list comments After merging main, lint-repo had two `id: standards` steps: this PR's run-SHA checkout and the runner-policy one from #18715. Keep the run-SHA step; the runner-policy install and policy steps read the same `steps.standards.outputs.path`. Update the ci-status comments that still said the job reads no resolver output and that the trusted-actor list comes from the base commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No linked issue: resync from ccp fbaa789 ## Summary Brings every `scripts/lanes/check-sync.sh` SYNCED path to claude-code-plugins main at `fbaa789fc3d4dd4c13b94d46841a11926b928733`, from `ac4f20988f97481085e38d05d563ccc00a2bc888`, the source of #406. The source carries the D2 pull requests (melodic-software/claude-code-plugins#18649, melodic-software/claude-code-plugins#18715, melodic-software/claude-code-plugins#18719, melodic-software/claude-code-plugins#18712, melodic-software/claude-code-plugins#18695, melodic-software/claude-code-plugins#18697), which repoint the lane files to read trusted-actors, vocabulary, runner-policy and the Dependabot policy from a standards-main checkout instead of the synced `.github/standards/` copies. This one is large: 821 files (816 byte copies, 5 sandbox-own files), against #406's 46. Expect both review lanes to report `failure-class=partial`. Upstream also switched its ci-workflows references from SHA pins (#406: 141 on v0.78.0) to `@main` throughout the synced workflows; the copy carries that change as is. ## Fix - SYNCED, byte copy from `fbaa789f` with the ADAPTED, LEFT_OUT and PINNED paths excluded: 91 added, 15 deleted, 707 modified, 3 renamed (`babysit_risk*.py` to `diff_risk*.py`). Deleted upstream: the local actions `scan-upload`, `setup-pinned-node` and `upload-lane-transcript`, `.github/scripts/pr-review-main/split-diff.py` and `plugins/discovery/scripts/check-hook-registration.test.sh`. - The copy drops the stale repin literal `[".github/workflows/maintenance-repin-ci-workflows.yml", "gate"]` from `.github/scripts/pr-merge/merge-holds.mjs` (line 492 on main). - ADAPTED and PINNED: no edit. `.github/standards/` is untouched; phase F removes it. Sandbox-own edits, each mirroring claude-code-plugins at `fbaa789f`: 1. `.github/workflows/pr-require-checks.yml`: the merge-queue Set up Node step uses `melodic-software/ci-workflows/.github/actions/setup-pinned-node@main`, and `/.github/actions/setup-pinned-node/` leaves its sparse checkout, as claude-code-plugins' own `pr-require-checks.yml` does. The local action it used is gone upstream, so without this every merge-queue run fails. 2. `scripts/lanes/check-sync.sh`: four paths join SYNCED under the existing "Modules the synced scripts and tests import from outside those folders" rule, since copied code now reads them: - `.github/scripts/pr-dispatch-feedback/rerun-ci-status.sh`, which `pr-dispatch-feedback.yml` runs. - `.github/scripts/intake-triage/size-split.mjs` and `issue-spec.mjs`, imported by `admit.mjs`, `work-resolve-issue/check-blockers.mjs`, `write-issue.mjs` and `pr-verify/resolve-pr.mjs`. - `.github/lane-registry.json`, read when `lib/lane-registry.mjs` loads (imported by `pr-merge/refire-refused.mjs`). 3. `docs/conventions/source-control.yaml`: adds `trusted_actors_source: standards` and `standards_repository: melodic-software/standards`, as claude-code-plugins' file sets them. 4. Lint config for the copied files, taken from claude-code-plugins' own configs: `.shellcheckrc` with its `shell=bash`, `external-sources=true` and `source-path=SCRIPTDIR` lines (shellcheck follows sourced files, which clears the SC2034 and SC2154 warnings on the copied `check-hook-registration.sh`, `fetch-docs.sh` and `provision-prerequisites.test.sh`), and `_typos.toml` with its `abd` identifier, which `.github/scripts/lib/gate-expression.test.mjs` uses. No check is disabled. ## Verification - `scripts/lanes/check-sync.sh fbaa789fc3d4dd4c13b94d46841a11926b928733 --repo <claude-code-plugins clone>` exits 1 with only the four PINNED lines, as in #406: ```text check-sync: .github/standards/dependabot-policy/policy.json differs from add8219a557d432d9f4dbd1cac98b0e8a2114b10 (100644 0763ab8, want 100644 a3fa7c3) check-sync: .github/standards/runner-policy/package-lock.json differs from 4ac70b2c402920d9c42b9a9f00e86c14d7f785ea (100644 d84d4e7, want 100644 53bb20a) check-sync: .github/standards/runner-policy/policy.json differs from 9329c4cd64765267e43aef0ceef58c40961cd676 (100644 0eec702, want 100644 b8c22e8) check-sync: .github/standards/runner-policy/runner-policy.mjs differs from c277271481af37c9761bcf802a3bc692540bb53a (100755 4d632ca, want 100755 105e36d) ``` - Local paths the workflows name (`.base/...`, `./.github/...`): none newly missing. Three were already missing on main and stay so: `.base/.github/verify-legacy-fails.json` in `pr-dispatch-feedback.yml`, `pr-merge.yml` and `pr-unblock-dispatch.yml`, and `.base/lib/cdn-pins`, read behind an `[ -f ]` guard. - Relative imports and `new URL(..., import.meta.url)` targets in every non-test `.github/**/*.mjs`: all resolve but two, both read guarded or already on main (`scripts/upstream-drift-vendored-report.sh` inside a try/catch, `docs/upstream/` in `resolve-pr.mjs`). - `actionlint` over the 9 changed workflows: no findings. - `node --test --test-concurrency=4` over the 90 changed `.github/scripts/**/*.test.mjs`: 2795 tests, 2709 pass, 84 fail. The failures read workflows, scripts or packages this repository does not carry or install here (`ajv`, `yaml`, `scripts/selection-audit.sh`, `scripts/affected-tests.sh`, `scripts/plan-test-lanes.sh`, `security-outside-actor/flag.mjs`, `pr-review-comment-relay.yml`, `intake-triage.yml` and others), plus two that test this repository's own `pr-require-checks.yml` concurrency groups. Not compared against main, since most of these files are new. `merge-holds.test.mjs` alone: 77 of 78 pass; the one failure imports `security-outside-actor/flag.mjs`. No workflow here runs `node --test`. - Pre-commit and pre-push hooks pass, none skipped. Added lines scanned for machine paths and secrets: none. Not verified: no lane run has exercised this head here. ## Related - Previous resyncs: #406, #403 and #402. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
The
ci-statusgate job (lint-repo) runs the runner-policy engine from a run-time checkout ofmelodic-software/standardsinstead of the synced.github/standards/runner-policy/copy. This is the second reader move of the standards sync track (Brief Q2: synced CI-only files are read from a run-time standards checkout; readers move first, copies are deleted last), after #18645.Fix
.github/workflows/pr-require-checks.yml,lint-repo: a newCheck out the run's standards commitstep (melodic-software/ci-workflows/.github/actions/download-standards@main, idstandards, gated onrun_workflowslike the other runner-policy steps). The install step runsnpm ci --prefix "$STANDARDS_DIR/components/runner-policy"and the policy step runsnode "$STANDARDS_DIR/components/runner-policy/runner-policy.mjs" --root ., withSTANDARDS_DIRset fromsteps.standards.outputs.pathon those two steps only..github/standards/runner-policy/package-lock.json.hashFilesreads only the workspace, so the standards lockfile cannot be in the key; the engine pinsyaml2.9.1 andajv8.20.0, the same asscripts/ci-deps, whose lockfile stays in the key. Nosetup-nodecache option names a file under the standards checkout.docs/conventions/source-control.yamlrunner_policy_paths: drops the copy'spolicy.json; babysit routes a runner-label finding todocs/ci-runner-routing.md, which now namescomponents/runner-policy/policy.jsonin standards. That paragraph also stops claiming ci-workflows reusables are SHA-pinned: every call is@main, which the engine admits for ci-workflows (runner-policy.mjsreusableWorkflowContract).Not changed: the
.github/standards/runner-policy/copy, its Dependabot entry and CODEOWNERS lines (the deletion PR removes them), and every other step of the workflow.Verification
melodic-software/standardsmain and itspolicy.jsonare byte-identical to the copy (diffof both files).node <standards>/components/runner-policy/runner-policy.mjs --root . --repository-visibility publicafternpm ci --prefix <standards>/components/runner-policy:Runner policy passed.actionlintandzizmor --offlineonpr-require-checks.yml: no findings.check-docs-only-gate,merge-group-scope,ci-ordered-skips,check-affected-gates,check-comment-hygiene,workflow-self-paths,check-lane-coverage,run-hygiene-gatetest suites;check-workflow-template-size,check-read-caller-keys,check-artifact-retentionwith--check;check-changelog-fragments.sh --check-required origin/main(no fragment-mode plugin changed).Related
select-testsand its own standards checkout inlint-repo; when both are on main, thelint-repojob keeps onestandardsstep that passes that SHA asref.Closes #18713
🤖 Generated with Claude Code