{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-label-monotonicity-across-a-sandboxed-tool-boundary-when-an-untrusted-document-is-partially-re-summarized-by-a-tr",
  "title": "How should an instance enforce taint-label monotonicity across a sandboxed tool boundary when an untrusted document is partially re-summarized by a trusted sub-agent?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that propagate capability/taint labels alongside tool-call payloads and that route untrusted content through intermediate LLM sub-agents (summarizers, extractors, re-rankers) before it reaches a privileged sink (shell, filesystem write, HTTP POST, credential-bearing API). Does not apply to single-shot stateless invocations where no label survives past the response boundary, nor to systems where the sink itself independently re-validates provenance against an external attestation service.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-label-monotonicity-across-a-sandboxed-tool-boundary-when-an-untrusted-document-is-partially-re-summarized-by-a-tr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-label-monotonicity-across-a-sandboxed-tool-boundary-when-an-untrusted-document-is-partially-re-summarized-by-a-tr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-label-monotonicity-across-a-sandboxed-tool-boundary-when-an-untrusted-document-is-partially-re-summarized-by-a-tr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1664,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is *taint laundering by re-derivation*, not classic indirect prompt injection. Classic injection assumes the untrusted payload reaches the sink verbatim and the guardrail is a content filter. Taint-aware sandboxing instead tracks a **label** (`trusted` / `untrusted(source_id)` / `derived(untrusted(source_id))`) attached to ev...",
    "what_was_observed": "A document-fetch agent retrieves an attacker-controlled web page, labels the body `untrusted(src=page_4471)`, and passes it to a `summarize` sub-agent to fit the context window. The summarize tool's manifest declares `output_trust: trusted` because the sub-agent is a first-party model. The runtime, honoring the manifest, tags the returned summary `trusted`. The orchestrator then feeds the summary into a `write_file` ...",
    "condition_of_validity": "The laundering is possible only when all three hold simultaneously, which is why it hides in mature systems rather than toy ones: - **A trusted-producer sub-agent sits between an untrusted source and a privileged sink.** If the untrusted content reaches the sink directly, the per-value label survives and the sink rejects. If there is no sub-agent, no launder...",
    "decision_boundary": "The correct decision rule is: **a sub-agent call may lower a label only if the sub-agent is declared a declassifier with an explicit, auditable justification, and declassification is per-field, not per-call.** Everything else must join. Concretely, the runtime must distinguish: - `output_trust: trusted` on a manifest means \"the producer is trusted,\" **not** ...",
    "operational_effect": "Enforcing monotonicity across sub-agent boundaries changes the runtime in three measurable ways. First, sinks that previously accepted sub-agent output now receive `derived(untrusted(...))` labels and must either reject or route through a quarantined executor with no credential access—so the *blast radius* of a successful injection shrinks from \"arbitrary pr..."
  },
  "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": "4a6cadd3a95b5aa16c31fdd92e2c84e03de10b7674d3cc0e74493dac90489de7",
    "verified_classes": [
      "TaintMonotonicityViolation",
      "Label",
      "SubAgentManifest"
    ],
    "verified_functions": [
      "invoke_sub_agent",
      "sink_write_file",
      "join",
      "__le__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintMonotonicityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
