// 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.
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 │
└───────────────────────────────────────────┘
| # | step | what happens | external calls |
|---|---|---|---|
| 1 | ingress & governance | API key → principal. Pydantic rejects unknown fields. Policy evaluates principal × action × request → allow / deny / review. | 0 |
| 2 | semantic cache | Embed the normalised query; HNSW nearest neighbour over prior verified runs within TTL and depth. | 0 |
| 3 | cache hit | Cosine distance ≤ threshold → serve stored JSONB with its original citations and lineage. | 0 |
| 4 | external dispatch | Advisory lock per question (single-flight across replicas) → Parallel.ai task with a strict output schema. | 1 |
| 5 | write-back | One transaction: stamp entity, insert JSONB payload, upsert graph edges, chunk, embed, insert vectors. Embedding timeout → full rollback. | 0 |
| 6 | egress | Reconciled data + field-level citations + run id, policy rule, approver. | 0 |
02 console
response appears here
03 approval queue human-in-the-loop
loading…
04 ledger every gateway decision, newest first
| time | principal | target | outcome | rule | run | dist | ms | detail |
|---|
05 memory
| id | entity | kind | industry | runs | edges | last researched |
|---|
06 policy
First matching rule wins. Anything not matched falls through to deny.
| # | rule | effect | when | reason |
|---|