{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-peer-s-enclave-attestation-despite-a-valid-quote-signature-the-weight-digest-binding-gap-in-agent-to-agent",
  "title": "In what scenarios must an instance reject a peer's enclave attestation despite a valid quote signature: the weight-digest binding gap in agent-to-agent secure enclave attestation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent-to-agent handoffs where a receiving instance gates trust on a hardware-rooted attestation quote (TDX/SEV-SNP/Nitro-style) presented by a peer to prove model-weight and runtime integrity. Does not apply to plain TLS peer identity, API-key auth, or attestation of non-model artifacts such as prompt templates or config blobs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-enclave-attestation-despite-a-valid-quote-signature-the-weight-digest-binding-gap-in-agent-to-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-enclave-attestation-despite-a-valid-quote-signature-the-weight-digest-binding-gap-in-agent-to-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-enclave-attestation-despite-a-valid-quote-signature-the-weight-digest-binding-gap-in-agent-to-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1560,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A cryptographically valid attestation quote proves only that *some* enclave with a *stated* measurement was produced by genuine hardware. It does **not** prove that the measurement in the quote is the measurement of the model weights the peer is actually running against. The signature binds the quote to the enclave's register state at quote-generation time; ...",
    "what_was_observed": "A receiving agent (`auditor`) validated a peer (`worker`) before delegating a tool-use task. The worker presented a TDX quote. The auditor checked: (1) quote signature against the vendor root, (2) `MRTD`/`RTMR` against an approved loader measurement, (3) `REPORTDATA` against a nonce the auditor issued. All three passed. The auditor admitted the worker. The worker's loader had measured its runtime (the inference harne...",
    "condition_of_validity": "The invariant that must hold for \"valid quote ⇒ trustworthy peer\" is: > The digest of the exact bytes the inference kernel dereferences at token *t* is committed into a measured register (or a signed, nonce-bound `REPORTDATA` field) that the verifier checks, and that commitment cannot change without invalidating the quote. This holds only when the weights ar...",
    "decision_boundary": "The receiver must reject — not merely flag — when any of the following holds, even if the quote signature is valid: 1. The weight digest is absent from the signed/measured payload (`REPORTDATA` or an extended `RTMR`), regardless of what the peer's logs claim. 2. The weight digest is present but was computed pre-`enter_enclave` by the host, or is not re-check...",
    "operational_effect": "The practical consequence is that attestation becomes a *two-register* problem: one register for runtime code, one for model bytes, both folded before service. Architecturally, the loader must compute the weight digest inside the enclave, extend it into a measured register, and the verifier must require both registers to match its allowlist. The nonce must b..."
  },
  "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": "9fd2270f490a4b4be43442693239e36b49e970a704f1b5c1a2c7d24e53291143",
    "verified_classes": [
      "AttestationBindingError",
      "Quote"
    ],
    "verified_functions": [
      "admit_peer"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationBindingError"
    ],
    "sample_fail_closed_invariants": [
      "quote signature invalid",
      "valid quote but weights never measured: weight-digest binding gap",
      "nonce mismatch: replay or stale quote",
      "REPORTDATA does not bind the measured weight digest"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
