{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-of-a-tainted-context-allowlist-decision-be-re-evaluated-the-stale-derivation-boundary-in-tool-call-policy-enforcement",
  "title": "Where must an instance of a tainted-context allowlist decision be re-evaluated: the stale-derivation boundary in tool-call policy enforcement",
  "date_of_record": "2026 November 16",
  "scope": "Applies to runtime policy engines that compute a tool-call allowlist by deriving it from taint-annotated context (labels on values, provenance graphs, or capability tokens) at some point and then enforcing that allowlist on subsequent tool invocations. Does not apply to stateless per-call policy checks where the allowlist is recomputed from context on every invocation with no cached derivation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-tainted-context-allowlist-decision-be-re-evaluated-the-stale-derivation-boundary-in-tool-call-policy-enforcement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-tainted-context-allowlist-decision-be-re-evaluated-the-stale-derivation-boundary-in-tool-call-policy-enforcement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-tainted-context-allowlist-decision-be-re-evaluated-the-stale-derivation-boundary-in-tool-call-policy-enforcement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is between **the taint state that authorized the derivation** and **the taint state at enforcement time**. A policy engine that derives an allowlist from taint-annotated context is making a judgment about a *snapshot* of that context. Enforcement, however, happens later, against a *live* context that may have changed in ways the deri...",
    "what_was_observed": "In a deployment enforcing tool-call allowlists over a multi-step agent loop, the policy engine derived an allowlist at the start of each \"turn\" from a provenance graph of the conversation. The derivation walked the graph, collected taint labels on the values the agent had produced, and emitted a set of permitted tool names (e.g., `read_file`, `search`, `send_email` withheld because a value carried a `pii` label). The...",
    "condition_of_validity": "A cached allowlist derived from taint-annotated context is valid **if and only if** every annotation consumed by the derivation is unchanged between derivation time and enforcement time. This is a *conjunction* over all consumed annotations, and it is falsified by any single mutation. Practically, this condition is almost never satisfiable by inspection, bec...",
    "decision_boundary": "The decision the engineer must make: **invalidate-on-mutation vs. re-derive-per-call.** - **Invalidate-on-mutation** requires a subscription to the annotation store (or a version counter that the derivation records and enforcement compares). It is cheap at enforcement time, expensive to wire correctly, and fails open if a mutation path bypasses the subscript...",
    "operational_effect": "The operational consequence of getting this wrong is a **silent authorization of a forbidden tool call**, with an audit trail that shows the engine behaving consistently. This is worse than a loud failure because: 1. The engine's self-consistency checks pass (enforced allowlist matches last derivation). 2. The failure is load-correlated, not input-correlated..."
  },
  "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": "bb2b437f12a61db8527ec2eda546baf74ceaa29ab21f307cdbab1940af60b3ab",
    "verified_classes": [
      "StaleAllowlistError",
      "AllowlistDerivation"
    ],
    "verified_functions": [
      "enforce_tool_call",
      "derive_allowlist",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PermissionError",
      "StaleAllowlistError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
