Skip to main content

Module api

Module api 

Source

Structs§

AnalysisOutcome
Immutable result of an analysis run.
AnalysisState
Config
DbCache
EvidenceLocation
Safe source context attached by the engine while it evaluates a statement.
EvidenceRecord
One durable reason why the analyzer had to be conservative.
ReportFinding
A violation paired with the file and line that produced it. The flattened serialization keeps the JSON violation schema additive.
Reporter
SafeMigrateEngine

Enums§

AnalysisError
Stable error boundary for high-level library analysis helpers.
EvidenceCode
Stable, machine-readable causes for conservative analysis.
EvidenceScope
Whether uncertainty affects only one transition or subsequent statements.
RuleCapability
Semantic state surfaces a rule must account for before claiming an exact result. Declarations are checked centrally so new rules cannot silently depend on an untracked part of the transition state.

Functions§

analyze
Analyze one migration using a validated cache and return immutable findings, confidence, and evidence. The helper owns the mutable state so callers cannot accidentally bypass cache validation or reuse state across unrelated analyses.
analyze_chain
Analyze an ordered migration chain with a fresh validated baseline.