From b4a32de6924604733e27a97c0ec8a02e97e928d7 Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Mon, 20 Jul 2026 01:00:39 +0200 Subject: [PATCH] =?UTF-8?q?feat(skills):=20add=20call-charon=20=E2=80=94?= =?UTF-8?q?=20agent-orchestrated=20ferry=20crossing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One worktree builder per blueprint, four-axis review flotilla, orchestrator-run Verify gate, passage logged in the ferry's MAP.md. Sibling crossing-format.md holds the brief and log contracts; steer gains its row. Co-Authored-By: Claude Fable 5 --- skills/loop/call-charon/SKILL.md | 99 ++++++++++++++++++++++ skills/loop/call-charon/crossing-format.md | 63 ++++++++++++++ skills/loop/steer/SKILL.md | 1 + 3 files changed, 163 insertions(+) create mode 100644 skills/loop/call-charon/SKILL.md create mode 100644 skills/loop/call-charon/crossing-format.md diff --git a/skills/loop/call-charon/SKILL.md b/skills/loop/call-charon/SKILL.md new file mode 100644 index 0000000..140ce93 --- /dev/null +++ b/skills/loop/call-charon/SKILL.md @@ -0,0 +1,99 @@ +--- +name: call-charon +description: Carry an arrived ferry's blueprints across via agents — one worktree builder per blueprint, a four-axis review flotilla, an orchestrator-run Verify gate, passage logged in MAP.md, moor at the far shore. +disable-model-invocation: true +--- + +# call-charon + +The execution counterpart of [ferry](../ferry/SKILL.md): ferry resolves +one *decision* per sitting; Charon delivers *blueprints* — each built +by its own agent, reviewed by a fresh-context flotilla, sealed only by +the orchestrator. The main session never implements. The ferry's +`MAP.md` is the passage log that crosses the session boundary — Charon +holds no state in his head. + +## When to use +- User says "call charon", "/call-charon", "implement the ferry", + "drive the ferry home", "next blueprint". +- A [ferry](../ferry/SKILL.md) has arrived (decisions resolved, + blueprints locked) and implementation spans multiple blueprints. +- One blueprint, no orchestration worth the cost → plain + [weave](../weave/SKILL.md). + +## Preconditions (check, don't assume) +- `OKF/ferries//MAP.md` exists; every decision resolved. Open + decisions → back to ferry; this is a crossing, not a mapping. +- The spawned blueprints are `locked` or beyond + (`grep -r "^status:" OKF/blueprints/`); a needed one still `draft` → + back to [blueprint](../blueprint/SKILL.md) for the user's lock. + +## Process +1. **ORIENT** — read `MAP.md` + the statuses of every blueprint it + names. First run: add a `## Passage` section to `MAP.md`, one line + per blueprint ([crossing-format.md](crossing-format.md)). Edges come + from the decisions' `blocked-by` and the blueprints' `traces-to`; + no edge, no ordering claim (ferry's rule). +2. **PICK** — the next `locked` blueprint whose blocked-by set is all + implemented. None unblocked → record why in Passage, report + blocked, stop. +3. **DISPATCH** — spawn a builder (general-purpose agent, worktree + isolation) with a brief per weave's handoff gate: blueprint path, + OKF refs by path, constraints, Verify command + (crossing-format.md §builder-brief). `cavecrew-builder` refuses this + scope — wrong tool. Serial by default; parallel builders only when + blocked-by frontiers are clear AND Seams-touched are disjoint. +4. **REVIEW FLOTILLA** — builder done → spawn read-only reviewers in + parallel, one per axis: review-blueprint + review-angles **always**; + nuke-review + winnow when the diff is non-trivial (Charon's call — + record it). Each brief names the axis's SKILL.md path — subagents + don't auto-load skills. The builder never self-reviews; the + orchestrator never reviews inline. +5. **MERGE + FIX** — Charon dedupes findings, arbitrates conflicts + (sieve's always-pass exceptions win: validation, data-loss + handling, security), and sends **one** consolidated brief via + SendMessage to the *same* builder — context intact, no cold + restart. Max 2 fix rounds, re-running failed axes only + (review-blueprint always re-runs last); still red → escalate to + the user. +6. **GATE** — reviews clean → the orchestrator runs the blueprint's + Verify *itself* and pastes the output. A builder's "tests pass" is + never trusted. Then merge the worktree, seal via + [commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md) + citing the blueprint, flip its status. +7. **LOG** — update the Passage line: status, axes run, rounds, + commit, ISO date. Blocked mid-crossing → log that instead; the + reason is the handoff. +8. **REPEAT or END SITTING** — context healthy → step 2. Otherwise + stop; Passage *is* the handoff — no HANDOFF.md duplication + ([write-handoff](../../productivity/write-handoff/SKILL.md) rule). +9. **ARRIVE** — last blueprint `implemented` → hand to + [moor](../moor/SKILL.md). Charon delivers; moor consolidates. + +## Output / done criteria +- Each sitting: ≥1 blueprint gated green, or the blocker named in + Passage. +- Passage matches `grep -r "^status:"` reality at sitting end. +- Every seal preceded by orchestrator-run Verify output, pasted. +- Ferry fully delivered → moor explicitly handed the tiller. + +## Guardrails +- **Never** implement or test in the orchestrator session — dispatch + only. +- **Never** spawn a builder without a brief (weave's gate). +- **Never** let a builder self-review; never drop the + review-blueprint + review-angles floor. +- **Never** seal on agent claims — orchestrator-run Verify output only. +- **Never** exceed 2 fix rounds — escalate. +- **Never** dispatch past a blocked-by edge. +- **Never** edit decisions or blueprints mid-crossing — supersede via + ferry/blueprint. +- **Never** moor from here. + +## See also +- [crossing-format.md](crossing-format.md) — Passage line, builder + brief, reviewer brief, finding-merge contract. +- [../ferry/SKILL.md](../ferry/SKILL.md) — upstream; owns MAP.md. +- [../weave/SKILL.md](../weave/SKILL.md) — the process each builder + brief encodes for one blueprint. +- [../moor/SKILL.md](../moor/SKILL.md) — downstream close-out. diff --git a/skills/loop/call-charon/crossing-format.md b/skills/loop/call-charon/crossing-format.md new file mode 100644 index 0000000..f9b88cc --- /dev/null +++ b/skills/loop/call-charon/crossing-format.md @@ -0,0 +1,63 @@ +# crossing-format + +File and message contracts for [call-charon](SKILL.md). One topic per +section; the orchestrator copies these verbatim, filling `<>` slots. + +## Passage line (in the ferry's MAP.md) + +```markdown +## Passage +- 014 — — implemented — blocked-by: — axes: bp,ang,nuke,win — rounds: 1 — commit: <id> — <ISO date> +- 015 — <title> — locked — blocked-by: 014 — axes: — rounds: — commit: — +- 016 — <title> — blocked — blocked-by: 015 — why: <one line> +``` + +- Status vocabulary is blueprint's (`locked`, `implemented`, + `superseded-by-NNN`) plus `blocked` with a `why:`. +- `axes:` abbreviations: `bp` review-blueprint, `ang` review-angles, + `nuke` nuke-review, `win` winnow. Record only axes actually run. +- Dates ISO 8601. Append, update in place; never delete a line. + +## Builder brief (Agent prompt, worktree isolation) + +``` +Goal: implement blueprint NNN exactly — no more, no less. +Read first: OKF/blueprints/NNN-<slug>.md, OKF/index.md, + <OKF pages the blueprint references, by path>. +Process: follow skills/loop/weave/SKILL.md steps 1–2 (Frame, Build via + skills/engineering/bdd/SKILL.md) for this one blueprint. Stop after + green — review, seal, and status flips belong to the orchestrator. +Constraints: <blueprint constraints; repo conventions from CLAUDE.md>. +Verify: run `<blueprint's Verify command>`; paste its output in your + report. +Report: files touched, scenarios covered, Verify output, anything that + contradicts the blueprint (stop and report instead of improvising). +``` + +## Reviewer brief (one per axis, read-only, parallel) + +``` +Role: <axis> reviewer for blueprint NNN. Read-only — change nothing. +Read first: skills/<category>/<axis>/SKILL.md (your criteria), + OKF/blueprints/NNN-<slug>.md, then the diff: `jj diff` in <worktree>. +Report findings only, one line each: + <file>:<line> — <severity: blocker|major|minor> — <problem> — <fix>. +No praise, no scope creep. Empty list = pass. +``` + +## Finding merge (orchestrator → builder fix message) + +``` +Fix round <n> of 2 for blueprint NNN. Consolidated findings: +1. <file>:<line> — <axis> — <problem> — <required fix> +... +Skipped (arbitrated out): <finding> — <why: e.g. sieve always-pass>. +Re-run `<Verify command>` after fixes; paste output. +``` + +- Dedupe identical findings across axes; keep the highest severity. +- Conflicts (winnow "delete" vs angles "keep"): sieve's always-pass + exceptions win — validation, error handling preventing data loss, + security, accessibility, explicitly requested behaviour. +- Blockers and majors are required; minors at Charon's discretion — + list what was skipped and why, so the builder doesn't re-add it. diff --git a/skills/loop/steer/SKILL.md b/skills/loop/steer/SKILL.md index a6e1cc6..f496834 100644 --- a/skills/loop/steer/SKILL.md +++ b/skills/loop/steer/SKILL.md @@ -23,6 +23,7 @@ write-OKF → architect → blueprint → ferry → weave → review+verify → | discussed work needs a justified, verifiable blueprint | `/blueprint` | | feature too big for one session — map decisions | `/ferry` | | a locked blueprint is ready to execute | `/weave` | +| ferry's blueprints locked — agent-orchestrated crossing | `/call-charon` | | ferry delivered — close it out, consolidate the wiki | `/moor` | ## By situation