{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-label-collapse-at-the-inline-policy-enforcement-point-during-tool-call-fan-out",
  "title": "What structural signals indicate a taint-label collapse at the inline policy enforcement point during tool-call fan-out",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that make inline allow/deny decisions on tool invocations using taint labels propagated from prior tool outputs, prompt segments, or retrieved memory. Does not apply to post-hoc audit-only logging, nor to runtimes where taint is derived solely from static tool manifests rather than runtime dataflow.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-collapse-at-the-inline-policy-enforcement-point-during-tool-call-fan-out.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-collapse-at-the-inline-policy-enforcement-point-during-tool-call-fan-out.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-collapse-at-the-inline-policy-enforcement-point-during-tool-call-fan-out.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1965,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint as a property of a value* and *taint as a property of a call site*. A taint-aware enforcement point is correct only when the label attached to the arguments of a tool invocation is the least-upper-bound (join) of the labels of every value that contributed to those arguments, recomputed at the moment of invocatio...",
    "what_was_observed": "An agent was tasked with triaging an untrusted email corpus. Message bodies were labeled `UNTRUSTED_EXTERNAL`. A summarizer tool reduced each message to a structured record; the runtime joined the summary's label with `UNTRUSTED_EXTERNAL` and stamped the agent context accordingly. The agent then issued a fan-out of three calls in one reasoning step: `search_kb(query)` (sink class `READ`), `write_note(path, body)` (si...",
    "condition_of_validity": "The invariant that must hold for inline taint enforcement to be sound is: > For every tool invocation `c`, `label(args(c)) = ⊔ { label(v) : v ∈ provenance(args(c)) }`, evaluated at the enforcement point, and the sink decision is a function of `(label(args(c)), sink_class(c))` only — never of the agent context label, and never of a defaulted field. This invar...",
    "decision_boundary": "The boundary between a bounded and an unbounded failure is whether the enforcement point can *reconstruct* argument provenance at decision time. Two regimes: - **Reconstructable (bounded):** the runtime retains a provenance graph from tool outputs and memory retrievals through planner argument construction. The enforcement point walks the graph, computes the...",
    "operational_effect": "The operational consequence is that taint-aware inline enforcement must be placed *downstream of argument construction and upstream of any lossy serialization*, and the planner must be forbidden from emitting argument records whose label is not the computed join. Concretely: - Argument records carry a provenance handle, not a label field; the enforcement poi..."
  },
  "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": "70e780d4a36fb55fc6dd42535bbd9baef7c52fb1ddbafe52c6646caa3d6a8e62",
    "verified_classes": [
      "TaintCollapseError",
      "Provenance",
      "ToolCall"
    ],
    "verified_functions": [
      "join_labels",
      "enforce",
      "run_step"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
