{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-attestation-replay-from-surviving-an-x-509-trust-anchor-rotation-in-cross-org-agent-federation",
  "title": "Which invariants prevent attestation replay from surviving an X.509 trust-anchor rotation in cross-org agent federation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated agent meshes where an agent in org A (the *presenter*) authenticates to an agent in org B (the *verifier*) by presenting a signed attestation chain rooted in a mutually trusted anchor, and where either org rotates that anchor mid-flight. Does not apply to single-org meshes with a shared trust root, nor to bearer-token delegation schemes without chained attestation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-from-surviving-an-x-509-trust-anchor-rotation-in-cross-org-agent-federation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-from-surviving-an-x-509-trust-anchor-rotation-in-cross-org-agent-federation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-from-surviving-an-x-509-trust-anchor-rotation-in-cross-org-agent-federation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1984,
    "python_slice_tokens": 454,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired certificate.\" It is **anchor-set divergence during attestation replay**. A verifier that caches a *validated* attestation result keyed on the presenter's leaf key (or worse, on the presenter's agent identity string) will accept a replayed attestation after org A has revoked the anchor that originally signed it — because the cache ...",
    "what_was_observed": "A three-org mesh (A, B, C) exchanged agent attestations under a shared federation policy. Org A rotated its root anchor `A-root-1` → `A-root-2` on a 90-day cadence with a 7-day overlap window. During overlap, both roots are published in the federation metadata document, but each presenter agent signs its attestation chain against exactly one root — whichever its local signer was provisioned with. Trace of the failure...",
    "condition_of_validity": "The replay is only blocked if all three of the following hold simultaneously; drop any one and the failure reopens: - **Epoch binding.** Every attestation carries the asserted anchor epoch (`A-root-2`, epoch counter `N`). The verifier's cache key includes the epoch. A cache entry for epoch `N` cannot satisfy a presentation asserting epoch `N+1`, and a presen...",
    "decision_boundary": "The verifier must choose between two policies at the moment a cache hit would otherwise be honored: - **Fail-closed (required for capability-bearing attestations):** if the cached entry's epoch < current anchor epoch, OR the revocation view is stale beyond `max_revocation_age`, treat as cache miss and re-validate the full chain against the current bundle *an...",
    "operational_effect": "After the incident, the mesh adopted three concrete changes, each mapping to one invariant: 1. **Cache key became `(leaf_key, asserted_epoch, revocation_epoch)`** rather than `chain_hash`. A replayed old chain now produces a key whose `asserted_epoch` no longer matches the verifier's current epoch → forced re-validation → revocation check → reject. 2. **A `m..."
  },
  "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": "2c680fbd239cf8b9779ba56aeff41152a1956921588ddb76bae11f4f269637b0",
    "verified_classes": [
      "AttestationReplayError",
      "Attestation",
      "CachedResult",
      "EpochBoundAttestationCache"
    ],
    "verified_functions": [
      "__init__",
      "_key",
      "lookup",
      "store",
      "advance_anchor"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttestationReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
