octobot/OKF/CONTEXT.md
Lukasz Boryn 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

3.0 KiB

type
type
Glossary

octobot — context

Vocabulary for octobot itself. Skill-authoring terms (leading word, context load, progressive disclosure, sprawl, no-op) live in conjure-a-skill/GLOSSARY.md — not duplicated here.

Language

Skill: One folder under skills/<category>/<name>/ with a SKILL.md router and optional topic-named siblings. Avoid: command, plugin, prompt.

The loop: The metaharness cycle write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj. Avoid: pipeline, workflow (those describe the develop-* orchestrators).

OKF: Open-knowledge-format — the agent-first wiki at a target project's ./OKF/; layout contract in write-OKF/okf-layout.md. Avoid: docs folder, wiki (unqualified), knowledge base.

Blueprint: A blueprint-skill-produced file OKF/blueprints/NNN-<slug>.md with status frontmatter; the unit weave executes. Its ## Contract section states what the change must satisfy. Avoid: spec (superseded term — renamed for skill↔artifact consistency), ticket, issue, task.

Brief: The written contract a mutating subagent receives before spawning — goal, OKF/blueprint references, verify command. A locked blueprint can serve as the brief. Avoid: prompt (ambiguous).

Seal: The commit-atomic-jj describe step where scratch becomes artifact; the sieve fires here. Avoid: commit (mechanics), merge.

Page plan: The locked set of admissible OKF pages, recorded as index.md's one-line-per-page list. write-OKF proposes it from a repo scan; the user edits and locks it. A page absent from the plan is inadmissible. Avoid: TOC, sitemap, nav, wiki.json.

Warrant: The frontmatter fields that justify a page's existence — purpose, answers[], cites[], after the required type. No answers entry, or one another page already answers, culls the page; an unresolved cites path is drift. Avoid: metadata, header, justification.

Derived zone: The <!-- okf:derived begin/end --> region of a page, regenerated on every refresh. Everything outside it is the judgement zone — append/supersede only, never scan-edited. Avoid: generated block, managed section.

Register: An append-only OKF directory or page that is the single home for one kind of durable fact — decisions/ (why we chose), LEARNINGS.md (what we got wrong), blueprints/ (what we built). ROADMAP holds only what is still ahead. Avoid: log, archive, history.

Graduate: Moving a resolved ferry decision out of ferries/<topic>/D-n-*.md into the decisions register at moor, leaving a pointer in MAP.md. Avoid: promote, publish, merge.

Sealed pin: The sealed: frontmatter on a moored ferry — jj change id, git hash, date — naming the parent commit where the dissolved D-n files still exist. Makes "recoverable from history" cashable. Avoid: ref, anchor.

House cap: 110 lines per SKILL.md; topic-named siblings load on demand and carry no hard cap. Avoid: limit, budget.