Repository navigation
feat(settings): let Admins allow agents to publish and send on their own - #1977
Merged
Merged
Conversation
…permission AUTONOMOUS-GO-LIVE PR 1 (migration 00443), with nothing reading it yet: chat_settings gains the workspace switch (auto_go_live_groups, who turned it on, when, under which terms); chat_agent_go_live keeps an agent's permission for the version it was given on, with its daily limit (1-20, 5 unless set); chat_agent_go_live_events keeps each step an agent takes live on its own, read by brand access. reserve_agent_go_live and finish_agent_go_live (service role) hold the daily limit under a lock per agent, once per (draft, target); a failed step frees its slot. Types, schema.sql, and the brand-access and demo coverage lists follow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
AUTONOMOUS-GO-LIVE PR 6. Settings › Chat gets "Agents that publish on their own", under what Managers may take live: an Admin's switch, off by default, locked below Growth and while Content Quality is off, read-only for everyone else. Turning it on asks the Admin to accept the responsibility text first (its version kept with who and when, 00443); turning it off needs no dialog. Hidden unless staff turn on CHAT_AUTO_GO_LIVE for the workspace (autoGoLiveEnabled). Where it shows, the page's "EXECUTE needs a click" lines say an Admin may let an agent go live on its own. Help: a new Settings › Chat article, and the "nothing is published without your click" lines name the exception. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…check the plan themselves Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 13 tasks
# Conflicts: # server/src/lib/brand-access-policies.test.js # supabase/schema.sql
8 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AUTONOMOUS-GO-LIVE PR 6: Admins can let agents publish and send on their own, a switch on Settings › Chat (§7.1, §7.3). Stacked on #1967 (00443). No migration of its own. Hidden unless staff turn on
CHAT_AUTO_GO_LIVEfor the workspace; behind it, PR 5's precedence exception does the rest.What changes
setAutoGoLive(on, terms):GO_LIVE_TERMS= 1).auto_go_live_groups=['publishing'], with who, when and the terms version; off empties the groups.unavailablewith the flag off or before 00443.getChatSettingsViewreturnsgoLive(null with the flag off or before 00443, so the section doesn't show).lib/chat/flag.tsautoGoLiveEnabled:CHAT_AUTO_GO_LIVE+CHAT_AUTO_GO_LIVE_ORGS, on top ofCHAT_AGENTIC.SettingsSwitchmoves to its own file, shared by both sections.settings/chat-rules.md, Set the rules Chat follows (approved: false);chat/chat.mdandchat/chat-settings.md: "In your own chats nothing is published or sent without your click. Agents an Admin allows can publish on their own."The owner approved the screens.
Related issue
None. AUTONOMOUS-GO-LIVE spec, PR 6.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
CHAT_AGENTIC=true,CHAT_AUTO_GO_LIVE=trueand Content Quality on, as an Admin on Growth, open Settings › Chat.Unit tests:
chat-settings(view, on, off, refusals, before 00443);chat-settings-section(hidden with the flag off, dialog, off, locks, read-only);flag;Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (337d426), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41362902939): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code