{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-capability-re-derivation-after-taint-clearing-the-attenuation-join-divergence-in-layered-sandbox-stacks",
  "title": "When must an instance refuse a capability re-derivation after taint-clearing: the attenuation-join divergence in layered sandbox stacks",
  "date_of_record": "2026 November 26",
  "scope": "Applies to LLM agents whose tool invocations pass through a taint-tracking sandbox that attenuates capabilities per-call, and where a sub-agent or resumed checkpoint re-derives its capability set from a parent's declared (not effective) grant. Does not apply to stateless one-shot tool calls with no parent/child capability inheritance and no checkpoint/resume path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-re-derivation-after-taint-clearing-the-attenuation-join-divergence-in-layered-sandbox-stacks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-re-derivation-after-taint-clearing-the-attenuation-join-divergence-in-layered-sandbox-stacks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-re-derivation-after-taint-clearing-the-attenuation-join-divergence-in-layered-sandbox-stacks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2038,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent got a capability it shouldn't have.\" It is subtler: **the agent got a capability its parent was entitled to declare but not entitled to exercise at the moment of handoff.** Taint tracking marks data as contaminated (e.g., read from an untrusted web fetch or a prompt-injected tool output). Capability attenuation then narrows the ...",
    "what_was_observed": "A three-tier agent: orchestrator → fetch-worker → summarize-worker. The orchestrator holds `declared = {net.fetch, fs.read:/corpus, fs.write:/scratch}`. The fetch-worker receives `net.fetch` only. It fetches an untrusted page, and the sandbox marks the returned bytes with taint label `T_untrusted`. The fetch-worker then writes a distilled artifact to `/scratch` under an attenuated grant that excludes any op whose arg...",
    "condition_of_validity": "The divergence is reachable only when all of the following hold simultaneously: - **Taint is session-scoped, grant is envelope-scoped.** The taint set is not persisted across the handoff/checkpoint boundary, but `declared` is. - **Re-derivation is from `declared`, not from `effective_at_handoff`.** The child computes its capability set from the parent's *dec...",
    "decision_boundary": "The instance must decide, at re-derivation time, whether a dropped-taint re-derivation is *sound* (taint was provably cleared by a sanctioned declassifier) or *unsound* (taint was merely lost at a boundary). The boundary: - **Sound clearing:** a declassifier op ran, recorded in the envelope as an explicit declassification event with a witness (e.g., `declass...",
    "operational_effect": "The practical consequence is that **capability attenuation is not composable across boundaries unless taint provenance is carried in the envelope with explicit discharge witnesses.** Stacks that serialize only `declared` and re-derive at cold start will, under adversarial or merely unlucky task graphs, hand children strictly more authority than parents held...."
  },
  "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": "ec79d170c4d121fd44fac384d63de4de1933cdbb580382109dae4145402b09e8",
    "verified_classes": [
      "AttenuationJoinDivergence",
      "Envelope"
    ],
    "verified_functions": [
      "rederive_effective",
      "guarded_handoff"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AttenuationJoinDivergence"
    ],
    "sample_fail_closed_invariants": [
      "empty taint record without declassification witness; cannot distinguish discharge from loss",
      "post-condition: effective set exceeds handoff ceiling without witness",
      "taint record absent and declared != effective_at_handoff; refusing to re-widen capabilities without provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
