ARCUS Context-Isolated Plan & Code Review (arcus-review)
"A reviewer that shares the author's context shares the author's blind spots."
Never review a plan or diff inside the same mental context that created it. Perform a rigorous, adversarial review in an isolated context using a pinned snapshot and a persistent Review Ledger.
1. Context Isolation First (Sandbox the Review)
- Primary (Spawn a Fresh Subagent): When a subagent tool (
invoke_subagent,delegate_task,Agent, orspawn_agent) is available and you are in the parent session that authored the plan or code, delegate the review to a fresh, read-only subagent.- No Framing / No Leading the Witness: Pass ONLY:
- The pinned snapshot identifier (see review-ledger-protocol.md).
- The target file paths, diff command, or the verbatim unedited plan text/file path.
- The existing Findings Ledger Table (if Round 2+).
- The path to this
SKILL.md.
- Never include your reasoning, why you rejected alternatives, or defensive explanations in the subagent kickoff prompt.
- No Framing / No Leading the Witness: Pass ONLY:
- Fallback (Already in an Isolated Subagent / No Subagent Tool): Perform an explicit Cold-Reader Reset. Treat all unrecorded chat history as non-existent and judge strictly from the on-disk snapshot and external documentation.
2. Mode Detection & Review Procedure
Mode A — Isolated Plan & Design Critique (After arcus-plan)
- Pin Snapshot & Verify Repo Grounding: Pin
HEADSHA and read the actual repository files the plan claims to touch (plusONBOARDING.md/CONTEXT.mdif present, verifying whether the plan respects documented domain mappings, business invariants, and legacy minefields). Never trust a plan's claims without checking the codebase. - Cold-Reader Extraction Test: Using only the plan document and repo files, extract: (a) the exact root cause/seam, (b) the data/state boundary being changed, and (c) what breaks if step N fails. Any unstated assumption the reader must guess is logged as a ledger finding (
F-xx). - External Reference Check: When the design involves external APIs, third-party libraries, CLI flags, or protocol specs, look up current external references/docs rather than relying purely on internal repo conventions. For HTML, CSS, or client-side JS/DOM designs and diffs, verify platform capabilities and Baseline fallbacks via
npx -y modern-web-guidance@latest search "<2-5 word query>"andretrieve "<id>". - Audit & Ledger Output: Apply review-rubric.md and output the prioritized findings and Review Ledger per review-ledger-protocol.md.
Mode B — Isolated Code & PR Review (After arcus-work-loop or on PRs)
- Pin Snapshot: Pin
base..headSHA (orHEADSHA +git diff HEAD | git hash-object --stdinfor uncommitted changes). - Round 2+ Blind Ledger Check First: If a Review Ledger exists from an earlier round, follow review-ledger-protocol.md strictly—judge every open finding from the code snapshot alone before opening the author's replies or explanations (
RESOLVED,UNRESOLVED,VALID_PUSHBACK,DISPUTED). - Full Diff, Callers & External Docs Audit: Inspect the diff, surrounding callers/callees,
ONBOARDING.md/CONTEXT.mddomain invariants and minefields (when present), external library docs, (for TypeScript or stateful changes)typescript-best-practices.md(when co-installed), and (for backend, data-access, or outbound HTTP/RPC changes)backend-reliability.md(when co-installed) against review-rubric.md.- Security Escalation Boundary: Escalate to
arcus-security(when co-installed; inline fallback: verify tenant/role authz, taint-to-sink paths, redacted secret hygiene, local-only negative tests, and non-blocking native package audit) ONLY when the diff touches authn/authz, untrusted input sinks, secrets/crypto, SSRF/egress, deserialization, CI workflows, or dependency manifests. Keep routine reviews fast and separate security findings (S-01..) from general review findings (F-01..).
- Security Escalation Boundary: Escalate to
- Report Ledger & Prioritized Findings: Output the updated Findings Ledger Table (
F-01,F-02, ...) categorized into[CRITICAL / BLOCKING],[HIGH / BUG RISK], and[NIT / SUGGESTION]with exactfile:linecitations, failure scenarios, and minimal fixes.
