Say what resuming a run's lead is likely to cost, before it is spent - #116
Merged
Merged
Conversation
Run 20260923-1216-be60 was resumed at 109.47 of a 120 budget, and its lead spent 15.08 in one turn of 14 exchanges: a long session carries its whole conversation into every exchange. The budget is checked between rounds, and a turn that crosses it finishes, because stopping a node mid-turn loses what was paid for; checking more often would not have caught one turn. Nothing said beforehand that this was likely. team resume now says, where the lead resumes its own session, what its last turn cost and over how many exchanges, and warns when that is more than the budget has left, or when the budget is already spent. A fresh lead gets no figure: it starts small and the old conversation's cost would overstate it. The dashboard's resume runs the same command, and --dry-run shows it too. The budget check itself is unchanged. Tests: ResumeCostTests, five cases including the be60 figures. Mutation-checked: counting every node's turns, warning against the whole budget rather than what is left, and giving a fresh lead a figure each fail a test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
team resumenow says what the lead's next turn is likely to cost, before anything is spent.Why
Run 20260923-1216-be60 was resumed at $109.47 of a $120 budget, and its lead spent $15.08 in one turn of 14 exchanges. A long session carries its whole conversation into every exchange. The budget is checked between rounds, and a turn that crosses it finishes: stopping a node mid-turn loses what was already paid for. Checking more often would not have caught a single turn. Nothing said beforehand that this was likely.
What it does
team resumeprints what its last turn cost and over how many exchanges.--dry-runshows the line too.Against the real be60 run,
team resume --dry-runnow prints:Evidence
ResumeCostTests: five cases, including the be60 figures ($15.08 against $10.53 left).