Skip to main content
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
[![Agent memory architectures (recent turns, retrieved long-term items, summaries) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_agent-memory-architectures/opengraph-image)](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_2

COMPONENT STACK (10)

  • Web ClientSTATEFUL
    Staff member on an untrusted network
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • AlertingSTATEFUL
    On-call pager outside our boundary
  • Agent orchestration runtimeSTATEFUL
    Builds the prompt inside a token budget
  • Session storeSTATEFUL
    Recent turns per conversation, expire in 24 hours
  • AI gatewaySTATELESS
    Routes and limits model calls
  • Policy decision point (PDP)STATELESS
    Allows memory use per user
  • Time-series database (TSDB)STATEFUL
    Stores model and memory-store health
  • Vector databaseSTATEFUL
    Memories by embedding, filtered per user
  • Secrets managerSTATEFUL
    Holds the memory store credential

REQUEST & DATA FLOW (15)

  1. Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
  2. Agent orchestration runtime → Session store (Reads, adds turns)[HTTP/2]
  3. Session store → Agent orchestration runtime (Returns turns)[HTTP/2]
  4. Agent orchestration runtime → Vector database (Searches, saves)[HTTP/2]
  5. Vector database → Agent orchestration runtime (Returns top items)[HTTP/2]
  6. Agent orchestration runtime → AI gateway (Sends prompt)[HTTP/2]
  7. AI gateway → Inference server (Calls model)[HTTPS]
  8. Inference server → AI gateway (Returns reply)[HTTPS]
  9. AI gateway → Agent orchestration runtime (Returns reply)[HTTP/2]
  10. Agent orchestration runtime → Web Client (Relays answer)[HTTPS]
  11. Agent orchestration runtime → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]
  12. Secrets manager → Vector database (Store credential)[HTTPS]
  13. AI gateway → Time-series database (TSDB) (Exports metrics)[OTLP]
  14. Vector database → Time-series database (TSDB) (Reports health)[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →