Repository navigation
feat(guardrails,review,work-items): read the trusted-actor list from standards on opt-in - #18695
Conversation
…standards on opt-in block-unresolved-pr-merge and loosened-check-settings read the list from melodic-software/standards at one resolved main commit when the repository's docs/conventions/source-control.yaml sets trusted_actors_source: standards. The work-items GitHub adapter's status_trust.trusted_actors accepts standards:<path>, and this repository's binding opts in. Without the opt-in every reader keeps the repository's copy. Closes #18693 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9d35e357f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The standards opt-in tests built the commits/main answer and the trusted-actors list by hand. Commit the real responses (captured 2026-11-23, commit `files` array dropped) beside each test and derive every scenario from them: the author or setter id from the captured list, an outsider id past its maximum, a failed commit read from a missing file, a non-commit from a changed sha. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundThis lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. I read every hunk of the 14 files in What changed. The three trusted-actor readers used to resolve the standards repository's
The tests, fixtures and changelog fragments were updated to match. What I checked.
No trust control is widened, no merge hold is weakened, and no token scope or secret is touched. No plugin manifest changed. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #18695 since
|
|
PR body contract — issue linkage This PR body conforms to the issue-linkage contract. Nothing to do. |
… consumer config Shipped plugin content named one organization's repository, which check-org-repo-tokens fails and docs/plugin-philosophy.md puts in consumer config. The guard and the loosened-check reader now take the repository from standards_repository in source-control.yaml (required with trusted_actors_source: standards; missing or malformed fails as an unknown source does). Work-items' status_trust.trusted_actors takes standards:<owner>/<repo>:<path>. This repository's source-control.yaml and work-items.yaml name melodic-software/standards. The merge guard reads the trust source only once the base has pr-verify, so a repository without pr-verify gets no false unchecked notice. The review test for the ignored copy now uses the copy's own human, and the fixture paths are absolute so the suites pass from a relative invocation. The suites declare the fixtures they read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
PR lane (desk): this is over 2 h old and BLOCKED, with the needs-issue-linkage label (last push 05:20Z). Still on it? Reply here with an ETA, or post 'Owner: PR lane may take over' and the desk PR lane finishes it. |
… ref Each P7 reader resolved the standards commit with commits/main, which takes any commit-ish, so a tag named main could stand in for the branch. They now read git/ref/heads/main and take .object.sha, as babysit_merge_policy.py base_tip does. Each test stubs commits/main with a decoy SHA and asserts the reader never calls it and reads the list at the branch's commit. The fixtures are now the captured git/ref/heads/main response with node_id dropped, replacing the commits/main capture whose signature and node ids failed the typos spell-check in Lint Repo. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (52 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Resolve the standards_repository overlap with #18695: one schema property and one config-resolution entry naming both the source-control readers and the guardrails and review readers, and one line in source-control.yaml. Both source-control changelog fragments stay: they describe different readers. 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 #18693
Summary
Three plugin readers (the guardrails merge guard, review's loosened-check settings, the work-items GitHub adapter) read the trusted-actor list from the copy standards syncs into the repository. The copies go away later in the standards track-main plan, so each reader needs to read the list from
melodic-software/standardsfirst. Owner decision row 382 (architecture owner-decisions.md L383): read standards through the contents API at one SHA per process, only for repositories that opt in by config.Fix
block-unresolved-pr-merge.shandloosened-check-settings.mjsreadtrusted_actors_sourcefromdocs/conventions/source-control.yamlat the ref they already read (base, default branch).standardsresolvesrepos/<standards_repository>/commits/mainonce (standards_repository: <owner>/<repo>in the same file; absent or malformed fails like an unknown value) and readscomponents/trusted-actors/trusted-actors.json?ref=<sha>;repositoryor no key reads the copy as before; any other value fails the read (guard: runs unchecked with a warning; review:no reason).status_trust.trusted_actorsalso acceptsstandards:<owner>/<repo>:<path>: one standards SHA and one list read per run, for every item repository. This repository'sdocs/conventions/work-items.yamlopts in; this repository's source-control.yaml setsstandards_repository: melodic-software/standards. The plugin code names no repository (docs/plugin-philosophy.md "Hardcoded consumer specifics",scripts/check-org-repo-tokens.sh).Scope
trusted_actors_sourceschema entry (P6, same key), workflows, and removing the copies or hold paths (P8). This PR does not settrusted_actors_sourcein this repository'ssource-control.yaml.Verification
bash plugins/guardrails/hooks/block-unresolved-pr-merge-b.test.sh: 121 passed, 0 failed (opt-in over GraphQL and REST,repository, no key, unknown value, standards unreadable);block-unresolved-pr-merge.test.sh: 726 passed.bash plugins/review/scripts/loosened-check-settings.test.sh: all 97 checks passed (new case 7c: standards list decides, one SHA resolve, copy ignored, unresolved main,repository, unknown value).bash .../adapters/github/get-statuses.test.shandwork-item-tracker.test.sh: no failures (one SHA and one list read across two repositories, model still per repository, badstandards:path exits 3);shellcheckclean on changed shell files.Related
standards_repositorykey, thestandards:<owner>/<repo>:<path>work-items form and thegit/ref/heads/mainread (pr-verify's 07:38Z verdict).docs/owner-decisions.mdrow 382.trusted_actors_source: standardskey.🤖 Generated with Claude Code