Repository navigation
feat(schema): add experimental per-account execution readiness - #7934
Conversation
Piece 2 of #7763. Optional include_execution_readiness on get_products and a response-level execution_readiness map keyed by product_id, versioned apart from wholesale_feed_version so public catalogs keep cache_scope public. Reports ready/setup_required/selection_required/input_required/unknown per declared execution requirement and rolled up per product, with account-scoped candidates whose resource_id is directly usable in the existing binding field. Adds the media_buy_seller/execution_readiness conformance scenario. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y compile limit Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tate Merge origin/main; rename the nested status fields to readiness_status, state which connection_state members are meaningful, mark the new schemas experimental with x-added-in 3.3.0, and require the controller for the execution readiness scenario. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Deferred to beta.1: parity budget. After merging current |
|
Ladon cannot review this PR until merge conflicts are resolved. |
|
Parity budget (beta.1 train): stopped. Merged current |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without required approval.
This PR modifies the published protocol surface under static/schemas/source/** (three new schemas, an enum, plus modifications to index.json, get-products-request.json, get-products-response.json). That makes gated_paths true, and review_decision is REVIEW_REQUIRED (not APPROVED). Per decision rule row 2, the hard approval gate is not satisfied, so the outcome must be escalate pending human/CODEOWNERS review of the gated schema files.
The change itself looks clean and non-blocking: additive, experimental, non-breaking surface (optional include_execution_readiness request flag, response-level execution_readiness map), correctly carried by a minor changeset, no undiscriminated oneOf, no released-artifact mutation, and schema↔docs coherence verified (all seven connection-readiness status values map onto the downstream enum; tests enforce it). Only two non-blocking Medium docs findings remain. None of these are blockers — the escalation is purely the gated-path/review-status gate, not a code defect.
Gated files requiring human/CODEOWNERS approval:
- static/schemas/source/core/execution-requirement-readiness.json (added)
- static/schemas/source/core/product-execution-readiness.json (added)
- static/schemas/source/enums/execution-readiness-status.json (added)
- static/schemas/source/index.json (modified)
- static/schemas/source/media-buy/get-products-request.json (modified)
- static/schemas/source/media-buy/get-products-response.json (modified)
Medium findings (non-blocking):
- docs/reference/experimental-status.mdx:124 — Duplicate media_buy.execution_requirements row in experimental-status table
- docs/media-buy/task-reference/get_products.mdx:200 — Broken anchor links to execution_readiness section
Once a human/CODEOWNERS approval lands (review_decision → APPROVED), the gate lifts and this falls through to a normal review — likely an approve, since no blocking findings exist.
Medium findings
- docs/reference/experimental-status.mdx:124 — Duplicate media_buy.execution_requirements row in experimental-status table
- docs/media-buy/task-reference/get_products.mdx:200 — Broken anchor links to execution_readiness section in get_products.mdx
Why human review
- Gated paths touched under static/schemas/source/** (6 files) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required before merge (decision rule row 2).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/execution-requirement-readiness.json (added) matches
static/schemas/source/**; static/schemas/source/core/product-execution-readiness.json (added) matchesstatic/schemas/source/**; static/schemas/source/enums/execution-readiness-status.json (added) matchesstatic/schemas/source/**; static/schemas/source/index.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-products-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-products-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…s structural figures
…ss anchors; merge main
Summary
Piece 2 of #7763: per-account execution readiness for products that declare
execution_requirements(#7774). Experimental, additive, feature idmedia_buy.execution_readiness. A buyer setsinclude_execution_readiness: truewith anaccountonget_productsand gets a response-levelexecution_readinessmap keyed byproduct_id, so it can tell beforecreate_media_buywhether the account has what each product needs.This is a draft for the 3.3 working-group decision. The decisions that need a vote are in the brief on #7763.
{ "cache_scope": "public", "wholesale_feed_version": "wf_2026_10_06", "execution_readiness": { "version": "er_7f3a", "products": { "social_app_installs": { "readiness_status": "setup_required", "requirements": [ { "requirement": { "kind": "event_source", "event_types": ["app_install"] }, "readiness_status": "selection_required", "binding_field": "packages[].optimization_goals[].event_sources[].event_source_id", "candidates": [ { "resource_id": "es_app_main" }, { "resource_id": "es_app_beta" } ] }, { "requirement": { "kind": "downstream_connection", "connection": { "connection_type": "publisher_identity" } }, "readiness_status": "setup_required", "connection_state": { "connection_type": "publisher_identity", "status": "missing", "authorization_url": "https://social.example/connect" } } ] } } } }What it specifies
readiness_status,$reftoenums/execution-readiness-status.json), per requirement and rolled up per product:ready,setup_required,selection_required,input_required,unknown. The rollup is the first blocking state any requirement reports (setup_required,input_required,selection_required,unknown), elseready.unknowncarriesunknown_reason(permission_denied,platform_unavailable,not_evaluated) and no resources. A seller MUST NOT reportsetup_requiredfor a resource it could not read; a buyer MUST NOT treatunknownas not runnable.readydoes not waive binding. Forevent_sourceandcatalogthe buyer still passesresolved.resource_idinbinding_field; feat(schema): add experimental product execution requirements #7774'snot_boundrule is unchanged.resource_idis thesync_event_sourcesevent_source_idor acatalog_id, never a raw platform ID. Account-scoped, only forselection_required, never disclosed across accounts.connection_state(the connection the seller would use, its documented default when several are connected).readiness_statusderives fromconnection_state.status(connected/not_required→ready;missing/pending/expired/revoked→setup_required); a missing, expired, or revoked connection SHOULD carryauthorization_url.cache_scopelayer:cache_scope,wholesale_feed_version, andpricing_versionare unchanged, and it is omitted onunchanged: trueresponses. Buyers key it by(account, version); it never goes in wholesale feed webhooks.unknown/not_evaluated.media_buy_seller/execution_readiness, gated on the experimental feature. It covers a unique candidate, setup required, selection required, and a seller that cannot read the account, and checks that the map is omitted without opt-in and thatcache_scopestayspublic. Sellers register event sources throughsync_event_sources; the only reserved fixture is the brandreadiness-unreadable.example.Changes
enums/execution-readiness-status.json,core/execution-requirement-readiness.json,core/product-execution-readiness.json.media-buy/get-products-request.json(include_execution_readiness),media-buy/get-products-response.json(execution_readiness),index.json. Both new fields are optional andx-status: experimental.media-buy/specification.mdx,get_productsrequest and response reference, experimental registry.tests/execution-readiness.test.cjs(10 tests, wired intotest:schemas).PARITY_COMPILE_LIMITis not touched here. On the head I rebased onto (db452cc6) main'scomply-test-controller-request.jsonparity bundle is already 1,280,033 bytes against the 1,280,000 limit, and the readiness map adds ~11.5 KB (1,291,566 with this PR).Canonical tests (2/4)therefore needs a limit raise that has to land first or alongside the other open PRs that touch the same constant; I have not bumped it per the coordination rule.Alternatives considered and not picked
cache_scope: "account", so the whole wholesale catalogue is keyed per account and buyers lose public dedupe. Not picked because it defeats the "public catalogue stays cacheable" acceptance criterion.Productobject (themeasurement_readinessprecedent). Same cache problem as 1, and it would put account state in the product feed that webhooks and public caches carry.lead_form_id/messaging_destination_idpackage fields, or a genericresource_bindings[{kind, resource_id}]list. The generic list was rejected in the RFC: per-account execution readiness for products (required resources, candidates, and binding) #7763 decision (harder for buyer agents to discover and validate). Typed fields are not added in this slice: Meta and TikTok attach lead forms at the ad or creative level, so placement on the creative is checked first. The vocabulary stays at the three kinds feat(schema): add experimental product execution requirements #7774 declares.candidates[]and a buyer-supplied identity binding. Needs a binding field that RFC: advertiser identity model (brand claims, account connections, buy binding) #7782 has not placed yet (package, media buy, or creative). This slice reports oneconnection_stateand keeps the seller's documented default, andcandidates[]can be added to connection requirements later without breaking this shape. If candidates ship, onlyconnectedidentities are listed; a non-connected identity surfaces throughconnection_stateandauthorization_url.bindablestatus for event sources and catalogs that have a resolvable resource (suggested in review soreadycan't be read as "skip binding"). Not picked because the five-value vocabulary was set in the RFC: per-account execution readiness for products (required resources, candidates, and binding) #7763 proposal; the schema and spec sayreadydoes not waive binding, andresolvedis required forreadyon those kinds.requirement_indexinstead of echoing the requirement. The map is versioned separately from the product feed, so an index can go stale silently. An echoed entry that must deep-equal a declared one makes staleness detectable.unchanged: trueresponses. That was the point of versioning separately, but an unchanged response carries no products, so the map has nothing to cover and conditional fetch of readiness would need its own design. Omitted there; deferred.seller_defaultreason for a resolved event source or catalog. Several suitable resources meanselection_required; an unbound requirement isnot_bound. A default only exists for connections, where it isconnection_state.comply_test_controllerscenario to force the unreadable state. Avoided to keep the controller surface unchanged in 3.3.Not in this PR
lead_formandmessaging_destinationrequirements and bindings.proposal_idstay outside theexecution_requirementsrejection rule).if_execution_readiness_version), readiness onunchangedresponses, and readiness change notifications.list_products, which also takesaccount: readiness is added toget_productsonly in 3.3.Test plan
npm run test:schemas(includes the new tests)npm run test:mcp-schema-projectionnpm run build:compliance -- --check, plus the storyboard lint suitescheck:registry,lint:schema-links,test:docs-navjson-schema-validationon the changed docschangeset status🤖 Generated with Claude Code
Open workspace in Conductor