{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-propagate-taint-labels-through-tool-return-values-rather-than-trusting-the-tool-boundary-as-a-declassification",
  "title": "Under what conditions must an instance propagate taint labels through tool return values rather than trusting the tool boundary as a declassification point?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that reads untrusted content (web, email, retrieved documents, user-supplied files) and subsequently invokes tools whose arguments are derived from that content. Does not apply to agents operating exclusively on content authored within a single trusted principal's session with no external ingestion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-labels-through-tool-return-values-rather-than-trusting-the-tool-boundary-as-a-declassification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-labels-through-tool-return-values-rather-than-trusting-the-tool-boundary-as-a-declassification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-labels-through-tool-return-values-rather-than-trusting-the-tool-boundary-as-a-declassification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats every tool call as a *declassification boundary*: bytes returned from `fetch_url`, `read_email`, or `search` are assumed to be \"data,\" and the agent's subsequent reasoning is assumed to be \"the trusted interpreter.\" Under this model, prompt injection is a *content-filtering* problem — you detect malicious instructions and drop them. Th...",
    "what_was_observed": "A research-agent instance was tasked with \"read the vendor's security page and, if it mentions a CVE, file a ticket with the remediation steps.\" Trace: 1. `fetch_url(\"https://vendor.example/security\")` returns HTML. The tool wrapper labels the return `UNTRUSTED(fetch_url)`. 2. The agent summarizes the page into its scratchpad: *\"Page discusses CVE-2024-XXXX; recommends rotating API keys and updating the allowlist to ...",
    "condition_of_validity": "Span-exact taint propagation is valid **only** when the following invariant holds: > For every tool argument `a` and every untrusted source `s`, if any token of `a` was causally influenced by `s`, then `label(a)` contains `UNTRUSTED(s)`. The substring-matching implementation satisfies this invariant only when the model's transformation is *identity or deleti...",
    "decision_boundary": "The decision boundary is whether a *declassification predicate* exists that is (a) mechanically checkable and (b) does not itself depend on the model's judgment of the untrusted content. Two admissible patterns: - **Structured extraction with schema constraints.** If the tool argument is drawn from a closed enum or a regex-validated grammar (e.g., a CVE ID m...",
    "operational_effect": "Implementations that adopt message-level provenance over span-level matching observe three effects. First, *false-positive rate rises sharply* — nearly every ticket body becomes \"untrusted,\" which is correct but operationally noisy; teams must therefore invest in structured sinks (typed fields, enum-constrained arguments) rather than in better injection dete..."
  },
  "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": "4048a7e056bbf68d1936063da1f7d3a98d8fa1c902c7517925ced14e32d28abc",
    "verified_classes": [
      "Trust",
      "Label",
      "TaintLaunderingError",
      "Message"
    ],
    "verified_functions": [
      "propagate_through_model",
      "call_privileged_tool",
      "taint",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.label.trust is Trust.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
