59 Commits

Author SHA1 Message Date
e267800787 docs(blueprint): add 005 propose-the-page-plan-from-a-repo-scan 2026-07-22 01:51:25 +02:00
1b6a5c3ae8 feat(write-OKF): give cites teeth and fence the derived zone
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>
2026-07-22 00:45:22 +02:00
d324ffbf93 docs(blueprint): add 004 give-cites-teeth-and-fence-derived-zone
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.
2026-07-22 00:28:49 +02:00
2e9e6a7f44 feat(moor): graduate ferry decisions and collapse the moored ferry
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>
2026-07-22 00:28:33 +02:00
1d75c42c89 docs(blueprint): add 003 graduate-and-collapse-ferries
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>
2026-07-22 00:03:00 +02:00
0d07011d71 docs(okf): close blueprint 002 — flip status, tick phase 7
- 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
2026-07-21 23:05:34 +02:00
196eacf1ee docs(blueprint): add 002 extract-why-register 2026-07-21 23:04:31 +02:00
82b0b65663 docs(okf): conform octobot wiki to OKF v0.1
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
2026-07-20 00:51:47 +02:00
4a112e864d refactor(okf): move specs/ to blueprints/ and ferries/; supersede spec term
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
2026-07-20 00:41:15 +02:00