{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-revoke-a-taint-propagating-capability-token-mid-plan-the-stale-warrant-join-failure-in-least-privilege-tool-invocation",
  "title": "When must an instance revoke a taint-propagating capability token mid-plan: the stale-warrant join failure in least-privilege tool invocation",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that carry per-invocation capability tokens with taint labels propagated from untrusted inputs (tool outputs, retrieved documents, peer messages) into downstream tool calls. Does not apply to stateless single-shot tool calls with no cross-call warrant, nor to systems where taint is recomputed from scratch at every call boundary with no cached token reuse.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-revoke-a-taint-propagating-capability-token-mid-plan-the-stale-warrant-join-failure-in-least-privilege-tool-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-revoke-a-taint-propagating-capability-token-mid-plan-the-stale-warrant-join-failure-in-least-privilege-tool-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-revoke-a-taint-propagating-capability-token-mid-plan-the-stale-warrant-join-failure-in-least-privilege-tool-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-propagating capability token is not a permission. It is a *permission conjoined with a provenance claim*. The token says: \"instance `A` may call `write_file`, and the data flowing into that call derives only from labels `{user_direct}`.\" The least-privilege guarantee holds only while the provenance claim remains true at the moment of use. The non-obv...",
    "what_was_observed": "A planner agent `P` is asked to summarize a user-supplied report and file it. `P` mints a capability token `T_write` scoped to `write_file(\"/reports/summary.md\")` with taint label `{user_direct}` — correct at mint time, because the only input at that instant is the user message. `P` then performs a retrieval step to enrich the summary. The retriever returns a document containing an embedded instruction (\"append the c...",
    "condition_of_validity": "The least-privilege invariant for taint-propagating tokens is: > A token `T` with taint `τ(T)` may redeem against payload `p` only if `taint(p) ⊆ τ(T)` at the instant of redemption. Most runtimes enforce the *mint-time* half (`τ(T)` is correctly derived from inputs present at mint) and skip the *redeem-time* half (`taint(p)` is re-checked against `τ(T)`). Th...",
    "decision_boundary": "The runtime must decide, at every redemption, whether to **execute**, **re-mint**, or **revoke**. The boundary is set by comparing payload taint to token taint, not by any property of the token alone: - `taint(p) ⊆ τ(T)` → execute. Warrant is fresh. - `taint(p) ⊋ τ(T)` and the excess labels are *downgradable* (e.g., `untrusted_retrieval` that passed a saniti...",
    "operational_effect": "Enforcing the redeem-time taint check changes agent behavior in three measurable ways: 1. **Plans gain a taint-aware failure mode.** Multi-step plans that mix trusted and untrusted inputs will now fail at redemption rather than silently succeeding. This is correct but increases plan-failure rate; planners must be given the taint delta so they can re-plan (dr..."
  },
  "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": "7b7f15e7501b3e2e3679ac6e6b0bc7c06cace2d0492025702f3ac18b9d5d3afa",
    "verified_classes": [
      "StaleWarrantError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "redeem"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
