{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-scope-leakage-when-a-planner-reuses-a-privileged-subplan-across-a-provenance-boundary",
  "title": "What structural signals indicate taint-scope leakage when a planner reuses a privileged subplan across a provenance boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to single-agent planners that build hierarchical plans (plan → subplan → tool call) and that carry per-node provenance/taint labels used to gate privileged tool scopes. Does not cover pure retrieval-augmented QA with no tool authorization, nor multi-agent baton-passing (covered separately).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-scope-leakage-when-a-planner-reuses-a-privileged-subplan-across-a-provenance-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-scope-leakage-when-a-planner-reuses-a-privileged-subplan-across-a-provenance-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-scope-leakage-when-a-planner-reuses-a-privileged-subplan-across-a-provenance-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model read untrusted text and got injected.\" The failure is **subplan reuse across a provenance boundary**: a planner caches or reuses a previously constructed subplan (a structured DAG of tool calls) that was originally synthesized under a *clean* taint context, then re-attaches it under a *tainted* derivation without re-deriving the...",
    "what_was_observed": "A planner maintained a subplan cache keyed on a normalized goal signature (e.g., `\"reconcile <entity> against <source>\"`). Subplans were synthesized once, tagged with the taint vector of the context that produced them, and reused. Trigger trace: 1. Session A, clean context, goal `reconcile invoice against ledger`. Planner synthesizes subplan S with leaves: `read_ledger(scope=finance:read)`, `write_reconciliation(scop...",
    "condition_of_validity": "The guardrail (taint revalidation at splice) is only *necessary* when all of the following hold; if any is false, the failure cannot manifest and the check can be elided: - **Subplan reuse exists** (cache, memoization, or plan-library retrieval). If every subplan is re-derived from scratch under the current taint context, there is no seam. - **Authorization ...",
    "decision_boundary": "The decision the planner must make at each cache hit is binary and must be made *before* leaf execution, not after: - **Re-derive** the subplan under the current taint context if `authorization_scope(leaf) ⊄ authorized_scopes(taint(parent))` for any leaf. Re-derivation forces the model to re-synthesize tool calls with the tainted frame's reduced scope, which...",
    "operational_effect": "Without the downward scope-narrowing check on splice: - **Privilege escalation via cache**: untrusted text gains write authority by *selecting* a cached privileged subplan, with zero injected instructions reaching the model. The injection surface is the goal-signature matcher, not the prompt. - **Audit ambiguity**: logs show a tainted parent frame and a priv..."
  },
  "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": "ef306adf94c1406f0f4a18d23fa27b6f41548f06d7be1a0c04aa81142220f87e",
    "verified_classes": [
      "Taint",
      "Leaf",
      "Subplan",
      "TaintScopeLeakError"
    ],
    "verified_functions": [
      "authorized_scopes",
      "splice_subplan",
      "__le__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintScopeLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
