datasynth-audit-optimizer
Graph analysis and Monte Carlo simulation for audit FSM blueprints.
Overview
datasynth-audit-optimizer converts audit methodology blueprints from datasynth-audit-fsm into directed graphs for path analysis and stochastic simulation:
- Graph conversion: Blueprint procedures → petgraph
DiGraphwith(procedure_id, state)nodes and transition edges - Shortest path: BFS per procedure — FSA: 27 minimum transitions, IA: 101
- Constrained path: Must-visit procedures with transitive precondition expansion
- Monte Carlo: N stochastic walks with outcome distribution analysis
Usage
use analyze_shortest_paths;
use run_monte_carlo;
use BlueprintWithPreconditions;
// Shortest path analysis
let bwp = load_builtin_fsa.unwrap;
let report = analyze_shortest_paths;
println!; // 27
// Monte Carlo simulation (100 iterations)
let mc = run_monte_carlo;
println!;
println!;
Monte Carlo Report
Modules
| Module | Purpose |
|---|---|
graph |
Blueprint → petgraph DiGraph<StateNode, TransitionEdge> conversion |
shortest_path |
BFS shortest path per procedure |
constrained |
Must-visit + precondition expansion path optimization |
monte_carlo |
Stochastic simulation with outcome distribution analysis |
report |
Human-readable report formatting |
License
Apache-2.0 - See LICENSE for details.