Skip to content

BRC: restore always-on holistic reviewer_code alongside fan-out + lenses #2126

Closed

Description

@jwbron

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_holistic role (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions