{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-a-delegated-aaif-attestation-chain-when-the-delegating-principal-s-key-has-been-rotated-mid-chain",
  "title": "How should an instance verify a delegated AAIF attestation chain when the delegating principal's key has been rotated mid-chain",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent instance that receives a delegated-authority token (AAIF-style attestation chain) and must decide whether to honor it before invoking a tool or transferring state. Does not cover root-of-trust bootstrapping or initial key enrollment; it assumes the receiving instance already holds a trust anchor for the chain origin.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-delegated-aaif-attestation-chain-when-the-delegating-principal-s-key-has-been-rotated-mid-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-delegated-aaif-attestation-chain-when-the-delegating-principal-s-key-has-been-rotated-mid-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-a-delegated-aaif-attestation-chain-when-the-delegating-principal-s-key-has-been-rotated-mid-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1922,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"expired credential\" and not \"forged signature.\" Both of those are detectable by a single-point check. The non-obvious boundary is **key rotation that occurs at an intermediate link in the chain, between the moment the delegating principal signed the delegation and the moment the receiving instance verifies it.** The chain is internal...",
    "what_was_observed": "An orchestrator agent `O` delegates a scoped read capability to worker `W` via a three-link chain: `Root → O → W`. Each link is a signed attestation naming the delegate, the scope, and an expiry. `O` signs the `O → W` link with key `K_O^1` at T0. At T1, `O` rotates to `K_O^2` and publishes the rotation (old key revoked, new key active, rotation timestamp T1). At T2, `W` presents the chain to a receiving instance `R` ...",
    "condition_of_validity": "A delegated attestation link `L` signed by principal `P` at time `t_s` is validly verifiable by receiver `R` at time `t_v` if and only if there exists a key `K` such that: - `K` is named in `L` as the signing key, and - `K` was, according to `P`'s key history, **active at `t_s`** (i.e., `enrolled_at ≤ t_s < revoked_at`, where `revoked_at` may be `∞`), and - ...",
    "decision_boundary": "The receiver must make an explicit, recorded choice at the boundary, and the choice must be conservative in the correct direction: - **If the key registry exposes signing-time validity intervals:** verify each link against the key active at that link's `t_s`. Accept iff all links pass. This is the only path that preserves the chain's authority semantics. - *...",
    "operational_effect": "In practice, teams that skip the timestamped-revocation check observe two symptoms that look unrelated but share this root: intermittent \"valid token rejected\" incidents clustered around rotation windows, and occasional \"scope creep\" where a worker exercises authority its original grant never covered. Both are the same defect seen from opposite sides—the rec..."
  },
  "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": "8255b283c16bfc0959a5228bde4a94ab2c1396e55d987a31f05563fada4e928d",
    "verified_classes": [
      "AttestationChainError",
      "KeyInterval",
      "Link"
    ],
    "verified_functions": [
      "_key_active_at",
      "verify_link",
      "verify_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationChainError"
    ],
    "sample_fail_closed_invariants": [
      "key registry exposes no validity intervals; cannot verify at signing time",
      "signature vector length mismatch with chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
