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
This commit is contained in:
Łukasz Boryń 2026-07-19 23:22:10 +02:00
parent 7fb4450fa8
commit e14fae6331
6 changed files with 73 additions and 1 deletions

View File

@ -86,7 +86,8 @@ A green suite is a *claim*, not a proof: it never exercised thread death,
caller ordering, stale data, or the shape the real producer emits (see caller ordering, stale data, or the shape the real producer emits (see
[anti-patterns.md](anti-patterns.md) *"Fixtures that don't match what the [anti-patterns.md](anti-patterns.md) *"Fixtures that don't match what the
producer emits"*). After the loop is green, **budget a review pass** across producer emits"*). After the loop is green, **budget a review pass** across
three axes: correctness ([`../review-angles/SKILL.md`](../review-angles/SKILL.md)), four axes: correctness ([`../review-angles/SKILL.md`](../review-angles/SKILL.md)),
spec fidelity ([`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md)),
structural quality ([`../nuke-review/SKILL.md`](../nuke-review/SKILL.md)), structural quality ([`../nuke-review/SKILL.md`](../nuke-review/SKILL.md)),
mechanical debloat ([`../winnow/SKILL.md`](../winnow/SKILL.md)). Refute mechanical debloat ([`../winnow/SKILL.md`](../winnow/SKILL.md)). Refute
each finding ([refute.md](../review-angles/refute.md)); fix red-test-first. each finding ([refute.md](../review-angles/refute.md)); fix red-test-first.

View File

@ -104,3 +104,4 @@ Don't approve because behaviour is correct. Each is a presumptive blocker unless
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis: single-tag findings, `net: -N lines` scoreboard. Pairs naturally — nuke-review judges shape; winnow clears chaff. - [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis: single-tag findings, `net: -N lines` scoreboard. Pairs naturally — nuke-review judges shape; winnow clears chaff.
- [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) — the vocabulary nuke-review applies (deep modules, seams, leverage, locality). - [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) — the vocabulary nuke-review applies (deep modules, seams, leverage, locality).
- [`../../productivity/cavecrew-octobot/SKILL.md`](../../productivity/cavecrew-octobot/SKILL.md) — how to spawn `caveman:cavecrew-reviewer` to *execute* this axis on a diff. - [`../../productivity/cavecrew-octobot/SKILL.md`](../../productivity/cavecrew-octobot/SKILL.md) — how to spawn `caveman:cavecrew-reviewer` to *execute* this axis on a diff.
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis (diff vs OKF/specs/NNN).

View File

@ -72,3 +72,4 @@ angle is worth more than a green suite.
/ lock / readiness angles, split out because they share a setup. / lock / readiness angles, split out because they share a setup.
- [`../nuke-review/SKILL.md`](../nuke-review/SKILL.md) — the *structural-quality* review axis (code-judo). Different axis from these angles' correctness focus. - [`../nuke-review/SKILL.md`](../nuke-review/SKILL.md) — the *structural-quality* review axis (code-judo). Different axis from these angles' correctness focus.
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis (what to delete). Different again. - [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis (what to delete). Different again.
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis: diff vs what was asked (OKF/specs/NNN).

View File

@ -0,0 +1,67 @@
---
name: review-blueprint
description: 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](../review-angles/SKILL.md) correctness,
[nuke-review](../nuke-review/SKILL.md) structure,
[winnow](../winnow/SKILL.md) 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](../../loop/implement/SKILL.md) 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](../review-angles/SKILL.md); refute each before
emitting ([refute.md](../review-angles/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](../../loop/blueprint/SKILL.md)),
then the diff lands.
## See also
- [../review-angles/SKILL.md](../review-angles/SKILL.md),
[../nuke-review/SKILL.md](../nuke-review/SKILL.md),
[../winnow/SKILL.md](../winnow/SKILL.md) — the other three axes.
- [../../loop/implement/SKILL.md](../../loop/implement/SKILL.md) — runs
this axis as its done-gate.
- [../../productivity/cavecrew-octobot/SKILL.md](../../productivity/cavecrew-octobot/SKILL.md)
— spawn it as a subagent pass.

View File

@ -85,3 +85,4 @@ it sharp.
architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass. architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass.
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness* - [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness*
axis winnow deliberately does not touch. axis winnow deliberately does not touch.
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis winnow also does not touch.

View File

@ -75,3 +75,4 @@ fan out concurrently.
- [`../../engineering/review-angles/SKILL.md`](../../engineering/review-angles/SKILL.md) — *correctness*. - [`../../engineering/review-angles/SKILL.md`](../../engineering/review-angles/SKILL.md) — *correctness*.
- [`../../engineering/nuke-review/SKILL.md`](../../engineering/nuke-review/SKILL.md) — *structural quality* (code-judo). - [`../../engineering/nuke-review/SKILL.md`](../../engineering/nuke-review/SKILL.md) — *structural quality* (code-judo).
- [`../../engineering/winnow/SKILL.md`](../../engineering/winnow/SKILL.md) — *mechanical debloat*. - [`../../engineering/winnow/SKILL.md`](../../engineering/winnow/SKILL.md) — *mechanical debloat*.
- [`../../engineering/review-blueprint/SKILL.md`](../../engineering/review-blueprint/SKILL.md) — *spec fidelity* (diff vs OKF/specs/NNN).