Skip to content

Agents and bots: no caps on monitors or holds, quick actions follow the permission mode, one profiler switch, unreadable settings refused instead of narrowed - #2381

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

Conversation

@TheAnimatrix

@TheAnimatrix TheAnimatrix commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

This is the second of two PRs. The first, #2385, is merged; it covered who holds "person", tools for subagents, schedules, automations, approvals and messages between agents. This branch is rebased on master.

Problem

The owner's own agents and bots still ran into limits nobody chose for them: monitors stopped after 30 minutes and keep_working after 6 hours; create_quick_action asked every time, even in Agent or Full access; the profiler had an "Agents can read the profiler" switch and one switch per tool on top of the Profiler switch; anything unreadable quietly became the narrowest setting (an unknown permission mode ran as Ask, an agent whose mode could not be read answered as Ask, a bot turn whose start could not be read ran read-only); and bots had small hidden refusals: a work run could not pick its own model, only work started from the chat could ask for computer-use setup, bots could not read their own applets, and a work subagent could not show a card or message the owner's other bots.

Change

  • Monitors and keep_working run as long as the agent sets; the defaults (10 and 30 minutes) stay for a call that names no time. They still end when the script exits, the socket closes, the hold is released or the thread is stopped. A limit past one timer's longest delay (about 24.8 days) waits its whole time.
  • create_quick_action is an edit (mousse:quick_action): it runs unasked when the permission mode allows edits and asks through the normal approval card under Ask. Its separate question flow is gone.
  • Profiler: one switch. While it is on, every agent may call every profiler tool; the agent-access switch and the per-tool switches, their settings, rows, search entry and texts are removed. A stored value from an older build is ignored.
  • Unreadable inputs are refused with what could not be read (mousse_unreadable, refused as unavailable), never narrowed: a tool call that would ask when its run's permission mode cannot be read, and an agent's approval answer when its run's or thread's mode cannot be read. A bot turn whose start no build names does not run: it is refused with bot_turn_unreadable, naming its key, trigger and lane, and the chat says so.
  • Bots: a work run may switch its own model for the rest of the run (use_model with now, among the offered models, by full name and entry); changing the rows for good stays the owner's. Any work that holds "use the computer" may ask for computer-use setup. Main turns have read_applet with publish_applet. A work subagent holds show_card and report_bug, and bot_list/bot_send when its work does; its thread resolves to its work.
  • New saved agents and the workflow Main agent run scripts in the workspace with file access, and a run nobody watches skips a change it would ask about instead of stopping (unattendedBehavior: 'skip'). Parsing of existing saved agents is unchanged.
  • Docs: SPEC, tool-api, bots.md and the agent instructions say what changed.

Kept on purpose

  • background_run keeps its 6-hour limit and a bot's watch_start its 360 minutes: not part of this change.
  • The master Profiler switch: sampling costs CPU and disk once a minute while it is on.
  • Saved agents and the workflow Main agent keep the browser off: a host without a browser runtime refuses the whole run of an agent that has it on. Delegation stays at depth 0 and scripts off the network: the runtime refuses any other value.
  • use_model with always from a run, explicit bot permission toggles and ask cards, private threads, secrets handling, report_bug's daily limit.
  • Six tests that fail on master too (Five test files fail on master on Windows (workflow E2E04, agent chat cancel, Bedrock catalog gate, chat approvals, chat checkpoints) #2346) are listed in tests/known-failures.json.

Verification

On c4ae5b1, rebased on master 85e553a:

  • node scripts/verify.mjs <27 files> --typecheck all: verify: PASS @ c4ae5b1. 577 tests ran, and the node and web typechecks found no errors.

  • Before the last rebase, at 3ecc825 on d9f92fd, tests/run, tests/bots, tests/monitors and tests/agentDefinitions were run in full with vitest. One failure came from this branch: a memory-rights row used a turn kind no build names, and such a turn no longer runs. That row is removed at c4ae5b1. Every other failure also fails on master: botThreadParity, codexAdapter read-only child, botMarks, botPageChecks, botAvailableHistory and the memory export.
    An earlier run at e1b49d6, before the rebase, covered 110 files: every test that names a changed tool, setting, default or module (monitors, quick actions, profiler, Labs and settings search, authority and registry, approvals, bot engine, grants, cards, subagents, computer use, applets, agent definitions and workflow agents). What each claim is checked by:

  • Long monitor and hold limits: tests/monitors/threadMonitors.test.ts (500 minutes runs 500 minutes; a 40-day hold ends once, at its time).

  • Quick actions follow the permission mode: tests/run/appToolGates.test.ts (Agent and Full access add unasked; Ask asks with mousse:quick_action; a rejection adds nothing), tests/harness/turnBridgeNever.test.ts, the pinned table in tests/run/toolAuthorityParity.test.ts.

  • One profiler switch: tests/profiler.test.ts, tests/run/botProfilerTools.test.ts, tests/renderer/labsSettings.test.ts.

  • Typed errors: tests/run/mcpToolRegistry.test.ts (unreadable mode refuses, asks nothing), tests/run/approvalRespondDaemon.test.ts (unreadable answering mode refuses; the request stays pending), tests/bots/botTurnKinds.test.ts and tests/run/toolApiContract.test.ts (an unreadable start does not run; chat blocked, run failed with bot_turn_unreadable).

  • Bots: tests/run/botAppTools.test.ts (a run's own model pick, by entry), tests/bots/botModelSlots.test.ts, tests/run/botComputerRequest.test.ts (a scheduled run may ask), tests/bots/botWorkSubagents.test.ts (a subagent holds cards; bot messages follow its work; its thread resolves to its work), tests/bots/botEngine.test.ts.

  • Agent defaults: covered by the agent definition and workflow files above passing with the new defaults. Not tested: a real unattended workflow run skipping an edit.

No issue

… create_quick_action asks only when the permission mode does not allow edits
…d saying what could not be read, never narrowed to Ask or read-only
…se setup in any work, reads its applets, and its subagents show cards and message other bots
…s in the workspace, and a run nobody watches skips a change it would ask about instead of stopping
…l pick changes it; master failures recorded under #2346
@TheAnimatrix
TheAnimatrix changed the base branch from agent-tools-open to master November 30, 2026 02:42
@TheAnimatrix
TheAnimatrix merged commit f875d98 into master Nov 30, 2026
15 checks passed
@TheAnimatrix
TheAnimatrix deleted the agent-tools-open-caps branch November 30, 2026 02:44
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