Skip to content

chore(deps): migrate to @adcp/sdk 17.0.0-beta.0 (AdCP 3.3 beta) - #8489

Merged
bokelley merged 4 commits into
mainfrom
chore/adcp-sdk-17-beta
Oct 26, 2026
Merged

bokelley merged 4 commits into
mainfrom
chore/adcp-sdk-17-beta

Conversation

@bokelley

@bokelley bokelley commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Migrates the repo to @adcp/[email protected], which pins the signed AdCP 3.3.0-beta.0 bundle and keeps the stable 3.2.7, 3.1.29 and 3.0.25 bundles. @adcp/reporting-storage moves to 0.2.1-beta.0.

Dependencies

  • @adcp/sdk 16.3.0 → 17.0.0-beta.0 (exact pin).
  • @adcp/reporting-storage 0.1.0 → 0.2.1-beta.0. 0.1.0 declares @adcp/sdk ^16.0.0, so the tree was invalid. The adcp-client release train had already published 0.2.1-beta.0 on the beta tag, with peer ^17.0.0-beta.0, alongside SDK 17. No new storage release was needed. Its source is identical to 0.2.0, and the only 0.1.0 → 0.2.0 change is BigQuery sink location discovery, which this repo doesn't use. No overrides. npm ls is clean and npm audit --omit=dev finds 0 vulnerabilities.

Breaking-change handling

  • StoryboardResult.fixture_preparation (TS2345). SDK 16.5+ declares a native fixture_preparation?: StoryboardPhaseResult. The catalog runner's private audit record stamped a repo-shaped { disposition, phase }. It now forwards the native producer phase, filled from this invocation's preparation when the SDK didn't stamp it, and drops disposition; nothing read it. The public fallback for results without producer records now uses the native fields too (fixture_resolutions + fixture_preparation). It strips protected __adcp_fixture_ captures from step contexts, as the SDK does. The old fallback put the raw phase into a per-record failure.phase. New test: server/tests/unit/catalog-reporting-audit-evidence.test.ts.
  • HTML-markup formats → display_tag (adcp#8339). No changes were needed here. feat(creative): project HTML-markup legacy formats to display_tag inline markup #8357 had already moved the reference catalog, creative agent, docs and vectors to display_tag inline markup, and every html5 fixture or storyboard in the repo is a real zip bundle. I ran SDK 17's own projection against static/test-vectors/html-markup-legacy-projection.json: all product-projection vectors and 5 of 6 selection vectors agree. The sized-markup case differs because SDK 17 also carries the 3.3 rendered width/height on the legacy html asset (filed upstream, below).
  • Exact advertised-preview negotiation. A prerelease-pinned request is now refused unless the seller lists that exact prerelease. hosted-route-storyboard.test.ts pinned the 3.2.0-rc.7 bundle against a fixture seller advertising only 3.2. The fixture now advertises 3.2-rc.7 too.
  • Discovery failures are terminal (SDK 16.5, adcp-client#3392). evaluator-allowlist-runner.test.cjs now expects a terminal discovery_failed grade instead of a not_applicable skip. The security intent (no requests, no traffic, no credit) is unchanged.
  • Failed-preparation result shape (SDK 16.5). The full-run synthetic step now names the failing producer task and carries the fixture_capture_unbuildable validation, and native resolutions carry the detail. optional-product-reporting.test.cjs asserts the native evidence.
  • Routed requires: [multi_agent] storyboards (storyboard harness). The local runner points TRAINING_AGENT_URL at its http loopback for these runs, so the advertised identity.brand_json_url became http://…. That is schema-invalid in 3.2+ (^https://), and SDK 16.5+ fails discovery for capability-gated storyboards on invalid capabilities. All the required-exact routed governance storyboards (signal_marketplace, brand_rights, creative_transformers, media_buy_seller/governance_*) were failing. Fix: a harness-only TRAINING_AGENT_IDENTITY_URL keeps the public https identity during those runs (getIdentityBaseUrl()). Deployments never set it. webhook_emission keeps the loopback identity because it resolves webhook keys through it.
  • Buyer OAuth limiter in tests. SDK 17 opens about one more MCP session per new client (adcp-client#3444). That pushed training-buyer-oauth-postgres.test.ts past the per-IP 60/min buyer OAuth limiter, and the SDK reported the 429 as "Failed to discover MCP endpoint" (fixed upstream in adcp-client#3443). createTrainingAgentRouter({ disableRateLimit: true }) already turns off the router's request ceiling for test harnesses; it now also skips the buyer OAuth limiter. Production keeps it, and the unit test asserting the 429 still passes.
  • Training agent stays on 3.2. SDK 17 servers default unversioned callers to the 3.3 beta. The training agent already pins adcpVersion/supported_versions explicitly, so production behaviour is unchanged. sdk-runtime-compat.test.cjs now checks that the training agent tracks the SDK's newest stable bundle when the SDK's primary bundle is a prerelease.

Workarounds removed or updated

Version references

The repo now runs a beta SDK, but 3.2 users must not be told to install one:

  • choose-your-sdk.mdx: the production row and install/CLI commands move to the stable 16.5.0 (npm latest), paired with @adcp/reporting-storage 0.2.0. A new AdCP 3.3 beta support section states SDK 17.0.0-beta.0 support for 3.3.0-beta.0 in the form 3-3-beta.mdx requires: package, bundle, roles and transports, limits, install command, and a validation command I ran.
  • Addie C4 certification text → @adcp/[email protected]. CODE_VERSION 2026.10.13 → 2026.10.14.
  • tests/helpers/sdk-checkpoint.cjs encodes the rule. It is shared by sdk-runtime-compat, targeting-aware-discovery and certification-module-methodology, and fails when the stable pin goes stale.
  • SDK response-conformance baseline: the TypeScript probe was re-run under 17.0.0-beta.0 against the same 3.2.1 artifact. The full three-language matrix matches the reviewed baseline apart from the SDK version.
  • scripts/training-gcs-buyer.mjs records the installed LIBRARY_VERSION instead of a stale hard-coded 16.2.0.

Changeset: .changeset/known-limitations-sdk-17.md (adcontextprotocol patch). docs/reference/known-limitations.mdx is protocol release surface; everything else is app, test or tooling.

Verification

  • Storyboard matrix, 3.0-compat (--latest-3.0, bundle 3.0.28): every tenant meets its floors, with counts identical to main's latest CI run on SDK 16.3 (signals 24/97, sales 39/240, governance 27/146, creative 22/108, creative-builder 24/115, brand 23/79, si 21/75). No floor changes.

  • Storyboard matrix, current surface (candidate mode, 3.3-beta.0): CI (Training Agent Storyboards) is green, and every tenant's counts are identical to main's latest SDK 16.3 run: signals 55/137, sales 177/1211, governance 58/182, creative 61/249, creative-builder 67/244, brand 57/110, si 52/65, typed-negotiation and constrained-seller 1/20. Every required-clean and required-exact gate passes, including the routed multi_agent governance storyboards, which fail without the identity fix below. Locally, signals reproduced 55/137 before the matrix script's 100-minute timeout stopped the /sales isolation run. No floor changes on either surface. No size limits needed changing: the MCP schema byte budget, hosted response caps and the isolated runner's 4 GiB RSS envelope were all exercised by green suites.

  • npm run typecheck ✓; npm run build:compliance -- --check ✓; test:schemas ✓; test:unit ✓.

  • Every suite in npm test except server-unit and typecheck was run individually: 108/111 passed first time, and the 3 failures are fixed above. test:sdk-runner-capability-gates, test:optional-product-collections, test:sdk-shims, test:targeting-aware-discovery and test:sdk-response-conformance were re-run green after the fixes.

  • Server unit suite in 3 shards: 4732 + 3626 + 4911 passed. The 2 failures (identity33 it.fails, the hosted rc.7 fixture) are fixed above, and the affected files re-pass.

  • Server integration (the 47 files that touch the SDK, reporting storage, training agent or compliance) against local Postgres 16 with the CI role bootstrap and migrations: all pass. The CI shards cover the rest.

  • test:external-smoke against the public test agent: authenticated discovery and storyboard resolution passed; anonymous discovery reports auth-required.

  • The three-language SDK response-conformance matrix matches the baseline.

  • Full PR CI is green (64 pass, 1 skipped). One Canonical tests (2/4) run lost its runner to a shutdown signal mid-file and passed on re-run.

Upstream feedback (adcontextprotocol/adcp-client)

Item Link Status
Buyer client and storyboard runner fabricate media_buy_status: completed from the task status when a ≥3.1 seller omits the version echo. #3395 was closed but never fixed. issue #3432, PR #3439 merged
The SDK 17 migration guide doesn't name the matching @adcp/reporting-storage release; CLAUDE.md still describes SDK 16 pre-mode issue #3433, PR #3434 merged
Legacy projection failures don't say why (html5 vs display_tag, delivery type, size) issue #3437, PR #3438 merged
prepareStoryboardFixtures should apply storyboard root gates before seeding so hosts can pass the preparation authorizer through (#3389 follow-up) issue #3435 filed
Legacy HTML projection adds 3.3 width/height to html_creative; the AdCP vector expects only content (needs a protocol decision) issue #3436 filed
comply() reports an unadvertised preview pin as "controller unavailable" instead of a version mismatch issue #3441 filed
MCP endpoint discovery reports HTTP 429 as "None responded to MCP protocol" with a wrong-path hint issue #3442, PR #3443 merged
SDK 17 opens about one extra MCP session per new client call compared with 16.3 (request traces attached) issue #3444 filed

Also filed here: #8487, the training agent serving the 3.3 installments field on 3.2 list_products. Found while running the choose-your-SDK CLI examples; it predates this bump.

🤖 Generated with Claude Code

bokelley and others added 3 commits October 25, 2026 20:11
Move to @adcp/sdk 17.0.0-beta.0, which pins the signed AdCP 3.3.0-beta.0
bundle and retains stable 3.2.7, 3.1.29 and 3.0.25 bundles. Move
@adcp/reporting-storage to 0.2.1-beta.0, the beta-train release whose peer
range accepts SDK 17 (0.1.0 requires ^16.0.0 and left the tree invalid).

- catalog runner: forward the SDK-native fixture_preparation phase in the
  private audit record instead of a repo-shaped {disposition, phase}. The
  supplied-hook refusal stays: SDK 16.5 added the preparation authorizer
  (#3389), but this adapter's capability preflight still precedes it
  (adcp-client#3435).
- learner and production guidance names the stable SDK on npm latest
  (16.5.0); the choose-your-SDK page states SDK 17 beta support for the 3.3
  beta. tests/helpers/sdk-checkpoint.cjs encodes the rule.
- tests: discovery failure is terminal since SDK 16.5 (adcp-client#3392);
  context_key is echoed (#3396); the identity33 house-authority fix shipped
  (#3388); a prerelease pin needs the exact advertised preview.
- SDK response-conformance baseline re-recorded under 17.0.0-beta.0 with
  identical evidence apart from the version.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…native

- Routed requires: [multi_agent] storyboards: the runner's http loopback
  made identity.brand_json_url schema-invalid (3.2+ needs https), and SDK
  16.5+ fails discovery for capability-gated storyboards on invalid
  capabilities. A harness-only TRAINING_AGENT_IDENTITY_URL keeps the public
  https identity for those runs; deployments never set it.
- Catalog runner: when a native result omits producer records, fill the
  SDK-native fixture_resolutions and fixture_preparation (protected captures
  stripped) instead of a repo-shaped per-record failure.
- Reporting tests assert SDK 16.5+ native failed-preparation evidence.
- Known limitations: SDK #3395 is fixed upstream by adcp-client#3439, not
  yet released.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 25, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ladon verdict: Approve

Approve — clean SDK migration to @adcp/sdk 17.0.0-beta.0 (AdCP 3.3 beta).

No blocking or medium findings. Verified against the decision table:

  • Row 1 (critical/high): no findings — N/A.
  • Row 2 (gated_paths): gated_paths is false — N/A despite review_decision=REVIEW_REQUIRED.
  • Row 3 (deleted high-risk): high-risk reasons are all (modified) — no deletions.
  • Row 4 (medium data-loss/schema/infra): no medium findings — N/A.
  • Row 5 (modified high-risk + medium): high_risk is true with (modified) entries, but no medium findings — N/A.
  • Rows 6–8: no prior decision, no author team gate, zero medium findings — N/A.
  • Row 9: approve.

Reviewer confirmed: no protocol schema source, dist artifact, or oneOf changes; PR is based on main (beta line), not 3.1.x, so patch-eligibility rules don't apply. The one protocol-surface file (docs/reference/known-limitations.mdx, a limitations clarification) is correctly covered by the adcontextprotocol patch changeset. catalog-reporting-runner.ts adopts SDK-native fixture_preparation evidence with private (unredacted) and public (redacted via publicPreparationPhase) paths, both covered by tests. run-storyboards.ts env swap restores inside try/catch (no leak). sdk-checkpoint.cjs enforces the stable-vs-prerelease invariant.

The high_risk flag fired only on modified files with no medium-or-higher concerns, which per the arbiter guidance is presumed safe — not escalation-worthy on the flag alone. No breaking-class protocol change present.

… the buyer OAuth limiter

SDK 17 opens more MCP sessions per client, which pushed the buyer OAuth
integration test's loopback traffic past the per-IP 60/min buyer limiter.
createTrainingAgentRouter({ disableRateLimit: true }) now also skips that
limiter; production keeps it (default on, unit-tested).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ladon verdict: Approve

Approve.

Threads the existing disableRateLimit router option through to the buyer OAuth middleware via a new options: { rateLimit?: boolean } parameter, letting test harnesses bypass the per-IP OAuth limiter (60/min). Default is fail-closed: production createTrainingAgentRouter() omits the option, so rateLimit resolves true and options.rateLimit !== false keeps the limiter on (buyer-oauth.ts:21). Every caller passing disableRateLimit: true is a test or manual harness.

Checked: no critical/high findings; no spec drift, changeset scope, oneOf, or released-artifact concerns raised. The high_risk flag is driven only by (modified) entries under docs/reference/** and server/src/addie/**, and the reviewer surfaced no medium-or-higher concerns on those files, so the modification is presumed safe. No no-auto-approve team match, gated_paths is false, and no breaking-class change. Fewer than three medium findings (zero), so rows 1–8 do not fire; falls through to row 9.

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.

1 participant