52 Commits

Author SHA1 Message Date
38eae57e6f refactor(lints): walk only what git does not ignore
link-check and render-check each held a byte-identical pages() that
walked the filesystem, so gitignored HANDOFF.md could redden a repo-wide
gate — 024 had to carry "clear HANDOFF.md first" as a run condition, and
a handoff had to be written link-free.

Both now import a shared pages() from _pages.py, whose census comes from
git ls-files --cached --others --exclude-standard: tracked plus
untracked-but-not-ignored is exactly not-ignored, so a page is walked
before it is ever added. Where git cannot answer — not a repo, no git on
PATH — the walk falls back to the old rglob rather than shrinking to
nothing, and the catch is narrow so an unnamed git failure still
surfaces.

023 and 019 each state the old walk in their Contract, so both take
superseded-by-026; their Contract and Verify are untouched, per 022.
023 also cited the docstring the walk moved out of, so that cite follows
it to _pages.py — a cite is a working pointer at every status, per 022 —
and _pages.py words that docstring on one line, because a cite symbol
that wraps never resolves.

026 passed its muster gate (matches: yes) and flips to implemented. Its
Justification loses three lines to fit the tally: block; its Contract and
Verify are byte-identical.

blueprint 026
2026-07-31 16:53:11 +02:00
4c96a80836 docs(blueprint): add 026 walk only what git does not ignore 2026-07-31 16:26:33 +02:00
d08c79db9c feat(blueprint): rule muster explicitly at write time
Step 3 gains a Muster sub-bullet: rule the gate on the criterion of what
the Verify cannot see — true for prose, doctrine and renames whose checks
go green on text that reads wrong, otherwise an explicit false carrying
the reason. Step 5 states the ruling so an unwanted gate is overruled
before the lock. Absence stops being a legal outcome.

Implements blueprint 025, mustered with matches: yes — the first muster
run in this repo. Opt-in semantics unchanged: absent still means off, and
okf-check keeps its one muster rule.
2026-07-31 16:04:47 +02:00
4d60a2a956 docs(blueprint): add 025 rule muster on every blueprint
Blueprint-level muster (B-011) shipped and never fired: no blueprint has
ever carried the field. 025 makes `blueprint` rule the gate out loud at
write time — `muster: true`, or the explicit `muster: false` B-011
already allows — so a skipped gate is a decision rather than an
oversight. Opt-in semantics and okf-check's one muster rule stay as they
are.

Sounded 2026-07-31; rules itself muster: true.
2026-07-31 16:00:07 +02:00
4ce70d3f8e refactor(loop): rename architect to chart and weave to rig
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.
2026-07-31 15:36:36 +02:00
583112d064 docs(blueprint): add 024 rename of the spine to chart and rig
Locks blueprint 024, phase 12: architect becomes chart and weave becomes
rig, and chart gains the hand-off edge into ferry it never had.

The rename is mechanical; the pointers are not. Four kinds break, each
caught by a different check or by none: 26 relative links across 24 files
(link-check, landed by 023), 11 frontmatter cites (okf-check) — nine of
them existing, two of them this blueprint's own — render-check's RETIRED
constant, which is a string and not a link, and two symlinks outside the
repo that nothing checks at all.

Sounding fixed three things. Cite arithmetic contradicted itself: the
blueprint's own two pointers are not among the nine it enumerated, so
eleven repoint, not nine. ferry names architect three times, not twice.
And link-check walks gitignored HANDOFF.md, whose backticked link syntax
reds it — 024's Verify was unrunnable as written, so it now carries a run
condition, and the general fix is named as a 023 supersession.

Sealed cites move; sealed prose does not. 022 settled that a cite is a
working pointer at every status, so repointing six inside implemented
blueprints is an obligation. Their bodies, and the four implemented Verify
blocks that name paths this deletes, are recorded and left alone.
2026-07-31 15:23:55 +02:00
68ad38188e feat(link-check): lint relative markdown links across the repo
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
2026-07-31 13:51:27 +02:00
83f78aa618 docs(blueprint): add 023 link lint over relative markdown links
Locks blueprint 023, phase 12's precondition: nothing today validates a
relative markdown link, and phase 12 moves 26 of the 421 in skills/.

Sounding changed the design before the lock. A naive walk reports 28
unresolvable links, so the lint as first specified could never have gone
green: 17 sit inside fenced code blocks (illustration, not navigation) and
9 in OKF/blueprints/ (sealed, append-only history). Both are excluded, the
second mirroring render-check. The remaining 2 are ellipsis placeholders in
architect, repaired by the blueprint itself.
2026-07-31 13:02:50 +02:00
4dfe4e200a feat(okf-check): error on a blueprint cite and a discharged phase verify step
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.
2026-07-31 10:16:24 +02:00
1b9aa038b2 docs(blueprint): add 022 validate-every-cite-at-every-status 2026-07-31 10:12:01 +02:00
75a52f1da4 docs(okf): record the stranded-Verify learning and close 021
B-020's Verify runs wc -l over OKF/LEARNINGS.md, which B-021 deleted, so
B-021 stranded it before it had ever run — and the immutability that
protects a Contract from drift is what forbids repairing it. Filed under
the loop, the layer it forces to change: a blueprint that moves a path
owes a check of which locked Verify already names it.

Status flipped to implemented with the Verify block pasted; index.md's
line follows. No roadmap tick — B-021 traces to a user request, and
ROADMAP.md:44-47 indexes those in index.md rather than opening a phase.

blueprint 021 — close.
2026-07-30 20:33:04 +02:00
99239e1e93 docs(blueprint): add 021 align-validator-and-doctrine
Locked and sounded 2026-07-30. Rules the three doctrine/okf-check
disagreements, two deferred here by B-020:

- split-page.md and okf-layout.md move the capped page to
  <theme-dir>/index.md, so reachable() is left untouched and the spine
  invariant survives; LEARNINGS.md splits into learnings/ under this
  blueprint, its own cap+1 trigger
- an unprefixed register cite in prose becomes an okf-check ERROR,
  scoped to root and decisions/ pages, type: Learnings exempt
- blueprint-format.md declares cites: as optional (B-015 carries none)

B-020 needs superseding: rule 1 deletes the OKF/LEARNINGS.md its
immutable Verify runs wc -l over. Named in 021 Out of scope, not done.
2026-07-30 20:17:00 +02:00
bc2d3c971e feat(loop): lint the loop's rendered shape with render-check
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
2026-07-30 20:16:34 +02:00
111d34da1f docs(blueprint): add 020 enforce-the-prune-and-validate-every-cite
Locked and sounded 2026-07-30. Takes the two okf-check defects B-019 handed
it plus the architect lines contradicting R-020:

- a ROADMAP phase entry carrying both an okf-check tick and **Verify:** errors
- the cite-resolvability loop moves above okf-check:245, so blueprint and
  ferry cites are validated; no cites: stays gated to warrant pages
- architect/SKILL.md:36,:54 and revise.md:15 narrow to the open phase

R-022 prefix lint and blueprint-format declaring cites: deferred to 021.
2026-07-30 17:51:49 +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
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
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
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
4e719008a4 docs(blueprint): add 010 add-muster-the-human-review-gate 2026-07-24 10:27:06 +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
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
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
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
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
196eacf1ee docs(blueprint): add 002 extract-why-register 2026-07-21 23:04:31 +02:00