16 Commits

Author SHA1 Message Date
399830f247 fix(skills): rename write-OKF to write-okf
Skill names must be lowercase a-z, 0-9, hyphens; pi rejected the
uppercase name. Folder, frontmatter name and all references renamed.
2026-10-03 23:44:23 +02:00
c262ea1f92 feat(okf): widen the line cap and add a Guide page type; ends B-031
ROADMAP.md and CONTEXT.md have no split move, so 110 lines left them
nowhere to go. Guides need room for worked examples docs never had.
2026-10-01 15:48:57 +02:00
b6bc88ca29 docs(blueprint): implement blueprint 030
Filename search needs the prefix on disk, not just in prose; a bare
NNN can't tell decisions and blueprints apart by ls or grep.

* refactor(okf): rename decision and blueprint files to R-/B- prefix
* fix(write-OKF): recognize R-/B- filenames in register_numbers
* docs(blueprint): fix numbering step and filename-pattern docs
2026-09-23 14:50:22 +02:00
8d310c6874 docs(blueprint): add 028 convert cross-skill links to skill names
- docs(chart): revise ROADMAP.md phase 14 — repo stays categorized,
  290 cross-skill links become unchecked /skill-name prose instead of
  an install-time transform or repo flatten
- docs(decision): add 023 — cross-skill references are unchecked
  skill names, not paths (mattpocock/skills convention)
- docs(blueprint): draft, sound, and lock 028 — the mechanical
  conversion, new skill-ref-check lint, link-skills.sh, README install
  path
2026-09-23 10:54:22 +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
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
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
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
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
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
e8a769864a docs(okf): extract the why-register from ROADMAP
- docs(okf): add OKF/decisions/ — one file per settled decision, bodies
  migrated verbatim, warrant frontmatter added, numbers 1-16 preserved
- docs(okf): index the register by the question each decision settles
- docs(okf): shed both registers from ROADMAP — decisions to the register,
  believed/true entries to LEARNINGS.md, §Risks keeps forward-looking risk
- docs(okf): compress §Why to its conclusion so ROADMAP clears the 110-line
  cap once warrant frontmatter is added; prior-art scan moves to LEARNINGS
- docs(okf): give every durable page a warrant (purpose, answers, cites)
- docs(okf): retire the empty adr/ for the register

implements blueprint 002
2026-07-21 23:04:44 +02:00
421f4a1a69 docs(okf): plan adaptive taxonomy, page warrants, and the why-register
Prior-art scan (OpenWiki, DeepWiki, deepwiki-skill) found a convergent
pattern octobot lacks: a declared, human-editable page plan that
generation must conform to. Without one, write-OKF has no legal home for
module reference, how-to, or analysis pages, so they land as loose files
in the OKF root.

Locks decisions 7-16 and adds phases 6 and 7:

- Page taxonomy is derived per repo, never fixed - an analysis repo keeps
  analyses in directories and may have no plotting module, a library has
  neither, and a hard-coded layout yields empty ceremonial pages.
- Every page carries a warrant (purpose / answers[] / cites[]) after
  type. A page that answers no question, or one another page owns, is
  inadmissible; the same field doubles as the routing index.
- index.md is the locked page plan; a separate TOC file would duplicate
  its existing job.
- Module and analysis pages are two-zone, so a scan cannot launder
  hand-written judgement.
- One why-register at OKF/decisions/, absorbing the roadmap's locked
  decisions and the empty adr/ directory. Zero ADRs in the project's life
  is evidence the three-of-three rule was unusable where it sat.
- Ferry decisions graduate at moor and the ferry directory collapses to a
  single page, pinned by sealed: to the parent commit where the
  deliberation still exists. The OKF is not the archive of record.
- One okf-check validator, built to the doctrine already written in
  add-copilot-project-skill/project-validator.md. write-OKF and moor gate
  on its pasted output, making the done-gate a run rather than a claim.

ROADMAP is over the 110-line cap until phase 7 lands; closing it is that
phase's first verify clause. Execution order is 7 then 6 - run the
register on octobot itself before freezing it into a contract for other
repos. Phase 7 ships as two blueprints because ferry graduation depends
on the register already existing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 22:32:28 +02:00
82b0b65663 docs(okf): conform octobot wiki to OKF v0.1
docs(okf): add type frontmatter to every page, blueprint, and ferry file
docs(okf): declare okf_version 0.1 in index frontmatter; rename INDEX.md
to reserved lowercase index.md
docs(repo): repoint AGENTS.md, CLAUDE.md, README.md at OKF/index.md
2026-07-20 00:51:47 +02:00
4a112e864d refactor(okf): move specs/ to blueprints/ and ferries/; supersede spec term
refactor(okf): OKF/specs/ becomes flat OKF/blueprints/ (NNN files only); ferry
dirs move to OKF/ferries/<topic>/ so numbering and status greps need no exclusions
docs(okf): INDEX.md gains Blueprints (NNN — title — status) and Ferries
(<topic> — n/m resolved → MAP.md) sections; decisions stay in MAP.md only
docs(okf): CONTEXT.md supersedes spec with blueprint and records the
Contract section; loop pages updated for renamed skills
2026-07-20 00:41:15 +02:00
517777e5df docs(okf): dogfood the open-knowledge-format wiki on octobot itself
- docs(okf): INDEX, SUMMARY, ARCHITECTURE, CONTEXT, ROADMAP, LEARNINGS pages
- docs(okf): ROADMAP carries the 5-phase metaharness build-out, phase 1 verified
- docs(agents): AGENTS.md with the scribe-OKF hook block and house rules
2026-07-19 23:20:42 +02:00