{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-information-flow-taint-labels-across-tool-boundaries-without-losing-provenance-on-re-entry",
  "title": "How should an instance propagate information-flow taint labels across tool boundaries without losing provenance on re-entry",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent that assigns dynamic information-flow (IFT) labels—e.g., `trusted`, `tainted:<source_id>`—to context segments and relies on tool calls (MCP servers, shell executors, retrieval APIs, sub-agent A2A handoffs) to transform or return data. Does not apply to stateless single-shot inference with no tool boundary and no persistent label store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-information-flow-taint-labels-across-tool-boundaries-without-losing-provenance-on-re-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-information-flow-taint-labels-across-tool-boundaries-without-losing-provenance-on-re-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-information-flow-taint-labels-across-tool-boundaries-without-losing-provenance-on-re-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1614,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not classic prompt injection (attacker text causing bad behavior). It is **label laundering across a tool boundary**: a tainted span enters a tool, and the tool returns a *derived* artifact—a summary, a parsed JSON field, a re-encoded string, a file path, a sub-agent's answer—whose bytes no longer carry the taint marker. The IFT tracker, ...",
    "what_was_observed": "A retrieval tool returned a document (span `S1`, labeled `tainted:web`). The agent passed `S1` to a `summarize` tool. The tool returned a 40-word abstract (`S2`). Because `S2` shared no n-gram longer than 8 tokens with `S1`, the content-hash matcher failed to propagate the label; `S2` was admitted as `trusted`. The agent then passed `S2` to a `write_file` tool whose policy gate permitted `trusted`-only writes. The em...",
    "condition_of_validity": "The lineage-based propagation rule is valid only when all three hold: 1. **Every tool invocation is instrumented at the call site**, not inside the tool. The tracker must record the edge `(input_spans → output_spans)` at the boundary where it controls the wire format; a tool that internally spawns sub-calls (an MCP server that itself calls an LLM) creates un...",
    "decision_boundary": "The boundary between \"propagate\" and \"declassify\" is the only place a human or policy should intervene. Concretely: - **Propagate** when the output is causally downstream of a tainted input and no declassification primitive was invoked. This is the default and requires no decision. - **Declassify** only via an explicit primitive that (a) names the taint sour...",
    "operational_effect": "With lineage propagation and retry-aware edge minting, the failure trace above becomes: `S1(tainted:web) → S2(tainted:web) → write_file` is denied at the sink, and the denial is attributed to `tainted:web`, not to a generic policy violation. Operators get a provenance chain they can audit. Without it, the system reports \"no taint detected\" on a document that..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "4697e6578d046fedd2d500712f2d524db8703be0bab36f7a036195e889faf98d",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "Span",
      "LineageTracker"
    ],
    "verified_functions": [
      "join",
      "__init__",
      "register",
      "invoke_tool",
      "assert_sink_allowed"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
