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
5.0 KiB
type, status, traces-to
| type | status | traces-to |
|---|---|---|
| Blueprint | implemented | ROADMAP.md phase 7 (decisions 14, 15) |
003 — graduate ferry decisions and collapse the moored ferry
Justification
Phase 7's second half. Decisions 14 and 15 settle the behaviour;
002 built the register they graduate into
and left this in its Out-of-scope block. ls OKF/ferries/ cannot answer
what deliberation is in flight — the Real need, and decision 15's purpose.
Contract
Resolved ferry decisions graduate. At moor, each D-<n> whose
Resolution is filled becomes OKF/decisions/NNN-<slug>.md at the next
free number, carrying the warrant frontmatter of
DECISION-FORMAT.md
and a decisions/index.md line. The resolution body moves verbatim; the
ferry's Options and Why it must be decided stay behind in the
collapsed page. One home, never two copies.
The warrant test still gates: a resolved D-<n> answering no question
another page lacks gets no register file — its resolution stays in the
collapsed page. Graduation is the default, not an obligation. blocked-by
edges drop; the register is not a dependency graph.
Moor collapses the directory. ferries/<topic>/ becomes
ferries/<topic>.md — problem shape, rejected alternatives, pointers to
graduated numbers. Directory means open, file means moored.
- Frontmatter:
type: Ferry Map, thensealed:carrying the jj change id, the git commit hash, and the ISO date — pinned to@-at moor, because the sealing commit cannot name itself and the parent is where theD-<n>files still exist. OKF/index.md's ferry line changes shape with the state:<topic> — n/m resolved → <topic>/MAP.mdwhile open,<topic> — moored <date> → <topic>.mdafter. This is what keeps the collapsed page reachable once itsMAP.mdis gone.
moor's guardrails are rewritten, not appended to. "Never delete a ferry directory" and "never auto-promote a decision" both now contradict decisions 14 and 15 as written. They narrow: never collapse without a resolvable pin — the pin is what makes removal recoverable — and never graduate a decision that fails the warrant test.
Drift ownership splits by what each tool can see.
okf-checkvalidates pin shape — a page directly underferries/must carrysealed:with all three fields, a hex hash and an ISO date; a<topic>/and a<topic>.mdmay not coexist. Both errors. Shape only, becauseokf-checkruns against OKF trees that need not sit in a jj repo, and per 002's doctrine a validator that cannot exit 0 outside its home repo trains people to ignore it.- refresh validates pin resolution, reporting DRIFT when the
change id does not resolve — it has the repo in hand. The split is
itself a decision: register 017 if warranted, in
okf-layout.mdeither way.
moor gates on okf-check — deferred from 002 pending this ferry
rule. Done-criteria require running it and pasting output.
Seams touched
skills/loop/moor/SKILL.md— the graduation and collapse steps, the two narrowed guardrails, theokf-checkgate in done-criteria.skills/loop/write-OKF/scripts/okf-check— the ferry shape rule. CLI unchanged:okf-check <okf-dir>, findings on stdout, exit 0/1.skills/loop/write-OKF/okf-layout.md—ferries/contract gains the moored shape,sealed:, and the refresh DRIFT rule.OKF/index.md— the two ferry line shapes.OKF/ROADMAP.mdphase 7 — both halves tick as one net-shedding line.
Verify
Weave builds a throwaway fixture in the session scratchpad — a jj repo
holding a minimal OKF with one ferry, one resolved D-1 — moors it by
hand per the rewritten SKILL.md, then runs this against it:
F=$SCRATCH/fixture-okf \
&& test -f $F/ferries/fx-topic.md && test ! -d $F/ferries/fx-topic \
&& grep -q '^sealed:' $F/ferries/fx-topic.md \
&& ls $F/decisions/[0-9][0-9][0-9]-*.md \
&& (cd $F && jj show "$(sed -n 's/.*change: *//p' ferries/fx-topic.md)" >/dev/null) \
&& skills/loop/write-OKF/scripts/okf-check $F \
&& mkdir $F/ferries/fx-topic && ! skills/loop/write-OKF/scripts/okf-check $F \
&& rmdir $F/ferries/fx-topic \
&& skills/loop/write-OKF/scripts/okf-check OKF/ \
&& test "$(wc -l < OKF/ROADMAP.md)" -le 110 \
&& test "$(wc -l < skills/loop/moor/SKILL.md)" -le 110 \
&& echo PASS
Out of scope
- Resolving
ferries/python-siblings/D-1..D-3. They stayopen; that is a real design sitting for/ferry, not this blueprint's fixture. - Landing a test runner or a
prove-*.shharness — moor is prose, so no script can execute its steps, and a fixture builder that cannot run the thing under test does not earn a file. - Backfilling
sealed:— nothing in the tree is moored yet. - Splitting
moor/SKILL.md— it would let Verify's line check pass while the skill grew. Overflow means moor wants a decision, not relief. - Phase 6's scope: taxonomy scan,
modules/,analyses/, andcites:path:symbolpinning (ROADMAP §Risks). - Raising or exempting the 110-line cap.