Repository navigation
Agents and bots of the owner meet no hidden person, parent or queue gates - #2385
Merged
Merged
Conversation
…capability is gone Subagents now list and call the theme and quick-action tools, wakes, question_ask, secret_request, secret_run, the task tools, dev GUI tools, applets, computer_use_request and report_bug. thread_archive no longer needs a turn a person started, and a subagent may archive its own thread. thread_fork starts from any thread the agent may read. No Mousse tool needs a turn a person started any more, so the person capability, its provenance reads and its refusal are removed.
…ithout a first ask The first-job Allow / Not now ask, the legacy scheduled.agentJobs switch and its inbox card are gone. Creating, starting and changing a job no longer needs a turn a person started. Agents may set the permission mode up to their own, a project, a saved agent, a thread per run, a workflow prompt, an existing worktree, resume and re-enable a job and change its number of runs. Every agent sees and changes every job of the profile, a person's too; a bot still sees its own. The job limits stay the owner's settings, and webhook triggers stay refused.
…on automations The automation tools reach an ordinary chat's agent as well as the Automation manager and bots, and an agent changes or pauses any automation, not only one the person's message names. automation_enable turns a draft on for any agent, no wider than its own thread's mode; a bot still turns on only the drafts it wrote, under its grant.
…stions within its own mode The Answer approvals on other threads switch is gone, with the rules that only a subagent's direct parent answers it and that a turn a person started is theirs to answer. An agent, or a personal bot with Use your threads, answers any other thread's approval within its own permission mode, and its plain questions, labelled as its answer. A request the provider keeps for a person, and Always for this thread, stay the person's.
…ike any edit theme_set no longer needs Full access for theme CSS (external loads are still dropped) or for a wallpaper inside the thread's project folder, which the agent can already read. A wallpaper from anywhere else still asks unless the run is in Full access. A read-only subagent sends work only to the subagents below it.
…ages queue instead of being refused Work and interrupt reach any thread of the sender's family, not only from the direct parent. A message an agent sends to a thread that waits on the person's answer, or is paused by a usage limit, waits in its queue; one to an archived thread unarchives it, as a person's message does. The per-sender and per-thread queue caps (3 and 10) and the cap on a bot's unread messages from a thread are gone. The 12-message chain hold and the two-minute repeat refusal stay.
… a parent's follow-up to its subagent included The Run Engine holds any message an agent sent (a thread's agent, a bot, a queued agent message, a parent's follow-up to its subagent) behind a usage-limit pause, whichever path sent it, so it never ends the pause. Only a person's message ends one. A follow-up from a parent on another computer is still refused while paused, and that computer keeps it.
…amily A note with interrupt now restarts the running reply of any thread in the sender's tree, a sibling or a parent that is itself a subagent included, as the tool description says. It is still refused while that thread waits on a person.
Tests that only asserted a removed gate (queue caps, the answer-approvals switch, person-started turns, parent-only answers) are deleted; the rest now expect agents' messages to queue behind questions, pauses and archives, any agent to answer within its mode, and subagents to hold what their parent holds.
# Conflicts: # src/mms/protocol/handlers.ts
…e removed approvals switch
… the removed gates
# Conflicts: # docs/plans/tool-api.md # src/mms/orchestrator/OrchestratorService.ts # src/mms/protocol/validators.ts # src/mms/run/mcp/appTools/authority.ts # src/mms/run/mcp/instructions.ts # src/renderer/components/automations/inbox/AutomationsInbox.tsx # src/renderer/components/settings/AgentAccessSettings.tsx # src/shared/settings.ts # tests/agentAccessSettings.test.ts # tests/renderer/agentAccessSettingsScreen.test.ts # tests/run/approvalRights.test.ts # tests/run/delegationGuidance.test.ts
A run whose task tree a webhook delivery started, followed through its subagents, wakes, continuations and the chain of agent messages back to the top, is refused schedule_create, schedule_update, schedule_run, automation_enable, computer_use_request, theme_set and create_quick_action (not_granted, reason started_by_webhook): its payload comes from outside. A top that cannot be read counts as a webhook's. A plain scheduled run and everything else stay open.
TheAnimatrix
added a commit
that referenced
this pull request
Nov 30, 2026
…ools test(automations): an ordinary chat's agent lists the automation tools, as #2385 made it
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.
Problem
The owner's own agents ran into gates meant for strangers. A subagent did not see tools its parent held. Some tools refused unless a person had started the turn. Agent jobs needed a first-job Allow. Automations reached only the manager thread. Approvals and questions on other threads were limited to the direct parent, behind a setting. Messages inside a tree were refused when the target was paused, waiting on a question or archived, or when a queue cap was hit.
Change
scheduled.agentJobsswitch and its inbox card are removed. Agents create, start and change any job of the profile. They can set the permission mode up to their own, plus the project, saved agent, a thread per run, workflow prompt, existing worktree, resume, re-enable and number of runs. A bot still sees only its own jobs.automation_enableturns a draft on for any agent, no wider than that agent's own thread mode. A bot still turns on only drafts it wrote, under its grant.schedule_create,schedule_update,schedule_run,automation_enable,computer_use_request,theme_setandcreate_quick_action. The refusal isnot_grantedwithdata.reason: started_by_webhook. The tree is traced back through subagents, wakes, continuations and the chain of agent messages. A start that cannot be read counts as a webhook. A plain scheduled run, and everything else, stays open.The second part (caps, profiler, typed errors, implicit bot gates, saved agents and the workflow Main agent) is #2381, which stacks on this one.
Kept on purpose
person_only) is still the person's to answer. "Always for this thread" stays the person's choice.Verification
Run with
node scripts/verify.mjs, after merging origin/master 48fecb2 (#2366 and #2379 included):verify: PASS @ ec2536e).botThreadParity"reaches a computer that lets agents work there" andcodexAdapter"runs a read-only child read-only".verify: PASS @ e90441b. These are 10 daemon files with 482 tests: approvals, queue edits, thread actions, bot threads and supervision, usage-limit pause, scheduled turns, jobs and webhooks, and remote thread tools.tests/run/webhookRootedTools.test.ts(new) checks three things. A webhook's run, its subagent and its agent's message to another thread are refused withstarted_by_webhook, and the run keeps its other tools. A plain scheduled run is allowed. A person's run is allowed.Before the merge,
tests/run,tests/botsandtests/net/bridge(460 files) were run in full. All oftests/runpassed. The failures intests/botsandtests/net/bridgealso fail on master.No issue