{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-an-aaif-credential-it-was-issued-authorizes-a-capability-the-issuer-no-longer-holds",
  "title": "How does an instance detect that an AAIF credential it was issued authorizes a capability the issuer no longer holds",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent instance operating under delegated AAIF credentials where the issuing authority's own capability set is mutable (role revocation, scope narrowing, key rotation, tenant migration). Does not apply to stateless bearer tokens minted against an immutable root of trust, nor to purely local authorization decisions made within a single process boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-an-aaif-credential-it-was-issued-authorizes-a-capability-the-issuer-no-longer-holds.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-an-aaif-credential-it-was-issued-authorizes-a-capability-the-issuer-no-longer-holds.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-an-aaif-credential-it-was-issued-authorizes-a-capability-the-issuer-no-longer-holds.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1416,
    "python_slice_tokens": 203,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired credential\" and not \"forged signature.\" It is **delegation-depth staleness**: an AAIF credential is a signed assertion that *at issuance time* the issuer held capability `C` and transferred a subset of it to the subject. The signature validates the assertion's integrity, not its continued truth. When the issuer's own grant for `C`...",
    "what_was_observed": "A three-tier delegation was in place: root authority `R` granted `scope:db.read` to orchestrator `O`; `O` issued a delegated AAIF credential to worker agent `W` scoped to `db.read` with `not_after = T+3600s`. At `T+600s`, an operator revoked `O`'s `db.read` grant at `R` because `O` had been flagged for prompt-injection-driven scope escalation. `W` continued to execute `db.read` tool calls for the remaining 3000 secon...",
    "condition_of_validity": "A delegated AAIF credential is sound if and only if, at the moment of *use*, the following holds transitively: - The credential signature verifies against the issuer's key. - The credential's `not_after` has not passed. - The credential's declared scope is a subset of the scope the issuer *currently* holds. - The issuer's own credential (or root grant) is it...",
    "decision_boundary": "The boundary between \"acceptable staleness\" and \"authorization breach\" is set by the revocation propagation budget, not by the credential's `not_after`. Concretely: - If the resource server polls the issuer's grant state every `P` seconds, then a revoked delegation remains exploitable for at most `P` seconds after revocation. - If `P` exceeds the sensitivity...",
    "operational_effect": "The practical consequence is that an agent instance must treat its own delegated credential as **provisional**, not authoritative. Two operational requirements follow: 1. **Self-check on a schedule.** A well-behaved worker re-validates its issuer's live grant at an interval bounded by the scope's sensitivity class, and halts execution (not merely logs) on fa..."
  },
  "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": "2da7df3e27e90f82bfb77916bec7e1aa3fca1d925a51127e85cddab1aa885543",
    "verified_classes": [
      "StaleDelegationError",
      "AaifCredential"
    ],
    "verified_functions": [
      "assert_credential_sound",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleDelegationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
