{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-aaif-policy-enforcement-points-from-authorizing-actions-against-a-stale-capability-snapshot-after-mid-task-scope-revocation",
  "title": "Which invariants prevent AAIF policy enforcement points from authorizing actions against a stale capability snapshot after mid-task scope revocation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime where an Authority/Attribution/Identity Federation (AAIF) policy enforcement point (PEP) caches a resolved capability snapshot to amortize authorization latency across a multi-step tool-call loop, and where that snapshot can be invalidated by an out-of-band scope revocation (operator kill-switch, peer-agent downgrade, or credential rotation). Does not apply to stateless per-call PEPs that re-resolve the full capability graph on every invocation, nor to systems where scope is immutable for the lifetime of the agent instance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-policy-enforcement-points-from-authorizing-actions-against-a-stale-capability-snapshot-after-mid-task-scope-revocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-policy-enforcement-points-from-authorizing-actions-against-a-stale-capability-snapshot-after-mid-task-scope-revocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-policy-enforcement-points-from-authorizing-actions-against-a-stale-capability-snapshot-after-mid-task-scope-revocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1934,
    "python_slice_tokens": 190,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *authorization freshness* and *authorization correctness at issue time*. A PEP that resolved a capability grant at step 1 was correct at step 1. The failure mode is not that it authorized a forbidden action; it is that it authorized a *formerly permitted* action against a snapshot that a concurrent revocation had alrea...",
    "what_was_observed": "A three-step agent task: `read_customer_record` → `compute_refund` → `issue_refund`. The PEP resolved capabilities at step 1, caching a snapshot `S1` with `version=41`, granting `refund:issue` up to $500. Between step 2 and step 3, an operator issued a scope revocation narrowing `refund:issue` to $100. The revocation propagated to the authority node and was assigned `version=42` on that node's local counter. Concurre...",
    "condition_of_validity": "The guardrail holds only if the following three conditions are jointly satisfied at the PEP: 1. **Causal stamping, not counter stamping.** Every capability snapshot carries a vector clock or a Merkle-DAG root over the set of authority events it observed. The PEP admits a snapshot only if the snapshot's causal frontier *dominates* the cached snapshot's fronti...",
    "decision_boundary": "The decision boundary is between **admit-on-version** and **admit-on-causality**, and it is crossed by a single predicate: *does the action's side effect admit compensation?* - If the tool call is compensable (writes to a staging area, reversible state transitions, idempotent reads), admit the snapshot if `snapshot.version >= cached.version`. The worst case ...",
    "operational_effect": "The operational consequence is a latency/freshness tradeoff made explicit and per-tool-class rather than global. Compensable tools keep the fast cached path; non-compensable tools pay one synchronous re-resolution per call (or per batch, if the batch is causally ordered). In the observed incident, the fix reduced refund-issuance throughput by roughly the cos..."
  },
  "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": "76306069466edde73dfd6e1fabd7e17035c57c4db1f185bff0d2db7c3c43bf73",
    "verified_classes": [
      "StaleCapabilitySnapshotError",
      "CapabilitySnapshot",
      "PolicyEnforcementPoint"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "observe_revocation",
      "admit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleCapabilitySnapshotError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
