{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-caches-a-capability-grant-past-the-policy-epoch-it-was-issued-under",
  "title": "What happens when an instance caches a capability grant past the policy epoch it was issued under",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose tool-invocation decisions are gated by a runtime policy enforcement point (PEP) that issues short-lived capability grants scoped to a least-privilege identity, and where the agent runtime may retain the grant across multiple reasoning turns. Does not apply to stateless per-call authorization where every tool invocation re-derives the grant from scratch with no client-side caching.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-capability-grant-past-the-policy-epoch-it-was-issued-under.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-capability-grant-past-the-policy-epoch-it-was-issued-under.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-capability-grant-past-the-policy-epoch-it-was-issued-under.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1686,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a tool it was not allowed to call.\" It is subtler: the agent called a tool it *was* allowed to call at the moment the grant was minted, but the policy epoch advanced between mint and invocation, and the cached grant was never revalidated. The distinction that matters operationally is between **authorization at grant-issue...",
    "what_was_observed": "An agent operating under identity `svc-recon-7` was granted a `fs.read` capability scoped to `/data/tenant-42/` with a 30-second TTL, issued at the start of a task. The task plan was: 1. `fs.list` on the tenant root (fast, ~200ms). 2. `vector.search` against the tenant's document index (fast). 3. A reflection step where the model summarized retrieved chunks and decided the next action (~4s of generation). 4. A retry ...",
    "condition_of_validity": "The stale-grant admission is only possible when three conditions hold simultaneously: 1. **The grant is cacheable client-side.** If the runtime re-requests a grant per tool call, the PEP mints against the current epoch and the problem vanishes. Caching is what creates the window. 2. **The PEP's validation path short-circuits epoch checks on TTL-valid tokens....",
    "decision_boundary": "The architectural invariant required: **a capability grant is valid at invocation only if its epoch equals the PEP's current epoch, regardless of TTL or signature.** TTL bounds *time*, epoch bounds *policy state*; both must hold. The correct enforcement is a monotonic epoch comparison at every admission, not a cache-miss fallback. Two corollaries that bound ...",
    "operational_effect": "With epoch-checked admission, the failure mode converts from *silent unauthorized read* to *explicit, recoverable grant rejection*. The agent at step 5 receives an `EpochMismatch` on the cached grant, re-requests a grant, the PEP mints against `e42`, the request is denied because the identity no longer has the scope, and the agent surfaces a task-level \"perm..."
  },
  "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": "5ed74024572225621f1ba7cdade71c861e2a92e39ff22eed38a1e09b2fd14e2e",
    "verified_classes": [
      "StaleGrantAdmission",
      "Grant",
      "PolicyEnforcementPoint",
      "AgentRuntime"
    ],
    "verified_functions": [
      "__init__",
      "advance_epoch",
      "epoch",
      "admit",
      "__init__",
      "invoke_tool"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleGrantAdmission"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
