Skip to content

Decision: should chat start a full workspace itself, or keep handing long and repository work over to a task? #4877

Open

Description

@yannickmonney

Summary

Chat offers two of the three tiers an agent can use: no sandbox (an answer, create_file, generate_image, skills) and a light sandbox (run_code). Work that needs a full workspace, such as a repository, a browser session or hours of work, is handed over to a task: the assistant tells the person how to create and start one. The third tier is reachable from chat only through the person's own steps. This issue collects the evidence and the options so the team can decide whether chat should start the full workspace itself. It proposes no design.

Part of #4879.

Where the question comes from

The original ask for chat work tools was that the assistant decides between no sandbox, a light sandbox and a full sandbox. #4817 delivered the first two and a hand-over for the third (its table: "full | hand-over to a project task (existing standard agent / project agents)"). On the product side #2877 set the boundary "chat asks and retrieves; deliverables live on tasks; fixed processes live in automations"; #4817 widened it to chat making files and running code, and kept tasks as the home of long work.

What exists

  • Light tier. run_code in a default-profile sandbox: one per conversation, at most 180 s per call, removed after 5 idle minutes, at most 10 attached files (backend/domains/agent_tools/run-code.ts).
  • Full tier from a task. A task run on the shared engine can call use_workspace, which records the request and moves the run to the harness with a reason and a brief (agent_tools/use-workspace.ts; moveRunToHarnessInTx, backend/domains/tasks/native-runs.ts:127). It is a port: WorkToolScope.escalation decides what a hand-over does, and a lane without one answers "There is no full workspace to hand this to".
  • From chat. WorkLoadout.escalate is for "a task's turn, which has a coding agent to hand it to. A chat has none" (lib/agent/ladder.ts:23-26). The persona says to make files with the tools and to hand work to a task "only when it needs an owner and a review, or more than a reply can do — a repository, a browser session, hours of work", giving "the steps exactly as the hand-over note below states" (lib/chat/assistant.ts:72-73). The note is built per person, with the interface's own control names: which projects have agents, whether the standard agent takes work, whether they can add an agent (lib/chat/handover.ts). The chat header has a create-task action (app/features/chat/components/create-task-from-chat.tsx). The docs say: "Work on a repository, in a browser session, or lasting hours → Suggests a project task" (docs/en/platform/chat/files-and-skills.md:20).

What the evaluation showed

#4817 tested the tier choice on 40 prompts with two models. Both chose correctly for all 24 no-sandbox and all 13 light requests. Three prompts were classed as needing the full tier; all three were completed inside the light sandbox: "small React app with tests, zipped" was built, tested (19 / 8 passing) and zipped there in 50 to 80 seconds. For those three the light tier was enough. The corpus is small and has no repository clone, no browser session and no multi-hour job.

What bounds a chat turn

  • At most 12 tool rounds per reply (MAX_WORK_TOOL_ROUNDS, lib/chat/turn.ts:121), at most 16 distinct tool calls and 5 minutes per round (lib/chat/tool-batch.ts).
  • A liveness heartbeat the watchdog sweeps after 10 minutes (CHAT_GENERATION_STALE_MS, backend/domains/chat/watchdogs.ts).
  • A task run on the shared engine is itself one job with a 1-hour expiry (backend/jobs/tasks.ts); longer work moves to the harness.

Hours of work therefore cannot live inside a chat turn. A path from chat to the full tier needs a durable run that outlives the turn.

What a full workspace carries that chat does not

  • An identity and equipment: a project agent with its tool grants, connectors, secrets, skills and instructions, inside a project.
  • A persistent workspace, a coding-agent harness, egress and, optionally, Docker.
  • Ownership and review: a task has an owner, status, comments, deliverables and review gates.
  • Its own budget and concurrency: worker slots and a per-agent session.

Options (not exhaustive, no preference stated)

  1. Keep the hand-over and improve it. The assistant prepares the brief and the person confirms with one action.
  2. A chat tool that creates a task and starts the standard agent on the person's behalf, with a confirmation in the thread and the result coming back as a message or card. The run is an ordinary task run: native first, hand-over when needed. The escalation port above is where it would plug in.
  3. Let the chat thread own a harness run. Agent-backed chats were dropped with feat(platform)!: chat = ask/retrieve — the Chat·Task·Automation boundary model #2877 (chat turns no longer accept agentSlug); this would reverse that boundary.
  4. Add no path. Widen what the light tier can do (longer calls, more capacity) and keep full-workspace work in tasks.

Questions

  • Is "chat asks, tasks deliver long work" still the intended boundary now that chat makes files and runs code?
  • When the assistant hands over, how much should the platform do for the person: prepare the task, pick the agent, start it?
  • Must the result return into the conversation, or is the task page enough?

Related

#2877 (the boundary), #4817, #4844, #4876, #4878.

Observed at main a83e645e27.

Activity

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

    @yannickmonney
    ContributorAuthor

    Since #5361 (train 8d37319dc, not yet on main), a chat filed in a project can answer as one of the project's agents. It runs on the chat engine with the agent's instructions, skills and model; the agent's runtime, connectors, secrets and repository access stay on its tasks (CHAT-R41).

    #5361 left out @agent mentions that would hand one message of a chat to the agent's runtime, as task comments do (its option 4). That would be one more form of options 2 and 3 here.

  3. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    A chat never runs a full workspace itself. The assistant proposes a task on a card, and one click from the chat's owner creates it and starts the agent. This is option 2, built on the proposal card that already exists for projects and agents (CHAT-R44).

    The rule

    • A new app-only tool, propose_task, drafts a task from the whole conversation:
      • the project, the assignee and a title;
      • a brief the model writes, which has to make sense without the chat;
      • files from this conversation only: the owner's uploads and the files the assistant made.
    • The draft is checked as the person and stored as a create_task proposal. Nothing is created until the chat's owner selects Apply.
    • Apply checks everything again as that person. It then creates the task, linked to this chat, and starts its agent through the same path as the Create task dialog. A proposal makes at most one task, whether through Apply or through Edit in dialog. The audit rows say the change came from the chat.
    • The card says the task will be visible to the project's members. It also offers Edit in dialog (opens the Create task dialog with the draft filled in) and Dismiss.
    • How the assignee is picked, in order:
      1. an agent of the project the assistant names, when the chat's agent does not fit the work;
      2. otherwise the chat's agent;
      3. otherwise the project's only agent;
      4. otherwise the standard agent, where the Standard agent policy allows it;
      5. otherwise nobody, and the card says the task will go unassigned.
    • The Apply button reads Create task instead of Create and start when task automation is off or there is no agent.
    • The run is an ordinary task run. The rules in Decision: which task runs should start on the shared engine, beyond a person starting the standard agent? #4876 decide whether it starts native or on a harness.
    • Chats keep escalate off and are not offered use_workspace. There are no @agent mentions.
    • The tool is offered only in the app, only to the owner, and only to someone who may create tasks in a project the chat can reach. In a chat filed in a project it targets that project only. It is never offered on API sends or to readers of a shared chat. Whether Governance can turn it off belongs to Decision: should Governance be able to turn off the chat's project and agent proposals? #5379.

    Answers

    • Is "chat asks, tasks deliver long work" still the boundary? Yes, stated more precisely. A chat answers and makes whatever fits in one turn. Work that needs a full workspace, an owner and a review, or more time than a turn lives on a task. A chat never owns a harness run, so the line drawn in feat(platform)!: chat = ask/retrieve — the Chat·Task·Automation boundary model #2877 stands.
    • How much should the platform do on a hand-over? All of it: prepare the task, pick the agent and start it. Starting always waits for the owner's click, and the person can edit everything in the dialog first.
    • Must the result come back into the conversation? No. The task page keeps the deliverables and the review. The chat's existing task tray shows progress, failures, "ready for review" and the number of delivered files, and the notifications fire as they do today.

    Why
    An agent's full workspace carries its equipment, which makes a model-initiated start a prompt-injection target. The proposal card already answers this risk: the model only drafts, the person sees the brief word for word, only the owner can apply, and Apply re-checks everything through the page's own service. Running the work as an ordinary task run keeps budgets, worker slots, review and escalation in one place. Today's image would show an unknown proposal kind as an empty card whose Apply fails, so a release that only teaches the reader to skip unknown kinds goes first. The tool is turned on only once the card and the persona ship.

    Implementation units (base main)

    1. Tolerant reader (S). Unknown proposal kinds are left out of the cards, and Apply or Dismiss on them is refused. Ships in a release before unit 2.
    2. Backend (L). The create_task kind, the propose_task tool (not yet offered), assignee choice, an Apply that creates and starts once, the dialog's create accepting the proposal in the same transaction, refusal when something changed, audit rows via: chat, and spec rules CHAT-R51 and up.
    3. Card UI (M). Create and start / Create task, Edit in dialog, Dismiss, the visibility line, en/de/fr strings, accessibility and manual boxes.
    4. Offer, persona, ladder and docs (M). The tool is turned on and the assistant proposes instead of reciting steps. The docs are updated in three locales, the tier evaluation is re-run with full-tier and prompt-injection prompts, and an end-to-end test runs from the card to the tray row.

    Related: #4879, #4876, #4878, #5357 (the Create task dialog still needs its own fix), #5361, #5363, #5365, #5379.

    Cross-issue amendments (decisions taken together with #4879, #5365, #5411, #5379):

  4. 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