#1448·guardrails

FIX action silently mutates output - should there be a 'quarantine' tier between LOG and FIX?

Author: lan3344Created Mar 29, 2026Updated Sep 23, 2026
LabelsStale

Hi Guardrails team,

I've been thinking through the on_fail action hierarchy and noticed something that feels like a gap.

When on_fail="fix" is triggered, the validator silently rewrites the LLM's output to meet the schema - then execution continues as if nothing happened. The downstream code receives a "clean" result with no indication that a mutation occurred.

This works great for purely mechanical fixes (e.g. stripping extra whitespace, coercing types). But for semantic corrections - where the validator meaningfully changes what the LLM said, not just how it was formatted - silent mutation is indistinguishable from silent override.

The original output is gone. The fix isn't versioned. The model has no awareness that its response was altered. And neither does the caller, unless they explicitly diff raw_llm_output against the final result themselves.

Proposed mental model - a three-tier response:

 EXCEPTION  ? confirmed harmful, halt
 QUARANTINE ? uncertain (could go either way), log + flag, pass through but mark as unverified
 FIX        ? confirmed fixable, mutate - but leave a paper trail

The QUARANTINE tier would be for outputs that fail validation but aren't clearly wrong - they're just outside the expected envelope. Log them, let them through, and let the developer decide later. Don't silently fix them, and don't loudly break the pipeline.

The key insight: "anomalous" and "harmful" are different categories. The current design treats everything that fails validation as either "broken" (FIX/REASK) or "fatal" (EXCEPTION). But some failures are just unexpected - and unexpected things deserve observation, not immediate correction.

Even if QUARANTINE is too big a change, would it be feasible to add an on_fix callback or a mutations field in the ValidationOutcome, so callers at least know when and how a fix was applied?

This came out of thinking through memory integrity in long-running AI agents - where a "fixed" output that silently diverges from the original can compound into serious drift over time.

Thanks for building this. The on_fail design is one of the cleaner pieces of LLM safety tooling I've seen.

Source: guardrails-ai/guardrails