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

3.1 KiB

type, purpose, answers, cites, status
type purpose answers cites status
Architecture Map the skill categories, the seams between them, and the flows that cross them.
Which module owns a given skill, and where are the seams?
skills/loop
skills/engineering/bdd/SKILL.md
skills/productivity/conjure-a-skill/principles.md
live

octobot — architecture

Module map

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: write-OKF (knowledge), architect (plan). Blueprint, ferry, weave, steer land per ROADMAP.md.
  • engineering (skills/engineering/) — practice skills: bdd, diagnose, review axes (review-angles, nuke-review, winnow), sieve, vocabulary (design-codebase, model-domain), style-r, dev-* runners, write-readme*.
  • productivity (skills/productivity/) — session mechanics: 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, add-docker-secrets.

Main flows

  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)
  1. Skill discovery — Claude Code scans ~/.claude/skills/ one level deep; per-skill symlinks point into skills/<category>/<name>/ (README.md §Install).
  2. Post-green review — bdd "After green" hands to the review axes, fixes land red-test-first (skills/engineering/bdd/SKILL.md).

Seams

  • Skill frontmatter — disable-model-invocation flips a skill between description-routed and name-only invocation. Orchestrators and rituals carry it; a read-only recon whose trigger is a detectable state may go without (decisions/019).
  • Progressive disclosure — SKILL.md bodies point to topic-named sibling files; swapping a sibling changes behaviour without touching the router (skills/productivity/conjure-a-skill/principles.md).
  • Cross-links — skills reference each other by relative path; category moves are renames across these links (grep before moving).