{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-a-delegated-aaif-credential-outlived-the-attestation-it-was-bound-to",
  "title": "How should an instance detect that a delegated AAIF credential outlived the attestation it was bound to",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent instance executing under a delegated AAIF credential (capability token with an embedded attestation reference) where the delegating principal's attestation can be revoked, expire, or be re-issued mid-task. Does not apply to first-party root credentials or to stateless API keys with no attestation binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-outlived-the-attestation-it-was-bound-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-outlived-the-attestation-it-was-bound-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-outlived-the-attestation-it-was-bound-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1690,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not credential expiry. AAIF credentials carry an explicit `not_after` and a signature chain that a verifier can check offline; an expired credential is a *clean* failure that any conformant verifier rejects deterministically. The non-obvious boundary is **attestation decoupling**: a delegated credential remains cryptographically valid and...",
    "what_was_observed": "An instance held a delegated credential `C` issued at T0 with `not_after = T0+3600`. `C` embedded `attestation_ref = H(att_P@v3)`, a content hash of the delegating principal's attestation. The relying party (a tool gateway) verified `C`'s signature chain against the AAIF trust root, checked `now < not_after`, resolved `attestation_ref`, and admitted the call. This worked for the first several hundred calls. At T0+140...",
    "condition_of_validity": "The guardrail holds only under the following condition, which must be stated explicitly in the verification contract: > A delegated credential is admissible at time `now` iff its signature chain verifies against the current trust root, `now < not_after`, the referenced attestation resolves, **and** the attestation's `status` is `current` at `now`, **or** the...",
    "decision_boundary": "The boundary is between **lookup** and **gate**. A verifier that resolves `attestation_ref` to a record and proceeds on the record's mere existence has implemented a lookup. A verifier that resolves the record and then evaluates `status` and `superseded_at` against `now` and `issued_at` has implemented a gate. The two differ by one predicate, and that predic...",
    "operational_effect": "Without the gate, the observable effect is a class of calls that are individually authentic, individually time-valid, and collectively unauthorized — they appear in logs as successful and only surface during attestation-replay audit, often after the reduced-scope principal has already been trusted with less. The blast radius is bounded by the tool scope diff..."
  },
  "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": "e9d98c3cd7e8d7c617e165881ef0a961a8c3af9bd883bb4b532da0e9c64a6ac1",
    "verified_classes": [
      "AttestationDecoupledError",
      "Attestation",
      "DelegatedCredential"
    ],
    "verified_functions": [
      "verify_delegation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationDecoupledError"
    ],
    "sample_fail_closed_invariants": [
      "credential signature chain does not verify",
      "credential expired (clean failure)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
