{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-replayed-a2a-v1-0-task-envelope-as-a-fresh-capability-grant-rather-than-a-duplicate-delivery",
  "title": "Under what conditions must an instance treat a replayed A2A v1.0 task envelope as a fresh capability grant rather than a duplicate delivery",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task envelopes exchanged over attested end-to-end channels between two or more agent instances, where the receiving instance enforces replay resistance via a monotonic counter and a bounded dedup window. Does not apply to unauthenticated local tool calls or to A2A envelopes whose `capability_warrant` field is absent (pre-v1.0 peers), which must be rejected outright rather than reasoned about.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-v1-0-task-envelope-as-a-fresh-capability-grant-rather-than-a-duplicate-delivery.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-v1-0-task-envelope-as-a-fresh-capability-grant-rather-than-a-duplicate-delivery.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-a2a-v1-0-task-envelope-as-a-fresh-capability-grant-rather-than-a-duplicate-delivery.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2490,
    "python_slice_tokens": 591,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"replay attack\" in the classical sense. Classical replay is a security defect: an attacker retransmits a captured message and the receiver acts twice. A2A v1.0's `envelope_id` + monotonic `sequence_no` + `warrant_digest` triple defeats that cleanly, provided the dedup window is honored. The boundary that actually breaks is subtler: **...",
    "what_was_observed": "A two-instance pipeline: `planner` (holds the user-facing warrant) delegates a long-running `index_corpus` task to `worker`. The task involves ~40 tool calls against an external index, each carrying the delegated warrant. The planner's own warrant has a 15-minute TTL. The task takes ~22 minutes. At T+15:00 the planner's warrant expires. The planner's orchestrator, correctly, re-mints a child warrant with a fresh TTL ...",
    "condition_of_validity": "The \"treat as fresh grant\" interpretation is valid **if and only if all of the following hold**: 1. `envelope_id` is not in the dedup window (true replay resistance check, on the correct key). 2. `sequence_no > last_seen_sequence_no` for the sender's attested identity (monotonicity check, on the correct key). 3. `warrant_digest` differs from the digest curre...",
    "decision_boundary": "The decision boundary is a 2x2 over `(task_id seen?, warrant_digest matches current?)`: The non-obvious cell is the third row. Most implementations collapse rows 2 and 3 into \"task_id already known → duplicate\" and lose the re-delegation. The fix is not a heuristic; it is a structural change: **key the dedup filter on `(envelope_id, sequence_no)`, and key th...",
    "operational_effect": "The operational consequence of getting this boundary wrong is a class of stalls that look like attestation failures but are actually dedup-key failures. The symptom pattern: - Sender logs show successful re-delegation with fresh warrant. - Receiver logs show `ACK` on the re-delegated envelope. - Receiver's next tool call fails with `WARRANT_REVOKED` (because..."
  },
  "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": "d334ed7a7e4233b6fee2777f93efab7602a9f827b3e50214d678e8a9a5bcd900",
    "verified_classes": [
      "EnvelopeError",
      "ReplayRejected",
      "WarrantBroadeningRejected",
      "CompletedTaskRedelegation",
      "TaskState",
      "Envelope",
      "TaskRecord",
      "Receiver"
    ],
    "verified_functions": [
      "_check_replay",
      "receive"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompletedTaskRedelegation",
      "EnvelopeError",
      "ReplayRejected",
      "WarrantBroadeningRejected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
