Phoenix is a resurrection kernel for agent work. Workers are disposable processes; durable state lives in CockroachDB. The demo domain is a stuck checkout refund—not a chat UI.
STORE. Creating work embeds the payload, opens a works row, and seeds the path for step/act/outbox records. Playbooks and past episodes already live in two distributed vector indexes keyed by tenant_id and kind. Side effects go through an outbox so a dead worker cannot strand “almost sent” notifications.
RETRIEVE. On claim, the worker runs dual vector retrieve: playbooks (what procedure fits this refund) and episodes (what happened on similar cases). Prefix filters are equality/IN only. Separately, the Auditor retrieves operational truth via Managed MCP (explain_query, get_table_schema, show_running_queries) and stamps the latest managed backup id from ccloud cluster backup list—not a fabricated backup create.
ACT. Under a live lease and epoch, the worker appends idempotent steps (UNIQUE (work_id, step_no)) and acts. Kill the owner: lease expires, reaper steals, epoch increments, successor reconstructs the ledger with AS OF SYSTEM TIME last_commit_ts, then continues. Two claimers racing yield SQLSTATE 23505 on the loser—ownership is a constraint, not a hope. Stale epoch ACT is rejected.
AWS. Worker, Reaper, and Auditor run as Lambda (Function URLs); static UI on S3; EventBridge ~10s tick. Embeddings are in-process. Local mode uses the same Store protocol with MemoryStore and POST /api/tick.
Honest limits. No ccloud backup create. MCP stub when offline. Basic Cloud cluster. Changefeeds-as-scheduler, multi-region survival, and shadow replay are VISION only, not shipped.
Built for the official criteria: Agentic Memory Design, Technological Implementation, Real-World Impact, Product Readiness, Creativity & Originality.
Built With
- ccloud
- cockroachdb
- eventbridge
- fastapi
- lambda
- mcp
- psycopg
- python
- s3
- skills
Log in or sign up for Devpost to join the conversation.