Expand description
Drift detection for preprocessor outputs (the 4-state matrix).
Walks the per-pack baseline cache and compares each cached record
against the current source file (in the pack) and the current
deployed file (in the datastore). Classifies each pair into one of
the four states defined in docs/proposals/preprocessing-pipeline.lex
§6.1:
| source | deployed | state |
|---|---|---|
| same | same | Synced |
| new | same | InputChanged |
| same | edited | OutputChanged |
| new | edited | BothChanged |
Plus two special states for missing files: a baseline whose source
has been deleted (MissingSource) or whose deployed artifact is
gone (MissingDeployed).
This module is read-only. It produces a DivergenceReport per
cached baseline; the action layer (commands::transform::check)
decides what to do with each report (apply a reverse-merge diff,
emit a conflict block, etc).
Structs§
- Divergence
Report - One row in
dodot transform check’s report.
Enums§
- Divergence
State - Where a single processed file sits in the 4-state matrix.
Functions§
- classify_
one - Classify a single baseline against the current state on disk.
- collect_
baselines - Walk the per-pack baseline cache directory and load every record.
- collect_
divergences - Walk every cached baseline and produce a divergence report.
- find_
baseline_ for_ source - Look up the baseline whose
source_pathmatchestarget, plus the(pack, handler, filename)triple that identifies it in the cache layout.