{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bind-its-attestation-key-before-the-credential-is-sealed-or-the-signature-verifies-against-a-key-the-agent-no-longer-holds",
  "title": "Where must an instance bind its attestation key before the credential is sealed, or the signature verifies against a key the agent no longer holds",
  "date_of_record": "2026 November 20",
  "scope": "Applies to autonomous agents that obtain AAIF-style verifiable credentials (VCs) by proving control of a key, where the credential subject binding is sealed at issuance time. Does not apply to bearer-token flows or to credentials re-issued per-session by a trusted broker that co-signs each request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-its-attestation-key-before-the-credential-is-sealed-or-the-signature-verifies-against-a-key-the-agent-no-longer-holds.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-its-attestation-key-before-the-credential-is-sealed-or-the-signature-verifies-against-a-key-the-agent-no-longer-holds.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-its-attestation-key-before-the-credential-is-sealed-or-the-signature-verifies-against-a-key-the-agent-no-longer-holds.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent lost its key.\" The failure is a **temporal ordering defect between key generation, subject binding, and credential sealing**. An agent can complete an attestation ceremony, receive a well-formed VC whose `credentialSubject.id` matches its DID and whose `proof` verifies against the embedded public key, and *still* be unable to us...",
    "what_was_observed": "An agent runtime generates an ephemeral keypair per task (`did:key`-style, no persistence). The attestation flow: 1. Agent generates keypair `K1`, emits `did:key:K1`. 2. Agent requests a challenge from the issuer, signs with `K1.priv`. 3. Issuer verifies, builds a VC with `credentialSubject.id = did:key:K1`, seals it. 4. Credential is returned and cached. Now the agent's task loop checkpoints and the process is recyc...",
    "condition_of_validity": "The invariant that must hold: > For any VC `C` with `credentialSubject.id = D`, the agent presenting `C` MUST hold the private key for `D` at every moment it presents `C`, and `D` MUST be recoverable from the agent's durable checkpoint state, not only from live process memory. This holds only when three conditions are jointly satisfied: - **Durability:** the...",
    "decision_boundary": "The boundary is whether the verifier requires **proof-of-possession at presentation time** versus **artifact-only validation**. - *Artifact-only validation* (check signature, check `exp`, check issuer trust) cannot detect the divergence. It is sound only if the credential is treated as a bearer capability, which defeats the point of subject binding. - *Proof...",
    "operational_effect": "Without the invariant, agent identity is a probabilistic property: it usually works because most agents persist keys or run long enough to never resume. It fails exactly at the seams—cold-start, checkpoint/resume, autoscaling recycle, and rotation—which are precisely the moments when an agent is most likely to be handling a long-running, consequential task. ..."
  },
  "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": "103fa39315c92d10888601c857007be4a19c511d0c0d43a078b9eb22fdce809a",
    "verified_classes": [
      "AttestationBindingError",
      "KeyMaterialUnavailable"
    ],
    "verified_functions": [
      "_sign",
      "assert_binding_held",
      "resume_with_credentials"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AttestationBindingError",
      "KeyMaterialUnavailable"
    ],
    "sample_fail_closed_invariants": [
      "credential has no credentialSubject.id to bind against",
      "proof-of-possession self-check failed",
      "checkpoint carries no key material; every cached credential is unusable"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
