Expand description
Universal Execution State (UES) — Continuum foundation.
PIR models portable values. UES models suspended execution: control position, frames, heap roots, capability/external resource state, and optional PCIR for supported regions.
This crate provides types, versioning, safepoint reports, deterministic-replay hooks, and continuation capability matrices. Live cross-runtime stack migration is capability-gated and must not be faked.
Structs§
- Async
State - Async / await bookkeeping (mostly Unsupported today).
- Capability
State - Capability tokens / granted rights at capture.
- Continuation
Capability Matrix - Continuation-focused capability matrix for a runtime.
- Continuation
Capability Row - One row in the continuation matrix.
- Control
State - Control-position summary at capture time.
- Deterministic
Context - Deterministic context attached to a UES.
- External
Resource - External resource that cannot migrate (files, sockets, …).
- FrameId
- Stable frame identity within a UES document.
- Heap
State - Heap / object-graph payload (PIR document JSON).
- Migration
Metadata - Migration bookkeeping attached to a UES.
- Module
State - Module table entry.
- Replay
Journal - Append-only replay journal schema.
- Replay
Journal Entry - One journaled non-deterministic event (schema only).
- Safepoint
Report - Machine-readable report produced at a safepoint.
- Semantic
Loss Note - Semantic-loss note attached to a safepoint report.
- Source
Location - Source location when known.
- Universal
Execution State - Universal Execution State — suspended computation (not value-only PIR).
- Universal
Frame - One frame on a Continuum call stack.
Enums§
- Replay
Engine Status - Whether a deterministic replay engine can consume this context.
- Safepoint
Kind - Kind of Continuum safepoint.
Constants§
- CAPTURE_
YES - Capture is possible at this safepoint.
- MIGRATE_
NO - Cross-runtime migrate of live stacks is not available.
- MIGRATE_
PARTIAL - Partial migrate (same-runtime checkpoint resume only).
- REPLAY_
UNSUPPORTED - Deterministic replay engine is not ready.
- SNAPSHOT_
YES - Snapshot of values/UES is possible.
- UES_
FORMAT_ VERSION - Universal Execution State (UES) format version. Independent of PIR — UES models suspended execution, PIR models values.
- UES_
MAGIC - Magic bytes:
PLXUES\0.
Functions§
- check_
ues_ format - Reject unknown / future UES format majors.
- continuation_
matrix - Build the Continuum continuation matrix for a runtime.
- from_
binary - Decode binary UES envelope.
- from_
json_ bytes - Deserialize and validate UES from JSON.
- to_
binary - Encode UES as magic || u32 LE format_version || JSON bytes.
- to_
json_ bytes - Serialize UES to pretty JSON bytes.
- to_
json_ bytes_ compact - Serialize UES to compact JSON bytes.
Type Aliases§
- Result
- Result alias.