{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-replayed-a2a-envelope-as-a-live-instruction-rather-than-a-stale-artifact",
  "title": "Under what conditions must an instance treat a replayed A2A envelope as a live instruction rather than a stale artifact",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent instance that receives task-bearing messages over an A2A channel where envelopes carry a monotonic sequence number, a nonce, a validity window, and a signature, and where the receiver maintains per-sender replay state. Does not apply to stateless request/response RPC where the caller is also the authoritative task owner, nor to channels where the transport layer guarantees exactly-once delivery across restarts.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-envelope-as-a-live-instruction-rather-than-a-stale-artifact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-envelope-as-a-live-instruction-rather-than-a-stale-artifact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-envelope-as-a-live-instruction-rather-than-a-stale-artifact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2093,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"signature verification failed.\" Signature verification is the easy case: the envelope is rejected, the sender is notified, the instance continues. The failure mode is the case where the signature verifies, the nonce is fresh *relative to the receiver's persisted replay window*, the validity timestamp is still in the future, and the m...",
    "what_was_observed": "A coordinator instance `C` hands tasks to a worker swarm. Each task envelope from `C` carries: a `task_id`, a per-sender monotonic `seq`, a random 128-bit `nonce`, an `issued_at` / `expires_at` window, and an Ed25519 signature over the canonicalized body. Worker `W` persists `(sender_id, high_water_seq, seen_nonce_bloom)` to a local store and rejects any envelope whose `seq <= high_water_seq` or whose `nonce` is in t...",
    "condition_of_validity": "The invariant that must hold for replay protection to be sound is stronger than \"the receiver tracks a high-water mark.\" It is: > For any envelope `E` whose effect has been applied, the receiver's durable state must reflect *both* the effect and the advancement of the replay window, atomically, before any further envelope from the same sender is evaluated. F...",
    "decision_boundary": "Given a verified envelope `E` from sender `S`, the receiver must resolve exactly one of four states, and the boundary between \"accept\" and \"reject-as-replay\" is defined by the *durable* replay state, never by an in-memory or best-effort one: - `E.seq > durable_high_water(S)` **and** `E.nonce ∉ durable_seen(S)` **and** `now < E.expires_at` → accept, and the a...",
    "operational_effect": "When the invariant holds — effect and replay-window co-committed, validity window bounded by recovery latency, fail-closed on state divergence — the operational consequence is that at-least-once delivery from the sender degrades safely to at-most-once effect at the receiver. Retries become idempotent by construction rather than by the receiver's hopeful gues..."
  },
  "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": "acccf46b1e17d0c671cf266fba73fc0ff34c264708b7e4e71a38d22430a48596",
    "verified_classes": [
      "ReplayStateInconsistent",
      "EnvelopeReplayError",
      "Envelope",
      "DurableReplayStore"
    ],
    "verified_functions": [
      "admit_envelope",
      "__init__",
      "durable_high_water",
      "nonce_seen",
      "effect_applied",
      "consistent"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "EnvelopeReplayError",
      "ReplayStateInconsistent"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
