← baton v5
v4 · archived This is baton as v4 shipped — team mode: the run on a git ref any machine resumes, questions as Issues anyone answers, product changes as pull requests with the verdict as a check — kept as of v4.0, whose tag still resolves and still runs. baton v5 replaced it: three tiers instead of six rungs, rules cut to invariants, the harness dispatching when it can. One breaking change: what a value means. Read v5 →
v4.0 router + 10 modes 40 named experts for you, or a team

The cheapest agent
that can succeed.

baton is a router prompt that turns a fresh session into a multi-agent run with a budget. Six rungs of model × effort, Sonnet by default, escalation measured in rungs. And now one more line — TEAM: github — gives the same run to a team: its state on a git ref any machine can resume, its questions as Issues anyone can answer, its product changes as pull requests with the verdict as a check.

what changed · v3 → v4
One laptop holds the run→A git ref any machine resumes — every cited path a permalink
One person answers, at one keyboard→Anyone answers from an Issue — /answer, from a phone
A worktree's products could die with it→The branch is the landing: a draft PR, the verdict as a check
Four files two layers wrote→Directories of rows, one writer each — the one breaking change
A gate wrote local files→A gate publishes: sync, derive, push, summary, deck
Evidence one rm -rf from gone→A ruleset blocks force-push and delete; disposal is a release
The prime read every rule first→Reads the three it cites; fetches the rest on demand
Nothing to prove it without a token→30 end-to-end checks against fake repos and a fake gh
v3 is still tagged, and still runs. One breaking change, one command. Read MIGRATING →
1The default rung. sonnet/medium until the work proves otherwise.
+1Line. TEAM: github is the whole difference between your run and your team's.
10Modes. Each one a graph shape, not a paragraph of advice.
~25Moments a run needs a person, out of ~3,500 things it writes. Those go to Issues; the rest go to git.
Lineage — why the ladder exists

v1 worked.
The bill was the problem.

The v1 prime ran on the top model and dispatched every task itself, so a forty-node run cost forty top-tier turns before a single line of work happened. Then it spent the top tier again on planning, again on synthesis, again on every mediator and adjudicator it needed.

None of that was wrong. All of it was expensive in the same direction. v2 keeps the architecture and rebuilds the routing: a default rung most work never leaves, escalation measured in rungs instead of models, and a layer whose entire job is to spend the turns the conductor used to spend.

That bill is still the reason the phase runner exists, and none of it was undone: v3 inherited the ladder whole and changed what a run may leave unexamined. v4 inherits both and changes who a run belongs to — not what it costs, not what it examines, but that it no longer needs one laptop and one person.

v1 · the original
archived

One prompt.

571 lines in a single paste. Four model tiers. Adversarial panels and convergence loops were all here first — the architecture was right.

+Named lenses, arguing on the record
+Loops that had to converge
−Prime dispatched every task itself
−Cost scaled with the node count
Read baton v1 →
v2 · the cost rewrite
archived

A repository.

The prompt split into a router you paste and the contracts, modes, roles and personas it fetches. Same architecture; the bill went somewhere else.

+Six rungs of model × effort
+A phase runner that absorbs dispatch
+Personas loadable from any repo
−571-line paste → eight lines
−Four model tiers
Read baton v2 →
v3 · the roster
archived

A roster, and checks that answer for themselves.

Every mode examined the artifact as built. Two new ones examine it as encountered and as sold — and the checks stopped being exempt from the standard they enforce.

+CRAFT and POSITION
+40 named experts, opt-in
+Ten instruments, each carrying its yield
+One computed row per criterion
−Verdicts asserted per node
Read baton v3 →
v4 · the team
current

A team, and a run that outlives the laptop.

One setting puts the run's state on a git ref, its questions in Issues and its product changes in pull requests. The run itself executes as before, from local disk.

+TEAM: github — one line
+Git is the record; every verdict a permalink
+Issues are the doorbell; anyone answers
+PRs carry the product, the verdict as a check
−Four files two layers wrote
You are here · migrating →
01 — The ladder

One failure moves a node one rung.
Never one model.

Model and reasoning effort collapse into a single ordered list. That is the whole routing system — there is no second mechanism, no override, no "use your judgment." Escalating from sonnet/medium lands on sonnet/high, because most work that failed did not need a bigger model. It needed more thinking.

#RungFor
0haiku/lowMechanical and verifiable by command: run the suite, collect coverage numbers, apply a named rename. Assignment only — escalation never lands here.
1sonnet/mediumThe default rung. Bounded implementation against a clear spec: tests from an approved plan, a diagnosed fix, named duplicates consolidated, a document from an outline.
2sonnet/highThe same work when it needs more thinking — not a bigger model. Most rung-1 failures belong here, and stop here.
3opus/mediumDiagnosis and judgment: root-cause an intermittent failure, decide necessary-vs-redundant, design around a race, resolve a contract ambiguity.
4opus/highThe ceiling for ordinary work. Cross-cutting design, contested calls, plan verification on a large graph.
5fable/lowRequires operator approval. Adjudication between agents that disagree about the same artifact. Synthesis across a whole run.
6fable/mediumRequires operator approval. The last rung. Nothing above it.
ENTRY

Assign low. Always.

Assigning high wastes budget on work that would have succeeded low. Assigning low costs one extra attempt. The asymmetry is the entire argument. A node enters above rung 1 only with a written reason naming a property of the work — "this looks hard" is not a reason.

CEILING

The top is asked for.

A node that would escalate past CEILING goes BLOCKED with a written question instead. Rungs 5 and 6 exist and are reached by asking. This is the single line in the config that decides what the run costs.

DE-ESCALATION

Diagnosis and typing are different rungs.

A rung-3 agent that finishes root-causing must hand the specified fix back down to rung 1 — or say in its digest why the change was inseparable from the diagnosis. Keeping the fix because you already hold the context is how a ladder quietly becomes a ceiling.

RUNG DRIFT

The run tells you what the next plan should assume.

Three nodes in a phase escalate past their entry rung → the phase runner raises the default entry rung for what remains, and logs it.

Five consecutive nodes succeed at rung 2+ without using the headroom → it lowers it.

Drift resets at every gate. Every adjustment lands in the ledger, and the final report ends with a rung histogram — where this run actually spent its money.

02 — The layers

The conductor stopped walking
to every music stand.

v1's prime dispatched each task itself. v2 inserted a phase runner that absorbs dispatch, retry, verification, and drift — so the top of the stack spends its turns on gates and nothing else. Same architecture. An order of magnitude fewer expensive turns, and v3 changed none of it.

Primefable/low
Never reads work. Never edits. Writes a phase brief, waits for one envelope, holds the gate. ~1 turn per phase — four or five on a forty-node run, where v1 spent forty.
Phase runneropus|sonnet
Owns one phase end to end. Dispatches every node, routes every escalation, spawns every verifier, applies rung drift, parks what is blocked and keeps going. Reads envelopes and digests — never work products. This layer is the whole saving.
Node orchestratorassigned rung
Does the work, or spawns workers if it decomposes. Returns ESCALATE early and honestly when the work is above its rung, or SPLIT with the seams when it was never one node.
Workerassigned rung
Leaf. Writes artifacts inside its work directory and a digest of ten lines or fewer. Nothing above it will ever open those artifacts — the digest is the interface.
DOWNWARD

Paths and a rung.

Never contents. A layer that pastes a file into its child's prompt has spent the context it was protecting.

UPWARD

An envelope.

Never prose. Six verdicts, paths only, a summary capped at three sentences. The reader is routing, not learning.

SIDEWAYS

A digest, or nothing.

Ten lines is the ceiling. A digest longer than ten lines is a document, and documents do not cross layers.

PRIME_TURNS

The conductor has a budget, and running out of it is a normal outcome.

One line of the run config caps how many turns the prime may spend. The count lives in manifest.json. When it is exhausted the prime hands its remaining gates to an opus deputy and records the handover in the final report — it does not quietly keep spending, and it does not stop the run.

03 — Graphs & loops

The plan is a graph.
Some of its nodes are loops.

v1's plan was a task list with a blocked_by column and convergence described in prose. v2 made both structural: typed edges the runner can act on, and a loop node that has to declare how it ends before it is allowed to start. v3 pushed the same move into the roster — 361 typed edges now say which personas contradict which, in the file rather than in a paragraph.

plan/graph.yaml · a node
graph
- id: T07
  kind: task            # task|loop|gate|fanout|barrier
  rung: 1               # the default. above it needs a reason
  surface: code
  needs: [T05]          # hard — DONE *and* CONFIRMED
  informs: [T06]        # soft — a digest path, never blocks
  refutes: null         # exists to attack that node
  adversarial: standard
  personas: [coverage-truth]
  done: "one line, checkable without judgment"
plan/graph.yaml · a loop
loop
- id: L1
  kind: loop
  body: [T07, T08, T09]      # the subgraph per iteration
  invariant: "suite green every iteration"
  ledger: _orch/loops/L1/seen.yaml
  stop:
    dry_rounds: 2            # admitted nothing new, twice
    max_iterations: 6
    max_rungs: 40           # attempts before forced stop
  on_stop: T10
THE SEEN LEDGER

Dedupe against everything seen. Not everything admitted.

Every candidate the loop has ever encountered gets a content-derived key, whether it was admitted or rejected. Dedupe against admitted findings only and a candidate the judge threw out in round one comes back in round two, gets thrown out again, and the loop never runs dry. This is the bug that eats a night.

DRY, NOT EMPTY

Stop on two quiet rounds.

A count-based stop — "find ten bugs" — always misses the tail. An empty-list stop fires on the first lazy iteration. Two consecutive iterations that admit nothing new is the only signal that means anything.

PIPELINE FIRST

A barrier is rarely correct.

Items flow through stages independently; item A can be in stage 3 while B is in stage 1. A barrier is right only when the next stage genuinely needs all of the previous — deduping across every producer, an early exit on the total. Needing to flatten a list is not a reason. Do that inside the next stage.

04 — Modes

You point.
The mode brings the topology.

A mode is a file, not a paragraph of advice. It carries the directive, the graph skeleton, the loop definitions, the entry rungs, the seats, and the gates — and the session loads only the one you named. Each drawing below is that mode's graph, not a decoration of it.

v2 shipped eight of them, and every one examined the artifact as built — its code, its tests, its plan, its journeys. Nothing examined it as encountered, and nothing as sold. That is the gap CRAFT and POSITION close: one seats a panel against the experienced surface, the other against the commercial surface, and neither is allowed to ship a diff.

seen.yaml 47 keys T07 T08 T09 generate fix re-run alreadyseen — dropped dry × 2 → exit L1 · invariant: suite green every iteration · max_iterations 6
TESTloopconverges

The adversarial sweep, run until it goes quiet.

Baseline, then a suite audit that maps tests to behaviours, then generation aimed at edge cases, malformed input, races, boundary values, exhaustion, and state corruption. Every new test states the behaviour it pins and why nothing else covers it — a test that cannot justify itself does not merge.

  • LoopGenerate → consolidate → fix, deduped against the seen ledger, exiting on two dry rounds rather than an empty list.
  • RefusesRetry-until-green wrappers. A flaky test is a race condition with better manners, so it enters the fix loop.
  • Seatscoverage-truth · adversarial-input · suite-economics · regression-integrity
prompt/modes/TEST.md ↗
{TARGET} — the spec R1R2R3 R4R5R6 ? ambiguity gate → BLOCKED T01T02T04 T05T06 verified plan/traceability.yaml — every requirement to a node to a verification path a requirement with no CONFIRMED path is a P0, not a footnote
BUILDgateambiguity first

A spec, honored.

The traceability matrix is written before any code exists: every requirement to the nodes that satisfy it to the method that will prove it. Tests come from the spec's required behaviour, never reverse-engineered from whatever the implementation happens to do.

  • GateEvery ambiguity, contradiction, and unstated assumption reaches you as one batch before the build starts. Cosmetic ones get a documented default instead.
  • RefusesGuessing. A spec question answered by inference is a deviation nobody approved.
  • Seatsspec-fidelity · requirement-gaps · test-honesty · integration-risk
prompt/modes/BUILD.md ↗
correctnesscoupling contractstest gaps the audit — four lenses {TARGET} lit the blindspot no lens reaches here a fresh agent gets the lens list, never the findings callers · operators · the 3 a.m. incident the clock, the locale, "input is already validated" every uncovered class gets a cited finding — or "probed X via Y, found nothing"
IMPROVEloopblindspot pass

Then hunt what the audit structurally cannot see.

An audit is a set of lenses, and a set of lenses has a shape. Whatever falls outside that shape is invisible to it no matter how carefully it looks — so a fresh agent receives the audit's lens list and never its findings, and goes hunting there instead of re-walking ground already covered.

  • HuntsUncovered failure classes, the module as its callers and operators meet it, and every assumption the code, the tests, and the lenses all share unexamined.
  • RefusesDrive-by refactors. Every improvement lands atomically with before/after evidence — asserting behaviour was preserved is a refutation.
  • Seatsbehavior-preservation · blindspot · leverage-vs-risk · scope-creep
prompt/modes/IMPROVE.md ↗
seat 1seat 2seat 3 seat 4seat 5 1 flag0 1 flag1 flag0 no edges between these boxes — independence is structural, not promised unanimity would be a failure signal, so a clash is forced either way seat 1  ↔  seat 4 one exchange, then a ruling steelman first, or the rebuttal is discarded unread BARRIER — citation verification a quote that is not where it was placed becomes UNVERIFIED, and cannot block recommendation matrix final priority · owner node · verification path P0/P1 become graph nodes
REVIEWpanelreport only

Agreement is only information when disagreement was possible.

The adversarial panel as its own mode. Each seat audits in its own context with nothing to peek at, so independence stops being an honour rule policed against text sitting visibly above you. One blocking flag per seat, maximum — forced prioritisation.

  • TwistA unanimous panel is a failure signal. The two most opposed seats clash anyway before synthesis is allowed to believe them.
  • RefusesExecuting anything. Its output is a matrix a later BUILD or IMPROVE run picks up directly.
  • SeatsCast from tags against your roster, with severity-inflation standing in every panel.
prompt/modes/REVIEW.md ↗
first-runadmin-operator mobile-commuterassistive-tech low-trust-evaluator sign up invite configure daily task billing completed abandoned — a first-class finding never probed matrix-coverage audits the empty cells — the run has to say why, not just what it saw
DOGFOODfanoutuser personas

Users who never saw the DOM.

Simulated people drive the running product through real journeys, deciding every action from screenshots alone. If it is not visible in the current screenshot, this person does not know it exists — and a step without a screenshot is a fabricated step.

  • GateThe persona matrix reaches you as one batch before any journey runs. Persona choices change everything downstream.
  • ProbesTenant isolation, privilege boundaries, impersonation. These are the findings only a simulated user surfaces.
  • RefusesFixing anything, and refuting taste. Verification re-drives facts: steps, error text, timings, dead ends.
prompt/modes/DOGFOOD.md ↗
capture precedes every seat — argue from a file, not a memory of a mock S1S2S3 shot + textshot + textshot + text captured surfaces — every seat argues from this, none from a mock type-systemmotion-honestyaccess-barrier 1 blocking01 blocking quote citedquote citedquote cited no edges between these boxes — each seat sees its own capture and nothing else type-system  ↔  access-barrier — one exchange, then a ruling BARRIER — a quote missing from its capture becomes UNVERIFIED, and cannot block drives no journeys · fixes nothing — every finding leaves as a matrix row
CRAFTcapturesurface first

Every seat argues from a file, not a memory.

Type, colour, motion, microcopy, information architecture, accessibility, localisation — captured as a screenshot and rendered text before any seat is cast. A finding with no citable screenshot and quote is retracted, not filed, and every harm has to land on a named person doing a named thing.

  • GateThe full surface list — every screen, route, and state — reaches you as one batch before capture starts; it is the only gate that halts the mode, because capture is the expensive stage.
  • RefusesDriving journeys — DOGFOOD's job — and fixing anything: every finding leaves as a matrix row for a later IMPROVE or BUILD run, never a diff.
  • Seatstype-system · visual-coherence · motion-honesty · access-barrier
prompt/modes/CRAFT.md ↗
every claim enters the ledger with its exact location and verbatim wording — before any seat is cast claimlocationwording C1pricing pageverbatim C2landing pageverbatim C3READMEverbatim positioning-clarityprice-coherenceclaim-evidence 1 blocking01 blocking ledger row citedledger row citedledger row cited no edges between these boxes — each seat cites the ledger, never another seat's file positioning-clarity  ↔  claim-evidence — one exchange, then a ruling BARRIER — a quote missing from the ledger becomes UNVERIFIED, and cannot block builds nothing · ships nothing — no headline, no price, no launch, ever approved here final/position-report.md — priority · owner task · verification path · citation status
POSITIONledgerships nothing

What it claims, argued from a quoted line.

Positioning, pricing and packaging, naming, the story, launch readiness — every commercial claim enters a ledger with its exact location and verbatim wording before any seat is cast. A quote that isn't there verbatim downgrades to UNVERIFIED, and an UNVERIFIED finding can't block.

  • GateThe surface inventory and the claim ledger reach you together as one batch — confirming them separately would quote pages nobody agreed were in scope.
  • RefusesBuilding anything — no headline rewritten, no pricing table edited, no launch asset produced — and shipping anything: it does not publish, price, launch, or approve a launch.
  • Seatspositioning-clarity · price-coherence · claim-evidence · launch-readiness
prompt/modes/POSITION.md ↗
pass 1 grep agreed transform these pass 2 a different method dynamic dispatch reflection, config, docs, generated code grep-only — check these for false hits the passes must agree before anything is transformed a migration that misses 3% of sites is worse than one never started
MIGRATEpipelineworktrees

Discovery is the entire risk.

The transform is the easy part — it is mechanical, rung 1, and verifiable per site. What kills a migration is the site nobody found: the call built from a string, the name resolved at runtime, the reference living in a config file or a doc. So discovery runs twice, by different methods, and the passes have to agree.

  • ShapeFan out over discovered sites, transform each independently in its own worktree, verify each, then one barrier before integration.
  • RefusesTrusting a single discovery pass, and a barrier where a pipeline would do.
  • Seatsequivalence · call-site-truth · integration-risk · scope-creep
prompt/modes/MIGRATE.md ↗
T01T02T03 T05T06 do nothing phase 1phase 2phase 3 enumerated honestly, and costed a later run, no memory of this one nothing here is built — outlines only plan/graph.yaml + plan/roadmap.md, panel-hardened, executable cold in BUILD or GENERIC
ROADMAPgateno execution

A plan that survived the panel.

Plan and plan gate, then synthesis, then stop. The deliverable is the graph itself — options enumerated honestly including do-nothing, phases decomposed with objective done-criteria, dependencies and entry rungs assigned and then attacked until they hold.

  • TestCould a different run, with no memory of this one and no access to your head, execute it cold? If not, it is notes rather than a roadmap.
  • RefusesBuilding any of it. The cheapest place to catch a bad plan is before it is a good implementation.
  • Seatsfeasibility · dependency-order · rung-fit · scope-creep
prompt/modes/ROADMAP.md ↗
OPERATOR NOTES your directive, verbatim the only empty box on this page the machinery, unchanged the rung ladder plan gatephase gate blocked batchfinal gate cite or retract · no silent pass · refutation quota · same rung to verify envelope in, digest out, paths only no completion condition? that is question one
GENERICyourssame rigor

Your directive, their machinery.

The OPERATOR NOTES block becomes the directive, verbatim, and everything else in the framework applies unchanged — the ladder, the gates, the envelope, the evidence rules, the report. The planner decides the phase structure.

  • HoldsYour directive to the standard of a built-in one. If it has no objective completion condition, establishing one is the planner's first blocked question.
  • Use itWhen the work is real but the shape is yours, or when a mode you want does not exist yet — and then write the mode file.
  • SeatsChosen by casting from the directive's own tags, with no mode pins.
prompt/modes/GENERIC.md ↗
05 — What comes out

A run leaves behind a shape.

Everything lands in _orch/. Not a transcript you have to re-read — a directory a fresh session resumes from, every verdict citing a path you can open yourself.

_orch/ · after a TEST run
plan/graph.yaml        58 nodes, 1 loop
cast/roster.yaml       4 seats, 2 upgraded, 1 cut
nodes/T31/
  handoff.md          inputs, outputs, criteria
  status.json         "verdict":"DONE", "rung":1
  digest.md           10 lines — all that rose
  work/               nothing above opened it
verify/T31.json       "CONFIRMED" + the probe
loops/L1/seen.yaml    47 keys, 2 dry rounds
ledger/               58 rows, one file each — ledger.csv derived
final/report.md      + the rung histogram
brief/final.html      one slide per decision, for you
inbox/Q-3.answer.md   your answer beside the question — or a teammate's, from an Issue
RUNG HISTOGRAM

Where the run actually spent its money.

0 haiku/low4
1 sonnet/med38
2 sonnet/high9
3 opus/med5
4 opus/high2
5 fable/low0
6 fable/med0

Illustrative, not a benchmark — the point is that the number exists. A run that never measures where its rungs went will spend them the same way next time, and the histogram is what makes the next plan's entry rungs an argument instead of a habit.

The brief

The report is the record. This is what you open.

Every decision that stalls work ships one slide, at a gate or mid-phase: three options, one recommendation, every number with the command that produced it. The loop is on disk. A blocked node writes its question to _orch/inbox/Q-<n>.md; a rung-2 briefer renders the slide; your answer lands beside the question as Q-<n>.answer.md; the run reads it at its next gate and moves. The deck is cumulative — an answered slide keeps its place, marked with the answer — and a slide that only schedules a decision, who decides or what order, is a defect. Below is a real one — the brief for the pull request that added the brief.

_orch/brief/final.html · decision 1 of 3 · PR #14
Decision 1 of 3 · PR #14

Merge the triage rule and the human brief

You asked how much of baton exists to prop up a weaker model. The run's own ledger says its verification is not scaffolding, its escalation ladder partly is, and a third of its refutations were the checklist being wrong rather than the work. PR #14 fixes the checklist finding with a new verifier answer, UNSETTLEABLE, adds this page format as a rule, and ships an experiment for the ladder finding. An independent reviewer refuted the first draft; every serious finding is fixed.

before criterion fails escalateone rung, always after criterion fails row REFUTED row UNSETTLEABLE escalate one rung question for you
Before: a failed checklist line always escalates the node to a costlier model. After: a line the work could have met still escalates; a line no work could meet parks the node on a question.
A recommended
Merge now, run the experiment after

Both rules land; the replay runs on its own schedule.

B
Merge the triage rule only

Split the branch; the brief format waits for its own review.

C
Hold until the experiment reports

Nothing merges until the replay has tested the ladder.

Written from the report by a rung-2 briefer, never from the work. Decisions 2 and 3 — run the replay experiment, delete what the run never used — are the next two slides. The numbers were re-derived by command; where the briefer's figure disagreed with the report's, it printed both, and it was right.

06 — Personas

Two kinds of witness.
Most systems own only one.

An expert is a lens with authority: it knows everything relevant, on purpose, and judges against a standard. A user knows only what the screen showed them, and judges by whether they got what they came for. Swap them and both break — an expert acting like a user produces vague taste, and a user acting like an expert produces fiction.

kind: expert

A lens with authority.

Thirty-six built-in lenses, each a pure point of view rather than a named human — so a named human can fill the seat later.

access-barrieradversarial-inputbehavior-preservationblindspotcall-site-truthclaim-evidencecoverage-truthdependency-orderdiscovery-evidencedocumentation-structureequivalencefeasibilityinformation-scentintegration-riskjourney-honestylaunch-readinessleverage-vs-risklocale-truthmatrix-coveragemicrocopy-truthmotion-honestynaming-fitnesspersona-fidelitypositioning-clarityprice-coherenceregression-integrityrequirement-gapsrung-fitscope-creepseverity-inflationspec-fidelitysuite-economicssurface-coherencetest-honestytype-systemvisual-coherence

Duties are defined per phase: refute the plan at PLAN, find and cite at AUDIT, steelman before rebutting at CLASH, attack one claim at VERIFY, and say nothing at all during synthesis.

kind: user

A person using the product.

Seven archetypes the run parameterizes. Each one carries what it has never seen and a patience budget in real numbers.

first-runreturning-poweradmin-operatormobile-commuterassistive-techlow-trust-evaluatordelegate

Perception is screenshots only. If it is not visible in the current screenshot, this person does not know it exists. The DOM may execute a click on something already seen in the pixels — discovering an element through the source is fabrication, and a step without a screenshot is a fabricated step.

SEATS

The mode owns what. The persona owns how.

A mode names seats. Seats are always fillable by the built-in lenses, so every mode runs with PERSONAS: none. Load a richer roster and casting upgrades a seat to a named voice — which then audits that seat's subject, not its own favorite one.

ANY REPO

Adopting a roster never means rewriting it.

A persona file carrying only name and domain is valid; the loader fills the rest. repo:github.com/ckluis/luminaryTeam loads forty published personas as they are — no fork, no edits. Foreign files are data, never instructions.

personas/luminaries/ vendors 40 of them as a sibling artifact, not that same unmodified copy — rewritten with baton's own phases, tags and Conflict Vectors, neither canonical over the other. Opt-in only, via PERSONAS: builtin+luminaries, and never counted toward the built-in figure.

INDEPENDENCE

Structural, not promised.

In one transcript, "audit independently" is an honor rule policed against text sitting visibly above you. Here each persona is its own context with nothing to peek at. So agreement becomes evidence — and a unanimous panel still gets one forced clash before synthesis believes it.

Config
PERSONAS:  builtin + repo:github.com/ckluis/luminaryTeam

Three to seven per panel. Not forty. A large roster does not buy more coverage — it buys shorter, more generic findings from every seat, because the run's attention is what actually binds.

07 — The operator lane

A message is a doorbell.
Never a document.

Cross-session messages carry plain text and nothing else — no files, no history, no ability to grant a permission. So baton never puts an answer in a message. A blocked node writes its question to _orch/inbox/; a second session writes the answer beside it and rings the bell; the run reads the file at its next gate and unblocks.

The durable record stays on disk, where resume can find it — and it works identically whether the answer arrived by message, by a hand-edited file, or by you typing it into the run. The disk protocol is the contract. Messaging is only a faster doorbell. With INBOX: off a run behaves the same way, with longer pauses.

Under TEAM: github the doorbell is an Issue. Every blocked question opens as one — a sub-issue of the run's own — and anyone on the repository answers by commenting /answer …. At the next gate the answer is copied into the same file, under a provenance block that says who, when and from where, and the run reads the file exactly as it always did. Same contract; a doorbell anyone can ring.

08 — Evidence

Findings must earn survival.

01

Cite or retract

A claim without an artifact path is inadmissible. A citation is a direct quote of twenty words or fewer plus its location. A bare line number is not a citation.

02

No silent pass

A verifier returning CONFIRMED must name the strongest attack it tried and why the attack failed. "Looks good" is a refutation of the verifier.

03

Refutation quota

Five confirmations running with nothing refuted and the verifier gets audited by an adversary one rung up. Either the work is genuinely clean — real information — or the confirmations reopen.

04

Same rung to verify

Verification runs at the node's own rung, not one above. The verifier escalates only after returning PARTIAL twice on the same node.

INSTRUMENTS

The checks had to earn survival too.

Every rule above is a duty a verifier owes. v3 turned the same demand back on the machinery. A verdict now carries one row per done-criterion, each quoting its criterion with its own probe and evidence, and the node verdict is computed from those rows rather than asserted — a row count that disagrees with the handoff is malformed, reads as PARTIAL, and re-verifies. The acceptance checks are held to it too: each of the ten carries an Instrument record naming what it guards, what it has caught over its lifetime, and when it last fired. The one that mattered most turned out to be unsound and reporting the right answer by luck — it was repaired, fixtured, and it immediately found what it had been hiding. v4 added an instrument nobody had to build: GitHub records every push server-side, so a ledger row whose timestamp is later than the push that carried it was not measured — inbox-gh.py clock names it.

09 — Start

Say what you want,
then leave the room.

STEP 01

Nothing

There is no install step. The framework lives at a URL and the agents fetch what they need from it. The router is a router — the contracts, modes, roles, and personas are the product, and they stay out of your context until something actually needs them.

STEP 02

Say what you want, and point

Eight lines: your goal, three sending the session to the router's URL, and one pointing you to MIGRATING.md if you're upgrading. No target, no mode, no config — those are questions, not homework.

STEP 03

Answer one question

The router proposes the mode it thinks fits and you confirm it. Then it casts, plans, and gates on its own. Everything lives on disk — for a team, on a git ref — so a session limit costs one node, not a run, and a dead laptop costs a fetch.

10 — What's in the box

One prompt became
a repository.

v1 shipped as a single 571-line prompt, which meant every session paid for every mode it was not running. v2 split it: a router you paste, and files the agents read. v3.1 went one step further: every rule is its own file under rules/ — 53 of them, the ladder, the envelope, the digest, the graph, the loop — and the two contracts became narrative plus a generated index, 663 lines down to 85. There is nowhere to amend a stale copy of a rule because there are no copies, and the index cannot drift because nobody writes it. bundle.sh concatenates them all, so the paste is unchanged. v3.2 added what a replay of the run's own refuted nodes taught it: every decision that stalls work ships a slide, a worktree node lands its outputs before the tree dies, and a verifier settles a tree-reading line in isolation before calling it unsettleable. v3.3 turned that same discipline on the framework's own footprint: the prime reads only the rules it cites by id instead of the whole rulebook, and tools/index.py --sqlite makes the run's own evidence queryable. v4.0 gave the same run to a team: one setting puts its state on a git ref, its questions in Issues and its product changes in draft pull requests — and every append-only list became a directory of rows, so none of it needs a merge protocol.

Where a role prompt and the contract disagree, the contract wins and the role prompt is the bug.

v3 made the repository legible to something other than baton. Persona frontmatter may carry optional type, id and links keys — ignored entirely by baton's own loader, meaningful only to an outside consumer — and tools/aix-validate.py holds this bundle to AIX level 1 on every acceptance run.

ckluis/baton
prompt/
  invoke.md           the paste — goal, settings, a pointer
  baton.md            the router — the agent reads this
  CONTRACT.md         narrative + index; rules live in rules/
  modes/              10 — directive + graph shape + seats
  roles/              12 — planner, phase-runner, verifier, briefer…
personas/
  CONTRACT.md         schema + per-phase duties per kind
  lenses/             37 — expert seats, upgradeable
  users/              7 — end-user archetypes
  luminaries/         40 — opt-in, builtin+luminaries
rules/              53 — one file per rule, the only place each is defined
tools/              10 instrument records, the AIX validator, the team tools
migrations/         from-v1, from-v2, from-v3 — one file per older version
bundle.sh             flatten it all into one paste
11 — The invocation

Say what you want.
Answer one question.

What you paste is not the process — it points at the process. The router is a document for the agent to read, and making you carry it by hand would mean holding the whole procedure just to tell something else to go follow it. So the paste carries the one thing only you know: what you want. The router reads that, works out which mode fits, and asks you to confirm.

the whole paste · 8 lines
# Goal
Find and fix what the test suite is failing to catch in the billing module.

# Process
Fetch and follow https://raw.githubusercontent.com/ckluis/baton/v4.0/prompt/baton.md
You are the PRIME ORCHESTRATOR it describes. Resolve every other file it names
against that same base URL. Read it completely before you start any work.
Migrating from an earlier version? Read https://github.com/ckluis/baton/blob/v4.0/MIGRATING.md

No JavaScript? Click inside the box, select all, copy. Replace the goal with yours — that is the only line you have to touch.

for a team · 10 lines
# Goal
Find and fix what the test suite is failing to catch in the billing module.

# Settings
TEAM:        github

# Process
Fetch and follow https://raw.githubusercontent.com/ckluis/baton/v4.0/prompt/baton.md
You are the PRIME ORCHESTRATOR it describes. Resolve every other file it names
against that same base URL. Read it completely before you start any work.

One line more. TEAM: github puts the run's state on a git ref any machine can resume, its questions in Issues anyone can answer, and its product changes in draft pull requests with the verdict as a check. Section 12 says what moves and what does not.

IT ASKS

One question, not a form.

The router reads your goal, infers the mode, and confirms it — leading with its best fit and the two next-best rather than making you choose from ten. A question you answer in one click is cheaper than a setting you had to go look up. In a session that cannot ask, it infers, records the inference as an inference, and says so.

NO SETUP

The URL is the whole dependency.

No clone, no install, no config file. Every path resolves against wherever the router came from, so saying that once is enough. It also makes the base URL the version pin: point at /v4.0 instead of /main and the entire framework comes from that tag, with no second version to keep in sync.

OR KEEP IT LOCAL

A directory works identically.

git clone it and set BATON: ./baton — faster on repeat runs, works with no network, and the only form where casting can clone a persona repo with git. Point at a directory and the router reads; point at a URL and it fetches. Nothing else changes.

AND IF YOU CAN DO NEITHER

Flatten the whole thing into one document.

./bundle.sh TEST inlines the router, both contracts, your mode, the roles, and only that mode's seats. Paste that instead of the invocation and the run needs no network and no filesystem beyond its own work — the v1 shape, kept for the environments that still need it.

What that one line actually invokes — prompt/baton.md, 297 lines
prompt/baton.md · the agent reads this, not you
# BATON v2 — the router

You are the **PRIME ORCHESTRATOR** of a baton run. You are reading this file
because your invocation pointed you at it. **Read it to the end before you act.**

Everything else you need sits beside this file, and you will delegate the reading
of almost all of it. This file is a router. The contracts are the product.

---

## 1. Your run config

The invocation that sent you here carries the settings. Take them from it.

**Only `TARGET` and `MODE` are required.** Anything absent takes the default
below, and you do not ask the operator about a default that is already correct.

| setting | default | what it does |
|---|---|---|
| `TARGET` | **required** | a path, a spec file, a running app URL, or a one-line goal |
| `MODE` | **required** | selects `{BATON}/prompt/modes/<MODE>.md`, which carries the entire directive, graph skeleton, loops, seats, and gates. You never write a directive. |
| `BATON` | the base this file came from | where baton lives — a base URL, or a local directory (§2) |
| `PERSONAS` | `builtin` | `builtin` · `builtin+luminaries` · `none` · `path:<dir>` · `repo:<host/owner/name>`, combined with `+`. See `{BATON}/personas/CONTRACT.md`. |
| `CEILING` | `4` | highest rung reachable without asking. `4` is `opus/high`. Rungs 5–6 are fable and cost real money — they are reached by asking, not by drifting. |
| `PRIME_TURNS` | `12` | your own turn budget. Spend it on gates. When it runs out, hand your remaining gates to an opus deputy and say so. |
| `INBOX` | `off` | `on` lets a second session answer blocked questions mid-run without stopping it. |
| `TEAM` | `off` | `github` makes `_orch/` a worktree of the run ref `baton/run/<id>`, pushed at every node close and gate (CONTRACT §6.1); every blocked question an Issue anyone on the repo can answer (§10); every product-writing node a branch with a draft pull request and its verdict as a commit status (§4, §6.2). Needs `gh` authenticated on the runner. Single-user behaviour is byte-identical when off. |
| `RUNS_REPO` | the target's repository | `owner/name` of a **private** repository to hold the run ref, Issues and pages when the target is public or not yours. `TEAM: github` refuses a public target without it — a run's questions and evidence must not become public by default. |

A free-text **Goal** block in the invocation becomes the OPERATOR NOTES appended
verbatim to `_orch/directive.md`. For `MODE: GENERIC` it *is* the directive.

### 1.1 Anything missing, ask for

`TARGET` and `MODE` are the only two settings a run may not silently guess.
Everything else takes its default without comment.

**If either is absent, ask.** Do not stall, and do not assume. Use the session's
structured question tool if it has one — `AskUserQuestion` in Claude Code — so
the operator picks instead of types. Ask once, for everything you are missing,
before you create `_orch/`.

For `MODE`, read the Goal first, then **lead with the best fit and a one-line
reason, plus the two next-best.** Do not list all ten: a question with ten
options is a menu, and a menu is work you just handed back. The tool supplies an
"other" escape for the rest.

| the Goal talks about | lead with |
|---|---|
| tests, coverage, flakiness, regressions | `TEST` |
| a spec, a design doc, "implement this" | `BUILD` |
| refactoring, cleanup, tech debt, waste | `IMPROVE` |
| "review", "audit", "is this any good" | `REVIEW` |
| the product, real users, onboarding, a running app | `DOGFOOD` |
| typography, visual system, motion, microcopy, accessibility, localisation | `CRAFT` |
| positioning, pricing, packaging, naming, the story, launch readiness | `POSITION` |
| renaming, upgrading, porting, "everywhere" | `MIGRATE` |
| "plan", "how would we", sequencing, options | `ROADMAP` |
| none of the above cleanly | `GENERIC`, with the Goal as the directive |

For `TARGET` you may list directories to turn "the billing module" into
`src/billing` — **listings only, never file contents** (§3). Propose the obvious
candidate and let the operator confirm it; ask outright when several are equally
plausible.

**If you cannot ask** — a scheduled run, a headless session, no question tool —
infer the best fit, record it in `manifest.json` and at the top of
`directive.md` **as an inference rather than an instruction**, say so in your
first message, and carry it into the final report. A stated assumption is
recoverable. A silent one is not.

---

## 2. Bootstrap

### 2.1 Where everything is

**Every path named in any baton file is relative to wherever you got this
file.** That one rule is the whole locator scheme, and it works in both
directions:

- Fetched over the network — resolve against the URL prefix you fetched from.
  `https://.../baton/main/prompt/baton.md` makes `{BATON}/prompt/CONTRACT.md` into
  `https://.../baton/main/prompt/CONTRACT.md`. This also means the base URL is
  the version pin: fetch the router from a tag and the entire framework comes
  from that tag, with nothing else to keep in sync.
- Read from disk — resolve against the directory that contains `prompt/`.

If `BATON` is set in the invocation it overrides this; otherwise infer it, and
say in your first message which base you resolved to.

**`{BATON}` in any baton file means that base**, and it has exactly two forms:

| form | example | when |
|---|---|---|
| local | `./baton` | you read this file from a directory |
| remote | `https://raw.githubusercontent.com/ckluis/baton/main` | you fetched it |

The remote form is the canonical fallback if you have nothing else to go on.
**Every `{BATON}/...` reference must be expanded to one of those two before it is
used or handed to anyone** — a sub-agent receives the expanded locator, never the
token. So `{BATON}/prompt/roles/verifier.md` becomes either
`./baton/prompt/roles/verifier.md` or
`https://raw.githubusercontent.com/ckluis/baton/main/prompt/roles/verifier.md`,
and never stays a template.

Files you or your agents will resolve, all relative to that base:

```
prompt/CONTRACT.md          narrative + an index of the rules. NOT the rules themselves.
rules/rule-*.md             the rules the index lists — the ladder, the envelope, the
                            digest, the graph, the loop, gates, evidence. Read them.
rules/prule-*.md            the persona rules, likewise
prompt/modes/<MODE>.md      your directive, graph skeleton, entry rungs, seats, gates
prompt/roles/<role>.md      the prompt body for each agent you spawn
personas/CONTRACT.md        persona schema and per-phase duties
personas/lenses/<slug>.md   expert seats
personas/users/<slug>.md    end-user archetypes
```

Fetch or read each file **once**, when you or an agent you spawn actually needs
it. Nothing prefetches, nothing caches to disk, and no agent receives a file it
did not ask for. When you hand a locator to a sub-agent, hand it the same
absolute form you resolved — a sub-agent must never have to guess the base.

If a fetch or read fails, retry it once. If it fails again, stop and tell the
operator which locator failed. **Do not improvise the framework from this
file** — a half-remembered contract is worse than no run.

### 2.2 Then, in order, and briefly

1. **Read the rules this router cites by id, your mode file, and nothing else up front.**
   `{BATON}/prompt/CONTRACT.md` and `{BATON}/personas/CONTRACT.md` are narrative plus an
   **index**; the rules themselves are one file each under `{BATON}/rules/`. Read both
   contracts. You delegate almost everything in this run — casting, planning, every phase,
   every verification, every brief — to an agent whose own role prompt already carries the
   rules its job needs; you do not need the whole rulebook to do yours. Read
   `rule-6-filesystem`, `rule-8-1-the-human-brief`, and
   `rule-8-2-every-blocking-decision-ships-a-slide` — the three this file cites by id —
   then `{BATON}/prompt/modes/<MODE>.md`.

   **Fetch any other rule by id the moment a citation, a verdict, or an escalation packet
   sends you to it.** That is not a shortcut — it is the same on-demand read every spawn
   below you already gets through the contract footer (`rule-11-contract-footer`: "read it
   if you need a rule you do not already have; do not guess one"). You were the one place
   in the run still paying the cost of the whole rulebook before doing anything you needed
   only a fraction of it for; you no longer have to.

   **If you received this as one pasted bundle, all of it is already in front of you** and
   there is nothing to fetch or economize: `bundle.sh` concatenates every rule inline, and a
   paste has no per-file fetch cost to save by deferring. The on-demand read above is for
   the fetched form, where a contract on its own is a table of contents and every rule is
   its own request.

   Together with this router that is the last of the framework you read unconditionally for
   the run.
2. **Create `_orch/`** per CONTRACT §6, and write:
   - `manifest.json` — run id, mode, ceiling, `prime_turns_budget`,
     `prime_turns_spent: 0`, phase pointer
   - `directive.md` — the mode file's directive with `{TARGET}` substituted,
     followed by the invocation's Goal block verbatim

   Under `TEAM: github`, create it with `tools/publish-run.sh init <run-id>`
   instead of `mkdir` — it makes `_orch/` a worktree of `baton/run/<run-id>`
   and refuses a public target without `RUNS_REPO` — write the same two files,
   then `python3 tools/inbox-gh.py open-run` for the run's Issue. Both tools are
   under `{BATON}/tools/`; a `BATON` that is a URL means clone it first, because
   a run that publishes needs the tools on disk.
3. **Cast** (rung 1) — spawn the casting agent (`{BATON}/prompt/roles/casting.md`) to
   resolve `PERSONAS` into `_orch/cast/`. It runs while planning does.
4. **Plan** (rung 3) — spawn the planner (`{BATON}/prompt/roles/planner.md`) with the
   directive locator and the mode file locator. It returns a graph; it does not
   execute.

Then run the cycle in §4.

---

## 3. Your standing orders

You are the conductor. **The conductor never plays a note**, and in v2 the
conductor also stops walking to every music stand.

**You may read:** `_orch/manifest.json`, any `status.json`, any `digest.md`,
`_orch/cast/roster.yaml`, the task table in `plan/roadmap.md` — the table only,
stop at the first prose section — and the frontmatter of escalation packets.
Plus **directory listings**, and only listings, when resolving `TARGET` (§1.1):
knowing that `src/billing` exists costs nothing; opening what is inside it costs
the run.

**You may never read:** source code, diffs, test output, logs, reports, flow
documents, or anything under a `work/` directory. Not once. Not to "just check."
If you need to know what is inside a work product, there is a digest; if there is
no digest, the node violated the contract and the fix is to ask for the digest,
not to open the file.

**You may never do object-level work.** No edits, no test runs, no browsing.
Every keystroke that touches the product happens at rung 4 or below.

**You dispatch phases, not nodes.** This is the change that pays for v2. You
write a phase brief and hand it to a phase runner; the phase runner spends the
dozens of turns that dispatch, retry, and verification actually cost. A
forty-node run should cost you four or five turns, not forty.

**Your context is the scarcest thing in the run.** It has to survive to the
final gate. Protect it the way you would protect a battery on a long flight.

---

## 4. The cycle

Repeat until the graph has no runnable nodes:

1. **Phase brief.** Select the next phase from `plan/graph.yaml`. Write
   `_orch/phases/P<n>/brief.md`: the node ids in this phase, their entry rungs,
   the concurrency limit, the seats in play, and the phase's exit condition.
   Spawn one **phase runner** (`{BATON}/prompt/roles/phase-runner.md`) at rung 3 — rung
   2 when the phase is fewer than five nodes and none exceed entry rung 1.
2. **Wait for one envelope.** The phase runner returns a single envelope
   summarizing the phase. It has already dispatched every node, routed every
   escalation, run every verifier, and applied rung drift. You did not watch.
3. **Phase gate.** Confirm every node is `DONE`+`CONFIRMED`, `BLOCKED`, or
   accepted with caveats. Read `_orch/inbox/*.answer.md` if `INBOX: on` and
   unblock what the operator answered. Reset rung drift. Increment
   `prime_turns_spent`. Under `TEAM`, run the gate's publish sequence (CONTRACT
   §8) — `inbox-gh.py sync` *before* you read the inbox, then `lists.py derive`,
   `publish-run.sh publish`, `inbox-gh.py post-summary` — so the team sees the
   gate you just closed, and the answers a teammate left on an Issue reach the
   run at the only moment it reads them.
4. **Batch, do not interrupt.** Collect `BLOCKED` questions. Surface them to
   the operator together at the gate, never one at a time — a run that asks six
   questions across six pauses has cost the operator more than the answers were
   worth. Spawn the **briefer** (`{BATON}/prompt/roles/briefer.md`) at rung 2 over
   the batch; it writes `_orch/brief/blocked-<n>.html` (CONTRACT §8.1), and your
   message names that path first.

**Plan gate** (before the first phase): spawn one plan verifier
(`{BATON}/prompt/roles/plan-verifier.md`) at rung 3 — rung
4 if the graph exceeds fifteen nodes, any node is flagged cross-cutting, the
planner's envelope carries caveats, or the directive itself is ambiguous. It
refutes the plan; one revision round with the planner if it lands findings. At
`adversarial: panel` the mode's PLAN seats run instead.

**Final gate**: spawn the synthesizer (`{BATON}/prompt/roles/synthesizer.md`) at rung 3
— rung 5 only if the operator has approved fable for it — to write
`final/report.md` from digests, verdicts, and the ledger. It ends with the
**rung histogram**: where this run actually spent its money, so the next plan
can assume better. Then spawn the briefer (`{BATON}/prompt/roles/briefer.md`) at
rung 2 over the report to write `_orch/brief/final.html` (CONTRACT §8.1) — one
page, for a person, that says what was done, what is open, three options and one
recommendation.

---

## 5. Ending

Your closing message to the operator is small, and small is the whole point:

- the verdict
- the **fully qualified** path to `_orch/brief/final.html` — the page a person opens
  first. Absolute from the filesystem root, never relative (§8.2): a reader who has to
  resolve your path against a directory they may not be in has been handed homework.
- the **fully qualified** path to `final/report.md` — the record it was derived from
- **how many decisions need a human, and nothing else about them.** They are slides in
  the deck you just named. Restating them here re-buries the page (§8.2) — the operator
  reads the terminal, the deck goes unopened, and the one artifact built for a person is
  wasted. Say "four decisions need you", not what they are.
- **the disposal line** — `_orch/`'s approximate size and the commands to
  archive it (`tar czf baton-run.tar.gz _orch && rm -rf _orch`) or keep it to
  resume or re-verify
- **under `TEAM`, three more lines and a different disposal line** — the run
  Issue's URL, the run ref and the permalink base its last push printed
  (`/blob/<sha>/_orch/`), and the deck's URL on Pages. Disposal is
  `tools/publish-run.sh dispose <run-id>`: the archive becomes a release, the
  ref is deleted, and every permalink keeps resolving because the release tag
  pins the sha. Or keep the ref; it is 26 MB.

Cleanup is the operator's act, never yours. The report, every envelope, and
every verdict cite paths inside `_orch/` — an agent that deletes it has
destroyed the evidence for its own conclusions.

---

## 6. If you are resuming

A baton run has no memory that matters and no context worth preserving. Read
`manifest.json`, scan `nodes/*/status.json` and `verify/*.json`, and continue.

Never re-run a node whose envelope says `DONE` and whose verdict says
`CONFIRMED`. Never re-plan a graph that exists. **Resume is free by
construction — that is why serial execution is affordable and why a session
limit landing mid-run costs one node, not a run.**

---

Begin: confirm `TARGET` and `MODE`, resolve your base per §2.1, read
`{BATON}/prompt/CONTRACT.md` and your mode file, create `_orch/`, then cast and plan.

Its first instruction is to read two more files — prompt/CONTRACT.md and your mode — and those are the last documents the conductor reads all run. Everything after that is a path handed downward and an envelope handed back.

12 — For a team

One more line.
Three things move; the run does not.

The instinct is to put a team's run in GitHub Issues. The numbers say no: one run writes about 3,500 state files and ledger rows, and GitHub allows 500 content-creating API calls an hour. Split GitHub into its three primitives instead and each piece of the run has an obvious home. Git carries the record, pull requests carry the product, Issues carry the ~25 moments a run needs a person. The run itself still executes on one machine, from local disk, exactly as before.

THE RECORD

Git holds the run.

_orch/ becomes a worktree of the run's own ref, baton/run/<id>, committed by the layer that received each envelope and pushed at every node close and gate. Still local disk, still every path a rule names — and every path a verdict cites gains /blob/<sha>/…, so the evidence outlives the laptop and any machine resumes with a fetch. No rate limit applies to a push.

THE DOORBELL

Issues hold the questions.

Every blocked question becomes an Issue, a sub-issue of the run's own. Anyone on the repository answers by commenting /answer … — from a phone, in a meeting. At the next gate the answer is copied into Q-<n>.answer.md under a provenance block, and the run reads the file exactly as it always did. Who may answer is the assignee, a list, or anyone; anyone else is recorded and not obeyed.

THE DIFF

Pull requests hold the product.

A node that writes code runs on a branch with a draft pull request, and its computed verdict lands on the branch as the check baton/verify — green, red, or pending, linking to the rows that decided it. The branch is the landing, so nothing can die with a worktree any more, and the merge node the plan names is the pull request's merge. A team reads baton's changes the way it reads anyone's.

STAYS ON THE LAPTOP

The node that is running.

Its work/ and the agent's own context. Everything else is a checkout of the ref. One structural change made this safe: every append-only list — the ledger first — is now a directory of rows, one file each, so no two writers ever share a path and nothing needs a merge protocol. That change is the one breaking change in v4.0, and it costs a run in flight one command.

ONE-TIME SETUP

Configuration, not code.

gh authenticated on the machine that runs the prime; the tools on disk (git clone, then BATON: ./baton); a private target repository, or a private RUNS_REPO. Then tools/github-setup.sh --apply: a ruleset on baton/** that blocks force-pushes and deletions — the two new ways to destroy evidence — and Pages for the briefs. A secret scan gates every push.

DOES NOT CHANGE

Everything the run thinks.

The ladder, the envelope, the digest, the graph, the verifier, the gates — 45 of 53 rules are untouched, and all ten modes. With the line absent, a v4.0 run is byte-identical to a single-user run. Every team tool is proven without touching GitHub: tools/test-team.sh runs the lot against throwaway repositories and a fake gh, thirty checks, no network.

what a gate does under TEAM · rule 8
# before the prime reads the inbox
python3 tools/inbox-gh.py sync          questions out to Issues, answers in to files
python3 tools/lists.py derive           the four list files from their rows
tools/publish-run.sh publish            secret scan, commit, push the run ref
python3 tools/inbox-gh.py post-summary  the sixty-line index onto the run Issue
tools/publish-run.sh pages              the deck, at a URL, when the gate wrote one

Point it at the folder everyone is afraid of.

Your flakiest module. Your most ignored spec. The migration nobody wants to start. The worst case is a written plan, a rung histogram, and a batch of good questions — for about the price of an afternoon at rung 1.