Repository navigation
Open
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementpriority: mediumMedium priorityservice: platformPlatform service
Description
Summary
Since #5363 (train 8d37319dc), a chat in the app offers read_project_settings and propose_project_settings to every person who may create or change projects (Editor, Developer, Admin, Owner). An organization cannot turn them off: the Chat tools policy only has switches for files, skills and code. The switch was left out on purpose and recorded under the chat spec's Not yet, because adding a key to that policy is not safe during a rolling deploy. This issue lays out why, and the ways around it. Part of epic #5371.
What the repository says today
chatToolsConfigSchemais.strict(), withfiles,skillsandcode(packages/shared/src/schemas/governance.ts:559-579,main9be27c4e2).- A chat turn reads it with
strict: true. A policy file that exists but cannot be read turns files, skills and code off until it is repaired (services/platform/backend/domains/chat/work-tools.ts:71-108,traina32fb1586; rule CHAT-R26,services/platform/backend/domains/chat/spec.md:423-429). - So an older image (during a rolling deploy, or after a rollback) that reads a file with a key a newer image wrote fails the strict parse, and turns off files, skills and code for the whole organization.
- Each policy is a file of its own, read by type (
policyTypeToFileBase(policyType),services/platform/backend/lib/org-config.ts:172-178,main). An image reads only the types it knows (POLICY_SCHEMAS,governance.ts:1427-1461). - There is a precedent for reading with a different schema than the one that writes:
POLICY_READ_SCHEMASreadsmodel_accesswithstoredModelAccessConfigSchema(governance.ts:1463-1466). - Who gets the tools today:
- App sessions only, no send over the API (
services/platform/backend/domains/chat/service.ts:170-188,train). - Only members whose role may edit projects (
services/platform/backend/domains/chat/proposals.ts:343-358). - Nothing changes until the chat's owner applies a card (CHAT-R44).
- App sessions only, no send over the API (
- The Not yet entry:
services/platform/backend/domains/chat/spec.md:559-562(train).
Constraints
- An older image must keep reading a policy file that a newer image wrote.
- CHAT-R26's fail-closed reading must still hold for a file that is really broken.
- A new switch needs its row on the Governance page, strings in en, de and fr, and docs.
Options (no preference)
- Two releases. First the
chat_toolsreader accepts and ignores unknown keys (a read schema beside the strict write schema, asmodel_accesshas). A later release adds the new switch. - A separate policy type, in its own file, which an older image never reads.
- A rule about roles ("which roles may use chat proposals") rather than an on/off switch, in a policy that already exists or a new one.
- No switch. The tools stay limited by role and by the click on Apply.
Questions
- On or off by default, for organizations that exist and for new ones?
- Should the switch cover
read_project_settings(reads only) as well as proposals?
Related
- feat(platform): create and configure projects and agents from the normal chat #5363, Epic: projects and agents in chat — choose them, talk to them, set them up, and show generated images once #5371
- Decision: which policy switches should govern files and code in task runs on the shared engine? (Chat tools governs chat only) #4878 (which switches govern files and code in task runs; Chat tools governs chat only)
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementpriority: mediumMedium priorityservice: platformPlatform service
Activity
yannickmonney commentedon Nov 14, 2026
Decision
Governance gets a switch for the chat's project and agent proposals: a new key,
projects, in the existing Chat tools policy, shipped over two releases.Release N (reader first):
model_access.nullis removed.Release N+1 (the switch; not before release N is published):
projects(default true) is added to the policy.read_project_settingsnorpropose_project_settings.CHAT_PROPOSALS_OFFand the card stays open; Dismiss still works.Answers
read_project_settings? Yes. One switch removes both tools: reading only serves drafting proposals and never shows more than the person can already open.Rationale
A save replaces the whole file, and the editor always sends
{files, skills, code}. So an older image would eraseprojects: falseand turn proposals back on without anyone choosing it, unless the server carries unknown stored keys over. The settings API returns those keys on read, so the write door must accept them back unchanged, or a client that reads and writes back is refused. The plan must also use the merged config, so that it does not report a change that is not real. The serializer currently parses with the strict schema and must be switched to the read schema. A typo key in a hand-edited file is now ignored rather than turning everything off. The page names it and offers Remove, and broken files still fail closed. A separate policy file would split one concept in two for good. A role rule repeats the existing gate. No switch leaves organizations no way to turn the feature off.Implementation units
CHAT_PROPOSALS_OFFon Apply, the Governance row, en, de and fr strings and docs, a spec rule with the Not yet entry removed, manual boxes, and release notes saying not to roll back past release N.Cross-issue amendments (decisions taken together with #4877, #5411):
skillsswitch alone. Whileskillsis off, Apply on a pending skill card is refused with CHAT_PROPOSALS_OFF (the same rule as Decision: should Governance be able to turn off the chat's project and agent proposals? #5379), and Dismiss still works. Amend Decision: should chat start a full workspace itself, or keep handing long and repository work over to a task? #4877: propose_task has no Governance switch. Task-creation rights and the owner's Apply are the gate, and the reference to Decision: should Governance be able to turn off the chat's project and agent proposals? #5379's open question is removed. Decision: should Governance be able to turn off the chat's project and agent proposals? #5379 is unchanged.