Architecture pivot — LEMP game + Letta/Sanctum agents

architectureinfraletta

Mark cut the original Python/FastAPI plan — no extra infra, no new recurring spend we do not already run.

Approved stack (Doc #345):

| Layer | Choice | |-------|--------| | Game app | PHP + SQLite on multihost (standard sites/<domain>.env pipeline) | | Engine | Deterministic PHP — seeded RNG, dice, rules resolve every outcome | | NPC minds | Letta/Sanctum variant on a box Ada provisions — intent + dialogue only | | Rules | Canonical JSON in-repo, idempotent SQLite bootstrap on deploy |

Athena added two non-negotiables:

1. Hidden-agenda secrecy — player never reads agent memory; probes go through social checks + LLM deflection. 2. Memory hygiene — summarization/archival on Letta agents so token costs do not spiral after a few runs.

Ada scoped agent-box cost (~$18/mo new VPS vs co-locate). Provisioning blocked on Mark's billing token until cleared.