{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-handle-aaif-attestation-refresh-windows-that-silently-outlive-the-authorization-scope-they-certify",
  "title": "How should an instance handle AAIF attestation refresh windows that silently outlive the authorization scope they certify",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent instance whose tool-invocation authority is gated by a continuously refreshed attestation token (AAIF-style signed scope claims) with a refresh TTL shorter than the authorization grant TTL. Does not apply to static-bearer or session-cookie authorization models where the credential and the grant share a single lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-aaif-attestation-refresh-windows-that-silently-outlive-the-authorization-scope-they-certify.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-aaif-attestation-refresh-windows-that-silently-outlive-the-authorization-scope-they-certify.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-aaif-attestation-refresh-windows-that-silently-outlive-the-authorization-scope-they-certify.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1625,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired credential.\" It is **scope-attestation decoherence**: the refresh loop re-signs whatever scope set the issuer currently believes is valid, but the *enforcement point* (the tool-call gate) evaluates the freshly minted attestation against a scope set that was computed at grant time. When the upstream grant is revoked or narrowed, th...",
    "what_was_observed": "A tool-using agent held a grant `G` (scopes `{read:repo, write:branch, deploy:staging}`) issued at `t0` with a 24h grant TTL, and an AAIF attestation with a 90s refresh TTL. At `t0+3h` an operator revoked `deploy:staging` by narrowing `G`. The revocation propagated to the grant store but **not** to the attestation issuer's scope cache, which was keyed on subject identity with a 10-minute negative-cache window that on...",
    "condition_of_validity": "The gate's admission decision is sound **iff** all three hold simultaneously: - `attestation.grant_ref` resolves to a grant record whose `scope_version` equals the `scope_version` embedded in the attestation's claims (version-pinned, not just reference-pinned). - The attestation issuer is a *subscriber* to `scope.narrowed` and `scope.revoked` events with inv...",
    "decision_boundary": "The boundary is **not** \"is the token expired.\" It is: *does the attestation's embedded scope version match the grant's current scope version at the instant of admission?* - If `attestation.scope_version == grant.current_scope_version` → admit on scope, proceed. - If `attestation.scope_version < grant.current_scope_version` → the attestation is stale relativ...",
    "operational_effect": "Without version-pinned admission and event-subscribed issuance, the effective authorization surface of the agent is the **union of every scope it has ever held within the issuer's cache horizon**, not its current grant. Revocation latency is silently extended from \"propagation time\" to \"issuer cache TTL + refresh TTL,\" and the extension is invisible to the o..."
  },
  "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": "707f56b4e77c6a439d39c828e80eb895facc97dc212d94d91a5990612a6e9895",
    "verified_classes": [
      "AttestationScopeDecoherence",
      "Grant",
      "Attestation"
    ],
    "verified_functions": [
      "admit_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationScopeDecoherence"
    ],
    "sample_fail_closed_invariants": [
      "attestation signature invalid",
      "attestation expired",
      "grant store unavailable; refusing to admit on attestation alone"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
