Skip to content

feat(server): export the schema-bundle resolver and accept 3.3-rc.3 as a 3.3 alias - #3861

Merged
bokelley merged 7 commits into
mainfrom
feat/schema-bundle-root-and-rc3-alias
Dec 5, 2026
Merged

bokelley merged 7 commits into
mainfrom
feat/schema-bundle-root-and-rc3-alias

Conversation

@bokelley

@bokelley bokelley commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

#3855: export the schema-bundle directory resolver

getSchemaBundleRoot(version), resolveBundleKey(version) and hasSchemaBundle(version) are now exported from @adcp/sdk and @adcp/sdk/version. GA bundles ship under release precision (schemas-data/3.3), while every prerelease used its full version. So schemas-data/${ADCP_VERSION} resolved through every prerelease and failed with ENOENT at 3.3.0. The migration guide's AdCP 3.3.0 section now says so.

adcontextprotocol/adcp#9223 (seller side): 3.3-rc.3 is an alias for 3.3

The 3.3.0-rc.3 → 3.3.0 schema delta only adds maxItems / maxLength bounds. A minimal internal alias table ({ '3.3-rc.3': '3.3' }, not exported) works like the Python SDK's _ADCP_VERSION_ALIASES. A server accepts the alias only while it serves 3.3 exactly. A prerelease pin never negotiates down, so a 3.2-only seller still refuses rc.3.

  • Request. The alias is rewritten to '3.3' before dispatch. Selection, validation and handlers see 3.3 (ctx.servedAdcpVersion === '3.3'). The rewrite wraps registerTool, so framework tools, customTools and later-registered tools all get it, over MCP, invoke() and A2A.
  • Response. The tool call's response echoes '3.3-rc.3', like the Python rc.7 and rc.0 bridges. It replaces only an adcp_version the SDK stamped with '3.3', never adds one, and copies the response rather than mutating it.
  • Capabilities. A configured supported_versions that lists 3.3 gains the alias after it. A server with no configured list advertises exactly what 17.0.1 did and still accepts the alias.
  • Opt-out. wireVersionAliases: false refuses the alias and removes only the alias.
  • Deprecation window. The alias is removed in 18.0.

Known limit and what is left

  • MCP tasks/result and webhook deliveries for a task created under the alias echo 3.3. Threading the claimed alias through the task registry and webhook emitter isn't a clean change, so this is documented in the changeset, the option JSDoc and the migration guide.
  • VERSION_UNSUPPORTED details don't list the alias.
  • A server constructed with adcpVersion: '3.3-rc.3' still fails with a configuration error.
  • A spec-published compatibility list (the issue's Ask 2) would replace the hand table.

Tests

  • test/lib/wire-version-alias-rc3.test.js covers:
    • dispatch and echo, and validation at 3.3;
    • other prereleases refused, and a 3.2-only seller refusing rc.3;
    • the default server advertising no list, and a configured list gaining the alias;
    • wireVersionAliases: false on default and configured servers;
    • the custom-tool rewrite;
    • the internal table not being exported;
    • the bundle resolver.
  • server-a2a-adapter: rc.2 is refused, and rc.3 is served as 3.3 over A2A.
  • server-decisioning-from-platform: a configured list gains the alias, wireVersionAliases: false leaves it exact, and the default GA list is unchanged.
  • Checks: npm run build, npm run typecheck, npm run lint (0 errors). The server, from-platform, A2A, projection and export suites pass (630 tests).

Changeset: minor (new exports and server option).

Closes #3855
Refs adcontextprotocol/adcp#9223

🤖 Generated with Claude Code

bokelley and others added 6 commits December 5, 2026 12:26
…s a 3.3 alias

Export getSchemaBundleRoot(version), resolveBundleKey(version) and
hasSchemaBundle(version) from @adcp/sdk and @adcp/sdk/version (#3855). GA
bundles live under release precision (schemas-data/3.3) while prereleases
used the full version, so schemas-data/${ADCP_VERSION} stopped resolving at
3.3.0. The migration guide now says so.

Sellers accept the 3.3-rc.3 wire version as an alias for 3.3 until SDK 18.0
(adcontextprotocol/adcp#9223). The rc.3 -> 3.3.0 schema delta only adds
maxItems/maxLength bounds. A server that serves 3.3 exactly validates and
dispatches an rc.3-pinned request as 3.3, echoes 3.3-rc.3 in place of the
3.3 it stamped (never adding a version field a response lacks), and lists
the alias after 3.3 in get_adcp_capabilities supported_versions. A GA server
with no configured supported_versions now advertises its bundled window so
the alias is discoverable. ADCP_WIRE_VERSION_ALIASES and
resolveAdcpWireVersionAlias() are exported; wireVersionAliases: false
refuses the alias.

Closes #3855

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The A2A routing test used 3.3-rc.3 as its unadvertised-prerelease example.
It is now the 3.3 wire alias, so the refusal case uses 3.3-rc.2, and a new
case checks that A2A serves rc.3 as 3.3 and echoes the alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able internal

Review follow-ups for the 3.3-rc.3 wire alias:

- A server with no configured supported_versions advertises exactly what
  17.0.1 did. The alias joins only a configured list that names 3.3, since
  a derived 3.0-3.2 list would bind the serve-each-listed-release rule to
  releases the seller never claimed. wireVersionAliases: false removes only
  the alias.
- ADCP_WIRE_VERSION_ALIASES and resolveAdcpWireVersionAlias are no longer
  exported, so the table can empty at 18.0 without an API change.
- Document that the rewrite wraps registerTool, which covers customTools,
  and the known limit: MCP tasks/result and webhook deliveries for a task
  created under the alias echo 3.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bokelley
bokelley merged commit 0f88148 into main Dec 5, 2026
41 checks passed
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.

Export the schema-bundle directory resolver (bundle naming changes at GA)

1 participant