Repository navigation
ci: read the trusted list and policies from a standards checkout in workflows - #18719
Conversation
…orkflows Each workflow job that reads the trusted-actor list, the Actions vocabulary or the Dependabot policy now checks out melodic-software/standards with download-standards right after its .base checkout and reads the components/ files from it. The first reading job of a run resolves main and passes its commit to later jobs through needs, so a run reads one commit. The synced .github/standards copies stay until the contract change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-security-review reviewed Chunk 1 of 2 (40 files)Security review, chunk 1 of 2 (40 files): blocking onlyI found no security issues in this chunk. This lane already reviewed an earlier head, so the review looked for CRITICAL and IMPORTANT findings only. What changed
Trust controls checked
Throughput-phase noteThe trusted-actor list and the policies take effect from SpendEach reading job adds one Not coveredActions hardening for the unpinned Chunk 2 of 2 (10 files)Security review, chunk 2 of 2 (blocking only)I found no security issues in this chunk. This lane already reviewed an earlier head of this PR, so this review reports only CRITICAL and IMPORTANT findings. None came up. What I readI read every hunk of the 10 files in this chunk:
Trust controls checked
Note (not a finding)This PR moves the trusted-actor list, a trust root, from this repository's synced SpendThe new steps run one extra standards download per reading job, on GitHub-hosted runner minutes the jobs already use. There is no new paid resource. critical-findings: 0 |
|
claude-review reviewed Chunk 1 of 2 (40 files)Code review: chunk 1 of 2, blocking onlyThis lane already reviewed two earlier heads of this pull request (prior findings: No blocking findings. What I checked against the closing issue's "Done when" list and the workflow graph:
Not re-checked here. The earlier advisory still stands: nothing tests that the standards step comes right after the Loosened checks. The prompt has no Spend. Each affected job adds one standards download per run, using Actions minutes on the existing runners. Nothing here can start a new charge. I ran no commands. The PR's verification (actionlint, zizmor, Verifier dropped 0 of 0 candidates. Chunk 2 of 2 (10 files)Code review, chunk 2 of 2 (blocking only)This lane already reviewed an earlier head of this pull request, so this pass looked only for blocking problems. I read every hunk of all 10 files in this chunk:
No blocking findings. Here is what I checked against the head files. The one standards commit reaches each job. Every
Each source job exports Credential-leg generators match the generated workflows.
Reader env. The Tests.
I ran nothing. The PR's verification (actionlint, zizmor, Carried-over advisory. The earlier summary finding still stands: no test fails if the Spend. Each affected job gets one extra Loosened checks. The prompt has no Embedded text. I found no embedded instructions in the PR context or the prior-findings file. Verifier dropped 0 of 0 candidates. critical-findings: 0 |
at() returns -1 when no step has id standards, so the ordering check passed with the step missing. Bind the index and require it to be found. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18719 -f activity=resolve-conflicts |
…ndards-sha Main's #18745 moved the recent-pass step back after the pacer and dropped its follow-up path; keep that, and keep this branch's standards reads on the find and reconcile steps. recent-pass.mjs reads no trusted list, so its step needs no STANDARDS_DIR. 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]>
Closes #18717
Summary
The workflow half of the standards reader move (D2 P4). Every workflow job that reads the trusted-actor list, the Actions vocabulary or the Dependabot policy now reads it from a run-time checkout of
melodic-software/standards, at one commit per run where the job graph allows. Before this, they read the synced.base/.github/standards/copy. The copies stay until the contract change. #18649 taught the libraries and actions to take a standards checkout, and this PR passes it to them.Out of scope:
pr-require-checks.yml, the syncedpr-check-managed-files-hosted.yml, the plugin scripts that run on user machines, and removing any copy or hold path.Fix
melodic-software/ci-workflows/.github/actions/download-standards@main(idstandards) runs right after the.basecheckout and before any head code, under that checkout'sif:andcontinue-on-error. The job's reads then point at the checkout:TRUSTED_ACTORS_PATH,TRUSTED_ACTORS,LISTandDEPENDABOT_POLICYname${{ steps.standards.outputs.path }}/components/....resolve-config,check-trusted-trigger,select-trusted-text,check-born-triagedandcheck-wip-capgetstandards-path, which replacestrusted-actors-path.STANDARDS_DIR.mainand exportsstandards-sha. Later jobs pass it asrefthroughneeds, and intermediate jobs forward it where needed. The gatescheck-dispatcher-current(pr-unblock),check-range(post-merge-test-mutation) anddispatch-post-merge-runs(pr-merge) only resolve it (checkout: 'false'). An empty SHA (source job skipped) falls back tomain(download-standardsresolve.sh,${STANDARDS_REF:-main}). The commit comes only from a step that ran before any head code, the same class asbase-sha(pr-run-activity-read.yml, the run job'soutputs:comment).generate-reuse-summarytakes it throughcheck-issue-fields, never the run job.scripts/credential-legs/{pr-verify,pr-rate-merge-risk,pr-review-main,maintenance-audit-lane-runs}.mjsmap therefeach leg can see and drop outputs that nothing reads.post-merge-file-demotion-issues.ymlchecks the sender against the checkout's list. It used to read this repository's copy through the contents API.pr-merge.ymlcandidate listing and thepr-run-activity-write.ymlreply-actors copy read$TRUSTED_ACTORS_PATH.STANDARDS_DIR:declare-test-scope.mjs,post-merge-demotion-alert/{merge-path,report}.mjs,branch-cleanup/cleanup.mjs,pr-refine/write-pass-plan.mjsandcheck-wip-cap.mjs.check-wip-capgets astandards-pathinput..github/scripts/lib/trusted-actors.fixtures.mjslays out a standards checkout for the tests that run step scripts.Basis: Brief acceptance Q2 of the standards sync track. Owner's words: "yes; gating files (runner-policy, trusted-actors) change expand-then-contract". The one-commit rule follows ci-workflows
download-standards/action.yml:7-9.Hold
This PR changes hold-floor paths: the lane workflows,
resolve-configcallers, andpr-mergeandpr-unblockscripts.CI Statusholds it for a listed human's approving review. The lane workflows are broker trust roots, so every lane switches at merge.Verification
actionlintandzizmor --offlineon the changed workflows: no findings.node scripts/sync-credential-legs.mjs --checkandscripts/sync-hold-floor.py --checkpass.check-workflow-template-size.mjs --checkpasses: pr-unblock is 390102 bytes under the fail line.node --testover the 134 node test files that name a changed file: all pass, except twoplugins/knowledge/skills/course-digest/extraction/cli-*.test.jsfiles. Those two fail the same way onorigin/main.origin/main, the transform was rerun from main's workflows. It matched the merge except for two reader steps main had added, which this PR now covers.Related
🤖 Generated with Claude Code