Skip to content

Troubleshooting ​

There is no formal docs/runbooks/ tree yet. Start here, then follow links into the monorepo.

First stop: gotchas/ ​

As of #269 (merged), the old monolithic GOTCHAS.md is an index of topic files under gotchas/. Root GOTCHAS.md is only a one-line pointer for older agent prompts — read the area files.

Each entry is written symptom → cause → what to do (error strings and paths kept for grep). Open the file for the area you are about to touch:

FileCovers
side-envs.mdenv:up / env:down, side-env config, deploying your own env
aws-and-secrets.mdStatic agent key, SSO, regions, Secrets Manager, secrets:push
deploying.mdWorker/conductor deploys, image rollout, CI/CD, Pulumi, Actions
containers.mdNative containers, agent image, DO-container sync, confinement, preview
piharness.mdPi Durable in the WorkspaceDO since #546: when a turn has ended, alarm mux, request_id encoding, Stop, bash spill, compaction
opencode-and-turns.mdRemoved by #546 (link is the last pre-merge copy). OpenCode in WorkspaceDO, event stream, when a turn has ended
models-and-gateway.mdAI Gateway, Bedrock, Vertex, GPT, Grok, Gemini, thinking
cloudflare.mdworkerd, Durable Objects, queues, Workers for Platforms, wrangler
data.mdPostgres, migrations, Hyperdrive, D1, platform data hops
template-and-apps.mdTemplate, generated apps, Vite in workspace, publish
integrations.mdComposio providers and Connect flow
mcp.mdMCP server: timeouts, grants, publish over MCP
studio-frontend.mdStudio/admin SPA, CSS/Tailwind, React, wiki, Sentry
agents-and-workflows.mdservices/agents and services/workflows
evals.mdEvals runner, walker, nightly
testing-and-tooling.mdbun test, verify, e2e, worktrees/node_modules, git, local dev

Index + how to add an entry: gotchas/README.md. Search the area file for the symptom, not the subsystem you assume. Since #594 (merged 2026-10-07) the index points at symptom sections, each kept as symptom → cause → fix; ordinary rules moved to their owner docs. That pass merged duplicate entries, moved chat/canvas/turn traps out of the Wiki section of studio-frontend.md, and dropped two obsolete side-env entries: scripts/env/deploy.ts now re-renders the side-env config (writeSideEnvConfig) before image work, and env:up applies admin D1 migrations before deploying admin.

Examples that still present as something else:

  • Crash-looping container → message that looks like capacity limit
  • Stale file views / sync races → “config” / metering zeros (see containers.md hydrate / sync notes)
  • Worker→Worker over public hostname → opaque 1042/404 (cloudflare.md)
  • Preview/cookie/HMR origin mistakes
  • Control-plane 500 on a duplicate name or bad reference → a Postgres unique/FK violation whose SQLSTATE sits on err.cause under drizzle 0.45; use sqlState() from lib/pg-error.ts (see Control plane — #510; data.md)
  • Studio chunk / Sentry recovery (see chunk recovery; studio-frontend.md)
  • Native containers (#239): “Image not found” after start → named image not prepared (Wrangler ≥4.145); layer over ~200 MiB; idle clock — see containers.md and Conductor — Native

Common stalls ​

Symptom areaCheck
bun scripts/gen-design-style-presets.ts fails with preset_gateway_upstream_auth or preset_gateway_gateway_url_missing, or asks for VERTEX_PROJECTSince #678 (merged 2026-10-08) the generator needs only CF_AIG_TOKEN and an AI_GATEWAY_BASE_URL pointing at the brilliant gateway in services/conductor/.dev.vars. The first error means the token is missing, the second that the root isn't the brilliant gateway. A VERTEX_PROJECT prompt means an old checkout: pull main
With x-brilliant-branch: <name> set (branch switcher or curl -H), the response still says x-brilliant-served-by: staging, or a WebSocket or later hop runs staging codeBranch routing no longer exists: #606 (merged 2026-10-07 22:31 IDT) removed it, so main ignores the header. Use env:up. History: branch routing (#561, merged 2026-10-07) only worked once staging has deployed from main with it. After that, served-by: staging means that service has no <name>--<service> Worker (check bun run branch:list), the service isn't routed (only control-plane, dispatch and agents are), a hop between Workers dropped the header, or the branch name has --, uppercase or is over 31 characters. Sockets going to staging means the extension is missing wss:// host permission for that host. A 502 with the header set is a real branch-Worker error, not a fall-through. Error 1042 means a missing global_fetch_strictly_public (hand-uploaded script); 1019 means a branch route looping into its own host. An edit to a Durable Object or Workflow class "not taking effect" is expected: branch Workers run staging's copies, use env:up. See Side environments — Branch routing
Studio (app.brilliant.rocks) renders blank with the branch switcher on; console shows Failed to load module script … MIME type text/htmlObsolete: the switcher was removed in #606 (merged 2026-10-07); uninstall it from chrome://extensions. History: the page came from the branch but its scripts and styles came from staging, whose asset hashes don't match, so they 404 into the SPA fallback. Your loaded extension predates #572 (merged 2026-10-07), whose rule covers every resource type; #561's rule skipped script, stylesheet and image requests. Fix: git pull, then click reload on the extension in chrome://extensions. A red ERR badge instead means Chrome rejected the rule (reason in the tooltip). A stale non-hashed image or font after switching is browser cache: hard-reload or disable cache in DevTools. See Side environments — Branch routing
With a branch set, the browser-facing Worker answers branch:<name>:<service> but a downstream Worker (or a call from a Durable Object, alarm, queue, or the PlatformData / CollectionAdmin / AppRpc RPC entrypoints) still runs staging codeObsolete: branch routing was removed by #606 (merged 2026-10-07) and #585 was closed unmerged; use env:up. History: before #585 no Worker forwarded x-brilliant-branch to the next one. With #585, Workers forward it only while serving a request; Durable Object, alarm, queue and cron calls, and every RPC entrypoint call, always reach staging by design. Run bun scripts/e2e-smoke.ts --env staging --branch <name> to see which service answered staging. A change only reached through RPC (for example in access/gateway.ts) needs env:up. Error 1019 with #585 can also mean a Worker-to-Worker callback loop. This gap is why #606 removed branch routing. See Side environments — Worker-to-Worker forwarding
After bun run branch:down <name> (and an empty branch:list), requests with x-brilliant-branch: <name> still answer x-brilliant-served-by: branch:<name>:<service> with the branch build's SHAObsolete: branch:down was removed with branch routing in #606 (merged 2026-10-07). History: expected for a few minutes, the scripts are deleted at once but the edge keeps dispatching to them (about four minutes on 2026-10-07) before falling through to staging. Don't treat it as a router bug; to stop testing the branch right away, clear the header (switcher Clear, or drop -H). Our router has no lookup cache; the delete just takes that long to reach every edge. From #576 (docs, merged). See Side environments — Branch routing
A new app or project from Home gets a clumsy name taken from the first words of the goal (for example "I need something")Before #556 (merged 2026-10-07) the studio always sent the heuristic appNameFromGoal name, so model naming never ran. With #556, a heuristic name means POST /tenants/:id/app-name fell back: the conductor's suggestAppName was down, slow (about 4 s budget) or answered junk. Create is never blocked by naming. See Control plane — Home always makes a new project
Settings › Data table doesn't update when the app writes records, has no "contains" filter, or search says it only covers this pageExpected since #565 (merged 2026-10-07): the table runs on the collections API (POST /apps/:id/data), which has no realtime channel (use refresh) and no substring match in the gateway where grammar. Search is server-side only when the collection has searchable fields; otherwise it filters the loaded page and is labelled so. Read-share consumers get a read-only View sheet, not write controls. See Permissions & data: Settings › Data records table
Recovery set_app_access returns 404 not_found for a real user id, or a user's Studio login lands in a tenant they never joinedSince #553 (merged 2026-10-07, fixes #548), recovery only targets people reachable from the acting tenant; anyone else gets 404 by design. Before #553, an Owner/Admin of another tenant could add a builder membership for any user, and Studio login picks the newest membership. Before #641 (merged 2026-10-08, fixes #554), a builder grant to someone who only accepted a view invite added a membership; now it leaves a pending builder invitation (look under Pending invitations · Builder), and project builder grants to non-members get 400 invalid_input, see Builder grants to non-members become pending invitations; newest-membership login is #555. See Permissions & app data — Recovery only reaches people in the tenant
Sign-in returns {"error":"unavailable"} (503) for everyone joining one tenant, right after the permissions cutoverThe tenant was created during the cutover window (after the schema reset, before the new control plane was live) by old code, so it has no tenant_resource_rules row and automatic joins fail closed. Insert the default rules row for owner tenants missing one (the step 9 repair in the cutover runbook, added by #545, merged 2026-10-07), then confirm 0 tenants lack rules. Seen on staging with the Monday.com tenant. See Permissions & app data — Sign-ins during the cutover window
Chat screenshot cards ("Screenshot · /") from browse_screenshot / browse_act show "Image unavailable"Since #516 the conductor's /w/<ws>/dev/__thumb/<id> route always returns a no-store 404, and browse screenshots load through it. #591 (merged 2026-10-07 17:29 IDT, live on staging since 2026-10-08 09:22 IDT with dce2558b) serves 32-hex screenshot ids to admitted builders again (version shas still 404). If cards still break after the conductor deploy, check the __thumb request: 403 means the viewer failed builder admission, 404 means the id isn't in _brilliant_thumbs. See Conductor — Chat screenshots served again
Projects / app cards show no draft screenshot (placeholder only), even for buildersSince #516 the control plane app list had no picture field and conductor turn-end capture skipped with no_builder_or_tenant (no stored builder identity). #684 (merged 2026-10-09) restores builder-only signed thumbUrl via GET /app-thumbs/:appId and capture as the turn's verified user after a CP builder re-check. Ship control plane first, then conductor. Viewers still get the placeholder; check conductor logs for thumb.capture skips (revoked / no user / snapshot) and that the img URL verifies (forged/expired → 403). Image is private, no-cache with ETag. See Conductor — App card draft screenshots
Draft preview reloads about every 36 s with no error in Sentry and a healthy container; a vite-ping WebSocket upgrade shows up right before each iframe document GETFrom #516 until #588 (merged 2026-10-07, live on staging since 2026-10-08 09:22 IDT) the conductor closed the Vite HMR socket at each 30 s authority deadline, and Vite reloads the page on any server close (#563). The conductor now renews the lease with a fresh CP builder proof 12 s before each deadline. If periodic reloads come back, look for preview.socket_renew_failed in conductor logs first (a rejection closes the socket at the current deadline; an unavailable CP is retried once). See Conductor — Preview socket lease renewal
Draft preview hydrates slowly after reload (~30 s of module GETs); STUDIO-PREVIEW-001 persistence check times out while the list stays on "Loading…"Since #516 every /w/:ws/dev/* request awaits an uncached control-plane admission snapshot; after the Neon cutover staging medians were ~1.8 s per module × ~30 modules (#674). Fixed by #679 (merged 2026-10-08 21:54 IDT): preview page/module GET/HEAD reuse a matching signed authority proof while it has at least 15 s of its (≤30 s) lease left; in the PR test module median went 773 → 343 ms and CP admission calls 28 → 1. If it is still slow, check the conductor deploy includes 95ed8f58. See Conductor — Preview admission reuses signed leases. Placement next to Neon (#668) cuts the per-call cost separately.
A removed builder can still load draft preview page/module files for a few seconds, or SSR / server functions in the preview intermittently fail with unauthenticated mid-readExpected bounds of #679: preview GET/HEAD admission may reuse a signed authority proof that is also the app's data identity, until it is within 15 s of its ≤30 s lease. Revocation is not immediate for already-admitted preview reads; writes, media, data permission and socket renewals stay fresh. Intermittent unauthenticated means a proof expired during sequential data calls; the 15 s headroom exists to prevent that, so check MIN_PREVIEW_REUSE_SECONDS in services/conductor/src/lib/app-access.ts was not lowered. See gotchas/cloudflare.md — Preview permission reuse and near-expiry data identity and Conductor — Preview admission reuses signed leases.
Publish fails with intermittent HTTP 403 deploy_failed: forbidden (BuilderAccessRejected) and the same publish succeeds moments laterClock skew between workers: a verifier refused an authority proof issued a fraction of a second in its future. #544 (merged 2026-10-07) lets verifiers accept 5 s of future issue time and nothing else. If the env hasn't picked up #544 yet, retry; if it persists after deploy, check proof expiry or keys rather than clocks. A retryable 503 on collection-admin calls can still come from skew (known follow-up). See Permissions & app data — Clock skew
Local SSO / secretsUse default profile (no named brilliant); stale AWS_ACCESS_KEY_* / AWS_REGION from a local AI-gateway (axcli-style Bedrock proxy) shadowing SSO — clear with env -u … (wrong region looks like ResourceNotFoundException, not AccessDenied); secrets:pull (#189, merged; GOTCHAS via #191)
Path 1: UI up but preview / agent deadAll VITE_* URLs in apps/control-plane/web/.env.local; restart Vite; see Getting started (#188)
Path 1 / studio: Cloudflare 1042 on /health or /meRetired monday-vibe-stg host (or unset VITE_* falling back there). Use https://app.brilliant.rocks + all four staging VITE_* URLs; workers.dev control-plane is often VPN-blocked (#249, #361, merged)
Path 1: local Vite sign-in lands on staging / wrong hostBRILLIANT_WORKER_URL set to bare brilliant.rocks — apex 308s; proxy passes the redirect; Chrome caches it. Use https://app.brilliant.rocks, restart Vite, clear cache (#386, merged). See Getting started — Path 1
Build window expands early mid-build (chat still says BUILD)Pre-#386: window ended on first non-“streaming” session status (reconnecting / first boot ready). Post-#386 (merged): stays small until the build turn ends (busyKnown + messages); reload mid-build restores the small window. See Control plane — Chat rhythm 2
Path 1: Auth0 redirect / invalid_state on localhostStaging Auth0 allowlists for http://localhost:5173/auth/callback and logout /; use localhost not 127.0.0.1, port 5173; cloud-agent studio terminal already owns 5173 — do not start a second Vite (#188, #249)
Agent env:up dies with ERR_UNKNOWN_FILE_EXTENSION on infra/pulumi/index.tsCloud VM Node 22.14 ahead on PATH — export NODE_OPTIONS=--experimental-strip-types and rerun (#249); see Side environments
Agent env:up fails Wrangler “non-interactive” after Pulumi created the stackExport Cloudflare api_token / account_id from brilliant/cloudflare/staging before env:up; always env:down after a failed up (#249)
Fresh Cloud Agent VM: env:up fails with Executable not found in $PATH: "pulumi", then "Pulumi SDK has not been installed", then crane is not installedRun bash scripts/env/cloud-prep.sh before env:up (installs pinned Pulumi into ~/.local/pulumi, infra/pulumi deps, Docker, crane), put ~/.local/pulumi on PATH, rerun. crane is needed even with unchanged image inputs because a tag-only reuse still pushes. See Side environments — Fresh VM (#512, merged)
secrets:pull / side-env base fails with BRILLIANT_AURORA_ADMIN_URL is not setloadSideEnvBase merges base + Auth0 + staging Bedrock; a deny on brilliant/staging/bedrock discards the base — developer policy must allow that exact secret (#178); see Secrets & environments
Cannot pulumi up developer secrets policy / ExpiredToken on .pulumi/meta.yamlBrilliantDeveloper cannot read the Pulumi backend — need Admin. Also clear stale static AWS keys so AWS_PROFILE wins; see Side environments (#178)
Admin login 403 access_denied (or used to look like invalid_state)Auth0 staff gate refused the account — request the staff role; not a cookie / state bug. See Secrets & environments (#147)
Unit test / verify hangs on AWSSecrets lookup probing EC2 metadata (169.254.169.254); awsCliEnv must set AWS_EC2_METADATA_DISABLED=true; evals tests inject loadVars — see Secrets & environments (#135)
engine-symlink.test.ts "root dependency reconcile" fails only when the checkout is /workspace (Cloud Agent VMs)The script names syncd by its repo path, which is /workspace there, so the "no /workspace in the script" check tripped. Fixed by #512 (merged 2026-10-06): the test strips the syncd path before checking. If it still fails, your branch predates #512. See gotchas/testing-and-tooling.md
Usage, a publish, or a parked turn never finishes after an operator POST /w/:id/restart-container (or a stop) until someone opens the workspaceFixed by merged #508 (#449): a stop now keeps or re-arms the WorkspaceDO alarm while durable work is owed, so the alarm finishes it (and may restart the container to resume a turn). If it still stalls, the conductor running there predates #508 (redeploy). See Conductor — Stop keeps the alarm
Draft preview reload on a sub-page (/w/<id>/dev/ui, /dev/pricing) fails with "redirected too many times"Fixed by merged #511 (#116): the conductor now treats a segment as an app only when apps/<name> exists, otherwise proxies it to web with no slash redirect. If it still loops, the conductor running there predates #511 (redeploy), or check for a real app with that name. See Conductor — Dev route
Live preview goes blank mid-build with <Section> is not defined (for example Classes is not defined), then recoversThe agent saved a section's JSX into routes/index.tsx before its import. Vite hot-reloads each save, so the route briefly referenced a component it had not imported. Since #562 (merged) the prompt and the placeholder-route nudge tell the agent to add the import first (or both in one edit), never the JSX first, but that is guidance, not enforced. A clean end-of-work typecheck does not prove the preview stayed renderable during the build. See gotchas/template-and-apps.md and Conductor — Progressive real-section builds
Call to /w/:id/exec, /fs/*, /agent/*, screenshot, assets or deploy returns 401 with only the brilliant_token cookie, or a draft app's brilliant_* Set-Cookie disappearsExpected since #642 merged (2026-10-08, partially fixes #285): the cookie authorizes only /w/:id/dev; send a Bearer token (or go through the control plane) for everything else. The dev proxy strips platform cookies from draft dev-server HTTP responses (not the HMR 101). If a viewer's preview of workspace B suddenly gets 401/403, suspect a brilliant_token cookie tossed onto /w/B/dev/ by another preview's JS; clearing that cookie fixes it, and only per-workspace preview origins (#285) prevent it. See Conductor — Preview cookie scoped to /dev
Staging infra.yml up fails on the Neon brilliant database with DATABASE_ALREADY_EXISTSFixed by #632 (merged 2026-10-08 16:07 IDT): scripts/neon/cutover.ts creates and fills the database before the first pulumi up, so the Neon module now imports it (<projectId>/<branchId>/brilliant) instead of creating it. If you still see it, the run predates merge 2b0d9893. See Neon migration — Wave 1 status
Staging infra.yml stops at preview: "staging plan deletes or replaces 12 resource(s); re-run with allow-deletes"Expected after #632: the Neon cutover deletes Aurora's now-unowned admin read-only role resources and replaces the database secret versions. It needs a lead-approved infra.yml dispatch with allow-deletes after reading the diff. Don't combine it with the Bedrock credential deletes from #634. See Neon migration — Wave 1 status
Deploy fails on the admin Hyperdrive with invalid database credentials after repointing an env at a new database cluster (secrets and the main Hyperdrive already switched)Not a bad password: repointing AdminReadonlyRole's postgresql.Provider host is an in-place update, so Pulumi never runs CREATE ROLE for brilliant_admin_ro on the new cluster. Create the role there by SQL as the owner, with the password already in brilliant/<env>/admin-readonly, then re-run up. Never create it through the Neon API (that grants neon_superuser, which the grants step refuses). Seen in the staging Neon cutover, 2026-10-08; gotcha landed in #663 (merged 2026-10-08 17:09 IDT, merge 13ce0006). After creating the role and re-running up, run a deploy (or scripts/deploy/admin-readonly-grants.ts) so the role can read. See Neon migration — Wave 1 status
Deploy fails at the admin read-only grants step: brilliant_admin_ro holds neon_superuser, or role "neon_superuser" does not existFixed on main by #661 (merged 2026-10-08 16:16 IDT, 47ae4720); redeploy from current main. The bug shipped with #632: isNeonSuperuser in scripts/deploy/admin-readonly-grants.ts counts rows of SELECT 1 FROM pg_has_role(...), which always returns one row, so the guard always trips; on Aurora pg_has_role errors because the role doesn't exist. The fix reads the boolean behind an existence check, so don't re-create the role. See Neon migration — Wave 1 status.
Preview blank / ForbiddenCapability token mint/cookie; preview host vs dispatch wildcard; GOTCHAS “LIVE preview”
Studio / preview / conductor points at *.brilliant.lighting or build fails VITE_PREVIEW_URL unsetDropped zone. On main, unset vars can still fall back there; open #447 fails closed (PREVIEW_URL / PREVIEW_HOST / CONTROL_PLANE_URL / VITE_PREVIEW_URL). Set the real staging/prod/side-env origin — Hosting — no lighting fallbacks
LangSmith agent id looks like brilliant-conductor-staging (or other env) instead of plain staging/devExpected after #447: id is brilliant-conductor-${BRILLIANT_ENV} — Conductor
Side-env e2e hits stagingUnset injected CONTROL_PLANE_URL / friends; pass --env
Smoke FATAL Element is not an <input> on #app-goal-inputLanding//apps prompt id sits on a static div until the editor lazy-loads; wait for #app-goal-input[contenteditable="true"] or textarea#app-goal-input (#163)
Studio blank / TanStack raw error after a deploy (lazy chunk)Client: one auto-reload per build+tab; offline / storage / edits block auto-reload → StudioErrorFallback (#182). Deploy-side (#296, merged): previous build’s chunks stay served for one more deploy via carry-assets / asset-manifest.json. See Control plane — chunk recovery
Studio layout jump when opening an app or going HomeShell was keyed on TanStack state.location (moves on click while old page stays until chunk/loaders resolve). Fix: key on useShellPath() / deepest rendered match (lib/shell-route-key.ts). See Share & Invite / Projects — shell path (#445, open; ported to main in #558, merged 2026-10-08)
No "Plan mode: on" / "Build mode: on" toast, or the canvas doesn't turn to the plan while the agent plansSince #558 (merged 2026-10-08) both follow the session's mode in the agent session frame. An older conductor sends no mode, which the studio reads as unknown, so nothing toasts during a mixed-version window: check the conductor is deployed from 9e767fea or later (deploy control plane/SPA first, conductor last). If the conductor is current, the agent may not have called enter_plan_mode; mode follows that tool, not plan.md writes or questions (starting it from studio intent is #613). See Control plane — Desktop polish and explicit Plan/Build mode
A question headed "Plan" shows as a normal question, or "Approve but change X" doesn't start the buildExpected since #558: the approval card binds to propose_plan's own form by metadata.planId, and only the exact approve option starts the build; other text is change feedback. See Conductor — Explicit Plan/Build mode
env:up / deploy refuses worktreeSymlinked node_modules → run scripts/worktree-node-modules.sh <worktree> (not a plain link to main)
Agent / worktree needs install or lockfile regenAgents may bun install --backend=copyfile in their own worktree (#320, merged). If modules are linked to main, remove the links first or the install writes into main — see gotchas/testing-and-tooling.md
macOS esbuild empty / broken after bun installNon-copyfile install broke native binaries — rm -rf node_modules/@esbuild/darwin-arm64 && bun install --backend=copyfile (#320, merged)
Agent turn LLM 401AI Gateway token present on side-env conductor; see scripts/env/README.md
GPT-6.1 Sol coding turn 400 / “use /v1/responses” / “I’m Brilliant” every replyModel must use Bedrock Responses (not chat); see Conductor — Models & LLM gateway and #GPT-6.1 Sol (#173, merged)
Deploy binding errorsDeploy order (control plane without services → peers → control plane with bindings)
Side env wedges after a few smokes / “capacity” errorsConductor side-env max_instances default is 10 (was 3 on the old shared account); each OpenCode workspace holds a container for the 90-min preview lease — see Side environments (#166, merged)
Hyperdrive / DB quotaTear down unused side-envs
env:down “success” but resources remainExpired AWS creds (or a resource 404) can look like “stack not found”; only Pulumi’s no stack named '…' found means already destroyed — see Side environments (#165)
env:down leaves conductor-<env>-workspacedo-native / wrangler APPLICATION_NOT_FOUNDList prints undashed id; wrangler delete wants dashed UUID the API rejects. With a CF token, #337 (merged) deletes via API and fails teardown if still listed; without a token, delete with the listed id yourself. See Side environments — leftover native apps
Conductor deploy: “could not finish applying its Durable Object-managed Container application settings” (re-run fails the same)Orphan native app bound to an old DO namespace after Worker recreate — compare app durable_objects.namespace_id vs Worker WorkspaceDO namespace; if they differ, delete the app and deploy again (#329; blocked staging CD 2026-10-02). See Side environments — leftover native apps
Agent env:up dies at conductor image build (no Docker)Reuse a pushed conductor-workspacedo tag when image inputs match HEAD — see Side environments — image reuse (#193, merged)
Candidate / env:up fails with conductor agent image must be a digest-pinned … ref after logging reuse of a :tagTag-only reuse was recorded; native config rejects tags. #276 (merged) routes both callers through findReusableImage's digest-pin guard so a tag match pushes instead — see Side environments — digest-pinned reuse
Staging CD always rebuilds agent image (Image reuse: cannot list …; pushing instead) / smoke flakes after deploycrane ls cannot parse Cloudflare registry’s non-RFC-8288 Link header. #288 (merged) lists tags with curl and trusts ci-<sha12> — see Side environments — Staging CD image reuse. Do not reintroduce crane ls against this registry.
Agent AWS errors on the wrong principal / missing permsKey exported under lowercase names (aws_access_key_id) — SDK falls through to the pod role; use uppercase AWS_ACCESS_KEY_ID and check sts get-caller-identity is user/brilliant-side-env-agent (#193, merged)
pulumi InvalidGrantException while aws CLI still worksCLI is on cached role creds; Pulumi’s Go SDK wants a fresh SSO token — aws sso login or eval "$(aws configure export-credentials --format env)" and unset AWS_PROFILE (#193, merged)
Staging/prod missing a resource that merged in infra/pulumiMerge path applies staging via infra.yml (#210, merged). Prod needs Actions → infra → Run workflow (stack: prod) + infra-production approval. If staging CI did not run (paths filter), check that the merge touched infra/pulumi/** or infra/secrets/**. See Hosting & Pulumi — Pulumi CI
Auth0 resources fail on missing scopes right after the management grant gained themThe Auth0 provider mints its Management API token once per invocation, so new scopes only apply on the next up. Widen managementGrant.scopes (and drop import) in one merge, then declare resources that need them in a later merge; never PATCH the grant by hand (#478, merged; widening #479, first done for branding/prompts in #483, merged). Prod follows the same path via #497 (merged; applies on the gated prod infra run): it adopts and widens the grant in one run, and theme/copy come in a later run. See Secrets & environments — Auth0 management grant and Prod step 1
Pulumi import of the Auth0 management grant fails, or up says …-management-grant is <id> in state, not the configured machine grantWrong grant id: the non-prod tenant has a machine grant (cgr_sHMpjFpJ0Tuvf8qa, adopt this) and an empty user-subject grant (cgr_9IWQjLSo6f7UKQ6j, never adopt); the prod tenant has machine grant cgr_eoHcAn3mhvqB9BfK (adopt this) and empty user-subject grant cgr_K0uMtFMFFoFaR6oe (never adopt). A scope mismatch alone doesn't fail an in-code import (scopes are mutable, so the run imports then updates them), per the corrected gotcha in #483 (merged), which also drops the import option now the grant is in state (#478, merged). On a fresh stack, pulumi import the machine grant id before up, or up tries to create a second grant. For prod's first import, #497 (merged) sets managementGrant.adopt: true, which puts import: <id> back on the resource for that run (a client, audience or subject mismatch plans a replacement that protect refuses). If an adopt import fails with "inputs to import do not match" on a scope difference, the Pulumi engine is too old to plan import + update; match CI's PULUMI_VERSION
Staging infra up fails creating an …-e2e-<label> Auth0 user with 409 / user already existsSomeone created e2e-<label>@e2e.brilliant.rocks on the non-prod tenant outside Pulumi. Delete that user (or pulumi import it) and re-run; the passwords are Pulumi-minted into brilliant/staging/e2e-users, so a hand-made user's password won't match. Never declare e2eUsers on prod (it throws). See Secrets & environments — staging Auth0 test users (#521, merged)
Staging infra up fails creating an …-e2e-<label> Auth0 user with 400 Bad Request: Connection must be enabled for this client to perform single user creation and signup operations (connection: Username-Password-Authentication)The Auth0 Management API creates a database user only when the calling client (the Pulumi management app) is enabled on that connection. First hit on the apply of #521 (merge 169e9b72). Fix in #522 (open): databaseConnectionClients adds the management client to the database connection only when the stack declares e2eUsers, and the users dependsOn that association. Don't enable it by hand in the Auth0 dashboard, and never on prod. See Secrets & environments — staging Auth0 test users
A stacked PR shows "merged" but its code isn't on main (for example the Auth0 login theme from #484 never applied, and was re-landed as #487)Its base was the parent's stack branch, and the parent had already merged into main, so the child merged into the leftover branch. Check the PR's base branch, then re-land the change on main with a new PR or a cherry-pick. Retarget a stacked PR to main before merging once its parent lands.
infra fails with 400 Bad Request: Invalid key "<key>" in screen "<screen>" on an Auth0 PromptCustomText, and the run stops partway through the promptsThe Management API refuses a key that Auth0's text-element reference lists (first seen: logoAltText on brute-force-protection-unblock-failure, after #493, merged; then logoAltText on brute-force-protection-unblock-success on the next run). Remove that key or screen from infra/pulumi/src/auth0-prompt-texts.ts, add a test that fails if it returns, and rerun. Auth0 stops at the first bad key, so prompts that were never sent can still hide another one; prompts already live aren't affected. Fixes: #499 (merged 2026-10-05) and #500 (merged 2026-10-05; all 30 prompts live on staging). See Secrets & environments (Step 3 of the branded login)
pulumi up / preview on staging from main can't decrypt the stack (KMS error), around 2026-10-05History: staging state moved to alias/brilliant-pulumi-staging before #492 merged; main's Pulumi.staging.yaml still named the shared key until merge 409ee616. Fixed on main now. See Secrets & environments — Staging agent key
As brilliant-staging-agent, pulumi up dies with AccessDenied on iam:Create*, rds:Modify*, lambda:Update* or KMSBy design: staging and prod share one AWS account, so the agent key can't change IAM, Aurora, Lambda or KMS. Run that plan from infra.yml or an admin session. Don't move the staging stack back to the shared key to work around it (#492, merged; gotchas/aws-and-secrets.md)
As brilliant-staging-agent, pulumi up -s staging fails with AccessDenied on s3:PutObject to the staging checkpoint or on kms:Encrypt / GenerateDataKey for alias/brilliant-pulumi-stagingBy design since #557 (merged 2026-10-07, fixes #549): the agent is read-only on staging state and staging up is CI-only. Merge to main and let infra.yml apply. pulumi preview -s staging should still work. See Secrets & environments
Infra CI fails “main moved” / tip mismatchWorkflow only ups main’s tip; a newer commit’s run applies it — don’t force an older SHA (#210)
Infra CI stops on deletes/replacesPlan has destructive ops; re-run dispatch with allow-deletes after reading the preview (count from changeSummary, not text grep) (#210). Custom-domain adds replace *-cloudflare-ids-version (create-before-delete; secret stays) — confirm that is the only replace, then allow-deletes (#226)
Infra CI fails loading pulumi-setup with Unrecognized named-value: 'vars'Composite actions cannot read vars/secrets; pass role-arn and aws-region as inputs from the workflow (#216, merged). Job never starts steps — not an OIDC/auth failure. See Hosting & Pulumi — Pulumi CI
Sentry flooded with stackless conductor 500s / CORS-less /oc errors around a secrets pushPre-#217: secrets:push reset every WorkspaceDO mid-turn. Post-#217 waking is 503 + x-brilliant-waking: 1 (not reported). The conductor idle wait #217 added was removed by #488 (merged), so pushes now evict running turns. See Sentry triage (#217, merged)
Connect / Composio mint returns 500 on an already-linked providerShould be 409 { error: "already_connected" } without touching the active row — disconnect first, then reconnect (#217, merged)
Google Drive proxy call 404s on /drive/v3/filesComposio's Drive proxy root already ends in /drive/v3, so an unstripped path hits /drive/v3/drive/v3/files. #649 (open, not merged yet) adds googleDriveProxyPath, which strips that prefix and sends /upload/drive/v3/... to the absolute upload host. Calendar has the same shape (/calendar/v3). See Integrations — Google Drive
Connect button missing for a providerOften a missing Composio auth-config id. Set it on admin Config (CONFIG_KV); Config overrides Secrets for those names (#290, merged). See Admin Config and gotchas/integrations.md
Pulumi Composio create returns HTTP 400 (API code 10400) for custom-auth (monday/Xero) configs while managed ones succeedCreate body must use camel-case authScheme for use_custom_auth and no scheme field for managed, not GET's auth_scheme (#569, merged). See Integrations
Composio custom OAuth (monday/Xero) connect fails at token exchange with invalid_client / HTTP 401, though the config is enabled and its GET matches stagingThe stored secret is a copied mask: Composio GET returns developer secrets as four characters, ..., four characters. Supply the original raw secret as encrypted Pulumi input and repair in place; GET equality proves nothing (#579, merged). See Integrations
Admin Config change not visible yetClassic KV can lag ~30–60s (up to ~1 min) after write/delete (#290, merged) — wait and refresh; see Admin Config
Prod (or any) render fails after CONFIG_KV appears in base wranglerIds secret missing the binding id — run prod infra workflow before the next prod deploy (#290, merged; gotchas/deploying.md)
Deleted workspace still reachablePublished app for a deleted workspace should 404 at once; its preview should answer 410 (not keep “waking”) (#222, merged). Ungated /w/:id routes (db/exec, assets, images, files/record, apps, screenshot, dev __blob) should also 410 for an authorized caller on a tombstone, and must not call isDestroyed without auth (#258, merged)
Agent exec / turn crashes with Container internal error on tool teardownSignalling an already-exited process raises an uncaught Container internal error. Post-#251 toolProcessHandle and post-#263 workspace-driver kill both skip once exit is known — see Conductor — Tool / driver kill
Preview / boot loops with “no container instance” / container service throttling; alarm stormsPlacement failure: readiness stops on first container.placement_failed; start retry 15/30/60 s; alarm backs off 60 s → 10 min (alarmPlacementBackoffMs, cleared on boot or lease renewal). See Conductor — Placement backoff (#295 / #268)
Cold-wake preview probes NONE / empty disk / dev.layout_probe_none after idle destroyHydrate-before-start race: exec must ensureStarted before the hydrated check; mid-hydrate replace refuses hydrated; probe recovers by replacing the container when DO still has the app. See Conductor — Cold-wake hydrate (#295 / #267)
(Pre-#546, OpenCode) WorkspaceDO resets / exceededCpu while chat idle but /__oc/api/event SSE open for hoursDO CPU budget is per-request; a long SSE is charged for background OpenCode work until the isolate resets. Post-#372 (merged; refs #354) caps that stream at 10 min (never mid-turn) so the client reconnects with a fresh budget. See Conductor — OpenCode event stream CPU cap
Long agent turn hits isolate reset / OOM while session growsBounded session rereads (#289): repair/gate loaders, tracing queue cap 2, sync walk skips .git, memprobe sessionBytes vs contextBytes. See Conductor — Isolate memory (#295)
Staging/prod deploy fails at evals build: depends on workspace "@brilliant/service-contracts" … not on diskEvals Dockerfile must COPY every workspace dep of a copied package (capabilities → service-contracts since #345). Fixed in #419 (merged). See Agents & evals — Docker image
Prod evals cron fails no such table: runsHistorical: migrations must run before evals deploy. After #406, prod CD skips evals (staging-only); prod hourly cron was removed. See Agents & evals — staging-only · D1 migrations
Someone tries to deploy evals to prod / side-envRefused: deploy.ts assertDeployable, render skips prod config, catalog never fans evals secrets into prod. Deploy staging from clean main only. See Agents & evals — staging-only (#406)
No new nightly eval runs since 2026-10-07Expected: automatic scheduling is paused. Hourly cron triggers were removed from staging and prod evals Workers, and #580 (merged 2026-10-07) empties the checked-in cron list, so deploys from main keep it off. Start a run by hand with POST /api/trigger/nightly (evals key; {"force": true} to run even when nothing changed). See Agents & evals — scheduling paused
Cold-wake / layout: dev_layout_pending: exec_in_flight / layout_pending in logs (preview waking)Expected busy deferral when DO has the app but an exec is in flight — not sent to Sentry. Other dev_layout_missing cases still report. See Conductor — Cold-wake hydrate (#406)
Skills read / glob “File not found” / “Search path does not exist” under .brilliant/skillsPre-#406 the push filter dropped skills. Post-#406 the tree is push-only; hydrate repairs on reattach (fails closed on symlinks / inventory errors). See Conductor — Skills push-only
e2e STEP 2 fails with sendSessionPrompt failed: HTTP 503 {"error":"admission_unavailable"} seconds after app creation, or can't find packages/data/src/collections/notes.tsBoth are pre-#543 e2e bugs after the permissions refactor. The builder admission briefly answers that 503 right after create (retryable, admits nothing), so e2e now retries it for up to 60 s. Collections are platform-managed, so STEP 2 now checks packages/data/src/generated/manifest.json. Rebase onto main at or after dc7a424a. See Verify & ship — e2e after the permissions refactor
A builder turn can't create a collection: create_collection / scaffold_model gets 409 conflict from POST /internal/collections/conductor (op=create), and e2e STEP 2 writes no files (blocks staging promotion)Before #611 the conductor's create requestId had no app identity, so the same person creating the same alias and configuration in a second app collided with their earlier request in the tenant. #611 (merged 2026-10-08 09:00 IDT, merge dce2558b, live on staging since the 09:22 IDT deploy, fixes #583) scopes the requestId to the app environment (wsId). If you still see this, check that the environment's conductor is deployed from dce2558b or later. See Permissions & app data: create requestIds are scoped to the app
env:up / candidate logs could not be resolved to a guarded digest; pushing (then needs Docker) although a matching image tag existsSince #538 (merged) reuse resolves the tag to a digest with crane and a Wrangler pull credential, then runs the layer guard. Install crane (scripts/env/cloud-prep.sh) and check registry access. Behind corporate TLS inspection, run with Node 24 NODE_USE_SYSTEM_CA=1; never NODE_TLS_REJECT_UNAUTHORIZED=0. Never put a tag into the native container config. See Side environments: tag → digest reuse
Web test shard fails in React with window.event / window is not defined, or a Studio type error isn't caught by the control-plane typecheckSince #538 (merged) web tests run as --isolate shards (pkg:apps/control-plane/web:test-1, :test-2, and since #633 :test-3) and the unsuffixed web check is typecheck only; the parent control-plane typecheck no longer covers web. Look for a DOM fake leaking between files, and run the web package's typecheck. See Verify & ship: faster CI/CD
A web test shard fails with “browser has been closed” under a random testUsually the shard hit verify's 600s step limit and the kill closed Chromium, not a real test failure. #633 (merged) split web tests into three shards for this; if it comes back, check the shard's total runtime before debugging the named test. See Verify & ship: faster CI/CD
e2e / journeys leave a workspace after POST /apps timed outCreate answered 201 on the server but the client never got an appId. Post-#256 cleanup records requestedName before the POST and deletes that name via teardownJourney (cleanupUnansweredCreate). See Verify & ship — unanswered create
Staging /health sha lags main after several merges#273 runs main verifies in parallel and skips stale deploys, but a late older run can still cancel a newer merge’s pending deploy-staging job (#278). Re-run the newest merge’s deploy by hand. See Verify & ship — verify workflow
Prod gate: Failed to connect to staging control plane at https://app.brilliant.rocks/health (timeout) while staging just verified that shaRunner↔custom-domain blip; host can be fine from outside GitHub. #306 (merged) retries the same Worker’s workers.dev host after the custom domain (STAGING_URLS.controlPlaneUrl is app.brilliant.rocks after #361). Re-dispatch prod — the next run picks up the fallback without a staging redeploy. See Verify & ship — prod gate
Prod gate: REJECTED: brilliant/staging-verified on <sha>… is untrusted (…/runs/<id>: run is at <newer sha>) while staging served and verified that shaFixed by #513 (merged 2026-10-06): the gate no longer requires the deploy run’s head_sha to equal the sha (GitHub sets it to main’s tip at run start, so a PR merging mid-verify tripped it; first seen in prod deploy 37318209927 for 3552aaca after #493). It trusts the deploy staging <sha> title instead. If it still happens, dispatch prod from current main; redeploying staging at that sha also works. See Verify & ship — prod gate
Question / plan card never auto-answers after the waitDetection must poll session.active() + form.list({ sessionID }) — plugin form.* events and form.request.list are wrong traps (#317, merged). Check QUESTION_AUTO_ANSWER_SECONDS is not 0, conductor has CONFIG_KV, and wrangler tail for question_deadline.armed / expired. See Conductor — Question / plan auto-answer and gotchas/opencode-and-turns.md
Agent custom-integration card vanished / “closed without a key”Ordinary question card: QUESTION_AUTO_ANSWER_SECONDS (default 300) auto-dismisses unanswered cards → tool declined. Card is an <a> link, not a button. See Integrations.
Custom-integration key page says “used link” / second submit 410Key page claims pending → submitting before probe; double-submit is one connect + one 410. A request killed mid-submit can leave the row stuck in submitting (#376) — propose again. Integrations.
Proposal exists but custom_<slug> unknown / Settings shows nothing newNormal until the key page POST succeeds after a 2xx probe. 401/403 keep pending; 404/5xx → probe_failed and the agent must re-propose. Integrations.
App edit refused before / without plan approvalNot the plan gate: it was removed in #520 (merged 2026-10-06), so plan approval no longer locks app-tree writes or shell commands. Check the package-manager guard, feature flags, or a destroyed workspace instead. See Control plane — No plan-build gate
Preview / Code tab broken after studio host move (studio itself works)Stale conductor/workflows CONTROL_PLANE_URL (stored ASM still names the old apex) → frame-ancestors refuses the new studio host. Fixed in merged #387: secrets:push sets it from origins.studio (ignores stored key). A CD deploy / secrets push after the host move fixes it. Health probes and asset carry-forward use workers.dev, not the apex. See Secrets — CONTROL_PLANE_URL · Marketing site — Cutover hardening
Staging sign-in broken / everyone suddenly signed out after domain flipExpected briefly during cutover step 2: __Host- session belonged to the old host; between infra attach and redeploy the old site build may still point APP_ORIGIN at the apex. Re-sign-in on app.brilliant.rocks after deploy finishes. See Marketing site — Cutover step 2
Signed-out visitor on studio loops Auth0 / expects a landingAfter #401 (merged 2026-10-04) the studio has no marketing landing (routes deleted): no session → /auth/login once, then Sign in; a /me 403 must show refusal (not redirect). VITE_SITE_ORIGIN is removed — do not check it. Debug Auth0 / session / SITE_COOKIE_DOMAIN (logout return). Control plane — Signed-out studio shell · Marketing site
Infra CI stops on staging domain replace after #361Expected: replace studio custom domain + create site domain. Dispatch infra.yml with allow-deletes=true after reading the plan (#361).
Landing / use-case page: React hydration #418 (or full client re-render) for reduced-motion visitorsFixed in merged #365 (refs #348): useReveal hydrates with a motion-assuming server snapshot (useSyncExternalStore); effect ends the reveal for reduced motion; later reveals never start; CSS drops .prompt-reveal-unit animation under reduce. See Marketing site — useReveal
Replaced marketing / studio public image still shows the old file for returning visitors (up to ~1 day)Site and studio Workers share staticCacheControl: images/fonts max-age=86400 + SWR 1w (#347 / #362, merged). Names are not content-hashed — rename the file to bust. HTML / SPA shell is never long-cached (static-cache-never-pins-a-page). See Marketing site — Cache-Control · Control plane — Static asset cache
Staging sign-in / /me / OAuth callback hangs ~15s then Hyperdrive SQLSTATE 58000 (retry works)Aurora Serverless v2 had paused at 0 ACU; Hyperdrive’s initial origin connection timeout is 15s and can expire before resume. Shared staging + prod keep minAcu: 0.5 (#395, merged; refs #322). Check CloudWatch ServerlessDatabaseCapacity before a pool-leak diagnosis or auth-mutation retries. See Hosting — Aurora min capacity · gotchas/data.md
Control-plane 500 / getMembership / POST /api/bi — can't tell timeout vs SQLSTATEdrizzle wraps postgres.js; look in Worker logs for cause_code (CONNECT_TIMEOUT, ECONNRESET, PG SQLSTATE) on the Control plane request error: line (#355, merged). Sentry still omits the cause. Underlying wake-timeout path: #395 (merged) / #322. See Control plane — Driver cause · Hosting — Aurora min capacity
Removed member / suspended tenant still warms, thumbs, or reads usage/activity with an old cookiesessionOrNext only checks the JWT (valid up to ~7 days). Since #371 (merged 2026-10-03), warm and thumb run sessionStillActive and 404 with no conductor call when membership is gone or the tenant is suspended. Since #461 (merged 2026-10-05; fixes #375), GET /tenants/:id/usage and GET /apps/:id/activity do the same, and a no-membership 404 on any of these routes also clears the session cookie (a suspended tenant's 404 keeps it). If a removed member still gets 200 here, the deploy predates #461. See Control plane — Session routes recheck membership
Suspended tenant's connected agent (MCP) still lists apps, sends prompts, publishes, or reads app dataBearer /mcp calls skip sessionMiddleware, and before #639 (merged 2026-10-08 15:15 IDT; fixes #280) the MCP tool gate never checked tenant status, so a grant issued before the suspend kept working. Since #639 every tool call from a tenant that is not active (suspended or pending deletion) returns forbidden: this account is not active (BI error_code: tenant_inactive) and resuming restores the grant with no reconnect. Grants are not revoked on suspend. If a suspended tenant's agent still gets results, the control-plane deploy predates merge a153b350. See MCP — Suspended tenants are refused
Suspended tenant's template still installs by link, starts a demo, or shows its /t/<slug> pagePre-#462 (merged 2026-10-05; fixes #459): suspend only flipped tenant status and app flags. After #462 the link key check returns the same 404 as an unknown slug, and suspend withdraws share + demo:<version> records (resume restores them; the demo record only if the template is still shared). If a record lingers after suspend, the step is best effort: check control-plane logs for templates: suspend/resume share update failed; the scheduled sweep withdraws it. See Template & app data: Suspended tenants
Studio /me 401 with only brilliant_session over https (prefixed cookie missing)Expected after #400 (merged): unprefixed name is read only on plain http. Use __Host-brilliant_session, or studioSessionCookieHeader() / STUDIO_SESSION_COOKIE from @brilliant/capabilities in scripts. See Control plane — Session cookie host-prefix
Studio / MCP / published-app login fails once with 400 invalid_state right after a deploy (retry works)Expected right after #463 (merged 2026-10-05) deploys to an env: OAuth flow cookies are now __Host- only on https with no fallback to the old name, so a login started before the deploy breaks once. If it keeps failing, check the browser actually holds __Host-brilliant_auth_state (or __Host-brilliant_app_auth_state) with Path=/, Secure, no Domain. See Control plane — Login-flow cookies host-prefix
Accepted prompt stranded / unanswered question lost after DO resetPre-#441: forms were in-memory only. Merged #441: durable forms + form-recovery (shutdown ≠ Stop); deadlines keep createdAt. See Conductor — Turn recovery · gotchas/opencode-and-turns.md
Duplicate usage / credit or double deployment after lost ingest responseMerged #441: frozen outbox + turn_usage_receipts / deployment_receipts; conflict bodies → 409. See Control plane — receipts
Staging conductor logs usage.reconcile_unattributable (“no context stored at step start; not billed”) at error level once per completed stepFalse alarm since #441: onUsage deletes the usageStep: context right after recording usage, so reset-boot reconcile found no context and logged before the outbox saw the ledger entry. Billing was correct. A missing usageStep: record does not mean a step was unbilled — check usageLedger first. Fixed by #457 (merged 2026-10-05; fixes #456): reconcile checks the ledger first (UsageReconcileStore.accounted) and skips ledger-held steps silently. Not live-verified on a side env; after the next staging conductor deploy, expect 0 such events per workspace with ledger/outbox counts unchanged. If they persist, the conductor deploy hasn't picked up #457 yet. See Conductor — Turn recovery
Conductor logs usage_outbox.refused with 400 model is required; an aborted or hook-failed Pi step is never billedSince #546 the usage reconciler rebuilt committed steps with model: "" (the stored generation context never has the model). Ingest refuses the body and the outbox never resends a refusal. Seen 9 times on staging and on prod after d95f16f9. Fixed by #653 (merged 2026-10-08 15:41 IDT, 8b0cd880, fixes #638), which reads the model from the committed pi.assistant entry, falls back to "unknown", and skips zero-token steps. Live-checked on side env fix-638: an aborted turn was rebuilt about 6 min later under claude-opus-5-5 with 0 refusals. Already-refused steps stay rejected; the fix does not resend them. Known cosmetic issue: rebuilt receipts can show duration_ms: 1. See Conductor — Pi Durable billing
A migration fails with postgres 25001 (“cannot run inside a transaction block”) or 55P04 (“unsafe use of new value”) during env:up or the staging/prod migrate stepSince #628 (merged 2026-10-08) scripts/env/migrate.ts runs each migration file as one batch, which is one implicit transaction. CREATE INDEX CONCURRENTLY can't run inside one, and a value added with ALTER TYPE … ADD VALUE can't be used later in the same one. Fixed by #665 (merged 2026-10-08 17:13 IDT), which runs such files one statement at a time, so on current main no special handling is needed. If you still see it, check that your branch includes #665. See Side environments — Faster env:up
Published app first load 403 missing_policy right after Publish succeededPre-#441: deployment report drained after the publish reply. Merged #441: publish waits for policy activation (activation_pending / deploy_in_progress); Artifacts never blocks; provider/activation failures settle non-success after 8 attempts and 30 minutes. See Conductor — Turn recovery
Mid-turn reconnect doubles counters / misses events/oc/api/event is live-only (no replay cursor). Reload session after reconnect and dedupe by event.id (#441 gotchas update).
Conductor logs no such table: _brilliant_thumbs on thumb.capture / thumb.mirror after destroyPre-#418: ThumbsManager cached table-ready across forget() wipe. Merged #418 always CREATE TABLE IF NOT EXISTS, and skips DO/R2 writes when isDestroyed after a capture that spanned destroy. See Conductor — Thumbs table after forget
Turn-end / published thumbnails (or /w/:id/screenshot) show “Loading…” / skeletonsPre-#373: capture at load + 800 ms. Post-#373 (merged): waits for networkidle2 + settle mark (html[data-brilliant-settled]); thumbs fail+retry if never loaded; route first attempt best-effort inside ~5 s. See Conductor — Screenshots wait for data
Side-env preview screenshot returns 502 capture_failedPre-existing #328; tracked in #385. The #373 settle helper is not yet live-verified on side envs.
Build run_script fails with Module not found "/workspace/.brilliant/scripts/<ts>.ts" / boards half-filledPush filter drops .brilliant/ (except installed.json), so a DO fs write never reaches the container. Merged #402 writes the script inside the exec (base64 + printf). See Conductor — run_script · Workspace sync
Kill switch set but app still servesWriter/reader must use lowercased app:<id>:disabled via disabledAppKey; mixed-case ids used to miss the flag (#250) — see Dispatch
Template demo 410 / ended / cross_site_writeToken must match path versionId and aud: brilliant-demo; expired → ended page; cookie writes from sibling demo. host need cross-site guard (#358) — see Template demos
Template prepare: description draft hangs, sample_data_invalid, or share link goneDraft wait is bounded (~1 min) with retry/manual fallback; sample_data_invalid names an unsupported schema construct (transform, union, dynamic shape…), so simplify it, pick Keep committed file, or No data; the full share link lives only in tab memory, so after a reload use Reset to get a new one (#442) — see Template & app data
Installed template is a draft with no database (d1_database_id null) or no sample rowsPre-#486 (merged 2026-10-05) the HTTP install routes answered 201 and left conductor init to waitUntil, which is cancelled about 30 s after the response. Since #486 they await init before 201, mark failures init_failed so the studio offers retry, and answer 502 "Check the app list and try again" if that outcome could not be recorded. MCP install_template still runs init detached (20 s tool deadline; #477) — see Template & app data
Demo banner Install has no key, or organization template has no Copy linkPre-#486 the demo URL dropped the #k= fragment and organization mode had no Copy. #486 (merged) carries the fragment into the demo and offers a keyless /install/<slug> Copy for organization mode; a demo opened without the key cannot recover it — see Template & app data
Generated-app typecheck: TS2307 on ./adapter / ./db.server, TS2305 createAppDb, while the image boots fineTemplate SDK files in the agent image are owner-only (COPY kept a umask-077 checkout's 600/700 modes), so setpriv-confined builder cannot read them. #498 normalises /opt/template modes after the overlay COPY; it reached main with #490 (merged 2026-10-05) but shared staging/prod need an image rebuild and deploy. A workspace needs the rebuilt image. See Conductor — Template SDK readable to builder
Publish shows "Publish stopped: the draft has type errors"Deploy's own typecheck refused the draft. Since #490 (merged 2026-10-05) Studio sends up to 20 tsc lines once to the chat session Publish started in, and the agent fixes them and re-runs the typecheck tool; it never republishes, so the user publishes again. The "Ask Brilliant in the chat" variant means the repair was dropped (Stop, switched app/session, busy or unknown chat). If the remaining errors are TS2307/TS2305 in template SDK files, see the row above. Logs show DEPLOY_TYPECHECK_FAILED app=… lines=… without compiler text. See Conductor — Publish typecheck failures go back to the agent
App or server code in a preview container calling http://brilliant.internal/llm/… or /langsmith gets 404Expected since #640 merged (2026-10-08, fixes #282): container egress no longer proxies model or LangSmith calls, because they ran on platform credentials with no metering or rate limit. App code should call /ai/* (metered by the control plane). Do not "fix" this by adding a model route back to brilliant.internal; the regression test guards the whole /llm and /langsmith prefix (#648). The coding agent is unaffected; it uses the in-isolate llm.internal path. See Conductor — Container egress

Coding agent (Pi Durable, #546) ​

OpenCode was replaced by Pi Durable behind PiHarness on 2026-10-07 (Conductor — Pi Durable). Rows elsewhere on this page that name /oc, OpenCode forms or the OpenCode event stream describe the old runtime. Full traps: gotchas/piharness.md.

SymptomReal cause / check
Unsure whether a turn has endedA turn is over when Pi's event stream shows run_end after the prompt's submission, or the submission event for its request id says done / unanswered (harness.wait(<prompt id>)). busy: false from GET session is only a snapshot: a queued follow-up starts a new run at once
Raw SQL on pi_submissions.request_id finds nothing; tools fail execution_identity_unknown_executionPi stores indexed strings JSON-encoded, so prompt p1 is "p1" with quotes. Compare via piIndexedString() (coding-agent/host/durable-inbox.ts) or json_quote() in SQL
Heartbeat or Pi wake-up never fires; alarm spy in a test sees the wrong thingTwo owners share one alarm through do/alarm-mux.ts. A spy on ctx.storage.setAlarm taken after new WorkspaceDO(...) is the mux, not the physical alarm; capture it before construction
DO resets at boot / deadlocks inside Lifecycle startupHarness.open runs under blockConcurrencyWhile: anything that needs another event on the same DO deadlocks, and slow startup hits the 30 s limit. Load skills and build the registry before lifecycle.start(). The DO must be addressed by idFromName (ctx.id.name required)
Gemini: "Custom fetch is not supported" or llm_fetch_unscoped@google/genai only uses the global fetch; the Vertex stream must run inside withLlmFetch (pi/llm-fetch-scope.ts). Base URL stops at .../llm/vertex/v1
Model says bash output was cut and points at Full output: <path>Output past 2,000 lines / 50 KB is saved to /workspace/.brilliant/tmp/bash-*.log, DO only (never pushed to the container). Open it with read (offset/limit), not grep/tail in a shell. Newest 10 kept, 8 MB cap
App stays reserved / second builder refused after StopStop frees Pi at once, but a detached tool body (typecheck, run_script, install_package, integrations) keeps running up to 10 min and keeps the actor reservation until it settles. Only deploy and bash are not detached
Approval card does nothing after a conductor deployForms of non-replay-safe tools are orphans after an eviction; boot cancels them (FormStore.cancelOrphans, reason interrupted). The question tool's form survives and its rerun finds it
Undo / prompt refused session_changed (409) or session_busyA staged undo commits by forking the Pi session; a prompt pinned on the old session is refused if an undo committed in between. Stage/commit refuse while a detached tool body runs
MCP get_turn reports an error for a turn the user stopped before the first tokenFixed by #578 (merged 2026-10-07, closes #573): each prompt carries Pi's stored outcome, so a Stop reads interrupted and a fault reads error with Pi's message. If it still happens, the conductor is older than #578 (no outcome) and get_turn falls back to the entries. See MCP — get_turn stored outcome
A Pi upgrade breaks billing / identity / undodurable-inbox.ts, execution-identity.ts, checkpoints.ts and usage-step-events.ts read Pi's tables with raw SQL; test/pi/pi-tables.test.ts is the canary

Workspace sync (#115) ​

If preview/HMR or agent file edits look wrong after the sandbox sync landed:

  • Confirm both sides with bun scripts/e2e/sync-live-check.ts --env <side-env> (reads DO and container).
  • A replaced/unhydrated container must not be pulled — hydration marker guards that path (GOTCHAS). Post-#295 (#267): start the container before the hydration check; mid-hydrate replacement refuses “hydrated”.
  • Agent commands must not share the sync SDK session (session pool); otherwise HMR waits behind tsc/build.
  • Image/syncd/entrypoint changes need an agent-image rebuild; Worker-only deploys still replace running containers.
  • Most of .brilliant/** is not pushed (IGNORED_BRILLIANT; only .brilliant/installed.json syncs). Anything else the container must run from under .brilliant/ has to be written inside the exec (merged #402 for run_script), not via deps.fs + pushFs(). Exception: root .brilliant/skills is push-only after #406 (addresses #403) — see Conductor — Skills push-only.

GPT-6.1 Sol / Bedrock Responses ​

From merged #173 / gotchas/models-and-gateway.md. Closed-weight GPT Sol needs Responses for every coding turn; three traps look like other failures:

SymptomReal cause
Mantle /v1/responses “does not support the /v1/responses API” (or us.openai.… “does not exist”)Mantle hosts GPT OSS only. Closed-weight GPTs use bedrock-runtime: gateway /aws-bedrock/bedrock-runtime/<region>/openai/v1/responses, model = system profile us.openai.gpt-6.1-sol (bare foundation id refused).
401 access_denied naming project/defaultResponses authorizes bedrock:InvokeModel on the project ARN too; profile-only IAM looks like a gateway auth bug. Fix in infra/pulumi/src/bedrock.ts.
Import / isolate crash on @opencode-ai/ai/providers/openai/responsesStock package throws Config.redacted at load; use the wrangler shim + per-model package: (same pattern as the anthropic shim).
Every GPT reply starts “I’m Brilliant”Old IDENTITY “Always identify yourself as Brilliant” — prompt now tells the model not to introduce itself.

See Conductor — Models & LLM gateway.

Sentry triage (conductor, #217) ​

Merged #217 — first Sentry triage of project brilliant (BRILLIANT-3..8; 1/2 were a local Playwright probe, studio guard not in this PR).

How to read events ​

SignalMeaning
Tag serviceWorker (conductor / control-plane / dispatch)
Tag routeStatic conductor handler label (/^[a-z-]{1,32}$/) — filter by this, not raw path
Tag statusHTTP status when reported from the response hook
Message Durable Object reset by a new Worker versionDO code/version reset (fixed string)
Message Dev server health timeoutPreview health check exceeded 60s
Message Confinement self-check failedSandbox confinement check
Message Exception message omittedEverything else (minimization — no free text)

Patterns that should no longer appear (or should be rare) ​

Old patternAfter #217
Stackless unhandled errors / CORS-less 500s from DO reset or lost container escaping stub.fetchClient gets waking 503 + x-brilliant-waking: 1; not reported
One Sentry event per waking-page poll (~every 2s) on preview proxy failureOnly start_failed / unexpected reported, once per workspace per 5 min
App-originated Vite/dev-server 5xx attributed to conductorMarked x-brilliant-upstream: app, not reported (#243)
500 bodies echoing String(err)Fixed codes / sanitized messages only
Burst of DO-reset events right after secrets:push / secrets-sync / conductor deployExpected since #488 (merged 2026-10-05): there is no idle wait, so every conductor deploy or secret push stops running turns ("This script has been upgraded", socket 1006). Only worry if resets continue well after the push
Staging CD fails at push secrets to workers: conductor is not idle (wait-for-idle exit 2); secrets not pushedPre-#488 only: the LangSmith idle check never cleared on a busy staging within 600 s, so merged changes didn't deploy. Fixed by #488 (merged 2026-10-05, owner decision), which removed the wait. If you still see it, the run is on a commit older than d99cdf5f; re-run CD from main. See Idle wait removed
Phone Home burns animation frames while the prompt is focused but no on-screen keyboard is upBefore #680 the keyboard-lift loop read layout every frame whenever the prompt was focused (~30 frames / 500ms with a hardware keyboard or before the soft keyboard arrived). Fixed in #680 (merged 2026-10-08): the loop runs only while there is a keyboard to follow. Regression: home-keyboard-lift.test.tsx.

Verify after secrets push ​

  1. Confirm when staging CD / secrets-sync / manual secrets:push for conductor ran; since #488 there is no idle wait, so resets right after it are expected.
  2. In Sentry project brilliant, check the window around the push for a burst of DO-reset / stackless conductor events — should be gone or sharply reduced.
  3. Still unproven until observed: workerd always forwarding retryable / durableObjectReset / overloaded across the DO RPC hop.

Contract detail: Conductor — Waking / DO-reset & Sentry · idle wait (removed by #488): Secrets & environments.

Publish typecheck gate (#745) ​

Fixed by #745 (merged 2026-10-10, fixes #740). Since #712 the publish typecheck in services/conductor/src/deploy/deploy.ts ran timeout 120 $TYPECHECK_CMD unquoted, so &&, || and redirects reached bun as literal args: on bun without check publishes 500ed as DEPLOY_ERROR unclassified_typecheck_failure, and on bun 1.4.3 the gate silently passed type-broken apps.

  • Now runs as timeout 120 bash -c "$TYPECHECK_CMD" with if bun check --help …; then bun check --no-pretty; else tsc …; fi (tsc only when bun lacks check).
  • Type errors now return 422 {"error":"typecheck_failed","message":"file(l,c): error TSnnnn: …"} and log DEPLOY_TYPECHECK_FAILED.
  • Rule (repo gotcha deploying.md): run compound shell command strings via bash -c, never as an unquoted expansion. The agent typecheck tool and template package.json scripts still have the old && || double-run of tsc.
  • Side envs: agents with only the side-env key bring envs up with env:ci; env:up now needs the Neon key (repo gotcha side-envs.md).

Observability ​

  • Sentry (#182, merged): studio SPA + control-plane / conductor / dispatch Workers. Public SENTRY_DSN on the Worker; studio builds take VITE_SENTRY_DSN from that same target. Missing DSN disables reporting. Privacy: SDK 11 dataCollection restrictions, sanitized events; Workers omit request data and arbitrary exception text. Replay is masked and blocks app iframes. Details: Control plane — chunk recovery & Sentry. Conductor triage (#217, header rename #243): waking 503 / x-brilliant-upstream: app / route tags / preview throttle — see Sentry triage. GOTCHAS: Sentry 11 API changes; web tests can overwrite web/dist so a production probe must rebuild after the suite.
  • Studio source maps (#191, merged — #180): hidden maps uploaded to Sentry then deleted from dist/ before public deploy; optional SENTRY_AUTH_TOKEN (CI-only). Studio sanitizer must keep sanitized debug_meta sourcemap images or debug-ID resolution fails. See Control plane — source maps.
  • Secrets Manager “not found” with Admin creds: a local AI-gateway tool can export AWS_REGION (and static keys) into the shell; unscoped aws then queries the wrong region and returns ResourceNotFoundException. Strip AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_CREDENTIAL_EXPIRATION AWS_ENDPOINT_URL_BEDROCK_RUNTIME AWS_REGION before trusting the error (GOTCHAS; noted in #191).
  • LangSmith: live tracing via OpenCode plugins (ADR langsmith-live-tracing.md). Staging/prod (and side-envs) use per-env project names/ids (LANGSMITH_PROJECT / LANGSMITH_PROJECT_ID) so traces stay separated — see Secrets & environments. The deploy idle wait that used LangSmith was removed by #488 (merged); LangSmith is now only for tracing and evals.
  • BI events: BI events (repo docs/bi.md) — lengths/ids/outcomes only, never prompt text. Emitter classes: BI events (#363 + #364 merged — visitor / browser / platform).

Escalation ​

Lead / team Slack with: environment name, Worker, request id / turn id, and whether gotchas/ already covers the symptom.

Conductor image push fails right after "Exporting tarball" with no error ​

Symptom: [deploy] conductor image push failed (1) after the build and content check pass. docker save to /tmp/conductor-img-*.tar failed because OrbStack's engine stopped mid-deploy (orb status shows Stopped; docker info can't reach ~/.orbstack/run/docker.sock), seen on a 99%-full disk. Fix: orb start, check df -h /System/Volumes/Data, rerun bun run deploy (cached layers, about a minute). Source: PR #783, gotchas/deploying.md.

Stale linked install in a worktree ​

A worktree that links main's install is only as fresh as main's last bun install. Branches that change dependencies, or just rebase onto a main that added one, fail at deploy bundling (e.g. Could not resolve "@maily-to/render") and can fail untouched tests (e.g. a lib0 wiki decoder test). Reinstall before filing a "main is red" issue: remove the worktree's linked dependency dirs and run bun install --frozen-lockfile --backend=copyfile. Source: PR #783, gotchas/testing-and-tooling.md.

Chat stuck on "Connecting to Brilliant…" or build window needs a reload ​

Since PR #809 (merged 2026-10-12):

  • Connecting no longer spins forever. When the session stream never boots, environment_preparing / workspace_not_ready still retry at a fixed 1s for a 5-minute window. Any other cause (e.g. admission_unavailable) backs off and then stops on the existing Reconnect state, roughly 45s in. Reconnect boots a fresh attempt.
  • Build window opens after an approved plan even if a send failed. The build turn stays open until a placed user row follows the approval. A failed send or a queued steer is only the tab's local copy, so it no longer closes the window. A steer sent mid-build closes it when the builder places it, not when it's sent.
  • Where the rules live. The same retry limits (preparing window, about 45s for a never-booted stream, about 4.5 minutes for a waking workspace, refused identity stops at once) live in one XState machine, chat/hooks/connection-machine.ts, in #936 (merged 2026-10-15 09:17 IDT, no visible change; a fresh connect starts the retry counts over). See Control plane: workspace connection machine.
  • Every 503 on agent and dev routes is logged as {"message":"route.unavailable", route, wsId, code[, reason]} (no tokens or bodies). If an app gets stuck connecting, search conductor logs for route.unavailable to see why. The internal reason header never leaves the conductor.

Related: Conductor & coding agent.

Turn ends after one step with media_type: Input should be 'image/jpeg', … ​

Symptom: a builder prompt with an attachment stops after one response with stopReason: error and Anthropic 400 invalid_request_error: messages.N.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'. Cause (pre-#822/#824): the attachment was a PDF or another non-model image type (such as AVIF) and the conductor sent it as an image (#821).

Fixed on main (2026-10-12):

  • PR #822 (merged, 9f772a29) stubs non-model image types (AVIF and the like) as text so the turn continues.
  • PR #824 (merged into #822's stack branch f40d31b6, not on main yet, so prod still stubs PDFs) keeps PDFs as application/pdf and rewrites them per provider (Anthropic document, OpenAI Responses input_file, Gemini native; Workers AI/Kimi gets an omit note). Same 3 MB inline cap as images.

If you still see this on an old deploy, convert the file to PNG/JPEG/WebP or paste text into the prompt. On current main, AVIF and other non-PDF unsupported types become a text stub; PDFs reach models that support them.

Related: Conductor: non-image stubs (#822), Conductor: PDF attachments (#824).

Prompt refused with thinking_level_not_offered ​

Since #820 each model accepts only its own effort levels (Opus 5.5 tops out at xhigh, Gemini 3.8 Flash at high; GPT-6 Luna, GPT-6.1 Sol and Muse Spark 1.3 go to max). The conductor answers 400 thinking_level_not_offered when a request pairs a model with a level it does not offer.

  • From the studio: the picker should have remapped a stale saved level to medium. If it did not, check for a mixed-version window: control-plane deploys before conductor, so a new picker level can hit an older conductor until both are on the same release.
  • From scripts or e2e: send a level from the model's list (see Control plane: per-model effort scales). Opus max is intentionally refused; use xhigh.
  • Auto mode (#905): with model: "auto", thinkingLevel must be a tier (quick, balanced, deep, brilliant); anything else is thinking_level_not_offered. A tier mapped in admin STUDIO_AUTO_TIERS to a model the conductor cannot run is model_not_offered. See Conductor: Auto tiers.
  • Opus turn ends with empty text and stop: length: that was Opus max burning the 64K output budget on reasoning. It is no longer offered; tracked in #827.

Related: Conductor: Muse Spark 1.3 and per-model thinking levels.

Studio smoke fails with doEntries=0 / clarify card open ​

Symptom (staging candidate → studio smoke, after #900): preview_components_budget, turn_finishes_minimal (“did not settle within 12m … doEntries=0”), and publish_live fail. The UI shows the clarify setup card (“Question 1 of 3 …” with Pick for me / Skip, just build it). Smoke never answers it, so no turn starts.

Cause: the clarify card holds the first prompt until a button is clicked. Older clearTurnGates only looked for Skip this question, which that card does not show.

Fixed on main: #913 (merged 2026-10-14 11:55 IDT, 67c87b62) clicks Skip, just build it and clears gates during the preview-budget poll. If you still see this on an older deploy, click Skip, just build it by hand, or re-run smoke on a SHA that includes #913.

Related: Verify & ship: studio smoke clarify gate. See also held turn fails after 3m (#918).

Studio smoke: turn never started / hold only in the screenshot ​

Symptom (staging candidate → studio smoke, before #918): turn_finishes_minimal fails after ~12 minutes with turn did not settle within 12m: doEntries=0. The Actions log does not say why the turn never started. The screenshot artifact often shows the real hold (credits refusal, clarify card, or similar).

Cause: smoke waited the full turn settle budget even when nothing owned the prompt (idle session, zero entries). Hold UI text lived only in the screenshot.

Fixed on main: #918 (merged 2026-10-14 13:42 IDT, merge f216de61) fails a visible billing refusal immediately (billingBlockedReason / [data-testid="billing-blocked"]), otherwise fails after 3 minutes of an unowned prompt (studioTurnNeverStarted / TURN_START_BUDGET_MS), and appends composer placeholder + role=alert text via turnHoldHint. Known historical holds were #907 (ci credits) and the clarify card fixed by #913.

Related: Verify & ship: turn never started, Studio smoke held by clarify.

Prod dispatch fails with SHA mismatch or sha must be 7-40 lowercase hex characters ​

Symptom (manual production dispatch): the release fails before deploying with either sha must be 7-40 lowercase hex characters, or SHA mismatch: staging is running <other sha>, but deploy target is <target sha>.

Fixed on main by #919 (merged 2026-10-14 13:42 IDT, merge f02981d5):

  • The dispatch sha is trimmed and lower-cased before the regex, so a pasted leading space or upper case no longer fails.
  • If staging serves a later main commit that descends from the target (GitHub compare status ahead), the gate passes, as long as the target still has its own green brilliant/staging-verified. The run log then lists the commits staging has that prod won't get.

If you still see SHA mismatch after #919: the error now ends with (staging is behind the target) or (staging is diverged the target). That means staging was rolled back or is on a different line, and the gate is right to refuse: redeploy staging at the target sha (gh workflow run deploy.yml -f sha=<full 40-char sha>) or dispatch prod at the sha staging serves, if that one carries a green brilliant/staging-verified. A mismatch with no status in parentheses means staging /health didn't report a full 40-hex sha, so no compare was tried. cannot compare <sha> with staging: … means the GitHub compare call failed; the gate fails closed, so re-dispatch.

Related: Verify & ship: prod gate accepts a staging that moved past the verified sha, Trust the run title, not head_sha (#513).

Prod gate: run "… is not a staging deploy of this sha" right after #963 (merged) ​

Symptom (manual production dispatch, after #963 merged 2026-10-15 14:58 IDT, merge 4647c374): the prod gate refusal includes run "deploy staging <sha>" is not a staging deploy of this sha, even though that staging run was green.

Why: the gate only trusts staging runs titled deploy staging: <description> (<full sha>). A run that finished under the old deploy staging <sha> title, or was in flight when #963 merged, doesn't match. (#962 was the same change, closed without merge.)

Fix: re-dispatch staging at that sha (gh workflow run deploy.yml -f sha=<full 40-char sha> -f description="…"), let it go green, then dispatch prod again. If the refused title already has the new shape, check that it ends with the full 40-hex sha you're promoting, not a short one or another sha.

Related: Verify & ship: deploy runs are titled by what they deploy (#963), Prod dispatch fails with SHA mismatch.

First-build window: logo over the app, or full preview then shrink (#924, merged) ​

Symptoms (before #924, merged 2026-10-14 14:12 IDT): during a brand-new app's first build, the full-pane logo (PreviewStarting) can sit on top of a build window that already drew the app, until the agent writes its first file. Or, if the builder asks a question mid-build, the window grows into the full preview and then shrinks when the answer resumes the turn.

Cause: PreviewStarting was tied to firstBuildPending (clears on first write), not to whether the window was open; and a pending question sets isStreaming false, so useCanvasTab treated the first build as ended.

Fix (merged): #924 (merge d96818ed) shows PreviewStarting only before the window opens, and treats a pending question as still building for the window. On main the sequence is logo, then window with logo, then window with app, then one grow into the full preview. If you still see the logo over a drawn app or a grow-then-shrink, check that the build includes d96818ed. A build with no window at all is a different, still-open issue: a failed first older-history page fetch leaves historyComplete false with no retry.

Follow-up (merged): remaining flicker from a too-small canvas or three competing logos is fixed in #934 (merged 2026-10-14 20:22 IDT, merge 0e96a0ec): one XState machine owns the canvas; caption = chat row. See Control plane: builder preview XState machine. If you still see mid-build window → growing → full or three competing logos, check that the build includes 0e96a0ec.

Related: Control plane: first-build window states, Builder preview XState machine (#934, merged).

Publish: error/success from another app, or Live stuck after unpublish (#935, merged) ​

Symptoms (before #935, merged 2026-10-15 09:56 IDT): switch apps while a publish is in flight and the left-behind publish's error or "Up to date" beat can paint on the app you switched to (type-check failures were already dropped; other failures were not). Or, after an unpublish in the same tab, the Live tab still reads Live because it followed the mutation's lasting isSuccess.

Cause: publish UI state lived in refs, timers, and React Query mutation flags in usePreviewDeploy, not one coherent machine keyed to the current app.

Fix (on main since #935, merge c056aae6): one XState publishMachine owns the beat, error, in-flight run, and awaitingLive bridge; app switch resets the machine (switching back to an app whose publish is still running picks it up); a deploy that throws still ends the publish; Live uses that bridge instead of mutation isSuccess. If you still see these symptoms on a build that includes c056aae6, it is a new bug.

Related: Control plane: Publish XState machine (#935, merged), Builder preview XState (#934).

Draft preview: stale URL marked loaded, or reload spinner after app switch (#937, not on main yet) ​

Symptoms (still possible on main; #937 merged into the publish-machine branch, not main): a document probe started for an old preview URL can still resolve after you switched apps or URLs, and mark the new URL as loaded. Or the reload spinner's 1.2 s setTimeout keeps firing after an app switch or unmount.

Cause: draft readiness lived in three hooks (useDraftPreviewLifecycle, usePreviewWaking, usePreviewElapsed) plus PreviewPane flags and an uncleared spinner timer, so probes and timers were not keyed to one machine lifecycle.

Fix (in #937, merged 2026-10-15 into publish-machine only; needs a new PR to reach main): one XState draft-preview-machine owns frame readiness, waking reads and the spinner; stale probe results for a past URL are dropped; the spinner is a delayed transition that stops with the frame.

Related: Control plane: Draft preview readiness (#937, not on main yet), Builder preview XState (#934).

Prod answers billing_not_configured (#1023, merged) ​

Until Stripe is fully turned on for prod, every prod billing read and command answers billing_not_configured. That is expected, not a bug. #1023 (merged 2026-10-19 13:47 IDT) declares the live Stripe account in Pulumi.prod.yaml, but the error only goes away after all of these happen in order:

  1. infra.yml is run for stack prod and the infra-production reviewer approves (creates only; any update, delete or replace means stop).
  2. The secrets-worker workflow is run for prod, so it binds the new STRIPE_* names (STRIPE_WEBHOOK_SECRET from the apply, STRIPE_SECRET_KEY already in the store).
  3. Prod is deployed.

If it persists after step 3, check that both names exist in prod's Secrets Store and that the secrets Worker was redeployed after the apply. Related: Hosting & Pulumi: Stripe on prod (#1023, merged).

app_ai.stream_settle_failed in conductor logs (#1022, open) ​

Now proposed in #1022

#943 was replaced by #1022 (open), which keeps this log line. Under #1022 a failed drain settle no longer leaves the operation free: it stays running, and the usage reconciler charges its stored ceiling about 30 minutes later under ceiling:<operationId>. The drain also stops after 20 s and settles the usage it saw. The text below describes #943's behaviour.

What it means (once #943 lands; still open): an app's /v1/ai/stream call ended, and the conductor's drain tried to charge its operation through POST /internal/billing/settle, but both attempts (one retry on a transport error or 5xx) failed or got a non-2xx answer. The log line carries operation_id and status (0 means the request itself failed).

Effect: if the reader had already cancelled before done, that operation stays uncertain and is charged 0, the same as before #943. If the stream was read to done, the control plane's own settle already charged it, so nothing is lost.

Look at: control-plane health and the ops key the conductor sends (x-brilliant-ops-key). A 4xx usually means the operation id or body was refused rather than a transient failure.

Related: Billing: unsettled AI streams are charged a ceiling (#1022, open), Billing: cancelled AI streams (#943, replaced).

Symptoms: the studio sidebar lists projects or apps in a different order on another browser or device; a private window shows plain name order; the order resets after clearing site data.

Cause: since #933 (merged 2026-10-15 09:56 IDT, 925ae6c7) the sidebar sorts by latest edit, but the times come from this browser's localStorage (brilliant_project_opened_at), stamped when you open an app from the sidebar or a builder turn finishes. The server has no edit timestamp, so another browser has its own stamps, and one with none (private window, cleared site data) shows name order.

Expected after #933: not a bug. Opening or editing an app in that browser moves it (and its project) to the top again.

Related: Control plane: Studio sidebar order by latest edit (#933). Open #986 moves order to server last_edited_at so opens no longer reorder.

Once #986 merges: the cross-browser / private-window name-order behaviour from #933 should stop for sidebar, gallery, and edit bylines — order comes from apps.last_edited_at on the server. Opening an app alone will not move it. Recents still follow opens in this browser.

Until then / after deploy with no backfill: apps never edited since the migration still sort by creation time. Order may not change mid-turn until the project list refetches.

Related: Control plane: server last-edited order (#986, open).

Slack alerts stopped after the workspace move (#993, merged) ​

Symptom: after a control-plane prod deploy, no signup, app, or contact messages arrive in Slack, or the "Talk to us" form returns a 502 error.

Checks (PR #993, merged 2026-10-17 08:23 IDT by yoni-monday, merge commit be1cd73a, final head c0e15b5f; live after the prod deploy):

  • Alerts now go to #incoming in the brilliant.ai workspace (C0CA11H6XK6), not the old channel C0C8NVB27JR, and not #alerts (C0C9Z4ZE3DF), which an earlier version of the PR targeted. Look in #incoming first.
  • Prod SLACK_BOT_TOKEN and the channel must change in the same deploy. Old code with the new token, or new code with the old token, both fail. Prod CD's secrets:push runs before the code deploy, so a short gap right after the push is expected. If it persists, check which token the running prod worker has against which channel the deployed build uses.
  • The token must belong to the Brilliant Slack app (A0C9Z6HJ1L1) in the brilliant.ai workspace, and that app must still be in #incoming.
  • After a rollback, alerts break again on the next deploy unless the old token was also put back in the store (rollback restores the Worker version's secrets, not the store).
  • Look for slack_app_alert_* warn logs (for example slack_rejected or missing_token), as in the #946 entry.

Related: Control plane — Slack alerts move to #incoming (#993).

Missing Slack alert for a new or public app (#946, merged) ​

Symptom: no message in the signup-alert channel when a production app is created or made public. (That channel becomes #incoming in the brilliant.ai workspace with #993, merged; live after the prod deploy.)

Checks (PR #946, merged 2026-10-15 12:13 IDT, 90294b31; live once the control plane is deployed to prod):

  • Alerts are prod-only (BRILLIANT_ENV === "prod"). Staging and side envs never post.
  • AI-named Studio apps (namingPending) are silent at creation; the alert fires once when POST /internal/apps/:id/launch-report applies the AI title. A failed launch report that leaves no name posts nothing.
  • "Made public" means the first transition to link + requireSignIn: false. Sign-in links and role tweaks on an already-public app do not post.
  • Template installs, agent sibling apps, and the legacy Workflow naming path are intentionally not covered.
  • Failures are best-effort: look for slack_app_alert_* warn logs (missing_token, app_lookup, http_error, slack_rejected, etc.). A Slack outage does not fail the create or sharing request.

Related: Control plane — Prod Slack app alerts (#946).

Not delivered prompt slides to the bottom of chat (#947, merged) ​

Symptom: a prompt fails to send; its bubble and the red Not delivered — send it again note stay pinned under the latest chat rows while the run keeps writing (tool rows, answers) and later turns arrive.

Cause (before #947, merged 2026-10-15 12:13 IDT): piToRaw drew every state.sent prompt after the whole transcript. In-flight prompts belong there; failed ones never get a Pi user entry, so they stayed in that tail.

Fixed on main (#947): a failed prompt records SentPrompt.after (newest entry id at failure) and is drawn just before the first later entry, so the row keeps its place. A resend of the same id clears the anchor and shows at the bottom again as in-flight. If a failed bubble still drops to the bottom, check that the environment is running a build that includes merge commit e45c1ac5.

Related: Control plane — Failed prompts keep their place (#947).

No Delete app… in the sidebar or gallery (#950, merged) ​

Symptom: the app row / gallery card menu has no Delete app… (or it is greyed out).

Checks (PR #950, merged 2026-10-15 12:15 IDT, 083106ce):

  • Only the app owner gets the row. Non-owner builders, viewers, and demo apps (no builder) never see it.
  • While the app is building, the row stays but is disabled ("Can't delete while the app is building"). Wait for the build to finish.
  • Delete from the editor app-name pill still works for owners the same way as before #950.

Related: Control plane — Delete app from the left pane and gallery (#950), Share & Invite — deletion API (#633).

A deleted app came back in the sidebar or gallery (#985, merged) ​

Symptom: after Delete app… from a sidebar row or gallery card, the app vanished and then reappeared, with a red toast Couldn't delete <name>. ….

Why (PR #985, merged 2026-10-16 16:45 IDT, ced4abf5): the sidebar and gallery remove the app optimistically as soon as you confirm. When the server refuses the DELETE, the list refetches and the app comes back. The toast text after the app name is the server's reason. A common one is "Shared with N apps — stop sharing first": stop sharing the source app, then delete again. A revision conflict (someone changed the app meanwhile) also lands here; retry.

Related: Control plane — Optimistic app delete (#985), No Delete app… in the sidebar or gallery (#950).

App rename keeps showing the old name (#1003, merged) ​

Symptom: in the editor, Rename… from the app name menu closed the field without an error, but the app pill still showed the previous name until a reload. The rename had actually saved.

Why (PR #1003, merged 2026-10-17 11:21 IDT, 1912b491): the header reads the app's detail query ["app", id], and the rename only refreshed the ["apps"] lists. The fix writes the saved name and revision into the detail query through storeRenamedApp, after cancelling any in-flight refetch that could put the old name back. If you see this again after #1003, check that the code path doing the rename goes through storeRenamedApp (or useRenameApp) rather than calling renameApp directly.

Related: Control plane — App rename shows the new name at once (#1003).

Studio $exception events never reach PostHog (#958, merged) ​

Symptom: after #953 (PostHog error tracking) and before #958, uncaught studio errors and unhandled rejections produced no $exception in PostHog. The browser console showed: Event '$exception' had its 'token' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped.

Cause: the $exception allowlist from the #953 review deleted every non-$ property it did not list, including token and distinct_id. PostHog requires both for ingestion.

Fix (merged 2026-10-15 13:55 IDT, merge b7b594e0): #958 (posthog-fix-exception-token, head 12424bcd) adds INGESTION_PROPERTIES so those keys are never removed, and the unit fixture asserts them. Confirm a staging $exception in project 666164 (redacted message, stack frames kept).

Related: PostHog — keep token and distinct_id (#958, merged), PostHog — error tracking (#953).

Every studio error in PostHog says [Error details redacted] (#965, merged) ​

Symptom: after #953, every studio error issue in PostHog has the message [Error details redacted], and some frames show ? with no source or chunk id.

Cause: #953 kept the Sentry-era rule that every error message becomes a fixed string. The ? frames come from stripTelemetryUrl encoding the engine's <anonymous> as /%3Canonymous%3E.

Fix (merged 2026-10-15 15:42 IDT): #965 (merge cd2f58b4) keeps messages, scrubbed by scrubErrorText in packages/capabilities/src/error-text.ts, and leaves engine frame names alone. Errors from builds before that deploy still show the redacted text. If a new error is still redacted, check that the deploy has the merge. To verify, throw an error on the studio page on staging and check the message and frame in PostHog project 666164. A symbolicated frame still needs POSTHOG_CLI_API_KEY in the GitHub Environments. Never build an error from a prompt or an API body.

Related: PostHog — keep the message, scrub secrets (#965, merged).

No theme picker in the studio (#956, merged) ​

Symptom: the studio rail has no palette or appearance button, the phone account sheet has no Theme row, and there is no way to switch to Warm stone or turn off the painted logo and prompt ring.

Cause: this is intended. #956 (merged 2026-10-15 14:14 IDT, merge 0f778a58) removed the theme picker. Cool slate is the only studio theme, and apps/control-plane/web/src/lib/theme.ts always sets data-theme=cool-slate.

Note: Warm stone styles still exist in packages/studio-ui/src/styles/theme.css because the home prompt box and the project composer pin it for the painted prompt ring. Seeing Warm stone colors there is expected, not a leftover picker setting.

Related: Control plane — Cool slate is the only studio theme (#956, merged).

App editor spams feature_disabled on /workflows (#964, merged) ​

Symptom: with the workflows flag off, opening an app in the studio (or leaving a turn running) produced a stream of GET /workflows?limit=100 → 403 {error:"feature_disabled"}.

Cause: the app editor listed and polled workflows on every app page even when the flag was off. Settings › Workflows was already gated by #505; the editor hook was not.

Fix (merged 2026-10-15 15:28 IDT, merge ab7c1b11): #964 makes useWorkspaceWorkflows idle while the flag is off (no fetch, no poll). With the flag on, list + poll behaviour is unchanged.

Related: Workflows — app editor skips list (#964, merged).

Login ends on raw JSON invalid_state after the Auth0 callback (#969, merged) ​

Symptom: a browser sign-in comes back from Auth0 to /auth/callback (or /auth/app/callback) and shows 400 {"error":"invalid_state",…} as raw JSON. Usually the state cookie is missing or doesn't match, for example after two logins in one browser or a login that outlived its 10-minute cookie.

Fix (merged 2026-10-15 16:59 IDT): #969 sends browsers with a valid studio session to the invitation the raced login was for (else the MCP authorize return, else /), otherwise restarts the login once (/auth/login?keep=1, 10-minute guard cookie), and after that shows a "Sign-in interrupted" notice with Try again. Non-browser callers still get the JSON 400. The code is never exchanged on these paths. Prod gets it with the next prod deploy that includes #969; until then, retrying the login from the start works there.

Related: Control plane — lost callback state (#969, merged), and the one-time post-deploy invalid_state from #463 in the table above.

Published app URL changed after a republish (#994, merged) ​

Symptom: after republishing on staging or prod, an app that used to open at https://<script>.<apps-domain>/a/<script>/ now redirects to https://<name>.<apps-domain>/, or two apps with the same name get notes and notes-2.

Why (PR #994, merged 2026-10-17 09:32 IDT): publishes on an apps domain are built at / and served at the app's public host label. Old links keep working through a 308 for page loads. Labels are unique across all tenants, so a second app with the same name takes the next suffix. If a root-published app's assets 404 after a rollback, check that the conductor got publish_base: "/" from the control plane's workspace app list. If a root publish stays in deploying and ingest logs 503 activation_pending, the control plane couldn't store the public host yet; the conductor's retry of the same body should clear it. Details: Dispatch — Public host at / (#994).

Staging deploy e2e fails at step 4: publish answered no /a/<script> url (#1006, merged) ​

Symptom: the staging deploy run on main fails in e2e step 4 with publish answered no /a/<script> url: https://e2e-….brilliant-app.rocks/, and step 5 (published app) never runs. Steps 1 to 3 pass, the error is the same on every run, and candidate and smoke publish_live stay green.

Why: since #994 (cd675e63), staging publishes answer a root host URL, and the old step 4 only accepted the /a/<script>/ path form. It's not a timeout, secret, or seed flake.

Fix (merged 2026-10-17 14:17 IDT): PR #1006 makes step 4 accept the root host on the target's apps domain and has step 5 open the returned URL. If you see the newer error publish answered no live app url: <url>, check that the URL's domain matches the target's appsDomain in scripts/env/lib/targets.ts (or the APPS_DOMAIN you passed). Details: Verify & ship: staging e2e accepts a root publish URL (#1006).

A new studio page returns 404 (#998, merged) ​

Symptom: a new top-level studio route renders fine in the browser but the document comes back with HTTP 404 (visible in DevTools, monitors or crawlers), or an unknown path like /billing that used to be 200 is now 404.

Why (PR #998, merged 2026-10-16): the control-plane worker now answers 404 for any top-level path that isn't in STUDIO_PAGES (apps/control-plane/src/lib/studio-pages.ts). Add the new root there; the web router reads the same list. Paths under an existing root (like /settings/...) and server-rendered prefixes (/auth/, /oauth/, /v1/, /admin, /internal/, /w/, /wiki) aren't affected. Details: Control plane — unknown studio pages return 404 (#998).

favicon.ico returns HTML or 404 (#999, merged) ​

Symptom: https://app.brilliant.ai/favicon.ico comes back as text/html, or https://login.brilliant.ai/favicon.ico is 404.

Why (PR #999, merged 2026-10-16): on the studio, a missing file used to fall through to the SPA shell at 200. The control plane now has a /favicon.ico route that serves /brand/brilliant-favicon-32.png, so HTML there means the deployed control plane is older than #999. The login host is different: login.brilliant.ai is Auth0's custom domain on a DNS-only CNAME, Auth0 returns 404 (x-auth0-not-found: 1) for /favicon.ico, and we can't serve files there without proxying, which Auth0 forbids. Treat the login 404 as expected. Details: Control plane — studio /favicon.ico (#999).

www.brilliant.ai returns Cloudflare 521 (#997, merged) ​

Symptom: https://www.brilliant.ai/ (or www.brilliant.rocks) shows a Cloudflare 521 or doesn't resolve, while the apex works.

Why (PR #997, merged 2026-10-17): www isn't a Worker. Prod's www.brilliant.ai was a hand-made proxied A record pointing at a dead origin (52.60.87.163). #997 declares a proxied AAAA 100:: record and a 301 zone redirect to the apex in Pulumi, but nothing changes until the infra apply runs. A 521 on prod after the merge means the prod apply hasn't run yet. If the prod apply fails creating the www DNS record, the old A record is still there: delete it (record 78a97e0f… in the brilliant.ai zone) and re-run. Details: Hosting & Pulumi — www redirects to the marketing apex (#997).

robots.txt still blocks AI crawlers or has Cloudflare managed content (#1013, merged) ​

Symptom: https://brilliant.ai/robots.txt (or staging) still disallows GPTBot, ClaudeBot and similar, or contains a # BEGIN Cloudflare Managed content block.

Why (PR #1013, merged 2026-10-17): the block comes from the zone's Cloudflare bot settings, not the site build. #1013 turns it off in Pulumi, but nothing changes until the infra apply runs. If the managed block is still there after an apply, the remainder is Bot Preference Sync, which the current Pulumi provider can't set. Staging serving Disallow: / for everyone is expected; only indexable (prod) builds allow crawlers. Check steps: Hosting & Pulumi — AI crawlers allowed (#1013).

Infra apply fails 403 on PUT …/bot_management (#1013; #1024 merged) ​

Symptom: the Pulumi infra apply fails creating the zone's bot settings with 403 on PUT /zones/<zone id>/bot_management.

Why (PR #1024, merged 2026-10-19; infra/pulumi/BOOTSTRAP.md now lists both grants): the AI-crawler settings from #1013 need Zone > Bot Management > Edit on the site zone (brilliant.ai, brilliant.rocks), and the stack's Cloudflare API token didn't have it. Add that grant to the token, then re-run the apply. A similar failure setting Always Use HTTPS or HSTS on the apps zone (brilliant-app.ai, brilliant-app.rocks, from #1015) means the token is missing Zone > Zone Settings > Edit there. Details: Hosting & Pulumi — AI crawlers token permission.

Semantic-lint report cut at 64 KiB (#981, merged) ​

Symptom: the semantic-lint section is missing from a typecheck result even though the flag is on, and the conductor logs semantic_lint.skipped stage=report bytes=65513 (or another size near 64 KiB). Running the same bundle by hand with output redirected to a file works.

Why (PR #981, merged 2026-10-17): in a container exec, process.stdout.write(report) followed by exit drops everything past the pipe buffer, and the exit code is still 0. #981 writes the report with an awaited Bun.write(Bun.stdout, …); the repo records this in gotchas/containers.md. Any container script that prints a large result and exits right away can hit the same thing.

Related: Semantic lint (Jev linter).

Connect in a published app fails with 500 22P02 (#1010, merged) ​

Symptom: in a published app set up so every user connects their own account, the end user's Connect click fails every time. POST /v1/integrations/<provider>/connect returns 500 and the logs show Postgres 22P02 (invalid uuid). Once that's fixed, a successful connect lands on the studio (/?connected=1) instead of back in the app.

Why (PR #1010, merged 2026-10-17 21:11 IDT, fixes #992): the app context token's app claim is the Worker script name (app-<hex>), and the connect route wrote it raw into the uuid column integration_connections.app_id. The OAuth callback also ignored the app's returnTo. On a control plane built before merge 29a2a0e7, per-user connect from published apps is broken for every provider.

After the fix: the claim is resolved within the token's tenant, and an unknown or other-tenant claim answers 404 app_not_found. The callback returns the user to the app at returnTo with connected=1. If you see a close-this-tab page instead, the app's absolute URL couldn't be built (app row gone, or a path-shaped URL with no DISPATCH_HOST). If you still see 22P02, check that the deployed control plane includes 29a2a0e7. Details: Composio overview: per-user connect from a published app (#1010).

"Sign in with a different account" lands back on Access Denied (#1016, merged) ​

Symptom: on a published app's Access Denied page, clicking Sign in with a different account goes straight back to the same page, signed in as the same account, with no chance to pick another one.

Why (PR #1016, merged 2026-10-18 17:24 IDT, merge 6ca6b754): the button's /auth/app/login link had no reauth=1, so the authorize request didn't send prompt=login&max_age=0 and Auth0 reused its SSO session.

After the fix: the button forces Auth0's login screen. If it still loops, check that the deployed control plane includes 6ca6b754. If the visitor uses Google with only one Google account signed in, Google can still pick that account on its own; have them sign out of Google or add the other account in the browser first. Details: Control plane: #1016.

Invited app User can open but every save is forbidden (#1017, merged) ​

Symptom. Someone invited as User opens the published app, then create/update fails with forbidden (example: service-portal "You don't have permission to open tickets … Reason code: forbidden").

Cause (before #1017, merged 2026-10-19 08:16 IDT). sharingApi.invite sent dataRole: "view" for every invite, and no screen could set a write data role.

Now. New User and Builder invites get own (add and edit their own). If the person still can't save:

  1. Open the app's Invite modal and check their row. If it says View only, they were invited before the fix (or someone picked View only). Change them to User; that writes own.
  2. If their row says User but they inherit access from Everyone at the account, check the General access row. "joins as View only" means the app or project is open to the account at View; pick User there.
  3. Make sure the deployed control plane includes merge 0bed6bed.

Details: Share & Invite, Permissions & app data.

App login says invalid_return_to for an http:// URL, or evals /login?key= returns 401 (#1015, merged) ​

App login. Since #1015 (merged 2026-10-18), return_to must be https unless the host is localhost, 127.0.0.1 or *.localhost. An http://<app>.brilliant-app.rocks/... or http://...dispatch.local/... return URL is rejected on purpose, because the callback appends a 7-day brilliant_token. Use the https URL. Details: Dispatch (#1015).

Evals dashboard. EVALS_KEY is accepted only in a POST /login form body. GET /login?key=... (and a query key on POST) now returns 401. Sign in through the /login-required form, or POST key=<EVALS_KEY> as application/x-www-form-urlencoded. Details: Agents & evals (#1015).

Builder chat shows "couldn't be rendered" for a diagram, or a raw mermaid block (#1014, merged) ​

Since #1014 (merged 2026-10-18), a closed fenced mermaid block in a builder-chat reply is drawn with Pele.

  • "Drawing diagram…" that never finishes means the fence never closed. The card only draws a closed fence.
  • "Couldn't be rendered" means Pele couldn't parse the Mermaid syntax, or the sanitized SVG couldn't be inserted. Open "Show source" to see what the model wrote. A corrected source on the same card draws again.
  • Images in a diagram are missing on purpose. Rendering runs with images off so a diagram can't fetch a remote URL.
  • A wide diagram looks tiny or squeezed on a phone means Pele didn't lay it out again at the narrower width and only CSS shrank it. The card should redraw through a ResizeObserver; the mermaid-diagram.test.tsx browser test guards this since #1019 and fails with "Pele did not redraw at phone width". Details: Control plane (#1019).
  • No diagram in a published app is expected: the end-user app template has no markdown chat renderer. Operational agent threads do draw a fence, but their prompt doesn't tell the agent it can emit one.

Details: Control plane & studio (#1014).

Staging: invite email not arriving (reported 2026-10-19) ​

Reported in the Brilliant Daily on 2026-10-19 (Slack #brilliant-ai ts 1792398743.018189): inviting someone to an app on staging sent no invitation email, so they could not join. Cause not confirmed yet; proposed as a fix task. Where invitation emails come from: Share & Invite and Transactional email.

Home screen: templates show for a second, then disappear (reported 2026-11-02) ​

Reported in the Brilliant Daily on 2026-11-02 (Slack #brilliant-ai meeting summary "Brilliant Daily, Nov 2, 2026" (ts 1793611281.823869)), seen live in the meeting: templates on the home screen appear for about a second and then disappear. Cause not confirmed yet; proposed as a fix task. How templates are listed and installed: Template & DB: shareable templates.