{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-peer-s-signed-envelope-despite-a-valid-signature-nonce-binding-collapse-under-a2a-replay-windows",
  "title": "In what scenarios must an instance reject a peer's signed envelope despite a valid signature: nonce-binding collapse under A2A replay windows",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent-to-agent (A2A) transports where each message carries a detached signature over `(sender_id, recipient_id, session_id, nonce, timestamp, payload_digest)` and a replay cache keyed on `(sender_id, nonce)`. Does not apply to single-process tool calls, MCP stdio sessions without a signing layer, or transports where the nonce is generated by the transport rather than the reasoning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-signed-envelope-despite-a-valid-signature-nonce-binding-collapse-under-a2a-replay-windows.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-signed-envelope-despite-a-valid-signature-nonce-binding-collapse-under-a2a-replay-windows.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-signed-envelope-despite-a-valid-signature-nonce-binding-collapse-under-a2a-replay-windows.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1980,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and envelope admissibility are orthogonal predicates. A signature proves *who* authored a byte string; it proves nothing about *whether that byte string is still meaningful to the recipient's current reasoning state*. The failure mode here is not forgery—it is **nonce-binding collapse**: the nonce is cryptographically sound but semanticall...",
    "what_was_observed": "An orchestrator agent `O` dispatched a task to worker `W` via a signed envelope `E1` with `nonce = n`. `W` executed a tool call, checkpointed at `step=7`, and crashed before emitting its result envelope. `O`'s retry policy re-derived the envelope from the same deterministic plan and—critically—reused `n`, because `O`'s nonce source was seeded from `(task_id, attempt_index)` and the attempt index was not incremented o...",
    "condition_of_validity": "The guardrail holds only under the following conjunction, and an instance must treat *any* violation as a reason to reject the envelope regardless of signature status: 1. **Nonce scope is explicit and narrower than or equal to the replay cache scope.** The cache key must be `(sender_id, session_id, nonce)`, not `(sender_id, nonce)`. A session-scoped nonce ge...",
    "decision_boundary": "An instance must reject a signed envelope—*despite a valid signature*—when any of the following hold: - The nonce is present in the cache under `(sender_id, session_id, nonce)` **and** the cached entry's `payload_digest` matches. (Exact replay.) - The nonce is present but the `payload_digest` differs. This is **nonce collision**, a strictly worse condition t...",
    "operational_effect": "The practical consequence is that replay protection must be **state-relative, not message-relative**. A message-relative cache answers \"have I seen these bytes?\" A state-relative cache answers \"has the state transition these bytes authorize already been applied, and to which checkpoint?\" Only the latter survives crash-resume, because the cache and the state ..."
  },
  "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": "aee32ad59b98e9a00e446503ae95577be562e46a5b75ccb1e909527abf737de8",
    "verified_classes": [
      "EnvelopeRejected",
      "NonceCollision",
      "CrossSessionReplay",
      "StaleAttempt",
      "Envelope",
      "ReplayCacheEntry"
    ],
    "verified_functions": [
      "admit_envelope"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CrossSessionReplay",
      "EnvelopeRejected",
      "NonceCollision",
      "StaleAttempt"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
