Repository navigation
fix(training-agent): check format_option_ref on update_media_buy - #9005
Conversation
The /sales training agent accepted a manifest without format_option_ref on a product that declares its format_kind two or more times. On sync_creatives it created and assigned the manifest. On create_media_buy it counted the package's selection, so a package that selected one option through format_option_refs let an inline or assigned manifest through. Reject that manifest with format_option_ref_required on both paths, counting the target product's format_options. The assignment-operations test creatives now name the catalog display product's 300x250 option, since that product declares several image options. Refs adcontextprotocol#8625
…ormat_option_ref The product-scoped and publisher-scoped paths sent inline creatives with format_kind alone, to a product that can declare several options of that kind. Each creative now carries the captured declaration as its format_option_ref, as the package's format_option_refs already does, with scope injected through context_inputs.
update_media_buy now applies the adcp#8625 routing rule that adcontextprotocol#8991 added to sync_creatives and create_media_buy. When two or more of the target product's format_options share a format_kind, a manifest without format_option_ref or format_id is rejected with format_option_ref_required. Covered: inline creatives and creative_assignments on packages[], and inline creatives and creative_assignments on new_packages[]. Stored assignments on a targeting-only package update are not re-checked. The packages[] assignment check now reads the library as this update leaves it, so an inline re-send that adds format_option_ref is accepted.
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Extends the format_option_ref routing check (from #8625/#8991) to update_media_buy across all four manifest paths. Reviewer verified:
missingFormatOptionRefViolation(task-handlers.ts L20-38) correctly counts product declarations viaproductCanonicalFormatOptions, exempts legacyformat_idand already-routed manifests, and gates onsameKind.length < 2.new_packagesindex mapping (L179-181) is sound —inlineCreativeAssignmentRowsmaps 1:1 with no filtering;productstays in scope.- Error field paths (
.format_option_refappends) match all four test expectations. - The
session→creativeValidationSessionmanifest-read change (L131) is the deliberate, tested fix allowing an inline re-send adding the ref to validate as sent. - Changeset present and
patch-appropriate — codifies existing canonical-formats routing ruling, no schema change. Compliance scenario yaml updated coherently. 38/38 file tests pass.
No Critical/High/Medium findings. No schema changes, so no schema↔docs coherence or oneOf concerns apply. The acknowledged pre-existing new_packages product-check gap is out of scope per the author.
Gate checks: gated_paths false; no no-auto-approve team match; high_risk false; no prior decision. review_decision is REVIEW_REQUIRED but that does not block approval since no gated paths or prose hard gate applies here (non-breaking clarification, no static/schemas/source/** edits). Falls through to row 9.
…ormat_option_ref (#9036) #8986 added 'refuses installment-scoped assignments' while #9005 was open. #9005 then made the training agent require format_option_ref for products whose format_options share a format_kind, so the test's setup assign of hero_v1 is now rejected with format_option_ref_required and the final approvals assertion sees []. Each PR was green on its own; main has failed this test since #9005 merged. Pass the package's formatOptionId like the rest of the file does. Co-authored-by: Claude Opus 5.5 <[email protected]>
…s into the rc.0 docs #8989 renames three experimental values to their counterparts' spelling, with no alias: input_required to input-required (execution_readiness), click_through to clickthrough (live_updates), underdelivery to under_delivery (delivery_projection). Add a migration section with the old and new spellings, checklist row 59, a release- notes behavior change, a What's new bullet, and a "Renamed in rc.0" row on the prerelease page, and fix the two input_required spellings that the rebase kept from this branch. #9007 lets campaign governance accept a sync_plans plan that omits human_review_required, and states two sync_plans rules: checklist row 60, a release-notes bullet, and a What's new sentence. Every changeset pending for rc.0 is now in the rc.0 rows and notes, including the compliance gates #9013 and #9005 and #9018's beta.6 test-agent preview. Choose your SDK takes main's @adcp/sdk 17.0.0-beta.28. The in-review table moves to 2026-11-16: #8998 closed (#9013), and #8987 is new. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* docs(reference): bring the 3.3 release docs to 3.3.0-rc.0 Bring the release notes, What's new, the 3.2 to 3.3 migration guide, the prerelease program page, Versions, and the 3.3 rows of Choose your SDK to the first release candidate. The prerelease page keeps its 3-3-beta URL and is retitled, as the 3.2 page was at its RC. rc.0 joins the checkpoint and wire-pin tables with the 3.3-rc documentation selector. Cover the 2026-11-09 decision to open the schemas that were closed by accident, and the #8501 triage that followed it: which beta fields stay in 3.3, which leave because they sit on deprecated tasks or would change a signed term, and which move. The migration guide lists every field; the other pages summarize it. Record boolean overlay demographics as deprecated. Leave the lines that #8866 rewrites alone, and fix the "closed schemas stay closed" wording it does not touch: the Send-only-to-3.3-peers intro and proposal-flow correction in the 3.2 to 3.3 guide, the 3.1 to 3.2 guide, optimization reporting, and the daily-budget spec. Describe deprecated 3.3 features as expected to be removed in 4.0, with 3.3 supported for a window after 4.0 GA, instead of the six-month notice promise. Record @adcp/sdk 17.0.0-beta.22 and Python adcp 10.0.0b15 on beta.5, Python adcp 9.6.2 with the A2A input fix on the 3.2 line, no SDK on rc.0 yet, and no Go or Java support for 3.3. Content that depends on unmerged PRs or on the rc.0 cut carries a {/* depends on ... */} marker (HTML comment in the spec markdown) so it can be re-checked before the cut. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): state the 12-month 3.3 support window after 4.0 GA Replace "length to be confirmed" in the 3.2 to 3.3 Deprecations intro with the decided window: 3.3 stays supported for at least 12 months after 4.0 GA. Point the marker at #8858, which carries the policy change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe the commercial terms as held closed until 4.0 Konstantin's review of #8866 rejects signed commercial terms as a structural reason to keep a schema closed: terms_digest covers open members at every depth, including ext. Describe the nodes inside commercial_terms, and proposal-budget-constraint, as held closed until 4.0 in the triage tables and summaries, the release notes, What's new, Versions, and the daily-budget spec, and drop the claim that the digest stops a 3.2 buyer from accepting a term it ignored. The triage reason is renamed from signed meaning to held closed until 4.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): prerelease pins, unpinned discovery, and anonymous capabilities A 3.3 beta reader pinned get_adcp_capabilities to 3.3-beta.5 against a 3.0-only seller, got VERSION_UNSUPPORTED, and never retried. State how each side avoids that (approved by Brian for the 3.3 RC docs): - Versioning, pre-release pins: a buyer MUST send a prerelease adcp_version only to a peer whose supported_versions lists that exact value, SHOULD discover unpinned, and SHOULD retry unpinned or at a listed version on VERSION_UNSUPPORTED, matching the existing retry SHOULD and the error code's recovery hint. Mirrored on the 3.3 prerelease page. - Authentication: a seller SHOULD serve get_adcp_capabilities without credentials; a SHOULD in 3.3 and a MUST in 4.0. - MCP guide: a gateway that allow-lists JSON-RPC methods SHOULD let server/discover, initialize, and tools/list through without credentials. - Release docs: a migration-guide section with buyer and seller checklist rows, a What's new and release-notes bullet, and the 4.0 item in v4-compatibility's not-yet-checked list. Docs only; no schema changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): follow #8866 and the other rc.0 merges in the 3.3 release docs After rebasing onto main with #8866 merged: - Take #8866's wording for the boolean form of demographics in the migration guide's Deprecations section, and align the release notes and What's new with it (#8778 tracks the 4.0 removal). - 3.2.10 shipped without the schema opening, so say "the next 3.2.x patch (#8864)" and "3.2.10 and earlier", including in #8866's Schemas-are-open-by-default bullet. - Drop the dependency markers #8866 satisfied, and retarget the rest. - Cover the other changes merged for rc.0: origin-only authorized_agents URLs (#8939), declared-option creative conformance (#8941), TMP cache isolation (#7446), creative.supports_registry_policy_enforcement (#8857), 3gp/mpeg/m4v containers (#8668), carousel card_image_sizes (#8937), and the loosened URL patterns (#8792). - Refresh the in-review table against the 3.3.0 milestone on 2026-11-12, and remove the stray duplicate table header it carried. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(sdk): keep the SDK matrix on the installed @adcp/sdk prerelease tests/sdk-runtime-compat.test.cjs requires Choose your SDK to name the @adcp/sdk prerelease this repository installs (17.0.0-beta.21), and no other 17.0.0 prerelease. Revert the TypeScript row and install command to beta.21 and drop the npm beta dist-tag label, which now points at beta.22. The release pages keep recording that beta.22 also bundles beta.5. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8858 and #8864 markers in the 3.3 release docs - #8858 merged: drop its markers on the 3.3 support window and the daily-budget spec. - #8864 merged into 3.2.x, so the schema opening ships in 3.2.11: say "3.2.11 (#8864)" instead of "the next 3.2.x patch", with one marker per page on the 3.2.11 release itself (Version Packages #8942). - target_audiences on list_products offer_filters is decided: it stays as it is in 3.3, and any change is 4.x, so media_buy.audience_evidence_targets has no 3.3 surface once the get_products and create_media_buy copies leave. - The available_installment_statuses move is a 3.3 RC item; its markers now point at c4777ebd's PR, and the release-notes installment_lifecycle row carries a marker to move to the canonical location when it lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): point the available_installment_statuses markers at #8957 Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8762 and #8957 markers in the 3.3 release docs #8762 (sla-window back to its 3.2 shape, business time on the creative review SLA) and #8957 (available_installment_statuses on the canonical reporting capabilities) merged; #8762's own release-doc lines arrive with the rebase. Drop both from the dependency markers, name the canonical product's reporting_capabilities in the release-notes media_buy.installment_lifecycle row, and refresh the #8501 row of the in-review table. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8758 markers in the 3.3 release docs #8758 merged: the get_products and sync_creatives assignments[] withdrawals and the execution_readiness move to list_products are in main. Drop it from the dependency markers, remove the #7659 note's marker, move it to merged in the in-review table, and say that the deprecated assignments[] row rejects trackers and landing_page_url by name, so a stale sender is rejected there. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8767 markers and describe the withdrawn surfaces #8758 and #8767 merged and handed their release-doc text to #8883. Drop #8767 from the dependency markers, and bring the lines that still described withdrawn surfaces as current in line with main: - media_buy.price_adjustments and media_buy.audience_evidence_targets are withdrawn at rc.0 and no longer registered (experimental table, feature index, What's new, migration guide). - execution_readiness is on list_products; lineage is on buy_products and accept_proposal; collection cards leave get_products; the creative start gate is set through control_media_buy; counting_mechanisms leaves measurement_terms; assignment trackers and landing pages stay only on sync_creatives assign operations. - Point the price-adjustment and target-audience links at the withdrawn sections; refresh the #8501 row of the in-review table. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): add the rc.0 installment experiments, with dependency markers Two experimental, capability-gated rc.0 items are in progress: installment selection through refine_proposals (media_buy.installment_refinement, (media_buy.installment_creative_assignment, #8968). Add them to the feature index, the experimental surfaces table, What's new, and the migration guide, each behind a marker until its PR merges. Note on every "installment selection withdrawn to 4.0" passage that 3.3 now covers the request side, while the signed purchases[].installments[] stays a 4.0 item. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): cover #8884's signed-terms acceptance rule in the rc.0 docs #8884 states that accepting signed commercial terms binds every member terms_digest covers, with UNRECOGNIZED_TERMS and the unrecognized_terms decline reason. Add it to the rc.0 checkpoint and feature index, the behavior changes, What's new, and the migration guide (a required-behavior section, checklist row 52, and its storyboard). Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe #8972, per-installment creative assignment, in the rc.0 docs #8968's PR is #8972: installment_refs on sync_creatives assign and replace operations, read back on get_media_buys and list_creatives, rejected by name on unassign and merge, VALIDATION_ERROR for a ref outside the bought installments and CREATIVE_DEADLINE_EXCEEDED past change_cutoff. Correct the RFC-based placeholder and point its markers at #8972. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe #8974, installment refinement, in the rc.0 docs refine_proposals, unsatisfied_installment_changes with a reason, the installment_changes value in proposal_refinement.supported_dimensions, and a seller answer that buys a product whose installments are the chosen set. Correct the RFC-based placeholder, link the new anchors, and point its markers at #8974. Drop the sentence in the 4.0 page's What stays in 3.3, which #8974 rewrites itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): cover #8793 and #8458 in the rc.0 docs #8793: Reliable Reporting managed delivery holds no buyer secret, row push is reporting_webhook, and the experimental https_put file_transfer transport. #8458: media_buy.supported_delivery_types. Add both to the rc.0 checkpoint and feature index, the behavior changes and the reporting_delivery experimental row, What's new, and the migration guide (an experimental notice and checklist rows 53 and 54), and mark #8149 as shipped in the in-review table. #8458's own optional-declaration lines are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the 3.2.11 markers 3.2.11 published on 2026-11-13 with the 3.2 schema opening (#8864), so the release pages' 3.2.11 statements no longer wait on it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8974 markers #8974 merged as a7af517. Drop its markers, and narrow the shared installment markers to #8972. The migration guide no longer says core/installment-change-set.json and the installment_changes dimension are gone: they leave after beta.1 and return in rc.0 under media_buy.installment_refinement. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe #8983, report definitions at contract_version 1.2, in the rc.0 docs #8983 (#8971) adds Reliable Reporting report-definition contract_version 1.2: a definition whose dimensions include media_buy_id must include package_id, account-level definitions are exempt, and callers pinned below 3.3 get 1.0 or 1.1 offerings. Add it to the release notes (checkpoint row, feature index, behavior change, experimental table), What's new, and the migration guide (checklist row 55 and a section), with markers until it merges. The checkpoint row also gains #8974 and #8972, which it was missing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8972 markers #8972 merged as e903ee6. Drop its markers and narrow the shared ones to #8983. The migration guide adds #8972's capability rule: buyers send installment_refs only to a seller that lists the feature id, and a seller without it rejects the field with UNSUPPORTED_FEATURE. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8983 markers #8983 merged as 39334ab. Drop its seven markers, and state the serving rule as a MUST everywhere it appears: a seller serves callers pinned below 3.3 only 1.0 or 1.1 report-definition offerings. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): add 3.3.0-beta.6 ahead of rc.0 beta.6 is cut on main today for SDK testing over the weekend, and rc.0 stays on Monday. Add beta.6 to the checkpoint, SDK-posture and version-string tables and to Versions, say rc.0 follows seven betas, and note that everything in "New in rc.0" first shipped in beta.6 except the prerelease-pin and anonymous-discovery guidance. beta.6's date carries a marker until it publishes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe #8966, display labels for geo targeting codes, in the beta.6 and rc.0 docs #8966 merged as aa94f36 and ships in beta.6. Add it to the beta.6 checkpoint row and the beta.6 and rc.0 feature index, to What's new (smaller additions), and to the migration guide: checklist row 56, a send-only-to-3.3-peers row for geo_value_labels, and a section under Adopt by capability. Labels never resolve or apply targeting, sellers never reject a request because they are present, and equality and readback compare codes only. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the beta.6 date markers 3.3.0-beta.6 published on 2026-11-13 (tag v3.3.0-beta.6 at bf4aa6d, from Version Packages #8801). The pages already give that date, so drop the four markers that held it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): describe #8995, social distribution identifier types, in the rc.0 docs #8995 (#8992) adds eight distribution-identifier-type values for Instagram, Facebook, Snapchat and X: a canonical ID and a handle alias for each, with handles compared as @ plus the lowercased name. It lands after beta.6, so add it to the rc.0 checkpoint rows, the feature index, What's new, and the migration guide's send-only enum values, with markers until it merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the #8995 markers and fold #8997 into the rc.0 docs #8995 merged as 15b0c46, identical to the version these pages describe, so its seven markers go. #8997 (declared sync_creatives assignment operations) merged after beta.6 with its own release-doc lines. The rebase kept this branch's side of the overlapping hunks, so restore #8997's text: its migration checklist row (now row 57, after this PR's rows 45 to 56), the release-notes Creative bullet, and the What's new adopter rows. Its migration and What's new sections and its behavior-change bullet came through unchanged. As post-beta.6 content, it joins the rc.0 rows and the "new in rc.0" notes. #8986 (training agent refuses installment_refs) is server-only with no changeset, so the rc.0 rows don't list it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): add #8970 and the other post-beta.6 merges to the rc.0 docs #8970 (merged as 145ba50) asks get_media_buy_delivery sellers to return at least one by_package row, one per package, and to omit a buy they can't report rather than return an empty by_package. by_package: [] stays valid in 3.x, and minItems: 1 is proposed for 4.0 in #8973. Add a behavior-change bullet, a What's new sentence, migration checklist row 58, and #8973 under v4-compatibility "Changes not checked yet". #8996, #9001 and #8934 also merged after beta.6. #8996 and #9001 wrote their own release-doc text, which came through the rebase unchanged. Add all four to the rc.0 rows and the "new in rc.0" notes, and split the release-notes feature index into a beta.6 bullet and an rc.0 bullet. Refresh the in-review table to 2026-11-14: #8149, #8107 and #8856 (merged as #8934) closed, #8943 has #9011, and #9014 and #8998 (#9013) are new. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): write #8854 up as in review, not in rc.0 #8854 (withdraw metric_id, restore evaluator as a deprecated x-entity value; #8501 entries 6 and 26) has not merged by Sunday 2026-11-15, with changes requested. Per the Sunday rule, describe it as in review and not in rc.0, and drop its eight markers. rc.0's schemas still carry metric_id on the canonical and legacy performance standards and on required_performance_standards, and still lack evaluator. The triage decision stands, so metric_id stays listed as leaving 3.3, with a note that the withdrawal is in review, and evaluator leaves the "stays in 3.3" lists. signing_profile is no longer part of #8854 and stays. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): take #9018's beta.6 SDKs and test-agent preview, and add #9011 and #9017 #9018 (6c34d90) bumped @adcp/sdk to 17.0.0-beta.26 and moved the public test agent's preview to 3.3-beta.6. The rebase kept this branch's side of the overlapping lines, so apply its facts here: 17.0.0-beta.21 to beta.23 and Python adcp 10.0.0b13 to 10.0.0b16 support beta.5, 17.0.0-beta.24 and later and 10.0.0b17 and later support beta.6, Choose your SDK names beta.26 and 10.0.0b17, the test agent serves 3.3-beta.6, and SDK-backed testing stays on beta.6 until an SDK bundles rc.0. #9011 and #9017 merged after beta.6 with their migration-guide text. When several authorized_agents entries match one agent, its scope is the union, and a signing_keys pin holds only if every matching entry pins. Add them to the rc.0 rows, the rc.0 feature index and What's new. The in-review table moves to 2026-11-15: #8943 and #9016 closed, and #9013 is out of draft. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): fold #8989, #9007 and the last post-beta.6 changesets into the rc.0 docs #8989 renames three experimental values to their counterparts' spelling, with no alias: input_required to input-required (execution_readiness), click_through to clickthrough (live_updates), underdelivery to under_delivery (delivery_projection). Add a migration section with the old and new spellings, checklist row 59, a release- notes behavior change, a What's new bullet, and a "Renamed in rc.0" row on the prerelease page, and fix the two input_required spellings that the rebase kept from this branch. #9007 lets campaign governance accept a sync_plans plan that omits human_review_required, and states two sync_plans rules: checklist row 60, a release-notes bullet, and a What's new sentence. Every changeset pending for rc.0 is now in the rc.0 rows and notes, including the compliance gates #9013 and #9005 and #9018's beta.6 test-agent preview. Choose your SDK takes main's @adcp/sdk 17.0.0-beta.28. The in-review table moves to 2026-11-16: #8998 closed (#9013), and #8987 is new. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(reference): resolve the rc.0-cut markers rc.0 is cut today, 2026-11-16, and the pages already give that date, so drop the five date markers. Write the three post-cut markers forward: SDK prereleases that adopt 3.3.0-rc.0 follow within days of the cut, Choose your SDK gains their rows when they publish, and the test-agent preview moves to rc.0 once an @adcp/sdk prerelease negotiates it. A follow-up PR on main adds the real versions after rc.0 publishes. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Follow-up to #8625, after #8991.
This branch is built on #8991, so until #8991 merges the diff here also shows its commits. The change in this PR is the last commit,
fix(training-agent): check format_option_ref on update_media_buy.Brian's ruling on #8625: when two or more of the target product's
format_optionsshare aformat_kind, a manifest withoutformat_option_refis rejected, and the count is the product's declarations. #8991 applies this tosync_creativesandcreate_media_buyon the /sales training agent.update_media_buyhad the same gap, and this PR closes it with the same helper and error shape.This PR rejects update requests the agent accepted before. See Newly rejected requests.
Paths covered
An
update_media_buymanifest with noformat_option_refand no legacyformat_id, whoseformat_kindappears two or more times in the product'sformat_options, getsformat_option_ref_requiredwith the matching option IDs asexpected:packages[].creatives: inline creatives that replace a package's creatives. The error field ispackages[<package_id>].creatives[<n>].format_option_ref.packages[].creative_assignments: library creatives assigned to an existing package. The error field ispackages[<package_id>].creative_assignments.format_option_ref.new_packages[].creatives: inline creatives on a package the update adds. The error field isnew_packages[<i>].creatives[<n>].format_option_ref.new_packages[].creative_assignments: library creatives assigned to a package the update adds. The error field isnew_packages[<i>].creative_assignments[<n>].format_option_ref.The
packages[]paths usevalidateAssignedCreative, which #8991 added: the routing check, then the existing product check.new_packages[]ran no product check before, so it getsmissingFormatOptionRefViolationalone. This PR does not add the product check thatcreate_media_buyruns on new packages. That gap is separate.Not covered:
packages[]update that changes only targeting. It doesn't route a manifest, so the package's stored assignments keep the product check alone and are not re-checked for the reference.update_media_buydon't run there either.One related fix: the
packages[]assignment check read each creative's manifest from the library as it was before the update. It now reads the library as the update leaves it. Without this, an inline re-send that addsformat_option_refto an unrouted library creative would be rejected on its old manifest.Newly rejected requests
On a 3.2 or later release line, the agent now rejects an
update_media_buyrequest that puts a manifest on a package, on any of the four paths above, if all of these are true:format_kindbut neitherformat_option_refnorformat_id.format_optionsof thatformat_kind.This holds even when the package selects a single option through
format_option_refs, because the count is the product's declarations. Before this PR, these requests were accepted:packages[]ran only the product check, which validates few kinds, andnew_packages[]ran no manifest check./sales catalog products declare several image options. For example,
pinnacle_news_display_standarddeclares five, so a 300x250 image manifest assigned to it withoutformat_option_refis now rejected throughupdate_media_buy, as it already is throughsync_creativesandcreate_media_buyafter #8991.The reason is the same as in #8991. The ruling forbids the seller from picking an option from the assets, and
update_media_buywas the remaining way to put an unrouted manifest on such a package.Storyboard compatibility
I checked every
update_media_buystep instatic/compliance/sourcethat sendscreativesorcreative_assignmentsonpackages[]ornew_packages[]. No storyboard step that runs against /sales today is rejected by this change:dependency_impairmentanddependency_impairment_cardinality: the assigned creatives carryformat_option_reffromsync_creatives. Both pass with this change.pending_creatives_to_start(assign_creative_to_package): it syncs aformat_kind-only creative and assigns it topinnacle_news_display_standard, so this change would reject the step. The storyboard requiresmedia_buy.creative_approval_mode: auto_approve, which the training agent doesn't declare, so it doesn't run on /sales (0 passed, 1 skipped, in fix(training-agent): count the product's declarations when routing a manifest #8991's CI and locally).inline_creatives_without_sync: the legacy path sendsformat_idand is exempt. On /sales the first product isplayfield_standard, which declares six image options, and its first declaration has a product-localformat_option_id, so only the product-scoped canonical path applies. Its update step (update_buy_with_replacement_product_scoped_inline_creative) sends aformat_kind-only manifest, and this change rejects it. Its create step (create_buy_with_product_scoped_inline_creative) sends the same kind of manifest and is already rejected after fix(training-agent): count the product's declarations when routing a manifest #8991. Neither step runs on /sales today: the run stops atcreate_buy_with_legacy_inline_creative, which is skipped becausetest_kit.creative_formatsisn't supplied. fix(training-agent): count the product's declarations when routing a manifest #8991's CI grades this storyboard at 5 passed and 1 skipped.If that fixture gap is closed, both product-scoped steps fail on /sales until the storyboard sends
format_option_refon its inline creatives. #8991 already causes the create-step failure. This PR adds the update-step failure.Tests
server/tests/unit/assignment-operations.test.tsreuses #8991's two-image product (300x250 and 728x90). The buy's package selects the 300x250 option, so the package keeps one image declaration while the product declares two:packages[].creatives: the routed inline manifest is accepted. The unrouted one is rejected and nothing is assigned.packages[].creative_assignments: the routed library creative is accepted. The unrouted one is rejected and nothing is assigned.new_packages[].creatives: the routed inline manifest is accepted on the added package. The unrouted one is rejected and no package is added.new_packages[].creative_assignments: the routed library creative is accepted on the added package. The unrouted one is rejected and no package is added.format_option_refto an unrouted library creative is accepted.Each negative test has an accepted control that differs only in
format_option_ref. On #8991's head, the four negative tests fail because the update is accepted, and the five accepted tests pass. With this change, all 38 tests in the file pass. The re-send test fails if thepackages[]check reads the library as it was before the update.Checks
npx vitest runonassignment-operations.test.ts, the otherupdate_media_buytest files (training-agent,comply-test-controller,training-agent-frequency-caps,training-agent-bidding-policy,training-agent-gender-targeting,training-agent-governance-intent-binding,training-agent-seller-optimized-budget), andserver/src/training-agent/tenants/served-release-shape.test.ts: 1094 tests pass.npm run typecheckpasses.dependency_impairment(15 passed) anddependency_impairment_cardinality(23 passed) are clean on both. Locally,get_capabilitiesfails schema validation (adcp.governance_enforcement.tasks.3) in 40 storyboards on both trees, while CI passes. That's why the storyboard findings above also come from replaying the step requests against the in-process /sales agent. The replays ran atadcp_version3.2 and 3.3-beta.5, on this branch, on fix(training-agent): count the product's declarations when routing a manifest #8991's head and on fix(training-agent): count the product's declarations when routing a manifest #8991's base, and were checked against fix(training-agent): count the product's declarations when routing a manifest #8991's CI logs.