Assert input content survives remediation — a fidelity gate.

ContentValidator (input ⊆ output fidelity)

Intent — A deterministic gate asserting that every piece of the user's original content survives remediation (input content ⊆ output content), run in production, with a per-pass variant in staging that pinpoints which pass dropped content (our instance: the ContentValidator fidelity gate).

SummaryAssert input content survives remediation — a fidelity gate.
TargetProduct · Validation & conformance
Formvalidation
EnforcementHard (deterministic) · blocking — fails the job in prod on a fidelity violation; the per-pass staging variant signals the offending pass on a dedicated marker + a nonzero exit code

Motivation — the failure it kills

Remediation mutates the document across many passes and four formats. A bug in any pass could silently drop or alter user content: a deleted paragraph, a mangled table, a lost caption the author never sees go. For a fidelity-critical tool that is the worst possible outcome: the output looks fine and quietly isn't what the author wrote. The failure recurs on every remediation pass.

Why it's not just "trust the remediation code" (or "spot-check outputs")

"Trust the code" breaks the moment a mutator has a bug, and spot-checking outputs misses silent drops: you don't notice the paragraph that's gone. The fidelity gate makes the guarantee a deterministic post-condition: the input's content must be a subset of the output's, checked mechanically on every production job. A post-condition that fails the job removes the trust from the loop. The staging per-pass variant adds localization: it tells you which pass violated the subset, turning "content was lost somewhere" into "pass N lost it."

Mechanism

The fidelity gate extracts the input's content and asserts it is a subset of the output's; it runs in production and fails the job on violation. A staging-only per-pass variant (gated by an env label) emits a dedicated fidelity marker and a nonzero exit code so the offending pass is identified before delivery.

Prerequisites

Consequences & costs

Known uses

Related mechanisms