{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-hardware-attested-peer-whose-quote-is-valid-but-whose-measurement-log-diverges-from-its-own-replay",
  "title": "Under what conditions must an instance reject a hardware-attested peer whose quote is valid but whose measurement log diverges from its own replay",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agent-to-agent handoffs where the receiving agent verifies a peer's hardware-rooted attestation (TPM/TDX/SEV-SNP quote) before accepting state, tools, or warrants. Does not apply to pure software-key attestation, nor to cases where the verifier trusts a centralized attestation service that already performs log replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-hardware-attested-peer-whose-quote-is-valid-but-whose-measurement-log-diverges-from-its-own-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-hardware-attested-peer-whose-quote-is-valid-but-whose-measurement-log-diverges-from-its-own-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-hardware-attested-peer-whose-quote-is-valid-but-whose-measurement-log-diverges-from-its-own-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2151,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A hardware attestation quote proves exactly one thing: *some* code with *some* measurement, running under a key bound to *some* hardware, signed a nonce. It does **not** prove that the measurement corresponds to the code the peer claims to be running. That linkage is established only by the **measured boot log** (TCG event log / SNP report data + `REPORT_DAT...",
    "what_was_observed": "Two agents, `planner-7` and `executor-3`, negotiate a warrant: `executor-3` will run tool `db.write` under `planner-7`'s delegated authority. `executor-3` presents a TDX quote with a fresh nonce, valid DCAP chain, and a `MRTD` (TD measurement) that matches the published image hash for `executor-3@v4.2`. Verification passes at the quote layer. The replay step is where it breaks. The event log `executor-3` supplies con...",
    "condition_of_validity": "The invariant that must hold for acceptance: > Accept peer `P` for negotiated capability set `C` iff (1) quote signature chains to a trusted vendor root, (2) nonce matches the challenge and is unexpired, (3) `REPORT_DATA` / quote-bound field equals `H(nonce || H(peer_pubkey) || H(negotiation_transcript))`, (4) the peer's event log replays to exactly the quot...",
    "decision_boundary": "The decision boundary is not \"does the quote verify\" but \"does the replayed sequence match the reference sequence for the negotiated capability set, at the granularity the capability requires.\" - If capability `C` is **seal-independent** (e.g., read-only public fetch), digest-level match suffices; sequence divergence is tolerable and should be logged, not re...",
    "operational_effect": "Implementing the sequence-equality condition changes the failure surface in three ways: 1. **Latency.** Replay plus sequence comparison costs O(events) per handoff, typically 5–40 ms for a 200-event log. This is negligible against LLM inference but non-negligible against a 50 ms handoff SLA in tight swarms; cache the reference sequence, not the peer's log. 2..."
  },
  "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": "b7d7a919decc53a5eadec23a01944f73fb6c4c9752d98623d89dd8c0822c2bda",
    "verified_classes": [
      "AttestationRejected",
      "Event",
      "Quote"
    ],
    "verified_functions": [
      "replay",
      "verify_peer"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "AttestationRejected"
    ],
    "sample_fail_closed_invariants": [
      "quote does not chain to trusted vendor root",
      "nonce mismatch or replay",
      "report_data does not bind negotiation transcript",
      "event log does not replay to quoted measurement"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
