Alpha deployment handoff: fresh Eliza → dstack TEE (Shaw)
Goal
@lalalune — handoff for the Alpha Phone deployment, related to #31018 (Project #20).
The updated plan is a separate, fresh Eliza agent, with Shaw handling dstack and the real TEE deployment. This is not a migration of the existing VPS agent. Keep the VPS, local development runtime, and existing AWS enclave workloads untouched. Ordinary host startup is preparation, not enclave completion.
Prepared so far
- Verified SSH access to the AWS builder and runtime hosts. Installed isolated, user-local Node 24.15.0 and Bun 1.3.14 on both; no global runtime replacements.
- Cloned fresh upstream Eliza
develop, pinned to 407802b334aa4c43d164bf9b0ee8e63e53c2d40f. No VPS credentials, agent history, or configuration copied. - Completed frozen dependency installation, root postinstall/workspace builds, and the production web build on the builder. Fused inference setup was deliberately skipped; native/local-model functionality is not accepted.
- Verified the self-hosted UI through a loopback SSH tunnel and completed fresh onboarding on the builder. Health reported runtime/database healthy, 25 plugins and 72 services with no reported failures. Deferred startup was still pending at the last detailed check.
- Selected a separate Cerebras key for this agent. It has not been supplied/configured, so health flags are not proof of a real model reply.
- Transfer of source and built dependencies to the runtime host is in progress at handoff. No persistent Alpha service or TEE deployment has been started there. Treat staging as unverified until the transfer and integrity check finish.
Self-hosted configuration learned during prep
The default production UI initially offered the cloud route. The verified self-hosted path used:
# At web build time:
VITE_ELIZA_ENABLE_RUNTIME_CHOOSER=1 bun run --cwd packages/app build:web
# For the loopback-only builder smoke test:
ELIZA_API_BIND=127.0.0.1
ELIZA_API_PORT=47842
ELIZA_PORT=47842
ELIZA_EXTERNAL_BASE_URL=http://127.0.0.1:47842
ELIZA_SKIP_LOCAL_EMBEDDING_WARMUP=1
ELIZA_SKIP_LOCAL_VOICE_WARMUP=1Use a separate persistent ELIZA_STATE_DIR. Leave ELIZA_FORCE_INJECT_TOKEN unset. The loopback URL and warmup skips are smoke-test settings, not the final deployment contract. Private access details and logs stay outside this public issue.
Plan for Shaw
- Confirm the dstack target and packaging. Choose the supported TEE platform, image/build recipe, and networking/storage interfaces; pin the source and final image digest. Reconcile #31018's original Nitro/NSM/KMS plan with the actual dstack architecture rather than assuming they are interchangeable.
- Configure the separate agent securely. Inject its own Cerebras credential through the approved secret channel. Select model and embedding configuration explicitly; define external speech providers before voice testing. No VPS key reuse, secrets in Git, or Google Workspace integration for this agent.
- Deploy and harden. Configure persistent state/database, secret delivery and rotation, outbound provider access, authenticated ingress, restart policy, and rollback. Preserve existing enclaves/services. Implement and verify real attestation according to the selected dstack platform.
- Publish the endpoint/auth contract needed by phone pairing: agent/account binding, authorized routing, and supported client access. Coordinate with #31021; make the hosted agent available for #31022.
- Run acceptance below and attach evidence before marking deployment complete.
Acceptance / still open
- Runtime staging verified; reproducible image and persistent service/deployment recorded.
- Real Cerebras request/reply with trajectory evidence, plus provider-failure behavior.
- Restart preserves agent identity and conversation/state; backup/restore and rollback checked.
- Authenticated endpoint works; unauthorized access is rejected.
- Actual TEE deployment and attestation policy verified, including rejection behavior.
- Cold/warm startup and idle/active resource usage measured.
- Phone pairing and voice tested through real clients, not just HTTP health probes.
Related work and schedule
Deployment is scheduled Sep 14–17; routines #31022 follow Sep 18–21, and pairing #31021 Sep 22–25. Flag any dstack dependency that changes these dates.
Trajectories #17030 still need acceptance evidence and closeout. Developer viewer, context/token, memory, routing, storage, and recovery work is tracked separately in #31014, #31055, #31320, #31321, and #31324. Those review branches are not implied to be included in this pinned Alpha checkout, and local test results are not AWS/TEE acceptance. Keep those changes gated separately rather than expanding this deployment handoff into a migration or unreviewed merge.
Source: elizaOS/eliza