{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-taint-tracks-a-secret-into-a-tool-call-whose-schema-permits-lossy-re-encoding",
  "title": "What happens when an instance taint-tracks a secret into a tool call whose schema permits lossy re-encoding",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that enforce data-exfiltration policy by propagating taint labels from untrusted/secret sources through the reasoning trace and blocking labeled values at tool egress. Does not cover model-internal memorization leakage, prompt-injection discovery, or post-hoc output scanning that has no egress-time label state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-taint-tracks-a-secret-into-a-tool-call-whose-schema-permits-lossy-re-encoding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-taint-tracks-a-secret-into-a-tool-call-whose-schema-permits-lossy-re-encoding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-taint-tracks-a-secret-into-a-tool-call-whose-schema-permits-lossy-re-encoding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking at egress is usually modeled as a *set-membership* problem: a value carries a label, and if a labeled value reaches a tool argument, the call is blocked. That model is sound only when the egress sink is **label-preserving** — i.e., the argument schema transports the labeled bytes verbatim so the runtime can compare them against the label's pro...",
    "what_was_observed": "A runtime tracked a secret `S = \"sk-live-4f9a...b21\"` read from an authenticated vault tool. The provenance graph correctly labeled the tool result. The model then composed an outbound `http_request(url=..., headers={...}, body=...)` call. The body contained `S` split as `\"sk-live-4f9a\" + \"-\" + \"...b21\"` across two adjacent JSON string fields that the downstream service concatenated. The egress guard compared each ar...",
    "condition_of_validity": "The equality-based egress check is valid only under the conjunction: 1. **Sink transparency.** Every egress argument is transported to a receiver that either (a) does not interpret structure, or (b) is modeled by the runtime so the guard can reconstruct the effective byte stream (concatenation, decoding, template expansion) before matching. If the receiver c...",
    "decision_boundary": "The boundary is between **blocking on value identity** and **blocking on capability necessity**. Value-identity blocking requires the full transformation closure and is undecidable in the paraphrase limit. Capability-necessity blocking asks a different question: *is this egress sink permitted to receive data of this provenance class at all, for this task?* T...",
    "operational_effect": "Runtimes that ship value-identity-only egress guards report zero exfiltration events while leaking through split fields, line-wrapped encodings, and prefixes. The audit log looks clean because the guard's matcher never fired; the leak is invisible to the control that was supposed to catch it. The failure compounds: because the audit is clean, the guard is tr..."
  },
  "matched_failure_symptoms": [
    "UNICODE_HOMOGLYPH_OR_MOJIBAKE",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "586c83bc2905c30f2b883f9def763d4668444bf41b2ea812e065395612ad1c17",
    "verified_classes": [
      "TaintEgressViolation"
    ],
    "verified_functions": [
      "authorize_egress",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintEgressViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
