Repository navigation
Version Packages - #8069
Version Packages#8069
Conversation
|
Ladon does not review bot-authored PRs. |
032da87 to
3c9d385
Compare
3c9d385 to
2849a9a
Compare
2849a9a to
98da9c4
Compare
bokelley
left a comment
There was a problem hiding this comment.
Reviewed final generated head 98da9c4 for the authorized maintained-line release. Its sole parent is producer 933ea92; its tree exactly matches release merge f4d53b8. Package and lock identify 3.1.28, with only patch changesets consumed and expected release/index/changelog generation. All four corrected storyboard source files, both generated compliance copies, and the signed candidate archive match the independently reviewed bytes. Archive SHA256: 024d5b44e402ebf79d05dc1c99855f3ad892554e97990f809eed07e1cc951e99. Cosign verifies the maintained 3.1.x release workflow identity and GitHub OIDC issuer; producer run 38924515216 succeeded. Schema comparison against 3.1.24 preserves prior URL acceptance and introduces no required-field/dependency or validation-annotation change. Final build, integration, analysis and policy checks passed. This review authorizes only this exact committed signed tuple through the normal publication/recovery gates; no rebuilding, re-signing, alias changes, or authority bypass. Review prepared with delegated coding-agent assistance.
…main Merge the published v3.1.29 maintenance release (tag v3.1.29, f082c7a, the adcontextprotocol#8247 Version Packages merge on 3.1.x) into main as a record-only merge. v3.1.29 descends from v3.1.28 (f4d53b8, adcontextprotocol#8069), so both releases' records come in. The merge keeps main's tree (ours strategy) and adds only: - dist/schemas/3.1.28/, dist/schemas/3.1.29/, dist/compliance/3.1.28/, dist/compliance/3.1.29/ and the signed dist/protocol/3.1.28.tgz* and 3.1.29.tgz* tuples, byte-identical to the tag. - CHANGELOG.md: the 3.1.29 and 3.1.28 blocks, verbatim from the tag, above main's 3.1.27 block. - dist/schemas/index.json: regenerated by build:schemas; v3.1 and latest_by_minor 3.1 now 3.1.29. latest.json is unchanged (3.2.5). The 3.1.27..3.1.29 source changes (adcontextprotocol#7907, adcontextprotocol#8020, adcontextprotocol#8234, adcontextprotocol#8237, adcontextprotocol#8245) are 3.1-line adaptations of fixes main already carries in its own form (adcontextprotocol#7580, adcontextprotocol#7583, adcontextprotocol#7617, adcontextprotocol#8235; main's root request-signing vectors are already unpadded base64url), so no 3.1.x source, tests or tooling are taken. The second parent records that reconciliation so the next 3.1.x forward merge starts from v3.1.29. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to 3.1.x, this PR will be updated.
Releases
[email protected]
Patch Changes
2803498: Grade inline creative format paths against the representation the seller actually publishes, and give the provenance scenarios seeded products and formats their probes can resolve.
The
inline_creatives_without_synchalf of this entry is SUPERSEDED within this same release. Everything below about that storyboard — three routes, per-route optional discovery phases, thefield_absentguard, and "verified green on 9.6.2" — describes a shape that was replaced before publication by a single canonical discovery with four context-guarded paths — three mutually exclusive canonical ones plus an independent legacy one. See "Giveinline_creatives_without_syncone canonical discovery and three exclusive canonical paths" in this entry for what actually ships and for the verified runner floor; in particular the shipped storyboard requires a runner that evaluatesskip_ifagainst captured context, so 9.6.2 is not supported. The provenance-fixture half of this entry is unaffected and stands.inline_creatives_without_syncpreviously required every seller to satisfy both the canonicalformat_options[]path and the legacyformat_ids[]path, so canonical-only and legacy-only sellers failed on a representation they are not required to publish. There are three routes, not two: the named canonical path (format_option_refs[]), an unnamed canonical path for products whoseformat_options[]entries publish no selectableformat_option_id, and the legacyformat_ids[]path. The unnamed route omits every package selector and carriesformat_kindalone on the creative —creative-asset.json's 3.1 arm requires onlyformat_kind,format_option_refis "optional whenformat_kindalone routes the creative to a single declaration", andpackage-request.jsonrequires onlyproduct_id/budget/pricing_option_id. It is captured by its own discovery probe (captures are per step, not per key, so folding it into the named probe would discard it for exactly the sellers it serves) and is gated twice so a selector-less purchase can never reach a named catalog: a phase-levelskip_ifon runners that read context, and afield_absentcheck onproducts[0].format_options[0].format_option_idin its own discovery probe for runners that do not — a named product fails that probe, so its captures are never promoted and the route cannot fire. This matters because a product with severalformat_options[]entries sharing oneformat_kindgenuinely requires aformat_option_ref, and a correct seller rejects a package without one. A seller publishingformat_option_idis therefore graded once, on the named route. This closes the last applicability gap:format_option_idis a SHOULD, and a product that omits it is no longer failed.Each route opens with its own optional discovery phase that captures the product, the pricing option, and that path's format representation from one
get_productsresponse — the same response the path then buys from, so the signal that decides whether a path runs and the product it buys are one observation rather than two that can disagree. A representation the product does not advertise does not resolve, and the path skips instead of projecting one.What this does not relax. If a path's discovery observes a representation, that path is graded on it. Both path phases are non-optional, so a create, update, or replacement-readback failure on an observed path fails the storyboard even when the other path passes — unchanged from the previous behavior. A closing
assert_contributionrequires at least one path to reach the replacement readback and see the replacement creative oncreative_approvals, so a run in which both paths skip still cannot pass.Known reporting wart, pending an SDK release. A conformant canonical-only or legacy-only seller leaves one deliberately non-gating failed step — the optional discovery probe for the representation it does not publish. The runner and the
adcpCLI both treat the run as green (overall_passed: true, exit 0), but--format junitemits<testsuites failures="1">against<testsuite failures="0">, so a pipeline gating on the JUnit aggregate rather than the exit code goes red. The fix is in@adcp/sdk(an additiveStoryboardStepResult.counts_toward_failure: falseon deliberately-optional failures; required OAuth and step assertions keep failing CI) and lands with that SDK release — no storyboard change can avoid it. Gate on the CLI exit code until then.Scope of the gate, and a known limit. Each path is gated on
products[0]of its own discovery call. A representation published only on other products is not graded unless the first product matched to this brief carries it, so rank a product carrying the representation first for this brief or publish it on every product that matches. Both discovery calls send the same brief and filters and sellers are expected to answer them consistently, but nothing cross-checks that: a seller that withholds a representation from the call that would gate it is simply not graded on that path. No capability field declares which format representations a seller emits, so the storyboard cannot verify the claim today; closing this needs either such a capability or a runner that can gate on more thanproducts[0].Two further limits are deliberate. A schema-invalid discovery response takes its whole path out of grading. Captures are applied per step, not per key: when one fails the runner discards all of that step's captures, so the gate sees nothing and skips the path, and because the discovery phase is optional its own
response_schemafailure is swallowed too. An advertised-but-invalid path can therefore disappear while the other path carries the run. This is the price of letting a genuinely absent representation skip without failing a conformant seller — the two are indistinguishable from the captures alone.get_productsschema conformance is still graded on its own viafull_sales_flow.The three provenance scenarios (
provenance_enforcement,provenance_audit_observation,provenance_truth_of_claim) seeded products that omitted the requiredpublisher_properties,reporting_capabilities, and format declarations, and their creative probes referenceddisplay_300x250onyour-platform.example.com, which nothing seeded — so a seller that correctly rejects an unknown format failed the scenario for being right. Each now seeds a schema-valid product plus a fixture-local legacy format declaring theimage,headline, andclick_urlassets its probes submit, and every probe references that seeded format. The fixed-CPM pricing option also moves fromratetofixed_price;ratevalidated only because the pricing option allows additional properties, and the option was being read as auction-based.Action required for seeding sellers. These three scenarios now declare a
fixtures.creative_formatsblock, soseed_creative_formatjoinsseed_productandseed_pricing_optionas a requiredcomply_test_controllerscenario for them. A seller whoselist_scenariosdoes not advertiseseed_creative_formatwill see all three gradenot_applicable(fixture_seed_unsupported) instead of running — the runner skips the whole storyboard rather than seeding partially. Advertiseseed_creative_formatto keep coverage.933ea92: Give
inline_creatives_without_syncone canonical discovery and three exclusive canonical paths, so each format-option shape is graded on the selector it actually publishes.The previous shape used a discovery probe per representation. Independent probes see independent
get_productsresponses, so a seller whose brief ranking differs between calls could satisfy neither probe and fail with no path executed, and a product-local reference was emitted unconditionally.format-option-ref.json's product-local arm setspublisher_domain: false, so a publisher-catalog-backed declaration sent withscope: "product"is schema-invalid, not merely unresolvable — a conformant publisher-backed seller was failed outright.One canonical discovery now captures
products[0].format_options[0]as a whole declaration alongside the product and pricing option. Three mutually exclusive, exhaustive guards route it: unnamed (format_kindalone, no selector), product-local (scope: "product"), and publisher-catalog (scope: "publisher"withpublisher_domain). The gate and the buy are one observation, so reordered or changed discovery results cannot produce a false failure. Each reference is the captured declaration with a scope constant injected throughcontext_inputs, which deep-clones the request, so the stored context is never mutated.Legacy discovery deliberately does not narrow by canonical kind. A non-projectable legacy format has no canonical projection and accepts no kind, so a seller honouring such a filter would exclude itself and lose the only path it can be graded on — exactly the legacy-only population this scenario serves. On 3.1 neither probe narrows, because this line's
product-filters.jsondefines no canonical-kind filter; asset applicability is stated in the narrative instead. The buyer submits a 300x250 image, so rank a product whose first format option accepts that creative for this brief.Required execution, readback and the final contribution assertion remain fatal: once a path's discovery observes its shape, a create, update or replacement-readback failure there fails the storyboard even when another path passes.
Runner floor. These guards read captured context in
skip_if. Verified with@adcp/sdk15.8.1 (the hosted grader's version) and 15.9.2, and verified absent in 9.6.2. 15.8.1 was checked against the published registry tarball — compiled-source anchors plus public-APIrunStoryboardreproductions covering all three canonical shapes, an absent declaration, the scope-only no-mutation boundary, and the failed-discovery capture suppression the kind detector depends on. This does not establish 15.8.1 as the earliest supporting release; versions in between were not tested. This does not raise the floor above 15.x —billing_out_of_band,evaluator_authandrefine_finalize_exclusivityalready ship context-readingskip_ifon 3.1.x — but it is the first storyboard on this line to dereference a nested field of a captured object, and the first to do so on non-optional phases, so it is a strictly stronger grammar requirement than that prior art. On a runner below the floor the scenario mis-executes rather than degrading politely: every canonical phase opens and the product-scoped path can emit a schema-invalid ref. The repository's production@adcp/sdkstays 9.6.2; the regression tests run against a private, dev-onlytests/sdk-runnerhelper that pins 15.9.2 and is absent from every published artifact.Also narrows the sample-request linter's object placeholder so a discriminated union written as
{ type, discriminator, oneOf }(core/format-option-ref.json) synthesises a tagged placeholder instead of{}. The descent happens only when the resolved node declares noproperties, so refs whose variants differ — account natural keys,sandboxbooleans — keep their own shape and the allowlist does not grow.The canonical discovery also asserts
format_kind: imageonproducts[0].format_options[0]. This is a mismatch detector, not a selector: the fixture's creative is a fixed 300x250 image, so a first declaration of another kind fails the optional probe, its captures are never promoted, and all three canonical lanes stand down rather than buying an image under — say — a video declaration. A dual-emitting seller is then graded on legacy alone, with its canonical support ungraded; a canonical-only seller whose first declaration is not an image completes no path and fails the closing coverage assertion with zero buys. Selecting a matching declaration out of the catalog, independently of the order the seller returns it in, remains out of scope.003d238: Stop the universal read-tool idempotency storyboard from sending a creative-only
typefilter to media-buy agents on 3.1.x.733df5e: Fix webhook-emission compliance setup to discover and bind a real product and
pricing option before create_media_buy, waiting for asynchronous discovery to
complete when needed. Replace unresolved test-kit schema
references with explicit request and response schema paths and complete the
trigger samples so conformance validation cannot silently skip these requests.
733df5e: Give all 37 routed request-signing conformance vectors operation-valid bodies so payload parsing can reach the signature verifier. Preserve every intended negative outcome, capability, URL and signature parameter. Recompute truthful digests and test signatures only for the two body-bound fixtures using the existing published fixture key and maintained wire encoding; no signing policy or release assets change (Backport #7580, #7583 and #7617 to 3.1.x: 3.1.25 still ships the defective signing vectors and webhook_emission storyboard #7959, Request-signing conformance vectors carry schema-invalid bodies, making grading depend on verifier check order #7567).