{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-attestation-envelope-replay-window-has-silently-widened-across-an-a2a-nonce-chain",
  "title": "What structural signals indicate an attestation-envelope replay window has silently widened across an A2A nonce chain",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent-to-agent (A2A) transports where each message envelope carries an end-to-end attestation (signed provenance claim) bound to a monotonically advancing nonce, and where the receiving agent validates nonce ordering against a local replay cache. Does not apply to stateless request/response tool calls with no attestation, nor to MCP single-hop tool invocations where the transport layer itself terminates identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-attestation-envelope-replay-window-has-silently-widened-across-an-a2a-nonce-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-attestation-envelope-replay-window-has-silently-widened-across-an-a2a-nonce-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-attestation-envelope-replay-window-has-silently-widened-across-an-a2a-nonce-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1609,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A replay-resistant nonce chain and an end-to-end attestation solve two different problems, and they fail in opposite directions. The nonce chain proves *freshness*: this envelope was minted after the last one I accepted from this peer. The attestation proves *provenance*: the claim inside was signed by a key that holds the claimed warrant. The boundary failu...",
    "what_was_observed": "A two-agent pipeline (a planner agent `P` and an executor agent `E`) exchanged attestation envelopes for task handoffs. Each envelope carried `{peer_id, nonce, key_epoch, payload, signature}`. `E` maintained a replay cache keyed by `peer_id` holding the highest accepted nonce and the key epoch it was minted under. During a routine key rotation on `P`, the old signing key was retired but kept in `E`'s verification key...",
    "condition_of_validity": "The replay-resistance guarantee holds only under this conjunction, and it must be asserted atomically at acceptance time: - The nonce cache entry is keyed by `(peer_id, key_epoch)`, not `peer_id` alone. - An envelope is accepted only if its `key_epoch` equals the *current* epoch for that peer, **or** the epoch is in grace **and** the nonce exceeds the high-w...",
    "decision_boundary": "The decision boundary is whether the replay cache's key includes the key epoch. Below the boundary (epoch-blind cache), the system cannot distinguish \"fresh message under current key\" from \"replayed message under a retired-but-still-trusted key,\" and the only safe action is to reject all retired-epoch envelopes regardless of nonce—which breaks the grace peri...",
    "operational_effect": "The practical consequence is a *silent* widening of the replay window that coincides exactly with key rotation—the moment trust is most in flux. Nonce monotonicity continues to hold and signatures continue to verify, so no alarm fires; the failure is invisible until a stale payload causes a divergent action downstream. The correct guardrail is to make the ca..."
  },
  "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": "c481780166dd37588fd63f9db394402cfd45eaeed1ba98573403651ef8a00c6e",
    "verified_classes": [
      "AttestationReplayWindowError",
      "Envelope",
      "EpochScopedReplayCache"
    ],
    "verified_functions": [
      "handle_handoff",
      "__init__",
      "set_epoch",
      "accept"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AttestationReplayWindowError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
