Repository navigation
Fusion: no fan-out question in auto mode inside the chat's folder (ATO-1689) - #1756
Closed
sosidudku1 wants to merge 3 commits into
Closed
sosidudku1 wants to merge 3 commits into
sosidudku1 wants to merge 3 commits into
Conversation
…O-1689) In auto mode (approval level 2) a normal chat writes inside its folder without asking, but fusion.delegate still asked before every fan-out into that same folder: fusion_fanout only goes quiet at level 4. At levels 2 and 3, a fan-out whose directories all sit inside the chat's working directory now goes through the gate as a workspace write (so saved rules still apply) instead of the fan-out question. Its workers get no fan-out scope, so they run under the standing level like the chat itself: writes in the folder go through, shell commands are refused back to the orchestrator. Outside the folder, after a decline in it, and at level 1 the question is asked as before.
…content (ATO-1689) Review follow-ups. A quiet fan-out still asks when the contract has checks or provide examples (they run commands with no gate of their own), after a worker was refused a command under a quiet fan-out this turn, and when the chat read outside content. A worker's refused command under a quiet fan-out gets its own refusal text and makes the next fan-out of the turn ask once; the worker brief no longer promises commands it cannot run. Split children's checks are reported as not run under a quiet fan-out.
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.
Fixes ATO-1689, reported in Discord on 21.11: in auto mode Fusion asked for permission to work in the folder the chat was already working in. A normal chat in auto mode does not ask.
Cause
Auto mode sets the approval level to 2, where writes inside the working directory stop asking. The one question
fusion.delegateasks before its workers start uses thefusion_fanoutcategory, which only goes quiet at level 4. So at levels 2 and 3 every fan-out asked, and since that answer is never granted for the session, every new turn asked again.Fix
fs_write_workspace), so saved deny and ask rules onfusion.delegatekeep working.FUSION_WORKER_COMMAND_NOT_ASKED_REFUSED, stillneeds_orchestrator), and the next fan-out of the turn asks the question once, as before. That yes covers commands, so tasks that need the build or the tests still work in auto mode after one question. The worker brief says this instead of promising commands it cannot run.agent.taintReviewon (its fresh worker sessions would not be held the way the chat is);Tests
src/tools/fusion/fusion-delegate.test.ts, "fusion.delegate in auto mode (ATO-1689)", with a realApprovalGate:fanoutQuietUnderLevelunit cases including/repo-backupand/repo/../etc.Verification
Reviewer, skeptic (attacking for anything a normal auto-mode chat would ask about) and a refuter per major finding, two rounds. Confirmed and fixed: contract checks running commands unasked, a tainted orchestrator launching untainted workers at level 3, workers' refused commands looping because the orchestrator cannot run them. Fixed after round two: a refused move to the Trash looped the same way. Not fixed (low, adds a refusal, never an unasked action):
subagent.runclears the turn grant and with it the "a command was refused" note, so one extra quiet fan-out can be refused once more. Nothing was run locally; CI runs the tests.Out of scope:
subagent.runasks the samefusion_fanoutquestion and shows the same behavior in auto mode.