# Combined iteration review procedure Load only for implementation/security/local MR review. This independently authored Foundry procedure combines selected upstream ideas; it does not install or invoke GSD, Superpowers, Spec Kit or OpenSpec. Source provenance and deliberate differences are in docs/research/combined-review.md. Existing project requirements and user decisions govern the review. ## 1. Scope and review package Record objective, acceptance criteria, actual local base/head, working-tree changes and relevant source revision. Do not assume main, HEAD~1 or a remote target exists. Include untracked relevant files and diff scope; a commit-only diff may miss current edits. Ask for materially missing criteria/base, otherwise continue independent inspection. Read only relevant contracts/profiles/ADRs and the application's docs/project/review-pattern.md, if present. Give existing eng-reviewer a compact package: requirements, scoped files/diff, revision/base/head, relevant contracts, real raw test results, requested risk lenses and known exclusions. The main conversation executes checks; reviewer stays read-only. Do not copy the full conversation or launch overlapping review teams. One reviewer may report both passes; two passes are not proof of two independent reviewers. ## 2. Specification and outcome pass For every acceptance criterion record requirement ID/text, implementation path, actual check, result and gap. Status is VERIFIED / INFERRED / ASSUMPTION / UNVERIFIED / BLOCKED / FAILED, with a reason. Do not invent requirements or mark self-reported assertions VERIFIED. Check both missing behavior and additions outside scope. Compare requirements, plan/tasks, implementation, existing contract and changed requirement together. Contradictions need resolution; a new task description does not silently supersede accepted decisions. For each promised outcome inspect: - Is the outcome observable and tested against its actual acceptance criterion? - Is the implementation substantive, rather than a placeholder, dead code or unconditional success? - Is it connected through the real entry point, boundary or integration promised by the change? - Does the evidence cover relevant failure paths and dependencies? A unit test with mocks does not prove a live external integration. A file existing, a generated ADR or a test count does not prove the product goal. Report uncovered behavior explicitly. Determine whether a material decision needs a new/superseding ADR with alternatives, consequences and evidence; never invent owner acceptance. ## 3. Code-quality and risk pass Inspect correctness, data integrity, maintainability, compatibility and regression risk separately from specification coverage. For an MR inspect cross-task/whole-branch interactions as well as local changes. Apply only relevant lenses: - Security: assets/trust boundaries, authentication/authorization, input/domain validation, injection, data exposure, secrets, dependency/lifecycle and configuration changes. - Reliability/data: error paths, retries, idempotency, transaction boundaries, schema/migration compatibility, concurrency and recovery. - Operations/performance: observable failures, resource bounds, deployment/rollback and relevant latency/throughput requirements. - Frontend/API: contract compatibility, accessibility and client/server validation where applicable. Use reasons for not-applicable items. Unknown or unavailable checks stay UNVERIFIED. Do not install scanners, access credentials or run active external scans automatically. The limited path hook is not a security audit. An unresolved specification finding prevents overall acceptance even when quality looks good; relevant security inspection can still proceed. ## 4. Receive, validate and fix feedback Treat reviewer recommendations as hypotheses, including generated reviews. Inspect/reproduce against this codebase and version before changing code. Clarify material ambiguity; reject technically incorrect/out-of-scope suggestions with concrete contract/source/test evidence. Do not add an abstraction or pattern just because a reviewer prefers it. Every finding records ID, severity (critical/high/medium/low/info), file/location, evidence, affected requirement, recommendation, disposition and revalidation. Supported correctness/security/acceptance gaps block closure. Accepted risk requires documented authorization, not a model's approval. Fix one supported issue at a time where practical, rerun relevant checks and re-review affected paths. Two review/fix rounds total, not two rounds per upstream method/lens; escalate unresolved blockers afterward. An unavailable independent reviewer remains UNVERIFIED. ## 5. Fresh verification and claim audit Inspect all configured local argv before execution. Use review.py run --execute for actual exits/output hashes bound to source/config; preserve raw diagnostics safely. Empty gates, failed blocking checks and stale source/config cannot support completion. Map consequential API/package/config/behavior statements to authoritative or inspected evidence and installed versions. Correct or remove unsupported claims; retain material unknowns as blockers. Model agreement is not proof; no zero-hallucination guarantee. Use the matrix template at .claude/framework/templates/iteration-review.md. Detailed matrices/findings may live in docs/project/reviews/.md alongside the helper JSON. These review journals are excluded from source fingerprints; they are editable, self-reported records, not signed attestations. Other Git-ignored files are also excluded. Inspect linked evidence and reviewer identity; the helper cannot authenticate them. ## 6. Record mapping, handoff and bounded learning The existing JSON helper schema is unchanged: | Record field | Required review content | |---|---| | scope | Objective, base/head/revision and review exclusions; link detailed matrix if used | | acceptance_evidence | Requirement matrix, specification pass and observable-goal/artifact/wiring checks | | security_evidence | Applicable risk lenses, findings, actual checks and coverage gaps | | claim_evidence | Source/version/command references and corrected/blocked unsupported claims | | adr_impact | Changed requirement/contract/ADR consistency and consequential decisions | | independent_review / review_evidence | Actual reviewer availability/identity, separate spec/quality findings, feedback dispositions and revalidation | | rounds / blockers | Total rounds (1..2) and every unresolved material blocker | | lessons | Zero to three observed finding/change/revalidation proposals | Review proposed lessons before adding precise regression/checklist entries to docs/project/review-pattern.md for the next iteration. Include cause and revalidation; do not relax permissions, rewrite system rules or silently amend accepted ADRs. Finalize state/roadmap/ADR/checklist changes before taking the final snapshot and running checks. Preview prepare for a current source record; only update an existing review's source after inspecting/re-reviewing changes. Later edits invalidate evidence. For MR scope produce a local draft with purpose, behavior, coverage, real commands/exits, unresolved findings, risks and ADR links. External fetch/post/merge/push is a separate authorized action. Overall result distinguishes specification coverage, quality/risk findings, executed gate status and independent-review availability; never collapse these into a vague “all good.”