The graph is big. The prompt is small.

StateWeave never sends the whole graph. It compiles a bounded, causally connected view for one call. A full graph, a bounded window of selected nodes, and one model call

What the view keeps

The compiler selects:
  • system and goal roots;
  • every frontier head;
  • current resource heads;
  • recent authoritative evidence;
  • bounded operational closure;
  • lexically relevant older nodes;
  • a deterministic whole-graph digest.
Equivalent repeated reads, calls, results, and superseded details collapse. They stay in AgentState; only the view is compact.

How it decides

The compiler targets projectionTargetTokens and never exceeds maxPromptTokens.
Mandatory causal state may push past the target, but never past the hard ceiling. If required state alone cannot fit, StateWeave fails locally before calling the provider.

Supersession in the view

The newest resource head is authoritative. Old versions remain in the graph but do not pull their full history into every prompt. Provenance stays queryable in storage.

The multi-resolution view

The public Agent compiler now renders four deterministic layers into the model-facing prompt:
  • <BIG_BRAIN>: stable topic-cluster pins for the whole graph;
  • <PERIPHERAL>: neighboring cluster summaries around the active work;
  • <FOCUS>: detailed nodes and causal parents selected for this turn;
  • <TIMELINE>: recent non-structural nodes in causal sequence.
Cluster ids are computed from sorted graph node ids. Retrieval is query-aware and uses topology, lexical overlap, recency, and evidence authority. Superseded resource and semantic values remain in AgentState but lose projection priority. The graph is never compacted; only this view is bounded.
Deliberate boundary. The public Agent chooses its focus automatically for each request. It does not yet expose an interactive zoom/focus option. The lower-level historical projection utility has zoom controls, but it is not the public Agent memory engine. No embedding service or learned summary is required by the current projection.
Next: Tools.