Architecture and Scope Review
Review only unless the user separately authorizes fixes. Do not post comments or change pull-request state.
Review contract
- Establish the base, changed files, intended outcome, and rollout unit. Infer missing scope from the diff and nearby code before asking.
- Read repository instructions for every changed surface.
- Trace each changed contract to its producer, actual consumers, runtime and deployment configuration, and nearest tests.
- Compare behavior before and after. Exclude untouched debt, style preferences, and hypothetical failures.
- Report only a reachable failure introduced, worsened, or materially touched at a changed location with confidence of at least 80/100.
- Give mechanism, evidence, smallest safe direction, and exact validation.
Use evidence in this order: changed code and complete call chain, behavior-protecting tests, repository instructions, then other documentation. Report instruction drift separately instead of inventing a diff finding.
Inspection map
Contracts and rollout
- Search symbols and wire names to find actual producers and consumers; do not assume every application uses the contract.
- For independently deployed versions, model old producer/new consumer and new producer/old consumer.
- Add fields before requiring them, tolerate absence during the compatibility window, and remove old fields only after consumers and cached or public surfaces have moved.
- Separate transport compatibility from app-specific view models.
Runtime and asynchronous seams
- For framework, runtime, package-manager, build-tool, or major dependency changes, inspect configuration, build and runtime images, CI commands, entry points, and an already migrated surface when available.
- Scheduled, queued, retried, event-driven, and outbox work has no request guarantee. Carry durable identity and tenant context explicitly rather than resolving it from request state.
- Verify executable bits, interpreter and shell selection, line endings, environment behavior, and failure handling when scripts change.
Infrastructure and observability
- Render every environment affected by shared manifests or templates.
- Trace candidate rollout, health checks, traffic promotion, failure traps, rollback, and ready-replica restoration.
- Validate dashboards on empty, excluded, mixed, and boundary windows. Preserve driving rows through outer joins and quote variables according to the datasource.
- Judge access through the complete authentication, authorization, provisioning, and datasource chain.
Scope
Judge scope against the intended outcome and owning boundary, not line count. Compatibility changes, tests, generated artifacts, and safe rollout work may be required. Adjacent product behavior and unrelated abstractions are out of scope unless they create a concrete changed failure.
Read references/casebook.md when the diff crosses contracts, runtimes, async execution, infrastructure, deployment, or observability.
Findings
P0: credible tenant, authorization, payment, secret, personal-data, or permanent data-loss path.
P1: user- or operations-visible contract, runtime, rollout, or integrity failure.
P2: bounded regression or missing validation with a concrete failure path.
- Omit suggestions without a reachable changed failure unless the user asks for them.
Use blocked only when the diff or a critical contract cannot be evaluated.
Output
Verdict: clean | findings | blocked
Reviewed: [changed surfaces and traced call chain]
Findings:
[P1][confidence 94] Title — path:line
Mechanism: [reachable failure]
Evidence: [code, test, runtime, or contract]
Direction: [smallest safe correction]
Validation: [exact check]
Verified non-findings: [important traps checked and rejected]
Verification needed: [at most two below-threshold items]
1---2name: review-architecture-scope3description: Use when the user asks for a pre-PR or diff review of changes crossing application, API contract, runtime, tenant, deployment, infrastructure, observability, or intended-outcome boundaries. Traces producers, consumers, compatibility windows, asynchronous context, rollout paths, and scope without treating diff size as risk.4---56# Architecture and Scope Review78Review only unless the user separately authorizes fixes. Do not post comments or change pull-request state.910## Review contract11121. Establish the base, changed files, intended outcome, and rollout unit. Infer missing scope from the diff and nearby code before asking.132. Read repository instructions for every changed surface.143. Trace each changed contract to its producer, actual consumers, runtime and deployment configuration, and nearest tests.154. Compare behavior before and after. Exclude untouched debt, style preferences, and hypothetical failures.165. Report only a reachable failure introduced, worsened, or materially touched at a changed location with confidence of at least 80/100.176. Give mechanism, evidence, smallest safe direction, and exact validation.1819Use evidence in this order: changed code and complete call chain, behavior-protecting tests, repository instructions, then other documentation. Report instruction drift separately instead of inventing a diff finding.2021## Inspection map2223### Contracts and rollout2425- Search symbols and wire names to find actual producers and consumers; do not assume every application uses the contract.26- For independently deployed versions, model old producer/new consumer and new producer/old consumer.27- Add fields before requiring them, tolerate absence during the compatibility window, and remove old fields only after consumers and cached or public surfaces have moved.28- Separate transport compatibility from app-specific view models.2930### Runtime and asynchronous seams3132- For framework, runtime, package-manager, build-tool, or major dependency changes, inspect configuration, build and runtime images, CI commands, entry points, and an already migrated surface when available.33- Scheduled, queued, retried, event-driven, and outbox work has no request guarantee. Carry durable identity and tenant context explicitly rather than resolving it from request state.34- Verify executable bits, interpreter and shell selection, line endings, environment behavior, and failure handling when scripts change.3536### Infrastructure and observability3738- Render every environment affected by shared manifests or templates.39- Trace candidate rollout, health checks, traffic promotion, failure traps, rollback, and ready-replica restoration.40- Validate dashboards on empty, excluded, mixed, and boundary windows. Preserve driving rows through outer joins and quote variables according to the datasource.41- Judge access through the complete authentication, authorization, provisioning, and datasource chain.4243### Scope4445Judge scope against the intended outcome and owning boundary, not line count. Compatibility changes, tests, generated artifacts, and safe rollout work may be required. Adjacent product behavior and unrelated abstractions are out of scope unless they create a concrete changed failure.4647Read [references/casebook.md](references/casebook.md) when the diff crosses contracts, runtimes, async execution, infrastructure, deployment, or observability.4849## Findings5051- `P0`: credible tenant, authorization, payment, secret, personal-data, or permanent data-loss path.52- `P1`: user- or operations-visible contract, runtime, rollout, or integrity failure.53- `P2`: bounded regression or missing validation with a concrete failure path.54- Omit suggestions without a reachable changed failure unless the user asks for them.5556Use `blocked` only when the diff or a critical contract cannot be evaluated.5758## Output5960```text61Verdict: clean | findings | blocked62Reviewed: [changed surfaces and traced call chain]6364Findings:65[P1][confidence 94] Title — path:line66Mechanism: [reachable failure]67Evidence: [code, test, runtime, or contract]68Direction: [smallest safe correction]69Validation: [exact check]7071Verified non-findings: [important traps checked and rejected]72Verification needed: [at most two below-threshold items]73```