ARCHOS 525 BLUEPRINT · /d/dgm_agent-memory-architectures
Agent memory architectures (recent turns, retrieved long-term items, summaries)
11 COMPONENTS · 15 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_agent-memory-architectures) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-memory-architectures)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-memory-architectures" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Agent memory architectures (recent turns, retrieved long-term items, summaries) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
inference_1["Inference server"]
alerting_2[("Alerting")]
orch_3[("Agent orchestration runtime")]
session_4[("Session store")]
llmgw_5["AI gateway"]
pdp_6["Policy decision point (PDP)"]
tsdb_7[("Time-series database (TSDB)")]
vector_8[("Vector database")]
secrets_9[("Secrets manager")]
capacity_10["Capacity Estimate"]
client_0 -->|"1. Asks with JWT · HTTPS"| orch_3
orch_3 -->|"2. Reads, adds turns · HTTP/2"| session_4
session_4 -->|"3. Returns turns · HTTP/2"| orch_3
orch_3 -->|"4. Searches, saves · HTTP/2"| vector_8
vector_8 -->|"5. Returns top items · HTTP/2"| orch_3
orch_3 -->|"6. Sends prompt · HTTP/2"| llmgw_5
llmgw_5 -->|"7. Calls model · HTTPS"| inference_1
inference_1 -->|"8. Returns reply · HTTPS"| llmgw_5
llmgw_5 -->|"9. Returns reply · HTTP/2"| orch_3
orch_3 -->|"10. Relays answer · HTTPS"| client_0
orch_3 -->|"Asks, fails closed · HTTP/2"| pdp_6
secrets_9 -->|"Store credential · HTTPS"| vector_8
llmgw_5 -->|"Exports metrics · OTLP"| tsdb_7
vector_8 -->|"Reports health · OTLP"| tsdb_7
tsdb_7 -->|"Notifies · HTTP"| alerting_2COMPONENT STACK (10)
- Web ClientSTATEFULStaff member on an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- AlertingSTATEFULOn-call pager outside our boundary
- Agent orchestration runtimeSTATEFULBuilds the prompt inside a token budget
- Session storeSTATEFULRecent turns per conversation, expire in 24 hours
- AI gatewaySTATELESSRoutes and limits model calls
- Policy decision point (PDP)STATELESSAllows memory use per user
- Time-series database (TSDB)STATEFULStores model and memory-store health
- Vector databaseSTATEFULMemories by embedding, filtered per user
- Secrets managerSTATEFULHolds the memory store credential
REQUEST & DATA FLOW (15)
- Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
- Agent orchestration runtime → Session store (Reads, adds turns)[HTTP/2]
- Session store → Agent orchestration runtime (Returns turns)[HTTP/2]
- Agent orchestration runtime → Vector database (Searches, saves)[HTTP/2]
- Vector database → Agent orchestration runtime (Returns top items)[HTTP/2]
- Agent orchestration runtime → AI gateway (Sends prompt)[HTTP/2]
- AI gateway → Inference server (Calls model)[HTTPS]
- Inference server → AI gateway (Returns reply)[HTTPS]
- AI gateway → Agent orchestration runtime (Returns reply)[HTTP/2]
- Agent orchestration runtime → Web Client (Relays answer)[HTTPS]
- Agent orchestration runtime → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]
- Secrets manager → Vector database (Store credential)[HTTPS]
- AI gateway → Time-series database (TSDB) (Exports metrics)[OTLP]
- Vector database → Time-series database (TSDB) (Reports health)[OTLP]