200 Commits

Author SHA1 Message Date
478ce9fd91 docs(okf): record two doctrine drifts in ROADMAP risks
Architect revision pass. No new decision file: the warrant test fails
because decision 020 already rules it — "ROADMAP.md prunes a discharged
phase to one line" — and 021 paraphrases the same. The verify-line
question was never open; three lines simply contradict a live decision.

- :84 drops the time-relative "(this session)" — the risk is still
  unvalidated and owed a lint whenever it is read
- :86 adds one entry covering both drifts found sounding blueprint 019:
  architect/SKILL.md:36,:54 and revise.md:15 tell the revision loop to
  keep the verify line and mark the tick on it, against decision 020;
  and okf-check:245 skips blueprints/ferries before its cite loop, so
  no blueprint cites are validated at all

Not done, deliberately: no LEARNINGS.md entry — it sits at 105 of 110
and already owes two, and its growth path per decision 020 is a split
into learnings/<theme>.md, which is split-page work, not an architect
edit. No new phase: ROADMAP:43 opens one only for an arc spanning more
than one blueprint or session.

Section touched: Risks and gotchas. 106 of 110, okf-check 0 errors.
2026-07-30 17:12:43 +02:00
e36f1ebf93 docs(blueprint): add 019 add-a-render-lint-over-the-loop-shape
Traces to ROADMAP.md phase 11, whose second half it is: 018 landed the
ownership move, this is the lint that keeps the copies from diverging.
Sounded 2026-07-30 and locked.

- contract: `render-check <repo-root>`, a third script under write-OKF —
  README.md sits at the repo root, outside both existing walkers
- owner is the fixed path OKF/ARCHITECTURE.md; copies are discovered by
  walking *.md, dot-directories skipped; a file with no fence is a pointer
- compare is byte-exact (trailing whitespace stripped): the block is
  box-drawing art whose column positions carry the routing fork
- three error legs — no owner block, a copy diverges, the retired flat
  form returns; the first kills the false-green in 018 own Verify, where
  a missing block made both copies compare empty-to-empty and print match
- OKF/blueprints/ is skipped: a locked Contract is immutable, so a rule
  that could redden one would be unfixable, and blueprints quote by design

Sounding turned up a second defect, left to blueprint 020: okf-check:245
continues past the cite loop for blueprints/ and ferries/, so no
blueprint cites are validated at all. Proved with an unresolvable cite
that passed 0 errors; recorded in this blueprint §Out of scope.
2026-07-30 17:02:07 +02:00
8784b6f669 docs(okf): own the loop shape in ARCHITECTURE flow 1
Per blueprint 018. The spine was hand-copied into six sites in three
divergent forms, and a flat arrow string cannot state cadence: write-OKF
fires on scaffold or staleness, ferry branches off blueprint rather than
following it, call-charon is the multi-blueprint form of weave, and moor
closes only a ferry-traced chain.

ARCHITECTURE.md flow 1 becomes the sole owner of a 17-line rendering that
draws the routing fork and carries the OKF-refresh cycle in its legend.
README §loop and steer §The loop hold byte-for-byte copies — entry
surfaces where a pointer costs a hop. CONTEXT.md, ROADMAP.md (opening
paragraph and the §Architecture pointer, which aimed at a copy) and
CLAUDE.md stop restating the stages and point at flow 1 instead.

Folded in, same file already open: steer glossed user-invoked as "zero
context load", which it is not — naming a skill loads its body. The flag
buys routing control.

Phase 11 stays open; its Verify needs the lint (blueprint 019) before the
copies are held mechanically.

Verify: owner 17 lines, match on both copies, both greps empty with
strays exit 1, okf-check 0/0, skill-check 0 errors / 9 warnings.
2026-07-30 16:36:54 +02:00
7f2ebf0e9c docs(blueprint): add 018 own the loop's shape in ARCHITECTURE flow 1
Phase 11's first blueprint. The loop's spine is written out in six sites
in three divergent forms — three end at commit-atomic-jj, three continue
to moor — and a flat arrow string cannot state cadence at all: write-OKF
fires on staleness rather than per request, ferry branches off blueprint
rather than following it, call-charon is weave's multi-blueprint form,
and moor closes only a ferry-traced chain.

Declares one canonical rendering, a 17-line block that draws the routing
fork and the OKF-refresh cycle. ARCHITECTURE.md flow 1 owns it — the
page whose purpose: is flows, and which index.md already bills as
carrying the loop. README.md and steer carry byte-for-byte copies as the
entry surfaces a reader hits before OKF/; CONTEXT.md, ROADMAP.md and
CLAUDE.md become pointers, which also settles the interim moor addition
CONTEXT.md's entry was owed.

Two findings folded in while sounding. ROADMAP.md:33 already pointed at
the loop diagram but aimed at README.md, a copy, not the owner — re-aimed
at flow 1. steer/SKILL.md:8 glossed user-invoked as 'zero context load',
which is false: naming a skill loads its body, as drafting this blueprint
did. disable-model-invocation buys routing control, not context savings.

ROADMAP.md is architect's file. What architect owns is the plan — phases,
locked decisions, verify steps; both lines touched here are prose about
the loop's shape, and weave step 7 already routes blueprints back into
that file. Recorded in the Contract so review-blueprint does not flag it.

Verify extracts the block from the owner and string-compares it against
both copies, then greps for the retired forms. Sounded 2026-07-30 against
11 cites; no nostos server configured, so every claim was checked by file
read. 149 of the 150-line blueprint cap; okf-check 0/0.

The lint that makes the copies un-divergeable is blueprint 019 — phase 11
does not verify until it lands.
2026-07-30 16:28:04 +02:00
62cf841db1 docs(okf): prune phase 9, restate the loop, open phases 10 and 11
ROADMAP carried a 20-line body for a phase verified 2026-07-22, which
013 (a plan, not an archive), 020 (prune a discharged phase to one
line) and 021 (a phase line names its blueprint and stops) each already
forbade. 020's prune triggers at cap+1 and the page sat at 83 of 110,
so the rule never fired — recorded under §Risks, since the trigger
belongs on `✅ verified` instead and nothing validates it yet. Safe to
prune: 015 already moved the pending check-3 record onto 007's own
Verify section (007:103), which is the loss 021 warned the prune would
cause.

The vision's loop string was the stale 5-stage form. It now carries the
same token sequence as CONTEXT.md, though wrapped at different points —
which is F5 in miniature, and why 019's lint must compare on
whitespace-collapsed text.

Phases opened for the two arcs spanning more than one blueprint: 10 for
the 2026-07-24 review's remainder (F5-F8 untriaged, F11 ruled but
unswept), 11 for the loop's shape plus the lint that keeps its
renderings from diverging. Blueprints 008-017 stay grandfathered —
`user request <date>` is a declared traces-to value, and index.md
already registers every blueprint with its status, so requiring a phase
per blueprint would duplicate that warrant rather than add one.

okf-check OKF/ -> 0 error(s), 0 warning(s)
2026-07-30 16:03:44 +02:00
6b35878e6c docs(okf): gloss the cap, decision and ferry-decision terms
Three vocabulary rulings from a model-domain session. CONTEXT.md answers
"what is the canonical name for this concept", and all three questions
turned out to be gaps in it rather than drift against it.

- The cap: House cap read "110 lines per SKILL.md", but okf-check
  enforces 110 on OKF pages and 150 on blueprints, so a second word grew
  to cover the rest. Ruling: line cap is the genus (any page kind's
  limit), house cap the 110 both SKILL.md and OKF pages share. The 15
  existing "line cap" sites are correct usage, not drift — no sweep.
- The decision artifact: the glossary had no entry for it at all, so five
  names circulated (ADR x15, decision file x9, why-register x5, register
  file, decision record) — worst inside model-domain itself. Ruling: the
  set is the why-register, the entry is a decision file; ADR survives only
  as a trigger alias users type.
- The collision F9 flagged: ferry/decision-format.md and
  model-domain/decision-format.md describe genuinely different artifacts.
  Ruling: a ferry decision is an open question awaiting the user; a
  decision file is a settled ruling. Distinction glossed, both filenames
  left alone — each is unambiguous inside its own skill.

Graduate loses the path it restated, now that ferry decision and
why-register own those names.

No decision file opened: CONTEXT.md's own answers: entry already owns
"what is the canonical name for this concept", so a register page would
be a duplicate warrant.

CONTEXT.md 94 -> 109 against a 110 cap. okf-layout.md gives a
single-context glossary no split, so the next term needs a cull first.
2026-07-30 14:55:39 +02:00
3b80a6e6c1 feat(skills): lint skill line counts with skill-check
CLAUDE.md §5's 110-line cap on SKILL.md held only in prose, so it decayed
twice — 013 split moor and 016 deduped call-charon and commit-atomic-jj,
both hand-fixes. `okf-check` has enforced the same integer across OKF/
since 009; skills/ now gets its own gate.

A sibling script, not a flag on okf-check: the two trees share the
integer 110 and nothing else, and threading a tree-kind flag through a
275-line OKF-page-shaped validator to reuse a two-line comparison fails
sieve's Minimal test.

- feat(conjure-a-skill): add scripts/skill-check <skills-dir>, walking
  */*/SKILL.md — ERROR over 110, WARN in the 101-110 headroom band with
  the count and the room left. Mirrors okf-check's argv, WARN /ERROR
  prefixes, closing tally and 1/0/2 exit codes
- docs(conjure-a-skill): swap the done-criteria line asserting the cap in
  prose for the script invocation, as write-OKF obliges okf-check; one
  line for one, leaving the file at 105
- docs(blueprint): flip 017 to implemented and update its index line

The tree lands green: 0 errors, 9 warnings, with write-OKF and bdd at the
cap itself. Verify exercises the error leg against a synthetic over-cap
skill — a check that cannot fail is not a check.

implements blueprint 017
2026-07-30 14:55:24 +02:00
60953e9280 docs(blueprint): add 017 add-a-line-cap-lint-over-skills 2026-07-30 14:38:56 +02:00
12659c76d1 refactor(skills): pull call-charon and commit-atomic-jj under the line cap
Both sat at 117 against CLAUDE.md §5's ≤110 cap, and the commit git/jj
twins had drifted out of skeleton parity. The two are coupled: shortening
the jj variant's Principles alone would have created the asymmetry.

The overage was restatement of each skill's own siblings, so this is a
dedup, not a split — no new sibling file.

- refactor(call-charon): point DISPATCH and REVIEW FLOTILLA at
  crossing-format.md §isolation, §builder-brief and §reviewer-brief
  rather than restating them; 117 -> 106
- refactor(commit-atomic-jj): move `jj split`'s parent-side trap into
  anti-patterns.md as its own named section, and collapse the workflow
  tail that restated three anti-patterns already written there; 117 -> 108
- docs(commit-atomic-git): add `## When to use`, levelling the twins'
  `^## ` skeletons by addition, never by subtraction from jj; 97 -> 104
- docs(commit-atomic-jj): point anti-patterns.md's two back-references at
  sections that exist (§5 -> §6, and "Workflow step 5" -> the `jj new` step)
- docs(okf): record that a line-based grep is an unsound reference gate

implements blueprint 016
2026-07-30 13:51:03 +02:00
1d01b99ded docs(blueprint): add 016 pull-two-skills-under-cap-and-level-commit-twins
Locks the 2026-07-24 skills review's F1 (call-charon and commit-atomic-jj
both at 117 against the ≤110 cap) and F4 (the commit git/jj pair is
asymmetric) as one blueprint: cutting the jj variant's Principles alone
would create the very asymmetry F4 asks to remove.

Sounded 2026-07-30 — the overage in both offenders is restatement of
their own siblings, so this is a dedup, not a split.

traces-to user request 2026-07-30
2026-07-30 13:45:25 +02:00
961811a41c docs(okf): record 007's session-check discharges on the blueprint
blueprint 015 §Seams — three seams:
- docs(blueprint): exempt a session-check state marker from the
  immutability rule, so a stamp is not read as an illegal edit
- docs(okf): stamp 007's four session checks with their discharge state
- docs(okf): collapse phase 9's verification evidence to its blueprint

implements blueprint 015
2026-07-30 13:44:45 +02:00
c87a3fb41a docs(blueprint): add 015 record-session-check-discharges-on-the-blueprint
Applies decision 021's three consequences, doctrine before files per
014: blueprint-format gains the stamp exemption, then 007's four session
checks gain markers, then ROADMAP phase 9's verified line collapses.

Contract pins the marker grammar — a date with no observation records
nothing. Sounded 2026-07-30: the immutability gap is real (grep for
'stamp' in blueprint-format returns 0) and 007 at 110 has headroom under
the 150-line blueprint cap, so no split is priced in. Verify
baseline-tested red on all three legs.

Locked on explicit approval.
2026-07-30 13:33:57 +02:00
4c06df571e docs(decisions): rule 021 — a session check discharges on its own blueprint
Some Verify checks a script cannot make ride later sessions. Their state
had no home: 007's four sat as prose in ROADMAP phase 9, where 013 makes
past-tense text inadmissible and 020's prune deletes the one still
pending the first time that page hits its cap.

Rules the record onto the blueprint that wrote the check, stamped on the
check itself. Narrows blueprint-format's immutability rule rather than
breaking it — that rule binds a check's text, not its state marker.

Rejects a terminal 'verified' status as premature: one blueprint has
ever carried a pending check.
2026-07-30 13:23:52 +02:00
bb35812d45 refactor(skills): unify sibling-file naming on lowercase-kebab topic names
Renames the 8 UPPERCASE offload files to topic-named lowercase-kebab and
updates all 33 referring sites, including four OKF cites: blocks that
okf-check would otherwise fail on.

moor's generic reference file splits into graduate.md + collapse.md — it held
two topics, and one-topic-per-file is the rule being enforced; the two links
in moor/SKILL.md lose their anchors and address the files directly.
write-readme's becomes ecosystems.md.

Fixes the doctrine first, in both authorities that state it: CLAUDE.md 5 no
longer prescribes a generic catch-all name, and conjure-a-skill step 4 gains
the casing rule it omitted. Without that, the next skill author reads CLAUDE.md
and recreates the violation.

Both the new doctrine and the LEARNINGS note state the rule positively, naming
no offender: the blueprint's locked Verify greps for the old filenames, so
prose that lists them trips the gate meant to prove the sweep finished.

Implements blueprint 014; flips it to implemented with its index line.
Verify: 0 error(s), 0 warning(s), exit 0.
2026-07-30 13:04:33 +02:00
bcf517f033 docs(blueprint): sound + lock 014 unify-skill-sibling-file-naming
Settles one naming rule for skill offload files: topic-named, lowercase-kebab.
Renames the 8 UPPERCASE siblings and updates all 33 referring sites.

Sounding found the review's F2 framing inverted — CLAUDE.md 5 mandates
REFERENCE.md / EXAMPLES.md, so moor/REFERENCE.md obeyed CLAUDE.md and broke
conjure-a-skill's topic-named-siblings rule. The contradiction between the two
authorities is the defect; the blueprint fixes doctrine before files so the
next skill author cannot recreate the violation.

Precedes the F1 line-cap fixes, whose splits create new sibling files.
2026-07-30 13:03:20 +02:00
760d15ed71 feat(loop): split moor into SKILL.md + REFERENCE.md to hold 110-line cap
012's ferry-muster step pushed skills/loop/moor/SKILL.md to 115 lines,
over the repo's 110-line skill cap (CLAUDE.md §5). Move the COLLAPSE pin
block (sealed:/review-base: yaml + jj log template) and the GRADUATE
frontmatter-move specifics verbatim into a new moor/REFERENCE.md, each
linked from its step; every step name, intent, and guard stays inline.
SKILL.md now 102 lines. Pure relocation — a moor run reads the same
instructions in the same order. Flip 013 status→implemented.

blueprint 013
2026-07-24 11:27:44 +02:00
86e1a08449 docs(blueprint): sound + lock 013 split-moor-into-skill-and-reference
Stamp sounded: 2026-07-24 and flip status draft→locked after the recon
pass verified the line math (moor SKILL.md 115>110), the REFERENCE.md
precedent, and the movable blocks. Index line tracks to locked.
2026-07-24 11:27:26 +02:00
8d51544507 feat(loop): add ferry-level muster gate at moor
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 <noreply@anthropic.com>
2026-07-24 11:19:18 +02:00
531c214e3b docs(blueprint): lock 012 add-ferry-level-muster
incorporates the sound refinement: ferry review-base derived at moor
(Option 3, no ferry/weave seam); muster halts as moor first act, after
GATHER SIGNAL and before CONSOLIDATE, gating all mutations.
2026-07-24 11:01:31 +02:00
2ae4dc4a88 docs(learnings): note okf-check flattens nested frontmatter blocks 2026-07-24 10:39:43 +02:00
5943180375 docs(blueprint): split 010 into 011 (implemented) + 012, supersede 010
splits 010 per growth-doctrine 020, whose ferry-muster needed a seam it never declared:
- 011 add-blueprint-level-muster: implemented, carries the green diff
- 012 add-ferry-level-muster: draft, needs the ferry skill as a seam
- 010 status advanced to superseded-by-011
2026-07-24 10:38:52 +02:00
3421847c15 feat(loop): add blueprint-level muster, the human review gate in weave
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
2026-07-24 10:38:32 +02:00
4e719008a4 docs(blueprint): add 010 add-muster-the-human-review-gate 2026-07-24 10:27:06 +02:00
fda72effec docs(decisions): record the growth-path doctrine as 020
Blueprint 009 shipped the per-kind growth paths and the cap-as-error, but
it alone held the rejected alternative: a uniform `<page>/<theme>.md` rule
for every kind. Blueprints are supersedable and are not the register, so
the why had no queryable home. 020 gives it one, on the 018 precedent —
doctrine in the register, procedure in the skill.

- docs(decisions): add 020, verdict plus the rejected uniform rule
- docs(index): bump the live counter to 20 in OKF/index.md and ROADMAP.md

Sounded 2026-07-24: nostos absent from MCP config, so every claim fell
through to a file read; all four dirty paths and every cite read from
disk. Every growth path held against okf-layout.md and okf-check. The
twelve-pages-over-cap measurement has no owner in this repo — it is
nostos, 2026-07-22 — so 020 now cites blueprint 009 for it.

Verify: okf-check OKF → 0 error(s), 0 warning(s), exit 0; 20 numbered
decision files, 20 index lines, both counters reading 20.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 00:28:28 +02:00
e66be91c73 feat(write-OKF): enforce the line cap by giving every page a growth path
- 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
2026-07-24 00:17:37 +02:00
a6769919c1 docs(blueprint): add 009 give every page a growth path 2026-07-24 00:17:25 +02:00
49f98ba1da feat(sound): make nostos primary and file reads the fallback
Sound queried nostos as a hint and then re-read the same bytes from
disk. Codegraph returns source, not metadata, so that read was a
duplicate everywhere except the two places the index is blind: nothing
indexed, and the working copy.

Step 2 becomes the primary source for what the code says; step 3 opens a
file only on an empty nostos result or a path dirty per one `jj st` per
run. The cite rule moves out of step 3 — it applies to every claim — and
prefers `path:symbol`, matching okf-layout's grammar for page
frontmatter. A new guardrail forbids shelling out to `codegraph`:
freshness is nostos's job, the working copy is sound's.

CONTEXT's Sounding entry and README's one-liner follow. Blueprint 008
flips to implemented; the belief it corrected lands in LEARNINGS.

Implements blueprint 008.

Verify: okf-check OKF/ → 0 error(s), 0 warning(s); sound/SKILL.md 98
lines (cap 110); grep -rni 'live code' over README, CONTEXT and
sound/SKILL.md matches nothing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 23:42:25 +02:00
5686c254b3 docs(blueprint): add 008 make nostos primary and file reads the fallback 2026-07-23 23:36:24 +02:00
5bed76764a docs(roadmap): record 007 check 2 as discharged by the 001 sounding
- docs(roadmap): narrow the pending clause to check 3 alone
2026-07-23 22:21:21 +02:00
3796889191 docs(blueprint): drop 001 — generic write-readme already covers R
Blueprint 001 (add write-readme-r) failed all three sieves against its own
Justification's bar — "must earn its place against that generic path, or
fold into it".

- docs(blueprint): record the 0/3 verdict in 001 §Why dropped, flip status
- docs(okf): mark 001 dropped in the blueprint index
- docs(readme): retire the §Roadmap write-readme-r item — the gap is closed
- docs(write-readme-py): point §Out of scope at generic write-readme
  instead of a planned skill that will not be written

Real fails: the need was self-asserted here, and the one genuinely wrong
behaviour (a host renv::restore() install line) was already fixed in
write-readme/REFERENCE.md without a new skill. The residue — a logo block
and an Apache-aware license block — is not R-shaped and stays untriggered.
2026-07-22 19:26:16 +02:00
9fb6ff3aaa docs(learnings): record that the cite/pin split fails the warrant test
Closes the question 004 left open by stating the doctrine as prose only:
`page-warrant.md:36` already answers who owns cite drift, and 017 gives
the visibility principle it follows from. 020 stays unspent.
2026-07-22 14:17:29 +02:00
aa61a3f51f fix(okf-check): treat a cite line range as a reading aid, not a symbol
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.
2026-07-22 14:17:24 +02:00
6cb19302ea fix(write-readme): read the R install path from evidence, not a default
REFERENCE.md told a README reader to run renv::restore() on the host.
For anything the R scaffolds produce that is wrong: renv::init() is the
user's post-scaffold step, and renv::restore() then runs inside the
image build (containerize-project/Dockerfile.r-*.tpl), so the reader's
entry point is 'just build-dev' then 'just up'. The rule is now stated
as evidence — justfile, Dockerfile, lockfile — with 'omit the section'
as the fallback, since a bare restore is right only for a repo with a
committed lockfile and no container.

build-r-package pointed at a README 'Out of scope' heading that does not
exist; it now names generic write-readme, which already covers
r-package, and blueprint 001 for the dedicated skill.

Blueprint 001 was sounded against the earlier, half-right reading and is
corrected with it: the install clause now says what the Dockerfiles do,
and the REFERENCE fix leaves its seam list and Out of scope, having
landed here instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 14:05:19 +02:00
4b9b9f8281 docs(blueprint): sound 001 and correct what it rested on
001 predates the loop build-out and carried no sounded: stamp. Sounding
it against live code broke two of its claims. The R scaffolds do not
ship without a README generator — generic write-readme already detects
DESCRIPTION and _targets.R and extracts both — so the gap is depth, not
coverage, and the blueprint now says so and must earn its keep against
that path. And renv::restore() is wrong for scaffolded R projects, which
run through docker compose and ship no lockfile; the default traces to
write-readme/REFERENCE.md:38, which the blueprint now corrects instead
of copying.

Seams went from two files to seven — the symlink, the steer row and the
README entries that today's conventions require. Verify became runnable:
every 'just' recipe the README documents must exist in the justfile, and
no renv line may appear without a lockfile.

Status stays draft. Stamped sounded: 2026-07-22.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 14:02:15 +02:00
39cd91944a docs(learnings): record that naming a skill spoils its zero-fire test
Blueprint 007's check 4 measures how often sound fires unasked, and the
description that makes it fire loads the moment the skill is named — so
the check had to run before check 1 and in a session that had not built
it. Generalises to every model-invoked skill octobot adds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 13:50:57 +02:00
fe1ec7d08a docs(roadmap): tick phase 9 on sound's session checks
Checks 1 and 4 ran in a fresh session against a no-OKF fixture: ten
ordinary code questions fired sound zero times, and /sound by name
stopped at one line naming /write-OKF. With the script leg already
green, phase 9 is verified rather than half-verified.

Checks 2 (the nostos-absent line) and 3 (a self-fire leaving its
blueprint byte-identical) still want a session and ride the next
blueprint's sounding.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 13:48:31 +02:00
6441d0f425 feat(sound): add verified recon before a blueprint locks
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>
2026-07-22 13:23:18 +02:00
4d018ffd79 docs(blueprint): add 007 add-sound
docs(blueprint): lock 007 — sound, the recon that precedes a lock
docs(okf): list 007 in the blueprint index
2026-07-22 13:18:22 +02:00
d624bd199d docs(roadmap): collapse closed phases and plan sound
docs(decisions): add 019 — orchestrators are asked for, recon may self-fire
docs(roadmap): replace phases 1–8 with a pointer, per 013
docs(roadmap): add phase 9 — sound, verified recon before lock
docs(context): define Sounding
2026-07-22 13:18:09 +02:00
e55f6e319b feat(write-OKF): rescan the page plan on refresh
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>
2026-07-22 07:15:37 +02:00
52d3cccf30 docs(blueprint): add 006 rescan-the-page-plan-on-refresh 2026-07-22 06:46:42 +02:00
8dc3e823be feat(write-OKF): propose the page plan from a repo scan
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
2026-07-22 01:51:37 +02:00
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
6791bc045d docs(skills): point the skills at the why-register and gate on okf-check
- docs(model-domain): rename ADR-FORMAT.md to DECISION-FORMAT.md — the
  register file format, gated by the warrant test rather than three-of-three
- docs(write-OKF): document decisions/, the warrant contract, and okf-check
  in the layout; require its pasted output in the done-criteria
- docs(skills): retarget OKF/adr references in architect, moor, grill-with-docs,
  write-handoff, the index template, and README

implements blueprint 002
2026-07-21 23:04:56 +02:00
4dd65c22be feat(write-OKF): add the okf-check validator
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
2026-07-21 23:04:50 +02:00