Lukasz Boryn e14fae6331 feat(review): add review-blueprint axis — diff versus originating spec
- feat(review-blueprint): complete/contained/verified gate with pasted-output rule
- docs(skills): wire the fourth axis into bdd after-green and review cross-links
2026-07-19 23:22:10 +02:00

3.1 KiB

name, description
name description
review-blueprint Review a diff against its originating spec (OKF/specs/NNN) — everything asked implemented, nothing beyond scope, Verify actually run with pasted output. The fourth review axis and implement's done-gate. Use when the user says "review against the spec", "review-blueprint", "does this match the spec", or implement reaches its done-gate.

review-blueprint

The spec axis — the other three axes (review-angles correctness, nuke-review structure, winnow debloat) judge the code on its own terms; this one judges it against what was asked. Adapted from Matt Pocock's code-review Spec axis + obra/superpowers' verification-before-completion.

When to use

  • implement reaches its done-gate.
  • User says "review against the spec", "does this match the spec".
  • Any post-green review pass where an OKF/specs/NNN exists for the diff.

Inputs

  • The diff (jj diff, or jj diff -r <rev> for a sealed change).
  • The spec: commit message citation (spec NNN), user-named, or the only locked spec touching these files. Ambiguous → ask; none → report "no spec available" and stop. Never review against an imagined spec.

The three questions

  1. Complete? Every behaviour in Spec present in the diff. Missing → finding per omission, citing the spec line.
  2. Contained? Nothing in the diff beyond Spec + necessary plumbing. Anything matching Out of scope → finding. Changes past the Seams touched list → finding (scope leak, even if benign).
  3. Verified? Run the spec's Verify command yourself — paste the output. No output, no pass: "it should pass" is the exact failure this axis exists to catch. Verify red → blocking finding.

Output

spec NNN — <title>
COMPLETE:  ✓ | ✗ <missing behaviours, spec-line cites>
CONTAINED: ✓ | ✗ <scope leaks, out-of-scope hits>
VERIFIED:  ✓ | ✗ — <verify command>
<pasted output, trimmed to the verdict lines>

Verdict: pass only when all three are ✓. Findings are severity-tagged like review-angles; refute each before emitting (refute.md).

Guardrails

  • Never pass on a prose claim of verification — output or it didn't happen.
  • Never fabricate a spec for spec-less work — say so and hand to the other three axes.
  • Never widen review into correctness/structure here — single axis, like winnow. Point findings at the right sibling instead.
  • A diff that improves on the spec still fails Contained — the spec gets superseded first (blueprint), then the diff lands.

See also