{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-derive-taint-after-a-tool-call-mutates-the-very-object-it-was-authorized-against",
  "title": "When must an instance re-derive taint after a tool call mutates the very object it was authorized against",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent runtime that enforces tool-call authorization via taint labels propagated across a plan's data-flow graph, where tools may mutate (not merely read) tainted objects. Does not apply to pure-read tool surfaces or to stateless single-call invocations where no label survives past the response.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-taint-after-a-tool-call-mutates-the-very-object-it-was-authorized-against.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-taint-after-a-tool-call-mutates-the-very-object-it-was-authorized-against.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-taint-after-a-tool-call-mutates-the-very-object-it-was-authorized-against.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1910,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware guardrails are usually specified as a *pre-call* predicate: a tool `T` is authorized at step `n` iff the taint lattice `L` joined over all arguments to `T` is below `T`'s clearance `C(T)`, i.e. `⊔_{a ∈ args(T)} taint(a) ⊑ C(T)`. This predicate is sound only if the taint of an argument is a *monotone, invocation-invariant* property of the object i...",
    "what_was_observed": "Consider an agent operating over a document store with three tools: `read_external(url)` (clearance `PUBLIC`, returns text labeled `UNTRUSTED`), `summarize(doc)` (clearance `INTERNAL`, writes a summary field back onto `doc`), and `publish(doc)` (clearance `TRUSTED`, requires `taint(doc) ⊑ TRUSTED`). The trace that broke: 1. Agent calls `read_external(\"https://attacker.example/x\")`. Response text is labeled `UNTRUSTED...",
    "condition_of_validity": "The pre-call authorization predicate `⊔ taint(args) ⊑ C(T)` is sound **iff** all of the following hold: - **Non-mutation of labeled objects:** `T` does not write to any object whose label participated in the authorization decision. (Read-only tools trivially satisfy this; mutating tools do not.) - **Label-declaration honesty:** the label assigned to `T`'s ou...",
    "decision_boundary": "The runtime must decide, per tool call, between two regimes: - **Gate-only regime:** valid only for tools where `writes(T) ∩ labeled_objects(args(T)) = ∅`. Here the pre-call check is complete; no post-call re-derivation is required. This is the common case and should be the fast path. - **Re-derivation regime:** mandatory for any tool where `writes(T) ∩ labe...",
    "operational_effect": "When the boundary is respected, the observable behavior is that taint never decreases across a mutating call unless the tool's clearance and declared output label *jointly* justify the decrease — and in practice, the join with input taint means taint is monotonically non-decreasing along any data-flow path that passes through a mutating tool. This converts t..."
  },
  "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": "8ee328254e6113dcdddb389342b1a27c71c4a3838a4be3aacbf75015c03f8e40",
    "verified_classes": [
      "TaintLaunderingError",
      "LabelStore"
    ],
    "verified_functions": [
      "enforce_mutating_call",
      "get",
      "snapshot",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
