Repository navigation
ci(pr-pipeline): read ci-status's trusted-actor list from the run's standards commit - #18712
Conversation
…tandards commit select-tests resolves one melodic-software/standards commit per run and passes it through needs. ci-status checks it out before its hold steps, and each step that reads the trusted-actor list takes components/trusted-actors/trusted-actors.json from it through a new gh-read.sh helper, trusted_list, falling back to the hold config's synced copy when the checkout is absent. lint-repo checks out the same commit for the gitleaks, lychee and editorconfig composites (standards-ref) and for run-zizmor.sh and check-changed-links-online.sh (STANDARDS_DIR), which now fall back to that checkout's configs. 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. |
…ta output Lint Repo's docs-only-contract and lane-coverage gates failed on the new standards steps: - check-docs-only-gate.sh now names `standards_sha` in its data table, and lint-repo and ci-status read it whole as a job-level env entry (STANDARDS_COMMIT), the one sanctioned data form; the steps take `env.STANDARDS_COMMIT || 'main'`. - Check 5c (no job-level condition on a required consumer) now applies to jobs that read the resolver other than as a data value: an empty data value means its default, so the aggregate's `!cancelled()` has no empty state to misread. Two cases pin both sides. - The three `standards` steps are listed in lane-coverage-step-opt-outs.txt with their fall-through reasons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: PR #18712 (head 74b62a6)No security issues found. This was a blocking-only review, because this lane already reviewed head Trust-control check (where
Throughput-phase note. Changes to standards' trusted-actor list now reach the Spend. The change adds one critical-findings: 0 |
|
claude-review reviewed CI code review: PR #18712 (blocking only)This PR moves where
An earlier head was already reviewed ( Coverage. I read every hunk of all 9 changed files in the full diff. I also read the unchanged code each change touches:
I ran no tests. The Verification section's results are claimed by the author and I have not confirmed them. Earlier finding. The earlier inline finding (stale safety comments) is fixed at this head:
Closing issue #18709, Done when:
Loosened checks. The wrapper wrote no
Loosened checks would be marked: fail (default; no wrapper verdict line); patterns: 0 Spend. The Verifier dropped 0 of 0 candidates. |
|
The pr-verify verifier failed head What it wrote (41 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…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]>
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
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 #18709
Summary
CI Statusreads the trusted-actor list from melodic-software/standards at the run's one commit instead of the synced.github/standards/trusted-actors/copy, and lint-repo's configs that fall back to standards read that same commit. The copy stays as the fallback when the standards checkout is absent (expand-then-contract; deleting it is a later piece). Basis: standards sync track Brief Q2, owner answer verbatim "yes; gating files (runner-policy, trusted-actors) change expand-then-contract".Fix
select-testsresolves the standards commit once (download-standards,checkout: 'false') and outputsstandards_sha; later jobs receive it throughneeds.ci-statuschecks out that commit (main when select-tests skipped, as on a label flip) right after the hold config checkout. A newgh-read.shhelper,trusted_list, names$STANDARDS_DIR/components/trusted-actors/trusted-actors.json, else the hold config's copy; the six steps that read the list (cost hold, review-lane hold lift, queued hold label, queued author, lanes App hold, review-lane wait) getSTANDARDS_DIRand read through it. No pull request code runs inci-status, so nothing can rewrite the checkout before those reads.exempt_author_idscomment names the standards list.lint-repochecks out the same commit; gitleaks, lychee-offline and editorconfig-checker getstandards-ref, andscripts/run-zizmor.shandscripts/check-changed-links-online.shgetSTANDARDS_DIR. run-zizmor reads the checkout's.github/zizmor.ymlwhen the base commit has none (before its API read at no ref); the links check uses the checkout'slychee.tomlwhen this repository has none andLYCHEE_CONFIGis unset.lint-repokeeps this one standards step: the runner-policy checkout ci(pr-pipeline): run the runner-policy gate from the standards checkout #18715 added to the same job is removed, and its install and policy steps read the samesteps.standards.outputs.path.Not changed: the sparse-checkout entries for the copy, the hold path on it, and the verdict reader's own read (
babysit_verify_evidence.py, a separate piece).Verification
ci-gh-read,ci-hold-cost-decision,ci-hold-human-gated,ci-hold-lifted-by(new: the standards list wins over the copy; a standards checkout with no list fails closed; the step carriesSTANDARDS_DIR),ci-hold-merge-group,ci-lanes-pr-hold,ci-review-lanes,ci-queued-pr,ci-early-queue-holds,run-zizmor(new: checkout fallback, base config still wins, missing file fails closed),check-changed-links-online(new: checkout fallback,LYCHEE_CONFIGand the repository's own file win).node --testonci-status-hold-ref,pr-merge/workflow,resolve-config/callersandci-workflows-at-pintests;actionlintand offlinezizmoron the workflow; the runner policy,check-read-caller-keys,check-artifact-retentionandcheck-workflow-template-sizewith--check;shellcheckon the changed scripts.actionlint,check-docs-only-gate.sh --checkandcheck-lane-coverage.sh --checkpass.Loosened checks
Both are ordinary checks. Spec #18709's
## Loosened checksnames them under owner decision D4 (owner-decisions.md row L349; owner, verbatim: "Sure, let's go with recommendations.").scripts/check-docs-only-gate.shcheck 5c ("NO JOB-LEVEL CONDITION ON A REQUIRED CONSUMER") now applies only to jobs that read a resolver output as something other than a whole data value. Before, any required consumer that read anyselect-testsoutput and keptif: ${{ !cancelled() }}failed. Why:ci-statusnow readsstandards_sha, a data row, and the gate's property 10 already requires an empty data value to mean its default (heremain), so a skipped or cancelledselect-testsleavesci-statusreadingmainrather than misreading an empty plan. A gated consumer that reads the plan with!cancelled()is still rejected (new test case incheck-docs-only-gate.test.sh).scripts/lane-coverage-step-opt-outs.txtaddsselect-tests/standards,lint-repo/standardsandci-status/standards: thosecontinue-on-errordownload steps fall through to the synced copy (ormain) on failure by design, so no feed row reads them.Related
STANDARDS_DIRreaders this uses, P1 (build(ci): own the yaml and ajv packages the workflow checks use #18645) also edits this workflow, P2 (ci(pr-pipeline): run the runner-policy gate from the standards checkout #18715) merged first.🤖 Generated with Claude Code