The two spine skills named for a trade, not a passage, take nautical
names: directories, frontmatter, headings, prose, the 26 relative links,
11 cites:, render-check's RETIRED constant and the two ~/.claude/skills
symlinks. chart gains the hand-off edge into ferry and states the
single-request terminal as designed; ARCHITECTURE flow 1 and its two
byte-copies change names only, columns re-padded to hold the shape.
Implements blueprint 024; roadmap phase 12 ticked, and B-023's cite into
the pruned phase text repaired to a path-alone pointer.
Add skills/loop/write-OKF/scripts/link-check, a fourth lint mirroring
okf-check / render-check / skill-check: same argv shape, ERROR prefix,
closing tally and 0/1/2 exit codes. It walks every *.md from the repo
root — dot-directories and OKF/blueprints/ out, render-check's walk
exactly — skips fenced blocks, and errors on any inline link whose
target does not resolve against its containing file's directory.
Register it in write-OKF's run-and-paste line, and unmake the two
ellipsis placeholders the lint catches: architect/SKILL.md's [NNN](…)
and revise.md's [NNN](blueprints/…) become prose, without which the
lint cannot reach green.
Satisfies ROADMAP phase 12's precondition — that rename moves 26 of the
421 link targets, and a grep for the old names proves absence, not that
the new paths resolve.
blueprint 023
Cite resolvability moves above the blueprints/ferries `continue`, so a
blueprint's or ferry's `cites:` are validated at every status, `implemented`
included; the `no cites:` warning stays gated to warrant pages. A
`type: Roadmap` phase entry carrying both a tick and a `**Verify:**` step
is now an error — the mechanical half of R-020's prune.
Repairs the nine stale cites the new rule makes visible (four dropped,
five repointed onto live text), stops architect contradicting R-020 in
three places, and supersedes the stranded blueprint 020.
Implements blueprint 022.
R-022 ruled that a prose cite carries its register's prefix — B-NNN for a
blueprint, R-NNN for the why-register — and its own Consequences noted
nothing enforced it. This is the enforcement: a bare three-digit run
naming a live file in either register, standing in the body of a root or
decisions/ page, is an error.
The exclusions are the rule's hard half and all mechanical: frontmatter,
fenced blocks, code spans, whole markdown links (the path already says
which register), the page's own H1, a number touching / - . or a word
character, and type: Learnings pages — append-only by their own header,
per R-022 §Consequences. Typing that last exemption rather than naming
LEARNINGS.md is what will survive the split into learnings/<theme>.md.
Blueprints and ferries sit outside the check for the same reason their
warrants do: a locked blueprint's prose cannot be legally repaired.
One live site fired — R-022's own example sentence naming the three
collided numbers — repaired with code spans, which the rule permits.
blueprint 021, rule 2.
Per blueprint 019. ROADMAP phase 11 paired 018's ownership move with a
lint "so the copies cannot diverge again", and phase 11 did not verify
until it landed. Divergence already happened once — six sites, three
forms — and what held them together was 018's Verify, a sed range typed
into a blueprint, which expires with it.
That check also carried a live defect: `CANON=$(sed -n ...)` yields the
empty string on a file missing the block, so both copies compared
empty-to-empty and printed `match`. A check that cannot fail is not a
check; the script errors on a missing owner block instead.
A third script rather than a widened sibling: README.md sits at the repo
root, outside `okf-check <okf-dir>` and `skill-check <skills-dir>` both,
and widening either one's root changes the argv contract 017 built
skill-check to mirror.
- feat(write-OKF): add scripts/render-check <repo-root> — OKF/ARCHITECTURE.md
is the named owner, copies are discovered by walking *.md, and a file with
no such fence is a pointer, which phase 11 declares legal. Three error
legs: no owner block (or more than one), a copy diverging byte-for-byte
after per-line trailing-whitespace strip, and the retired flat form
surviving anywhere. OKF/blueprints/ is skipped — a locked Contract is
immutable, so a rule that could turn one red would be unfixable, and
blueprints quote retired forms as record.
- docs(write-OKF): SKILL.md's done-criterion names both scripts, one line
for one line — the page sits at the 110-line cap.
- docs(okf): append the learning — a Contract carrying a byte-exact
artifact eats the blueprint cap. LEARNINGS.md lands at exactly 110.
- docs(okf): phase 11 ticked and pruned to the verified form per 013.
implements blueprint 019
implements blueprint 011:
- okf-check: error on muster+implemented without a tally: (pin-style parser)
- weave: Muster step halts after the seal; review-base recorded at Frame
- blueprint-format, okf-layout: document muster / review-base / tally
- feat(okf-check): error over cap, and cap blueprints at 150 not 110
- docs(okf-layout): name the move at cap+1 per page kind — shed, prune, split
- docs(split-page): add the split procedure, pure-move and index rewiring
- docs(write-OKF): route an over-cap page to split-page.md from refresh
- implements blueprint 009
A `path:92-97` cite fell through the `isdigit()` suffix rule and was
matched as a literal symbol, so it could never resolve. Line ranges are
the same reading aid a bare line number is, and are idiomatic in this
repo prose, so the grammar now admits `N` and `N-M` alike.
New `skills/loop/sound/` — a three-step spine run in order: read the OKF
pages the question touches, query the nostos MCP server when one is
configured, then confirm both against live code, because either can have
gone stale. A claim with no internal owner is followed to its primary
source; nothing else leaves the repo.
Two mouths, per 019. Reached by name it refines the blueprint it sounded
and stamps `sounded: <date>`; self-fired it reports and writes nothing —
a stamp a self-fire cannot make is a stamp a lock can trust. It is the
loop's only model-invoked skill, so README's "All loop skills are
user-invoked" and ARCHITECTURE's invocation seam both stop being true
and are corrected here.
Sounding becomes a precondition of lock: okf-check warns `locked without
sounded:` on a locked blueprint carrying no stamp — never at draft
(not-yet-sounded is correct there) nor at implemented (it would
retro-flag 002-006). Warning, not error, so exit status stays 0.
Implements blueprint 007. The script leg of its Verify is green; the
four session checks need fresh sessions and stay open in ROADMAP.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Refresh proposes a plan delta instead of scanning once at birth: every
scan candidate and every modules/ or analyses/ line already in index.md
sorts into new, standing, or unwarranted, and the user locks the delta as
they lock the plan at scaffold. Jurisdiction stops at what a scan can
see.
Removal had no ruling, so it becomes decision 018: an unwarranted page is
deleted only when wholly derived, superseded otherwise. A wholly derived
page loses nothing a rescan cannot rebuild; for the rest 015 holds, and
history is the archive of record.
okf-scan gains the two clauses 005's weave flagged, both reproduced
first: a directory matched by name alone with a candidate beneath it
proposes nothing, and an unreadable directory yields no evidence rather
than raising and exiting 1.
Implements blueprint 006; ROADMAP gains phase 8, paid for by collapsing
the execution-order note.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Scaffold stopped assuming a fixed four-template skeleton. okf-scan walks a
repo and proposes one evidence-backed page per line; the user locks what
survives into index.md.
- feat(write-OKF): add scripts/okf-scan — analyses/ and modules/ candidates
from two directory-shaped, language-blind signals, evidence per line
- docs(write-OKF): add taxonomy-scan.md — propose-never-write boundary, the
producer seam, proposal to locked plan
- docs(write-OKF): rewrite scaffold steps 2-3 as scan, propose, lock,
materialise only what a producer can fill
- feat(write-OKF): warrant the page templates; add CONTEXT/ROADMAP tpl,
unmaterialised — scaffold output now passes okf-check
- docs(okf): tick roadmap phase 6, spend its path:line churn risk
implements blueprint 005
Blueprint 004. A `cites:` entry now takes three shapes: `path`,
`path:line` (the number is a reading aid, never validated), and
`path:symbol`, which resolves only if the symbol is a literal substring
of the file — so a cite breaks when the thing it cites moves.
Cite drift belongs to okf-check, not refresh: a cite needs only the
working tree, so decision 017's visibility split leaves refresh's DRIFT
rule covering `sealed:` pins alone.
okf-check also validates derived-zone shape — at most one begin/end pair
per page, begin first — with each marker anchored to its whole line, so
a page that documents the markers is not fenced by mentioning them.
The warrant contract and the `sealed:` block move to page-warrant.md,
buying okf-layout.md the headroom for the two new contracts. ROADMAP
phase 6 records its split into 004 (cites + fences) and 005 (taxonomy
scan) and corrects the two Verify clauses this change made false.
Blueprint 004's Verify: PASS.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Implements blueprint 003, phase 7's second half. moor gains two steps:
every resolved D-<n> that passes the warrant test graduates into the
why-register at the next free number, resolution body verbatim and
blocked-by edges dropped; then ferries/<topic>/ collapses into
ferries/<topic>.md carrying a sealed: pin (jj change id, git hash, ISO
date) read off @-, since the sealing commit cannot name itself.
Directory means open, file means moored, so `ls OKF/ferries/` finally
answers what deliberation is in flight.
Both guardrails that contradicted decisions 14/15 narrow rather than
gain exceptions: never collapse without a resolvable pin, never graduate
a decision that fails the warrant test. Done-criteria gate on okf-check,
deferred from blueprint 002 pending this rule.
okf-check learns the ferry shape rule — a page directly under ferries/
carries all three sealed: fields with a hex hash and an ISO date, and
may not coexist with its directory. Shape only: resolving the pin needs
the repo in hand, so refresh owns it, and a validator that cannot exit 0
on a tree copied outside its jj repo trains people to ignore it. That
split earns decision 017.
Verified against a throwaway scratch jj repo moored by hand per the
rewritten SKILL.md: blueprint 003's Verify block PASS, okf-check clean
on the fixture and on OKF/, moor at 106 lines and ROADMAP at 106.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Errors on a missing type, a missing or duplicate warrant, an unresolvable
cite, a page unreachable from index.md, and a register index line that
disagrees with its decision file. Over-cap pages and pages with no cites
warn, so the validator exits 0 on a clean tree.
Stdlib only; the OKF directory is an argument, so callers reach it from
the skill base directory rather than a repo-relative path.
implements blueprint 002