Orchestration benchmark

From bdfinst/agentic-dev-team · View interactive version

Orchestration benchmark is an AI agent skill from the GitHub repository bdfinst/agentic-dev-team. Run the pre-registered solo-vs-coordinated A/B benchmark: three arms (solo session, current orchestration, delegation-only sweep) over the same task matrix at matched verification rigor, measuring dollar cost, token band shift, quality, rework, and wall-clock. Use when the user asks "is orchestratio

How to use this skill

Skill file

Orchestration Benchmark (#1095)

Role: orchestrator. This command dispatches benchmark runs and aggregates

their results — it never performs the benchmark tasks itself and never edits

the code under test.

You have been invoked with the /orchestration-benchmark command.

Not /benchmark. /benchmark measures **runtime performance of web

pages** (Core Web Vitals, resource sizes, load times). This skill measures

orchestration value: whether the dev-team pipeline's delegation earns

its overhead against a solo session on the same task at the same rigor.

Different subject, different instruments, different report.

Orchestrator constraints

  1. Matched rigor is non-negotiable. Every arm runs the identical task

with identical acceptance checks. An arm may not skip or weaken

verification — a cheap worker that reads less and passes weaker checks is

a different product, not a cheaper version of the same one. A run that

weakened its checks is a rigor violation: discard it, do not average it in.

  1. The protocol is pre-registered. The decision rule below is fixed

before the first run. Do not adjust thresholds, arms, or the task matrix

after seeing results — report against the rule as written.

  1. Never report a single run. Report median + spread per arm per task

class. A difference smaller than the spread is a null result.

  1. Write results to files. Per-run records and the final report go to

files; present only the summary tables and verdict in chat.

  1. Be concise. Tables and short sentences; no narration of each run.

Parse Arguments

Arguments: $ARGUMENTS

(bucket names from knowledge/task-size-classifier.md). Default: all three.

the result exploratory, not decidable — say so in the report and do not

apply the decision rule to it.

each arm's agents' declared model:/effort: frontmatter, and a cost

estimate — without dispatching anything.

Arms (3, matched rigor)

| Arm | Configuration |

| --- | --- |

| A — Solo | Single session, no subagent dispatch; the session model does all reading and all work itself. |

| B — Current orchestration | The dev-team pipeline exactly as shipped. |

| C — Delegation-only sweep | Arm B plus the #1093 sweep rule: the orchestrator never reads beyond classification-sized probes; all bulk reading goes to low-band workers with scoped briefs per the #1092 batching rules. |

All three arms run the identical task with identical acceptance checks (the

fixture's eval assertions). See constraint 1: unequal rigor invalidates the

run.

Task matrix

Sample across the knowledge/task-size-classifier.md buckets

(trivial | standard | complex) — one task class per bucket:

| Class | Bucket | Example | Expectation |

| --- | --- | --- | --- |

| Small single-file | trivial | One-file bug fix from an eval fixture | Expected worst case for delegation |

| Medium few-file | standard | Feature slice touching 3–5 files | Near the predicted crossover |

| Large sweep-heavy | complex | /code-review over a 20+ file diff; repo-wide audit | Expected best case for delegation |

Reuse existing /agent-eval fixtures under evals/fixtures/ wherever

possible; add fixtures only where a class has none.

Speculative dispatch case (#2273)

This case compares three candidates with one on a complex step.

It measures whether the extra candidates earn their cost.

step and its eval assertions under evals/fixtures/. Add it when the case

first runs (none exists). Run that step with /build.

is the cost-meter delta across the step: cost_meter.py report before the

step and after its checkpoint passes. Set the cap at 5× the pilot's step

cost. Exclude the pilot from the runs.

(--candidates 1) and N = 3 (--candidates 3 --max-cost-usd <cap>).

…), median + spread, and model-pinning rules apply unchanged. See

Repetitions and isolation. Runs execute one

at a time; no run overlaps another run or the pilot.

the plan's ## Plan Review Summary. Those rows give the kept candidate's

rank inputs and the Cost (USD) column. Screening spend is all step cost

outside the cap: suite runs, screening, and the winner's inline checkpoint.

It equals the run's measured step cost − the sum of the Cost (USD)

column.

hold:

least 20 points. A difference of exactly 20 points at five runs

is inconclusive; see Noise and ties.

median screening spend of the N = 3 runs.

five runs, a difference of exactly 20 points (one run) is inconclusive.

Extend the case to 10 runs, then apply the rule as written.

follow-up PR updates the experimental note of the --candidates bullet

(skills/build/SKILL.md, Parse Arguments) with the result.

results**.

Repetitions and isolation

(min/max or IQR) — never a single run. A difference smaller than the spread

is a null result.

dispatches through

skills/headless-run/scripts/isolated_dispatch.py — fresh session id,

clean HOME and config dir, scrubbed env — so runs are independent and no

parent-session identity or state carries over.

all runs of one arm together; batching gives later arms warmer caches.

the same agents, each resolved by the harness from its own model:/

effort: frontmatter (ADR 0026) — record that frontmatter before the

first run and include it in the report. If any dispatched agent's

frontmatter changes mid-experiment, abort and restart; do not mix runs

across frontmatter versions.

Metrics (instrument named per metric)

| Metric | Instrument |

| --- | --- |

| Dollar cost & tokens by model/thread | python3 ${CLAUDE_PLUGIN_ROOT}/hooks/lib/cost_meter.py report --transcript <path> |

| Tokens moved to low band (mechanism check) | The cost meter's by_model / by_thread split from the same report |

| Quality | The fixture's eval assertions — identical across arms |

| Rework | Fix-loop iterations; .claude/metrics/review-value.jsonl where review checkpoints ran |

| Wall-clock | Harness transcript timestamps |

Mechanism check (mandatory)

Arm C's cost reduction must be produced by the claimed mechanism. If Arm C's

cost drops but reading tokens did not shift to low-band subagent threads

(the cost meter's by_model/by_thread split shows the movement), treat the

result as a rigor violation, not a win — the savings came from reading

less, not from delegating the reading.

Decision rule (pre-registered — fixed before the first run)

Apply per task class:

  1. Adopt C over B only if all three hold:

checks;

  1. Retain B over A only if B beats A on cost or quality. If A

dominates B on a class, report it — that finding feeds

/harness-audit — do not suppress it.

  1. Crossover output: report the task-size threshold below which A/B

beats C. That number feeds the #1093 sweep rule.

  1. Speculative dispatch case: apply the rule in

Speculative dispatch case (#2273).

Threats to validity

Each of these must be explicitly addressed in the report — not silently

skipped:

  1. Unmatched rigor — an arm passed weaker checks; the comparison is void.
  2. Fixed-overhead asymmetry — orchestration pays a constant dispatch tax

that dominates small tasks and vanishes on large ones.

  1. Cache warmth — runs batched by arm give later arms warmer caches;

interleaving (above) is the control, state whether it held.

  1. Model drift — a dispatched agent's model:/effort: frontmatter or an underlying model changed

mid-experiment; the abort/restart rule (above) is the control.

  1. Fixture overfitting — the crossover threshold generalizes only as far

as the task matrix; say so wherever the threshold is quoted.

Report

Write the report to .dev-team-reports/orchestration-benchmark-<date>.md.

For the header block and closing Provenance section, follow

knowledge/report-template.md; the sections below are this skill's own

body.

Body sections, in order:

  1. Per-class results — one table per task class: median + spread per arm

for each metric (cost, tokens by band, quality pass rate, rework,

wall-clock).

The speculative dispatch case adds one Speculative dispatch subsection

here.

  1. Crossover threshold — the task-size threshold below which A/B beats

C, with the fixture-overfitting caveat attached.

  1. Decision-rule outcomes — per class: adopt/retain verdicts against the

pre-registered rule, including the mechanism-check result.

The speculative dispatch case's earn/retain verdict goes in its Per-class

Speculative dispatch subsection.

  1. Threats to validity — all five items above, each with how this run

addressed it.

  1. Run log — each dispatched agent's declared model:/effort:

frontmatter, exact model IDs per run, interleaved schedule as executed,

discarded runs and why.

Relationship to other tooling

measures orchestration value. They share nothing but the name shape.

/agent-eval fixtures supply the tasks and acceptance checks;

/cost-report and hooks/lib/cost_meter.py are the cost instruments;

each agent's model:/effort: frontmatter is the model-pinning source of

truth (ADR 0026); /harness-audit consumes any "A dominates B" finding.

first full documented protocol run (#1099), the instrumentation list in

plugins/dev-team/CLAUDE.md moves "efficiency gains" from Not yet to

Instrumented, naming this skill as the instrument. Shipping this skill

does not perform that flip.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.