Expand description
Shared backend/spec parsing and loading helpers. Canonical backend/spec parsing shared by Rust, CLI, and Python surfaces.
Re-exports§
pub use self::core::AssetRef;pub use self::core::CanonicalBytes;pub use self::core::CompiledCompressionBackend;pub use self::core::CompiledRateBackend;pub use self::core::CompressionBackendCapabilities;pub use self::core::MethodBackendFamily;pub use self::core::RateBackendCapabilities;pub use self::core::RateBackendTraceStrategy;pub use self::core::SpecEnvironment;pub use self::core::ValidatedCompressionBackend;pub use self::core::ValidatedRateBackend;
Modules§
- core
- Canonical validated and compiled backend plans.
Structs§
- Aiqi
Discounted Controller Spec - Discounted AIQI controller configuration.
- Asset
Binding - Filesystem binding for a named external asset referenced by a spec document.
- Compiled
Planner RunSpec - Compiled planner-run specification with resolved assets and compiled backends.
- Compression
Backend Shorthand Options - Defaults for shorthand compression-backend parsing such as
CLI/Python
--compression-backend ... --method .... - McAixi
Controller Spec - MC-AIXI controller configuration using a unified rate-backend predictor.
- Parsed
Spec Document - Parsed top-level spec document paired with its parse base directory.
- Planner
Interface Spec - Planner observation/reward/action interface contract.
- Planner
RunSpec - Canonical planner-run specification.
- Planner
Runtime Spec - Operational planner-run controls that do not change predictor semantics.
- Rate
Backend Shorthand Options - Defaults for shorthand backend parsing such as CLI
--rate-backend ... --method .... - Resolved
Asset Binding - Resolved runtime asset binding derived from a canonical asset identifier.
- Spec
Error - Lightweight error type for spec/config parsing and loading.
- Validated
Planner RunSpec - Canonicalized and validated planner-run document.
- VmAction
Filter Spec - Optional information-theoretic action filtering for VM runs.
- VmEnvironment
Spec - Canonical Nyx/Firecracker environment configuration.
- VmTrace
Spec - Optional VM trace collection settings.
- Warm
Start Exact JhController Spec - Warm-start exact-\u{1d4a5}_H controller configuration.
Enums§
- Builtin
Environment Spec - Built-in non-VM environment choices available to planner runs.
- Compiled
Planner Controller - Compiled planner controller with precompiled predictor backends.
- Compiled
Spec Document - Compiled top-level spec document.
- Controller
Spec - Canonical planner controller selection.
- Environment
Spec - Canonical planner-visible environment specification.
- Shared
Memory Policy Spec - Shared-memory persistence policy for Nyx VM environments.
- Spec
Document - Universal top-level spec document.
- Validated
Spec Document - Validated top-level spec document.
- VmFuzz
Mutator Spec - Canonical fuzz mutator choices for VM action generation.
- VmObservation
Policy Spec - Canonical observation derivation modes for VM environments.
- VmObservation
Stream Mode Spec - Canonical normalization modes for VM observation streams.
- VmPayload
Encoding Spec - Canonical payload encodings for VM action and protocol payloads.
- VmReward
Policy Spec - Reward policy for canonical VM environment specs.
- VmReward
Shaping Spec - Reward shaping configuration for VM environments.
- VmRuntime
Action Source Spec - Canonical runtime action source for VM environments.
Traits§
- Canonical
Json - Trait for deterministic canonical JSON serialization.
Functions§
- calibrated_
spec_ to_ json_ value - Serialize a
CalibratedSpecinto the canonical JSON representation. - compile_
compression_ backend_ name_ method - Parse and compile a shorthand CLI/Python-style compression backend.
- compile_
rate_ backend_ name_ method - Parse and compile a shorthand CLI/Python-style rate backend.
- compression_
backend_ to_ json_ value - Serialize a
CompressionBackendinto the canonical JSON representation. - load_
calibrated_ spec - Load a calibrated spec from disk.
- load_
expert_ spec - Load a single expert spec from disk.
- load_
json_ value_ from_ path - Load a plain JSON value from disk, resolving relative paths against
base_dir. - load_
mixture_ spec - Load a mixture spec from disk.
- load_
mixture_ spec_ with_ depth - Load a mixture spec from disk with an explicit remaining nesting budget.
- load_
particle_ spec - Load a particle spec from disk.
- load_
spec_ document - Load a spec document from disk.
- mixture_
expert_ spec_ to_ json_ value - Serialize a
MixtureExpertSpecinto the canonical JSON representation. - mixture_
spec_ to_ json_ value - Serialize a
MixtureSpecinto the canonical JSON representation. - parse_
calibrated_ spec_ value - Parse a calibrated backend specification.
- parse_
compression_ backend_ json - Parse a canonical compression-backend JSON object.
- parse_
compression_ backend_ name_ method - Build a compression backend from shorthand CLI/Python-style
name+ optionalmethodinputs. - parse_
mixture_ expert_ value - Parse one mixture expert entry.
- parse_
mixture_ spec_ value - Parse a
MixtureSpecfrom JSON. - parse_
particle_ spec_ value - Parse a
ParticleSpecfrom JSON. - parse_
rate_ backend_ json - Parse a canonical rate-backend JSON object.
- parse_
rate_ backend_ name_ method - Build a backend from shorthand CLI/Python-style
name+ optionalmethodinputs. - parse_
rwkv7_ compression_ backend_ method - Parse RWKV7 compression backend shorthand into a canonical backend configuration.
- particle_
spec_ to_ json_ value - Serialize a
ParticleSpecinto the canonical JSON representation. - rate_
backend_ to_ json_ value - Serialize a
RateBackendinto the canonical JSON representation. - resolve_
enabled_ compression_ backend_ name - Resolve a compression backend alias and require that it is enabled in the current build.
- resolve_
enabled_ rate_ backend_ name - Resolve a rate backend alias and require that it is enabled in the current build.
- resolve_
spec_ path - Resolve a spec path against a base directory.
Type Aliases§
- AssetId
- Stable identifier for an external asset binding.
- Spec
Result - Result type used by the shared spec/parsing layer.