Start with System Context (C4 Level 1) to understand boundaries and external dependencies.
Use Service Map to see the single ingress orchestrator and subsystem relationships.
Review Write + Retrieval Flows for runtime movement of data and learning feedback.
Finish with Task Coordination + Ops for agent orchestration, messaging surfaces, and reliability controls.
C4 Level 1
System Context View
Context view keeps boundary and interaction semantics clear before implementation detail.
Legend + Roles
What each context block means
[A] External Actors: clients submitting memory writes and search requests.
[B] Orchestrator: single control plane for ingress, auth, validation, and routing.
[C] Memory Plane: durable stores used for fanout and retrieval synthesis.
[D] Ops + Safety: reliability controls for queue, storage, and policy.
[E] Task Coordination + Agent Communication: orchestrator-managed task routing for internal/external agents plus messaging ingress/egress.
[F] Dependencies: pluggable model/tool providers and optional cloud BYO services.
C4 Level 2
Service and Flow Views
Service Map: the single control plane and every core system it coordinates.Write Flow: reliable writes under burst load via durable outbox and worker fanout.Retrieval + Learning Loop: faster context recall that improves quality over time.Task Coordination + Communication: orchestrator-managed task routing, agent execution, and bidirectional human messaging.
Container Notes
How to read these diagrams quickly
Panel 1 (Service Map): where each subsystem lives and who depends on it.
Panel 2 (Write Flow): how writes move from ingress to durable fanout sinks.
Panel 3 (Retrieval Flow): how recall/rerank returns context and captures learning signals.
Panel 4 (Task Coordination): how the orchestrator plans tasks, fans out workers, and communicates through messaging channels.
HTTP-first ingress: orchestrator remains the single write/search entrypoint.
Messaging surfaces: can operate bidirectionally (human ingress + response egress).
Local-first default: local stores first, cloud BYO remains optional.
Runtime Ownership
Which language runs what, and why
Python: fallback and compatibility lane
Runs: rollback ingress on :18075, compatibility adapters, and selected operator tooling paths.
Why: preserves rollback safety and broad integration coverage while Go/Rust remain default.
Efficacy impact: fail-safe continuity when primary runtime components are unavailable.