Repository navigation
Description
Summary
The current Python SDK release used by Sales Agent rejects requests that carry the current JS SDK / Agentic wire envelope value:
{"adcp_version": "3.1-beta.5"}Local runtime with adcp @ git+https://github.com/adcontextprotocol/[email protected] reports:
adcp.validation.envelope.SUPPORTED_WIRE_VERSIONS = ('3.0', '3.1-beta.4', '2.5')
and detect_wire_version({"adcp_version": "3.1-beta.5"}) raises UnsupportedVersionError because normalize_to_release_precision() preserves the prerelease patch label and the strict supported set does not include beta.5.
Downstream impact
Prebid Sales Agent had to add a local compatibility shim in bokelley/salesagent#632 so embedded/managed tenants can interoperate with current buyers emitting 3.1-beta.5 while the Python SDK pin is still on 3.1-beta.4.
That shim patches:
adcp.validation.envelope.SUPPORTED_WIRE_VERSIONSadcp.validation.envelope.detect_wire_version
so the strict dispatcher path accepts 3.1-beta.5 as wire-compatible.
Ask
Please either:
- publish a Python SDK prerelease whose
SUPPORTED_WIRE_VERSIONSincludes3.1-beta.5, or - make
detect_wire_version()tolerant of wire-compatible 3.1 beta patch aliases when the request/response envelope shape has not changed.
Suggested acceptance criteria
detect_wire_version({"adcp_version": "3.1-beta.5"})returns"3.1-beta.5"or another documented compatible 3.1 release-precision value instead of raising.- Server dispatch/envelope validation accepts
3.1-beta.5requests without adopter monkeypatching. - Capabilities helpers advertise the exact supported wire versions consistently with runtime validation.
Related downstream validation
Sales Agent PR #632 is green with the local shim:
make quality- focused managed-tenant webhook integration slice
- GitHub CI: lint/typecheck, unit, integration shards, E2E, quickstart, security audit, storyboard gates, GHCR build
Activity
bokelley commentedon May 27, 2026
Triage
Classification: Bug
Bucket(s): validation (no
validationlabel exists in repo — noted in run summary)Status: ready-for-human
Milestone: (omitted — prerelease cycle)
What the experts said:
3.1-beta.Nis its own schema-cache bucket (schemas/cache/3.1.0-beta.3/,3.1.0-beta.4/are distinct); accepting3.1-beta.5while serving3.1-beta.4schemas violates the context-echo contract and causes a schema-loader cache miss. Option A (bumpADCP_VERSIONto beta.5) is protocol-correct;VERSION_UNSUPPORTED + supported_versionsis the designed buyer-retry path.get_supported_adcp_versions()removes3.1-beta.4fromSUPPORTED_WIRE_VERSIONSentirely on a version bump, hard-rejecting existing beta.4 sellers. Option B's return value is wrong (returning the claimed"3.1-beta.5"causes a schema-loaderKeyErrorunless the loader is family-aware). Recommends Option C: addSUPPORTED_PRERELEASE_SIBLINGS = ("3.1-beta.5",)intoSUPPORTED_WIRE_VERSIONSconstruction inenvelope.py, plus a schema-loader alias"3.1-beta.5"→"3.1-beta.4".My take: Experts diverge on whether dropping beta.4 buyers is acceptable (protocol says yes; code-reviewer says regression for mixed deployments). The hard blocker for all options is the missing
schemas/cache/3.1.0-beta.5/directory — any path that accepts3.1-beta.5wire requests will fail at schema validation without new schema files or a loader alias.Decision needed from @bokelley before implementation:
ADCP_VERSION→3.1.0-beta.5): runpython scripts/sync_schemas.pyto populateschemas/cache/3.1.0-beta.5/, bumppyproject.tomlto6.3.0b5; beta.4 sellers getVERSION_UNSUPPORTED(spec-correct retry path).SUPPORTED_PRERELEASE_SIBLINGS = ("3.1-beta.5",)toSUPPORTED_WIRE_VERSIONSinsrc/adcp/validation/envelope.py; add a schema-loader alias insrc/adcp/validation/schema_loader.pymapping"3.1-beta.5"→"3.1-beta.4"(no new schema files needed); keeps both beta versions accepted simultaneously. Either option needs new tests intests/test_validation_envelope.pycovering prerelease-sibling accept/reject cases and pinned return value.Triaged by Claude Code. Session: https://claude.ai/code/session_01QZeusAJQChFzXS2KqQiKdh
Generated by Claude Code
bokelley commentedon Jun 6, 2026
Closing as obsolete. Confirmed with the buyer side: no live buyers still emit 3.1-beta.5 now that the SDK reference (and the JS SDK) are pinned to 3.1.0-rc.9. The supported wire set has moved past beta.5 entirely, and the context-echo / distinct-schema-cache objection from triage stands against a fuzzy alias. If a beta.5 buyer ever reappears, the correct fix is an explicit schema-loader alias plus a SUPPORTED_WIRE_VERSIONS entry with a pinned test — not a regex. Closing alongside #894.