{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-dynamic-information-flow-label-as-non-forgeable-across-a-tool-boundary-and-what-breaks-when-it-does-not",
  "title": "In what scenarios must an instance treat a dynamic information-flow label as non-forgeable across a tool boundary, and what breaks when it does not",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single- or multi-agent systems that propagate dynamic taint labels (trust/sensitivity provenance) on context segments and rely on those labels to gate tool invocation or output release. Does not apply to systems with no inter-segment provenance tracking, or where all tool outputs are treated as uniformly untrusted by construction (no label needed).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamic-information-flow-label-as-non-forgeable-across-a-tool-boundary-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamic-information-flow-label-as-non-forgeable-across-a-tool-boundary-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-dynamic-information-flow-label-as-non-forgeable-across-a-tool-boundary-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1890,
    "python_slice_tokens": 483,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure under examination is not \"the model got prompt-injected.\" It is that a taint label carried *across a tool boundary* was allowed to be **re-derived** by the callee instead of being **inherited** from the caller. Static taint tracking assumes labels are metadata owned by the runtime. Dynamic information-flow labels in agent systems are frequently *...",
    "what_was_observed": "A retrieval tool returns a document chunk. The orchestrator tags the chunk `taint=untrusted, source=web_fetch` and appends it to context. The agent then calls a `summarize_and_classify` sub-tool, passing the chunk as an argument. The sub-tool's schema includes a field `provenance: {trust: \"trusted\"|\"untrusted\"}` that the *caller is expected to populate*. The orchestrator, following its template, copies the label into...",
    "condition_of_validity": "The invariant that must hold: **a dynamic label is valid at a consumption point only if it is cryptographically or structurally bound to the runtime that minted it, and no intermediate component may assign a *less restrictive* label than it received.** Concretely, for a label `L` minted by runtime `R` on segment `S`: - `L` must carry a binding token (HMAC ov...",
    "decision_boundary": "An instance must treat a cross-boundary label as non-forgeable—and refuse to re-derive it—exactly when **all** of the following hold: - The label gates an *irreversible or externally observable* action (egress, write, payment, code execution). For reversible, intra-sandbox actions, advisory labels are acceptable and cheaper. - The data carrying the label tra...",
    "operational_effect": "When the invariant holds, the blast radius of a successful injection is bounded by the taint lattice: the poisoned segment can influence reasoning but cannot cross into a less-tainted sink without an explicit, audited declassification step (a human approval or a verifier that re-derives trust from a trusted source). The egress gate rejects on ancestry join, ..."
  },
  "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": "1852396fc7868c04a1cce9cafec94c35bb345adae7c2540d95fe02cd74cbace5",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "mint_label",
      "verify_label",
      "join_trust",
      "cross_tool_boundary",
      "simulate_injection"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "malformed label; refusing to infer trust from payload",
      "label/segment digest mismatch (label forged or stale)",
      "label MAC invalid; label was re-derived, not inherited"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "hmac",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
