diff --git a/OKF/ARCHITECTURE.md b/OKF/ARCHITECTURE.md index 998d91a..8802b5a 100644 --- a/OKF/ARCHITECTURE.md +++ b/OKF/ARCHITECTURE.md @@ -5,15 +5,15 @@ One module per skill category; the interface of each skill is its frontmatter `description` (routing) plus its SKILL.md body (procedure). -- **loop** (`skills/loop/`) — the metaharness spine: scribe-OKF - (knowledge), architect (plan). Blueprint, ferry, implement, steer land +- **loop** (`skills/loop/`) — the metaharness spine: write-OKF + (knowledge), architect (plan). Blueprint, ferry, weave, steer land per [ROADMAP.md](ROADMAP.md). - **engineering** (`skills/engineering/`) — practice skills: bdd, diagnose, review axes (review-angles, nuke-review, winnow), sieve, - vocabulary (codebase-design, domain-modeling), r-style, dev-* runners, + vocabulary (design-codebase, model-domain), style-r, dev-* runners, write-readme*. - **productivity** (`skills/productivity/`) — session mechanics: - jj-atomic, handoff, grill-me, caveman, cavecrew-octobot, + commit-atomic-jj, handoff, grill-me, caveman, spawn-cavecrew, conjure-a-skill. - **scaffold** (`skills/scaffold/`) — project generators: build-py-project, build-r-package, build-r-analysis, containerize-project, @@ -21,8 +21,8 @@ frontmatter `description` (routing) plus its SKILL.md body (procedure). ## Main flows -1. **The loop** — scribe-OKF → architect → blueprint → ferry → implement - → review+verify → jj-atomic; OKF refreshed after implement +1. **The loop** — write-OKF → architect → blueprint → ferry → weave + → review+verify → commit-atomic-jj; OKF refreshed after weave (`skills/loop/`, diagram in `README.md`). 2. **Skill discovery** — Claude Code scans `~/.claude/skills/` one level deep; per-skill symlinks point into `skills///` diff --git a/OKF/CONTEXT.md b/OKF/CONTEXT.md index 9151509..db68983 100644 --- a/OKF/CONTEXT.md +++ b/OKF/CONTEXT.md @@ -12,28 +12,31 @@ One folder under `skills///` with a SKILL.md router and optional topic-named siblings. _Avoid_: command, plugin, prompt. **The loop**: -The metaharness cycle scribe-OKF → architect → blueprint → ferry → -implement → review+verify → jj-atomic. _Avoid_: pipeline, workflow (those -describe the dev-* orchestrators). +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 -[scribe-OKF/okf-layout.md](../skills/loop/scribe-OKF/okf-layout.md). +[write-OKF/okf-layout.md](../skills/loop/write-OKF/okf-layout.md). _Avoid_: docs folder, wiki (unqualified), knowledge base. -**Spec**: -A blueprint-produced file `OKF/specs/NNN-.md` with status -frontmatter; the unit implement executes. _Avoid_: ticket, issue, task. +**Blueprint**: +A blueprint-skill-produced file `OKF/blueprints/NNN-.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/spec references, verify command. A locked spec can serve as +goal, OKF/blueprint references, verify command. A locked blueprint can serve as the brief. _Avoid_: prompt (ambiguous). **Seal**: -The jj-atomic describe step where scratch becomes artifact; the sieve +The commit-atomic-jj describe step where scratch becomes artifact; the sieve fires here. _Avoid_: commit (mechanics), merge. **House cap**: -110 lines per skill file (GLOSSARY.md excepted). _Avoid_: limit, budget. +110 lines per SKILL.md; topic-named siblings load on demand and carry +no hard cap. _Avoid_: limit, budget. diff --git a/OKF/INDEX.md b/OKF/INDEX.md index 412d7fe..4b9486b 100644 --- a/OKF/INDEX.md +++ b/OKF/INDEX.md @@ -14,9 +14,12 @@ your task needs. Humans welcome too. ## Decisions - `adr/` — none yet; three-of-three rule applies (see - [domain-modeling](../skills/engineering/domain-modeling/ADR-FORMAT.md)). + [model-domain](../skills/engineering/model-domain/ADR-FORMAT.md)). -## Specs +## Blueprints -- [001](specs/001-add-write-readme-r.md) — add write-readme-r skill — draft -- [ferry-python-siblings](specs/ferry-python-siblings/MAP.md) — Python siblings for bdd/diagnose — 3 open decisions +- [001](blueprints/001-add-write-readme-r.md) — add write-readme-r skill — draft + +## Ferries + +- [python-siblings](ferries/python-siblings/MAP.md) — Python siblings for bdd/diagnose — 0/3 resolved diff --git a/OKF/LEARNINGS.md b/OKF/LEARNINGS.md index b7638ac..3a280e1 100644 --- a/OKF/LEARNINGS.md +++ b/OKF/LEARNINGS.md @@ -7,7 +7,7 @@ True: without `-m` / `--use-destination-message` they open an editor and hang headless sessions; backgrounded jj mutations race the working-copy snapshot. Source: - `skills/productivity/jj-atomic/anti-patterns.md`, session 2026-07-19. + `skills/productivity/commit-atomic-jj/anti-patterns.md`, session 2026-07-19. - Believed: Claude Code scans `~/.claude/skills/` recursively. True: one level deep only — hence per-skill symlinks, not one repo symlink. Source: `README.md` §Install. diff --git a/OKF/ROADMAP.md b/OKF/ROADMAP.md index bca7d01..4fbe284 100644 --- a/OKF/ROADMAP.md +++ b/OKF/ROADMAP.md @@ -1,7 +1,7 @@ # octobot Roadmap Octobot becomes a loop-engineering metaharness: the loop -(scribe-OKF → architect → blueprint → ferry → implement) over an OKF +(write-OKF → architect → blueprint → ferry → weave) over an OKF substrate, alongside the existing practice/scaffold skills. Vocabulary: [CONTEXT.md](CONTEXT.md). @@ -9,9 +9,9 @@ substrate, alongside the existing practice/scaffold skills. Vocabulary: | repo | has | lacks | |---|---|---| -| mattpocock/skills | spec/ticket pipeline, tracker-backed | file-based substrate, jj, R/Py ecosystem, debloat/review axes | +| 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→spec→implement spine, knowledge substrate | +| octobot pre-2026-07 | review axes, scaffolds, jj discipline | plan→blueprint→weave spine, knowledge substrate | Octobot's slot: file-based loop over OKF (open-knowledge-format), jj-native. @@ -21,10 +21,10 @@ Octobot's slot: file-based loop over OKF (open-knowledge-format), jj-native. (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. Specs are files with status frontmatter, not tracker issues — the +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/spec +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. @@ -34,21 +34,21 @@ See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`. ## Phases -1. **OKF foundation** — scribe-OKF, architect, path retargets, octobot's +1. **OKF foundation** — write-OKF, architect, path retargets, octobot's own OKF. **Verify:** scaffold produces layout-conformant tree in an empty dir; refresh on octobot yields sane OKF/; zero stale plan-project/update-project refs. ✅ verified 2026-07-19 (scratch-dir scaffold + this OKF + grep). -2. **blueprint + review-blueprint** — spec skill with spec-format.md; - fourth review axis (diff vs spec). **Verify:** blueprint a real - roadmap item into a well-formed spec; review-blueprint flags an - injected scope-creep diff. ✅ verified 2026-07-19 (spec 001 drafted; +2. **blueprint + review-blueprint** — blueprint skill with blueprint-format.md; + fourth review axis (diff vs blueprint). **Verify:** blueprint a real + roadmap item into a well-formed blueprint; review-blueprint flags an + injected scope-creep diff. ✅ verified 2026-07-19 (blueprint 001 drafted; scratch fixture: CONTAINED ✗ on planted logging + stray function). -3. **ferry + implement** — decision maps; spec-driven execution with the +3. **ferry + weave** — decision maps; blueprint-driven execution with the verify gate and handoff-gated subagent dispatch. **Verify:** ferry a multi-session feature into ≥3 edged decisions; implement one locked - spec end-to-end with pasted Verify output. ✅ verified 2026-07-19 - (ferry-python-siblings D-1..D-3; scratch implement run, Verify "OK"). + blueprint end-to-end with pasted Verify output. ✅ verified 2026-07-19 + (ferries/python-siblings D-1..D-3; scratch weave run, Verify "OK"). 4. **Upstream pulls** — tautological-test + pre-agreed seams into bdd; handoff redaction/reference rules; resolve-conflicts (jj port). **Verify:** resolve-conflicts replayed on a synthetic two-sided @@ -57,7 +57,7 @@ See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`. 5. **Invocation audit + steer** — disable-model-invocation on orchestrators/rituals; steer router; conjure imperative-verb enforcement; README regen. **Verify:** fresh session lists only the - ~~8~~ 11 model-invoked descriptions (superseded: cavecrew-octobot, + ~~8~~ 11 model-invoked descriptions (superseded: spawn-cavecrew, review-blueprint, resolve-conflicts must fire from natural phrasing); steer names every skill; conjure rejects a noun-first name. ✅ verified 2026-07-19 (16 flagged / 11 model-invoked by grep; steer @@ -77,7 +77,7 @@ See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`. ## Out of scope -- Issue-tracker backends (GitHub/GitLab) for specs — files only. +- Issue-tracker backends (GitHub/GitLab) for blueprints — files only. - OpenWiki CLI dependency — import-compat at most. - Renaming grandfathered non-verb skills. - Matt's writing-* / teach / wizard / obsidian skill families. diff --git a/OKF/specs/001-add-write-readme-r.md b/OKF/blueprints/001-add-write-readme-r.md similarity index 99% rename from OKF/specs/001-add-write-readme-r.md rename to OKF/blueprints/001-add-write-readme-r.md index b990a94..7bcc849 100644 --- a/OKF/specs/001-add-write-readme-r.md +++ b/OKF/blueprints/001-add-write-readme-r.md @@ -13,7 +13,7 @@ sketched there: "reading `DESCRIPTION` for packages and `_targets.R` + (`build-r-package`, `build-r-analysis`) currently ship without a README generator, unlike their Python sibling. -## Spec +## Contract A skill `skills/engineering/write-readme-r/` that: - Detects project type: `DESCRIPTION` → r-package (fields: Package, Title, Description, License, Authors@R); `_targets.R` → r-analysis diff --git a/OKF/specs/ferry-python-siblings/D-1-mirror-or-redesign.md b/OKF/ferries/python-siblings/D-1-mirror-or-redesign.md similarity index 100% rename from OKF/specs/ferry-python-siblings/D-1-mirror-or-redesign.md rename to OKF/ferries/python-siblings/D-1-mirror-or-redesign.md diff --git a/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md b/OKF/ferries/python-siblings/D-2-mocking-doctrine.md similarity index 87% rename from OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md rename to OKF/ferries/python-siblings/D-2-mocking-doctrine.md index 2779bc7..9d76c92 100644 --- a/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md +++ b/OKF/ferries/python-siblings/D-2-mocking-doctrine.md @@ -11,7 +11,7 @@ call; its stance decides what reviews flag. ## Options - **A — facade + DI only**: monkeypatch/patch treated like mockery::stub - in R — a smell needing justification. Consistent with codebase-design. + in R — a smell needing justification. Consistent with design-codebase. - **B — bless monkeypatch at seams**: pragmatic pytest idiom, weaker seam discipline. diff --git a/OKF/specs/ferry-python-siblings/D-3-diagnose-content-split.md b/OKF/ferries/python-siblings/D-3-diagnose-content-split.md similarity index 100% rename from OKF/specs/ferry-python-siblings/D-3-diagnose-content-split.md rename to OKF/ferries/python-siblings/D-3-diagnose-content-split.md diff --git a/OKF/specs/ferry-python-siblings/MAP.md b/OKF/ferries/python-siblings/MAP.md similarity index 79% rename from OKF/specs/ferry-python-siblings/MAP.md rename to OKF/ferries/python-siblings/MAP.md index 88e1137..a4ab85b 100644 --- a/OKF/specs/ferry-python-siblings/MAP.md +++ b/OKF/ferries/python-siblings/MAP.md @@ -2,10 +2,10 @@ Destination: bdd and diagnose carry Python reference siblings of the same depth as their R ones (tests-py, mocking-py, interface-design-py, -docstrings-py, feedback-loops-py, instrumentation-py), so /dev-python +docstrings-py, feedback-loops-py, instrumentation-py), so /develop-python stops pointing at acknowledged gaps. -| id | decision | status | blocked-by | spec | +| id | decision | status | blocked-by | blueprint | |---|---|---|---|---| | D-1 | mirror R sibling structure or redesign for Python? | open | — | | | D-2 | mocking doctrine: facade+DI only, or bless pytest monkeypatch? | open | D-1 | |