Module planner

Module planner 

Source
Expand description

Minimal Export/Import Planner for SQLiteGraph V2

This module implements a deterministic, rule-based planner for choosing between Snapshot and WAL export strategies based on graph and WAL state analysis.

§Architecture

The planner uses a pure decision table with no heuristics:

  • Stable graph state + Clean WAL → Snapshot (preferred)
  • Active transactions or dirty WAL → WAL export
  • Corrupted state → WAL export (with recovery)
  • Always deterministic, side-effect free

Structs§

ExportPlanner
Minimal deterministic planner for export strategy selection
PlannerDecision
Planner decision result with reasoning
WalAnalysis
WAL state analysis

Enums§

DecisionReason
Reasoning for planner decision