clay-borg/workplans/CB-WP-0003-loop-hardening.md

380 lines
15 KiB
Markdown
Raw Normal View History

Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
---
id: CB-WP-0003
CB-WP-0007 T01+T03: window the metric, budget it, cap meta at 25% Scope cut first, on the maintainer's decision after a spend review: the project is 38% product / 62% loop-meta, cost per response is 2.9x worse than its best window, and INTENT stage 0 still lacks a CLI player and bots. CB-WP-0005 and CB-WP-0006 cost ~$74 — 31% of all spend — for zero measured efficiency gain. T02 and T04 are cancelled unstarted. T01: SH-1/SH-2/SH-3 now report over the window since the last commit, and the cumulative figure is retained but labelled "history, NOT the metric". The prediction held decisively — window 655,744 mean context against cumulative 255,307, a 2.6x gap against a 20% refutation threshold. A cumulative mean over 1,094 responses cannot detect a worsening trend because the history outvotes the present. T03: `make shape-budget`, modelled on CB-01/CB-02. Soft thresholds are the existing SessionShape targets; hard is 1.5x, set before the next measurement per §Step 4. Deliberately not in `make all` — failing the build on context would block committing, and committing is what closes the attribution window and is the natural point to compact, so a gate that blocks the remedy is a trap. It fires HARD on its first run: 656,574 against a 300,000 ceiling. InnerLoop v1.5 establishes the soft 25% meta budget. Workplans declare kind: product|meta|mixed and `make status` reports the share; mixed splits 50/50 and says so. Soft on purpose — a task already started may be finished, because stopping mid-task to satisfy a ratio wastes the work. What it forbids is opening new meta work above the line. A pass that exceeds it must say so in its evidence and name the product work displaced. First reading: 68% OVER, of $74.22 attributed. Product reads $0.00 because the only product workplan, CB-WP-0001, predates qualified task ids and its bare T## labels collide across passes — stated in the output rather than papered over. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-01 14:12:07 +02:00
kind: meta
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
title: "Harden the inner loop: executable rules, session economics, dead policy"
T10: InnerLoop v1.2 — hardening does not converge, so optimize correction The retrospective question was whether the mechanism set is complete or each pass still finds a new class. This pass produced both an eighth instance AND a fourth class, so the answer is the uncomfortable one. Ledger: 10 instances, 4 classes, across 3 workplans. Every pass has produced at least one class the previous pass had not seen. HDN harness-does-nothing 5 executable assertions TA trusted arithmetic 3 re-derivation SSB same-sample blind spot 1 assertions over ALL the data DFD duplicated-fact drift 2 NEW -- reading a copy against source DFD is genuinely distinct: no positive control catches it, because both copies are internally consistent, and re-derivation does not either, because the copy faithfully reproduces what it was copied from. Found when an inlined price sheet went stale within an hour of T11 changing the real one. So v1.2 stops trying to enumerate classes in advance. Every error in three passes was corrected in-session for under ~1% of the pass, so the stated design goal is now cheap CORRECTION: keep raw data so numbers are re-derivable, keep artifacts small and committed so a wrong number is one grep from everywhere quoting it, give every number a command. Plus the one rule the new class earns: single source of fact. The original hypothesis is revised rather than confirmed. "A rule that cannot be executed is not a rule" is wrong -- the two most valuable corrections in the project came from a decorative rule that cannot be automated (re-derive inherited numbers). An executable rule fires reliably and catches one class; a decorative one fires unreliably and can catch any class, including unnamed ones. Keep both. Gates this pass: loop-lint caught 3 real violations on first run, then failed on its own author within the hour when a T07 edit pushed InnerLoop.md to 407 lines against its own 400 limit. CB-WP-0003 complete: 11 of 11 tasks done. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:31:19 +02:00
status: done
state_hub_workstream_id: "39d61dc0-870d-45c1-a595-bcf91f289dce"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
---
# Purpose
A rigorous review of the loop after its first full pass (CB-WP-0001)
found error modes the loop does not catch and policy that costs
something while delivering nothing. The CI fixes were taken immediately
(commit `72c594e`); this workplan covers the rest.
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
The finding that framed it:
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
> **Writing a rule into `specs/InnerLoop.md` did not prevent the next
> instance of the failure it was written for. Making it a CI step did.**
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
**Revised 2026-07-31 from CB-WP-0002**, which was run first and changed
the premise. The original hypothesis — *a loop rule that cannot be
executed is not a rule* — survives but is now too coarse. CB-WP-0002
corrected one number four times ($248.46 → $92.21 → $92.87 → $93.32),
and **each correction came from a different mechanism**:
| mechanism | caught | cost |
|---|---|---|
| re-deriving instead of quoting | inherited double-count + single-model pricing | ~0 |
| adversarial review | target contradicted the survey's own finding | $1.11 |
| executable assertion (`--self-test`) | dedup invariant false in the subagent tree | ~0 |
**No mechanism found more than one.** So the goal is not to convert every
rule into a CI step; it is to know which class each mechanism catches and
to stop expecting one to cover another. Two specific limits are now
measured rather than assumed:
1. **A positive control cannot catch trusted arithmetic.** Both errors in
$248.46 were sums over data that genuinely existed. An assertion of the
form "did this harness do work?" answers yes, correctly, and the number
is still wrong.
2. **Adversarial review cannot catch a same-sample blind spot.** The dedup
invariant was verified on the main transcript by the survey *and*
independently by the reviewer; it is false in the 8-response subagent
tree neither examined. A reviewer's job is to re-derive the author's
claims, and re-deriving on the same sample reproduces the same gap.
CB-WP-0002 also falsified this workplan's own prediction (old T10): the
fifth error was **not** of the harness-does-nothing class. Two more
instances arrived, of two new classes. The retrospective task is rewritten
accordingly.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Phase A — Make the rules executable
## Task: Audit every InnerLoop rule for enforceability
```task
id: CB-WP-0003-T01
T01: audit every InnerLoop rule, and make the checkable ones executable 41 rules classified executable / checkable / decorative, each tagged with the failure class it catches. Counts: 11 executable, 22 checkable, 4 decorative (one of them dead policy). Audit: history/260731-inner-loop-rule-audit.md New tools/loop-lint.py makes 7 rules executable (tier declared, chaos roll recorded, tier-L review trail, unmeasured-in-evidence, whole-file loadability, reporting tools expose --self-test). It found three real violations on its first run, none previously visible: - specs/ArchitectureBlueprint.md was 543 lines against a ~400 limit the loop has stated since v0.2 and never measured. Split at its own section boundaries into Blueprint (1-8) + Runtime (9-15). - tools/dep-weight.py and tools/rule-coverage.py had positive-control logic and no --self-test, so nothing verified the control worked. Adding rule-coverage's self-test exposed a latent instance of the exact class this workplan is about: if the spec regex stopped matching, rules was empty, missing was empty, and the tool exited 0 reporting "0/0" -- a silent pass, in the tool that reports our headline AM-1 number. Both tools now assert they found something before reporting. Two demotions applied in the spec rather than left implicit: "structured over prose" is marked guidance (nothing can check it), and the 8k/10k token budget is struck through and marked DEAD POLICY pointing at T05. The audit's uncomfortable finding: rule 13 (re-derive inherited numbers) has no mechanical form, is deliberately left decorative, and caught the LARGEST error in CB-WP-0002. That is a counter-example to this workplan's own hypothesis. "A rule that cannot be executed is not a rule" is wrong as stated; the defensible version is that such a rule cannot be relied on to fire, so it must not be the only defence for a class that matters. Class coverage: harness-does-nothing has five executable rules; trusted-arithmetic has ZERO and produced the largest single error. make loop-lint and make self-tests wired into `make all` and CI. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:16:00 +02:00
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: high
state_hub_task_id: "3d5d45fb-f931-407a-be71-d2d727279d5e"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
Go through `specs/InnerLoop.md` **v1.1** rule by rule and classify each:
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
**executable** (a command fails when it is violated), **checkable**
(a human or agent can verify it in review, cheaply and objectively), or
**decorative** (neither). Record the table in
`history/YYMMDD-inner-loop-rule-audit.md`.
For each decorative rule, choose one of: make it executable, demote it
to guidance with that status stated, or delete it. The default is
delete — an unenforceable rule that reads like a requirement creates
false assurance, which is worse than silence.
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
**Revised:** classification is no longer enough. For each rule also record
**which failure class it catches**, drawn from the seven instances now on
record (four harness-does-nothing, two trusted-arithmetic, one
same-sample-blind-spot). A rule that catches a class no observed error
belongs to is a candidate for deletion even if it is perfectly executable.
Conversely, a class with no rule covering it is the gap worth the next
rule.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Known candidates to start from: whole-file loadability (~400 lines) is
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
mechanically checkable and unchecked — `specs/InnerLoop.md` is now near
that limit and should be measured first; "evidence or it didn't happen" is
executable via a committed-artifact check; the four v1.0 implementation
rules and the three v1.1 rules are currently prose.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Task: Extend the positive-control gate beyond benchmarks
```task
id: CB-WP-0003-T02
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: high
state_hub_task_id: "f861e67f-ed09-489d-963d-06697da9c08e"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
**Partly delivered by CB-WP-0002.** Already done: the `--self-test`
contract is stated in `specs/InnerLoop.md` v1.1 §Step 5; `cb-cost` exposes
one with five assertions (AC-5..AC-9); `make cost` depends on
`make cost-test`; `cost-test` runs in CI and in `make all`. `cargo bench
-- --test` and cb-sim's empty-run check were already in place.
**Closed 2026-07-31 alongside T01** — both items below are done:
tools/rule-coverage.py and tools/dep-weight.py gained `--self-test`
(the former exposing a latent silent-pass on zero parsed rules), and
`make loop-lint` fails CI when any `tools/*.py` lacks the flag.
**Scope as written:**
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
- `tools/rule-coverage.py` and `tools/dep-weight.py` have positive-control
logic but no `--self-test` entry point, so nothing verifies the control
itself still works.
- No CI step fails when a *new* reporting tool ships without `--self-test`.
Prefer a mechanical check (enumerate `tools/*.py` + `tools/cb-*`, require
the flag) over a convention nobody can verify.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
Carry forward from CB-WP-0002: a self-test that only exercises the happy
path is decorative. Each assertion must name a failure it detects, and the
strongest ones are regression pins on defects that actually occurred —
`cb-cost`'s AC-9 pins the exact `5, 5, 195` case that fooled first-wins
dedup.
## Task: Point adversarial review at measurement, and state its limits
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```task
id: CB-WP-0003-T03
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: medium
state_hub_task_id: "1365b35d-4539-489a-beff-c072221e4702"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
The review step is specified for tier-L *research*. The errors in this
project are in *measurement and build configuration*, which the review
never formally targets.
**Now supported by two measurements, not an argument.** Reviews cost
$0.66 (CB-WP-0001) and $1.11 (CB-WP-0002) — ~1% of the pass each — and
each found approval-blocking defects. In CB-WP-0002 the review caught a
target that would have made the evidence file certify a broken collector.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise InnerLoop §Step 2 so the review target follows the risk: for a
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
capability whose claim rests on numbers, the review reads the harness and
the evidence file, not only the survey. Keep it one round; state
explicitly what the reviewer must attempt (reproduce the number, identify
what the harness would report if the work silently stopped).
**Added:** state what review *cannot* do, with the case attached. A
reviewer re-derives the author's claims and therefore inherits the
author's sampling. CB-WP-0002's dedup invariant was checked by both
parties on the main transcript and is false in the subagent tree. The
instruction that follows: **a reviewer must re-derive on a different
sample than the author used**, and where only one sample exists, say so
rather than reporting a clean verify.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Phase B — Session economics
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
## Task: Measure session shape before prescribing it
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```task
id: CB-WP-0003-T04
T04: specs/SessionShape.md — compaction is the lever, not session length The task's original premise was wrong and is recorded rather than deleted. It was written to prescribe one task per session; measurement says the variable is context, not turn count. Measured: - compaction cut context 27x (542,991 -> 19,974) and cost/turn 3.1x; the 202 turns after C1 cost less than half the 136 before it - a turn costs $0.010 at 20k context and $0.270 at 540k - break-even for a compaction is 2-11 turns, so: compact whenever context exceeds ~300k and work remains - a fresh session is NOT free -- cold start floors at ~51k and must then re-read the artifacts a compact summary already holds (~66k). Prefer compaction to continue work; prefer a fresh session when the task changes, because then prior context is pure overhead. cb-cost now emits SH-1..SH-3 so the targets come from the instrument rather than from analysis, per InnerLoop v1.1. All three are UNMET (mean context 232,982 vs 200,000; p90 492,042 vs 300,000; batching 7.8% vs 20%) and are reported unmet rather than retargeted -- retargeting in the commit that first measures is precisely what T07 exists to prevent. Eighth error instance found while writing this: CB-WP-0001's claim that "0 of 330 tool calls were batched" is wrong. 330 was the count of single-call responses, not the total; 31 responses batched, covering 76 calls. It was carried into this workplan unverified. Trusted-arithmetic class -- the one the T01 audit flagged as having no executable defence, confirming that finding within hours of making it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:19:32 +02:00
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: high
state_hub_task_id: "382724e6-efd5-4ef8-a438-9d31a65dacdb"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
**Premise revised — the original conclusion was wrong.** This task was
written to prescribe one task per session on the theory that cost ≈
turns × mean_context and mean_context grows with turns, making long
sessions quadratic. CB-WP-0002 measured it:
| segment | turns | mean context | total | $/turn |
|---|---|---|---|---|
| start → compact 1 | 136 | 304,178 | $62.19 | **$0.457** |
| compact 1 → compact 2 | 202 | 193,493 | $30.01 | **$0.149** |
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
`/compact` cut context 542,991 → 19,974 tokens (**27×**), and the 202
turns after it cost less than half the 136 before. Sessions are
**bounded**-quadratic: cost grows with context between compactions and
resets at each one. The failure mode is a long *uncompacted* session, not
a long one.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
So the deliverable is no longer a policy derived from a theory. **Measure
the two remedies against each other first**, using `make cost`:
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
- cost of a compaction (the summarization call) plus the post-compact
ramp, versus
- cost of a fresh session, including the cold-start re-read of committed
artifacts that a fresh session must pay.
Then write `specs/SessionShape.md` with whichever wins, and the number.
Also carry over what is already measured and independent of that
question: 0 of 330 tool calls in CB-WP-0001 were batched into a
multi-call turn, and batching is free.
Every claim in the spec carries the measurement it rests on — this spec
exists because the numbers were surprising, and one of them has already
overturned the advice this task was created to give.
Unblocked: `tools/cb-cost.py` exists and `make cost` reports per-task
attribution.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Task: Replace the dead token budget with a live cost budget
```task
id: CB-WP-0003-T05
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: medium
state_hub_task_id: "26c920ee-2c09-4b45-a908-4d343532db09"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
The global 8k soft / 10k hard per-task token budget was never referenced
or enforced during CB-WP-0001, and T08 exceeded it by orders of magnitude
with no signal. It is dead policy: it implies a control that does not
exist.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
Replace it with a budget in USD, the unit `make cost` now makes
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
measurable, with a defined action on breach and a way to observe the
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
breach **at the time it happens** rather than in a retrospective. If no
such in-flight observation is possible, say so and delete the budget
rather than restating it.
**Calibration data now exists.** Per-task cost on CB-WP-0001 ranged
$1.29 (T09) to $21.02 (T08), with 32.5% of spend unattributed to any
task. Note the constraint this creates: a budget can only bind on the
67.5% that attribution reaches, and attribution is only computable
*after* the commit that closes a task. Any budget claiming to fire
mid-task must explain what it reads.
Unblocked: depends on CB-WP-0002, now complete.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Phase C — Remove or fix the rest
## Task: Resolve the chaos roll
```task
id: CB-WP-0003-T06
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: low
state_hub_task_id: "8f3a6147-54e8-48f9-8543-c13b0e0b0278"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
The d10 tier roll has now been rolled across two workplans (CB-WP-0001:
9; CB-WP-0002: 2) and has **never** triggered the override, as expected
at 1-in-10. It remains untested while adding a step to every tier
decision.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
Decide: raise the rate during a stated calibration period so the
mechanism produces evidence, or delete it. Keeping an unevaluated
mechanism at a rate that prevents its own evaluation is the one option
to reject.
## Task: Make retargeting a reviewed decision
```task
id: CB-WP-0003-T07
T07: separate a correction from a retarget with a mechanical test A blanket "no retargeting in the measuring commit" rule would have been wrong. CB-WP-0002 moved AC-1 three times in exactly that shape and every move was correct -- each time a new instrument disproved the old figure. Four legitimate corrections would have been forbidden to catch one bad retarget. The test is mechanical rather than a statement of intent: correction the target moves and the implementation does not; legal in the same commit provided the instrument's output is there retarget the same commit changes both the target and the code the target measures; requires an ADR stating why the new target binds on future work Applied retroactively: AM-4a/AM-4b are UNRATIFIED. They were set after seeing the measurement, in the commit that produced it, with the implementation changing too -- a retarget by this test. make dep-weight is currently enforcing a target no reviewed decision stands behind. Recorded as an open item; ratifying or changing them is a maintainer decision, not an implementer's. Also: specs/InnerLoop.md split into InnerLoop.md (process) and InnerLoopReference.md (rubric, template, rules, definition of done). Not a stylistic choice -- `make loop-lint` failed on the commit that pushed the file to 407 lines against its own ~400 limit. The gate added this morning to make that rule executable caught its own author within the hour, which is the cheapest possible demonstration that it works. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:25:22 +02:00
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: medium
state_hub_task_id: "2f702821-7e64-4981-9885-82fa07f638aa"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
AM-4's new targets were measured at 246,250 and set at 250,000 **in the
same commit, by the implementer, after seeing the number**. The
reasoning was recorded and is defensible, but the structure is exactly
what the loop exists to prevent.
Add to InnerLoop: a metric may not be retargeted in the commit that
measures it. A retarget is an ADR with the old target, the measurement
that motivated the change, and why the new target binds on future work
rather than merely passing present work. Apply retroactively to AM-4a
and AM-4b — either ratify them by ADR or change them.
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
**Sharpened by CB-WP-0002, which did this three times in one pass.**
AC-1 moved $92.21 → $92.87 → $93.32, each time in the commit that
discovered the discrepancy. Those retargets were *correct* — the target
was wrong and the instrument was right — which is precisely why a blanket
prohibition is the wrong rule. Distinguish the two cases:
- **target corrected because the instrument disproved it** — legitimate,
requires the instrument's output in the commit; and
- **target moved because the implementation missed it** — requires an ADR.
The rule must separate these without relying on the implementer's
self-report of which one it was.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Task: Give provisional items an expiry
```task
id: CB-WP-0003-T08
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: low
state_hub_task_id: "c2ee91ee-e551-48a7-b1a9-477c34c0690c"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Ten U-items plus GR-E02's "successes" are marked `provisional: true`
with no owner and no review date, so they can shape the kernel
indefinitely while looking handled.
Add an owner and a raised-on date to each provisional item, and make
`make coverage` report their age. Decide what happens when one goes
stale — the useful answer is probably that CI warns and the evidence
file must list them, not that the build breaks.
## Task: Strengthen the coverage gate beyond tag-counting
```task
id: CB-WP-0003-T09
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: low
state_hub_task_id: "69ccc9ec-dc35-481c-8065-cef040f07f50"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
`make coverage` compares rule IDs in the spec against `covers:` lists.
It proves no rule is unclaimed and no claimed rule is invented. It does
**not** prove a scenario exercises the rule it names, so 58/58 is weaker
evidence than it reads as.
Cheapest real strengthening to evaluate first: require every GR-id in a
`covers:` list to also appear in a doc comment in the aggregate, making
the spec→code→scenario chain mechanical rather than asserted. Consider
mutation-style checking (does removing the rule's code break the
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
scenario that claims it?) and cost it before adopting — `make cost` can
now price the evaluation itself.
## Task: Fix the price sheet's time-boxed rate before 2026-08-31
```task
id: CB-WP-0003-T11
status: done
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
priority: medium
state_hub_task_id: "809215d8-8a5c-4b10-9445-9bc6db9bda42"
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
```
**New, from CB-WP-0002.** `benchmarks/baselines/model-prices.toml`
encodes Sonnet at 3.00/15.00 with the intro rate 2.00/10.00 as a **TOML
comment**. A collector reading the sheet — which `cb-cost` does — silently
uses the wrong number. Today this costs $0.17 on a $93.32 pass (0.19%).
The deadline is real: **on 2026-08-31 the intro rate expires**, and the
comment and the data disagree in the opposite direction. Whoever reads the
sheet after that date gets a defensible number by accident rather than by
construction.
Give the schema a representation for a dated rate, and make the staleness
rule (§1a: refresh on price change or after 90 days) executable rather
than prose — it currently has no check at all, and every M-D2-CST verdict
inherits it. This is the same defect class the cost survey levelled at the
State Hub: a schema that cannot hold the fact it needs.
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
## Task: Retrospective
```task
id: CB-WP-0003-T10
T10: InnerLoop v1.2 — hardening does not converge, so optimize correction The retrospective question was whether the mechanism set is complete or each pass still finds a new class. This pass produced both an eighth instance AND a fourth class, so the answer is the uncomfortable one. Ledger: 10 instances, 4 classes, across 3 workplans. Every pass has produced at least one class the previous pass had not seen. HDN harness-does-nothing 5 executable assertions TA trusted arithmetic 3 re-derivation SSB same-sample blind spot 1 assertions over ALL the data DFD duplicated-fact drift 2 NEW -- reading a copy against source DFD is genuinely distinct: no positive control catches it, because both copies are internally consistent, and re-derivation does not either, because the copy faithfully reproduces what it was copied from. Found when an inlined price sheet went stale within an hour of T11 changing the real one. So v1.2 stops trying to enumerate classes in advance. Every error in three passes was corrected in-session for under ~1% of the pass, so the stated design goal is now cheap CORRECTION: keep raw data so numbers are re-derivable, keep artifacts small and committed so a wrong number is one grep from everywhere quoting it, give every number a command. Plus the one rule the new class earns: single source of fact. The original hypothesis is revised rather than confirmed. "A rule that cannot be executed is not a rule" is wrong -- the two most valuable corrections in the project came from a decorative rule that cannot be automated (re-derive inherited numbers). An executable rule fires reliably and catches one class; a decorative one fires unreliably and can catch any class, including unnamed ones. Keep both. Gates this pass: loop-lint caught 3 real violations on first run, then failed on its own author within the hour when a T07 edit pushed InnerLoop.md to 407 lines against its own 400 limit. CB-WP-0003 complete: 11 of 11 tasks done. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:31:19 +02:00
status: done
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
priority: low
state_hub_task_id: "f43de208-92b1-4f0e-9236-a9d27f3ec451"
Add CB-WP-0003: harden the loop from its own review Covers what the immediate CI fixes did not. Framing finding: writing a rule into InnerLoop did not prevent the next instance of the failure it was written for; making it a CI step caught one on its first run. Four instances of the harness-does-nothing class, zero prevented by prose. Working hypothesis: a loop rule that cannot be executed is not a rule. Each item is made executable or deleted, default delete. Phase A makes rules executable: audit every InnerLoop rule as executable/checkable/decorative, extend the positive-control gate beyond benchmarks, and point adversarial review at measurement rather than only research — all four real errors were in measurement and build config, which the review never reads. Phase B is session economics, from measurement: 592 turns, mean context 245k tokens, $0.245/turn in cache reads, zero batched tool calls, cache reads 58% of cost against output at 12%. Cost is turns x context and context grows with turns, so a long session is quadratic. Also replaces the dead 8k/10k token budget, which was never enforced and which T08 exceeded by orders of magnitude with no signal. Phase C removes or fixes the rest: resolve the chaos roll (never fired, and at 1-in-10 will stay unevaluated), require retargeting to be an ADR rather than something the implementer does in the commit that measures the metric, give provisional items an owner and expiry, and strengthen the coverage gate beyond tag-counting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 04:03:29 +02:00
```
Revise CB-WP-0003 from CB-WP-0002's findings The framing hypothesis -- a rule that cannot be executed is not a rule -- survives but was too coarse. CB-WP-0002 corrected one number four times and each correction came from a DIFFERENT mechanism, none finding more than one. Two limits are now measured rather than assumed: - a positive control cannot catch trusted arithmetic (both errors in $248.46 were sums over data that really existed) - adversarial review cannot catch a same-sample blind spot: survey and reviewer both verified dedup on the main transcript, and it is false in the subagent tree neither examined Task-level revisions: T01 also classify each rule by WHICH failure class it catches; seven instances across three classes are now on record T02 scope reduced -- the --self-test contract, cb-cost's five assertions, make cost-test in CI are delivered; remaining work is rule-coverage/dep-weight plus a check that new tools carry one T03 now backed by two measurements ($0.66, $1.11 at ~1% of a pass), and must also state what review CANNOT do T04 premise overturned -- sessions are bounded-quadratic, not quadratic. /compact cut context 27x and cost/turn 3.1x. Measure compaction against a fresh session before prescribing either T05 unblocked, with calibration data ($1.29-$21.02/task) and the constraint that a budget binds only on the 67.5% attribution reaches, only after the closing commit T07 sharpened -- CB-WP-0002 retargeted three times, correctly, so a blanket prohibition is wrong; separate instrument-disproved-target from implementation-missed-target T10 its prediction is already falsified; the successor question is whether class-by-class hardening converges at all T11 NEW -- the price sheet cannot express a dated rate and becomes wrong on 2026-08-31 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:11:08 +02:00
Revise `specs/InnerLoop.md` to v1.2 from this pass.
**The original question is already answered, and the answer was no.**
This task asked whether, after making rules executable, the next error
would still slip through and of what class. CB-WP-0002 ran first and
supplied two data points: the next errors were **not** harness-does-nothing.
They were trusted arithmetic over real data (which a positive control
passes) and a property verified on the large sample and assumed on the
small one (which adversarial review reproduces rather than catches).
So the question for this retrospective is the harder successor:
**is the set of mechanisms now complete, or is each new pass still finding
a new class?** Seven error instances are on record across three classes.
If this pass produces an eighth in a fourth class, the honest conclusion
is that class-by-class hardening does not converge, and the loop should
optimize for *cheap detection and correction* rather than for prevention —
which is a different design.
Record the count either way. A retrospective that reports only what was
fixed, and not whether the fixing is converging, is the same shape of
false assurance this workplan exists to remove.