Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(screen-pool): spell out the deploy order the shared secret depends on

nirholas396b92a1b76b
diff --git a/workers/agent-screen-pool/README.md b/workers/agent-screen-pool/README.md
index f70ee1f20..b3c086310 100644
--- a/workers/agent-screen-pool/README.md
+++ b/workers/agent-screen-pool/README.md
@@ -143,13 +143,23 @@ both claim the same watched agents and double-push frames. Budget ~350 MB per
concurrent page, so raise `--memory` alongside `MAX_BROWSERS`.
The shared secret lives in Secret Manager as `screen-worker-secret` and is mounted
-by the deploy step. The API side must carry the same value:
+by the deploy step. The API side must carry the same value, and the order matters:
-```bash
-gcloud run services update three-ws-api --region us-central1 \
- --project aerial-vehicle-466722-p5 \
- --update-secrets=SCREEN_WORKER_SECRET=screen-worker-secret:latest
-```
+1. Deploy the API image first, so the running revision carries the pool-liveness
+ gate in [api/agent/watch-status.js](../../api/agent/watch-status.js).
+2. Then hand the API the secret (config-only update, merges into the env set):
+
+ ```bash
+ gcloud run services update three-ws-api --region us-central1 \
+ --project aerial-vehicle-466722-p5 \
+ --update-secrets=SCREEN_WORKER_SECRET=screen-worker-secret:latest
+ ```
+
+3. Then submit the build above.
+
+Setting the secret on an API revision that predates the liveness gate would make
+watched cards claim "warming up" with no pool running, which is the exact thing
+the gate exists to prevent.
Any other always-on container host works the same way (one process is plenty).
There is no GitHub Actions path: this repo does not use GitHub Actions.