STTP memory infrastructure · Apache-2.0

The ground
beneath
the signal.

Agents are stateless. Context evaporates. Locus gives cognitive state a coordinate - typed, persistent, and verifiable across every session, model, and transport.

What Locus is

Not a product.
Infrastructure.

Locus is the standalone memory layer for the STTP protocol. It handles storage, retrieval, validation, and transport - so everything built on top can treat memory as a solved problem.

MCP server for assistants. HTTP/gRPC gateway for services. Rust SDK for in-process embedding. CLI for operators. One contract, every surface.

locus-mcp stdio · MCP tools for assistants + agents
locus-gateway HTTP + gRPC · deployable host for services
locus-sdk Rust · transport-agnostic in-process memory
locus-cli terminal · operator workflows, no service code
all backed by → locus-core-rs · parser · validator · retrieval
The protocol

Every node is self-sufficient.

Four ordered layers. Layer order is semantic - reordering alters meaning. Every field typed. Every confidence annotated. A stateless receiver needs nothing else.

⊕⟨ PROVENANCEtriggermanualformattemporal_nodesession"abc-123"attractor_config {stability: 0.90friction: 0.20logic: 0.98autonomy: 0.85}ORIENTATION⦿⟨ ENVELOPEtimestamp"2026-04-25T…"tierrawuser_avec {stability: 0.90friction: 0.20psi: 2.93}IDENTITY◈⟨ CONTENTconfidence-annotated fields:focus(.99): "parser"decision(.96): {…}insight(.88): "…"confidence ∈ [0.0, 1.0] · max depth 5MEANING⍉⟨ METRICSsignal qualityrho: 0.95kappa: 0.94psi: 2.93compression_avec {stability: 0.90psi: 2.93}VERIFICATION
⊕ PROVENANCE
Trigger, response contract, lineage, and attractor baseline. Defines orientation for everything that follows.
⦿ ENVELOPE
Timestamp, tier, session identity, and dual AVEC state. Anchors the node in time and actor context.
◈ CONTENT
Confidence-annotated meaning payload. Typed fields preserve semantic structure across transport and time.
⍉ METRICS
Signal quality and compression profile (ρ, κ, ψ). Enables verification and drift-aware recall behavior.

strict profile fails closed · tolerant profile recovers with diagnostics · additive evolution - old nodes always survive

Six primitives

Like NAND gates - compose into anything.

Each primitive is deterministic, transport-neutral, and policy-explicit. Combine them into any memory workflow.

01 · deterministic
find

Filter, sort, and paginate nodes with explicit scope.

02 · resonant
recall

AVEC-driven ranked retrieval by current cognitive state.

03 · temporal
aggregate

Grouped statistics and rollups across timeline windows.

04 · controlled
transform

Bulk mutation with dry-run support and explicit boundaries.

05 · transparent
explain

Stage-level visibility into retrieval decisions.

06 · introspective
schema

Runtime capability discovery for dynamic planners and UIs.

Memory in motion

Context doesn't disappear.
It compresses.

Raw sessions accumulate. Locus aggregates them into daily rollups, weekly summaries, monthly signals - each tier retaining the attractor fingerprint of what came before.

RAWsessionsDAILYrolled upWEEKLYcompressedMONTHLYsignal onlysession · 04-21parser hardening · ψ 2.93session · 04-22grammar update · ψ 2.87session · 04-23retrieval tuning · ψ 2.91session · 04-24sdk design · ψ 2.78session · 04-25transport layer · ψ 2.82daily · 04-21 to 04-233 sessions mergedfocus: parser · grammarψ̄ 2.90 · κ 0.94daily · 04-24 to 04-252 sessions mergedψ̄ 2.80 · κ 0.91weekly · Apr W45 sessions → 2 rollupsdominant: parser worksecondary: sdk designψ̄ 2.87 · κ 0.93 · ρ 0.95avec preserved ↓monthly · April 2026protocol + infra worksignal: high logic · low frictionψ̄ 2.88 · compressedinformation compresses · attractor state persists
Rawsessions
Individual session nodes retain full detail and highest variance.
↓ roll up
Dailymerged
Nearby sessions compress into daily summaries while preserving attractor signature.
↓ compress
Weeklycondensed
Pattern-level memory remains: sustained work streams and strategic pivots.
↓ distill
Monthlysignal
Only durable trend survives with lower noise and long-horizon recall readiness.
Cognitive state

The attractor
vector.

Every node carries an AVEC - a four-dimensional fingerprint of cognitive state at the moment of encoding.

stability
0.90
friction
0.20
logic
0.98
autonomy
0.85

ψ coherence is derived - not stored. A receiving agent computes it independently, verifying drift without shared history.

Part of the ecosystem

Built on STTP. Powers Resonantia.

Locus is the infrastructure STTP agents stand on. Any agent, tool, or service that speaks STTP can use Locus as its memory layer.

resonantia · your app · any STTP agent
locus - memory layer
⏣ STTP · typed IR · cognitive state