Skip to main content

Module execution

Module execution 

Source
Expand description

Canonical Context execution contracts.

Context has three deliberately different representations:

Provider request bytes remain host evidence. None of these objects is a provider request serializer, and none of them carries token projections as semantic message fields.

Structs§

CachePrefixBoundary
ContextCandidate
Kernel-owned facts frozen in a provider effect. Host route and native count do not exist when the kernel emits this candidate; the host binds them before dispatch through core.
ContextDispatchPreparation
Evidence is returned with its canonical identity so storage adapters can persist every referenced body. This is host evidence; the kernel’s immutable candidate remains in the effect.
ContextDispatchRequest
ContextEntryRef
A stable reference to one addressable semantic item in ContextState.
ContextExecutionInput
The frozen identity of one provider execution input.
ContextPlan
A deterministic runtime decision. It is not a mutable copy of ContextState.
ContextPreparation
The non-authoritative result returned by the preparation boundary. The provider adapter keeps the projection transient and records the execution-input identity alongside host evidence.
ContextPreparationRequest
Facts supplied by the runtime at the preparation boundary. The renderer remains a kernel projection; provider adapters add their protocol-specific evidence after this call.
ContextPromptMeasurement
The host count names fingerprinted request material under the route’s declared scope.
ContextSelection
ContextState
Canonical Context state used to prepare one execution input.

Enums§

ContextContractError
ContextEntrySource
The semantic area from which an entry came. This is provenance, not a provider role.
ContextPlanAction
The action the runtime admitted for one Context entry.

Constants§

CONTEXT_SCHEMA

Functions§

prepare_context_dispatch
prepare_context_dispatch_json
Single canonical bridge shared by all SDK mirrors; no SDK owns selection or digest rules.
verify_context_dispatch
Rebind recorded host evidence to the replayed kernel effect and compare all derived objects. A self-consistent record from a different effect, route or request is not equivalent.
verify_context_dispatch_json