{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-trust-brokered-federation-peer-is-replaying-a-stale-policy-attestation-under-a-rotated-signing-key",
  "title": "How does an instance detect that a trust-brokered federation peer is replaying a stale policy attestation under a rotated signing key",
  "date_of_record": "2026 November 29",
  "scope": "Applies to federated agent meshes where cross-org messages are admitted only if the sender presents a policy attestation countersigned by a trust broker, and where brokers rotate signing keys on a schedule independent of attestation TTLs. Does not apply to single-org meshes with a shared root of trust, nor to stateless request/response RPC where no attestation is cached between hops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-trust-brokered-federation-peer-is-replaying-a-stale-policy-attestation-under-a-rotated-signing-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-trust-brokered-federation-peer-is-replaying-a-stale-policy-attestation-under-a-rotated-signing-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-trust-brokered-federation-peer-is-replaying-a-stale-policy-attestation-under-a-rotated-signing-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the peer is malicious\" and not \"the signature fails to verify.\" It is subtler: the attestation verifies *cryptographically* against a key the broker still publishes, but that key was retired for *new* attestations while remaining valid for *verification of historical* ones. A broker typically maintains an overlap window—`key_retired_...",
    "what_was_observed": "A federation of three orgs—call them `alpha` (broker), `beta` (peer), `gamma` (peer)—routed tool-invocation requests through a broker that issued attestations of the form `{peer_id, allowed_tools, max_privilege, issued_at, expires_at, key_id, sig}`. Attestation TTL was 30 minutes. Broker key rotation cadence was 24 hours with a 72-hour verification-overlap retention. At T+0, `beta`'s policy was narrowed from `allowed...",
    "condition_of_validity": "The replay is *undetectable by signature verification alone* precisely when all of the following hold: 1. The broker retains the retired key for verification (`key_purged_at > now`). 2. The replayed attestation's `expires_at` has not yet elapsed in wall-clock terms. 3. The receiving peer has no independent, out-of-band view of the sender's *current* policy (...",
    "decision_boundary": "The boundary between \"accept\" and \"reject-and-refetch\" is not a threshold on any single value; it is a *relational* check across the attestation, the key metadata, and the broker's policy log. Concretely: - If `attestation.key_id` is retired **and** `attestation.issued_at > key.retired_at` → **reject as malformed** (this is the replay trace; the artifact is ...",
    "operational_effect": "The practical consequence is that a federation which verifies only signatures will, on every policy change, have a window—bounded by the maximum attestation TTL plus the maximum checkpoint age—during which narrowed policies are silently unenforced for any peer that resumed from a checkpoint. In the observed incident this window was ~22 minutes (the residual ..."
  },
  "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": "995c0d778e3c5e971fc62988220a468d15cf0d4663918992795a1eecb8611690",
    "verified_classes": [
      "StaleAttestationReplay",
      "KeyMeta",
      "Attestation"
    ],
    "verified_functions": [
      "admit",
      "handle_resumed_message"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleAttestationReplay"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
