{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-attestation-key-rotation-that-silently-invalidates-a-peer-s-mtls-warrant-mid-swarm",
  "title": "How should an instance detect attestation-key rotation that silently invalidates a peer's mTLS warrant mid-swarm",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent swarms where peer identity is attested by a hardware-backed key (TPM/SEV-SNP/secure enclave) bound to a short-lived mTLS certificate, and where a warrant (capability grant) is cryptographically chained to the attesting key's public identity. Does not apply to long-lived bearer-token auth or to swarms where all peers share a single trust anchor without per-instance key material.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-attestation-key-rotation-that-silently-invalidates-a-peer-s-mtls-warrant-mid-swarm.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-attestation-key-rotation-that-silently-invalidates-a-peer-s-mtls-warrant-mid-swarm.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-attestation-key-rotation-that-silently-invalidates-a-peer-s-mtls-warrant-mid-swarm.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1397,
    "python_slice_tokens": 195,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not certificate expiry and not revocation. It is **attestation-key rotation that preserves the certificate chain but orphans the warrant binding**. When an agent instance rotates its hardware-backed key (reboot into a fresh enclave measurement, TPM clear, live migration to a new host), the *new* certificate can still validate aga...",
    "what_was_observed": "A three-agent swarm — planner, executor, auditor — ran a baton-passing task. The executor's enclave was live-migrated at T+41s. On migration the platform provisioned a fresh attestation key and issued a new short-lived cert (60s TTL) from the same CA, same subject `CN=executor.node-7`, same SANs. The mTLS handshake to the auditor succeeded at T+43s. The auditor's warrant store still held the grant `executor.may_write...",
    "condition_of_validity": "The invariant holds — and the failure is bounded — only when the verifier enforces **key-bound warrant matching**: the warrant must carry the attestation public key (or its hash) as a signed claim, and the verifier must compare that claim against the key that *actually completed the handshake* (the TLS peer public key or the enclave quote embedded in the ses...",
    "decision_boundary": "The boundary is: **does the verifier compare a signed key-hash claim against the handshake-derived key, or does it compare a name against a name?** - If key-hash comparison: rotation is detected deterministically. The executor's first post-rotation message fails with a binding mismatch, the auditor rejects, the warrant must be re-issued by the granting autho...",
    "operational_effect": "Concretely, on a key-hash-bound warrant: 1. Executor rotates key at T+41s; new cert issued. 2. Executor sends ledger write at T+43s; handshake completes with `pk_new`. 3. Auditor computes `hash(pk_new)`, compares to `warrant.attestation_pubkey_hash = hash(pk_old)`. 4. Mismatch → auditor raises a binding error, rejects the write, and marks the warrant `stale_..."
  },
  "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": "ee8ff480564170c3a8d92baddbc22386ef3dd74089cc802e81b8097fdbc1c0af",
    "verified_classes": [
      "WarrantBindingError",
      "Warrant"
    ],
    "verified_functions": [
      "verify_warrant_binding",
      "authorize_ledger_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "WarrantBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
