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
This commit is contained in:
Łukasz Boryń 2026-07-21 02:41:58 +02:00
parent 196eacf1ee
commit e8a769864a
24 changed files with 357 additions and 91 deletions

View File

@ -1,5 +1,13 @@
---
type: Architecture
purpose: Map the skill categories, the seams between them, and the flows that cross them.
answers:
- "Which module owns a given skill, and where are the seams?"
cites:
- skills/loop
- skills/engineering/bdd/SKILL.md
- skills/productivity/conjure-a-skill/PRINCIPLES.md
status: live
---
# octobot — architecture

View File

@ -1,5 +1,12 @@
---
type: Glossary
purpose: Fix octobot's own vocabulary — one canonical name per concept, with what to avoid.
answers:
- "What is the canonical name for this concept in octobot?"
cites:
- skills/productivity/conjure-a-skill/GLOSSARY.md
- skills/loop/write-OKF/okf-layout.md
status: live
---
# octobot — context

View File

@ -1,5 +1,12 @@
---
type: Learnings
purpose: Keep what was believed, what turned out true, and the source that settled it.
answers:
- "What did we get wrong here, and what is actually true?"
cites:
- README.md
- skills/productivity/commit-atomic-jj/anti-patterns.md
status: live
---
# octobot — learnings
@ -20,3 +27,17 @@ type: Learnings
produces phantom conflicts; rebasing onto the true destination shrank
a 2-file conflict to 1 file before any hand-resolution. Source:
session 2026-07-19 (write-readme-py conflict).
- Believed: skills can cross-invoke via description matching. True:
cross-links are file paths, so disable-model-invocation is safe for
linked skills; only description routing dies. Source: Claude Code
skill mechanics, README §Install.
- Believed: OKF was an octobot coinage. True: OKF v0.1 is also what
OpenWiki emits, so import-compat is nearly free — but its output model
(hundreds of generated files, CI-refreshed) is opposite pressure to
OKF's ≤110-line durable synthesis. Source: langchain-ai/openwiki
(scanned 2026-07-21).
- Believed: declared page plans were an octobot invention. True: they are
convergent prior art — DeepWiki `pages[]{title, purpose, parent}` and
deepwiki-skill's `toc.yaml`; decision 9 is the same move minus a config
format. Source: <https://docs.devin.ai/work-with-devin/deepwiki>,
<https://github.com/natsu1211/deepwiki-skill> (scanned 2026-07-21).

View File

@ -1,5 +1,11 @@
---
type: Roadmap
purpose: Carry only what is still ahead — phases, their verify steps, and live risk.
answers:
- "What is octobot building next, and how is each phase verified?"
cites:
- OKF/decisions/index.md
status: live
---
# octobot Roadmap
@ -11,79 +17,16 @@ substrate, alongside the existing practice/scaffold skills. Vocabulary:
## Why (gap vs prior art)
| repo | has | lacks |
|---|---|---|
| mattpocock/skills | blueprint/ticket pipeline, tracker-backed | file-based substrate, jj, R/Py ecosystem, debloat/review axes |
| obra/superpowers | subagent execution, verification gate | persistent wiki memory, ecosystem scaffolds |
| octobot pre-2026-07 | review axes, scaffolds, jj discipline | plan→blueprint→weave spine, knowledge substrate |
| langchain-ai/openwiki | OKF v0.1 emitter, CI auto-refresh, doc Q&A | durable-synthesis caps, human-locked page plan, loop wiring |
| Cognition DeepWiki | declared page plan (`.devin/wiki.json`), page hierarchy | local/file-based, OKF conformance, warrant checks |
| natsu1211/deepwiki-skill | TOC-first generation, line-level cites, `--update` | taxonomy adapted per repo shape, judgement/derived split |
Sources: <https://github.com/langchain-ai/openwiki>,
<https://docs.devin.ai/work-with-devin/deepwiki>,
<https://github.com/natsu1211/deepwiki-skill> (scanned 2026-07-21).
Octobot's slot: file-based loop over OKF (open-knowledge-format), jj-native.
Octobot's slot: a file-based loop over OKF (open-knowledge-format),
jj-native. mattpocock/skills has the blueprint pipeline but no substrate;
obra/superpowers has subagent execution but no persistent wiki; neither
carries the R/Py scaffolds or the debloat/review axes. The prior-art scan
behind that claim, and what it debunked: [LEARNINGS.md](LEARNINGS.md).
## Locked decisions
1. OKF = open-knowledge-format at target project's `./OKF/` — reversible
(it's files). Karpathy-LLM-wiki style; OpenWiki-inspired, dependency-free.
2. architect replaces plan-project + update-project (mode-routed) —
reversible by re-splitting.
3. Blueprints are files with status frontmatter, not tracker issues — the
"tracker" is grep. Reversible via export.
4. One canonical glossary per bounded context, never per issue.
5. Handoff gate: no mutating subagent without a brief (goal, OKF/blueprint
refs, verify command); read-only lookups exempt.
6. New skill names: imperative-verb-first; legacy names grandfathered.
7. Page taxonomy is **derived per repo, never fixed** — write-OKF scans
disk, proposes a page plan, user locks it. A fixed layout yields empty
ceremonial pages: analysis repos keep analyses in directories and may
have no plotting module; libraries have neither. Reversible — collapse
to a fixed list in okf-layout.md.
8. Every page carries a **warrant** after `type`: `purpose`, `answers[]`,
`cites[]`. Zero `answers`, or answers another page owns → inadmissible;
unresolved `cites` → drift. Doubles as routing index
(`grep -r "answers:" OKF/`). Reversible — OKF v0.1 permits
producer-defined fields after `type`.
9. `index.md` **is** the locked page plan; no TOC file, which would
duplicate index.md's job. Absent from index.md → inadmissible.
Reversible by extracting TOC.md.
10. Module and analysis pages are **two-zone**: `<!-- okf:derived -->`
fences the scan-regenerated seam, everything outside is judgement —
append/supersede only, never scan-edited. Reversible — drop fences,
fall back to the existing whole-page supersede rule.
11. Code-reference layer stays **inside write-OKF** as siblings
(`taxonomy-scan.md`, `page-warrant.md`), not a new skill — one
trigger, one mental model. Reversible by extraction if the router
breaches the house cap.
12. **One why-register**: `OKF/decisions/NNN-<slug>.md`, indexed by the
question each settles. Absorbs this section and `adr/` (empty at
absorption — zero migration cost, and evidence three-of-three was
unusable); the warrant replaces the three-of-three rule. Reversible
by re-splitting.
13. ROADMAP is a **plan, not an archive** — decisions move to the
register, debunked claims to LEARNINGS.md (which already duplicates
them by instruction), §Risks keeps only forward-looking risk.
14. Ferry decisions **graduate at moor** into the register; MAP.md keeps
a pointer, never a copy.
15. Moor **collapses** `ferries/<topic>/` into `ferries/<topic>.md` —
problem shape, rejected alternatives, decision pointers. Directory
means open, file means moored, so `ls` answers what's in flight.
Deliberation stays recoverable via `sealed:` (jj change id + git
hash + date) pinned to the **parent** (`@-` at moor) — the sealing
commit cannot name itself, and the parent is where the D-n files
still exist. Unresolvable pin = drift. Reversible: OKF is not the
archive of record, history is.
16. **One `okf-check` validator** at `write-OKF/scripts/`, built to the
existing doctrine in
[add-copilot-project-skill/project-validator.md](../skills/engineering/add-copilot-project-skill/project-validator.md);
write-OKF and moor both gate on its pasted output, so the done-gate
is a run, not a claim. Per that doctrine it must pass clean on
octobot today — over-cap pages are a **warning** until phase 7, never
an error. Reversible by inlining the checks as prose.
16 live, in the why-register: [decisions/index.md](decisions/index.md).
Each line is the question its decision settles. Cite by number.
## Architecture
@ -146,27 +89,8 @@ See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`.
and makes octobot's own OKF *run* the register before phase 6 freezes it
into a contract for other repos. Numbers stay as issued — append-only.
> ROADMAP is over the 110-line cap until phase 7 lands. Tracked, not
> ignored — closing it is that phase's first verify clause.
## Risks & gotchas
- Believed: skills can cross-invoke via description matching. True:
cross-links are file paths, so disable-model-invocation is safe for
linked skills; only description routing dies. Source: Claude Code
skill mechanics, README §Install.
- Trigger collisions with co-installed plugins (superpowers, caveman)
— the invocation audit (phase 5) is the mitigation.
- `jj` mutations backgrounded hang on the headless editor — always
foreground, use `-m`/`--use-destination-message`
([LEARNINGS.md](LEARNINGS.md)).
- Believed: OKF was an octobot coinage. True: OKF v0.1 is also what
OpenWiki emits, so import-compat is nearly free — but its output model
(hundreds of generated files, CI-refreshed) is opposite pressure to
OKF's ≤110-line durable synthesis. Source: langchain-ai/openwiki.
- Declared page plans are convergent prior art, not invention — DeepWiki
`pages[]{title, purpose, parent}` and deepwiki-skill's `toc.yaml`.
Decision 9 is the same move minus a config format.
- Open, for phase 6's blueprint: `cites:` pinned at `path:line` churns on
every refactor — the staleness detector is also the maintenance bill.
Candidate mitigation `path:symbol` where the language allows.

View File

@ -1,5 +1,12 @@
---
type: Summary
purpose: Orient an agent landing cold — what octobot is, how it runs, what to read next.
answers:
- "What is octobot and how do I run it?"
cites:
- README.md
- skills
status: live
---
# octobot — summary

View File

View File

@ -0,0 +1,15 @@
---
type: Decision
purpose: Fix where a project's knowledge substrate lives and what shape it takes.
answers:
- "Where does a project's OKF live?"
cites:
- skills/loop/write-OKF/okf-layout.md
status: live
reversible: it's files
---
# 001 — OKF at the target project's ./OKF/
OKF = open-knowledge-format at target project's `./OKF/` — reversible
(it's files). Karpathy-LLM-wiki style; OpenWiki-inspired, dependency-free.

View File

@ -0,0 +1,15 @@
---
type: Decision
purpose: Settle whether planning is one mode-routed skill or two skills.
answers:
- "Which skill owns project planning?"
cites:
- skills/loop/architect/SKILL.md
status: live
reversible: by re-splitting
---
# 002 — architect replaces plan-project + update-project
architect replaces plan-project + update-project (mode-routed) —
reversible by re-splitting.

View File

@ -0,0 +1,15 @@
---
type: Decision
purpose: Settle the storage backend for units of planned work.
answers:
- "Where do blueprints live: files or a tracker?"
cites:
- skills/loop/blueprint/SKILL.md
status: live
reversible: via export
---
# 003 — blueprints are files, not tracker issues
Blueprints are files with status frontmatter, not tracker issues — the
"tracker" is grep. Reversible via export.

View File

@ -0,0 +1,14 @@
---
type: Decision
purpose: Stop per-issue glossaries fragmenting the domain vocabulary.
answers:
- "How many glossaries may a bounded context have?"
cites:
- skills/engineering/model-domain/CONTEXT-FORMAT.md
status: live
reversible: yes — split the glossary again
---
# 004 — one canonical glossary per bounded context
One canonical glossary per bounded context, never per issue.

View File

@ -0,0 +1,15 @@
---
type: Decision
purpose: Stop mutating subagents from being spawned on a bare sentence.
answers:
- "What must a mutating subagent receive before it is spawned?"
cites:
- skills/loop/weave/SKILL.md
status: live
reversible: yes — drop the gate
---
# 005 — no mutating subagent without a brief
Handoff gate: no mutating subagent without a brief (goal, OKF/blueprint
refs, verify command); read-only lookups exempt.

View File

@ -0,0 +1,14 @@
---
type: Decision
purpose: Fix the naming convention new skills are held to.
answers:
- "How are new skills named?"
cites:
- skills/productivity/conjure-a-skill/SKILL.md
status: live
reversible: yes — rename
---
# 006 — new skill names are imperative-verb-first
New skill names: imperative-verb-first; legacy names grandfathered.

View File

@ -0,0 +1,18 @@
---
type: Decision
purpose: Stop a fixed page list producing empty ceremonial pages in repos it does not fit.
answers:
- "Is the OKF page taxonomy fixed or derived per repo?"
cites:
- skills/loop/write-OKF/okf-layout.md
status: live
reversible: collapse to a fixed list in okf-layout.md
---
# 007 — page taxonomy is derived per repo, never fixed
Page taxonomy is **derived per repo, never fixed** — write-OKF scans
disk, proposes a page plan, user locks it. A fixed layout yields empty
ceremonial pages: analysis repos keep analyses in directories and may
have no plotting module; libraries have neither. Reversible — collapse
to a fixed list in okf-layout.md.

View File

@ -0,0 +1,19 @@
---
type: Decision
purpose: Give every page a machine-checkable justification for existing.
answers:
- "What justifies a page's existence in the OKF?"
cites:
- OKF/CONTEXT.md
- skills/loop/write-OKF/scripts/okf-check
status: live
reversible: OKF v0.1 permits producer-defined fields after type
---
# 008 — every page carries a warrant
Every page carries a **warrant** after `type`: `purpose`, `answers[]`,
`cites[]`. Zero `answers`, or answers another page owns → inadmissible;
unresolved `cites` → drift. Doubles as routing index
(`grep -r "answers:" OKF/`). Reversible — OKF v0.1 permits
producer-defined fields after `type`.

View File

@ -0,0 +1,16 @@
---
type: Decision
purpose: Keep one file authoritative for which pages are admissible.
answers:
- "Where is the locked page plan recorded?"
cites:
- OKF/index.md
status: live
reversible: by extracting TOC.md
---
# 009 — index.md is the locked page plan
`index.md` **is** the locked page plan; no TOC file, which would
duplicate index.md's job. Absent from index.md → inadmissible.
Reversible by extracting TOC.md.

View File

@ -0,0 +1,17 @@
---
type: Decision
purpose: Let a scan regenerate part of a page without overwriting human judgement.
answers:
- "How does a refresh regenerate a page without destroying judgement?"
cites:
- OKF/CONTEXT.md
status: live
reversible: drop fences, fall back to whole-page supersede
---
# 010 — module and analysis pages are two-zone
Module and analysis pages are **two-zone**: `<!-- okf:derived -->`
fences the scan-regenerated seam, everything outside is judgement —
append/supersede only, never scan-edited. Reversible — drop fences,
fall back to the existing whole-page supersede rule.

View File

@ -0,0 +1,17 @@
---
type: Decision
purpose: Keep the code-reference layer from becoming a second router.
answers:
- "Does the code-reference layer get its own skill?"
cites:
- skills/loop/write-OKF/SKILL.md
status: live
reversible: by extraction if the router breaches the house cap
---
# 011 — code-reference layer stays inside write-OKF
Code-reference layer stays **inside write-OKF** as siblings
(`taxonomy-scan.md`, `page-warrant.md`), not a new skill — one
trigger, one mental model. Reversible by extraction if the router
breaches the house cap.

View File

@ -0,0 +1,19 @@
---
type: Decision
purpose: Collapse two competing decision homes into one indexed register.
answers:
- "Where do settled decisions live?"
cites:
- OKF/decisions/index.md
- skills/engineering/model-domain/DECISION-FORMAT.md
status: live
reversible: by re-splitting
---
# 012 — one why-register
**One why-register**: `OKF/decisions/NNN-<slug>.md`, indexed by the
question each settles. Absorbs this section and `adr/` (empty at
absorption — zero migration cost, and evidence three-of-three was
unusable); the warrant replaces the three-of-three rule. Reversible
by re-splitting.

View File

@ -0,0 +1,17 @@
---
type: Decision
purpose: Stop ROADMAP growing forever by carrying registers it does not own.
answers:
- "What may ROADMAP.md hold?"
cites:
- OKF/ROADMAP.md
- OKF/LEARNINGS.md
status: live
reversible: yes — fold the registers back in
---
# 013 — ROADMAP is a plan, not an archive
ROADMAP is a **plan, not an archive** — decisions move to the
register, debunked claims to LEARNINGS.md (which already duplicates
them by instruction), §Risks keeps only forward-looking risk.

View File

@ -0,0 +1,15 @@
---
type: Decision
purpose: Give resolved ferry decisions one home instead of two copies.
answers:
- "What happens to a resolved ferry decision at moor?"
cites:
- skills/loop/moor/SKILL.md
status: live
reversible: yes — copy back into MAP.md
---
# 014 — ferry decisions graduate at moor
Ferry decisions **graduate at moor** into the register; MAP.md keeps
a pointer, never a copy.

View File

@ -0,0 +1,22 @@
---
type: Decision
purpose: Make `ls ferries/` answer what deliberation is still in flight.
answers:
- "What shape does a ferry take once it is moored?"
cites:
- skills/loop/moor/SKILL.md
- OKF/CONTEXT.md
status: live
reversible: OKF is not the archive of record, history is
---
# 015 — moor collapses the ferry directory into one page
Moor **collapses** `ferries/<topic>/` into `ferries/<topic>.md` —
problem shape, rejected alternatives, decision pointers. Directory
means open, file means moored, so `ls` answers what's in flight.
Deliberation stays recoverable via `sealed:` (jj change id + git
hash + date) pinned to the **parent** (`@-` at moor) — the sealing
commit cannot name itself, and the parent is where the D-n files
still exist. Unresolvable pin = drift. Reversible: OKF is not the
archive of record, history is.

View File

@ -0,0 +1,21 @@
---
type: Decision
purpose: Make the OKF done-gate a run with pasted output, not a claim.
answers:
- "How is OKF conformance enforced?"
cites:
- skills/loop/write-OKF/scripts/okf-check
- skills/engineering/add-copilot-project-skill/project-validator.md
status: live
reversible: by inlining the checks as prose
---
# 016 — one okf-check validator
**One `okf-check` validator** at `write-OKF/scripts/`, built to the
existing doctrine in
[add-copilot-project-skill/project-validator.md](../../skills/engineering/add-copilot-project-skill/project-validator.md);
write-OKF and moor both gate on its pasted output, so the done-gate
is a run, not a claim. Per that doctrine it must pass clean on
octobot today — over-cap pages are a **warning** until phase 7, never
an error. Reversible by inlining the checks as prose.

30
OKF/decisions/index.md Normal file
View File

@ -0,0 +1,30 @@
---
type: Index
---
# octobot — why-register
One file per settled decision. Lines are **question-shaped** — the
question is derived from the file's first `answers:` entry, so read a
line to find the decision that settles your question, then open it.
Numbers are permanent (they are cited from CONTEXT.md and commit
messages); superseding adds a file, never renumbers one.
Format: `NNN — <question it settles> — <verdict> — <status>`.
- [001](001-okf-at-project-root.md) — Where does a project's OKF live? — at the target project's `./OKF/` — live
- [002](002-architect-replaces-plan-update.md) — Which skill owns project planning? — architect, mode-routed — live
- [003](003-blueprints-are-files.md) — Where do blueprints live: files or a tracker? — files with status frontmatter — live
- [004](004-one-glossary-per-context.md) — How many glossaries may a bounded context have? — exactly one — live
- [005](005-handoff-gate-for-subagents.md) — What must a mutating subagent receive before it is spawned? — a brief — live
- [006](006-imperative-verb-first-names.md) — How are new skills named? — imperative-verb-first — live
- [007](007-taxonomy-derived-per-repo.md) — Is the OKF page taxonomy fixed or derived per repo? — derived, then locked — live
- [008](008-page-warrant.md) — What justifies a page's existence in the OKF? — its warrant — live
- [009](009-index-is-the-page-plan.md) — Where is the locked page plan recorded? — `index.md` itself — live
- [010](010-two-zone-pages.md) — How does a refresh regenerate a page without destroying judgement? — `okf:derived` fences — live
- [011](011-code-reference-inside-write-okf.md) — Does the code-reference layer get its own skill? — no, write-OKF siblings — live
- [012](012-one-why-register.md) — Where do settled decisions live? — this register — live
- [013](013-roadmap-is-a-plan.md) — What may ROADMAP.md hold? — only what is still ahead — live
- [014](014-ferry-decisions-graduate-at-moor.md) — What happens to a resolved ferry decision at moor? — it graduates here — live
- [015](015-moor-collapses-ferry-directory.md) — What shape does a ferry take once it is moored? — one page, pinned with `sealed:` — live
- [016](016-one-okf-check-validator.md) — How is OKF conformance enforced? — `okf-check`, output pasted — live

View File

@ -17,8 +17,8 @@ your task needs. Humans welcome too.
## Decisions
- `adr/` — none yet; three-of-three rule applies (see
[model-domain](../skills/engineering/model-domain/ADR-FORMAT.md)).
- [decisions/index.md](decisions/index.md) — the why-register, indexed by
the question each decision settles. 16 live.
## Blueprints