119 Commits

Author SHA1 Message Date
437244c611 fix(commit-lint): resolve commit-msg-check from skill dir not cwd
The workflow snippets hardcoded a repo-relative path, which only
resolved when cwd was octobot itself, breaking in any other repo.

* fix(commit-atomic-jj): use skill's own base dir for commit-msg-check
* fix(commit-atomic-git): same fix for the --install-hook line
* docs(commit-atomic-jj): note the resolution rule in message-format.md

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 14:38:32 +02:00
5f776263ed docs(commit-atomic-jj): warn against skipping commit-msg-check
Nothing stops a bad message except running the check before jj
describe, since jj has no hook mechanism.

* docs(commit-atomic-jj): add anti-pattern for skipped pre-describe check
* fix(commit-atomic-jj): stale CLAUDE.md ref, docs-travel rule uses AGENTS.md

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 14:36:07 +02:00
045c4d94a8 feat(commit-lint): add structural commit-msg validator
Verbose, inconsistent commit messages make the log hard to scan. A
structural checker keeps every message short and shaped the same way.

* feat(commit-lint): validate 1-3 block message grammar and line length
* feat(commit-lint): add --install-hook for real git commit-msg hooks
* docs(commit-atomic-jj): point rule 3 at new message-format.md
* docs(commit-atomic-git): document hook install, link shared grammar
* fix(commit-atomic-jj): update stale section refs and example lines
* fix(commit-atomic): say AGENTS.md not CLAUDE.md for docs-travel rule

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 14:33:20 +02:00
5535d89963 feat(lints): okf-check validates OKF directory completeness
- feat(lints): error on an OKF/ directory holding .md files with no
  index.md (open ferry topic dirs may carry MAP.md instead)
- feat(lints): error on an index.md not directly linking every .md file
  beside it
- docs(okf): add blueprints/index.md and ferries/index.md, delegating
  from OKF/index.md the way decisions/ and learnings/ already do

implements blueprint 029
2026-09-23 13:04:01 +02:00
4b3423d91b fix(skills): init-octobot — close two upstream-CLAUDE.md gaps
Diffed simplicity-block.md against the actual upstream source
(multica-ai/andrej-karpathy-skills/CLAUDE.md) rather than just octobot's
own adapted copy. Two rules named nowhere in the merged AGENTS.md:
§3's 'notice unrelated dead code, mention it — don't delete it', and
§2's 'no error handling for impossible scenarios' / 'no unrequested
flexibility or configurability' (previously folded silently into
'not speculative'). Also restored §4's worked examples and the
strong-vs-weak success-criteria line, dropped earlier for terseness.

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 12:52:42 +02:00
f20f05eb38 fix(skills): init-octobot — substitute <project> everywhere, dedupe simplicity block
Dry run surfaced two bugs: the Knowledge block's <project> placeholder
was never substituted outside the OKF templates, and the new Simplicity
& rigor section restated three of Behavioral guardrails' bullets instead
of adding only their delta — real duplication, not essence-merging.
Rewrote simplicity-block.md as a union-minus-overlap of CLAUDE.md §1-4
against agents-md-hook.md, verified no information lost by checking
every CLAUDE.md §1-4 claim resolves in one of the two sections.

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 12:47:33 +02:00
e216fcc7ca feat(skills): add init-octobot skill
Bootstraps AGENTS.md, optional CLAUDE.md, a bare OKF/, and README.md
into any repo that never ran octobot before — fixes the gap where
octobot was dropped into an ongoing repo with no ROADMAP, OKF, AGENTS.md,
or CLAUDE.md. Adds its /steer row so it's discoverable.

Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
2026-09-23 12:39:48 +02:00
277ec801de refactor(skills): convert cross-skill links to /skill-name references
- implements blueprint 028
- rewrite 290 cross-skill markdown links across 59 files to unchecked
  backtick-wrapped /skill-name prose (R-023), so skill content resolves
  under any install depth — symlinked, flat-copied, or whole-tree
- add skills/productivity/conjure-a-skill/scripts/skill-ref-check —
  validates every /skill-name mention resolves to a real skill folder,
  the replacement coverage link-check lost on these references
- add scripts/link-skills.sh, mirroring mattpocock/skills, symlinking
  every skill into ~/.claude/skills and ~/.agents/skills
- docs(readme): point Install at link-skills.sh and npx skills@latest
  add for non-Claude-Code harnesses
2026-09-23 11:03:25 +02:00
68c8c18d0d feat(lints): error when a mustered blueprint reaches implemented on matches: no
okf-check only checked that a mustered blueprint carried a tally: block
before implemented, never what it said. tally: matches: no is a non-empty
block, so it passed the same check a missing block failed — the muster
gate silently let a known miss through.

The check now reads the verdict: matches: no on an implemented, mustered
blueprint is now an error distinct from the missing-tally: one; matches:
yes and everything else are untouched. Verified against a fixture and the
real tree per blueprint 027 §Verify.

027 traces to a user request, carries muster: false (the Verify proves
the exact fixed case, not just tree-green), and flips to implemented.
Filed as a learning at OKF/learnings/validators.md — presence of a field
is not a verdict on it.

implements blueprint 027
2026-09-23 10:08:17 +02:00
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
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
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
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
5783bd896e docs(skills): close the phase-10 skills-consistency findings
docs(grill-with-docs): trim the description to one human-facing line (F6)
docs(nuke-review): trim the description to one human-facing line (F6)
docs(grill-with-docs): add When to use / Output / See also, the router shape (F7)
docs(conjure-a-skill): legitimise evocative headings for spine and router skills (F8)
docs(model-domain): normalise descriptive ADR uses to "decision file" (F11)

F8 is ruled here rather than in the roadmap phase: R-020 prunes a discharged
phase to one line, so a ruling recorded there does not outlive it.
2026-07-31 13:02:36 +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
51ffca5a6a feat(okf-check): error on an unprefixed register cite in prose
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.
2026-07-30 20:29:30 +02:00
579bf5e804 docs(write-OKF): move the parent to <theme-dir>/index.md on a split
split-page.md §Rewiring the index said the capped page keeps its name and
becomes its subpages' index, but okf-check's reachable() walks on only
through pages named index.md or MAP.md — so every subpage of such a
parent errors 'not reachable from index.md'. Doctrine instructing into a
validator error.

The parent now moves to <theme-dir>/index.md and index.md's single line
repoints at it; reachable() is untouched. Widening the walk was rejected:
the narrow rule is what buys the spine guarantee, and a split is rare
enough to pay a rename. okf-layout.md's LEARNINGS.md contract and tree
comment follow.

blueprint 021, rule 1 — doctrine half.
2026-07-30 20:29:30 +02:00
d7c365adf7 docs(blueprint): declare cites: in the blueprint format
blueprint-format.md named traces-to and sounded: only, while every
blueprint since B-014 but B-015 carries a cites: block. Declares it
optional — B-015 is why — with the cite grammar left owned by
okf-layout.md §Conformance rather than restated.

blueprint 021, rule 3.
2026-07-30 20:27:23 +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
e6f92335f9 docs(okf): cite registers with a B-/R- prefix in prose
Blueprints and the why-register number independently, so 013, 017 and
019 each already name two unrelated pages. A markdown link is safe —
its path says which — but a bare number in prose is not. Prose now
takes a register prefix: B-NNN blueprint, R-NNN why-register, D-n
ferry decision. Filenames, link targets, index labels and
superseded-by-NNN status values are untouched.

- adds decision 022 with the reasoning, including why D- was rejected:
  D-<n> already names a ferry decision on disk and in CONTEXT.md, so
  reusing it would fuse two namespaces that today collide only in type:
- CONTEXT.md states the rule in the intro; 109 of 110 after compressing
  the entry twice, since R-020 gives it no growth path short of a split
  it does not qualify for
- retrofits the live pages rather than applying it forward-only, which
  would leave two dialects — the defect phase 10 exists to remove
- ROADMAP.md:43, :84, :87, :94 and 021:32; moor and build-r-package
  each carried one genuinely ambiguous cite

LEARNINGS.md is deliberately not retrofitted: it is append-only by its
own header, so its bare numbers stand and new entries carry the prefix.
Locked blueprints are left as written for the same reason.

Nothing enforces this yet — a bare three-digit number outside a link is
a lint the okf-check blueprint should carry, or the rule decays exactly
as R-020 prune did. okf-check 0 errors, skill-check 0 errors.
2026-07-30 17:24:17 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
c1643b75b9 docs(commit-atomic-jj): fix jj split parent/child semantics
The workflow labelled split paths <paths-for-second-change>, but jj split
extracts the selected paths into the FIRST (parent) commit and leaves the
rest in @ (the child). Correct the semantics, surface -m (sets the first
commit; @ keeps the original message) and the JJ_EDITOR=true guard at the
point of use, and cross-ref both the backgrounding and headless-editor
anti-patterns. Verified against jj 0.38.
2026-07-21 02:41:58 +02:00
39692758ed refactor(skills): rename resolve-conflicts to resolve-conflicts-jj
- refactor(resolve-conflicts-jj): move dir, update name frontmatter and H1
- refactor(resolve-conflicts-jj): description routes plain git repos to
  resolve-conflicts-git, mirroring the reverse pointer
- docs: update references in resolve-conflicts-git, setup-git-guardrails,
  steer routing table, call-charon crossing-format, README, OKF/ROADMAP
2026-07-20 01:52:22 +02:00
0a81ac6691 docs(commit-atomic-git): backlink setup-git-guardrails in See also
- docs(commit-atomic-git): name the hook as mechanical backstop for the
  force-push and destructive-command anti-patterns
2026-07-20 01:49:37 +02:00
ddfcdb787f feat(skills): add setup-git-guardrails — tuned port of mattpocock git hook
- feat(setup-git-guardrails): PreToolUse hook blocks reset --hard,
  clean -f combos, branch -D, checkout/restore ., force push
- feat(setup-git-guardrails): tuned vs upstream — plain push and jj git
  push allowed, --force-with-lease exempt, short -f caught, dotfile
  paths (checkout .config) not false-positived
- docs(setup-git-guardrails): three-case verify contract; jj mutations
  left unblocked (op log recoverable)
2026-07-20 01:44:47 +02:00
362de528b7 docs(call-charon): route git-mode seal and conflicts to new git skills
- docs(call-charon): git-mode seal cites commit-atomic-git instead of
  "plain commit" hand-wave
- docs(call-charon): git-mode integration conflicts point at
  resolve-conflicts-git
2026-07-20 01:37:21 +02:00
d0e02823cb feat(skills): add resolve-conflicts-git — git counterpart of resolve-conflicts
- feat(resolve-conflicts-git): topology-first rule ported; abort+rebase
  --onto replaces jj rebase -s for phantom conflicts
- feat(resolve-conflicts-git): both-intents reading via zdiff3 markers,
  git show :1:/:2:/:3:, git log --merge -p
- feat(resolve-conflicts-git): headless guards — GIT_EDITOR=true on
  continue, marker grep before continuing, rerere for rebase replays
2026-07-20 01:37:16 +02:00
15e995bcf6 feat(skills): add commit-atomic-git — git counterpart of commit-atomic-jj
- feat(commit-atomic-git): same atomic principles; staging area replaces
  jj split, headless hunk split via git apply --cached
- feat(commit-atomic-git): git-specific anti-patterns — blind -am/add .,
  unread --cached diff, invisible untracked files, headless editor hang
- docs(commit-atomic-git): description scoped to non-jj repos so "commit"
  routes to commit-atomic-jj when .jj exists
2026-07-20 01:37:10 +02:00
9be133618c fix(call-charon): make crossings VCS-aware and briefs self-contained
- fix(call-charon): detect jj vs git at ORIENT; jj workspaces for dispatch
  (Agent worktree isolation is git-only — jj cannot run in git worktrees)
- fix(call-charon): add §isolation and §integration contracts per mode;
  run Verify post-integration in the main workspace
- fix(call-charon): inline axis criteria verbatim into reviewer briefs —
  subagent-side skill paths break in worktrees/remote runners and
  disable-model-invocation axes are invisible to Skill tool
- fix(call-charon): builder brief uses absolute weave/bdd paths and ends
  with a commit in git mode
- docs(call-charon): clarify guardrail — blueprint content frozen,
  status frontmatter flips allowed
2026-07-20 01:34:55 +02:00
b4a32de692 feat(skills): add call-charon — agent-orchestrated ferry crossing
One worktree builder per blueprint, four-axis review flotilla,
orchestrator-run Verify gate, passage logged in the ferry's MAP.md.
Sibling crossing-format.md holds the brief and log contracts; steer
gains its row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 01:18:54 +02:00