octobot/skills/loop/blueprint/blueprint-format.md
Lukasz Boryn 961811a41c docs(okf): record 007's session-check discharges on the blueprint
blueprint 015 §Seams — three seams:
- docs(blueprint): exempt a session-check state marker from the
  immutability rule, so a stamp is not read as an illegal edit
- docs(okf): stamp 007's four session checks with their discharge state
- docs(okf): collapse phase 9's verification evidence to its blueprint

implements blueprint 015
2026-07-30 13:44:45 +02:00

67 lines
2.9 KiB
Markdown

# Blueprint format — OKF/blueprints/NNN-<slug>.md
```markdown
---
type: Blueprint
status: draft | locked | implemented | superseded-by-NNN
traces-to: ROADMAP.md phase N | ferries/<topic>/D-<n> | user request <date>
sounded: YYYY-MM-DD
muster: true # optional — opt into the human review gate
review-base: <changeid> # set when muster is on: parent of where weave begins
tally: # recorded at the muster halt; required to reach implemented
intent: <what the change was meant to do>
matches: yes | no
note: <optional>
---
# NNN — <imperative title, completes "this change will…">
## Justification
<Why this exists. References (not restatements) of the roadmap phase,
ferry decision, or user need. If sieve-relevant: which Real need this
answers.>
## Contract
<Observable behaviour, exact semantics. What the change does — inputs,
outputs, states, error modes. Canonical vocabulary from OKF/CONTEXT.md
only. No implementation prescriptions unless they ARE the requirement.>
## Seams touched
<The interfaces tests will run against — module + entry point each.
bdd's pre-agreed seam list; review-blueprint checks nothing leaked past
them.>
## Verify
<ONE runnable command or observable check that proves the blueprint is met.
weave pastes its output before flipping status. "Tests pass" is not
a Verify; `just test` on a named suite is.>
## Out of scope
<Explicit non-goals — review-blueprint flags anything here that shows
up in the diff.>
```
## Rules
- Title is imperative — a blueprint names a change, not a state.
- `type: Blueprint` is the OKF-v0.1 conformance field (see
[write-OKF/okf-layout.md](../write-OKF/okf-layout.md)) — always first.
- `traces-to` is mandatory; a blueprint that traces to nothing fails
[sieve](../../engineering/sieve/SKILL.md)'s Real test by definition.
- `sounded:` is the date [sound](../sound/SKILL.md) verified what the
blueprint rests on; absent until then, and required to lock.
- `muster: true` (optional) opts into the human review gate: weave halts
after the seal, shows the whole `review-base..@` diff in hunk, and records
a `tally:` block. `okf-check` errors on a `muster` blueprint reaching
`implemented` without one. Absent → weave runs unchanged.
- Locked blueprint's Contract/Verify sections are immutable — supersede, don't
edit. Justification may gain references; status may advance. Replacing a
session check's state marker (`⏳ pending` → `✅ <date> (<what discharged
it> — <what was observed>)`, per
[021](../../../OKF/decisions/021-session-checks-discharge-on-the-blueprint.md))
is not an edit to the check: the stamp records that unchanged text was run.
- A blueprint grows into `NNN-<slug>/` (blueprint.md + notes) when one file won't
hold it — the format above moves to `blueprint.md` unchanged.
- Issue-local vocabulary lives here until it recurs; then promote to
`OKF/CONTEXT.md` (model-domain's recurrence rule).