clay-borg/tools
tegwick 06628e83e1 T05: live cost budget replaces the dead token budget
The 8k/10k per-task token budget was never referenced or enforced and
T08 blew past it silently. Replaced with a budget that can actually
fire.

The design constraint is the interesting part: per-task cost needs the
commit that CLOSES the task, so a per-task budget is unavoidably
retrospective -- it can only report a breach after the money is spent,
which is the dead-policy failure again. What IS observable mid-task is
spend since the last commit, because the transcript is append-live. So
the budget binds on the open remainder.

  CB-01  budget = USD since the last commit, via `make cost-budget`
  CB-02  soft $10.00 (state progress, decide), hard $22.00 (stop)

Calibrated on the 32 non-empty commit intervals of CB-WP-0001: p50
$1.40, p90 $9.36, max $10.80. Soft sits just below the observed maximum
-- it would have fired exactly once on the calibration pass. Hard is ~2x
the observed max, a value never reached in 32 intervals, so reaching it
means the session is doing something the data has no example of.

Both thresholds are set ABOVE every observed value, so they bind on
future work rather than ratifying present work -- the distinction T07
is about.

Stated limit: it is a command, not a daemon. An agent that never runs it
gets no signal, which is the dead-policy failure one level up. Mitigated
only by being free to run and on the one command surface.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 09:21:30 +02:00
..
__pycache__ T05: live cost budget replaces the dead token budget 2026-07-31 09:21:30 +02:00
cb-sim CI: enforce every gate; close the silent-skip holes 2026-07-31 04:02:33 +02:00
cb-cost.py T05: live cost budget replaces the dead token budget 2026-07-31 09:21:30 +02:00
dep-weight.py T01: audit every InnerLoop rule, and make the checkable ones executable 2026-07-31 09:16:00 +02:00
loop-lint.py T01: audit every InnerLoop rule, and make the checkable ones executable 2026-07-31 09:16:00 +02:00
rule-coverage.py T01: audit every InnerLoop rule, and make the checkable ones executable 2026-07-31 09:16:00 +02:00