Repository navigation
Description
Summary
An admin can switch off the chat assistant's files, skills and code under Governance › Policies & Limits › Chat tools. A task run on the shared engine, started when a person starts the standard agent, is offered the same tools, and that policy does not apply to it: create_file and run_code are always offered, load_skill follows the agent's equipped skills, and generate_image follows the image generation policy. The docs say so ("that setting governs the chat assistant only"). This issue lists what an admin can and cannot switch on each surface so the team can decide whether the policy should cover task runs. It proposes nothing.
Part of #4879.
What an admin can switch today
| Capability | Chat reply | Task run on the shared engine | Task run in a worker (harness) |
|---|---|---|---|
files (create_file) |
Chat tools › Files | always offered (backend/domains/tasks/native-work-tools.ts:166-172, createFile: true) |
no such tool |
| skills | Chat tools › Skills | the agent's equipped skills that its project can reach | the agent's equipment, staged as files |
code (run_code, light sandbox) |
Chat tools › Code | always offered (runCode: true) |
the agent's own shell; no switch |
images (generate_image) |
Image generation policy | Image generation policy | Image generation policy, and a model must resolve |
| light sandboxes at once | Light sandboxes limit (maxLightSessionsPerOrg, 1 to 500; there is no 0) |
the same limit | not used |
| whether the standard agent runs at all | Standard agent policy (on or off, pins) | the same policy |
The chat_tools policy is read in one place, readChatToolSwitches (backend/domains/chat/work-tools.ts:70), for the chat lane only.
What the app says: "What the chat assistant may make besides its answers. A tool you switch off is gone from every chat in the organization." (services/platform/messages/en/governance.yml:605-610).
What the docs say: "Chat tools decides what the chat assistant may make besides its answers. Each switch removes its tool from every chat in your organization" (docs/en/platform/admin/governance/policies-and-limits.md:88); "that setting governs the chat assistant only" (docs/en/platform/admin/sandboxes.md:42), on the page that also says "The standard agent does the same when a person starts it on a task".
A scenario
An admin who wants no code run by AI features turns Code off under Chat tools. A member then starts the standard agent on a task. The run can still call run_code in a light sandbox and write files. Turning the standard agent off stops those runs; the light sandbox limit cannot go below 1; pinning a runtime moves the runs to a worker, where the agent has its own shell. A person-created agent in a worker runs code by design, whatever the policy says.
Why the current split might be intended
- Chat tools was introduced with chat making files; a task agent is configured per agent by project editors and admins, and its job is to do work.
- A worker agent has a full shell regardless; a switch for the light tier alone would not stop code in tasks.
- The policy is named
chat_tools, and the docs state its scope.
Options (not exhaustive, no preference stated)
- Keep it. The section already speaks of the chat assistant and "every chat", and the sandboxes page says task runs are not covered. The question is whether that is enough for an admin who switches Code off.
- Extend
chat_toolsto cover task runs on the engine (reword the section, keep the file name or migrate it). - A sibling policy for task runs on the engine: files, skills, code, default on.
- Per-agent switches in the agent's equipment, like tool grants, so a project can allow or deny work tools per agent.
- One switch for the light sandbox shared by chat and tasks, independent of the tool list.
Questions
- Should switching Code off in Chat tools also stop
run_codein task runs on the engine? - Do admins expect these switches to cover AI-driven code in general, including worker runs, where the shell is the point?
- Where should the setting live so an admin finds it: Policies & Limits, or Sandboxes?
Related
#4817 (the policy), #4844 (task runs on the engine), #4876, #4875, #4870 and #4871 (what a light sandbox can reach and write).
Observed at main a83e645e27.
Activity
yannickmonney commentedon Nov 14, 2026
Decision
Chat tools stays a chat policy. A tool switch belongs to the surface an admin sees (a chat or a task), never to the engine that happens to serve it.
Answers
run_codein task runs on the engine? No.run_code, a native run can hand over to a full worker with a shell, which is more power, not less.Rationale
If the switch followed the engine, it would hold only some of the time. Whether a run goes native or to a worker depends on the model, the pins and who started it, none of which the admin sees. It would also change meaning every time routing widens (#4876), and removing
run_codethere can send the run to a full worker. Keying policy by surface keeps the meaning stable.The cost is that the lever on tasks is coarse. Members can start the standard agent, so stopping their code on tasks means turning the standard agent off, and that also removes agent work from projects without agents. Every finer lever on the engine fails in a worker run, so the fix is to make this explicit: in the copy, in a written rule in both specs, in the standard-agent docs, and in a guard test.
Implementation
native-work-tools.test.ts: with every Chat tools switch off, or with an unreadable policy, a native run still offers files, code and its equipped skills.policies-and-limits.md,sandboxes.mdand the standard-agent section ofcontent-models.mdin en, de and fr.Cross-issue amendments (decisions taken together with #4879, #5374, #5046, #5136):