From 8d51544507a2e9aa587ad63b821df5928bb8771b Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Fri, 24 Jul 2026 11:01:31 +0200 Subject: [PATCH] feat(loop): add ferry-level muster gate at moor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- OKF/LEARNINGS.md | 7 +++++ OKF/blueprints/012-add-ferry-level-muster.md | 2 +- OKF/index.md | 2 +- skills/loop/moor/SKILL.md | 33 +++++++++++++------- skills/loop/write-OKF/okf-layout.md | 12 ++++--- 5 files changed, 38 insertions(+), 18 deletions(-) diff --git a/OKF/LEARNINGS.md b/OKF/LEARNINGS.md index 9d53564..0ef2c70 100644 --- a/OKF/LEARNINGS.md +++ b/OKF/LEARNINGS.md @@ -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. diff --git a/OKF/blueprints/012-add-ferry-level-muster.md b/OKF/blueprints/012-add-ferry-level-muster.md index 85e1c63..ec630ae 100644 --- a/OKF/blueprints/012-add-ferry-level-muster.md +++ b/OKF/blueprints/012-add-ferry-level-muster.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: implemented traces-to: user request 2026-07-24 sounded: 2026-07-24 --- diff --git a/OKF/index.md b/OKF/index.md index e9c609f..290a2e7 100644 --- a/OKF/index.md +++ b/OKF/index.md @@ -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 diff --git a/skills/loop/moor/SKILL.md b/skills/loop/moor/SKILL.md index 9d41e7b..36310b9 100644 --- a/skills/loop/moor/SKILL.md +++ b/skills/loop/moor/SKILL.md @@ -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 --to @ --git | hunk patch -`; git: + `git diff ..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-` that passes model-domain's +5. **GRADUATE** — every resolved `D-` that passes model-domain's warrant test becomes `decisions/NNN-.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//` becomes `ferries/.md`: +6. **COLLAPSE** — `ferries//` becomes `ferries/.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-` 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-` 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: 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: ` + 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-.md` with `traces-to` citing the source decision; diff --git a/skills/loop/write-OKF/okf-layout.md b/skills/loop/write-OKF/okf-layout.md index 487ecb6..f19b43a 100644 --- a/skills/loop/write-OKF/okf-layout.md +++ b/skills/loop/write-OKF/okf-layout.md @@ -94,14 +94,18 @@ loop, not on disk. - **ferries/** — **directory means open, file means moored.** An open ferry is `/` with MAP.md as its per-ferry index; index.md lists ` — 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 `.md` — problem shape, rejected alternatives, graduated numbers — indexed ` — moored → .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/.md` and becomes their index; both contracts hold