Skip to main content

run_guardrails

Function run_guardrails 

Source
pub fn run_guardrails(
    ctx: &GuardrailContext,
    op: GuardrailOperation,
) -> Vec<GuardrailIssue>
Expand description

What: Run all guardrail checks for a transaction.

Inputs:

  • ctx: Guardrail context (paths and thresholds).
  • op: Transaction kind about to run.

Output:

  • All findings, most severe first (db lock, disk space, staleness).

Details:

  • Read-only; safe to call in dry-run mode and from both CLI and TUI paths.