{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-label-laundering-through-lossy-re-derivation-in-taint-tracked-agent-pipelines",
  "title": "Which invariants prevent label-laundering through lossy re-derivation in taint-tracked agent pipelines",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that propagate information-flow labels (taint bits) across tool outputs, retrieval results, and inter-agent messages, and that permit any downstream component to *re-derive* derived state (summaries, embeddings, structured extractions, paraphrased handoffs) from labeled content. Does not apply to systems that enforce strict non-interference by refusing all derived state from labeled inputs, nor to stateless single-turn inference with no persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-lossy-re-derivation-in-taint-tracked-agent-pipelines.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-lossy-re-derivation-in-taint-tracked-agent-pipelines.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-lossy-re-derivation-in-taint-tracked-agent-pipelines.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2178,
    "python_slice_tokens": 484,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking fails in two categorically different ways, and conflating them produces the wrong guardrail. The *obvious* failure is **label drop**: a labeled value crosses a boundary (tool → context → sub-agent message) and the label is not carried. This is a plumbing bug, detectable by structural auditing, and is fixed by making the label part of the value...",
    "what_was_observed": "A retrieval-augmented agent ingests an external document `D` carrying label `Tainted(source=web)`. Stage 1 (retriever) correctly attaches the label. Stage 2 extracts structured facts: `extract(D) → F`, where `F` is a JSON object of claims. The extraction prompt is trusted; the extractor model is the same trusted model used everywhere. The pipeline *implicitly* treats `F` as derived-by-us, hence `Clean`. But `F`'s con...",
    "condition_of_validity": "The guardrail \"labels travel with values\" is only sound under a condition that agent pipelines routinely violate: **every value-producing operation is a labeled operation, and its output taint is the join of its input taints unless an explicit declassifier is invoked.** This is non-interference's dual. It holds only if: - The label lattice has a well-defined...",
    "decision_boundary": "The boundary is not \"tainted vs. clean\" but **\"explicit declassification vs. implicit declassification.\"** Place every derivation on the correct side: - **Implicit (forbidden):** output taint defaults to `Clean`; taint is computed from direct data operands only; \"derived by trusted model\" clears taint; lossy transform assumed to strip payload. - **Explicit (...",
    "operational_effect": "The practical consequence is that taint-tracking systems must be evaluated not on whether labels are *carried* but on whether derivation nodes are *closed under join*. Two operational requirements follow: 1. **Derivation-node join enforcement.** Every node that emits a value must compute `taint(out) = ⋁ taint(transitive_inputs)` and refuse to emit if it cann..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "3f8e338299627629cc12450940c091a47eabd4ee8229f10c69c353bd68aa594e",
    "verified_classes": [
      "Taint",
      "TaintJoinViolation",
      "Labeled",
      "Declassification",
      "DerivationNode"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "register_declassification",
      "derive",
      "emit_to_clean_store"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintJoinViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert facts.taint is Taint.TAINTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
