Skip to main content

Module local_simulator

Module local_simulator 

Source
Expand description

Local Runtime Simulator — DAG verification and fractal URN stitching.

Replaces coreason_runtime/execution_plane/local_simulator.py.

Provides local dry-run simulation of execution DAGs and fractal URN hierarchical binding for capability composition.

Zero Waste: Topological sort and cycle detection delegated to petgraph::algo::toposort (already in Cargo.toml). We only write the HashMap → DiGraph conversion glue and domain-specific simulation logic.

Structs§

CausalClockEnforcer
Topological Compute Enforcer / Causal Clock (causal_clock) guard (#338)
CausalIntervention
A causal intervention specification for Pearl’s do-operator.
DagValidationReport
DAG integrity validation report.
DoOperator
Pearl’s Causal Do-operator simulator.
SimulationNode
A node in the simulated execution DAG.
SimulationResult
Result of a DAG simulation.

Enums§

CausalError
Error type for causal DAG surgery operations.
NodeStatus
Status of a simulation node.

Functions§

simulate_execution
Simulate DAG execution in topological order (dry-run).
stitch_fractal_urns
Create hierarchical URN bindings for fractal composition.
verify_dag_integrity
Verify a DAG has no cycles or dangling references.