Repository navigation
feat(server): send a page to the CMS for an agent run without a browser session (00444) - #1970
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]>
…er session AUTONOMOUS-GO-LIVE PR 4 (migration 00444). POST /api/internal/chat/go-live/send (CRON_SECRET) is how the web's engine will send an agent's page on its own: it checks everything again from the database (Chat on, Full auto's plan, the Admins' switch, the run running as the person, the agent's permission for the run's version, the person's role and the Managers' publishing switch, brand access, not the demo brand, and the step's own reservation), then sends as a person's Send to CMS does, with the agent run kept on the delivery (content_draft_deliveries.agent_run_id). The step is finished done, or failed with why, which frees its slot; a refusal frees only this step's own slot. Never retried. v1 takes CMS drafts only. Nothing calls it yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mo guard leaves Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 1, 2026
Merged
# Conflicts: # server/src/lib/brand-access-policies.test.js # supabase/schema.sql
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 4: the server sends a page to the CMS for an agent run, without a browser session, after checking every condition again (§5.4). Stacked on #1967. Migration 00444. Nothing calls it yet; PR 5's engine step will.
What changes
content_draft_deliveries.agent_run_id→chat_agent_runs, on delete set null. The Library and the ship event will read "sent by the agent on its own" from it.sent_bystays the person the run acted as.POST /api/internal/chat/go-live/send(CRON_SECRET,routes/internal-chat-go-live.js).auto_go_live_groupshaspublishing);running, and acts asactingUserId;chat_agent_go_live);sendContentPages, now withagentRunId), and finishes the step:done, orfailedwith why (which frees its slot).kind: 'cms_draft'to Webflow, WordPress, Framer or Wix. Publishing live comes with PR 9, webhooks with PR 11.Related issue
None. AUTONOMOUS-GO-LIVE spec, PR 4.
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
Server unit tests:
internal-chat-go-live(21):content-delivery: the agent run is kept on the delivery before the page goes.No visible change, no Help article, no AI call.
Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (21a6a17), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41358856335): 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