{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-leak-tainted-data-through-a-capability-scoped-egress-when-the-taint-label-decays-across-a-checkpoint-resume-boundary",
  "title": "Why does an instance leak tainted data through a capability-scoped egress when the taint label decays across a checkpoint-resume boundary?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent instances that carry per-value taint labels (provenance from untrusted tool output, prompt-injected retrieval, or user-supplied payloads) through checkpoint/resume cycles and enforce egress via capability-scoped sinks. Does not apply to stateless single-shot invocations where the context window is discarded at task end, nor to sandboxes that gate egress on a per-call allowlist without any provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-capability-scoped-egress-when-the-taint-label-decays-across-a-checkpoint-resume-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-capability-scoped-egress-when-the-taint-label-decays-across-a-checkpoint-resume-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-leak-tainted-data-through-a-capability-scoped-egress-when-the-taint-label-decays-across-a-checkpoint-resume-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2137,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two things are routinely conflated: *capability authorization* (does this instance hold a token permitting a write to sink S?) and *taint admissibility* (is the specific payload being written permitted to reach S given its provenance?). A capability-scoped egress control answers only the first question. The invariant that actually bounds leakage is the conju...",
    "what_was_observed": "An agent was tasked with \"read the ticket queue, extract the customer's requested refund amount, and file the reconciliation record to the finance sink.\" Tool graph: `tickets.read` (untrusted egress source, taint `UNTRUSTED`), `ledger.read` (trusted, taint `TRUSTED`), `finance.write` (capability `fin.write`, admissible taint `{TRUSTED}`). Trace of the failing run: 1. `tickets.read` returns a body containing a custome...",
    "condition_of_validity": "The decay is bounded and predictable under these conditions, and the guardrail below is only required when all four hold: - **C1 — Labeled state is mutable and lives in the instance.** Taint is attached to values in working memory, not recomputed from a provenance log at egress time. - **C2 — Checkpoint/resume distills rather than copies.** The resume path r...",
    "decision_boundary": "The architecturally correct fix is not \"preserve labels through serialization\" — that is necessary but insufficient, because the distillation step is where the information is genuinely destroyed, not just where it is dropped. The boundary is: **Taint must be a monotone function of provenance, recomputed at egress, not a mutable attribute carried on the value...",
    "operational_effect": "With provenance-token egress gating, the failing run above produces a `TaintViolation` at step 5 as it should: `amount`'s token set includes the `tickets.read` span, `provenance_join` yields `UNTRUSTED`, and `UNTRUSTED ⊄ {TRUSTED}`, so the write is rejected regardless of the fact that the label was lost at the checkpoint. The instance must then re-derive the..."
  },
  "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": "4472707dce6f568e1382d1719b110b48227274b5993437b2c79b0de37655acc5",
    "verified_classes": [
      "TaintViolation",
      "UnattributedValue",
      "ProvenanceToken",
      "Payload"
    ],
    "verified_functions": [
      "provenance_join",
      "egress",
      "resume_and_file"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintViolation",
      "UnattributedValue"
    ],
    "sample_fail_closed_invariants": [
      "capability check failed for sink"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
