Repository navigation
fix(a2a): expose legacy compatibility override - #2895
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
The A2A legacyCompat opt-out is well threaded: it reaches every discovery/call/cancel seam, is part of the client-cache identity, and preserves the enabled-by-default behavior on both client and server. The witness-not-translator and official-transport-client rules are respected — the change is additive with no wire re-shaping.
Blocking findings
- .changeset/quiet-apples-disable-a2a-compat.md — Changeset typed
patchbut the PR ships new public exports (createA2AClientFromCardUrl,A2ALegacyCompatOptions) plus new option fields. Per the repo's mandatory changeset-vs-wire-impact rule, a changeset that understates impact (new public API surface warrantsminor, notpatch) is ahighfinding. Bump the changeset type tominor.
Once the changeset type is corrected to minor, this PR looks ready.
Blocking findings
- .changeset/quiet-apples-disable-a2a-compat.md — Changeset typed
patchbut PR ships new public exports and option fields; per changeset-vs-wire-impact rule this understates impact and should beminor(high).
80d370e to
f6844bd
Compare
Superseded by a later Ladon review that rechecked and resolved its blocking findings.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — prior blocker resolved, no current findings.
This is a subsequent pass. The sole prior blocker (changeset typed patch while shipping new public exports createA2AClientFromCardUrl and A2ALegacyCompatOptions plus new legacyCompat option fields) has been fixed: the changeset now correctly declares '@adcp/sdk': minor. The A2A legacyCompat opt-out is consistently threaded across the cache key, client dialect resolution, caller-mutation snapshot, and server adapter gating, respecting witness-not-translator and official-transport rules.
Decision-table walk:
- Row 1 (critical/high): no findings — skip.
- Row 2 (gated_paths): false — skip.
- Row 3 (deleted high-risk path): none — skip.
- Row 4 (medium data-loss/schema/infra): none — skip.
- Row 5 (high-risk modified + medium finding): high_risk true (modified src/lib/protocols/**) but zero medium findings — skip.
- Row 6 (sticky escalate): prior decision was request-changes, not escalate — skip.
- Row 7 (no-auto-approve team): no match — skip.
- Row 8 (≥3 medium): zero medium — skip.
- Row 9: approve.
high_risk is true only via (modified) protocol files with no medium-or-higher concerns, so per the high-risk guidance the modifications are presumed safe. Net improvement over the prior pass.
Summary
A2ALegacyCompatOptionsand the publiccreateA2AClientFromCardUrlfactorytransport.legacyCompatthrough normal A2A calls, discovery reads, cancellation, and cache identitycreateA2AAdapter({ legacyCompat }), including native-only agent-card advertisement and routing{ enabled: true }as the compatibility default and document the native-only opt-outTests
NODE_ENV=test node --test-timeout=60000 --test-force-exit --test test/lib/a2a-legacy-compat.test.js test/lib/a2a-client-cache.test.js test/server-a2a-adapter.test.js(41 passed)npm run typechecknpm run build:libnpm run ci:docs-checkFixes #2875
Open workspace in Conductor