Skip to content

fix(a2a): expose legacy compatibility override - #2895

Merged
bokelley merged 2 commits into
mainfrom
conductor/fix-adcp-client-2875
Sep 14, 2026
Merged

bokelley merged 2 commits into
mainfrom
conductor/fix-adcp-client-2875

Conversation

@bokelley

@bokelley bokelley commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • expose A2ALegacyCompatOptions and the public createA2AClientFromCardUrl factory
  • forward transport.legacyCompat through normal A2A calls, discovery reads, cancellation, and cache identity
  • add createA2AAdapter({ legacyCompat }), including native-only agent-card advertisement and routing
  • preserve { enabled: true } as the compatibility default and document the native-only opt-out

Tests

  • 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 typecheck
  • npm run build:lib
  • npm run ci:docs-check
  • pre-push validation (format, typecheck, build)

Fixes #2875


Open workspace in Conductor

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 patch but 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 warrants minor, not patch) is a high finding. Bump the changeset type to minor.

Once the changeset type is corrected to minor, this PR looks ready.

Blocking findings

  • .changeset/quiet-apples-disable-a2a-compat.md — Changeset typed patch but PR ships new public exports and option fields; per changeset-vs-wire-impact rule this understates impact and should be minor (high).

@bokelley
bokelley force-pushed the conductor/fix-adcp-client-2875 branch from 80d370e to f6844bd Compare September 14, 2026 12:05
@bokelley
bokelley enabled auto-merge (squash) September 14, 2026 12:06
@aao-secretariat
aao-secretariat Bot dismissed their stale review September 14, 2026 12:12

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A2A native client and server adapter hardcode legacyCompat.enabled = true with no override (14.0.0-rc.35)

1 participant