Skip to content

fix(ship-budget): per-reader drift at each reader's return; ignore stale prior readings; segment-only handoff brief (GSTA-167) - #3627

Closed
garrytan wants to merge 1 commit into
gsta-167-handoff-floorfrom
gsta-167-budget-drift
Closed

garrytan wants to merge 1 commit into
gsta-167-handoff-floorfrom
gsta-167-budget-drift

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Stacked on #3620. Part of GSTA-167 / GST-134. Draft: it folds into one PR with #3625 once #3620 and #3621 land, so /ship runs once.

What changed

  • Reviewer drift is per reader, measured at each reader's return (check --returned, settle --reading); --finish or a step change settles with UNMEASURED: and teaches nothing. A step's sample excludes the dispatches inside it, so the parent's own calls stay with the step. The budget section asks for one role per DISPATCH: line.
  • A --prior-reading older than the run's last reading is ignored (CALL_UNKNOWN:, call=unknown), and the meter read happens inside the budget command's own program, never as its own call.
  • A handoff brief names only its segment's sections and never preamble.md in full or docs/ship-budget.md.

Why

Replays on gstack-evals #36 and #34: a six-reader batch taught a 2.041 factor and priced the Red Team at 15.17M (false STOP, 14.4M of sub-cap unused); a Red Team interval covering the child's own review taught 1.818; a six-call-old prior reading produced call=1068386 and a false CONTEXT_HIGH; the child made 11 meter-only calls at ~286k each.

Tests

test/ship-budget-reader-drift.test.ts, test/ship-handoff-brief.test.ts (13 new, 11 failed first). Two old-measurement assertions in ship-budget-projection.test.ts and one settle in ship-budget.test.ts move to the new measurement contract.

Open in Capy

…stale prior readings ignored; segment-only handoff brief (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Superseded by #3633 (combined with #3625 on main).

@capy-ai capy-ai Bot closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant