VB-1617: Evaluate the adaptive context reset: keep, adjust or abandon it
Status: blocked
Waits for: Kim
Priority: 3
Size: S
Design ref: backlog/VB-1616.md, Evaluation; docs/review-agent-workflow.md, section 10; docs/agents/changes.md (the row of VB-1616 starts the period)
Goal: The adaptive context reset (VB-1616) is kept, adjusted once, or abandoned, on the evidence of its period against the ceiling’s, by the rules VB-1616 set before it was enabled: the computational efficiency and the implementation quality judged apart.
Acceptance criteria:
Population: the tasks with a run whose context reached T (“eligible”), in both periods, stratified by size, model and run kind. The other tasks are checked for no change, since the intervention should not touch them. Eligibility is decided by context reached, the same rule in both periods, never by the outcome.
Sample: at least 15 done eligible tasks in each period, or 4 weeks after enabling, whichever comes later. With fewer, report what there is and wait.
Computational efficiency: weighted cost per done eligible task, summed over its runs; input, output, cache-write and cache-read tokens; calls; active minutes; repeated reads; and the overhead (handover bytes, reconstruction tokens, the orchestrator’s calls).
Implementation quality: done at the first attempt (not needs-review); criteria ticked; merges undone for a red check; PR check failures traced to the task; reopened within 7 days (VB-1615’s proxy); failure streaks of tests.
Each is reported with its median, quartiles and n by period and stratum, kept apart: a claim about quality rests on the quality measures only.
Retain: the eligible tasks’ median weighted cost falls by 10% or more, the cost of a done task over all tasks does not rise, and no quality measure gets worse beyond the spread between periods (the done share does not fall by more than 0.1; no more merges undone or reopened tasks per task). Or quality is clearly better at the same cost.
Adjust, once, as a new logged period: if cost is within ±10% and the overhead is more than half the saving, raise T or shorten the handover. If the resets are mostly stuck and those tasks fare better, keep stuck and drop boundary, or the reverse.
Abandon: if the eligible tasks’ cost rises by more than 5%, any quality measure gets worse, the period sees fewer than 5 voluntary resets (the reset is inert), or a task resets twice without a new criterion ticked. Abandoning reverts the lines in vb-task.md, AGENTS.md and inbox.js, and a row in the log ends the period.
The commands: node tools/agent-usage.js --history docs/agents/usage --periods docs/agents/changes.md --eligible (the eligible tasks), the same with --ineligible (the others, which should not change), and --from the ceiling’s row for the period before; the numbers in the PR, by period and stratum, with n.
The decision written in docs/review-agent-workflow.md as a section of its own, and in docs/agents/changes.md as a row when it adjusts or ends the period.
Notes:
24 Nov 2026 (VB-1616): opened when the reset was enabled. Kim sets it ready once the sample is in. The baseline, the ceiling’s period: about 46 eligible tasks (peak context 160k or more) since 18 Nov, nearly all single-task sessions on Opus (--eligible --from 2026-11-18T19:41Z). The usage files from before VB-1615 lack repeats, tests and the context’s curve: compare those only within the reset’s period, or against runs measured after VB-1615.