Skip to main content

Crate parallax_ues

Crate parallax_ues 

Source
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§

AsyncState
Async / await bookkeeping (mostly Unsupported today).
CapabilityState
Capability tokens / granted rights at capture.
ContinuationCapabilityMatrix
Continuation-focused capability matrix for a runtime.
ContinuationCapabilityRow
One row in the continuation matrix.
ControlState
Control-position summary at capture time.
DeterministicContext
Deterministic context attached to a UES.
ExternalResource
External resource that cannot migrate (files, sockets, …).
FrameId
Stable frame identity within a UES document.
HeapState
Heap / object-graph payload (PIR document JSON).
MigrationMetadata
Migration bookkeeping attached to a UES.
ModuleState
Module table entry.
ReplayJournal
Append-only replay journal schema.
ReplayJournalEntry
One journaled non-deterministic event (schema only).
SafepointReport
Machine-readable report produced at a safepoint.
SemanticLossNote
Semantic-loss note attached to a safepoint report.
SourceLocation
Source location when known.
UniversalExecutionState
Universal Execution State — suspended computation (not value-only PIR).
UniversalFrame
One frame on a Continuum call stack.

Enums§

ReplayEngineStatus
Whether a deterministic replay engine can consume this context.
SafepointKind
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.