Skip to content

Stage 3 follow-ups: cross-version harness, downshift, type surfacing, 4.0 cleanup #1069

Closed

Description

@bokelley

Context

Stage 3 of the per-instance adcpVersion work has shipped:

This issue captures the deferred follow-ups that were intentionally scoped out of those PRs.

Work items

1. Stage 3 Phase D — cross-version test harness

Spin up a 3.1 seller (createAdcpServer({ adcpVersion: '3.1.0-beta.1' })) and a 3.0 buyer (new SingleAgentClient({ adcpVersion: '3.0.1' })) in the same Node process. Assert the matrix:

Buyer Seller Expected
3.0 3.0 full support, baseline
3.1 3.1 full support, both fields on the wire
3.0 3.1 works — 3.1 sellers MUST accept 3.0 buyers per minor compat
3.1 3.0 works for 3.0-shaped requests; new 3.1-only features get VERSION_UNSUPPORTED
3.x 4.0 (when shipped) clean VERSION_UNSUPPORTED, no silent corruption

This was the original Phase D goal in #1053's changeset. Blocked on the AdCP spec repo tagging a 3.1.0-beta.X release containing #3493 — without 3.1 schemas in the SDK build, there's no second bundle to test against.

2. Multi-version "release served" downshift on response echo

Per spec PR #3493 rule 6: a 3.1 seller serving a 3.0 buyer at 3.0 MUST echo adcp_version: '3.0', not '3.1'. Today's SDK (#1067) always echoes the seller's own pin via injectVersionIntoResponse. Correct for single-version sellers; wrong for sellers that declare multiple supported_versions.

Requires:

  • Server config knob for declaring multi-version capability (likely supportedVersions: string[] on createAdcpServer config, mapping to adcp.supported_versions on capability response)
  • Dispatch threads incoming request.adcp_version through to injectVersionIntoResponse
  • Pick the highest mutually-supported version, echo that
  • Test coverage in the Phase D matrix above

3. Buyer-side response-echo introspection (typed signal on TaskResult)

Today the seller's adcp_version echo is in the response body but the SDK doesn't surface it as a typed signal on TaskResult. Callers can read it directly from result.data.adcp_version. Adding result.adcpVersion?: string (and probably result.versionDowngraded?: boolean derived by comparing to the buyer's pin) makes downgrade-detection a first-class observable.

4. Compliance storyboard 3.1 tracks

When adcontextprotocol/adcp publishes the 3.1 storyboard tarball, our compliance/cache/ resync via npm run sync-schemas pulls new tracks. Adopters then run adcp storyboard run --version 3.1.0-beta.1 against their dev deployments. No SDK code change needed — purely a documentation/sample update once the tarball lands.

5. AdCP 4.0 cleanup

When AdCP 4.0 ships and adcp_major_version is removed per spec PR #3493's migration table:

  • Drop integer wire emission from buildVersionEnvelope
  • Drop majorVersions integer array from parseCapabilitiesResponse / AdcpCapabilities
  • Remove requireV3 deprecated alias on SingleAgentClient and AgentClient
  • Retire the legacy Agent class entirely (deprecation warning lands in feat: wire adcpVersion per-instance through validators + protocol; lift fence (Stage 3 B+C) #1053)
  • Drop requireV3ForMutations config option
  • Field-disagreement check becomes single-field absence (no adcp_major_version to disagree with)

Major SDK bump. Far in the future.

6. Widen AdcpMajorVersion type when major-4 schemas land

Currently AdcpMajorVersion = 2 | 3 in src/lib/version.ts. When AdCP 4.x schemas ship, widen to 2 | 3 | 4 at source. Mechanical change. Required for requireSupportedMajor's legacy-path cast to stay sound.

Related

Out of scope

Activity

  1. added
    claude-triaging
    on Apr 30, 2026
  2. bokelley commented on Apr 30, 2026

    @bokelley
    ContributorAuthor

    Triage

    Classification: tracking (follow-up bundle)
    Bucket(s): library, conformance, schema-sync (no matching repo labels exist — gap noted)
    Status: deferred

    My take: All six work items are explicitly sequenced after #984 (schema cache bump 3.0 → 3.1). Items 1, 4, 5, and 6 also carry external blockers (upstream 3.1.0-beta.X tag; AdCP 4.0 ship). Nothing here is actionable until #984 merges.

    Blocked-on: #984 — resurfaces on merge


    Triaged by Claude Code. Session: https://claude.ai/code/cse_01RsJhEQvvXz66HeF5CUMxyX


    Generated by Claude Code

  3. added
    needs:adcp-3.1
    and removed
    claude-triaging
    on Apr 30, 2026
  4. bokelley commented on May 26, 2026

    @bokelley
    ContributorAuthor

    Concrete beta 12 datapoint for the cross-version harness work: #2010 shows @adcp/[email protected] cannot run a 3.0 storyboard bundle (--compliance-version 3.0.12) because the build only has schema bundles v2.5 and 3.1.0-beta.3 registered. This blocks validating 3.0 and 3.1 from the same modern runner.

  5. added
    claude-triaging
    and removed on May 26, 2026
  6. bokelley commented on May 26, 2026

    @bokelley
    ContributorAuthor

    Triage (updated — #984 closed 2026-05-08)

    Classification: tracking / follow-up bundle
    Bucket(s): library, conformance
    Status: mixed — see item breakdown

    What the experts said:

    • ad-tech-protocol-expert: item 2 has a spec ambiguity — fix(validation): stop stripping task-envelope status and relaxing response roots (#3481) #3493 rule 6 specifies the echo value but is silent on what a seller sends when the buyer is pre-3.1 and sends no adcp_version at all; bundleSupportsAdcpVersionField guard at src/lib/protocols/index.ts already carves the space. Item 3 is sound: adcpVersion? belongs on TaskResultMetadata (matches the replayed precedent); ship versionDowngraded as undefined when echo is absent and document the 3.1+ dependency.
    • dx-expert: item 2 — rename supportedVersions → acceptedVersions, default to [adcpVersion], add construction-time validation against recognized AdcpVersion values. Item 3 — drop versionDowngraded entirely; let callers diff metadata.adcpVersion against their pin (one comparison, unambiguous).

    My take: The #984 blocker resolved 2026-05-08 and the disposition has shifted. Item 3 is immediately actionable as a minor additive change. Item 2 is structurally agreed-upon but needs @bokelley to clarify the spec's intent for pre-3.1 buyers before implementation begins.


    Item 1 (cross-version harness): Blocked-on: #984 → Blocked-on: #2010 — beta.12 SDK build lacks the 3.0 schema bundle; fix must land in #2010 first.

    Item 2 (multi-version downshift): ready-for-human — proposed API: acceptedVersions?: string[] on createAdcpServer, default [adcpVersion], construction-time guard. Open spec question: what MUST the seller echo when the buyer sends adcp_major_version: 3 but no adcp_version string?

    Item 3 (typed adcpVersion on TaskResult): ready-to-implement

    • Add adcpVersion?: string to TaskResultMetadata in src/lib/core/ConversationTypes.ts (alongside replayed, idempotency_key)
    • Extract from TASK_ENVELOPE_FIELDS in ProtocolResponseParser.ts (already parsed)
    • Drop versionDowngraded; callers diff metadata.adcpVersion vs their configured pin
    • Non-breaking (new optional field); minor bump; no generated-file edits

    Items 4–6 (storyboard tracks, 4.0 cleanup, type widen): still deferred on upstream releases.


    Triaged by Claude Code. Session: https://claude.ai/code/cse_01HbGDDEU1HD69y8UEnU7yHw


    Generated by Claude Code

  7. added and removed
    claude-triaging
    on May 26, 2026
  8. bokelley commented on Sep 21, 2026

    @bokelley
    ContributorAuthor

    Closing this stale omnibus. The typed response adcpVersion signal shipped in #2062, cross-version/version-negotiation coverage now spans the maintained 3.0/3.1/3.2 lines, and future AdCP 4.0 removals belong in dedicated trackers such as #1899.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-triagedneeds:adcp-3.1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions