{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-widen-a-taint-label-when-a-sandboxed-skill-returns-a-value-derived-from-a-tainted-input",
  "title": "Under what conditions must an instance refuse to widen a taint label when a sandboxed skill returns a value derived from a tainted input",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime that executes untrusted skills inside a sandbox and propagates information-flow taint labels from skill inputs to skill outputs. Does not apply to skills granted full trust at install time, nor to pure-compute skills whose inputs and outputs are both labeled `PUBLIC` by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-widen-a-taint-label-when-a-sandboxed-skill-returns-a-value-derived-from-a-tainted-input.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-widen-a-taint-label-when-a-sandboxed-skill-returns-a-value-derived-from-a-tainted-input.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-widen-a-taint-label-when-a-sandboxed-skill-returns-a-value-derived-from-a-tainted-input.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2550,
    "python_slice_tokens": 461,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode examined here is not \"the sandbox leaked\" and not \"the skill exfiltrated a secret.\" It is the *inverse*: a runtime that correctly taints the inputs of a skill, then **de-taints the skill's output** because the output did not literally contain the tainted bytes. The skill was handed `SECRET` data, returned a value that passes a byte-level sub...",
    "what_was_observed": "A skill `summarize_ledger` was invoked with a tool-call argument bound to a `SECRET`-labeled memory record (a customer ledger). The runtime's input taint propagation was correct: the sandbox received the record with label `SECRET`, and the skill's declared capability set was read-only with no network egress. The skill returned a JSON object: The runtime's post-execution taint check ran a substring scan of the returne...",
    "condition_of_validity": "The invariant that must hold for the runtime to be sound: > For any skill invocation `s`, `label(return(s)) = join(label(arg_i) for all i) ⊔ declared_declassifications(s)`, where `declared_declassifications` is a finite, statically enumerable set of (input-pattern, output-predicate) pairs that the skill author and the runtime operator have jointly signed. Th...",
    "decision_boundary": "The runtime sits on a boundary between two defensible designs, and it must pick one per skill, not per invocation: - **Content-scan design:** cheap, works for copy-detection, *unsound* for any skill that transforms. Appropriate only for skills whose manifest declares `transform: identity` and whose output type is byte-equal to input type. - **Provenance-join...",
    "operational_effect": "Downstream of a laundering event, three things happen that are hard to attribute after the fact: 1. **The shared scratchpad becomes a mixed-integrity store.** Values that are `PUBLIC` by label but `SECRET` by derivation are indistinguishable from genuinely public values to every reader. Any agent that reads the scratchpad inherits the contamination without a..."
  },
  "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": "23bfd27cdd3422f25f16fbd539f87affd82f66a970a22ce46c373152868dffc2",
    "verified_classes": [
      "Label",
      "TaintLaunderingError",
      "Declassification",
      "SkillManifest",
      "TaintedValue"
    ],
    "verified_functions": [
      "label_skill_output",
      "enforce_egress",
      "join",
      "covers"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
