Repository navigation
test(fusion): pin the spend cap reason when the cap also stops the turn - #1190
Closed
sosidudku1 wants to merge 1 commit into
Closed
sosidudku1 wants to merge 1 commit into
sosidudku1 wants to merge 1 commit into
Conversation
…ignal The pool asks the cap before the stop signal. A cap that aborts the same signal must still leave rows naming the cap, not a stop.
Collaborator
Author
sheepdogs
pushed a commit
to sheepdogs/atomic-agent
that referenced
this pull request
Nov 12, 2026
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.
Linear: ATO-1420 (item 2). Stacked on #1139.
#1139 fixed the order "spend cap first, then the stop signal" in
worker-runner.ts, but no test pinned it. This adds one test insrc/tools/fusion/worker-runner.test.ts: the first worker reaches the spend cap and aborts the turn's signal (asstopForBudgetdoes). The tasks that never started must saynot started: the spend cap for this turn is reached, not "the turn was stopped". If the signal is read first again, the test fails.Test only, no product change.
Checked on the second Mac on 12.11.2026 in the combined run with the other open PRs: build, lint, test types, vitest, desktop unit tests, desktop smoke and live smoke all green.