Expand description
Dirty units from git: anchors, one diff per anchor, the core cascade.
A Snapshot is the repository at one commit: every SDD loaded from a
checkout of it, the unit graph over them, each SDD’s anchors from its
journal, and the declared ownership of every path. Asked which Verified
units a change reaches (Snapshot::dirty), it resolves each recorded
anchor — a short sha — to a commit, runs `git diff –name-only
A graph with a cycle has no closures to cascade along: the cycles are returned instead of a guess. Output is sorted by unit (slug, then id) and SDDs by slug, so the same repository state gives the same answer.
Structs§
- Diff
Cache - What a run’s dirty sets found at one head, kept for the next: each anchor’s commit, and the paths that differ between it and the head. Moving to a new head diffs only the commits in between; a path they touched is compared, anchor by anchor, in one batch.
- Dirty
Set - Which Verified units — and which suites — a change reaches.
- SddAt
- One SDD of a
Snapshot. - Snapshot
- The repository at one commit, as the re-check cascade reads it.
- Spec
Files - Where the SDDs of a repository keep their files, repository-relative: what tells protocol state from everything else.
- Suite
State - One SDD’s §5 Test command, against its suite anchor.
Enums§
Functions§
- benign
- Whether
old..newmoved nothing but protocol state:newdescends fromold, and no path changed beyond it. What was established atoldthen holds atnew. - classify_
changes - The paths that differ between
oldandnew, sorted, each with whether its change is protocol state only: a bundle’s journal, ledger, decision or change log; a bundle’s unit file, or a single-file SDD, that differs in nothing but vitrify-managed fields (and, in a single file, those sections). Such changes — claims, renewals, stamps, recorded questions — change nothing a build, a test or a lint reads. - describe
- One human line for why a unit or a suite is dirty: the changed paths
with their owners,
no recorded check,every recorded check is distrusted, oranchor <c> cannot be resolved …. - substantive_
changes - The paths that differ between
oldandnewbeyond protocol state, sorted.