Skip to content

Agents and bots of the owner meet no hidden person, parent or queue gates - #2385

Merged
TheAnimatrix merged 17 commits into
masterfrom
agent-tools-open
Nov 30, 2026
Merged

TheAnimatrix merged 17 commits into
masterfrom
agent-tools-open

Conversation

@TheAnimatrix

@TheAnimatrix TheAnimatrix commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Person in a tree, hidden tools. No Mousse tool needs a turn a person started any more. The person capability, its provenance reads and its refusal are removed. A subagent that is not read-only now lists and calls what its parent holds: theme and quick-action tools, wakes and reminders, question_ask, secret_request and secret_run, the task tools, dev GUI tools, applets, computer_use_request and report_bug. A native helper's call is no longer refused as "a helper cannot use it". thread_archive works without a person's turn, and a subagent may archive its own thread. thread_fork starts from any thread the agent may read (still not a bot's, and still not a private thread from a shared one).
  • Agent schedules. The first-job Allow / Not now ask, the legacy scheduled.agentJobs switch 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.
  • Automations. The automation tools reach an ordinary chat's agent as well as the Automation manager and bots. Any agent changes or pauses any automation; it no longer has to be named in the person's message. automation_enable turns 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.
  • Approvals and questions. The "Answer approvals on other threads" setting is removed (older clients may still send the key; it is dropped). So are the rules that only the direct parent answers, and that a turn a person started is the person's to answer. Any agent answers another thread's approvals within its own permission mode, and answers plain questions too. A personal bot with "Use your threads" does the same in any owner thread it reaches. Each answer is labelled as coming from that agent or bot, not the user. The request_answer description and the bot instructions say so.
  • Work a webhook started. This is now the one rule that depends on who started a run. If a webhook delivery started a run's task tree, the run is refused schedule_create, schedule_update, schedule_run, automation_enable, computer_use_request, theme_set and create_quick_action. The refusal is not_granted with data.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.
  • Theme. theme_set asks like any edit for theme CSS (external loads are still dropped) and for a wallpaper inside the thread's project folder. A wallpaper from anywhere else still needs Full access.
  • Messages between agents. Work and interrupt reach any thread in the sender's tree, not only from the direct parent. A read-only subagent sends work only to the subagents below it. An agent's message to a thread that is waiting on a question waits in its queue. Every agent's message to a thread paused by a usage limit (including a parent's follow-up to its subagent) waits behind the pause, whichever path sent it; only a person's message ends a pause. A note with interrupt reaches any thread in the tree, and is still refused while that thread waits on a person. A message 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 waiting messages are removed.

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

  • Protections against other people and untrusted input; secrets are never echoed.
  • The explicit bot permission switches and ask cards, and the other-bot turn rule.
  • A request the provider marks for a person only (person_only) is still the person's to answer. "Always for this thread" stays the person's choice.
  • The 12-message chain hold and the two-minute repeat refusal.
  • Job limits (10 jobs, 15-minute minimum, 7-day lifetime) stay as owner settings, and only a person can extend a job past its lifetime. Webhook triggers stay refused.
  • An automation an agent edits stays paused until a person resumes it; only a person pauses until a set time; automation_ask stays with the manager and bots.
  • Notes, steers and queue edits to an archived thread are still refused. steer and stop reach only the sender's own subagents, and thread_update only the direct parent. A subagent of another tree is reached only through its parent.
  • The bot's unanswered-message loop guard, private threads, report_bug's 3 a day, the 300-turn backstop, the device limit and the bot limit on supervised threads.
  • Out of scope here: browser access for schedules, remote and agent messages; remote folder rules and rate caps; the remote-subagent switches; the Codex read-only MCP fallback.

Verification

Run with node scripts/verify.mjs, after merging origin/master 48fecb2 (#2366 and #2379 included):

  • At e90441b, the webhook rule: 58 files, 1681 tests, plus typecheck (node and web). Every test passed except the five below. These are the changed tests plus the tests the two overlapping master PRs touched.
    • Three Computer use settings tests asserted a removed setting. They are fixed at ec2536e (verify: PASS @ ec2536e).
    • Two also fail on origin/master 48fecb2: botThreadParity "reaches a computer that lets agents work there" and codexAdapter "runs a read-only child read-only".
  • At e90441b: 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 with started_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/bots and tests/net/bridge (460 files) were run in full. All of tests/run passed. The failures in tests/bots and tests/net/bridge also fail on master.
No issue

…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
# 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
TheAnimatrix merged commit d9f92fd into master Nov 30, 2026
11 checks passed
@TheAnimatrix
TheAnimatrix deleted the agent-tools-open branch November 30, 2026 02:44
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant