{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-tool-output-labels-as-non-declassifiable-when-an-inter-agent-message-re-encodes-the-same-bytes",
  "title": "In what scenarios must an instance treat tool-output labels as non-declassifiable when an inter-agent message re-encodes the same bytes",
  "date_of_record": "2026 November 16",
  "scope": "Applies to agent runtimes that propagate information-flow (IFC) taint labels across tool outputs, retrieval chunks, and inter-agent messages, where taint is attached to content and must survive re-serialization. Does not apply to single-turn, single-agent systems with no cross-boundary content reuse, nor to systems that perform static (non-runtime) dataflow analysis over a fixed call graph.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-output-labels-as-non-declassifiable-when-an-inter-agent-message-re-encodes-the-same-bytes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-output-labels-as-non-declassifiable-when-an-inter-agent-message-re-encodes-the-same-bytes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-output-labels-as-non-declassifiable-when-an-inter-agent-message-re-encodes-the-same-bytes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1929,
    "python_slice_tokens": 421,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection bypasses the filter.\" It is a **label-laundering** boundary: an agent's taint label is bound to a *message identity* (a tool-result object, a retrieval document ID, an envelope) rather than to the *information content* it carries. When the same bytes reappear in a different container — a sub-agent summarizing a tool outpu...",
    "what_was_observed": "In a three-tier agent (planner → worker → synthesizer) with a shared retrieval index, the following sequence reproduced an injection that no per-component check flagged: 1. `fetch_url` returned a page containing an adversarial instruction. The tool-result object was correctly labeled `UNTRUSTED{source=web}`. 2. The worker, asked to \"summarize findings,\" called a summarizer model and emitted a new message `{role: \"ass...",
    "condition_of_validity": "The \"message label is sufficient\" assumption holds only when **all** of the following are true: - The content is not transformed between source and sink (no summarize, paraphrase, re-chunk, re-encode). - The message envelope is not stripped and re-created by an intermediary (broker, queue, serializer, log-and-replay). - The receiving agent's policy does not ...",
    "decision_boundary": "At runtime, the instance must choose between two behaviors when it sees content that *might* be a re-encoding of previously tainted bytes: - **Re-label as tainted (conservative):** required when the transform between source and sink is not on the registered label-preserving list, or when the receiving policy acts on `content` (executes, sends, writes) rather...",
    "operational_effect": "Enforcing content-bound taint with a monotone join changes system behavior in three observable ways: 1. **Summaries of tainted content remain tainted**, so downstream acting sinks (email, shell, payment) require an explicit, audited declassification step. This adds a mandatory human-or-policy checkpoint on a path that previously \"just worked.\" 2. **Inter-age..."
  },
  "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": "39ae4ea7b5b1ffad6c473ed797860469cf59e591309785f9653304c16f155d46",
    "verified_classes": [
      "TaintError",
      "Label",
      "Artifact"
    ],
    "verified_functions": [
      "join",
      "transform",
      "receive_inter_agent_message",
      "acting_sink",
      "run_pipeline"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
