Skip to content

chore(a2a): migrate off EventQueueLegacy in SellerA2AClient and test helpers #699

Description

@bokelley

Follow-up to #694.

Context

SellerA2AClient.invoke() (added in #694) uses:

from a2a.server.events.event_queue import EventQueueLegacy
queue = EventQueueLegacy()
await executor.execute(request_ctx, queue)

The class name advertises its own deprecation. The a2a package presumably exposes a non-legacy queue elsewhere, or will.

What to do

  1. Confirm what the non-legacy replacement is in the current a2a-sdk version pinned in pyproject.toml. If a successor exists, migrate the harness and any other internal call sites.
  2. If no successor exists yet, open a tracking issue upstream and add a comment in harness.py pointing at it so this isn't lost.
  3. Same check applies to any other *Legacy symbols in the same import surface.

Why this matters

Test harnesses are the slowest-moving surface area an adopter sees. If the a2a-sdk ever drops EventQueueLegacy entirely, the SDK's primary A2A test client breaks for everyone simultaneously.

Acceptance

  • Audit complete: which a2a.server.events.*Legacy symbols are in use, what their successors are, and migration done OR upstream tracking issue linked
  • SellerA2AClient on the non-legacy queue when one exists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions