LayeredCheck
Hierarchical verification strategy
Mechanism
A Check strategy that evaluates constraints in a declared Hierarchy, cheapest first (e.g., existence -> Validate (schema) -> Understand (semantics), which is also increasing abstraction in the common case). It uses a Sequence of Gates where lower-level failures halt execution immediately, preventing resource waste on higher-level checks for fundamentally broken inputs.
Invariants
- A lower layer's failure stops the Sequence; the next layer does not run.
- Layers run in their declared order, cheapest first.
- Each layer declares whether a finding is a failure or a warning.
Signature
- Check(Hierarchy)
Failure modes
- Misordered layers: an expensive check sits below a cheap one, so the halt saves nothing.
- Warning inflation: findings are classed as warnings to keep the Sequence running, which defeats the halt.
Where this came from
—
Builds on
- Sequence composes_with
- Check composes_with
- Gate composes_with
- Understand references
- Validate references
- Hierarchy references
Related
Identity
- Ref:
LayeredCheck#6d73 - Hash: sema:LayeredCheck#mh:SHA-256:6d7379c20e7b733e77ee96409251b53d8e06133944506d9f7443b13178a38042
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository