Repository navigation
Fusion: send each worker's brief and model note on its started event (ATO-1754) - #1757
Closed
sosidudku1 wants to merge 2 commits into
Closed
sosidudku1 wants to merge 2 commits into
sosidudku1 wants to merge 2 commits into
Conversation
A worker's started event now carries the message its turn was started with (clipped at 40,000 chars) and, when the task asked for a role or model it did not get, the reason. The SSE and AG-UI frames forward both; the TUI started line prints the reason. Refs ATO-1754
Collaborator
Author
|
Merged into |
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.
Why
Discord (guxar, 21.11; kerry6312, 23.11): Fusion workers are a black box. There is no way to see what the orchestrator actually told a worker, and when a task lands on a different model than the role asked for, that only shows up in the orchestrator's final tool result.
What
fusion_workerwithphase: "started"now carriesbrief: the exact message the worker's turn was started with (renderWorkerBriefplus any suffix), clipped at 40,000 chars with a line saying so.modelNotewhen the task did not run on the model it asked for (TaskLeg.note: a role with no model configured, or a second local model this machine is not marked to hold). Wired fromfusion.delegatethrough a new optional runner optiontaskModelNote.briefandmodel_note; the AG-UI custom event asbriefandmodelNote. Empty values are not sent.» worker api · qwen: started (role review has no model configured; ran on the workers' model qwen).Nothing else changes: an agent run without roles sends no note, and hosts that ignore the new fields see the same frames as before.
Desktop side: a separate PR on
rel/xp-buildshows the brief under the worker's started line.Tests
worker-runner.test.ts: the started event'sbriefequals the message the worker turn got (suffix included); the note is present only for the task that has one; the clip keeps a brief at the cap and cuts one past it.stream-fusion-worker-frame.test.ts: SSE forwardsbrief/model_note, and drops empty ones.format-fusion-worker-line.test.ts: the started line with a note.Refs ATO-1754
Verification