Repository navigation
fix(pr-pipeline): fail closed when the standards trusted-actor list is unavailable - #18845
Conversation
…s unavailable Once standards stops syncing trusted-actors (standards#1127, F1), each repository's .github/standards/trusted-actors copy freezes, and a reader that falls back to it could keep a revoked actor trusted. Every lane reader now reads the standards checkout, or a path the workflow passes under it, and fails closed without one: - trustedListPath throws with neither; no caller defaults to the .base copy, the same-tree copy or trustedActorsPath any more. - read-status loadTrustedActors no longer reads the BASE_PATH copy. - resolve-config without a standards checkout loads no trusted-actor list (the vocabulary keeps its fallback: it is not trust-bearing). - check-born-triaged, check-trusted-trigger and select-trusted-text drop the trusted-actors-path input, whose default was the .base copy. - ci-status's trusted_list no longer reads the hold config's copy. The hold harnesses and node tests read a standards stub, and each gains a case that fails on the old fallback: no standards checkout beside a valid copy now fails closed. Closes #18841 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 Security review: incremental since 5546ea0No security issues found. This was a blocking-only review, since this lane already reviewed an earlier head. I read every hunk of all 3 files in the incremental diff.
No trust control is widened, no token scope changes, and no new path lets untrusted text in. The changed hold step still fails closed in every branch I read. critical-findings: 0 |
|
claude-review reviewed Code review: incremental since
|
|
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=18845 -f activity=address-feedback |
…be read ci-status's lanes-hold step blamed the hold config for any failure to read merge.agent-identity's trusted-actor id, though the id now comes only from the standards checkout. Split the check so each source gets its own error, and fix the verify-authors message the same way. The hold harness asserts both full messages. Add a resolve-config test that, with no standards checkout, a Work status set by a human the base's synced copy lists is not trusted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 0, survived 1, timeout 0, no coverage 0, invalid 0, not run 6.
Surviving mutants
The run's summary has the full report. |
Closes #18841
Summary
Once standards stops syncing trusted-actors (standards#1127, F1), each repository's
.github/standards/trusted-actors/trusted-actors.jsonbecomes a frozen copy. A reader that falls back to it when the standards list is unavailable could keep a revoked actor trusted until F2 deletes the copy. This makes every lane reader fail closed instead: it errors, or trusts no one, and never reads the copy. Readers move before the sync stops (R5), so this lands before #1127.Fix
.github/scripts/lib/trusted-actors.mjstrustedListPath(env, given): reads the standards checkout (STANDARDS_DIR), elsegiven, a path the workflow passes under that checkout. With neither it throws. No caller defaults to the copy any more:trustedActorsPath(),SAME_TREE_LISTand the.basedefaults are gone fromclear-escalations,enable-auto-merge,release-eval-hold,address-feedback,dispatch,feedback-dispatch,fix-ci-context,gate-sourceandrefine-event-dispatch.resolve-config/read-status.mjsloadTrustedActors: readsSTANDARDS_DIR, elseTRUSTED_ACTORS_PATH, and never theBASE_PATHcopy.resolve-config/resolve-config.mjsstandardsFiles: with no standards checkout, loads no trusted-actor list, so no field setter is trusted. The vocabulary keeps its base fallback because it grants no trust.check-born-triaged,check-trusted-triggerandselect-trusted-text: drop thetrusted-actors-pathinput, whose default was the.basecopy. Every caller already passesstandards-path.pr-require-checks.ymlci-statustrusted_list: no$BASE_CONFIGcopy fallback, so the hold and merge-group steps fail closed without the standards checkout. Theci-status/standardsopt-out note now says so.pr-verify/probe/replay.mjs, a local probe harness and not a gate, keeps its same-tree list when noSTANDARDS_DIRis set.Not changed, on purpose:
babysit-prs,check-ready-holds.sh, the guardrails merge guard, the review loosened-check reader) read whichever listtrusted_actors_sourceconfigures. They do not fall back on failure, and withstandardsset, as this repository sets it, a failed read already errors.Verification
.githubnode suite (node --test --test-concurrency=4 '.github/**/*.test.mjs'): 10,555 pass, 0 fail.origin/mainand pass here:trusted-actors.test.mjs:trustedListPaththrows with noSTANDARDS_DIRand no given path.read-statusnever reads theBASE_PATHcopy.gate-sourcetrusts no one without standards even when its same-tree copy lists a person.write-status.test.mjs: with no standards checkout, a status writer over the base's copy reads no list.ci-hold-lifted-by,ci-hold-merge-group,ci-hold-cost-decisionandci-review-lanes: withSTANDARDS_DIRempty and a valid copy in the hold config, each step now fails closed or keeps the hold. Onorigin/maineach lifted or cleared the hold from the copy.ci-lanes-pr-hold: the same no-standards case.ci-hold-lifted-by82,ci-hold-merge-group91,ci-hold-cost-decision211,ci-review-lanes351,ci-lanes-pr-hold359.ci-rerun-ci-status,ci-hold-human-gatedandwrite-runner-never-rulesare unchanged and pass.STANDARDS_DIR(the sharedstandardsCheckout()fixture, which now also carries the vocabulary).clear-escalationsresolves the list path insidetrustedIds, so with no standards checkout it still logs "no stop clears on a trusted move" and does not fail the run.review-venue.sh), so no local AI review ran..githubandscripts/ci-*, because this change touches none of their code.Related
PRRT_kwDOTBL9Bc67dTlI.🤖 Generated with Claude Code