Repository navigation
feat(review): require the owner's decision to pass a loosened check - #17203
Conversation
A trusted spec's reason no longer clears a loosened check on its own, because sessions post under the owner's GitHub login. The spec must also cite the owner's decision: a line link to its row in the owner-decisions record and the owner's words after `verbatim:`. - The criterion's three pass conditions and its finding text state this. - /review:code-review never drops a loosened-check finding as settled by a thread, and a verifier never rejects one on that ground. - The pr-verify Safety step and the pipeline README state the same condition. - The reasoned eval cases carry the citation, and a new case flags a trusted, reasoned spec that has none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eeds-owner-decision
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: f0587f03a5
ℹ️ 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".
|
claude-security-review reviewed Security review: PR #17203 (incremental, 9e7bb41 → c68e8f1)No security issues found. I found nothing to report in this push. This review covers only what changed since 9e7bb41. Because this lane already reviewed an earlier head, it reported blocking findings only. I read the whole change in What changed
Why there is no finding
critical-findings: 0 |
|
claude-review reviewed Code review: PR #17203, incremental since
|
|
Held: a review finding about the shipped rule naming this organization's private decision record needs the owner's design decision. |
|
The pr-verify verifier failed head What it wrote (29 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
The review plugin named one organization's private record. A repository now names its own in loosened_check_decision_record, an https URL prefix read from the default branch, with no user option. Set, a loosening, a removed check or a flaky-test quarantine also needs a line link under that prefix and the owner's verbatim words. Unset, a spec that names the check and gives the reason passes. When the value cannot be known, the citation counts as unmet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fragment said this repository's reviewers ask for the citation, but the CI code-review lane receives no decision-record line and reports the requirement as not checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A key present on the default branch with an invalid value resolved unset, so a merged typo switched the citation requirement off. Only an absent key now resolves unset; an invalid value resolves unreadable with a WARN, and the citation counts as unmet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The hold has ended: the owner chose an optional repository setting for the decision record on 2026-11-18, and head c68e8f1 implements it. |
No related issue: the owner set this rule directly in a session, and no tracked issue carries it.
Summary
A repository can now require a spec to cite the owner's decision before a loosened check passes
review. The review plugin names no organization's record: the new optional
loosened_check_decision_recordkey indocs/conventions/review.yamlholds the record's https URLprefix. This repository sets it, so
/review:quality-gate,/review:fanoutand thecode-revieweragent ask for the citation here, and
pr-verifyasks for it through its own prompt. The/review:code-reviewCI lane does not enforce it yet: no wrapper writes the setting's line into itsprompt, so the lane says in its summary that the citation requirement was not checked.
loosened_check_decision_record:valueverbatim:in double quotesunset(the key is absent)maintodayunreadable(the value is invalid or could not be read)The key has only the repository layer, with no user option, and is read from the default branch's
committed copy. A person's settings cannot switch it off and a pull request cannot change it for its
own review.
Fix
plugins/review/scripts/loosened-check-settings.mjs: prints aloosened_check_decision_record:line with its layer. Only an absent key prints
unset. It printsunreadableand a WARN with no--ref, an unreadable default branch, a committed file that does not parse, or a key present withan invalid value, so a merged typo cannot switch the citation off.
plugins/review/schemas/review.schema.json,plugins/review/reference/config.md,plugins/review/README.mdandplugins/review/skills/setup/SKILL.md: define the key.plugins/review/skills/quality-gate/context/loosened-check.md: states the rule in terms of theconfigured record. A finding asks for the change to be undone or for the spec to supply what it
lacks, never for an issue to be linked or filed.
plugins/review/skills/code-review/SKILL.md: a thread's answer or resolution never settles aloosened-check finding. This lane runs no settings script, so without the line it asks for no
citation and says in its summary that the requirement was not checked.
plugins/review/workflows/fanout-sweep.js,plugins/review/agents/code-reviewer.mdand thequality-gate and fanout skill files carry the new line to reviewers. The workflow rebuilds a
missing, repeated or malformed line as
unreadable.plugins/review/skills/security-review/SKILL.md: drops an organization-specific basis sentence,with no rule changed.
.github/scripts/pr-verify/prompt.mdanddocs/conventions/pr-pipeline/README.md: thisrepository's own pipeline asks for the same citation.
code-reviewer-loosening-spec-no-record-configuredcase covers a trusted, reasoned spec with norecord configured.
reviewandpr-pipeline.Verification
node --test --test-concurrency=4 plugins/review/tests/fanout-sweep.test.mjs: 53 passed, 0 failed.plugins/review/scripts/loosened-check-settings.test.sh: 90 of 90 checks passed.plugins/review/skills/setup/scripts/setup-apply.test.sh: 436 of 436 checks passed.plugins/review/tests/turn-budget.test.sh: all assertions passed.Static eval validation: 0 FAIL.
Judge calibration with opus for the new case's
no-loosening-findinggrader: 15 of 15 runs agreedwith the labeled samples.
claude plugin eval, 3 runs per arm with a no-plugin baseline, one case per run, judged by opus.Each run is VALID, with one warning that no skill-fired grader applies to these agent-dispatch
cases. The noise report reads
n too small to callfor each, because one case is below the 3comparable cases it needs, so no measured gain is established and the result is
do not promoteon that measure. The scores show the cases behave as written:
code-reviewer-loosening-spec-no-record-configuredcode-reviewer-loosening-spec-requestedcode-reviewer-quarantine-flaky-test-reasonedcode-reviewer-loosening-spec-no-owner-citationcode-reviewer-loosening-spec-untrusted-authorWhat a lane cannot enforce: the record may be private, so a review or verifier checks only that the
line link and the
verbatim:words are present. It cannot prove that the row exists, that thequoted words match it, or who wrote it.
pr-verifyreads its prompt from the base branch, so its new condition applies to pull requestsjudged after this one merges. The prompt change was not replayed against a live model.
Related
this change tightens.
🤖 Generated with Claude Code