{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-policy-attestation-replay-across-federated-trust-brokers-when-attestation-timestamps-are-peer-local",
  "title": "How does an instance detect policy-attestation replay across federated trust brokers when attestation timestamps are peer-local",
  "date_of_record": "2026 November 20",
  "scope": "Applies to federated agent systems where an instance accepts capability grants from a foreign trust broker based on a signed policy attestation carrying a peer-local timestamp and a monotonic nonce. Does not apply to single-org deployments where the broker and the verifier share a clock authority, nor to attestations that carry a broker-signed, globally monotonic sequence number.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-policy-attestation-replay-across-federated-trust-brokers-when-attestation-timestamps-are-peer-local.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-policy-attestation-replay-across-federated-trust-brokers-when-attestation-timestamps-are-peer-local.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-policy-attestation-replay-across-federated-trust-brokers-when-attestation-timestamps-are-peer-local.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2104,
    "python_slice_tokens": 507,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"expired credential\" and not \"forged signature.\" Both of those are cheap to detect. The boundary condition is **attestation replay under clock skew**: a *validly signed, currently-unexpired* policy attestation that was issued for a prior authorization decision is re-presented to a verifier, and the verifier's freshness check passes be...",
    "what_was_observed": "A verifier instance in org B accepted a `policy_attestation` from broker A granting `scope: [\"tool:ledger.write\", \"limit: 500\"]`. The attestation was signed by A's broker key, well-formed, and within its declared 300-second validity window. The instance admitted the grant and executed three write operations against a shared ledger. The same attestation bytes were then presented a second time, 240 seconds later, by a ...",
    "condition_of_validity": "The freshness check is only sound under the following invariant: > **Attestation uniqueness is global to the federation, not local to the caller.** For any attestation `a`, the verifier must be able to decide \"has `a` already been consumed for a request context that overlaps this one?\" using only information it holds or can obtain from the broker, independen...",
    "decision_boundary": "The verifier must reject — not merely log — when any of the following hold: - An attestation digest is observed more than once within the retention window, **regardless of caller identity**. Caller identity is an input to authorization, never a key that partitions the replay namespace. - `issued_at` for a re-observed attestation is not strictly greater than ...",
    "operational_effect": "When the invariant is enforced, the observable behavior changes in three concrete ways. First, the replay set must be content-addressed and federation-global, which means the verifier's replay state grows with `federated_callers × attestation_rate × retention_window` rather than `caller × nonce` — a real memory cost that must be budgeted, and a reason to pre..."
  },
  "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": "422ec86f33e3200c99ac4589bc527d2a5eab43994d24465ade79606309f22374",
    "verified_classes": [
      "AttestationReplayError",
      "MissingUniquenessTokenError",
      "Attestation",
      "FederatedAttestationVerifier"
    ],
    "verified_functions": [
      "__init__",
      "_digest",
      "verify_and_consume"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationReplayError",
      "MissingUniquenessTokenError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
