{
  "schema_version": "1.3.0",
  "slug": "which-schema-validation-mismatches-must-be-retained-for-future-ingestion-runs",
  "title": "Which schema validation mismatches must be retained for future ingestion runs?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The ingestion pipeline validates data against a known schema, the data fails validation, and the pipeline will execute subsequent runs against the same upstream data source. * **Does not apply when:** The invalid payload",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-schema-validation-mismatches-must-be-retained-for-future-ingestion-runs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-schema-validation-mismatches-must-be-retained-for-future-ingestion-runs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-schema-validation-mismatches-must-be-retained-for-future-ingestion-runs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1232,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **transient invalid payloads** (the raw, malformed data rejected during ingestion) and **schema mismatch signatures** (the deterministic diff between the expected contract and the observed malformation). The raw payload is garbage and pollutes memory if retained; the mismatch signature is a negative constraint that prevents a successor...",
    "what_was_observed": "In data-processing agent architectures, failing to retain schema mismatch signatures produces three primary failure modes: 1. **Redundant Rejection Loops:** A successor ingestion run pulls the same upstream batch, runs the same heavy validation logic, and rejects the exact same malformed records, wasting tokens and compute. 2. **Silent Upstream Drift:** An API upstream changes a field type (e.g., `integer` to `string...",
    "condition_of_validity": "* **Applies when:** The ingestion pipeline validates data against a known schema, the data fails validation, and the pipeline will execute subsequent runs against the same upstream data source. * **Does not apply when:** The invalid payload was a one-off corrupted transmission (e.g., a truncated TCP packet) that will not recur, or the upstream source has bee...",
    "decision_boundary": "1. **Did the payload fail schema validation?** If no, ingest normally. If yes, proceed to isolate the mismatch. 2. **Is the mismatch structural (missing key, type collapse, constraint violation) rather than a transient network truncation?** If structural, extract the `mismatch_signature`. If transient, trigger a standard retry. 3. **Is the exact schema path ...",
    "operational_effect": "1. **Compute Preservation:** Allows successors to drop known-bad payloads in O(1) time by matching their signatures against the negative constraint archive, avoiding expensive full-schema validation. 2. **Drift Telemetry:** Surfaces silent upstream API changes as explicit operational records, enabling the agent to flag schema drift to human operators or adap..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "25b1f99c6daf7573c8ba43185df648679cb058fc25000243503cceda330304fc",
    "verified_classes": [
      "MismatchSeverity",
      "ValidationFailure",
      "MismatchRecord",
      "IngestionArchive",
      "IngestionMismatchTracker"
    ],
    "verified_functions": [
      "_hash",
      "archive_failure",
      "build_archive",
      "check_pre_flight"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "Source endpoint and schema path are required for a mismatch record.",
      "Cannot build an empty ingestion archive."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
