From 8784b6f669a6f68babf0838cbfaff8a193971b98 Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Thu, 30 Jul 2026 16:34:55 +0200 Subject: [PATCH] docs(okf): own the loop shape in ARCHITECTURE flow 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- CLAUDE.md | 4 +-- OKF/ARCHITECTURE.md | 27 ++++++++++++++++--- OKF/CONTEXT.md | 5 ++-- OKF/ROADMAP.md | 10 +++---- .../018-own-the-loop-shape-in-flow-1.md | 2 +- OKF/index.md | 2 +- README.md | 21 ++++++++++++--- skills/loop/steer/SKILL.md | 24 ++++++++++++++--- 8 files changed, 72 insertions(+), 23 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 96314d4..011c046 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -5,8 +5,8 @@ conventions for editing octobot itself. Merge with project-specific instructions as needed. **The loop.** Octobot is a loop-engineering metaharness over an OKF -(open-knowledge-format) wiki: `write-OKF → architect → blueprint → -ferry → weave → review+verify → commit-atomic-jj → moor`. This repo dogfoods it — +(open-knowledge-format) wiki; its shape is +[`OKF/ARCHITECTURE.md`](OKF/ARCHITECTURE.md) flow 1. This repo dogfoods it — knowledge in [`OKF/`](OKF/index.md), agent directions in [`AGENTS.md`](AGENTS.md), skill index in [`skills/loop/steer/`](skills/loop/steer/SKILL.md). diff --git a/OKF/ARCHITECTURE.md b/OKF/ARCHITECTURE.md index 0b5d9af..f3efff1 100644 --- a/OKF/ARCHITECTURE.md +++ b/OKF/ARCHITECTURE.md @@ -33,9 +33,30 @@ frontmatter `description` (routing) plus its SKILL.md body (procedure). ## Main flows -1. **The loop** — write-OKF → architect → blueprint → ferry → weave - → review+verify → commit-atomic-jj; OKF refreshed after weave - (`skills/loop/`, diagram in `README.md`). +1. **The loop** — the metaharness spine, canonically rendered here + (`skills/loop/`). Two byte-copies: `README.md` §loop, `steer` + §The loop. + +``` +substrate (rare) write-OKF — scaffold, or refresh when stale + ↓ +per request architect — a phase only for an arc over >1 blueprint + ↓ + know what to do? + ┌──── yes ────┴──── no ────┐ + blueprint → sound ferry — decisions + blocking edges, + → weave resolve one per sitting + (weave closes it) ↓ + blueprint per cleared decision → sound + ↓ + 1 left → weave + N left → call-charon (agent per blueprint) + ↓ + moor + +weave = bdd → 4-axis review → Verify → commit-atomic-jj → close (OKF refresh) +``` + 2. **Skill discovery** — Claude Code scans `~/.claude/skills/` one level deep; per-skill symlinks point into `skills///` (`README.md` §Install). diff --git a/OKF/CONTEXT.md b/OKF/CONTEXT.md index d5c7969..16fea90 100644 --- a/OKF/CONTEXT.md +++ b/OKF/CONTEXT.md @@ -23,9 +23,8 @@ One folder under `skills///` 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). +The metaharness cycle; shape in [ARCHITECTURE.md](ARCHITECTURE.md) flow 1. +_Avoid_: pipeline, workflow (those describe the develop-* orchestrators). **OKF**: Open-knowledge-format — the agent-first wiki at a target project's diff --git a/OKF/ROADMAP.md b/OKF/ROADMAP.md index d0d056a..1352f6f 100644 --- a/OKF/ROADMAP.md +++ b/OKF/ROADMAP.md @@ -10,10 +10,10 @@ status: live # octobot Roadmap -Octobot becomes a loop-engineering metaharness: the loop (write-OKF → -architect → blueprint → ferry → weave → review+verify → -commit-atomic-jj) over an OKF substrate, alongside the existing -practice/scaffold skills. Vocabulary: [CONTEXT.md](CONTEXT.md). +Octobot becomes a loop-engineering metaharness: the loop +([ARCHITECTURE.md](ARCHITECTURE.md) flow 1) over an OKF substrate, +alongside the existing practice/scaffold skills. Vocabulary: +[CONTEXT.md](CONTEXT.md). ## Why (gap vs prior art) @@ -30,7 +30,7 @@ Each line is the question its decision settles. Cite by number. ## Architecture -See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`. +See [ARCHITECTURE.md](ARCHITECTURE.md); the loop is its flow 1. ## Phases diff --git a/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md b/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md index 8a9af80..2c58d27 100644 --- a/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md +++ b/OKF/blueprints/018-own-the-loop-shape-in-flow-1.md @@ -1,6 +1,6 @@ --- type: Blueprint -status: locked +status: implemented traces-to: ROADMAP.md phase 11 sounded: 2026-07-30 cites: diff --git a/OKF/index.md b/OKF/index.md index 8956a1d..3c35eb1 100644 --- a/OKF/index.md +++ b/OKF/index.md @@ -39,7 +39,7 @@ your task needs. Humans welcome too. - [015](blueprints/015-record-session-check-discharges-on-the-blueprint.md) — record session-check discharges on the blueprint — implemented - [016](blueprints/016-pull-two-skills-under-cap-and-level-commit-twins.md) — pull two skills under the line cap and level the commit twins — implemented - [017](blueprints/017-add-a-line-cap-lint-over-skills.md) — add a line-cap lint over skills/ — implemented -- [018](blueprints/018-own-the-loop-shape-in-flow-1.md) — own the loop's shape in ARCHITECTURE flow 1 — locked +- [018](blueprints/018-own-the-loop-shape-in-flow-1.md) — own the loop's shape in ARCHITECTURE flow 1 — implemented ## Ferries diff --git a/README.md b/README.md index a354f29..ecb24bf 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,23 @@ Octobot's core: a loop-engineering metaharness over an **OKF** (open-knowledge-format) wiki at each project's `./OKF/`. ``` -write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj → moor -(knowledge) (plan) (blueprints) (decompose) (execute) (seal) (close out) - ▲ │ - └────────────────────────────── OKF refreshed ◀──────────────────────────────────────┘ +substrate (rare) write-OKF — scaffold, or refresh when stale + ↓ +per request architect — a phase only for an arc over >1 blueprint + ↓ + know what to do? + ┌──── yes ────┴──── no ────┐ + blueprint → sound ferry — decisions + blocking edges, + → weave resolve one per sitting + (weave closes it) ↓ + blueprint per cleared decision → sound + ↓ + 1 left → weave + N left → call-charon (agent per blueprint) + ↓ + moor + +weave = bdd → 4-axis review → Verify → commit-atomic-jj → close (OKF refresh) ``` - **write-OKF** — scaffold or refresh the OKF wiki; wires `AGENTS.md` so diff --git a/skills/loop/steer/SKILL.md b/skills/loop/steer/SKILL.md index f5c32c8..7e88eaf 100644 --- a/skills/loop/steer/SKILL.md +++ b/skills/loop/steer/SKILL.md @@ -6,14 +6,30 @@ disable-model-invocation: true # steer -Most octobot skills are user-invoked (zero context load) — this router -is the index you'd otherwise have to be. Ask "/steer " or -just read the table. +Most octobot skills are user-invoked (they fire when named, not when a +description matches) — this router is the index you'd otherwise have to +be. Ask "/steer " or just read the table. ## The loop (the metaharness spine) ``` -write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj → moor +substrate (rare) write-OKF — scaffold, or refresh when stale + ↓ +per request architect — a phase only for an arc over >1 blueprint + ↓ + know what to do? + ┌──── yes ────┴──── no ────┐ + blueprint → sound ferry — decisions + blocking edges, + → weave resolve one per sitting + (weave closes it) ↓ + blueprint per cleared decision → sound + ↓ + 1 left → weave + N left → call-charon (agent per blueprint) + ↓ + moor + +weave = bdd → 4-axis review → Verify → commit-atomic-jj → close (OKF refresh) ``` | Situation | Skill |