Skip to content

docs: make the playbook answer the question that decides the PoC - #50

Open
yuting0624 wants to merge 1 commit into
masterfrom
docs/poc-playbook-regime-and-cost-of-pass
Open

docs: make the playbook answer the question that decides the PoC#50
yuting0624 wants to merge 1 commit into
masterfrom
docs/poc-playbook-regime-and-cost-of-pass

Conversation

@yuting0624

Copy link
Copy Markdown
Owner

Two independent efforts — ours on Harbor, Len's
on SWE-bench and SWE-bench Pro — spent days measuring the regime where delegation cannot
win, and both landed within ~10% of solo. Neither had a reason to ask first. That's a
defect in this playbook
, not in either effort.

New principle 0.1 — pick the regime before measuring

Does the conductor have to keep the raw material in its context to be accountable for the
result?

Yes → expect parity; don't build a cost story on it. Claude re-reads handed-over context
rather than trusting it — the same rule that makes the hybrid safe (agy has been caught
patching its own environment to force a green test). You cannot have "the conductor doesn't
re-read" and "the conductor owns correctness" at once.

No → the digest is the deliverable, and that's where the saving lives: 62k-token corpus
offloaded leaves the conductor carrying 4.4k instead of 62k — $0.002 vs $0.031 per
subsequent turn.

This is also confirmed by prior art, which names our design as the failure mode: "if every
sub-agent bounces results back to the orchestrator for validation, you pay frontier model
costs at every step."

§5 rewritten: conditions as requirements, not advice

Each of these cost us a rerun. Getting one wrong doesn't add noise — it produces a
confident wrong number.

  • every trial cold — our "+46%" headline was a cache draw, and became "indistinguishable"
  • identical caps on both arms — a cap on one arm is a second variable
  • AGY_USAGE_LOG, not stderr2>&1 | tail -N eats exactly that line
  • delegation count — a trial with 0 delegations is the baseline arm wearing a hat, and
    that's what the plugin does when merely installed (0 in 122 turns; 0 in 6 trials even with
    break-even guidance every turn)
  • n≥3 with ranges — ours spanned 1.7–3.1× within an arm

Headline metric → cost-of-pass

Cost per trial is gameable by failing cheaply, and it got us: our cheapest hybrid trial was
the one that hit the wall-clock cap and failed. Including it read 14.7%; excluding it,
42.1%. Neither number was wrong — the metric was.

Also added the two accounting systems side by side. cache_read is an inner subset on the
Claude side and a separate counter on agy's; merging them is the easiest way to be badly
wrong in either direction.

New §8 — when the answer is parity

The playbook only had a happy path, which is how someone spends a week proving nothing.
Parity is a result. Four things to present instead, ordered by how hard they are to argue
with: work the frontier model can't do at all, the context ceiling, recall via two
independent scans (a reviewer can't raise recall — it only sees what was reported), and
wall-clock if you fan out — noting it moves the wrong way for a single delegation.


Docs only — no plugin code, no version bump. 191 tests, validate passes.

Still to come: the GAIA run this playbook is written for. Deliberately not written up yet —
this repo doesn't quote numbers it hasn't measured.

Two independent efforts -- ours on Harbor, a colleague's on SWE-bench and
SWE-bench Pro -- spent days measuring the regime where delegation cannot win,
and both landed within ~10% of solo. Neither had a reason to ask first. That is
a defect in this playbook, not in either effort.

New principle 0.1: does the conductor have to keep the raw material in context
to be accountable for the result? If yes, expect parity and do not build a cost
story on it -- Claude re-reads handed-over context rather than trusting it,
which is the same rule that makes the hybrid safe. You cannot have 'the
conductor doesn't re-read' and 'the conductor owns correctness' at once.

Section 5 rewritten from 'record these fields' to conditions that are
requirements, each one having cost us a rerun: every trial cold (our +46%
headline was a cache draw), identical caps on both arms, executor usage to a
file because tail eats the stderr line, and delegation count -- a trial with 0
delegations is the baseline arm wearing a hat, which is what the plugin does
when merely installed.

Headline metric moved to cost-of-pass. Cost per trial is gameable by failing
cheaply and it got us: the cheapest hybrid trial was the one that timed out, and
including it read 14.7% where excluding it read 42.1%.

Added the two accounting systems side by side. cache_read is an inner subset on
the Claude side and a separate counter on agy's; merging them is the easiest way
to be badly wrong in either direction.

New section 8 for the likely outcome. The playbook only had a happy path, which
is how someone spends a week proving nothing -- parity is a result, and there
are four things to present instead, ordered by how hard they are to argue with.
@quorum-code-review

quorum-code-review Bot commented Aug 4, 2026

Copy link
Copy Markdown

Quorum review

gemini-3.6-flash, claude-sonnet-5 each read the diff without seeing the other's output (gemini-3.6-flash 1 and claude-sonnet-5 2), which merged to 3 distinct finding(s). 0 of those were reported by both models independently.
The remaining findings were each judged by the model that did not report them: 0 confirmed, 0 uncertain, 3 refuted.

Beyond the diff, the models made 35 read-only lookup(s) into the checkout at ea5ab42 and opened docs/POC-PLAYBOOK.md, CHANGELOG.md, scripts/measure-session.py, docs/AB-RESULTS.md.

Refuted by the other model (3)
  • New precise cost/latency figures introduced with no backing data anywhere in the repo (docs/POC-PLAYBOOK.md:33) — The added text in docs/POC-PLAYBOOK.md is playbook documentation illustrating cost calculations derived directly from token pricing in prices.json ($0.50/1M cached input tokens on Opus yields $0.031/turn for 62k tokens vs $0.002/turn for 4.4k tokens). It is non-executable documentation and causes no functional or security defect.
  • Incorrect section cross-reference for quality gate verification rule (docs/POC-PLAYBOOK.md:27) — §4 in this document is '4. Write-task hygiene (the traps, pre-paid)' per the header at line 95, matching the anchor 'Record a real demo GIF showing the Claude Code UI #4-write-task-hygiene-the-traps-pre-paid' referenced in the text. The section number and anchor correctly correspond to the target heading, so the cross-reference is not incorrect (the specific 'green test' anecdote lives in a companion doc, AB-RESULTS.md, but that does not make th…
  • Unverifiable claim about a third party's unpublished results (docs/POC-PLAYBOOK.md:37) — The claim targets informal narrative context within a playbook documentation file (docs/POC-PLAYBOOK.md). Referencing internal benchmark observations in documentation does not affect runtime behavior, safety, or code reliability, and does not constitute a technical defect.

No new issues found in this diff.


Usage
Model Region Calls Input Cached input Output
gemini-3.6-flash global 20 191,303 56,219 960
claude-sonnet-5 global 16 219,294 30,380 7,398

Reviewed 1d53257 · quorum-review 1.7.0 · models gemini-3.6-flash, claude-sonnet-5 · 103s

Comment thread docs/POC-PLAYBOOK.md
Comment on lines +33 to +36
Measured: a 62k-token corpus offloaded to a digest leaves the conductor carrying **4.4k
instead of 62k**, i.e. **$0.002 vs $0.031 per subsequent turn** — $0.53 vs $2.05 across
50 turns.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "Measured:" claim (62k→4.4k tokens, $0.002 vs $0.031/turn, $0.53 vs $2.05 across 50 turns) has no supporting data anywhere in this diff or the repo — not in docs/AB-RESULTS.md, not in CHANGELOG.md. That's inconsistent with this PR's own stated principle ("this repo doesn't quote numbers it hasn't measured") and with how the rest of this same PR behaves: the "~5.7 delegations" figure later in the diff correctly traces back to the 0.22.0 changelog entry, but this one, and several others added here (lines 132, 135–136, 143–144, 232: the "+46%→indistinguishable" story, "0 delegations in 122 turns / 6 trials", "1.7–3.1× within an arm", "14.7% / 42.1%", "1.3–1.9× latency"), don't cite a source, version, or config the way the existing benchmark entries in CHANGELOG.md/SKILL.md do (e.g. "Opus 5 conductor · Gemini 3.6 Flash High executor · agy 1.1.8 · n=3/arm, cold cache"). If these came from the "colleague's SWE-bench" effort mentioned in the PR description, say so explicitly and note it wasn't run against this repo's tooling; if they're from an unpublished run of this repo's own harness, they should get the same citation treatment as the other numbers in this file.

@claude

claude Bot commented Aug 4, 2026

Copy link
Copy Markdown

Reviewed — this is docs-only (docs/POC-PLAYBOOK.md, +102/-13), no plugin code touched.

Structural changes check out: the new principle 1 renumbers 1→5 correctly (the one downstream cross-reference at line 91, "per principle 5," was updated to match), the new §8 anchor and the [§4](#4-write-task-hygiene-the-traps-pre-paid) link both resolve to real headings, and the AGY_USAGE_LOG / plugin ≥0.22.0 claim matches when that env var actually shipped (CHANGELOG 0.22.0). The /antigravity:media reference in §8 point 1 is a real command.

One finding worth a look (left inline on lines 33–36): several new numbers in this diff are presented as "Measured:" facts but aren't backed by anything in the repo — not docs/AB-RESULTS.md, not CHANGELOG.md. Specifically: the 62k→4.4k token / $0.002 vs $0.031 vs $0.53/$2.05 figures (L33-34), the "+46%→indistinguishable" cache-draw story (L132), "0 delegations in 122 turns / 6 trials" (L135), "1.7–3.1× within an arm" (L136), the 14.7%/42.1% cost-of-pass example (L143-144), and "1.3–1.9× latency" (L232). By contrast, the "~5.7 delegations" break-even figure added in the same diff does trace cleanly to the existing 0.22.0 changelog entry — so the citation discipline the rest of this file (and this repo generally) follows wasn't applied uniformly here. Given the PR description itself says "this repo doesn't quote numbers it hasn't measured" and that the GAIA run is still pending, it'd be good to confirm where these specific figures come from (this repo's harness on some version, or the SWE-bench effort mentioned in the description) and cite it the same way the rest of the doc does.

Everything else — the two-accounting-systems table, the report template, §8's framing of parity as a reportable result — reads consistently with the existing playbook's voice and doesn't contradict anything else in the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant