Skip to content

Decision: which policy switches should govern files and code in task runs on the shared engine? (Chat tools governs chat only) #4878

Open

Description

@yannickmonney

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)

  1. 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.
  2. Extend chat_tools to cover task runs on the engine (reword the section, keep the file name or migrate it).
  3. A sibling policy for task runs on the engine: files, skills, code, default on.
  4. Per-agent switches in the agent's equipment, like tool grants, so a project can allow or deny work tools per agent.
  5. 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_code in 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

  1. added
    needs discussion
    improvement
    service: platform
    on Oct 12, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    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.

    • Every chat turn follows Chat tools, including a chat that answers as a project agent.
    • A task run offers the same capabilities on either engine, shared engine or worker. Today that means files, code, the agent's equipped skills, and images under Image generation.
    • On tasks, an admin controls agent work with the Standard agent policy (on/off, runtime and model pins) under Governance > Models, and with each agent's equipment and tool grants.
    • The standard agent is on by default, and any member who can open a project can start it. Turning it off is the way to stop member-started code on tasks, and the app and docs will say so.

    Answers

    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_code there 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

    1. Spec and guard (S, main).
      • A new task rule (TASK-R87): a task run's tools do not depend on the engine that serves it or on the Chat tools policy.
      • CHAT-R18 is extended to say that Chat tools covers chat turns only.
      • A test in 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.
    2. Copy and docs (S, main).
      • The Chat tools description and Code hint in en, de, de-CH and fr say that task runs are not affected, that members can still have the standard agent run code on tasks, and that turning it off under Governance > Models stops this (with a link).
      • Update policies-and-limits.md, sandboxes.md and the standard-agent section of content-models.md in en, de and fr.
      • Add a manual-test box for the scope note and the link, and update the editor test.

    Cross-issue amendments (decisions taken together with #4879, #5374, #5046, #5136):

  3. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions