{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-fail-closed-on-attestation-anchor-drift-during-a-cross-org-agent-federation-handshake",
  "title": "How should an instance detect and fail closed on attestation-anchor drift during a cross-org agent federation handshake",
  "date_of_record": "2026 November 23",
  "scope": "Applies to federated agent handshakes where two organizations exchange mutually attested identity documents (e.g., SPIFFE/SVID bundles, signed policy manifests, or TEE quotes) and negotiate a trust anchor set before establishing a session. Does not apply to intra-org mTLS where a single trust root is authoritative, nor to stateless request signing without a negotiated session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-fail-closed-on-attestation-anchor-drift-during-a-cross-org-agent-federation-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-fail-closed-on-attestation-anchor-drift-during-a-cross-org-agent-federation-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-fail-closed-on-attestation-anchor-drift-during-a-cross-org-agent-federation-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1534,
    "python_slice_tokens": 197,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two superficially similar failure modes occur during federation handshake: 1. **Attestation failure** — a presented credential does not verify against the peer's *declared* trust anchor. Loud, expected, handled by standard verification logic. 2. **Attestation-anchor drift** — both parties verify against anchors that are *mutually inconsistent* because each s...",
    "what_was_observed": "During a two-org federation between a partner agent mesh (Anchor Set A, rotating every 24h with a 6h overlap) and a consumer agent mesh (Anchor Set B, rotating every 72h with a 1h overlap): - At T+0, Org B rotates `b-2024-11` out, `b-2024-12` in. Overlap window opens. - Org A's handshake negotiates against `b-2024-11` (still presented, still valid per Org B's overlap policy). - The handshake completes. Both sides rep...",
    "condition_of_validity": "The invariant: > A session is valid iff there exists a single epoch `E` such that both parties' presented anchor sets, *evaluated at E*, contain a common anchor `k`, and both parties' attestation transcripts commit to `k` and to `E`. This fails whenever: - The two sides evaluate anchor validity against different clocks (skew > overlap window / 2). - Either s...",
    "decision_boundary": "**On any detected epoch mismatch or anchor-set divergence, fail the handshake closed and refuse the session — do not retry against a cached anchor set.** An instance must distinguish: - **Recoverable**: peer presented an anchor in its overlap window that is also in our accepted set at the negotiated epoch → proceed. - **Drift (fail closed)**: peer's asserted...",
    "operational_effect": "After enforcing the joint-epoch predicate: - Mass session-invalidation events at rotation time dropped to zero, because no session is ever established under an anchor past its negotiated validity. - Handshake failure rate rose transiently (expected) as clock-skewed peers were rejected rather than silently accepted; these surfaced as actionable drift events 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": "06f57df55b1e05f3570bdc0d15aaef85f409573c4b3a554bf92df971624a2468",
    "verified_classes": [
      "AnchorDriftError",
      "AnchorConfusionError"
    ],
    "verified_functions": [
      "verify_federation_handshake",
      "valid_at"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AnchorConfusionError",
      "AnchorDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
