{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-propagation-false-positive-is-forcing-premature-capability-downgrade-in-a-tool-sandbox",
  "title": "What structural signals indicate a taint-propagation false positive is forcing premature capability downgrade in a tool sandbox",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that maintain a per-turn taint lattice over context segments and dynamically downgrade tool capabilities (e.g., revoking write/network scopes) when an injection-suspicion score crosses a threshold. Does not apply to stateless single-shot tool calls with no persistent taint state, nor to static capability policies fixed at session start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-false-positive-is-forcing-premature-capability-downgrade-in-a-tool-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-false-positive-is-forcing-premature-capability-downgrade-in-a-tool-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-false-positive-is-forcing-premature-capability-downgrade-in-a-tool-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1709,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox conflates two distinct signals: **provenance** (this token segment originated from untrusted content) and **intent** (this segment is attempting to redirect the agent's control flow). When the downgrade trigger is keyed on provenance-weighted suspicion rather than on an observed control-flow divergence, the runtime cannot distinguish a ...",
    "what_was_observed": "An agent was processing a retrieved document containing a fenced example of a prompt-injection string (a legitimate security-analysis task). The taint tracker correctly tagged the retrieved span `Tainted(untrusted_retrieval, weight=0.91)`. The suspicion scorer, which summed taint weights across all segments referenced during reasoning, crossed the downgrade threshold of 0.85 on the *third* reasoning turn — not becaus...",
    "condition_of_validity": "The downgrade mechanism is only sound when **suspicion is computed over the delta between tainted content and the agent's emitted action**, not over the tainted content's mere presence. Concretely, the invariant is: > `downgrade_triggered ⟺ ∃ pending_call c : influence(taint_source, c.args) > ε AND control_flow_shift(taint_source) observed` Two failure condi...",
    "decision_boundary": "The runtime must separate the suspicion threshold from the downgrade action with an explicit influence check. The decision boundary is: - **Suspicion ≥ threshold AND influence observed on a pending call's arguments or target** → downgrade *that call's* capability scope, emit a structured `TaintInfluenceDowngrade` event referencing the call ID and the influen...",
    "operational_effect": "When the invariant holds, the observable behavior changes in three ways. First, the `CapabilityDenied` error becomes *attributable*: it names the call and the taint source, so the agent's error handler can distinguish \"this specific write was blocked because its path argument was tainted\" from \"the sandbox is flaky.\" Second, the agent can *recover*: on a sco..."
  },
  "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": "ebce26bc5be85fdd1f598f11e6f56d2e4363c265af086ea08917843f6801c01a",
    "verified_classes": [
      "TaintDowngradeFalsePositive",
      "TaintSource",
      "PendingCall"
    ],
    "verified_functions": [
      "evaluate_downgrade",
      "apply_downgrade",
      "__init__",
      "__init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintDowngradeFalsePositive"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
