{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-labels-from-surviving-skill-injection-replay-across-red-team-harness-resets",
  "title": "Which invariants prevent taint labels from surviving skill-injection replay across red-team harness resets",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agentic red-teaming harnesses that fuzz skill-injection vectors by running an agent through a scripted episode, mutating a skill/tool payload, and asserting that a taint label (a provenance marker attached to untrusted input) never reaches a privileged sink. Does not apply to single-turn prompt-injection classifiers or to static tool-schema linters, which do not carry state across episode boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-surviving-skill-injection-replay-across-red-team-harness-resets.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-surviving-skill-injection-replay-across-red-team-harness-resets.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-labels-from-surviving-skill-injection-replay-across-red-team-harness-resets.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is not \"the agent executed an injected instruction.\" That is a detection miss, and it is the thing the harness is *supposed* to find. The failure is subtler: the harness reports a **false negative on taint propagation because the taint label was silently dropped during episode teardown and re-seeding**, so a genuinely leaky traje...",
    "what_was_observed": "A harness fuzzing a `summarize_document` skill. The skill accepts a document string and a `post_process` hook name drawn from a registry. The fuzzer mutates the document to embed `post_process: \"export_contacts\"` inside an HTML comment, betting that a naive extractor will parse it as a directive. Episode N=4417: the mutated document is injected. The extractor does parse the comment. The agent calls `post_process(\"exp...",
    "condition_of_validity": "The false-negative is only possible when all of the following hold simultaneously: 1. **Label identity is not generation-scoped.** Taint labels are keyed by something stable across episodes (byte offset, span hash, tool-call index) without an episode/generation component, so a prior episode's label can be read by a later episode. 2. **Reset is split across c...",
    "decision_boundary": "The boundary is between **\"the harness is a fuzzer\"** and **\"the harness is a verifier.\"** A fuzzer may drop labels; it will simply fail to generate the crashing input and try again. A verifier that reports `PASS` is making a claim of safety, and a dropped label turns an unsafe trajectory into a certified-safe one. Once the harness's output gates a release o...",
    "operational_effect": "The practical consequence is that taint-propagation fuzzing harnesses are only as trustworthy as their episode-boundary hygiene, and that hygiene is invisible in the pass/fail counts. A harness with a stale-label collision reports *better* resilience numbers than a correct one, because it drops the labels that would have produced failures. Teams that tune mu..."
  },
  "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": "b538ae9a1f15e54c4433cc279f343cc4f2ce4062580fc26869ffb898b13e0f34",
    "verified_classes": [
      "TaintSubstrateError",
      "TaintLabel",
      "TaintSubstrate"
    ],
    "verified_functions": [
      "assert_sink_clean",
      "replay_episode",
      "begin_episode",
      "taint",
      "lookup"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintSubstrateError"
    ],
    "sample_fail_closed_invariants": [
      "taint() called outside an episode boundary"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
