Skip to main content

Module capture

Module capture 

Source
Expand description

Bounded observation admission and collection. Budget admission at the observation boundary, before native handles are retained.

Structs§

CaptureCheckpoint
Reusable checkpoint at a drained portable record boundary. This is only the capture/intervention component of a generation snapshot; callers must also establish native completion and save model, sampler, and semantic state.
CaptureForkRequest
Explicit admission inputs for a child capture run. The backend supplies the actual child’s retained discovery and current estimator facts.
CaptureSession
A run owns one ledger and at most one step of host records. Consumers must drain each step before another is started; there is no producer queue.
InterventionForkRequest
Shared re-admission of inherited or prospectively replaced interventions.
PreparedCaptureRestore
Validated, move-only same-run schedule restoration. Dropping this preparation changes nothing. Commit is infallible so native and portable state can be installed atomically after every fallible operation has succeeded.

Enums§

CaptureExecutionError
Failure before reservation or during the reserved native transformation.

Functions§

metadata_reservation
Conservative JSON envelope reservation: every UTF-8 byte can escape to at most six bytes; each dimension can use twenty decimal digits. Numeric payloads are reserved by the native estimator. Selection count and metadata are bounded before generation begins, so missing/skipped points cannot form an unbounded queue.
preflight
Checks conservative known per-step and run-total costs before execution. Backends supply only their side-effect-free storage/transfer estimator. Unknown dimensions remain subject to exact observation-time reservation. Step estimates conservatively allow every phase-enabled selection to coincide.
validate_session
Revalidates admission against the loaded catalog, then checks known geometry and budgets with backend estimates. Native execution-mode checks stay with the caller; this helper never accesses a device or starts a submission.