Why architecture matters here
Persistence fails on schema drift, silent PII, and missing hydration tests. Architecture matters because serialization + store + evolution all combine.
Advertisement
The architecture: every piece explained
The top strip is core. Agent state. Serialization. Session store. Restart hydrate.
The middle row is evolution. Schema evolution. Migration on read. TTL + eviction. Encryption at rest.
The lower rows are ops. Access control. Metrics. Ops — backup + restore + tests.
Advertisement
End-to-end flow
End-to-end: user chats. Agent state persists every N turns. Process restarts. Client reconnects with session ID; state hydrates; conversation continues seamlessly. Schema v1 migrated on read to v2 as new fields added.