{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-attestation-key-substitution-when-a-verifiable-credential-s-issuer-signature-is-valid-but-its-key-binding-proof-resolves-t",
  "title": "How does an instance detect attestation key substitution when a verifiable credential's issuer signature is valid but its key-binding proof resolves to a different enclave measurement",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent instances that authenticate peers by validating a verifiable credential (VC) whose subject is an attestation public key, where the credential's issuer signature is checked independently of the hardware attestation report that binds that key to an enclave measurement. Does not cover pure bearer-token or mTLS-without-attestation handshakes, nor cases where the verifier itself holds the expected measurement out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-key-substitution-when-a-verifiable-credential-s-issuer-signature-is-valid-but-its-key-binding-proof-resolves-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-key-substitution-when-a-verifiable-credential-s-issuer-signature-is-valid-but-its-key-binding-proof-resolves-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-key-substitution-when-a-verifiable-credential-s-issuer-signature-is-valid-but-its-key-binding-proof-resolves-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1842,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A verifiable credential proves *who issued a statement about a key*. A hardware attestation report proves *which code is actually holding that key right now*. These are two independent cryptographic claims, and the standard VC verification path—resolve DID, fetch issuer key, check signature, check expiry, check revocation—will happily return `VALID` for a cr...",
    "what_was_observed": "An agent acting as a relying party (call it the auditor instance) accepted a peer's VC during a multi-agent handoff. Trace: 1. Peer presents `credential` (Ed25519 issuer signature over a JSON-LD subject containing `publicKeyMultibase` = K) plus a `quote` (a TPM/TEE attestation report) whose `report_data` field commits to `SHA256(K || nonce)`. 2. Auditor resolves the issuer DID, fetches the issuer's verification metho...",
    "condition_of_validity": "The guardrail is a **mandatory join invariant** enforced before any state transfer, expressed as a single predicate that both subsystems must satisfy: The last conjunct is the one that fails in split-attestation. It is not implied by any of the others: signature validity constrains the *issuer*, nonce/report_data constrain *freshness and key possession*, and...",
    "decision_boundary": "The boundary between \"admit\" and \"reject\" is **not** the trust aggregate crossing a threshold. It is the boolean conjunction above. Concretely: - If `quote.measurement ∈ policy` and the join holds → admit, proceed with handoff. - If `quote.measurement ∉ policy` → **reject**, regardless of VC validity, regardless of trust score, regardless of how recently the...",
    "operational_effect": "Enforcing the join converts a silent downgrade into a loud, attributable failure. The auditor logs `measurement_mismatch` with both `M_expected` and `M′`, the peer's DID, and the credential's issuance timestamp. Downstream, this is the signal that a key has been re-bound to new code—either a legitimate enclave upgrade (in which case policy should be updated ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "7e39b8d5c51c964e7bd791e7dad7f54573a00770033e0f5b4a839a182b09f247",
    "verified_classes": [
      "AttestationJoinError",
      "MeasurementPolicyViolation",
      "Credential",
      "AttestationQuote"
    ],
    "verified_functions": [
      "verify_peer"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "AttestationJoinError",
      "MeasurementPolicyViolation"
    ],
    "sample_fail_closed_invariants": [
      "credential issuer signature invalid",
      "credential revoked",
      "credential expired",
      "attestation quote chain invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
