Skip to content

State what memory is worth in two results, and enforce it in CI (#392) - #398

Merged
abogartz merged 3 commits into
mainfrom
392-cost-claim-discipline
Nov 12, 2026
Merged

abogartz merged 3 commits into
mainfrom
392-cost-claim-discipline

Conversation

@abogartz

@abogartz abogartz commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Part of #386. Closes #392.

Why this is a ticket and not a chore

Three numbers were published and corrected inside one day. The mechanism was not carelessness: a metric that silently undercounts by 93% still produces a plausible number, and a plausible number gets quoted. runSession().tokens summed input + output + reasoning with cache excluded, and this provider reports input as only the uncached remainder — one run reported 13,393 of 187,856 tokens that actually moved. Capture was excluded too, and it is about a third of a session's own generation. The direction of a finding depended on which tokens were counted.

What this does

The README states what is known in exactly two results, each with its n and its seat:

Result n Seat
Transport — empty store 0/5, seeded 5/5, leak-checked fixture, floor verified first 5 per arm evo/Qwen3.8-Flash-Next-UD-Q4_K_XL, local seat behind a recording proxy
Reuse — median of the six per-pair L2/L0 work ratios 0.91× (sorted 0.54, 0.79, 0.84, 0.98, 1.06, 1.23, middle two averaged), higher in 2 of 6, inside the pre-registered 0.80–1.25 band, no measurable effect at 20% resolution; unrelated memory 0.99×, same estimator, higher in 3 of 6 6 pairs same seat

A review of the first published version of this table found that its "median 0.98×" and "0.88×" were not medians: the bench harness reports sorted[n/2], the upper-middle element at even n. Recomputed from results-reuse-n6/learn.json, the median of the per-pair ratios is 0.91× (reuse) and 0.99× (unrelated). Both stay inside the pre-registered 0.80–1.25 band, so the NEUTRAL verdict is unchanged. The README now names the estimator in words and the test pins the wording, so the mislabel cannot come back. The harness itself is outside this repository and was not edited; the defect is recorded in the review comment on this PR.

No token saving is claimed anywhere in the file. No dollar figure appears: the seat is a local box with no cache price, and a hosted provider's ~0.1× read / 1.25× write is a different claim that cannot be derived from these numbers.

The rules are enforced by test, not asked for — test/claims.test.ts, free, runs in CI on every push:

  • exactly two results, counted as claim-shaped content — table rows are matched after leading whitespace and a |- prefix cannot hide one, and a third result smuggled in as a bold paragraph counts too — so a third claim has to move the test first;
  • no dollar figure anywhere, in any spelling ($, USD, dollar, cent, $), with fenced code blocks exempt so a shell $1 cannot fire;
  • no sentence asserting a token saving, covering the rewordings that previously slipped through ("a 30% reduction in tokens", "2× fewer tokens", "cuts token use by 30%", "saves an estimated 1,000 tokens", "1,000 tokens avoided", a saving split across a bullet and its sub-bullet) while an explicit denial ("No tokens saved here.") passes;
  • a percentage attached to tokens must say bytes;
  • "cheaper" appears only where an n, a seat and a metric share the line, and the exemption for the rules list is bounded by the rules block's own extent, not a fixed nine-line window;
  • the "20% resolution" label is pinned on the result row it qualifies, not merely somewhere in the section;
  • the n=6 floor, the cache-state confounder and the metric definition must all still be written down.

12 of its 15 tests fail against the pre-PR README, and 2 fail against this PR's own previous head — the one that published the mislabelled medians — so the check can fail. That is the property that matters: the rule that just failed was the one nobody could violate.

Retractions posted (AC 1)

Nine issues quote a session token figure from the bad metric. Each now carries an explicit retraction naming the figure and the reason:

#365 first — its median drop 20,506 → 10,009 cannot be the capture switches, because capture cost was identical between those arms. The magnitude fits a cache-state change. Then #330 (capture-only figures, valid as one call, not as a session cost), #327, #315 (including its dollar claim, which was never hosted-measured), #383, #381, #353 (input-only), #338, #325.

No recomputed figure exists for any of them. The stored wire logs carry no provider usage object — checked directly: 18 lines, zero usage records in the run behind #381/#383. That is its own finding, and it is why the corrected metric is defined in words in the README instead of being back-filled.

AC status

# criterion status
1 every issue quoting a bad-metric figure carries a correction or retraction, #365 first met — 9 comments posted, identified by grep over all 204 issue bodies
2 README quotes exactly two results with n and seat; saving-sentences removed met, and pinned by test
3 rule written down where contributors hit it met — README section, enforced in CI
4 "cheaper" never appears without n, seat and metric on the line met for the README, which is what the test can read. Issue bodies are not covered by CI and were not rewritten here: #334, #386, #385, #365, #387, #330 and #315 each still carry the word without an n, a seat and a metric on the line. The README's rules list now states that an issue or PR body making a cost claim owes the same n, seat and metric; that half is written down where a contributor hits it and is enforced by review, not by test.
5 #385's correction linked from #386 met — #386's body now links #385 and records the estimator correction beside the two medians it mislabelled

Known follow-ups (out of scope here)

Verification

bun run gate at this head: 1205 unit tests pass, 19 skip, 0 fail (1224 total); 30 e2e against a real opencode host; typecheck exit 0; lint 542 warnings — the same count as main, none added; test/claims.test.ts runs 15 tests in ~90 ms with no network, store or wall-clock dependency.

Closes #392.

Three numbers were published and corrected inside one day. The mechanism was not
carelessness: a metric that silently undercounts by 93% still produces a plausible
number, and a plausible number gets quoted. `runSession().tokens` summed
input + output + reasoning with cache excluded, and this provider reports `input`
as only the uncached remainder -- one run reported 13,393 of 187,856 tokens that
actually moved. Capture was excluded too, and it is about a third of a session's
own generation.

The README now states what is known in exactly two results, each with its n and its
seat: transport (empty store 0/5, seeded 5/5, leak-checked fixture, floor verified
first) and reuse (median 0.98x, 6 pairs, no measurable effect at 20% resolution).
No token saving is claimed anywhere in the file and no dollar figure appears: the
seat is a local box with no cache price, and a hosted provider's 0.1x read /
1.25x write is a different claim that cannot be derived from these numbers.

The rules are enforced by test/claims.test.ts rather than asked for, because a rule
nobody checks is the rule that just failed. It runs in CI for free and asserts:
exactly two result rows (a third claim must move the test first); no dollar figure;
no sentence asserting a token saving; a percentage attached to tokens must say bytes;
"cheaper" only where an n, a seat and a metric share the line; and that the n=6
floor, the "20% resolution" label, the cache-state confounder and the metric
definition are all still written down. 11 of its 14 assertions fail against the
previous README, so it can fail.

Retractions were posted on the nine issues that quote a bad-metric token figure:
#365 first (its 20,506 -> 10,009 "saving" cannot be the switches -- capture cost was
identical between those arms -- and fits a cache-state change), then #330, #327,
#315, #383, #381, #353, #338 and #325. No recomputed figure exists for any of them:
the stored wire logs carry no provider usage object, which is its own finding and
the reason the corrected metric is defined in words in the README.

- README: "What memory is worth, measured" section; the #346 audit paragraph now
  says input-only; "12.3% fewer characters" now says bytes, not tokens
- test/claims.test.ts: 14 assertions over the README text

Co-authored-by: OpenCode <[email protected]>
@abogartz

Copy link
Copy Markdown
Owner Author

Adversarial review — REQUEST_CHANGES

Reviewed head 7a8d87f4c2ebd1d472778c22253311d1a31fe72a against merge-base f8f42fd. Findings come from running code and re-deriving numbers, not from reading the diff.

The README section's structure is sound, the transport numbers trace, the nine retractions are real and correctly ordered, and the test is fast (90 ms) and wired into CI. Three things block merge: the headline reuse number is mislabeled, and two AC-status claims in the body are false.


P1 — The published "median 0.98×" is not the median of the published data, and the test forbids the correction

README.md:156, pinned by test/claims.test.ts:53 (expect(text).toContain("0.98")).

Source: ~/Documents/benchmark-tests/ocsi/results-reuse-n6/learn.json, metric work = gen + captureGen (the README's own definition). Per-pair L2/L0, sorted:

0.5432  0.7854  0.8417  0.9807  1.0643  1.2251

Those six match the epic's published list exactly. The statistics:

median            0.9112
upper-middle [3]  0.9807   <-- what is published as "median"
ratio of medians  0.848

The harness computes const rmed = ratios[Math.floor(ratios.length / 2)] (chain-learn.ts:965) — for n=6 that is sorted[3], the upper-middle element, not the median. The stored artifact carries rmed: 0.9806515862853891. The comment above it (chain-learn.ts:949) says the verdict is median(L2)/median(L0), which is a third quantity again.

The unrelated arm's 0.88× has the same defect: upper-middle med(L4)/med(L0) = 7133/8071 = 0.884, while the standard median-of-ratios is 0.99.

A PR whose thesis is "a metric that silently undercounts still produces a plausible number, and a plausible number gets quoted" publishes a mislabeled statistic, and its test pins the label: replacing 0.98 with 0.91 in the README makes the suite RED (fail_tests=1).

Fix: publish 0.91, or state the estimator explicitly ("upper-middle ratio, sorted[floor(n/2)]"); update the pinned string; fix rmed/med() in the bench harness so the artifact label matches the code.

P1 — AC 5 claimed "done in the epic body"; #386 does not link #385

gh issue view 386 --json body --jq .body | grep -c 385   -> 0
gh issue view 386 --json comments --jq '.comments|length' -> 0

The claim "the correction on #385 is linked from #386" is false at review time. Fix: add the link to the epic body.

P1 — AC 4 claimed "met"; issue bodies still carry "cheaper" without n, seat and metric

#392's AC 4 covers "the README or an issue body". Present in bodies today: #334 ("Warm pass 2.2–3.4× cheaper and 2.1–2.6× faster than the cold control"), #386 ("Memory does not make ordinary work cheaper"), #385, #365, #387, #330 ("72% cheaper write"), #315. The test enforces the README only. The body's AC 4 line is true for the README and states more than that.

Fix: correct the AC table, or amend #392's AC 4 scope to the README.


P2 — The rules are format-bound, not claim-bound

Each row below is a README edit that passes the suite while publishing a third measured result or a forbidden claim:

Rule Mutation that should fail Failed? Evasions that pass
Exactly two result rows third | **Cache.** row in the section yes bold prose paragraph in the section; result in another section; table row with one leading space; row prefixed |-
No dollar figure $1.20 yes 1.20 USD; two dollars; full-width $5. False positive: any fenced shell block containing $1/$2
No token-saving sentence "30% fewer tokens" yes "a 30% reduction in tokens"; "2× fewer tokens"; "cuts token use by 30%"; "saves an estimated 1,000 tokens"; "1,000 tokens avoided"; a saving split across a bullet and its sub-bullet. False positive: the denial "No tokens saved here." also fails
A percentage on tokens must say bytes "8% fewer tokens" yes "cache reads" does not satisfy the literal word "bytes" (false positive on honest labeling); "% fewer characters" never fires
"cheaper" needs n + seat + metric "the seeded arm is cheaper" yes any line at rulesStart+8 (the exemption is a fixed 9-line slice, test/claims.test.ts:119); the bare words "cheaper (n=6, same seat, by the work metric)" with no evidence
n=6 floor written remove it yes —
"20% resolution" written remove it from the rules line yes rewrite the result row to "10% resolution" and keep the string in the rules bullet
Cache-state confounder written remove the bullet yes —
Metric defined in words reword the definition yes —
Section exists rename the heading yes (9 fails) —

Concrete probes for the two most serious:

budget of the check: 14 tests, 21 expects, 90 ms
third result as a bold prose paragraph  -> fail_tests=0
"1.20 USD"                              -> fail_tests=0
"saves an estimated 1,000 tokens"       -> fail_tests=0
"No tokens saved here."                 -> fail_tests=1   (false positive)

The claim "11 of its 14 assertions fail against the previous README" is verified: 11 fail / 3 pass against f8f42fd's README. The check can fail.

Minimal fixes: count claim-shaped content rather than markdown rows; match USD|dollar|cent|$ and exempt fenced code; add a negation guard; bound the "cheaper" exemption by the next blank-line-terminated block instead of a constant.

P2 — README merge conflict with #379, and a stale bench table after #396

Applying the three open README diffs in the order 379 → 396 → 398 from f8f42fd:

p379 applies
p396 applies
p398 -> error: patch failed: README.md:163

Both #379 (@@ -163,7 +165,7 @@) and #398 (@@ -163,13 +184,13 @@) rewrite the same "The byte-change counter…" sentence. #396 does not touch the README. Manual resolution: take #379's rewrite plus this PR's suffix "— bytes on a deterministic workload, not tokens and not a provider bill".

Separately, bun run bench at #396's head 2b81069 prints B=56109 / C=55889 against the README's published 55478 / 55258. Neither PR updates the table, so this PR's new "measured, enforced" section lands directly above a table that #396 makes stale. Coordinate the order and carry the table fix.

P2 — "1231 unit tests" does not reproduce

Gate at head: 1204 pass / 19 skip / 0 fail = 1223. Off by 8.

NITs

  1. Failure messages. "the section exists" fails as expect(0).toBeGreaterThan(5) and names neither README.md nor the heading. "exactly two result rows" prints expected 2, received 3 without the offending line, while the dollar/savings/cheaper tests print offenders. A CI rule that fails opaquely gets deleted rather than obeyed.
  2. The cheaper rule accepts bare words. "cheaper (n=6, same seat, by the work metric)" passes on three tokens with no evidence. By design, but it is word-matching, not evidence-checking.

Residual

bun run bench dirties the tree via a stale path line in bench/RESULTS.md (bun bench/inject-cost.ts, should be bench/runners/inject-cost.ts). Pre-existing from the 5e83025 reorg, not this PR.


Number-truth table

Published number Source Match
Transport 0/5 empty, every failure unwritten results-transport-x5/transport.json T0: 5× ok:false, detail no out/declaration.json matches
Transport 5/5 seeded same, T1 5× ok:true "vat_bps 2150" matches
n=6 pairs, all arms pass results-reuse-n6/learn.json: L0/L1/L2/L4 6/6 matches
per-pair 0.84, 0.79, 1.06, 0.98, 1.23, 0.54 recomputed work = gen + captureGen matches
median 0.98× median of that list = 0.9112; 0.98 is sorted[3] does not match
higher in 2 of 6 1.0643 and 1.2251 > 1 matches
unrelated 0.88× upper-middle ratio; standard medians give 0.99 / 0.82 does not match (same defect)
13,393 of 187,856 (7%) FINDINGS-2026-11-10-memory-value.md:101 (results-billed-smoke); 13393/187856 = 7.1% matches
capture ≈ a third of session generation FINDINGS table ~2.7k/~8k = 34%; raw L0 median captureGen/gen = 0.39 matches source, generous
20,506 → 10,009 (#365) results-cost365-chain-main{,-signal}/chain.json matches
12.3% fewer characters bun run bench at head: 60996 → 53500 = 12.29% matches
204 issue bodies issues API, PRs excluded, pages 1–5 matches
1231 unit tests gate: 1204 pass + 19 skip does not match (1223)

Retraction audit

All nine comments are present, authored by abogartz, 2026-11-11 18:46:52–18:47:01, in exactly the claimed order, with #365 first and carrying the capture-cost-identical argument verbatim.

Issue Comment Names the figure Names the reason
#365 yes, first yes (20,506 → 10,009) yes (cache-state; switches identical)
#330 yes yes (~1,200 / 1,232 / ~343) yes (capture-only)
#327 yes yes (+4,758; −42%; 20,467 → ~12,131) yes
#315 yes yes (H2 −34% dollars / −6% tokens) yes, including the dollar retraction
#383 yes yes (574 s, 33,287) yes
#381 yes no — says "the token figure"; 33,287 not cited; the Arm N comment (8,040 / 11,231 / 9,288, 1.40×) is not covered generic boilerplate only
#353 yes yes (~344, 3,257) yes (input-only)
#338 yes no — 656 / 1,095 not cited class named
#325 yes no — the med-billable table figures not cited class named

The body's "each now carries an explicit retraction naming the figure" is false for #381, #338 and #325.

Uncorrected elsewhere, all arguably outside AC 1's literal "session token figure": #334 "Warm pass 2.2–3.4× cheaper" (bad-era cost ratio, no comment — the strongest candidate for a tenth), #387 "~5,000 completion tokens", #319 "3,264-input". #346's figures live in a comment, are now labeled "input tokens only" in the README, and are named by #353's retraction — defensible.

Claim 7 verified independently: results-learn-t3-diag/wire.jsonl is 18 lines with 0 "usage" records; #365's two wire logs (228 and 237 lines) also carry 0. No recomputed figure was available for the retracted runs.

Measured numbers

  • test/claims.test.ts: 14 tests, 21 expects, 90 ms in-process, wall 0.1 s. No network, no store, no wall-clock dependency. Runs in CI via bun run test (bun test ./test/, ci.yml test job).
  • Gate at head: exit 0. Unit 1204 pass / 19 skip / 0 fail. E2E 30 pass / 0 fail. Typecheck clean.
  • Lint: 542 warnings + 147 infos at head, same as base f8f42fd. No new warnings.
  • On origin/main ce36c65: patch applies clean, claims.test.ts 14/14 pass, typecheck clean.
  • bun run bench at head reproduces the published table exactly; at 2b81069 it prints 56109 / 55889.

…sions

The published reuse medians 0.98x and 0.88x were not medians. The harness
takes sorted[n/2], the upper-middle element at n=6. Recomputed from
results-reuse-n6/learn.json, the median of the six per-pair L2/L0 work
ratios is 0.91x and the unrelated arm is 0.99x; both stay inside the
pre-registered 0.80-1.25 band, so the NEUTRAL verdict is unchanged. The
README now names the estimator in words and test/claims.test.ts pins it.

Hardening from the same review: dollar figures match USD, dollar, cent and
the full-width sign with fenced code exempt; token-saving claims match the
rewordings the old pattern missed while an explicit denial passes; the
cheaper exemption is bounded by the rules block's own extent; the
resolution label is pinned on the result row it qualifies; and a third
result now fails as claim-shaped content even as a bold paragraph or a
space-padded row. The rules list gains the obligation for issue and PR
bodies, which CI cannot read and review must.
@abogartz

Copy link
Copy Markdown
Owner Author

Review round 2: what changed

Commit 7d8a4db addresses the adversarial review. Pushed through the pre-push hook, which ran the full gate; nothing bypassed.

F1 — the published "median 0.98×" was not the median

Recomputed from /Users/Alex/Documents/benchmark-tests/ocsi/results-reuse-n6/learn.json with work = billed.gen + billed.captureGen, the harness's own pair filters (both arms pass, work > 0, no missing usage — 6 of 6 pairs usable):

pair L0 work L2 work L2/L0
1 8071 6793 0.8417
2 7884 6192 0.7854
3 10078 10726 1.0643
4 7029 6893 0.9807
5 5500 6738 1.2251
6 8398 4562 0.5432

Sorted: 0.5432 0.7854 0.8417 0.9807 1.0643 1.2251.

  • standard median (mean of the two middle values): 0.9112
  • upper-middle element sorted[floor(n/2)]: 0.9807 — this is what was published as "median", and it matches the stored rmed: 0.9806515862853891
  • ratio of medians: 0.8417 (upper-middle medians) / 0.8481 (standard medians) — the third quantity the code comment describes
  • higher in 2 of 6: unchanged, still true

Unrelated arm (L4), paired to L0 by the same index convention the harness uses for L2:

  • per-pair L4/L0 sorted: 0.5517 0.5913 0.8838 1.0891 1.2798 1.2822
  • standard median of ratios: 0.9864 → published as 0.99×, higher in 3 of 6
  • the published 0.88× was medB(L4)/medB(L0) = 7133/8071 = 0.8838, with both medians taken as upper-middle elements; the ratio of standard medians is 0.8225

Verdict check: 0.9112 and 0.9864 are both inside the pre-registered 0.80–1.25 band, so NEUTRAL stands unchanged. The README row now says so explicitly.

README line, before:

| **Reuse.** A memory reduces the work on a task the agent already passes | 6 pairs | same seat | median L2/L0 **0.98×**, higher in 2 of 6 — **no measurable effect at 20% resolution**. A memory about an unrelated task: **0.88×** |

after:

| **Reuse.** A memory reduces the work on a task the agent already passes | 6 pairs | same seat | median of the six per-pair L2/L0 work ratios — sorted 0.54, 0.79, 0.84, 0.98, 1.06, 1.23, middle two averaged — **0.91×**, higher in 2 of 6, inside the pre-registered 0.80–1.25 band: **no measurable effect at 20% resolution**. A memory about an unrelated task: **0.99×**, same estimator, higher in 3 of 6 |

test/claims.test.ts now pins 0.91, 0.99, and the estimator wording (median of the six per-pair, middle two), so the mislabel cannot return. grep -rn "0.98\|0.88" README.md bench/ now matches only the new sorted-ratio list, where 0.98 survives as one of the six honest per-pair values; 0.88 no longer appears in the README or bench/, and bench/RESULTS.md never quoted either number.

Out-of-scope follow-up (not edited — the harness lives outside this repository): chain-learn.ts:965 computes rmed = ratios[Math.floor(ratios.length / 2)], the upper-middle element at even n, not the median; medB at :920, which produced the printed 0.88×, has the same defect; and the comment at :949 describes the verdict as median(L2)/median(L0), a third quantity that neither line computes.

F2 — #386 now links #385

gh issue edit 386 --body-file inserted the link beside the two medians the epic mislabels, with a one-clause note that the label was wrong and what the corrected values are. Everything else in the epic body is byte-identical. Re-verified with the review's own commands: gh issue view 386 --json body --jq .body | grep -c 385 → 1 (was 0); gh issue view 386 --json comments --jq '.comments|length' → 0 (unchanged).

F3 — AC 4's real scope

The PR body's AC table now states that AC 4 is met for the README only: the test reads only this file, and #334, #386, #385, #365, #387, #330 and #315 each still carry "cheaper" without an n, a seat and a metric on the line (verified: one occurrence each). No issue body was rewritten for this. The README's rules list gained the line "An issue or PR body making a cost claim owes the same n, seat and metric. CI reads only this file, so that half is enforced by review." — the rule is now written down where a contributor hits it, and a test pins that the line exists.

F4 — the rules were format-bound; mutation table

Every mutation below was run against both suites: old = (old test, old README), new = (new test, new README). "old PASS" means the evasion worked before.

mutation old new failing test (new)
third result as a bold **Savings.** paragraph PASS FAIL exactly two result rows
table row with one leading space PASS FAIL exactly two result rows
table row prefixed |- PASS FAIL exactly two result rows
1.20 USD PASS FAIL no dollar figure
two dollars PASS FAIL no dollar figure
full-width $5 PASS FAIL no dollar figure
fenced shell block containing $1/$2 FAIL PASS (false positive fixed)
a 30% reduction in tokens PASS FAIL no token saving
2× fewer tokens PASS FAIL no token saving
cuts token use by 30% PASS FAIL no token saving
saves an estimated 1,000 tokens PASS FAIL no token saving
1,000 tokens avoided PASS FAIL no token saving
saving split across a bullet and its sub-bullet PASS FAIL no token saving
explicit denial No tokens saved here. FAIL PASS (false positive fixed)
"cheaper" on the heading right after the rules block (the fixed-window evasion) PASS FAIL cheaper carries its evidence
result row relabelled "10% resolution" while the rules bullet keeps "20%" PASS FAIL resolution label on the row

Mechanics: dollar rule matches USD|dollar|cent|$ as well as $, with fenced code blocks exempt; the token rule covers the rewordings above, joins a bullet with its deeper-indented sub-bullets, and exempts an explicit denial via a negation guard; the "cheaper" exemption is bounded by the rules block's own extent (heading plus the contiguous bullet block) instead of a nine-line constant; the resolution label is pinned on the Reuse row; and the third-result test counts claim-shaped content — non-separator table rows (matched after leading whitespace) plus bold-lead paragraphs other than the section's two scaffolding paragraphs.

Accepted residuals — prose rules are word-matching, not evidence-checking. Each of these passes the new suite, proven by running it:

  1. A third result placed in another section: the two-results test scans only the effectiveness section (result-in-another-section mutation: PASS before and after).
  2. A "cheaper" line appended flush onto the rules block (no blank line) extends the block and is exempt — the exemption is the block's own extent, so the block can be stretched by one line (cheaper-appended-to-rules-block: PASS).
  3. The bare words cheaper (n=6, same seat, by the work metric) with no data behind them pass — the test cannot tell an n that names a real measurement from an n that names nothing (cheaper-bare-evidence-words: PASS).
  4. A money word smuggled past a same-line negation passes: "Early reads priced a session, not in dollars but two dollars per run." (PASS). Narrower than it looks: a digit keeps its teeth — "Not free: the run cost 1.20 USD." FAILs — and the percentage rule independently catches the token form: "The result is not subtle: 30% fewer tokens per turn." FAILs.

F5 — unit-test count

The body claimed 1231; the pushed head produces 1205 pass / 19 skip / 0 fail (1224 total). The body now says that.

F6 — README collision with #379

Re-tested after this commit with git merge-tree (object-level, no worktree). #379 (991811d) merges into origin/main cleanly. This branch then conflicts with the result in exactly one hunk: the paragraph after the bench table, where #379 rewrites the opening counter sentence ("The invalidation counter counts byte-moving recomputes…") and this PR appends the "bytes on a deterministic workload, not tokens and not a provider bill" label to the 12.3% sentence. The resolution keeps both edits — #379's counter sentence plus this PR's label — and nothing else moves. The reverse merge order conflicts identically, so the order does not matter; whoever merges second resolves one paragraph.

Check-can-fail property

New suite against the pre-PR README (main): 12 fail / 3 pass. Against this PR's own previous head 7a8d87f: 2 fail / 13 pass — the reuse-estimator test and the issue-or-PR-body rule test. The old body's "11 of 14" claim is replaced by these two measured splits.

Retraction audit — items not changed

The nine retraction comments (#365, #330, #327, #315, #383, #381, #353, #338, #325) stand as posted; none was edited or re-audited this round. The issue bodies listed under F3 were deliberately not rewritten. The only body edited in this round is the epic #386, per F2.

Gate at 7d8a4db

  • unit: 1205 pass / 19 skip / 0 fail, 1224 tests across 112 files
  • e2e: 30 pass / 0 fail against a real opencode host
  • typecheck: exit 0
  • lint: 542 warnings — identical to the main baseline, none added
  • test/claims.test.ts: 15 tests, ~90 ms standalone, no network, store or wall-clock dependency

@ocsi-reviewer ocsi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approving.

The claim-discipline defect this PR exists to prevent no longer exists in it: the published reuse figure is the true median-of-ratios (0.91x, unrelated arm 0.99x), the estimator is named in words and pinned by the test, and the previous value was the harness's upper-middle element rather than a median. The enforcement rules close the documented evasions, the check still fails against the pre-PR README, and the AC table now states the scope CI can actually enforce.

Full gate green, CI green. Not merged — the merge is left to a human.

Resolve the README bench-table paragraph as the union of both sides: keep
main's byte-moving-recompute framing and the same-set re-ranking caveat from
#379/#396, and keep this branch's claim that the 12.3% figure is characters
over the section, not tokens and not a provider bill.
@abogartz
abogartz merged commit 4b74b28 into main Nov 12, 2026
4 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.24.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@abogartz
abogartz deleted the 392-cost-claim-discipline branch November 19, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retract every cost claim that cannot reproduce under the corrected metric

1 participant