Crank
Crank executes exactly one wave. The caller selects the wave and the repair
bound; crank runs that wave and returns what happened.
caller's wave + repair_rounds -> RPI per lane -> wave acceptance once -> evidence -> stop
Input
The caller supplies all three:
- The wave — a list of lanes, each with a write
scope, a brief, and its
own executable acceptance.
repair_rounds — the caller's repair bound, forwarded unchanged to every
lane. Crank neither chooses it nor spends it.
- The wave acceptance — the one command set that judges the wave as a whole.
If a lane arrives without a scope, a brief, or an executable acceptance, report
the wave as unrunnable and stop. Crank does not shape the missing part itself.
Contract
- Read the caller's wave as given. Do not select, extend, drop, or re-rank
lanes; the wave arrives already decided.
- Partition the lanes. Two lanes may run in parallel only when their write
scopes are disjoint and their regen surfaces (generated outputs,
mirrors, manifests) are disjoint. Any shared surface serializes them;
unknown overlap counts as overlap.
- Invoke
rpi once per lane with that lane's intent,
scope, acceptance, and the caller's repair_rounds. Each lane's traversal
owns its own repair loop. Crank never repairs a lane itself, never
re-invokes a returned lane, and never re-plans one.
- Run the wave acceptance once, after every lane has returned. A lane that
returned
FAIL or NOT_PROVEN does not suppress it; both results are
reported side by side.
- Return the wave evidence and stop — per-lane status
(
PASS | FAIL | NOT_PROVEN | NOT_PLANNED | NOT_BUILT), the open findings
each lane's validator left keyed by their findings[].id, each lane's
subject manifest digest, and the wave acceptance result.
Append no next action. The caller reads the evidence and decides whether there
is another wave.
Boundary
Crank owns no wave selection, retry, budget, queue, claim, lease, Git, closure,
delivery, or next work, and it mints no verdict of its own. Every semantic
result in the wave evidence is the one that lane's fresh validator returned,
cited unchanged; a green wave acceptance is a fact, not a PASS.
Conveyor
In Claude, workflows/implement-wave.js
is one conveyor for step 3's parallel leg: it runs disjoint-ownership
implementers over the lanes the caller supplied. It is transport, never a
substitute for a lane's own fresh validation, and crank runs without it.
Prompt
Crank this wave, repair_rounds=2.
Lane A - scope cli/internal/gates/**, brief "add the probe-coverage gate row",
acceptance: cd cli && go test ./internal/gates/...
Lane B - scope docs/CI-CD.md, brief "document that gate row",
acceptance: bash scripts/docs-build.sh --check
Wave acceptance: bash tests/run-all.sh. Report per-lane evidence and stop.
It's working if
Observable in the trace, without reading the prose — and the rubric a fresh
independent judge scores this skill against:
- The transcript shows exactly one
rpi invocation per lane in the caller's
wave, and no lane appears twice.
- Two lanes that share a regen surface (both reaching
skills-codex/, say) run
one after the other, never concurrently.
- The wave acceptance command runs exactly once, after the last lane returns.
- The returned evidence carries a status and a subject manifest digest for
every caller-supplied lane, and for no lane crank invented.
- The response ends with the evidence: no next wave, no
git action, and no
proposed follow-up work.
1---2name: crank3description: Execute one caller-selected wave by invoking RPI once per lane and return the wave evidence, then stop. Triggers: "crank", "execute the next wave", "run this wave".4---5
6# Crank
7
8Crank executes exactly one wave. The caller selects the wave and the repair
9bound; crank runs that wave and returns what happened.
10
11```text
12caller's wave + repair_rounds -> RPI per lane -> wave acceptance once -> evidence -> stop
13```
14
15## Input
16
17The caller supplies all three:
18
19- **The wave** — a list of lanes, each with a write `scope`, a `brief`, and its
20 own executable `acceptance`.
21- **`repair_rounds`** — the caller's repair bound, forwarded unchanged to every
22 lane. Crank neither chooses it nor spends it.
23- **The wave acceptance** — the one command set that judges the wave as a whole.
24
25If a lane arrives without a scope, a brief, or an executable acceptance, report
26the wave as unrunnable and stop. Crank does not shape the missing part itself.
27
28## Contract
29
301. Read the caller's wave as given. Do not select, extend, drop, or re-rank
31 lanes; the wave arrives already decided.
322. Partition the lanes. Two lanes may run in parallel only when their write
33 scopes are disjoint **and** their regen surfaces (generated outputs,
34 mirrors, manifests) are disjoint. Any shared surface serializes them;
35 unknown overlap counts as overlap.
363. Invoke [`rpi`](../rpi/SKILL.md) once per lane with that lane's intent,
37 scope, acceptance, and the caller's `repair_rounds`. Each lane's traversal
38 owns its own repair loop. Crank never repairs a lane itself, never
39 re-invokes a returned lane, and never re-plans one.
404. Run the wave acceptance once, after every lane has returned. A lane that
41 returned `FAIL` or `NOT_PROVEN` does not suppress it; both results are
42 reported side by side.
435. Return the wave evidence and stop — per-lane status
44 (`PASS | FAIL | NOT_PROVEN | NOT_PLANNED | NOT_BUILT`), the open findings
45 each lane's validator left keyed by their `findings[].id`, each lane's
46 subject manifest digest, and the wave acceptance result.
47
48Append no next action. The caller reads the evidence and decides whether there
49is another wave.
50
51## Boundary
52
53Crank owns no wave selection, retry, budget, queue, claim, lease, Git, closure,
54delivery, or next work, and it mints no verdict of its own. Every semantic
55result in the wave evidence is the one that lane's fresh validator returned,
56cited unchanged; a green wave acceptance is a fact, not a `PASS`.
57
58## Conveyor
59
60In Claude, [`workflows/implement-wave.js`](../../workflows/implement-wave.js)
61is one conveyor for step 3's parallel leg: it runs disjoint-ownership
62implementers over the lanes the caller supplied. It is transport, never a
63substitute for a lane's own fresh validation, and crank runs without it.
64
65## Prompt
66
67```text
68Crank this wave, repair_rounds=2.
69Lane A - scope cli/internal/gates/**, brief "add the probe-coverage gate row",
70acceptance: cd cli && go test ./internal/gates/...
71Lane B - scope docs/CI-CD.md, brief "document that gate row",
72acceptance: bash scripts/docs-build.sh --check
73Wave acceptance: bash tests/run-all.sh. Report per-lane evidence and stop.
74```
75
76## It's working if
77
78Observable in the trace, without reading the prose — and the rubric a fresh
79independent judge scores this skill against:
80
81- The transcript shows exactly one `rpi` invocation per lane in the caller's
82 wave, and no lane appears twice.
83- Two lanes that share a regen surface (both reaching `skills-codex/`, say) run
84 one after the other, never concurrently.
85- The wave acceptance command runs exactly once, after the last lane returns.
86- The returned evidence carries a status and a subject manifest digest for
87 every caller-supplied lane, and for no lane crank invented.
88- The response ends with the evidence: no next wave, no `git` action, and no
89 proposed follow-up work.