sim-one-alpha

D10: Seal Per-Node Context Envelopes

Status: accepted for specification; implementation pending.

Question

How should graph state manipulate model context without passing the complete conversation, project graph, workspace, retrieval store, and tool history into every agent node?

Decision

Every model-executed TLG node runs in a fresh Flue child-session capsule over a sealed, versioned context envelope assembled by an application-owned context controller.

The envelope includes mandatory direct inputs, protocols, authority, approvals, safety constraints, accepted upstream evidence, declared capabilities, and budgeted optional context. It records inclusion and omission reasons, token accounting, provenance, and a digest.

The capsule has no undeclared generic filesystem, graph, transcript, retrieval, web, or credential access. Additional information or action requires a typed broker request and a newly sealed envelope.

Rationale

Typed graph state alone does not bound an LLM prompt. Context control requires an enforced adapter boundary that determines the exact payload and capability surface for each invocation.

Rejected Alternatives

Consequences

Affected Graph Consumers

Revisit Trigger

Revisit only when another mechanism can prove the exact model payload, capability absence, provenance, mandatory closure, and invalidation behavior at least as strongly.