Skip to main content

Crate requisite

Crate requisite 

Source
Expand description

§requisite

requisite encodes data-handling requirements in types:

  • trust routes external input through a named sanitizer before trusted sinks receive it.
  • confidence maps probabilities to action tiers and issues a Certain token for the highest tier.
  • fresh checks TTLs at read time and binds operation-scoped values to their closure.

A function states its requirement in its parameter type. Callers satisfy that requirement through the corresponding transition or check.

§Enforcement

Trust tags, confidence tiers, proof tokens, and scoped lifetimes are checked by the compiler. TTLs and confidence thresholds are evaluated at runtime.

Runtime checks return types that carry their result forward. Confident::gate, for example, returns a tier whose highest variant includes a Certain token.

§Guides

Modules§

confidence
Confidence-based action gates.
fresh
TTL-checked and operation-scoped values.
prelude
Common imports.
trust
Type-checked transitions from external input to trusted values.