You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R2 surfaced two cascading P1 findings — both sibling-surface drift from R0's
mandate substitution and assessment-criteria tightening that didn't propagate
to all reviewer-facing surfaces.
R2 P1 #1 — adapted prompt still instructed impossible tool-using audits.
The Mandate substitution removed shell-grep claims, but pr_review.md's Rules
section (line 139-142) and Re-review Scope (line 207) still said the
"Mandate above authorizes broader audits (sibling surfaces, pattern-wide
greps, reciprocal checks, transitive deps)". Both reviewers are now
single-shot with no shell access, so these references were misleading and
contradicted the substituted Mandate. Rewrote both bullets to scope audits
to the loaded context and explicitly call out single-shot constraints.
R2 P1 #2 — P2-blocking verdict bar wasn't mirrored across siblings. The
Assessment Criteria now says ✅ requires no unmitigated P0/P1/P2, but three
sibling surfaces still treated P2 as compatible with ✅:
- pr_review.md Re-review Scope (line 211-212): "If all previous P1+ findings
are resolved, the assessment should be ✅ even if new P2/P3 items are
noticed."
- openai_review.py compile_prompt previous-review block (line 1166-1170):
same wording, injected into every re-review prompt.
- ai-review-local.md (line 400-418): "For ⛔ or ⚠️ (P0/P1 findings)" branch
and "For ✅ with P2/P3 findings only" branch.
Updated all three to mirror the new rule: P2 blocks ✅ even on re-review;
the ⚠️ branch covers P0/P1/P2; the ✅ branch covers P3 only.
Tests added:
- TestAdaptReviewCriteria.test_no_tool_using_audit_claims_in_either_mode
(asserts "pattern-wide greps", "Transitive workflow deps", "transitive
deps", "Mandate above authorizes" are absent from adapted prompt in both
ci_mode values)
- TestAdaptReviewCriteria.test_re_review_scope_uses_new_p2_blocking_rule
(asserts old P2-carve-out wording is gone and new "block ✅ just like P1"
wording is present)
- TestCompilePrompt.test_previous_review_block_uses_new_p2_blocking_rule
(asserts compile_prompt's previous-review framing uses "P0/P1/P2 findings
have been addressed" and "no new unmitigated P2 findings exist")
- TestSkillDocAPIConsistency.test_skill_doc_uses_new_p2_blocking_verdict_bar
(asserts ai-review-local.md verdict decision tree uses P0/P1/P2 ⚠️ branch
and P3-only ✅ branch)
189 tests pass (was 185).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments