Filename search needs the prefix on disk, not just in prose; a bare NNN can't tell decisions and blueprints apart by ls or grep. * refactor(okf): rename decision and blueprint files to R-/B- prefix * fix(write-OKF): recognize R-/B- filenames in register_numbers * docs(blueprint): fix numbering step and filename-pattern docs
4.6 KiB
type, status, traces-to, sounded
| type | status | traces-to | sounded |
|---|---|---|---|
| Blueprint | implemented | user request 2026-07-24 | 2026-07-24 |
011 — add blueprint-level muster, the opt-in human review gate in weave
Justification
Splits the blueprint-level half out of
010 per growth-doctrine
020; 010 carries the full
justification and sounding. The ferry-level half —
which needs the ferry skill as a seam 010 never declared — is
012.
The loop's review before it seals is all agent eyes; the human running it does not read the diff after a weave. Muster is the forced human checkpoint, opt-in, that halts weave after the seal and refuses to advance until the human has read the whole change against intent and recorded a verdict.
Sieve — Real: the user's own testimony; the loop has no human gate today.
Good: a did-this-do-what-I-intended surface the four axes cannot
supply. Minimal: opt-in, so mode-off weave is byte-identical; reuses the
[ -d .jj ] split, the existing seal, and the blueprint page for storage; no
mandated dependency — hunk is a viewer, raw jj diff / git diff the fallback.
Contract
Muster is a mode, off by default. muster: true in a blueprint's
frontmatter opts in. Absent or false → weave behaves exactly as today: no
base, no halt, no tally.
The base is a stored ref. With muster on, weave records review-base: <changeid-or-sha> on the blueprint at Frame — @- (jj) or git rev-parse HEAD (git), the parent of where Build begins. The whole change is the range
review-base..@, unioning every atomic commit the seal produced.
The gate halts weave after Seal, before status flips to implemented. At
the halt the whole-change diff is piped into hunk — hunk patch - reads
a unified diff from stdin, VCS-agnostic (hunk README,
github.com/modem-dev/hunk). [ -d .jj ] selects only the producer:
- jj:
jj diff --from <review-base> --to @ --git | hunk patch - - git:
git diff <review-base>..HEAD | hunk patch -
No hunk → the same range shown raw. The teeth are the tally, not the viewer.
The teeth are the tally. The human records a tally: block on the
blueprint:
tally:
intent: <what the change was meant to do>
matches: yes | no
note: <optional>
matches: yes → weave resumes and flips to implemented. matches: no →
weave stays halted for a fix + re-muster; never a known miss.
The tally is machine-enforced. okf-check errors on any blueprint with
muster: true and status: implemented carrying no tally: block. The
block needs a parser mirroring okf-check:pin, because the generic
frontmatter() flattens a nested block to an empty list. Blueprints without
muster never retro-flag. The halt itself is prose in weave: okf-check
cannot see live behaviour (decision
017).
Seams touched
skills/loop/weave/SKILL.md— a Muster step between Seal and Close-the-loop, guarded bymuster: true;review-baserecorded at Frame.skills/loop/blueprint/blueprint-format.md— documentsmuster,review-base, and thetallyblock.skills/loop/write-OKF/scripts/okf-check— the tally-required-when-implemented rule, via atally:block parser modelled onpin().skills/loop/write-OKF/okf-layout.md— the new fields in the blueprint contract.
Verify
cd skills/loop/write-OKF && d=$(mktemp -d) && mkdir -p "$d/blueprints" &&
printf -- '---\nokf_version: "0.1"\n---\n- [a](blueprints/a.md)\n- [b](blueprints/b.md)\n' > "$d/index.md" &&
base='---\ntype: Blueprint\nstatus: implemented\ntraces-to: t\nmuster: true\n'
printf -- "${base}---\n# a\n" > "$d/blueprints/a.md" # muster+implemented, NO tally
printf -- "${base}tally:\n intent: x\n matches: yes\n---\n# b\n" > "$d/blueprints/b.md" # has tally
scripts/okf-check "$d"; echo "exit=$?"; scripts/okf-check ../../../OKF
Expect: blueprints/a.md errors (muster + implemented, no tally:),
blueprints/b.md passes, and octobot's own OKF/ still reports 0 errors.
Out of scope
- Ferry-level muster — the moor halt and the ferry's
review-basewriter are 012. - GitHub — no push, branch, or PR; muster is a local terminal review.
- The agent review axes — muster is a human gate beside them, not a change to them.
- Any default-mode behaviour — mode-off weave stays byte-identical.
- Auto-fixing on
matches: no— weave halts for the human. - Promoting
muster/tallytoCONTEXT.md— issue-local until it recurs.