Repository navigation
chore(deps): bump @adcp/sdk to 17.0.0-beta.27 and pin hosted prerelease discovery - #9021
Merged
Merged
Conversation
@adcp/sdk 17.0.0-beta.23 and later send capability discovery unpinned when the run's pin is a prerelease, then profile whatever the agent serves unpinned (adcp-client#3715). A conformant agent serves a prerelease only to an exact pin, so hosted grading of a 3.3 prerelease bundle profiled the agent's stable surface and skipped every capability-gated 3.3 storyboard. Move the prerelease-only rule from the local storyboard runner into a shared helper, prereleaseDiscoveryEnvelope(), and apply it in the hosted comply, storyboard and test option builders: an exact prerelease target sends discovery with an explicit `auto` envelope. Stable targets (3.0, 3.1, 3.2) and line-alias targets, whose wire pin is stable, keep the SDK default, including its unpinned and major-only discovery fallbacks. A caller-supplied envelope still wins. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move the application dependency to the exact published @adcp/sdk 17.0.0-beta.27 (npm beta tag). It brings adcp-client#3699 to hosted grading: a declined root capability gate now grades not_applicable on AdCP 3.1.24+ bundles, as it already did from 3.2, so a 3.1 media-buy seller's declined optional scenarios stop capping its bundles (#8534). It also adds resolvePublisherSigningKeyPin (adcp-client#3713) and still bundles signed 3.3.0-beta.6, so the hosted preview is unchanged. The docs and the response-conformance baseline name the new SDK; the re-captured evidence (TypeScript, Python, Go) matches the reviewed findings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean SDK bump with a safe refactor extraction.
This PR bumps the SDK from 17.0.0-beta.26 → beta.27 (package.json/lock, two docs version strings, conformance baseline recording) and extracts a shared prereleaseDiscoveryEnvelope() helper wired into the three hosted option builders.
Checks performed:
- Envelope precedence (
input.wireAdcpVersion ?? hostedStableLineAlias ?? resolved.version) matches the wire pin each builder sends: exact prerelease → 'auto', line-alias and stable → undefined (SDK default fallbacks preserved). - Regex broadening from beta/rc-only to any prerelease identifier is more correct, not a regression.
- Tests cover both option-level and wire-level behavior.
- No protocol schema (
static/schemas/source/**) or normative docs (docs/reference/**) touched, so no changeset required — consistent with the #9018 precedent.
No Critical/High/Medium findings. high_risk is false, gated_paths is false, no no-auto-approve team match. Decision table rows 1–8 do not fire; falls through to row 9.
Note: review_decision is REVIEW_REQUIRED, but gated_paths is false so row 2 does not apply.
…le (#8534) The #8534 tripwire fired as designed on the SDK bump: 17.0.0-beta.27 (adcp-client#3699) applies the capability rollup from 3.1.24, so on the issue's 3.1.29 bundle the declined wholesale bundles grade not_applicable and the media-buy protocol bundle passes. Only the runner gaps stay incomplete, and the issue run reaches Strict once they close, as the 3.2.10 run already did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Two follow-ups to #9018:
@adcp/sdkmoves from17.0.0-beta.26to17.0.0-beta.27(npmbetatag). This brings adcp-client#3699 to hosted grading for Strict Spec grading unreachable for media-buy sellers: runner-skipped storyboards count as incomplete bundles #8534.1. Hosted prerelease discovery pin
Problem. From beta.23, the SDK sends capability discovery unpinned when the run's pin is a prerelease. It then profiles whatever the agent serves unpinned. A conformant agent serves a prerelease only to an exact pin, so hosted grading of a 3.3 prerelease bundle profiled the agent's stable surface. Every capability-gated 3.3 storyboard (holds, account requests, reporting subscriptions, the new
any_ofgates) was skipped ascapability_unsupported.Change.
prereleaseDiscoveryEnvelope()inserver/src/compliance/prerelease-discovery-envelope.ts, returns'auto'for a prerelease wire pin andundefinedotherwise.server/tests/manual/run-storyboards.ts) now uses this helper instead of its inline rule from chore(deps): bump @adcp/sdk to 17.0.0-beta.26 for hosted grading #9018.hosted-compliance-version.tsapply it to the effective wire pin. The effective pin is the caller'swireAdcpVersion, else the stable-line alias, else the resolved version. The builders are:withHostedComplianceRunOptions(comply());withHostedStoryboardRunOptions(single storyboard and step re-runs);withHostedTestOptions(probes).3.3.0-beta.6send discovery with an explicitautoenvelope.major-onlydiscovery fallbacks for third-party agents.versionEnvelopealways wins.The table shows the built
dist/services/hosted-compliance-version.js:3.03.13.23.3.0-beta.6auto/auto/autoTests.
hosted-compliance-version.test.ts, option level:hosted-prerelease-discovery-pin.test.ts, wire level, against the training agent, whose 3.3 preview is served to exact pins only:3.3.0-beta.6target profiles3.3-beta.6and seesmedia_buy.hold_policy;3.2target profiles3.2.3.2.2.
@adcp/sdk17.0.0-beta.27buildComplianceBundleResultsnow grades a declined root capability gate asnot_applicableon AdCP 3.1.24 and later 3.1 bundles, as it already did from 3.2. A 3.1 media-buy seller's declined optional scenarios no longer cap itsmedia-buyandwholesale_feed_*bundles. This is the change that brings docs(reference/migration): fix url_type tracking_pixel → role: impression_tracker in creatives.mdx #3699 to hosted grading for Strict Spec grading unreachable for media-buy sellers: runner-skipped storyboards count as incomplete bundles #8534.resolvePublisherSigningKeyPin()computes a publisher'ssigning_keyspin under the 3.3 multiple-match rule (adcp#9016).AuthorizedAgentgains optionalsigning_keys,countries,effective_fromandeffective_until. No existing SDK behaviour changes.3.3.0-beta.6, so the hosted preview pin is unchanged.package.jsonwas the only file that pinned the SDK;package-lock.jsonis regenerated with only the@adcp/sdkentry changed. The choose-your-SDK table, the creative33 sandbox note and the SDK response-conformance baseline name the new version. None of these is protocol-scoped, so there is no changeset.Verification
tsc --noEmit: clean.node tests/schema-validation.test.cjs: passed.test:sdk-runner-capability-gates,test:version-envelope,test:sdk-shims,test:run-storyboards-schema-root,test:test-dynamic-imports,test:sdk-response-conformance: all pass.scripts/smoke-hosted-compliance-runtime.mjs(against the built tree): passed for 70 published versions.check-published-compliance-versions.cjs: current.webhook-emission.yamlwarnings for bundles 3.0.0 to 3.0.12 were already there and are unchanged./signals/sales/governance/creative/creative-builder/brand/siResult:
✓ All tenants meet floors.All 45 required-clean and required-exact storyboards pass. Every count matches the beta.26 run in #9018.#8534 tripwire (expected).
verification-profile-request-signing.test.tsasserted that 3.1.29 declined capability gates staypartialuntil adcp-client#3699 shipped, and it failed on this bump as designed. I updated it as its comment instructed:wholesale_feed_*bundles now gradenot_applicableandprotocol:media-buypasses.webhook-emission,webhook-receiver-envelopeandidempotency.🤖 Generated with Claude Code