Skip to main content

The per-entity cognition substrate

An agent does not reason into a vacuum. Behind every run sits a cognition substrate: one seam that fronts all of an entity's memory kinds, is bound to that entity's own default-workspace store, and is reached under the same identity, classification, and authorization as any other data the entity owns. It is what lets a run remember, recall, and promote what it learned without reaching into a shared pool that would blur one actor's knowledge into another's.

This page covers the substrate's surfaces, how it is scoped to an entity's home store, and when it is durable versus kept hot.

Overview​

Every entity has a home workspace provisioned at creation, and that home carries a Structures database. The cognition substrate binds to that database, so an entity's memory lives inside a store it already owns and governs, not in a side channel. Because the binding resolves through the entity's default workspace, the isolation is structural: the substrate for entity A can only read and write A's namespace, and two co-located entities can never cross-read.

The substrate is the memory surface the agent runtime reasons over and the surface recall-before-reason draws from before the model thinks.

One seam, many memory kinds​

The substrate is a single interface fronting the memory shapes a reasoning run actually uses. Each surface is backed by the matching structure type in the entity's home Structures database, so the kind of memory and the kind of store line up:

SurfaceWhat it holdsShape
WorkingHot, in-flight scratch state for the current runKept in-process even on the durable backing
EpisodicThe ordered record of what happened, event by eventA stream
SemanticMeaning, recalled by similarityA vector set
RelationalThe entity's knowledge graph: things and how they connectA graph
RankedScored, ordered recall, a leaderboard of relevanceA sorted set
CollectionsMembership and set algebra, with probabilistic sketchesSets, lists, filters
TabularRows and columns for structured working dataA dataframe

Two operations sit above the kinds:

  • Fused recall takes one query and draws across the semantic, relational, and episodic surfaces at once, returning ranked, evidence-graded hits rather than a single-index lookup. This is the read half of recall-before-reason.
  • Publish promotes a piece of working memory into a durable, catalog-registered, grant-governed asset with an access-control list, so a learning crosses from private scratch into something the estate can govern and others can be granted.

A task/goal hierarchy surface sits alongside these, backed by a tree in the same store, so a run can hold its decomposition where the rest of its memory lives.

Scoped to the entity's home store​

The binding is the load-bearing part. When a run needs its memory, the runtime resolves it in order, and refuses to guess at any step:

Figure: resolving a run's cognition substrate. The runtime resolves the acting entity's default workspace, then that workspace's Structures database (membership-authorized, deny-closed), then mints a per-entity principal that carries the actor's own clearance and grants, and binds the durable substrate to the home store with the namespace set to the entity id. If the entity has no default workspace, or that workspace has no Structures binding, the run degrades to a hot in-memory substrate for that run rather than borrowing another entity's store. Every access runs through the store's own authorization boundary.

Table equivalent

StepResolvesOn failure
Default workspaceThe entity's home workspaceDegrade to hot in-memory for this run
Structures databaseThe home workspace's structure storeDegrade to hot in-memory for this run
Per-entity principalA principal with the actor's own clearance and grants(none)
Durable substrateThe seam bound to the home store, namespace = entity id(none)

Because the principal is the actor's own, the substrate inherits the actor's classification and grants automatically: there is no second credential and no elevated memory service that could read across entities.

Durable, or hot​

The substrate has two backings, and the choice is never silent:

  • Durable backing, bound to the entity's home Structures database. Everything written survives the run and is readable by later runs of the same entity.
  • Hot in-memory backing, used for the current run only. The run reasons with full working memory and simply does not persist. The substrate selects it when no durable store resolves, so a run always has its memory surface available.

At the end of a run, working memory is distilled and the durable path promotes it through publish, so what a run learned becomes available to the next one rather than evaporating with the process.

Across the deployment matrix​

  • Single-cell: the substrate binds to the entity's home store on the one cell; recall and publish are local.
  • Multi-cell (elastic in and out): the home store is placed like any other workspace store; the substrate follows the entity's default workspace to whichever cell holds it, under the same residency rules.
  • Sovereign / air-gapped: the substrate is pure on-box state in the entity's own store; no coordinator or cloud is required.
  • Core vs edge: the per-entity cognition substrate is a core-cell capability. The Edge Agent resolves an entity's workspace and clean room the same way, and a device's reasoning memory is its on-device canonical store, reached through recall.

What the substrate gives a run​

The substrate seam, all durable memory kinds against the home Structures store, the task/goal hierarchy, fused recall, and publish are wired into the agent runtime, so every run resolves and uses its own memory surface per turn. The durable path binds to the entity's home Structures database and persists across runs; where no durable store resolves, the run keeps a full in-memory working surface for the current run. Memory stays inside a store the entity already owns and governs, under the actor's own clearance and grants.