21 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
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
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
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
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
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
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
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
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
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
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
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
559b95deee docs(repo): regenerate skill tables; document the metaharness loop
- docs(readme): loop section completed (blueprint, ferry, implement, steer); four review axes
- docs(claude): loop summary and OKF pointers up top
- docs(okf): roadmap phases 2-5 marked verified; phase-5 count superseded 8 -> 11
2026-07-19 23:30:30 +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