// unified intelligence layer · v0.1

a nervous system for
multi-agent intelligence

Every external action passes a policy-as-code gateway. Every fact lives in one ACID database — vectors, documents and graph inside a single transaction boundary. Agents stop re-scraping the internet and stop disagreeing about what is true.

memory: … · mesh: … · embedder: … · policy: …
cache hits–
external calls–
p50 hit–
p50 fresh–
denied–
rolled back–
entities–
vectors–

01 architecture

  agents · dashboards · humans
 ┌──────────────────────────────────────────────────────────────┐
 │  POST /v1/intel   { target, question, depth, processor }     │
 └───────────────────────────────┬──────────────────────────────┘
                                 │  api key → principal
 ┌───────────────────────────────▼──────────────────────────────┐
 │  TRUSTED ACTION RUNTIME           fastapi · pydantic · async │
 │  ┌─────────────────┐   allow   ┌───────────────────────────┐ │
 │  │ policy-as-code  ├──────────▶│ semantic cache check      │ │
 │  │ (first match)   │           │ embed(query) → hnsw k=1   │ │
 │  └──┬───────────┬──┘           └──────┬─────────────┬──────┘ │
 │     │ deny      │ review              │ hit         │ miss   │
 │     ▼           ▼                     │             │        │
 │   403      approval queue ──human──▶  │             │        │
 └───────────────────────────────────────┼─────────────┼────────┘
                                         │             │ single-flight
 ┌───────────────────────────────────────▼───┐   ┌─────▼──────────────┐
 │  UNIFIED MEMORY      postgres 16+         │   │ EXECUTION MESH     │
 │  ┌──────────┐ ┌───────────┐ ┌──────────┐  │◀──┤ parallel.ai        │
 │  │ entities │ │ research_ │ │ chunks   │  │   │ render · paywalls  │
 │  │ + rels   │◀┤ runs      │◀┤ vector() │  │   │ → cited json       │
 │  │ (fk)     │ │ (jsonb)   │ │ (hnsw)   │  │   └────────────────────┘
 │  └──────────┘ └───────────┘ └──────────┘  │
 │  one transaction · rollback = no orphans  │
 └───────────────────────────────────────────┘
#stepwhat happensexternal calls
1ingress & governanceAPI key → principal. Pydantic rejects unknown fields. Policy evaluates principal × action × request → allow / deny / review.0
2semantic cacheEmbed the normalised query; HNSW nearest neighbour over prior verified runs within TTL and depth.0
3cache hitCosine distance ≤ threshold → serve stored JSONB with its original citations and lineage.0
4external dispatchAdvisory lock per question (single-flight across replicas) → Parallel.ai task with a strict output schema.1
5write-backOne transaction: stamp entity, insert JSONB payload, upsert graph edges, chunk, embed, insert vectors. Embedding timeout → full rollback.0
6egressReconciled data + field-level citations + run id, policy rule, approver.0

02 console

Dev keys come from policies/default.yaml. Try the agent with depth 2 — it lands in the approval queue.

response appears here

03 approval queue human-in-the-loop

loading…

04 ledger every gateway decision, newest first

timeprincipaltargetoutcomerulerundistmsdetail

05 memory

identitykindindustryrunsedgeslast researched

06 policy

First matching rule wins. Anything not matched falls through to deny.

#ruleeffectwhenreason