{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-an-a2a-v1-0-agent-card-whose-declared-tasklifecycle-states-are-a-superset-of-the-states-the-peer-runtime-actuall",
  "title": "What happens when an instance accepts an A2A v1.0 Agent Card whose declared `taskLifecycle` states are a superset of the states the peer runtime actually emits",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 cross-vendor delegation where the calling agent (delegator) negotiates task lifecycle from a discovered Agent Card and drives state transitions via `tasks/send` and `tasks/get`. Does not apply to same-vendor A2A where card and runtime are generated from one schema; does not cover streaming `tasks/sendSubscribe` push channels (separate invariant).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-agent-card-whose-declared-tasklifecycle-states-are-a-superset-of-the-states-the-peer-runtime-actuall.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-agent-card-whose-declared-tasklifecycle-states-are-a-superset-of-the-states-the-peer-runtime-actuall.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-agent-card-whose-declared-tasklifecycle-states-are-a-superset-of-the-states-the-peer-runtime-actuall.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2326,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An Agent Card is a *declaration*, not a *contract enforced at runtime*. A2A v1.0 lets a peer publish `capabilities.taskLifecycle.states` — the set of task states it claims to transition through (`submitted`, `working`, `input-required`, `completed`, `failed`, `canceled`). The delegator's negotiation logic typically treats this set as authoritative: it builds...",
    "what_was_observed": "A delegator D discovers peer P via `/.well-known/agent.json`. P's card declares: D builds a lifecycle driver keyed on that set. It sends a `tasks/send` for a long-running delegation envelope (a cross-vendor refactor task). Observed trace: 1. `tasks/send` → P returns `state: submitted`, `taskId: t-91`. D registers a `working` handler. 2. D polls `tasks/get(t-91)` → `state: working`, `progress: 0.4`. Normal. 3. D's env...",
    "condition_of_validity": "The superset-declaration failure is *live* — meaning it can corrupt delegation — only when all of the following hold: - The peer's card declares at least one state the peer runtime does not emit (superset), **and** the delegator's control flow contains a branch that is *only* reachable via that declared state (e.g., a `input-required` handler, or a `canceled...",
    "decision_boundary": "The boundary the delegator must draw is between **declared-reachable** and **observed-reachable**, and it must be drawn *before* the first side effect, not after the first `failed`. Concretely: - Treat `capabilities.taskLifecycle.states` as a **permission set** (states the peer *may* emit), never as a **reachability guarantee** (states the peer *will* emit o...",
    "operational_effect": "Unbounded, the superset-declaration failure produces three concrete operational effects: 1. **Duplicate side effects under retry.** Because the delegator retries on `failed` believing `input-required` was the \"real\" state, and the peer is non-idempotent, each retry is a fresh task. Observed 3× duplication in the trace above; with a larger retry budget the mu..."
  },
  "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": "ac073bffe47a193e435f5f7a5eea778d200c683f2fb2c17627ce77801f06b622",
    "verified_classes": [
      "UnreachableDeclaredStateError",
      "LifecycleEdge",
      "DelegationDriver"
    ],
    "verified_functions": [
      "drive_delegation",
      "__post_init__",
      "observe",
      "demote",
      "require_recovery_path",
      "retry_decision"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnreachableDeclaredStateError"
    ],
    "sample_fail_closed_invariants": [
      "peer is non-idempotent on tasks/send and has never emitted 'canceled'; retrying a side-effecting task would duplicate wo"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
