Expand description
Hierarchical composition for Flow predicates.
Discovery finds invariants.harn files. This module turns those files into
applicable predicate declarations and composes their evaluated verdicts
without letting a deeper directory relax a shallower rule.
Structs§
- Composed
Predicate Evaluation - Effective verdict for one predicate evaluation after ancestor composition.
- Directory
Contribution - One directory’s contribution to a predicate-count explosion.
- Predicate
Ceiling - Predicate-count explosion limits applied to a slice’s resolved predicate union before evaluation begins.
- Predicate
Ceiling Violation - Structured detail emitted when a slice’s predicate union exceeds the
ceiling. Callers may render it directly or convert it into the canonical
InvariantResultviaPredicateCeilingViolation::to_invariant_result. - Predicate
Evaluation - A predicate evaluation stamped with its source depth.
- Predicate
Source - Source location of a predicate within the directory hierarchy.
- Resolved
Predicate - One predicate declaration after hierarchical resolution.
Enums§
- Predicate
Ceiling Level - Severity tier of a
PredicateCeilingViolation. - Predicate
Ceiling Outcome - Outcome of running
enforce_predicate_ceiling. - Verdict
Strictness - Strictness rank for merging verdicts.
Constants§
- PREDICATE_
COUNT_ EXPLOSION_ CODE - Stable error code attached to a
Blockproduced by ceiling enforcement.
Functions§
- compose_
predicate_ results - Compose evaluated predicate results under stricter-child / shallower-tie semantics.
- enforce_
predicate_ ceiling - Apply a
PredicateCeilingto the resolved predicate union for a slice. - resolve_
predicates - Resolve the applicable predicates for a single root-to-leaf discovery chain.
- resolve_
predicates_ for_ touched_ directories - Resolve predicate declarations for every touched directory and union them.
- verdict_
strictness