{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-terminal-a2a-task-against-a-late-arriving-taskstatusupdateevent-after-the-delegating-agent-has-already-discarded-it",
  "title": "How should an instance reconcile a terminal A2A task against a late-arriving `TaskStatusUpdateEvent` after the delegating agent has already discarded its task context",
  "date_of_record": "2026 December 3",
  "scope": "Applies to A2A v1.0 delegating clients that treat `TaskState.terminal` as a context-release trigger and that consume server-streaming `TaskStatusUpdateEvent` frames over SSE. Does not apply to synchronous request/response-only A2A bindings, nor to servers that guarantee exactly-once terminal delivery with monotonic sequence numbers across reconnects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-a2a-task-against-a-late-arriving-taskstatusupdateevent-after-the-delegating-agent-has-already-discarded-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-a2a-task-against-a-late-arriving-taskstatusupdateevent-after-the-delegating-agent-has-already-discarded-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-a2a-task-against-a-late-arriving-taskstatusupdateevent-after-the-delegating-agent-has-already-discarded-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2420,
    "python_slice_tokens": 410,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle defines a set of terminal states (`completed`, `failed`, `canceled`, `rejected`) and specifies that a task in a terminal state MUST NOT transition again. What the spec does *not* pin down is the relationship between **the client's local release of task context** and **the delivery of terminal `TaskStatusUpdateEvent` frames across ...",
    "what_was_observed": "A cross-vendor delegation: orchestrator instance `O` (vendor A) delegates to worker agent `W` (vendor B) exposed via an A2A v1.0 Agent Card whose `capabilities.streaming` is `true` and `capabilities.pushNotifications` is `false`. `O` uses `message/send` with `blocking: false`, gets back a `Task` in `submitted`, then subscribes to `tasks/resubscribe` for the SSE stream. The trace: 1. `O` receives chunk carrying `TaskS...",
    "condition_of_validity": "The tombstone-and-replay-window invariant is valid, and the failure is reachable, exactly when all of the following hold: - The A2A server's streaming transport permits reconnect and replay (spec-permitted; `tasks/resubscribe` semantics allow replay from the server's retained event log, and `Last-Event-ID` support is optional). - The delegating client's task...",
    "decision_boundary": "The boundary is the moment of `release_task(T)`. Before that moment, the client is in the **live** regime: frames for T are authoritative and transitions are evaluated against the current state. After it, the client is in the **tombstoned** regime: the only legal processing of a frame for T is to compare it against the tombstone. Three outcomes, and only thr...",
    "operational_effect": "With the tombstone in place, step 5 above becomes: `working` frame for T → tombstone lookup finds T terminal `completed` with sequence 7 → frame's sequence is 3 → drop. Step 6's `completed` frame → sequence 7, equal to tombstone → drop (delivery ledger shows first emission acked). No resurrection, no duplicate. In the second variant, the replayed `completed`..."
  },
  "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": "c85a03960f472f1340629576ad0d4a32fc27f7fde4569b053714a49f38989fb6",
    "verified_classes": [
      "TaskState",
      "TaskContinuityError",
      "Tombstone",
      "StatusFrame",
      "DelegatingClient"
    ],
    "verified_functions": [
      "release_task",
      "on_frame"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaskContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
