Intelligence Platform¶
A platform collects trust events, validates them against key event logs, builds the graph and serves analysis. Anyone can operate one.
| Component | Role |
|---|---|
subscriber |
Streams events from relays into a Redis stream |
l2-ingest |
Validates events and writes graph and time series. Removes events whose anchor disappeared after a recovery |
l2-engine |
Computes scores from seeds, anomalies and trends |
l2-api |
Serves answers, leases and computations |
Precomputed answers¶
GET /v1/scores/{aid} returns the best view of the configured seeds. GET /v1/insights/{name} returns anomalies, trends or summary.
Leases¶
POST /v1/leases exports the signed events around the caller and up to 1000 roots, with 1 to 8 hops and at most 20,000 events. The caller verifies them itself.
Computation¶
POST /v1/compute runs score, path, distances, rank or anomalies for the caller's position.
Signed requests¶
Requests are envelopes whose payload contains aud (the platform), path, dt, n (32 characters) and body. They are accepted within two minutes and once. Responses are envelopes with to, re (the nonce) and body.
Configuration¶
| Variable | Meaning |
|---|---|
RELAYS |
Relays to stream from |
DATABASE_URL, REDIS_URL |
Storage |
SEEDS |
Identities from whose position scores are computed |
INTERVAL_SECONDS |
Interval of the analysis |
GRAPH_PARAMS |
Parameters as JSON |
NETWORK_FILE |
Identity network |