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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
|
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 <noreply@anthropic.com>
|
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 <noreply@anthropic.com>
|
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 |
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