{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-derive-taint-labels-at-every-capability-enforcement-point-rather-than-trusting-the-label-carried-in-the-forw",
  "title": "Under what conditions must an instance re-derive taint labels at every capability-enforcement point rather than trusting the label carried in the forwarded envelope",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-hop agent pipelines where a capability token and an information-flow (taint) label are both propagated inside a forwarded message envelope across a trust boundary, and where a downstream policy enforcement point (PEP) grants or denies tool capabilities based on that label. Does not apply to single-process tool calls where the label and the capability are minted and consumed by the same trusted runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-labels-at-every-capability-enforcement-point-rather-than-trusting-the-label-carried-in-the-forw.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-labels-at-every-capability-enforcement-point-rather-than-trusting-the-label-carried-in-the-forw.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-labels-at-every-capability-enforcement-point-rather-than-trusting-the-label-carried-in-the-forw.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious failure is the conflation of two distinct objects that travel together in the envelope: the **capability** (a bearer grant, e.g. \"may call `write_file`\") and the **taint label** (a claim about the provenance of the payload, e.g. \"derived from an untrusted web fetch\"). A capability is a *right*; a taint label is a *claim about data*. Forwardin...",
    "what_was_observed": "In a three-hop pipeline (orchestrator → retrieval agent → summarizer → tool-executing worker), a payload originating from an untrusted web fetch was correctly labeled `taint=untrusted` at the retrieval agent. The retrieval agent forwarded the summary request to the summarizer with `{capability: \"summarize\", taint: \"untrusted\"}`. The summarizer, as part of normal operation, called an internal `redact_pii` tool that re...",
    "condition_of_validity": "Re-derivation at every PEP is required, and mere forwarding is unsound, precisely when all of the following hold: 1. **The forwarding hop is not label-transparent.** Any serialization, transformation, tool invocation, or re-prompting between label computation and PEP consumption can alter provenance. If the payload is re-serialized, re-summarized, or passed ...",
    "decision_boundary": "The enforcement point must branch on *label provenance*, not label presence: - If the envelope carries a label **plus a verifiable provenance proof** binding it to the received payload's hash, and the receiving PEP can validate the signature against a trusted issuer, **honor the label** (fast path). - If the envelope carries a label **without** such a proof,...",
    "operational_effect": "Enforcing re-derivation-or-verify at each PEP eliminates the field-dropping exploit (absent → trusted) and the over-tainting retry-workaround (stale untrusted → operator hand-edits envelope). It converts a silent, emergent authorization failure into an explicit, auditable decision: every capability grant is accompanied by a provenance proof or a fresh lineag..."
  },
  "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": "dd910fbd6307419d53c2840c0d510e07015201c061ac92d3d4f3edccc1e92187",
    "verified_classes": [
      "TaintBindingViolation"
    ],
    "verified_functions": [
      "enforce_capability",
      "_sha256",
      "_derive_taint_from_lineage"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintBindingViolation"
    ],
    "sample_fail_closed_invariants": [
      "taint proof does not bind to the received payload; label is stale or transplanted"
    ],
    "stdlib_dependencies": [
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
