Dispatch Economy Reference
This page holds the facts of the dispatch economy. Read it to find one fact. How one dispatch runs, where the money goes and what to do after a denial are on Dispatch Economy. Jev, the external decision model, is on Decision model (Jev). The routes, hooks, installed files and state files are on Agent Harness.
On this page: Terms · Model and effort · Review dispatches · The price gate · The orchestrator’s own context · Evidence
evidence §N on this page cites section N of the evidence file named in Evidence.
|
Terms
-
Jev is the external decision model that settles cost-only choices. See Decision model (Jev).
-
A Pick line is the
Pick: <model>/<effort> - <source>/<source>line that a producer brief carries. See Model and effort. -
A dispatch is one
Agentcall that starts a sub-agent. The hooks match the tool namesAgentandTask. -
A producer is a sub-agent that writes: a coding agent, or
ft-ui-ux-design. -
A reviewer is a read-only sub-agent:
verifier,ft-test-adversaryorft-architecture-audit. -
A lane is one running top-level orchestrator.
-
A unit is one bounded piece of work for a coding agent.
-
A DoD (definition of done) is the measurable condition that ends a unit.
Model and effort: two picks on every dispatch
Every dispatch of a producer (a coding agent, or a child orchestrator in slice mode) names BOTH
model and effort. If either is missing, the agent’s frontmatter default is paid silently. The two
picks are independent. A wide mechanical change is sonnet/low. A three-line fix to a retry
condition is small but high.
model |
The unit is… |
|---|---|
|
fully specified by the brief: files and symbols named, a precedent to copy, at most 3 files and ~60 changed lines, tests extend an existing class. |
|
standard work inside one module: a new file or class on an existing pattern, a new test class, branching logic, more than ~60 lines. |
|
no precedent; concurrency, transactions or caching; a security or auth surface; contract, protocol or schema design; cross-module; behaviour the brief cannot fully state. |
effort |
The unit needs… |
|---|---|
|
transcription: the brief names every edit and the precedent. |
|
ordinary choices inside a known pattern. The default when unsure. |
|
reasoning rather than volume: interacting conditions, failure paths, ordering, an open design choice. |
Start at haiku and move up only for a signal you can cite (file:line, a section of the
design brief, a count). An opus signal goes straight to opus. Security or contract
design is never sent through a cheaper model to see whether it fails. fable is refused by price-gate.py on every
dispatch, except for a session the owner lists in ~/.local/state/ft-ai-toolkit/fable-exception.json before its until
time; only the owner edits that file. The owner’s live fable window was retired on 2026-11-06: about 2x the cost in the peered roles with
no measured gain (~/.local/state/ft-ai-toolkit/run/2026-11-06-fable-ab-final.md). xhigh and max are used only
when you ask for them.
Every producer brief carries three lines that the gate checks:
-
Size: files <n> · lines ~<n>lets the gate check the unit cap against a number. -
Raise: …lists the signals that make a receiver stop and returnTIER_RAISE: <model> - <signal>. -
Pick: <model>/<effort> - <model source>/<effort source>names where each value came from. Each source isjev,selforoverride. Aselfadds(unsure: <tier|model|effort>). Anoverrideadds: <cited signal>. Example:Pick: sonnet/medium - jev/self (unsure: effort).
Escalation
After every unit the orchestrator checks the DoD and what the unit delivered against the pick. New
files count (git status --porcelain, not only git diff). An unmet DoD gets ONE repair on the same
model, then a fresh dispatch one model up. A model that failed twice does not get a third try. The
orchestrator honours a TIER_RAISE without argument. A failure caused by a wrong brief goes back to the
plan, never up a model.
Unit size
A run costs roughly the square of its length, and a dispatch pays a fixed entry price first (about 30K tokens). So split long work and never split short work.
-
Bounds per model:
haikuat most 25 tool calls and 10 minutes,sonnet40 and 20,opus60 and 30. -
Hard cap per unit: about 400 changed lines or 10 files, except a set that does not build half-applied.
-
price-gate.pydenies a producer dispatch whoseSize:line declares more than 500 lines or 12 files and does not sayatomic. -
Nothing below about 15 predicted tool calls is split. Merge it instead.
-
A slice is a child
ft-developerinMode: slicethat runs a part of the approved plan. A slice pays only from 8 leaf dispatches up. Slices run serialized on the same working tree.
Review dispatches: priced by the lens
verifier, ft-test-adversary and ft-architecture-audit dispatches name model and effort too.
They carry no Pick: line and no Jev question. The table decides.
| Pass | model |
effort |
|---|---|---|
Judgment lens, first pass: Security, Correctness, Requirements-coverage, Performance, Visual/UX (the browser executor); the test adversary |
|
|
Mechanical lens, first pass: API-contract, FT-standard / Architecture conformance, Clarity, Test-plan adequacy |
|
|
Re-check of a lens that already ran (the objection delta, the same evidence pack; a later adversary pass) |
the first pass’s model, never cheaper than the one that objected |
|
A material revision re-runs lenses as first passes. A CRITICAL change raises a mechanical lens to
opus. A re-check should not pay first-pass depth to read a delta (evidence: review rounds).
These rules cut the number of review rounds (tiering.md §1a, §2):
-
Round 1 runs the route’s whole lens set. No lens waits for a later round because of the run-cost budget, a refused dispatch or a stopped app.
-
A revision closes the class, not the instance. Before a re-check, the orchestrator does four things for each answered objection:
-
It sweeps the sibling sites.
-
It brings every prose surface that names the changed mechanism in line.
-
It follows the mechanism to every path that reaches it.
-
It adds a test cell that fails without the fix.
The re-check brief carries
<ID> closed · fix · siblings · prose · cellper objection.ft-developernames that line itself at checkpoints D and F.
-
-
The assembled gate list comes from grep.
ft-developerStage 7 and thebugfix-agentgate add everysrc/testclass that references a touched package or scans source trees (*GuardTest,*SourceScan,*ManifestTest, catalog and coverage guards). They add these classes, not only the tests the units named. Averifierlens that calls code precedent-conforming cites the run of the guard that pins the precedent, or returnsNEEDS_EVIDENCEand names it. -
One pass, every finding; one batch, every ID. A reviewer exhausts its lens before returning. It tags each opened ID
blockingornote. Only ablockingID refutes. A lens whose IDs are all notes is SOUND and is not re-checked. On a re-check, an ID opened outside the revision’s delta is alsomissed. The orchestrator triages only when the whole round is back. It fixes every open ID of the round, notes included, in ONE revision of the design brief or one repair brief per zone.deploy/evals/round-watch.pymeasures the rounds against the recorded baseline.
The price gate
price-gate.py runs on PreToolUse for Agent|Task|SendMessage. The pricing checks (problems) act
when ft-developer or bugfix-agent dispatches. The other checks act on any caller. On SendMessage
the hook applies only the 200K continuation line.
What the pricing checks deny
The hook denies and names every missing item at once:
| Dispatch | Denied when |
|---|---|
A producer ( |
no |
A review role |
no |
The dispatch is not paid for. The orchestrator fixes the dispatch and sends it again. A denial for a missing
item ends with the lines to paste, with <placeholders> to fill. The gate fails
open: an error of its own denies nothing. The exceptions are the trivial fix and the delta fix: an error in their checks denies the
fix and the run takes FIX_LANE. python3 ~/.claude/hooks/price-gate.py --selftest runs its
cases offline. python3 ~/.claude/hooks/price-gate.py --delta-paths <worktree> <sha> checks the paths of a delta fix
(see Quality Pipelines Reference, Delta fix).
python3 ~/.claude/hooks/price-gate.py --trivial-check <worktree> <tf-tree> checks the edit of a trivial fix
(see Quality Pipelines Reference, Trivial fix).
The lane cap
The same hook caps the main loop’s lanes. It denies a new top-level ft-developer, bugfix-agent or
refactor-agent (not a Mode: slice child) while FT_MAX_LANES of them are already running. The
default is 6. FT_MAX_LANES is a setting: raise it for a machine that runs more lanes.
turn-guard.py counts a running child.
The cap is a different number from the lane target in the main loop’s status line (lanes <running>/<target>).
The cap counts top-level orchestrators only. The target counts every running background agent, helpers
included. The lane-nudge.py hook compares the count with the target, so a cap below the target can deny the
launch that the nudge asks for. See Agent Harness Reference, The lane nudge.
The limit follows the concurrency cap of the session. The default cap is 20 sub-agents
(CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS), and the installer sets 30. One checkpoint fans out six lenses.
Every check, in the order it runs
A deny check refuses the dispatch with its reason. All deny checks run, so one failing check never hides
another, with two exceptions. boundary_a runs only when problems found nothing, and its denial stands alone. continuation_cap is the only check on SendMessage. A swap check lets the dispatch through with a changed model, and sometimes a changed effort
or an added brief line. The first swap that applies wins. A note adds context for the dispatching
agent and denies nothing. The hook logs swaps to tier-ab.jsonl. A malformed numeric knob in the last column
(for example FT_UNIT_MAX_LINES=abc) falls back to its default, so a typo in a setting never switches a check off.
| Check | Kind | What it does | Off / knob |
|---|---|---|---|
|
deny |
The pricing and review checks of the previous table, for the two pipeline dispatchers. The denial reasons of |
None |
|
deny once |
The first Stage 6 unit of an opus orchestrator whose boundary-A trigger holds: reset first. It runs only when |
|
|
deny once |
The boundary hold of context.md section 1. The context note rides an allowed dispatch, so the orchestrator reads it when a child is already out. The hold denies the next boundary-shaped dispatch of a root |
|
|
deny |
A relaunch carrying |
|
|
deny |
A new top-level orchestrator while |
|
|
deny |
A checkpoint-D review past round 3. |
|
|
deny |
An |
|
|
deny |
A dispatch by an |
The launcher’s |
|
deny |
A |
Send the message again with the corrected line, or without it |
|
deny |
A |
|
|
deny |
A bugfix or coding lane whose brief merges 3+ named branches: that is an ops batch. |
an |
|
deny |
The test adversary below |
None |
|
deny |
A judgment lens below |
None |
|
deny |
A main-loop MAJOR/CRITICAL |
|
|
deny |
A |
|
|
deny |
A |
|
|
deny |
A main-loop |
an |
|
deny |
|
|
|
swap |
An orchestrator’s self-picked |
|
|
swap |
A fresh |
|
|
swap |
Jev picks a top-level `ft-developer’s model and effort after its Stage 5 approval. Details. |
|
|
swap |
Jev picks a main-loop `bugfix-agent’s model and effort. Details. |
|
|
swap |
Jev picks a main-loop `refactor-agent’s model and effort. |
|
|
swap |
Jev may run a judgment-lens re-check on |
|
|
swap |
A mechanical lens sent on |
|
|
swap |
A non-CRITICAL bug’s |
|
|
swap |
A |
|
|
note |
A top-level orchestrator past 250K is told a reset is due at its next boundary. |
|
|
note |
The main loop past 300K is told, once per 50K of growth, to hand ops to one |
|
|
note |
A coding brief with no |
|
|
note |
A top-level lane stopped since the main loop’s last dispatch ( |
None |
checkout-guard.py adds the bugfix-side context note. A bugfix-agent launched with Resets: handled
is told once, past 250K, that a reset is due (FT_BUGFIX_NOTE=0 turns it off).
Swaps: Jev picks the model, sonnet replaces a guess
price-gate.py swaps the model through the hook’s updatedInput and logs every pick to
~/.local/state/ft-ai-toolkit/tier-ab.jsonl. FT_TIER_AB=0 turns off tier_ab, orchestrator_ab, bugfix_ab,
refactor_ab, recheck_ab and inherit_pick. repair_ab, host_ab and mech_lens have their own settings.
deploy/evals/tier-ab-report.py reads the picks, climbs and outcomes (evidence §17-§19). The table
details each swap.
| Check | Trigger | Effect |
|---|---|---|
|
A coding first dispatch where Jev was UNSURE and the orchestrator picked |
Always |
|
A main-loop launch of |
The hook asks Jev’s |
|
A main-loop |
Same Jev |
|
A main-loop launch of |
Same Jev presets over the whole run (the launch is one-shot). |
|
A |
The dispatcher still sends |
|
Every non-CRITICAL bug’s |
Runs on |
|
A |
|
|
A mechanical lens sent on |
Runs on |
|
A fresh |
Runs on |
Notes on orchestrator_ab and bugfix_ab:
-
When a run counts as past approval. One of three conditions holds:
-
The last
## Stageheading in the journal is Stage 6 or later and is not a pre-edit baseline or a plan. -
A Stage 5 approval is recorded that is not a gate reached, requested or conditional.
-
The brief itself grants the approval unconditionally (
granted). The main loop’s grant reaches the journal only after the instance records it.
-
-
Which journal. The path after
Journal:or--journal. In a launch whose first 300 characters sayresume,relaunch,continuation runorCONTEXT_RESET, any.mddirectly in the run directory (evidence §47). -
The descriptor. Stacks, repositories named, units in the plan, concurrency, transactions, security, protocol, schema, live environment, test-only (
run_state). The hook reads the prose with inline code and the phrasescredential helperandgh authremoved, so a push command does not count as a security surface. -
For the orchestrator. The descriptor says that the approved design brief already records the decisions on the flagged surfaces. It also says that independent opus lenses review checkpoint F. The judgement flags read
(decided in the approved SDD). That literal is the hook’s text, and "SDD" in it means the design brief. An answer given over bare flags is not reused: the run is asked again.
Leaf hand-back
A coding leaf that reaches the bound of its context returns Status: HANDBACK with a ## HANDOFF in its report.
The canon is rules/agents/common.md, section "Context bound for coding leaves", and tiering.md §2,
"A HANDBACK is not a failure". The triggers are the context note with more than about B tool calls left,
the hard line, and the turn or wall-clock bound. A met DoD is never a hand-back.
-
No penalty. A hand-back gets no model raise and no repair round. The unit stays
pending (handback <k>). -
Continuation. The dispatcher sends ONE fresh leaf, never
SendMessage. The description is<unit> continue (fresh), and the brief carries the linehandback: fresh. The model and the effort stay the same. -
Model stands.
price-gate.pyexempts a continuation intier_ab. The continuation of a unit that is already logged (the latest record of that unit, any session) is left as sent and logs nothing: the model the dispatcher sent stands, also after a climb to opus. A continuation with no record is an ordinary first dispatch.repair_abis not changed. -
DoD. The DoD of the continuation is the original DoD minus the items whose
proven:evidence the dispatcher re-checked. The unit’s own tests stay in it. -
Size. The dispatcher judges the size of the unit as a whole with
unit-check.py. The leaf has no size trigger. -
Second hand-back. The dispatcher splits the remaining DoD by file set into new units before it dispatches again.
Context rules that the hook enforces
-
A leaf is not continued past 200K.
tiering.md§2 repairs by continuing the same agent. The hook denies aSendMessageto any agent once its last turn carried more than 200K tokens (FT_LEAF_CTX). Exempt are the four orchestrators (ft-developer,bugfix-agent,refactor-agent,ft-fix-host) andgeneral-purpose. An ops batch waits mid-work for the main loop’s answer. The denial says how to dispatch a fresh agent on the same model with only the delta and the unit’s saved report. -
A leaf gets a note at 200K and a hard line at 400K.
checkout-guard.pybounds a coding leaf (an agent type that ends with-coding-agent). PastFT_LEAF_CTX(200000), the firstBashcall of the leaf gets one note. The note says to hand back only if more than about B tool calls of work remain. PastFT_LEAF_HARD_CTX(400000), the hook denies every new build or test runner. See Harness Reference, The leaf bound. -
Bookkeeping by hooks.
turn-guard.pysaves a coding leaf’s final report verbatim to<run directory>/units/<unit>.mdwhen the leaf stops.<unit>is the first word of the dispatch description. The run is the journal that the brief names, or its<run>-units/directory when that exists.hooks/unit-check.pyruns the after-unit check and journals it in one command. The check covers status, delivered size with untracked files, new-surface candidates and the over-bound verdict. -
Reset on context size. Once an orchestrator’s last turn carries more than 250K tokens (
FT_RESET_CTX), the hook adds a note to its next dispatch. The note is a trigger at every reset boundary. -
Main loop at about 200K: a standing rule, not a hook. The main-loop rules from
deploy/templates/claude-md/main-rules.mdtell the main loop not to run operational batches itself. Themain-rules.pyhook delivers them. It hands rebases, merges and CI checks to ONEft-ops. No hook enforces this rule. The main loop follows it. -
Main loop at 300K: a hook note. Past 300K tokens of its own context (
FT_MAIN_CTX), and once per 50K of growth (FT_MAIN_STEP), the hook adds a note to a main-loop dispatch. The note speaks to the main loop and says four things. The last one asks you, the person at the keyboard, to type/compact.-
What each turn now costs.
-
Hand git, gh and status batches to ONE
ft-opsand keep only decisions. -
Write a handoff file up to date: open lanes with journals and agent names, rulings in force, what waits on whom, next steps.
-
Ask the person at the keyboard to type
/compact, and name what the summary must keep: running agents with their ids, approvals that wait, open questions.The note does not ask for a fresh session. Background agents report to the session that launched them, and compacting keeps that session. A main loop cannot compact itself. The step is kept per session in
~/.local/state/ft-ai-toolkit/main-ctx.json. A turn back under 300K (a compact) starts the steps over (evidence §46, §48).In Terminal.app you need not type the command. The
Stophookmain-compact.pytypes/compact keep: running agents with their ids, approvals waiting on the owner, open questionsinto the session’s tab when the last turn carried 300K tokens or more (FT_MAIN_COMPACT_AT). A hook cannot run/compact, so the script types it as a person does and then sends two more Enter keys, which submit a long draft. It waits at least 600 seconds between two commands of one session (FT_MAIN_COMPACT_GAP_S). It types nothing while you have typed within 30 seconds (FT_MAIN_COMPACT_IDLE_S), because the command would land in your draft. It also types nothing into a turn that continues: whenlane-nudge.pyblocked the same stop less than 60 seconds ago, or when the stop is the result of a hook block, the script skips the command. The detached sender checks the block marker a second time, 2 seconds after the start and before it types. A marker that appears later than that second check is not caught.FT_MAIN_COMPACT_KEEPreplaces the text afterkeep:. In any other terminal the script does nothing, and the note above stays for you.FT_MAIN_COMPACT=0or the file~/.local/state/ft-ai-toolkit/main-compact-offturns the script off. The script reads the idle time once, before it types. If you start typing in the 4 seconds that follow, the two Enter keys submit your draft.
-
The orchestrator’s own context
Pricing the leaves does nothing about the orchestrator itself, the largest single cost. Every turn of an orchestrator re-reads all of its context (evidence: context growth).
-
One reset per instance, two per run, then a SPLIT (earlier by size, or after one reset). An orchestrator may shed its context at one of five boundaries. Boundary A needs two or more design rounds or 9 dispatches. The other boundaries need 9 dispatches by this instance. The context note past 250K also opens every boundary.
Boundary Where A
Stage 5 approved, before the first Stage 6 dispatch.
C
Inside Stage 6, between units.
B
The diff is frozen, before checkpoint F.
R
Between checkpoint-F rounds: the round’s verdicts are in the ledger, its repair batch is collected, the re-check is not yet sent.
D
Between checkpoint-D rounds: the verdicts are in the ledger, the revised design brief is written with its
shasum, the re-check is not yet sent.At a boundary, everything that the next stage reads is already a file. The orchestrator then returns
CONTEXT_RESET - <journal path>, and a fresh instance resumes from the journal.The orchestrator does this only when its launch prompt says
Resets: handled. It does this only in a run that entered architecture-led, or in a TDD-led run at C, and at B and R when the run has a checkpoint F. A simple-addition run never resets./ft-devadds theResets: handledline and relaunches with it.The instance stops at
resets 2. At A or C it returnsSPLIT - <journal>with the pending unit groups. It also SPLITs earlier, when the pending units form two or more disjoint groups and either the run owes more than 9 dispatches (about 250K of projected context) at A, or the instance has reset once (resets 1) at A or C./ft-devstarts one fresh group instance for each group, then one merge instance.price-gate.pydenies a relaunch whose HANDOFF showsresets3 or more. A bugfix lane keeps its cap of 3. A group or merge instance has its own limit: see Lineage bounds.A resumed instance reads its HANDOFF and only the files its entry stage needs. The target is under about 110K tokens at the first dispatch. An instance that returned a reset or a split is retired. A main loop that launches
ft-developeritself must follow the same rules. The main-loop rules on Agent Harness Reference tell it so.Boundary A holds at any context size. An opus instance whose trigger holds has its first Stage 6 unit denied once by
price-gate.py. Stage 6 then runs on the relaunch’s model instead ofopus. The A trigger stays as it is: a lean resume cuts the relaunch’s re-read cost. -
Design rounds have a hard cap. Two rules end a design round early (
tiering.md§2):-
A
blockingID whose fix is wording only closestext-onlywithout a re-check. Checkpoint F checks it on the code. -
An empirical subject (latency, throughput, memory, size, ordering under load) that the same lens refutes twice becomes a measurement unit. The orchestrator dispatches it first in Stage 6, with a pass number and a fallback design, as a condition of the approval.
Checkpoint D has a hard cap of three rounds. A design that every lens refutes in round 1 is a design split, not a round 2 (see Quality Pipelines Reference, Checkpoint D).
price-gate.pydenies a checkpoint-D review dispatch for round 4 or later (FT_DESIGN_CAP), and no ruling extends the cap. After round 3, each open blocker becomes a named checkpoint-F cell or a Stage 5 question to the human. A redesign is a new run.
-
-
Checkpoint F ends at round 2.
price-gate.pydenies averifier*orft-architecture-auditdispatch for checkpoint-F round 3 or later (FT_REVIEW_CAP, default 2). The run then writes a fix dossier and returnsFIX_LANE. See Quality Pipelines Reference, Fix lane. The trivial fix replacesFIX_LANEfirst: one mechanical repair of a citation or a misspelt word and a re-check by the originating lens, once for each journal. See Quality Pipelines Reference, Trivial fix. If it does not apply, one bounded repair and a re-check by the originating lens can replaceFIX_LANEonce for each lineage root. See Quality Pipelines Reference, Delta fix. -
A one-hour prompt cache for long waiters. These agents carry
experimental: cacheTtl: "1h"in their frontmatter:ft-developer,bugfix-agent,refactor-agent,ft-fix-host,ft-ui-ux-design,ft-ops,ft-sddand the four coding agents. They wait on children longer than the five-minute sub-agent cache lives, and each expiry rewrites their whole context. The reviewers (verifier,ft-test-adversary,ft-architecture-audit) and the doc writer keep five minutes. -
ft-fix-hosthosts a/ft-fixrun. The main loop hands the run to this agent.price-gate.pyrefuses ageneral-purposeagent sent to host the skill (host_route). The rule applies in a session that can dispatch the host: the session started after the agent file, or anagent_listing_deltain its transcript told it of the agent (evidence §66). The hook runs the host onsonnet(host_ab). A brief naming CRITICAL in any case (unless it carries the upper-case MAJOR label) and aClimb: opusrelaunch stay onopus.FT_HOST_AB=0andFT_HOST_ROUTE=0turn the two checks off. -
An auto-compaction window of 600K tokens. Claude Code 2.1.299 offers no compaction setting for the main loop alone.
autoCompactWindowandCLAUDE_AUTOCOMPACT_PCT_OVERRIDEboth govern sub-agents too (sandbox-proven). 600000 sits above every review role’s peak context and below the main loop’s. -
Leaves carry no tools they never call. The coding leaves (
ft-java-,ft-coding-,ft-python-andft-angular-coding-agent) declaredisallowedTools:-
Agent, and the artifact, workflow, cron, worktree, plan-mode and docs tools. -
Skill, except for the Angular leaf, which loads design skills. TheSkilllisting alone is about 8K tokens.A
skills:preload still loads withSkilldenied. An entry that names a tool which is absent does not refuse the dispatch. Both facts are sandbox-proven.
-
Lineage bounds
A lineage is a root run journal plus every group, merge, reset and split instance registered under it.
price-gate.py keeps the state in lineage.json. The hook is the only writer of that file.
It takes a lock, writes a temporary file, and replaces the old file in one step.
It never overwrites a file that it cannot parse. It evicts an entry that nobody touched for 7 days.
Any error in this state fails open: the hook then counts nothing and denies nothing. The trivial fix and the delta fix are the exceptions: their admission checks fail closed to FIX_LANE.
The state also holds cpf2 (the journals that dispatched a checkpoint-F round 2), delta (the granted delta fix of the root) and trivial (the trivial fix of each journal; the hook keeps the newest 16 journals).
| Bound | Rule | Knob |
|---|---|---|
Group reset budget |
A group or merge instance starts its own count at |
|
Instances of a lineage |
A lineage holds at most 10 instances, enforced under the lock. A relaunch that carries |
|
Agent-runs of a lineage |
The lineage counts every dispatch of a bound instance that the hook allows, and every allowed relaunch. Past the budget, the hook denies every dispatch that is not a review, and every relaunch. |
The launcher’s |
Registration and binding
-
A dispatch of
ft-developerby an unbound launcher registers a group journal when its prompt hasResumed from a split, aJournal: Jline and aParent journal: Pline. The hook mapsJto the root ofP. -
Any other journal is its own root.
-
Every allowed
Resumed from a resetorResumed from a splitrelaunch adds one instance to its root. -
An
ft-developercaller binds to a root once. A slice child (itsmeta.jsonparentAgentIdnames anft-developer, or an agent one launched) binds to the bound root of its first bound ancestor (its parent, or the nearest bound agent above a proxy such asgeneral-purpose), never from prompt text; theRun journal:line of a slice brief is informational, and a child with no bound ancestor stays uncounted. Any other caller (an instance the main loop or a captain launched): the hook takes the lineJournal:that stands on its own line beforeOriginal request:in its launch prompt. A miss is cached. Otherwise it binds on the first of its own dispatches whose brief carries aRun journal:line, and the dispatches before it are not counted (a bounded undercount that fails open). It never rebinds. -
A caller that the hook cannot bind is never counted. The main loop is never bound. A brief that names another journal never changes the binding.
-
The hook reads
orchestrator_abfor a brief withParent journal: Pfrom the approval of the root ofP. A group instance and a merge instance therefore get the arm of their run.
Budget authority
-
The budget is the declaration
run-cost budget <n>(orrun-cost budget declared <n>) in the## Stage 1section of the root journal. The match ignores case. -
The hook clamps the declaration to the value of its grade: simple-addition 6, TDD-led 12, architecture-led 30. A root journal with no grade has the budget 30, the hard maximum. The grade comes from the last line of Stage 1 that carries one, either a
grade:line or a line withrun-cost budget, and the lastrun-cost budgetdeclaration wins, so a later Jev line changes the budget (it is not cached). An unparsable declaration gives the value of the grade. -
Every other line is a report and never moves the budget. This holds for a HANDOFF line such as
run-cost 20/60, a journal note, a line of a group journal, and a plainRun-cost: N. -
Only the launcher raises the budget. The launcher is the main loop, with a prompt or a
SendMessageto the agent id of anft-developerinstance. A sub-agent sends no raise: a captain’sRun-cost raise:orpre-authorized raiseline is ignored, and the main loop is told so once per captain and lineage, through its notes queue. A name intois refused. The accepted form is:Run-cost raise: <new total> · by <who> -
The number is the new TOTAL, never the increment. The total has 1 to 4 digits. If the budget is 30 and the launcher authorises 24 more runs, the line is
Run-cost raise: 54. -
The hook records the total on the lineage root. A later reset, SPLIT or merge relaunch therefore keeps it. A total only increases. The hook never reads an
n/mshape. -
In a launch prompt the raise line counts only among the launcher lines BEFORE
Original request:(no marker, no raise). ASendMessageraise is read from the whole message. The line must start its own line. -
The line
pre-authorized raise +Kin the launch prompt of an instance adds K once for each root, also only beforeOriginal request:. K has 1 to 4 digits. A+Kwith 5 or more digits is ignored text. ASendMessagenever carries it. -
If the target
ft-developerhas not bound yet, the hook HOLDS the raise and applies it when the instance binds. The allowedSendMessagesays so. A held raise expires if the instance returns before its first dispatch. Repeat the line in the relaunch head. -
The same total sent again is harmless. The hook records it once and says nothing.
-
A denial prints the budget, the count, what is open, and the exact raise line that lifts it. For the merge instance, the line says "this diff has had no checkpoint F".
-
If the lineage has a recorded raise, the exhausted denial names it: "The budget N is max(declared D + pre-authorized P, raised total R) + 2 for the delta fix." The line also prints when only the delta extra applies, with no recorded raise. If the recorded raise is at or below declared plus pre-authorized, the denial adds "The recorded raise R is at or below N: it lifted nothing."
-
The count is every allowed dispatch plus every allowed relaunch, and the denial prints it as
dispatches <d> + relaunches <r>(therunsandinstancesoflineage.json). The orchestrator’s ownrun-costtally counts the same way: an instance launchedResumed from a resetorResumed from a splitadds 1 for its own launch. A first, fresh launch is not a relaunch. -
Reviews are exactly
verifier,ft-test-adversaryandft-architecture-audit. The hook counts them and never denies them.
Raise refusals and notes
A raise that cannot do anything is never silent. The hook answers in one of three ways.
Refused. A SendMessage to an agent is refused, not delivered, and nothing is written. The text ends with the corrected line. Send the message again whole. The reasons are:
| Reason | Meaning |
|---|---|
No-op |
The total is at or below the larger of the budget and the runs spent. The text names both numbers. If the launcher meant MORE runs, it gives the line with the new total: the larger of budget and spent, plus the number sent. |
Unparsable |
The line starts with |
Not at line start |
A list marker or emphasis stands before |
Not a top-level |
The |
Launch not readable yet |
The hook cannot read the launch of the target. Send the message again. |
Only noted. A Run-cost raise: mention that does not start its line, such as mid-line text or a line quoted with >, is not read and is not refused. The allowed message carries a note. Send the line on its own line if you meant it.
Noted at the next call. Some raises are judged later: a held raise at bind, or a raise in a launch head. The hook queues a note for the main loop. The queue holds at most 16 notes for each session. The hook prints the queue at the next allowed Agent or SendMessage call of the main loop. It does not print it through the 60 s batch gate. If the queue dropped older notes, the hook says how many. A launch note is not a denial. The dispatch went out. The notes cover a head line that did not start its own line, a head line that is not the grammar, a head raise that changed nothing, and a held raise.
A relaunch the hook denies carries the unread-raise text. The text follows the fixed Do-now line of the denial and says that the relaunch is denied, so the line changed nothing.
Declared residuals.
-
The hook reads
Run-cost raise:with that exact case and characters. A case or Unicode variant of the prefix is unread and gets no note. -
A note can be lost. If a later hook denies the call after the hook has popped the queue, that call never shows the note. The exhausted denial then names the recorded raise.
Evidence
Every number on this page comes from a measurement. The record holds the method to rerun it, the
session ids and the raw figures. It is deploy/evals/dispatch-economy-evidence.md. It covers the
hook-payload probe, the replay of live self picks, the review re-check count, four sandbox compaction
probes and the per-role context peaks. The running history is the dispatch-economy section of
RESUME.prompt.md in the repository root.
This section holds the dated measurements behind the rules. Spend figures are notional list prices.
Review rounds and swaps
Each row is a dated measurement. The rules above state the current value.
| Rule | Measurement or date |
|---|---|
Unit cap: |
From 2026-10-28. Eight OSCORE units of 700-2000 lines ran their opus leaves to 361-518K tokens and cost $229 (evidence §72). |
Re-checks use first-pass depth |
On a live session, 78 of 150 verifier runs were re-checks. That is about 40% of review spend. |
Round 1 runs the whole lens set |
Classification of 88 checkpoint ledgers ( |
A revision closes the class |
|
The gate list comes from grep |
From 2026-10-22. |
One pass, every finding |
From 2026-10-17. The day before, half of 173 re-checks failed. 85 of the 88 failures were on NEW IDs. Severity was unstated in 66 of them. |
|
23 against 18 units: median cost $6.98 against $2.42, repaired 30% against 22%, none climbed. |
|
15 against 15 units (evidence §49): median cost $11.89 against $5.46, raised a tier 7% against 20%, none climbed, and 47% of each arm left a DoD item unmet. 14 of 122 such picks since 2026-10-20. |
|
A split on 2026-10-20 read 12 runs per arm: median $42.1 on opus against $8.2 on sonnet, DONE 1 against 4 (evidence §19). |
|
With bare flags, Jev kept 21 of 41 runs on opus because a protocol was named. |
|
A 50/50 split ran 2026-10-25 to 2026-10-27 (evidence §57). It closed on 2026-10-27 (§69): opus completed 7 of 7 tasks and sonnet 8 of 12, for about $25 a day less. |
|
Each ran as a 50/50 split until 2026-10-29, then closed (evidence §73). |
|
From 2026-10-22. |
|
On 2026-10-29 one |
Leaf not continued past 200K |
One coder continued with seven repair batches had grown to 564K tokens and cost $43. |
Bookkeeping by hooks |
The bookkeeping was about a third of the orchestrators' Bash turns, each re-reading the whole context. |
Context growth, resets and caches
| Rule | Measurement or date |
|---|---|
Lane cap |
On 2026-10-15 a main loop started fourteen lanes in two minutes. 34 dispatches were refused in the next hour, although the lanes' prompt held a six-lane rule. |
Reset on 250K |
A 250K cap would have cut orchestrator spend by 22% on 2026-10-16 and 2026-10-17. |
Main loop handoff at 300K, step 50K |
The step was 100K until 2026-10-31, when one main loop sat at a median of 274K with 40% of its turns over 300K. The hand-off note exists from 2026-10-23 (evidence §46). |
Orchestrator context |
One lane grew from 113K to 711K tokens of context during its design rounds. |
One reset per instance, two per run |
35 resets in 24 hours and batches of 7-8 instances at about $62 each on 2026-10-31. Boundary D exists from 2026-10-20. TDD-led resets at C, B and R exist from 2026-10-22. A resumed instance read a median 134K tokens at the first dispatch before the lean resume. |
Boundary A holds at any context size |
On 2026-10-24, 17 instances in 4 days had paid $73 on opus after their first unit (evidence §50). |
Why 9 dispatches, and boundaries R and D |
A fresh instance carried 142K tokens at its first dispatch, 253K at the 9th and 282K at the 12th. 370 dispatches went out at index 20 or later, most in checkpoint-F rounds that had no boundary. The three-round cap for checkpoint D came the same day. |
One-hour cache |
On 2026-10-14 cache expiries rewrote $185 of context (22%) in one session. The rewrites cost about $3.8 an hour after the change, against about $20 an hour before ( |
|
Six |
Compaction window 600K |
The main loop reached 966K in a live session, and 94% of its spend re-read that context. |
No unused tools in leaves |
A probe on 2026-10-14 measured a first turn of 23.4K tokens with the full skill listing and 12.4K with |
Where the spend went
| Window | Measurement |
|---|---|
2026-10-14, 9 hours |
About $854. Orchestrators 38%, |
2026-10-16 19:30Z to 2026-10-17 12:59Z |
Cache reads were 87% of orchestrator spend, at $0.16 a turn (evidence §15). |
2026-10-16 to 2026-10-17, 20.5 hours |
$2152. Orchestrators 33% ($709, median context 260K), verifiers 20%, Java coding leaves 18%, the main loop 7%, stack-neutral leaves 7%, |
2026-10-23 |
The main loop at about 540K paid about $0.27 a turn, 1305 turns and $253 in 24 hours. A fresh main loop at about 150K pays about $0.08 a turn (evidence §44). |
2026-10-28 to 2026-10-29, 23 hours |
$1351, 81% on opus. |
price-gate.py estimates the cost of a main-loop turn at $0.50 per million tokens of context, on opus.