Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime subsystem types — routing, delivery, gating, memory, scheduling, and session persistence.

Re-exports§

pub use metadata::InMemoryMetadataStore;
pub use metadata::LabelRpcResult;
pub use metadata::MetadataScope;
pub use metadata::MetadataStoreError;
pub use metadata::PersistentMetadataStore;
pub use metadata::RuntimeMetadataTable;
pub use metadata::SqliteMetadataStore;
pub use metadata::dispatch_labels_delete;
pub use metadata::dispatch_labels_get;
pub use metadata::dispatch_labels_set;
pub use metadata::labels_to_json_value;
pub use metadata::parse_labels_param;
pub use metadata::parse_run_id_param;

Modules§

cross_mob_control
Cross-mob control protocol — Phase 2 of the cross-mob transport story.
cross_mob_remote
Cross-mob remote-handle proxy.
metadata
Mobkit-side sidecar table for mob- and run-level labels.

Structs§

BigQueryGcConfig
BigQuerySessionStoreAdapter
ConsoleAgentLiveSnapshot
ConsoleLiveSnapshot
ConsoleMember
Console-facing view of a single mob member.
ConsoleModelCapabilities
ConsoleRestJsonRequest
ConsoleRestJsonResponse
DeliveryAttempt
DeliveryHistoryRequest
DeliveryHistoryResponse
DeliveryRecord
DeliverySendRequest
ElephantMemoryBackendConfig
Deprecated legacy config shape. Despite the name, this backend never wrote to Elephant: endpoint is only health-checked and the ledger is persisted as local JSON at state_path. Use LocalJsonMemoryBackendConfig; this shape is still accepted for wire and config compatibility.
GatingAuditEntry
GatingDecideRequest
GatingDecisionResult
GatingEvaluateRequest
GatingEvaluateResult
GatingPendingEntry
GatingResolutionNotice
One resolved gating pending entry (decision or timeout), pushed synchronously to registered observers. The gating subsystem itself is poll-only; this seam exists so components that staged work behind a pending entry (the memory steward’s quarantine-promotions, §10.2) can react without polling. Observers must not block — defer real work onto the runtime.
JsonFileSessionStore
JsonStoreLockRecord
LifecycleEvent
LocalJsonMemoryBackendConfig
Operational-ledger backend that persists assertions/conflicts as local JSON, with an optional HTTP health gate applied before every read/write.
MemoryAssertion
MemoryConflictSignal
MemoryIndexRequest
MemoryIndexResult
MemoryQueryRequest
MemoryQueryResult
MemoryStoreInfo
MobkitRuntimeHandle
ModuleHealthTransition
ModuleRouteRequest
ModuleRouteResponse
RoutingResolution
RoutingResolveRequest
RuntimeDecisionInputs
RuntimeDecisionState
RuntimeOptions
RuntimeRoute
RuntimeShutdownReport
ScheduleDefinition
ScheduleDispatch
ScheduleDispatchReport
ScheduleEvaluation
ScheduleRuntimeInjection
ScheduleTrigger
SchedulingSupervisorSignal
SessionPersistenceRow
SessionStoreContract
SubscribeKeepAlive
SubscribeRequest
SubscribeResponse
SupervisorReport
TrustedOidcRuntimeConfig

Enums§

BaselineRuntimeError
BigQuerySessionStoreError
ConfigResolutionError
DecisionRuntimeError
DeliverySendError
GatingDecideError
GatingDecision
GatingOutcome
GatingRiskTier
JsonFileSessionStoreError
LifecycleStage
LocalJsonMemoryStoreError
McpBoundaryError
MemoryBackendConfig
MemoryIndexError
MobkitRuntimeError
ModuleHealthState
ModuleRouteError
NormalizationError
RoutingResolveError
RpcRouteError
RpcRuntimeError
RuntimeBoundaryError
RuntimeFromConfigError
RuntimeMutationError
RuntimeRouteMutationError
ScheduleValidationError
SessionStoreKind
SubscribeError
SubscribeScope

Constants§

ROUTING_RETRY_MAX_CAP
WILDCARD_ROUTE

Traits§

GatingResolutionObserver

Functions§

build_runtime_decision_state
evaluate_schedules_at_tick
extract_bearer_token_from_header
Extract a bearer token from an Authorization: Bearer <token> header value.
handle_console_rest_json_route
handle_console_rest_json_route_with_snapshot
handle_console_rest_json_route_with_snapshot_access_and_memory
Memory-panel-aware variant: memory_panel_available reports whether the runtime wired a Memory-panel store, so the experience can project the memory affordance section (§9.3) the console nav gate consumes.
handle_console_rest_json_route_with_snapshot_access_memory_and_workgraph
Workgraph-aware variant: workgraph_available reports whether the runtime wired a WorkGraph service, so the experience can project the workgraph affordance section the console consumes (available + ABAC-intersected can_view/can_manage).
handle_console_rest_json_route_with_snapshot_and_access
Access-aware variant of handle_console_rest_json_route_with_snapshot.
materialize_latest_session_rows
materialize_live_session_rows
normalize_event_line
route_module_call
route_module_call_rpc_json
route_module_call_rpc_subprocess
run_discovered_module_once
run_meerkat_baseline_verification_once
run_module_boundary_once
run_periodic_gc
run_periodic_gc_with_error_callback
run_rpc_capabilities_boundary_once
session_store_contracts
start_mobkit_runtime
start_mobkit_runtime_with_options
validate_console_token
Validate a bearer token against the console’s trusted OIDC config AND the email allowlist / provider policy (via enforce_console_route_access). Returns true only if the token is valid AND the caller is authorized.

Type Aliases§

ElephantMemoryStoreError
Deprecated: kept as an alias for the pre-rename error type. The backend never sent data to Elephant, so the type is now named for what it does.
GcErrorCallback
Callback for GC error reporting. Receives the error message.