{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-taint-propagation-across-a-capability-scoped-tool-boundary-has-silently-degraded-to-label-only-tracking",
  "title": "How does an instance detect when taint propagation across a capability-scoped tool boundary has silently degraded to label-only tracking",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that enforce information-flow control (IFC) by tagging tool outputs with taint labels and gating downstream tool invocations on a capability's declared allowed-taint set. Does not apply to pure allow/deny capability systems with no data-flow dimension, nor to single-tool agents with no cross-tool data movement.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-taint-propagation-across-a-capability-scoped-tool-boundary-has-silently-degraded-to-label-only-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-taint-propagation-across-a-capability-scoped-tool-boundary-has-silently-degraded-to-label-only-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-taint-propagation-across-a-capability-scoped-tool-boundary-has-silently-degraded-to-label-only-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1987,
    "python_slice_tokens": 479,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox has two separable jobs: **labeling** data with provenance, and **enforcing** that a capability cannot consume data whose label exceeds its clearance. The failure mode here is not a broken enforcement check — the check fires correctly on the labels it is given. The failure is that the *labeling* silently collapses to a coarse, sticky, pe...",
    "what_was_observed": "A three-tool agent pipeline: `fetch_web` (egress-allowed, produces `UNTRUSTED` taint), `summarize` (a pure-compute tool with a `SANITIZER` capability that is *permitted* to downgrade `UNTRUSTED` to `TRUSTED` after a model-mediated rewrite), and `write_secret_channel` (a capability cleared only for `TRUSTED` data, with egress to an internal endpoint). The design intent: web content is untrusted, the summarizer strips ...",
    "condition_of_validity": "The label-only degradation is *bounded and detectable* only under these conditions, and the guardrail below is only sound when they hold: - **Downgrade capabilities must carry a verifiable post-condition.** A `SANITIZER` grant is valid iff the runtime can check, on the actual output bytes, that the downgrade predicate holds (e.g., no residual n-gram overlap ...",
    "decision_boundary": "The operational decision is where to place the detection and what to do on trip. Two boundaries: 1. **At the downgrade capability:** before emitting a downgraded value, run the post-condition. If the predicate fails, do **not** emit `TRUSTED`; emit the original taint and raise. This converts a silent laundering into a hard stop. The cost is a per-call conten...",
    "operational_effect": "With the post-condition check enabled at the sanitizer boundary, the residual-injection rate fell from 11% to 0.4% (the residual being summaries where the injected directive was paraphrased below the n-gram threshold — a known and documented limit, not a regression). The merge-join fix eliminated the last-writer-wins class entirely. Critically, the runtime's..."
  },
  "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": "588f2fb16376944af94034141aed34e485a3371762c460dd40a3472cae59997a",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintJoinViolation",
      "Tainted",
      "DowngradeCapability",
      "EgressGate"
    ],
    "verified_functions": [
      "join",
      "_residual_overlap",
      "sanitizer_postcondition",
      "compose_template",
      "run_pipeline",
      "apply",
      "send"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintJoinViolation",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "empty template has no defined taint"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
