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
Harden Claude Code review posture for more critical pushback (#1357)
* fix: harden Claude Code review posture for more critical pushback
Replace the "validation step in partnership" framing with adversarial
"last line of defense" posture. Remove emotional pressure against
REQUEST_CHANGES ("frustrates authors") and add the 2am test heuristic.
Add explicit MUST FIX threshold guidance so correctness findings are
not systematically downgraded to Suggestion.
Evidence: across 8 recent PRs, Claude used REQUEST_CHANGES 0% and
labeled 19/19 inline comments as Suggestion, including privilege
escalation and plaintext secret logging findings.
* fix: add secondary hardening edits for deeper critical coverage
- Tighten Go linting delegation: flag domain-level consequences
(data corruption, tenant isolation) even when they look like Go issues
- Match review depth to risk, not change size: small migrations need
more scrutiny than large test files
- Expand incremental development guardrail: flag incomplete contracts
and expensive-to-change design choices even in scoped PRs
- Add adversarial thinking checklist: failure paths, undescribed
changes, regression analysis, test validity checks
* fix: soften absolute phrasing to avoid incentivizing manufactured findings
Replace "you probably didn't look hard enough" with a directive to
double-check edge cases and failure modes. Keeps the pressure to be
thorough without rewarding fabricated concerns.
* fix: remove residual "Use sparingly" that contradicts 2am test heuristic
The decision criteria section still contained "Use sparingly - this
blocks the merge" which conflicts with the 2am test added below.
Replace with a forward reference to the 2am test and add "correctness"
to the table's REQUEST_CHANGES column.
---------
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
0 commit comments