octobot/OKF/ARCHITECTURE.md
Lukasz Boryn 6441d0f425 feat(sound): add verified recon before a blueprint locks
New `skills/loop/sound/` — a three-step spine run in order: read the OKF
pages the question touches, query the nostos MCP server when one is
configured, then confirm both against live code, because either can have
gone stale. A claim with no internal owner is followed to its primary
source; nothing else leaves the repo.

Two mouths, per 019. Reached by name it refines the blueprint it sounded
and stamps `sounded: <date>`; self-fired it reports and writes nothing —
a stamp a self-fire cannot make is a stamp a lock can trust. It is the
loop's only model-invoked skill, so README's "All loop skills are
user-invoked" and ARCHITECTURE's invocation seam both stop being true
and are corrected here.

Sounding becomes a precondition of lock: okf-check warns `locked without
sounded:` on a locked blueprint carrying no stamp — never at draft
(not-yet-sounded is correct there) nor at implemented (it would
retro-flag 002-006). Warning, not error, so exit status stays 0.

Implements blueprint 007. The script leg of its Verify is green; the
four session checks need fresh sessions and stay open in ROADMAP.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 13:23:18 +02:00

56 lines
2.3 KiB
Markdown

---
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
## 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](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** — 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/<category>/<name>/`
(`README.md` §Install).
3. **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](decisions/019-recon-may-self-fire.md)).
- **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).