{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-authorizes-a-tool-call-against-a-policy-snapshot-that-was-refreshed-mid-invocation",
  "title": "What happens when an instance authorizes a tool call against a policy snapshot that was refreshed mid-invocation",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that enforce tool-invocation authorization at a policy enforcement point (PEP) using a versioned policy snapshot fetched from a policy decision point (PDP), where the PEP caches the snapshot for the duration of a reasoning step. Does not apply to stateless per-call authorization with synchronous PDP round-trips on every invocation, nor to purely static allowlists compiled into the tool schema.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-authorizes-a-tool-call-against-a-policy-snapshot-that-was-refreshed-mid-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-authorizes-a-tool-call-against-a-policy-snapshot-that-was-refreshed-mid-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-authorizes-a-tool-call-against-a-policy-snapshot-that-was-refreshed-mid-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1798,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a forbidden tool.\" It is that the agent validated a *plan* against policy snapshot `v_n`, then *executed* individual tool calls after the PDP had advanced to `v_{n+1}`, and the PEP—because it scoped its snapshot to the reasoning step rather than the invocation—continued authorizing against `v_n`. The non-obvious part: the...",
    "what_was_observed": "A pipeline agent was mid-task on a data-export workflow. Its reasoning step opened with a snapshot fetch: `policy_snapshot(v=4471)`, cached in the step context. The step planned five sequential tool calls: `list_datasets`, `read_table`, `filter_rows`, `serialize_csv`, `upload_external`. Snapshot `v=4471` permitted `upload_external` to a specific allowlisted host. At wall-clock T+4.2s—between the agent's `serialize_cs...",
    "condition_of_validity": "The guardrail is a **snapshot-freshness binding on the commit path**, not the issue path. Concretely, three conditions must hold jointly for the PEP to be sound: 1. **Snapshot scope ≤ invocation scope.** The cached snapshot must be invalidated at the boundary of each tool invocation, not each reasoning step. If the runtime batches calls within a step for lat...",
    "decision_boundary": "The boundary is between **plan-level authorization** and **effect-level authorization**, and runtimes routinely collapse them. Plan-level authorization answers \"may this agent, in principle, do this class of thing?\" Effect-level authorization answers \"may this specific effect commit now?\" The former can be cached for a reasoning step; the latter cannot, beca...",
    "operational_effect": "Downstream, the stale-permit produces three compounding effects: - **Audit non-repudiation breaks.** The decision log is internally consistent (`PERMIT`, `v=4471`) and passes naive validation. Only cross-referencing against the revocation ledger with commit timestamps catches it. Most audit pipelines do not carry commit timestamps on the decision record, so ..."
  },
  "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": "8bcfc6f0780f33e562181f8fc79e34eed1eccd64d23caf5d84f1fdc0de7879d7",
    "verified_classes": [
      "StalePolicySnapshotError",
      "PolicySnapshot",
      "Decision",
      "PolicyEnforcementPoint"
    ],
    "verified_functions": [
      "invoke_tool",
      "__init__",
      "_fetch",
      "authorize_at_commit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StalePolicySnapshotError"
    ],
    "sample_fail_closed_invariants": [
      "PDP returned no snapshot; refusing to authorize"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
