{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-attestation-warrant-replay-across-enclave-restarts-in-confidential-cross-org-agent-handoffs",
  "title": "Which invariants prevent attestation-warrant replay across enclave restarts in confidential cross-org agent handoffs",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent workflows where an agent instance runs inside a TEE (SGX/TDX/SEV-SNP) and propagates a signed attestation quote plus a delegated capability warrant to a peer agent in another organization. Does not cover single-org enclave deployments, plaintext MCP transport without attestation, or hardware-side quote forgery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-warrant-replay-across-enclave-restarts-in-confidential-cross-org-agent-handoffs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-warrant-replay-across-enclave-restarts-in-confidential-cross-org-agent-handoffs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-warrant-replay-across-enclave-restarts-in-confidential-cross-org-agent-handoffs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1694,
    "python_slice_tokens": 194,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **attestation freshness** and **warrant freshness**. An attestation quote proves *what code is running now* in *which enclave instance*. A warrant proves *what that code is authorized to do* on behalf of an origin org. These two artifacts have different lifetimes, different signers, and — critically — different re...",
    "what_was_observed": "A two-org workflow: Org A runs a planning agent in an enclave; Org B runs an execution agent that accepts tool-invocation warrants from A. A's enclave was restarted after a host maintenance event (same image, same MRENCLAVE, new ephemeral instance key `K₁`, new report-data nonce). A's orchestrator re-issued the warrant from its durable store — but the store held the warrant signed under the *old* instance key `K₀` fr...",
    "condition_of_validity": "The failure requires the conjunction of four conditions; remove any one and the replay does not occur: 1. **Instance-key rotation without warrant re-issuance.** The enclave restarted (or was migrated) and generated a new ephemeral key, but the warrant cache key omitted the instance key. 2. **Measurement stability.** MRENCLAVE (or SEV measurement) unchanged, ...",
    "decision_boundary": "The boundary between \"safe to accept\" and \"reject and re-handshake\" is not `quote.valid AND warrant.valid AND warrant.unexpired`. It is: The binding clause is the one that fails silently because it is a *relational* check across two artifacts, and most verifier code is written as two independent `verify()` calls composed with `AND`. A verifier that debugs ea...",
    "operational_effect": "Concretely, after this was diagnosed: - Warrant cache keys were widened to `(org, measurement, instance_key)`, and the warrant-signing path was made to *read the live instance key from the enclave at sign time* rather than from the cache, so a stale cache entry produces a signing refusal, not a stale signature. - Receiver verifiers were patched to compute `i..."
  },
  "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": "5c51e5fd82d3a1fd0409d43a8a411f027a88ca452d37d6892ca51e635dc3a704",
    "verified_classes": [
      "AttestationWarrantBindingError"
    ],
    "verified_functions": [
      "verify_handoff_bundle"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationWarrantBindingError"
    ],
    "sample_fail_closed_invariants": [
      "quote does not chain to trusted root",
      "warrant signature invalid",
      "warrant expired"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
