Expand description
Gate-decision policy over an already-computed warble::BlastRadius (Phase 4a — the mutating
guardrail described in blast-radius.md §6). Pure, no I/O: the host computes the
radius (via crate::blast_radius_for_project), then this module turns it plus a threshold
into a decision the host can act on (allow the apply, escalate to human approval, or hard-block
it).
Structs§
- Gate
Threshold - The thresholds a gate decision is evaluated against. All fields are optional: an absent
max_severity/max_downstreamsimply never triggers that branch of the policy.
Enums§
- Gate
Decision - The outcome of a gate decision — what the host should do with the pending mutating apply.
Functions§
- decide
- Pure policy over an already-computed radius. Returns the decision plus a human-readable reason (surfaced to the operator / logged, not machine-parsed).
- parse_
severity - Parse a
warble::Severityfrom its human-readable name (the inverse ofseverity_str). Case-insensitive; returnsNonefor anything else (the caller should reject an unknown flag value rather than silently defaulting). - severity_
str - Human-readable name for a
warble::Severity(the inverse ofparse_severity).