Expand description
Core runtime management for User-Space Capsules in Astrid OS.
Core capsule runtime implementing the “Manifest-First” architecture.
It provides the definition for Capsule.toml
manifests, handles discovery, and routes execution to the appropriate
environments (WASM sandboxes or legacy host processes).
Re-exports§
pub use engine::wasm::limits::CapsuleRuntimeLimits;pub use fuel_ledger::FuelLedger;pub use fuel_ledger::FuelRateLimiter;pub use memory_ledger::MemoryLedger;pub use memory_ledger::StoreMemoryMeter;
Modules§
- capsule
- Capsule trait and core types.
- context
- Capsule context types.
- discovery
- Capsule manifest discovery from standard locations.
- dispatcher
- Event dispatcher for routing events to capsule interceptors.
- engine
- Execution engine trait for Composite Capsules.
- error
- fuel_
ledger - Shared per-principal CPU accounting ledger.
- loader
- Factory and routing logic for instantiating Composite Capsules.
- manifest
- Capsule manifest types.
- memory_
ledger - Shared per-principal peak-memory accounting ledger + the per-Store limiter that feeds it.
- principal_
class - Bounded principal-class label for telemetry and IPC host-fn audit
labels. Used only for emitting bounded-cardinality metrics labels
(3 buckets) — dispatcher routing (mpsc queues and
chain_locks) is now keyed on the unboundedPrincipalKeyso distinct user principals do not collide on a single class-keyed queue. - profile_
cache - Process-lifetime cache of
PrincipalProfilevalues, keyed byPrincipalId. - registry
- Capsule registry.
- schema_
catalog - Topic schema catalog for A2UI integration.
- security
- Security gate trait for capsule host function calls.
- topic
- IPC topic matching for interceptor event patterns.
- toposort
- Topological sort for capsule dependency ordering.