The four interactive diagrams of the reference architecture, plus the
narrative that ties them to the code and the spec. (For the animated,
full-screen version of the whole map — the day in the life and the ten-stop
tour — see the architecture explorer.)
Every claim below is one of
three things: enforced today (in the reference stack, with the test or
config that proves it), contract (in the frozen §4.5 OpenAPI or a
committed schema), or spec (in docs/spec/LWL-32-architecture-spec.md,
not yet built — said so explicitly).
Normative source of truth: docs/spec/LWL-32-architecture-spec.md
("the spec"). The standalone architecture overview is the
shorter §1–§4 distillation; this page is the depth layer.
Hover a node to preview it; click for the evidence.
System context — the sovereign boundary. The customer network owns the
raw data; the vendor cloud owns the control plane; the only thing between
them is an outbound-only tunnel seam. The nodes that carry the invariants:
Edge Elasticsearch is the raw tier — it physically never leaves the
box. The cloud sees alert metadata pushed to it and ≤ 200-row ES|QL
results fetched back (§1.3, §3.5).
OPA appears twice — the cloud bundle gates what may be dispatched, the
(Phase 1) edge bundle vetoes it locally. A compromised cloud cannot make
the edge do anything the edge's own policy forbids (§3.3.1). The cloud
bundle is live in this repo: apps/agent-orchestrator/policies/.
Audit chain — hash-chained per tenant, audit-before-execute,
self-verifying on read (§3.4). Implementation:
apps/agent-orchestrator/src/orchestrator/audit_chain.py.
Hover a step to preview it; click for the evidence.
Data flow — one alert's path, hop by hop: edge detection → Vector
(normalize → redact → sink) → AlertMetadataPush across the seam →
control-plane ingest (dedupe by (tenant, local_alert_id)) → LangGraph
triage run (hypothesis → ESQL context hunt → enrichment → verdict) →
autonomy gate (OPA) → autonomous action or HITL approval → finalize.
Numbered hops carry the budget that makes the run bounded (§3.2): replan
count ≤ 2, ES|QL calls ≤ 5 per run, LIMIT ≤ 200 rows, LLM timeout 120 s.
The graph's full state schema and node list are
llm-triage.md.
Hover a node to preview it; click for the evidence.
Deployment topology — the three shapes the spec commits to (the tab
state deep-links, e.g. #ha-pair):
The reference deploy. In the compose stack this is the edge/ services
(Vector 0.47.0 + single-node ES, §2.1/§2.2); the Edge Agent and the real
tunnel are the Phase 1 gap, and the stack says so loudly
(SimulatedTunnel, simulated_tunnel: true in every fabricated receipt).
Active .2 / standby .3 on a /126 overlay (§1.2.1). Both boxes dial out;
the plane is the only stateful side; failover is spool replay made idempotent
by the unique (tenant, local_alert_id) index (§1.4 step 2 — implemented in
apps/control-plane-api/src/soc_api/routers/ingest.py).
N customer networks onto one control plane. Tenancy is not an if-check: it is
RLS + writer binding + per-tenant audit chains (§1.3). Full walkthrough:
multi-tenancy.md.
Hover a node or proof point to preview it; click for the evidence.
Threat model — trust zones, the four frame types that cross the seam,
the list of things that never cross it, and the air-gap proof points with
their honest status:
Proof point
Status in the reference stack
Loopback-only host bindings
Enforced — every compose port is 127.0.0.1; tailnet exposure only via tailscale serve
Redaction at the edge
Enforced — redact_pii transform in deploy/compose/edge/vector.toml, profile digest per alert
RLS tenant isolation
Enforced — db/rls/01-schema.sql + ∅-read integration tests in the gate
Audit-before-execute
Enforced — chain event sealed before the action's side effect
Outbound-only dial (§1.2.1)
Spec — the tunnel is simulated; the box side has no dial-out yet
Signed directives + nonce + expiry (§1.2.3)
Spec — the envelope shape is real; signatures are placeholder strings in the reference
Edge OPA veto (§3.3.1)
Spec — the edge bundle ships with Phase 1
Air-gap update bundle (§2.4)
Spec — Phase 5
Click the proof points in the diagram for the evidence per row.
Where the honesty lines are
The reference stack is a deliberately small, real slice of the spec. What is
real today, end to end, verifiable in the running demo:
RLS multi-tenancy with cross-tenant ∅-read tests,
multi-tenancy.md;
the hash-chained audit trail with on-read verification,
operations.md;
the ES|QL validator and the (simulated) federated query leg,
llm-triage.md §ES|QL.
What is spec-only and must not be described as shipped: the Edge Agent
(Go), the WireGuard/gRPC tunnel, edge-side OPA, the JWS/nonce/expiry
signature checks, the G1 isolation gate suite (tests 1.A1–1.A14 — NOT-STARTED
per deliverables/audit-2026-11-23.md; the in-repo cross-tenant tests are
the proxy), fleet/signed updates (Phase 5), and the full §4.5 /v1/*
endpoint surface beyond the reference-stack markers in the
API reference.