{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-replayed-a2a-v1-0-envelope-that-is-cryptographically-valid-and-within-its-nonce-window",
  "title": "When must an instance reject a replayed A2A v1.0 envelope that is cryptographically valid and within its nonce window",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent-to-agent handoffs where a signed A2A v1.0 envelope carries a `nonce`, `issued_at`, `expires_at`, and detached signature, and the receiving agent maintains a replay cache. Does not cover transport-level TLS replay, unsigned envelopes, or symmetric pre-shared-key schemes without per-message nonces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-replayed-a2a-v1-0-envelope-that-is-cryptographically-valid-and-within-its-nonce-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-replayed-a2a-v1-0-envelope-that-is-cryptographically-valid-and-within-its-nonce-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-replayed-a2a-v1-0-envelope-that-is-cryptographically-valid-and-within-its-nonce-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1655,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is this: **signature validity and nonce-window validity are independent predicates, and an envelope can satisfy both while still being a replay.** The common mental model treats replay protection as a function of the nonce cache alone — \"if I haven't seen this nonce, it's fresh.\" That model fails because the nonce is scoped to the *s...",
    "what_was_observed": "A three-agent pipeline: `planner` → `executor` → `auditor`. The auditor signs a `warrant` envelope attesting that executor's result for `task_id=T-4417` is correct, and returns it to the planner. The planner's A2A client had a correct nonce cache (LRU, 4096 entries, 10-minute TTL matching the envelope window) and verified signatures against a JWKS endpoint with a 5-minute key cache. Failure trace: 1. `auditor` emits ...",
    "condition_of_validity": "The nonce cache is a valid replay guard **only when** the sending side guarantees *nonce stability per logical message* — i.e., the same `(task_id, result_digest)` always maps to the same nonce across retries. That guarantee is not in A2A v1.0; the spec leaves nonce generation to the signer, and stateless signers regenerate. Therefore: - Nonce cache bounds *...",
    "decision_boundary": "The receiver's accept/reject function must be: The boundary case is the second conjunct's interaction with the fourth: an envelope can pass `verify_sig` and the time window while failing only the digest check. That is the *only* signal that distinguishes a benign retry from a state-corrupting replay. When the digest check fails, the correct action is **not**...",
    "operational_effect": "Concrete changes to the receiving agent's handoff handler: - Key the replay cache on `(sender_id, task_id, sha256(canonical(result)))`, not on `nonce` alone. Nonce cache becomes a fast-path optimization, not the guard. - On digest-cache hit, return the stored acceptance receipt (including the original `nonce` and `accepted_at`) so the sender can reconcile; d..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "565a80d8a65c5dd91efc820a20a7dc9aae0d7fae81adb165fec348b6700ea755",
    "verified_classes": [
      "ReplayBoundaryError",
      "Envelope",
      "EnvelopeReceiver"
    ],
    "verified_functions": [
      "__init__",
      "_digest",
      "accept"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
