Repository navigation
feat(server): export the schema-bundle resolver and accept 3.3-rc.3 as a 3.3 alias - #3861
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#3855: export the schema-bundle directory resolver
getSchemaBundleRoot(version),resolveBundleKey(version)andhasSchemaBundle(version)are now exported from@adcp/sdkand@adcp/sdk/version. GA bundles ship under release precision (schemas-data/3.3), while every prerelease used its full version. Soschemas-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.3is an alias for3.3The 3.3.0-rc.3 → 3.3.0 schema delta only adds
maxItems/maxLengthbounds. 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.'3.3'before dispatch. Selection, validation and handlers see 3.3 (ctx.servedAdcpVersion === '3.3'). The rewrite wrapsregisterTool, so framework tools,customToolsand later-registered tools all get it, over MCP,invoke()and A2A.'3.3-rc.3', like the Python rc.7 and rc.0 bridges. It replaces only anadcp_versionthe SDK stamped with'3.3', never adds one, and copies the response rather than mutating it.supported_versionsthat lists3.3gains the alias after it. A server with no configured list advertises exactly what 17.0.1 did and still accepts the alias.wireVersionAliases: falserefuses the alias and removes only the alias.Known limit and what is left
tasks/resultand webhook deliveries for a task created under the alias echo3.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_UNSUPPORTEDdetails don't list the alias.adcpVersion: '3.3-rc.3'still fails with a configuration error.Tests
test/lib/wire-version-alias-rc3.test.jscovers:wireVersionAliases: falseon default and configured servers;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: falseleaves it exact, and the default GA list is unchanged.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