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>
Phase 6 part A, locked. Extends decision 017's visibility split: a cite
resolves with only the working tree, so cites drift belongs to okf-check
while sealed: pin resolution stays with refresh. Adds the path:symbol
cite shape, the okf:derived fence contract, and the page-warrant.md
extraction that buys okf-layout.md the headroom to carry both.
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>
Phase 7's second half: ferry decisions graduate into the why-register at
moor, and the ferry directory collapses into one sealed page. Locked.
Three calls the sources left open, now in the Contract:
- moor's "never delete a ferry directory" and "never auto-promote a
decision" guardrails contradict decisions 14/15, so they narrow rather
than gain an exception.
- Pin drift splits by visibility: okf-check validates sealed: shape (it
runs on OKF trees outside any jj repo), refresh validates resolution.
- The fixture is a throwaway scratch jj repo, so python-siblings stays
open for a real ferry sitting.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- docs(okf): mark 002 implemented in its frontmatter and the index line
- docs(okf): tick the register half of phase 7 with its verified date
- docs(okf): record that a page-cap plan must price the frontmatter it
mandates — the warrant cost ROADMAP more than the blueprint budgeted
- docs(model-domain): forbid an em-dash inside a register question, since
it is the index line delimiter
implements blueprint 002
- docs(okf): add OKF/decisions/ — one file per settled decision, bodies
migrated verbatim, warrant frontmatter added, numbers 1-16 preserved
- docs(okf): index the register by the question each decision settles
- docs(okf): shed both registers from ROADMAP — decisions to the register,
believed/true entries to LEARNINGS.md, §Risks keeps forward-looking risk
- docs(okf): compress §Why to its conclusion so ROADMAP clears the 110-line
cap once warrant frontmatter is added; prior-art scan moves to LEARNINGS
- docs(okf): give every durable page a warrant (purpose, answers, cites)
- docs(okf): retire the empty adr/ for the register
implements blueprint 002
Prior-art scan (OpenWiki, DeepWiki, deepwiki-skill) found a convergent
pattern octobot lacks: a declared, human-editable page plan that
generation must conform to. Without one, write-OKF has no legal home for
module reference, how-to, or analysis pages, so they land as loose files
in the OKF root.
Locks decisions 7-16 and adds phases 6 and 7:
- Page taxonomy is derived per repo, never fixed - an analysis repo keeps
analyses in directories and may have no plotting module, a library has
neither, and a hard-coded layout yields empty ceremonial pages.
- Every page carries a warrant (purpose / answers[] / cites[]) after
type. A page that answers no question, or one another page owns, is
inadmissible; the same field doubles as the routing index.
- index.md is the locked page plan; a separate TOC file would duplicate
its existing job.
- Module and analysis pages are two-zone, so a scan cannot launder
hand-written judgement.
- One why-register at OKF/decisions/, absorbing the roadmap's locked
decisions and the empty adr/ directory. Zero ADRs in the project's life
is evidence the three-of-three rule was unusable where it sat.
- Ferry decisions graduate at moor and the ferry directory collapses to a
single page, pinned by sealed: to the parent commit where the
deliberation still exists. The OKF is not the archive of record.
- One okf-check validator, built to the doctrine already written in
add-copilot-project-skill/project-validator.md. write-OKF and moor gate
on its pasted output, making the done-gate a run rather than a claim.
ROADMAP is over the 110-line cap until phase 7 lands; closing it is that
phase's first verify clause. Execution order is 7 then 6 - run the
register on octobot itself before freezing it into a contract for other
repos. Phase 7 ships as two blueprints because ferry graduation depends
on the register already existing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
docs(okf): add type frontmatter to every page, blueprint, and ferry file
docs(okf): declare okf_version 0.1 in index frontmatter; rename INDEX.md
to reserved lowercase index.md
docs(repo): repoint AGENTS.md, CLAUDE.md, README.md at OKF/index.md
refactor(okf): OKF/specs/ becomes flat OKF/blueprints/ (NNN files only); ferry
dirs move to OKF/ferries/<topic>/ so numbering and status greps need no exclusions
docs(okf): INDEX.md gains Blueprints (NNN — title — status) and Ferries
(<topic> — n/m resolved → MAP.md) sections; decisions stay in MAP.md only
docs(okf): CONTEXT.md supersedes spec with blueprint and records the
Contract section; loop pages updated for renamed skills