{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-derive-taint-closure-after-an-egress-allowlist-widens-mid-session",
  "title": "Under what conditions must an instance re-derive taint closure after an egress allowlist widens mid-session",
  "date_of_record": "2026 November 26",
  "scope": "Applies to single- or multi-agent systems where tool-invocation policy is enforced by a taint-tracking capability gate that (a) propagates data-provenance labels through tool arguments and return values and (b) consults an egress allowlist at call time. Does not apply to stateless per-call policy engines that re-evaluate provenance from scratch on every invocation, nor to systems where the allowlist is immutable for the lifetime of a session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-closure-after-an-egress-allowlist-widens-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-closure-after-an-egress-allowlist-widens-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-taint-closure-after-an-egress-allowlist-widens-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1931,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an unauthorized tool call succeeded.\" It is subtler: **the allowlist widened, the taint labels on already-materialized context did not.** Taint closure — the set of (value, label) pairs the gate believes are in scope — is computed incrementally as the agent runs. When an egress allowlist is *relaxed* at runtime (a new domain added, a...",
    "what_was_observed": "A retrieval agent held a session with three tools: `fetch_url` (egress to an allowlist of 4 internal domains), `summarize` (local model call), and `write_note` (egress to an internal wiki). Taint labels were assigned at ingestion: anything returned by `fetch_url` from a domain marked `sensitive` got label `SECRET`; everything else got `PUBLIC`. The gate blocked any `write_note` call whose argument carried `SECRET`. M...",
    "condition_of_validity": "The invariant that was violated: **taint closure must be recomputed (or conservatively invalidated) whenever the egress allowlist widens in a way that makes a previously-unreachable sensitive source reachable from an already-materialized value.** Precisely, re-derivation is *required* when all of the following hold: - The allowlist change is a **widening** (...",
    "decision_boundary": "The gate must distinguish two operations that look identical at the call site: The decision boundary is the third and fourth rows. A gate that collapses all four into \"reload allowlist, re-check current call\" is unsound. The correct guardrail is a **closure-generation counter**: every widening event increments it; every value carries the generation at which ...",
    "operational_effect": "The practical consequence is that allowlist widening is a **stop-the-world event for the taint closure**, not a hot-reloadable config tweak. Systems that hot-reload the allowlist and continue serving will leak for the duration between the reload and the next full re-derivation — and if re-derivation is never triggered (the common case, because the gate has n..."
  },
  "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": "3d16afba29ca3acd4ac099a58acdd3c8258011a7ab8f55bfb8a1dd73cc7ea84e",
    "verified_classes": [
      "StaleTaintClosureError",
      "PolicyGeneration",
      "TaintStore"
    ],
    "verified_functions": [
      "admit_egress",
      "__init__",
      "widen",
      "__init__",
      "label",
      "relearn",
      "get"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleTaintClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
