feat(loop): add ferry-level muster gate at moor

Implements blueprint 012. moor gains a MUSTER step (its first act, after
GATHER SIGNAL, before CONSOLIDATE) guarded by the ferry MAP's muster: true:
derives review-base from the earliest commit citing a ferry blueprint,
shows the whole-ferry diff via hunk, halts on matches: no. review-base is
persisted at COLLAPSE. okf-layout documents the ferry-map muster fields;
the gate is prose-enforced, not okf-check.

moor lands at 115 lines, over the 110 soft cap — the step is irreducible
and a SKILL/REFERENCE split exceeds the blueprint's seams; noted in
LEARNINGS as a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Łukasz Boryń 2026-07-24 11:01:31 +02:00
parent 531c214e3b
commit 8d51544507
5 changed files with 38 additions and 18 deletions

View File

@ -79,3 +79,10 @@ status: live
match neither its list nor its scalar branch — so a block check needs a
dedicated regex grab, the way `pin()` handles `sealed:`. Source: weave of
blueprint 011.
- Believed: a mandated new process step drops into a skill's leftover
headroom under the ≤110-line cap. True: `moor` sat at 106 (4 spare), but
the ferry-muster step is irreducibly ~10 lines — two VCS command examples
carry it — so 012 lands `moor` at 115; the step cannot be absorbed without
a SKILL/REFERENCE split, which exceeds the blueprint's two declared seams.
A blueprint adding a step to a near-cap skill must price the split into its
scope. Source: weave of blueprint 012.

View File

@ -1,6 +1,6 @@
---
type: Blueprint
status: locked
status: implemented
traces-to: user request 2026-07-24
sounded: 2026-07-24
---

View File

@ -33,7 +33,7 @@ your task needs. Humans welcome too.
- [009](blueprints/009-give-every-page-a-growth-path.md) — give every page a growth path so the line cap can be enforced — implemented
- [010](blueprints/010-add-muster-the-human-review-gate.md) — add muster, the opt-in human review gate on the loop's close — superseded-by-011
- [011](blueprints/011-add-blueprint-level-muster.md) — add blueprint-level muster, the opt-in human review gate in weave — implemented
- [012](blueprints/012-add-ferry-level-muster.md) — add ferry-level muster, the human review gate at moor — locked
- [012](blueprints/012-add-ferry-level-muster.md) — add ferry-level muster, the human review gate at moor — implemented
## Ferries

View File

@ -24,7 +24,17 @@ the wiki so the next cold-start agent reads reality, not history.
2. **GATHER SIGNAL** — collect delivery evidence, targeted only: `jj log`
since the ferry started, each blueprint's Verify section (must have
pasted output), review-blueprint verdicts. No full-transcript rereads.
3. **CONSOLIDATE** — promote durable knowledge out of the ferry into its
3. **MUSTER** — only if the ferry's `MAP.md` carries `muster: true`; absent
→ skip, moor runs unchanged. The human gate on arrival → moor: halts
after GATHER SIGNAL, before every mutation below. Derive `review-base` =
parent of the earliest commit citing one of the ferry's blueprints
(weave seals cite `blueprint NNN`); pipe the `review-base..@` diff to
hunk (`jj diff --from <review-base> --to @ --git | hunk patch -`; git:
`git diff <review-base>..HEAD | hunk patch -`; no hunk → raw). The human
records a `tally:` block; `matches: no` stays halted for a fix, never
mutates on a known miss. COLLAPSE persists `review-base:`; 1-blueprint
ferry → use blueprint muster (011), not this.
4. **CONSOLIDATE** — promote durable knowledge out of the ferry into its
one home, cross-linked back:
- spawned blueprints → `status: done` (or `superseded`);
- `MAP.md` → mark arrived, record the blueprint numbers produced;
@ -36,23 +46,21 @@ the wiki so the next cold-start agent reads reality, not history.
- terms that recurred beyond the ferry → `CONTEXT.md` per
model-domain; the delivered phase → checked off in `ROADMAP.md`;
- relative dates → ISO 8601; dead cross-links fixed.
4. **GRADUATE** — every resolved `D-<n>` that passes model-domain's
5. **GRADUATE** — every resolved `D-<n>` that passes model-domain's
warrant test becomes `decisions/NNN-<slug>.md` at the next free
number, carrying the frontmatter of
[DECISION-FORMAT.md](../../engineering/model-domain/DECISION-FORMAT.md)
plus a question-shaped `decisions/index.md` line. The `Resolution`
body moves **verbatim** — one home, never two copies; `Options` and
`Why it must be decided` stay behind for step 5. `blocked-by` edges
`Why it must be decided` stay behind for step 6. `blocked-by` edges
drop; the register is not a dependency graph. A resolution that
fails the warrant test graduates nowhere and stays in the collapsed
page — graduation is the default, not an obligation.
5. **COLLAPSE** — `ferries/<topic>/` becomes `ferries/<topic>.md`:
6. **COLLAPSE** — `ferries/<topic>/` becomes `ferries/<topic>.md`:
problem shape, rejected alternatives, pointers to the numbers that
graduated. Directory means open, file means moored, so `ls
OKF/ferries/` answers what deliberation is still in flight. The page
opens `type: Ferry Map`, then the pin — read off `@-`, because the
sealing commit cannot name itself and the parent is where the
`D-<n>` files still exist
graduated. The page opens `type: Ferry Map`, then the pin — read off
`@-`, because the sealing commit cannot name itself and the parent is
where the `D-<n>` files still exist
(`jj log -r @- --no-graph -T 'change_id ++ " " ++ commit_id'`):
```yaml
sealed:
@ -60,9 +68,10 @@ the wiki so the next cold-start agent reads reality, not history.
commit: <git hash>
date: <ISO date>
```
Then remove the directory. History is the archive of record; the pin
is the way back into it.
6. **PRUNE + INDEX** — sweep the arrived ferry for unextracted
A ferry that mustered (step 3) also carries `review-base: <changeid>`
here. Then remove the directory — history is the archive, the pin the
way back in.
7. **PRUNE + INDEX** — sweep the arrived ferry for unextracted
follow-ups; every open thread gets a home + backlink:
- small and implementable → new blueprint `NNN-<slug>.md` with
`traces-to` citing the source decision;

View File

@ -94,14 +94,18 @@ loop, not on disk.
- **ferries/** — **directory means open, file means moored.** An open
ferry is `<topic>/` with MAP.md as its per-ferry index; index.md lists
`<topic> — n/m resolved → MAP.md` and never its decisions (single
source: MAP.md). [moor](../moor/SKILL.md) graduates the resolved
source: MAP.md). A multi-blueprint MAP may opt into moor's human review
gate with `muster: true`; moor derives `review-base` (parent of the
earliest commit citing a ferry blueprint) and persists it on the
collapsed page — prose-enforced in [moor](../moor/SKILL.md), never
`okf-check`. [moor](../moor/SKILL.md) graduates the resolved
decisions into `decisions/` and collapses the directory into
`<topic>.md` — problem shape, rejected alternatives, graduated
numbers — indexed `<topic> — moored <date> → <topic>.md`. The two
shapes may never coexist. A moored page carries `sealed:` after its
`type`, pinning the deliberation it dropped to the commit *before* the
collapse — fields and drift rule in
[page-warrant.md](page-warrant.md).
`type` (plus `review-base:` when the ferry mustered), pinning the
deliberation it dropped to the commit *before* the collapse — fields
and drift rule in [page-warrant.md](page-warrant.md).
- **LEARNINGS.md** — what was believed / what is true / source. Never
edited retroactively, only appended or superseded. At the cap it splits
into `learnings/<theme>.md` and becomes their index; both contracts hold