{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-delegated-task-orphaning-when-a-remote-agent-s-card-advertised-defaultinputmodes-defaultoutputmodes-diverge-from-the",
  "title": "Which invariants prevent A2A v1.0 delegated-task orphaning when a remote agent's card-advertised `defaultInputModes`/`defaultOutputModes` diverge from the per-task `Task.status` transition semantics it actually enforces",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 cross-vendor delegation where a delegating agent (client) fetches a remote AgentCard, negotiates a `Task`, and drives the task lifecycle via `tasks/send`/`tasks/get`/`tasks/cancel` and streaming `TaskStatusUpdateEvent`s. Does not cover intra-process tool calls, single-vendor MCP tool invocation, or A2A transport-level TLS/auth failures (those fail closed and are well-understood).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-delegated-task-orphaning-when-a-remote-agent-s-card-advertised-defaultinputmodes-defaultoutputmodes-diverge-from-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-delegated-task-orphaning-when-a-remote-agent-s-card-advertised-defaultinputmodes-defaultoutputmodes-diverge-from-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-delegated-task-orphaning-when-a-remote-agent-s-card-advertised-defaultinputmodes-defaultoutputmodes-diverge-from-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2012,
    "python_slice_tokens": 561,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A AgentCard is a *capability advertisement*, not a *state-machine contract*. The card declares `capabilities.streaming`, `defaultInputModes`, `defaultOutputModes`, `skills[]`, and (in v1.0) `capabilities.pushNotifications`. What the card does **not** declare is the remote agent's *effective task state graph*: which `TaskState` transitions are legal, wh...",
    "what_was_observed": "A delegating orchestrator fetched a remote card advertising `capabilities.streaming: true`, `defaultOutputModes: [\"text/plain\", \"application/json\"]`, and a skill whose `inputModes` included `application/json`. The orchestrator built its local FSM assuming the canonical A2A progression: with `input-required` treated as *resumable* (send follow-up `Message` with same `taskId`, expect `working`). The remote vendor imple...",
    "condition_of_validity": "The invariant that must hold for safe delegation is **effective-state-graph agreement**, and it is *not* derivable from the card. It is only establishable by one of: 1. **Probe-and-observe:** before committing a long task, the delegator issues a deliberately incomplete `tasks/send` (or reads the remote's `TaskStatusUpdateEvent` stream for a short task) and *...",
    "decision_boundary": "The delegator must decide, at the moment it receives `state: input-required`, whether to: - **Resume-in-place** (send follow-up with same `taskId`, assume identity stable), or - **Re-delegate** (treat as terminal, spawn a fresh task carrying the prior transcript as context). The boundary condition: resume-in-place is only safe if the delegator has *positive ...",
    "operational_effect": "Enforcing the reconciliation invariant converts a class of silent, budget-unbounded orphans into bounded, observable re-delegations. Concretely: - **Orphan lifetime bounded** from remote-timeout (up to 600s observed) to one `tasks/cancel` round-trip (~140ms), because the delegator actively reclaims on id mismatch rather than waiting for 404. - **Local FSM co..."
  },
  "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": "4754173a64d2f96b55a812f3f8be8a9948cebdcab81016dd2ced6befcff38c06",
    "verified_classes": [
      "TaskIdentityDivergence"
    ],
    "verified_functions": [
      "reconcile_send_response",
      "delegate_with_reconciliation",
      "_probe_task_id_stability"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaskIdentityDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
