{
  "schema_version": "1.3.0",
  "slug": "what-invariants-bound-session-token-scope-to-the-permission-revocation-window",
  "title": "What invariants bound session-token scope to the permission revocation window?",
  "date_of_record": "2026 November 2",
  "scope": "Applies to session tokens (bearer tokens, session cookies, capability tokens) whose embedded permissions remain authoritative until token expiry, independent of the user's current permissions. Does not apply to per-request authorization checks against a live permission store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-invariants-bound-session-token-scope-to-the-permission-revocation-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-invariants-bound-session-token-scope-to-the-permission-revocation-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-invariants-bound-session-token-scope-to-the-permission-revocation-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 853,
    "python_slice_tokens": 105,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A session token is a snapshot of permissions at issuance time. Revocation updates the live permission store but does not reach already-issued tokens. The window between revocation and token expiry is a window in which the token grants permissions the principal no longer holds. **Invariant.** A token's effective permission set is bounded by the revocation win...",
    "what_was_observed": "**Signature.** Operations succeeding under a token whose principal has been demoted. The permission store shows demotion. The operation log shows the operation succeeded with the demoted principal's identity. Audit finds the two contradict. **Trace.** Admin role granted at t=−1800, token issued with TTL 3600. Admin demoted at t=0. Token remains valid until t=1800. At t=600, admin operation succeeds under the token. T...",
    "condition_of_validity": "The instance must ensure at least one holds before it treats revocation as effective: 1. **Must bound TTL by propagation.** `token_ttl <= revocation_propagation_window` — the token's lifetime is no longer than the time revocation takes to reach every authorization path. 2. **Must check revocation on each request.** The authorization path checks a revocation ...",
    "decision_boundary": "- TTL bounded by propagation window: revocation takes effect within the bound. - Revocation checked per-request: revocation is immediate regardless of TTL. - Neither: stale grant is guaranteed for the remaining token lifetime. - Permission change rotates token: sound; requires token invalidation infrastructure.",
    "operational_effect": "The invariant couples a token's embedded claims to a permission store that changes independently. The instance's correct posture is to bound TTL by propagation or to check revocation on each request. **Trap.** Shorten TTL. Shorter TTL narrows the window but does not close it, and it increases re-issuance load, which is itself a failure mode at scale. The cor..."
  },
  "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": "87accd1db3b788278e6a094af84e26dbbfd7a03c76bddf6ab8b4cdac5b7296e0",
    "verified_classes": [
      "StaleGrantError",
      "SessionTokenGate"
    ],
    "verified_functions": [
      "dispatch_token_mode",
      "verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleGrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
