Repository navigation
Description
Background
Postmortem #2125 on PR #2105 found the in-pipeline BRC reviewers (reviewer_code fan-out + reviewer_security / reviewer_concurrency lenses) signed off at full ACK consensus while the GHA egg-reviewer then posted 14 blocking findings. Several blockers were architectural defects no slice owned — the canonical example is the __checkout__ synthetic-key dead-end that broke the PR's primary advertised use case end-to-end.
Single-pass reviewer_code is the same machinery the in-pipeline review replaced with fan-out + slice subagents in #2061. It caught 14/14 blockers the new system missed. That's evidence the holistic role still has unique value: slice-by-slice subagents with a fixed cross-partition checklist don't have a home for "step back, read the whole diff, ask 'does the primary use case actually work end-to-end?'"
Proposal
Add a distinct role (e.g. reviewer_code_holistic) that always runs single-pass against the whole diff, alongside fan-out + lenses. Both reviewers feed consensus as distinct CRITICAL roles — distinct roles keep their NACKs from being averaged together (a holistic NACK on architectural coherence shouldn't be drowned out by 6 subagent ACKs on slice-correctness, and vice versa).
The holistic role's preamble should make its job complementary to the fan-out reviewer's slice work, not redundant:
- "Don't verify every line — the fan-out reviewer covers that."
- "Read the diff once with the whole PR in mind. Ask: does the primary advertised use case actually work end-to-end? Walk it: a user does X, the code path is A → B → C, does C produce what A promised? (The `checkout` dead-end on Simplify repository configuration — schema cleanup, layered repo+local config, onboard skill, validator #2105 is the canonical miss.)"
- "For every behavior promised in docs, grep that the code does it. For every code path that emits user-facing output, find the doc that documents it."
- "Look for synthetic keys / sentinels / 'magic' values used in one module — confirm every consumer in another module recognises them."
- "Look for silent fallbacks (`except Exception:`, swallowed `None`s, no-op default branches) where the operator would expect a signal."
PR-size gating
Holistic reviewer runs always — it's the floor, not a fallback. Fan-out + lenses remain additive above the existing >10 files OR >500 LOC threshold. Below threshold the holistic reviewer alone is sufficient and avoids the latency cost of spinning up 6 subagents on a small PR.
Acceptance
- New
reviewer_code_holisticrole (or equivalent) wired into BRC implement consensus - Always runs single-pass against the full diff regardless of PR size
- Distinct from
reviewer_code(which continues to fan out above threshold) - Both reviewers feed consensus at CRITICAL severity, NACKs do not get averaged together
- Preamble file lives in
shared/prompts/
References
- Postmortem: BRC review missed 14 GHA blockers on PR #2105 — fan out lens reviewers, expand cross-partition pass categories #2125
- PR that exposed the gap: Simplify repository configuration — schema cleanup, layered repo+local config, onboard skill, validator #2105
- Prior fan-out machinery: Improve generalized reviewer with subagent fan-out and lens reviewers #2061 / improve the generalized reviewer #1965
Activity
Add reviewer_code_holistic CRITICAL role alongside fan-out (#2126) (#…
docs: Add reviewer_code_holistic to agent docs [doc-updater] (#2131)
Reviewer roster reshape: drop reviewer_code fan-out, promote lens rev…
Reviewer roster reshape: drop reviewer_code fan-out, promote lens rev…
review-criteria: recalibrate severity per #2128 (#2197)