Review Implementation
Audit the implementation against its named specification. Find concrete gaps;
do not reward a report merely for looking complete.
Boundaries
- Read only. Do not modify project files, memory files, or review inputs.
- Require an identifiable specification and implementation surface: an explicit
path/reference, conversation artifact, or unambiguous current-branch change.
If either side cannot be resolved, report what is missing and stop.
- Use repository instructions and architecture documents as evidence. Do not
assume a framework, tenancy model, payment provider, or project convention.
- This is a pre-PR spec-compliance review. Use the opened-PR merge-gate skill
when the task is to decide whether an existing pull request can merge. This
receipt is required for the first named-spec implementation before its PR is
opened; it is not a recurring correction-loop gate after that PR exists.
Review
- Identify the exact spec and implementation basis. Record paths or revision
bounds so the result can be reproduced. For repository work, include content
hashes for every named spec file, the implementation
HEAD, and a
fingerprint covering staged and unstaged diffs plus the relevant untracked
inventory. Use equivalent immutable identifiers when Git is unavailable.
- Turn every normative requirement and acceptance criterion into a checklist.
Trace each item to implementation and tests as
met, not met, or
insufficient evidence.
- Follow changed behavior through reachable entry points, state changes,
integrations, failure paths, and user-visible outcomes. Check repository
conventions only where they affect the named requirements or their safe
operation.
- Detect the stack from repository evidence such as manifests, imports,
configuration, code, and project policies. When that evidence establishes a
relevant framework or risk surface, read
references/conditional-checks.md and
apply only the matching checks.
- Inspect tests for the required behavior and material failure paths. A green
suite is evidence only for what its assertions actually exercise.
For a high- or critical-consequence universal or negative property, require
one safe counterexample that varies a material carrier, data-flow path, or
result independently of the enforcement representation. A scanner,
inventory, or implementation and fixtures authored from the same model are
correlated evidence.
- Reconcile the checklist. Do not return Ready while a requirement is unmet,
a material consequence is unexamined, or required evidence is missing.
Treat a named spec that still binds a disproven or superseded mechanism,
scope statement, or acceptance oracle as not ready even when current code
appears to satisfy the governing outcome.
Bind the decision to the complete recorded basis. Any spec, implementation,
index, or relevant untracked-artifact change invalidates the receipt; rerun the
review rather than carrying Ready for PR forward.
Every finding must include:
- concrete file, line, diff, test, or missing-artifact evidence;
- the obligation and deepest task-owned root cause;
- why the current implementation, control, or proof mechanism cannot establish
that obligation;
- the consequence surface and falsifiable outcome-level closure condition;
- independent proof obligations; and
- correction surface:
implementation-only, spec-and-implementation,
evidence-only, or task-decision-required.
Keep one task-owned root and its proof deficit in one finding. When a proven
implementation or contract defect already explains why current evidence is
insufficient, put the missing independent evidence under that finding's proof
obligations; do not emit a second evidence-only finding for the same root.
Reserve evidence-only for a material gap when no implementation or contract
defect has been proven.
The reviewer owns causal diagnosis and the proof contract; the implementer
owns solution design. Do not recommend an exact code shape, tool, parser,
algorithm, or file edit unless the named specification or other binding
authority leaves no alternative. In that exceptional case, cite the binding
clause and report a required mechanism rather than reviewer preference.
Use implementation-only when the approved contract remains sufficient and the
implementation must change. Use spec-and-implementation when current evidence
invalidates a named spec clause or proof mechanism and the contract must be
reconciled with the implementation; code need not change gratuitously when it
already satisfies the corrected contract. Use evidence-only when no defect is
proven but decision-critical proof is absent. Use
task-decision-required when controlling sources conflict or closure requires
an unmade product, compatibility, operational, destructive, or material scope
decision.
Do not invent defects. If the available artifacts cannot establish a claim,
label it insufficient evidence.
Output
## Spec Compliance Report
### Review basis
- Specification: ...
- Implementation: ...
### Artifact receipt
- Spec hashes: ...
- Implementation HEAD: ...
- Staged/unstaged/untracked fingerprint: ...
- Invalidation: any basis change requires re-review
### Requirement trace
- [met | not met | insufficient evidence] Requirement -> evidence
### Findings
[P0-P3] Finding
- Evidence: ...
- Obligation: ...
- Root cause: ...
- Incapable mechanism: ...
- Consequence surface: ...
- Required closure: ...
- Proof obligations: ...
- Correction surface: implementation-only | spec-and-implementation | evidence-only | task-decision-required
### Tests
- Proven coverage and missing material cases
### Overall status
**Ready for PR:** Yes | No | INCOMPLETE
Use No for a demonstrated defect or unmet requirement. Use INCOMPLETE when
the named spec, implementation basis, or decision-critical evidence is absent.
If there are no findings, say so; do not add filler.
1---2name: review-implementation3description: Review an implemented change against a named specification before opening a PR. Use when the user asks for spec-compliance, implementation-vs-spec, acceptance-criteria, or pre-PR implementation review. Produce an evidence-backed Ready for PR decision without editing project files. Do not use for an opened-PR merge gate.4---56# Review Implementation78Audit the implementation against its named specification. Find concrete gaps;9do not reward a report merely for looking complete.1011## Boundaries1213- Read only. Do not modify project files, memory files, or review inputs.14- Require an identifiable specification and implementation surface: an explicit15 path/reference, conversation artifact, or unambiguous current-branch change.16 If either side cannot be resolved, report what is missing and stop.17- Use repository instructions and architecture documents as evidence. Do not18 assume a framework, tenancy model, payment provider, or project convention.19- This is a pre-PR spec-compliance review. Use the opened-PR merge-gate skill20 when the task is to decide whether an existing pull request can merge. This21 receipt is required for the first named-spec implementation before its PR is22 opened; it is not a recurring correction-loop gate after that PR exists.2324## Review25261. Identify the exact spec and implementation basis. Record paths or revision27 bounds so the result can be reproduced. For repository work, include content28 hashes for every named spec file, the implementation `HEAD`, and a29 fingerprint covering staged and unstaged diffs plus the relevant untracked30 inventory. Use equivalent immutable identifiers when Git is unavailable.312. Turn every normative requirement and acceptance criterion into a checklist.32 Trace each item to implementation and tests as `met`, `not met`, or33 `insufficient evidence`.343. Follow changed behavior through reachable entry points, state changes,35 integrations, failure paths, and user-visible outcomes. Check repository36 conventions only where they affect the named requirements or their safe37 operation.384. Detect the stack from repository evidence such as manifests, imports,39 configuration, code, and project policies. When that evidence establishes a40 relevant framework or risk surface, read41 [references/conditional-checks.md](references/conditional-checks.md) and42 apply only the matching checks.435. Inspect tests for the required behavior and material failure paths. A green44 suite is evidence only for what its assertions actually exercise.45 For a high- or critical-consequence universal or negative property, require46 one safe counterexample that varies a material carrier, data-flow path, or47 result independently of the enforcement representation. A scanner,48 inventory, or implementation and fixtures authored from the same model are49 correlated evidence.506. Reconcile the checklist. Do not return Ready while a requirement is unmet,51 a material consequence is unexamined, or required evidence is missing.52 Treat a named spec that still binds a disproven or superseded mechanism,53 scope statement, or acceptance oracle as not ready even when current code54 appears to satisfy the governing outcome.5556Bind the decision to the complete recorded basis. Any spec, implementation,57index, or relevant untracked-artifact change invalidates the receipt; rerun the58review rather than carrying `Ready for PR` forward.5960Every finding must include:6162- concrete file, line, diff, test, or missing-artifact evidence;63- the obligation and deepest task-owned root cause;64- why the current implementation, control, or proof mechanism cannot establish65 that obligation;66- the consequence surface and falsifiable outcome-level closure condition;67- independent proof obligations; and68- correction surface: `implementation-only`, `spec-and-implementation`,69 `evidence-only`, or `task-decision-required`.7071Keep one task-owned root and its proof deficit in one finding. When a proven72implementation or contract defect already explains why current evidence is73insufficient, put the missing independent evidence under that finding's proof74obligations; do not emit a second `evidence-only` finding for the same root.75Reserve `evidence-only` for a material gap when no implementation or contract76defect has been proven.7778The reviewer owns causal diagnosis and the proof contract; the implementer79owns solution design. Do not recommend an exact code shape, tool, parser,80algorithm, or file edit unless the named specification or other binding81authority leaves no alternative. In that exceptional case, cite the binding82clause and report a required mechanism rather than reviewer preference.8384Use `implementation-only` when the approved contract remains sufficient and the85implementation must change. Use `spec-and-implementation` when current evidence86invalidates a named spec clause or proof mechanism and the contract must be87reconciled with the implementation; code need not change gratuitously when it88already satisfies the corrected contract. Use `evidence-only` when no defect is89proven but decision-critical proof is absent. Use90`task-decision-required` when controlling sources conflict or closure requires91an unmade product, compatibility, operational, destructive, or material scope92decision.9394Do not invent defects. If the available artifacts cannot establish a claim,95label it `insufficient evidence`.9697## Output9899```markdown100## Spec Compliance Report101102### Review basis103- Specification: ...104- Implementation: ...105106### Artifact receipt107- Spec hashes: ...108- Implementation HEAD: ...109- Staged/unstaged/untracked fingerprint: ...110- Invalidation: any basis change requires re-review111112### Requirement trace113- [met | not met | insufficient evidence] Requirement -> evidence114115### Findings116117[P0-P3] Finding118- Evidence: ...119- Obligation: ...120- Root cause: ...121- Incapable mechanism: ...122- Consequence surface: ...123- Required closure: ...124- Proof obligations: ...125- Correction surface: implementation-only | spec-and-implementation | evidence-only | task-decision-required126127### Tests128- Proven coverage and missing material cases129130### Overall status131**Ready for PR:** Yes | No | INCOMPLETE132```133134Use `No` for a demonstrated defect or unmet requirement. Use `INCOMPLETE` when135the named spec, implementation basis, or decision-critical evidence is absent.136If there are no findings, say so; do not add filler.