Repository navigation
Description
Summary
#4817 (2026-10-12) made a chat able to make the file a person asks for: text files it writes itself, and Word, Excel, PowerPoint and PDF files or charts by running code in a light sandbox, shown as cards under the reply. It was reported on 2026-10-13 that this does not work as expected.
The concrete symptoms were not captured when this was filed: what was asked, which model answered, what the reply said, whether a step failed. This issue records what main promises, how the feature can be absent or fail without telling the person, what tests cover and what they leave to a manual round, and a checklist that narrows a failure down. It proposes no fix. Whoever reproduces it is asked to add the symptoms below.
What is promised
| Where | What it says |
|---|---|
| Docs | A table of what the assistant does per request: a Word, Excel, PowerPoint or PDF file, a chart or a calculation "Runs code in a light sandbox"; a Markdown, CSV, JSON, HTML or SVG file it "Writes … itself". docs/en/platform/chat/files-and-skills.md:6, :12-22 |
| Spec | CHAT-R18 to CHAT-R27: the tools a turn is offered, where a made file belongs, revisions, skills, limits. services/platform/backend/domains/chat/spec.md:222-331 |
| Manual suite | CHAT-F66 to CHAT-F72 (a CSV, a spreadsheet from the light sandbox, "the lightest way that does the job", a skill, a changed attachment, Stop) and CHAT-B22, CHAT-B23 (Code switched off, every light sandbox busy). services/platform/tests/manual/suites/chat.md:699-747, :922-934 |
| Defaults | The seeded Chat tools policy has files, skills and code all on; the light-sandbox budget is maxLightSessionsPerOrg: 2. configs/platform/custom/governance/chat-tools.yml, sandbox-quota.yml |
What a person gets when the work tools are absent
Whether the work tools were built decides the persona (backend/core/chat/turn_action.ts:1448-1454). Without them the assistant is the pre-#4817 persona (lib/chat/assistant.ts:99), whose rule says: "DELIVERABLES GO TO TASKS — chat does not produce files or run long jobs. When the user asks for a deliverable — a presentation, a translated document, an image, an export — first give what fits in a reply … Then say the file is task work for a project agent" (assistant.ts:69-70).
So a chat that lost its tools answers a request for a document the way chat did before #4817, and the reply gives no sign that the tools are missing.
Where the tools can be missing or fail, and what is recorded
| Where | Condition | What is recorded, and for whom |
|---|---|---|
backend/domains/chat/work-tools.ts:101 |
The organization slug or the member cannot be resolved | Nothing: the turn runs without work tools |
work-tools.ts:70-88 |
The chat_tools policy file exists and cannot be read (configuration root unset or unreadable, parse error): all three switches go off |
A server console.warn. Governance names the problem to an admin (CHAT-R26, spec.md:315); the person chatting sees nothing |
backend/core/chat/turn_action.ts:1262-1277 |
Building the tools throws | A server console.error: "work tools for thread … could not be set up; the turn runs without them" |
backend/domains/agent_tools/skills.ts:63-77 |
The skill library cannot be listed | A server console.warn; the model is shown no skill list |
backend/domains/agent_tools/run-code.ts:379-385 |
All light sandboxes of the organization are in use (budget 2 by default; a chat does not wait) | The model is told "Try again in a minute, or answer without running code." |
run-code.ts:385, backend/domains/sandbox/light-sessions.ts:190-215 |
Starting the sandbox fails for any reason except "busy", for example the sandbox host is down or misconfigured | The error is rethrown to the work-tool executor, which logs [agent-tools] run_code failed: <reason> and hands the model "run_code failed unexpectedly. Tell the user it did not work; do not retry the same call." (backend/domains/agent_tools/executor.ts:113-121). What the timeline shows for that step was not examined |
What tests cover, and what they do not
- Unit and component tests hold each piece: the tool table, the ladder, the catalog, the policy,
create_file,load_skill,run_code, the light sessions, the file cards, the timeline labels, and the mock gateway'se2e:make-fileande2e:make-spreadsheetscenarios (tests/manual/reference/automation.md:469,lib/mocks/overrides/canned.ts:43-45). - The same row says what stays manual: "a real model's choice of tool, a real light sandbox, live image models and the screen reader". The chat spec says the same of the choice: "no unit test can hold a model's choice" (
spec.md:364-366). - No round record under
services/platform/tests/manual/runs/names CHAT-F66 to CHAT-F72 or CHAT-B22 to CHAT-B24. The last round on record (r0008) predates feat(platform): chat makes files and uses skills, sandbox only as needed #4817: that directory was last changed on 2026-10-02.
The docs disagree
docs/en/platform/chat/basics.md:73still tells the reader: "When a conversation ends in work that needs a file, such as a presentation, a report, or a spreadsheet, hand it to a project agent."docs/en/platform/chat/files-and-skills.mdsays chat makes those files. feat(platform): chat makes files and uses skills, sandbox only as needed #4817 rewrote only the paragraph at line 60 ofbasics.md.- Two code comments still describe chat without these tools:
lib/chat/assistant.ts:7andapp/features/chat/components/composer.tsx:8-10("Chat asks and retrieves; work that needs execution or review belongs to a Task").
Not known
- The symptoms that were seen, and the model, organization and deployment they were seen on.
- Whether that deployment runs the sandbox service with the document libraries in its image, and whether
docx,pdf,pptxandxlsxappear under Settings > Skills of that organization. - Whether the Chat tools policy of that organization is the default or an edited file.
- Nothing here was observed live. This is a reading of
main.
What would settle it
- Chat tools under Governance (Policies and limits): are Files, Skills and Code on? Does Governance report an unreadable policy?
- Settings > Skills: are
docx,pdf,pptxandxlsxlisted? - Settings > Sandboxes: what is the light budget, and is there a row labelled "Light sandbox" after a request for a spreadsheet?
- A new chat, one prompt per chat (the prompts of CHAT-F69): "Give me the inner planets with their diameters as a CSV file" should show Writing … and a card. "Make an Excel file with monthly revenue for 2025 and a total row that uses a formula" should show Reading the xlsx skill, Running Python in a light sandbox and an
.xlsxcard. Record which step is missing or red and what the reply says. - The server log around the request, for these strings:
work tools for thread,chat_tools policy of,skill library of,[agent-tools] run_code failed. - The same prompts on a second model. The model decides which tool to use.
Directions the evidence points to (not exhaustive, no preference stated)
- Tell the person when a turn runs without the tools it was meant to have, instead of only logging it.
- Carry the real reason of a failed sandbox start to the step, instead of "run_code failed unexpectedly."
- Hold the whole path (mock model, real light sandbox, file card) in an automated check, or record a manual round for CHAT-F66 to CHAT-F72.
- Reconcile
basics.md:73and the stale code comments with the new behaviour.
Related
#4817 (chat makes files and uses skills), #4849 (its hardening), #4872, #4877 and #4878 (open decisions around the same tools), #4937 (choosing a skill in chat, reported with this one).
Observed at main 514ae0adbd (2026-10-13).
Activity