Skip to content

feat(media-buy): delegated composition — exclusive product universe and terms-only finalize - #7109

Closed
bokelley wants to merge 2 commits into
mainfrom
delegated-composition-product-universe
Closed

bokelley wants to merge 2 commits into
mainfrom
delegated-composition-product-universe

Conversation

@bokelley

@bokelley bokelley commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Delegated composition — a requesting platform that owns the sellable catalog asking an external agent to supply only the composition judgment — works nearly out of the box on the 3.2 proposal workflow, but two gaps force deployments into vendor extensions and stated profile deviations (full context: #7107):

  1. criteria.product_ids is only a candidate hint. There is no standard way for the requesting side to bind the composable product universe, so grounding ("never compose off-catalog") has to be enforced out of band.
  2. finalize assumes the seller places an inventory hold. A composer that holds no inventory (reservation lives with the requester) cannot be conformant today — hold_unavailable semantics don't apply to it.

What changed

criteria.product_ids_exclusive (media-buy/product-discovery-criteria.json, default false, requires product_ids): when true, the listed products are the complete composable universe — every proposal purchase and every echoed product MUST reference them; a brief unsatisfiable within the universe returns rejected (request_proposals) or constraint_unsatisfiable (refine_proposals), never off-universe results. Capability-gated by a new media_buy.supports_exclusive_product_ids declaration, mirroring the outcome_target pattern: non-declaring sellers MUST reject the flag with UNSUPPORTED_FEATURE rather than silently ignore it, so a buyer never mistakes unconstrained composition for a bounded one.

media_buy.proposal_refinement.hold_semantics (inventory_hold | terms_only; absent = inventory_hold, today's behavior, fully backward-compatible): a terms_only seller commits commercial terms at finalize with the same atomic all-or-none batch semantics but places no inventory hold, and MUST NOT return hold_unavailable or a hold-driven batch_aborted; reservation is owned by the requesting side. refine-proposals-response.json and the hold_unavailable enum description are amended accordingly.

Docs: new "Binding the product universe" section on request_proposals.mdx; terms-only paragraph under "Finalize and hold inventory" on refine_proposals.mdx. Changeset: minor.

Deliberately not in this PR

The third ask from #7107 — acceptance-only accept_proposal (acceptance recorded by the composer while the MediaBuy is created on the requesting platform) — touches the shared media-buy-commitment-response.json that buy_products also consumes. That deserves maintainer direction on shape before schema changes; we'll follow up on the issue.

Validation

  • node scripts/build-schemas.cjs passes on the edited sources.
  • All edited JSON parses; no dist/ changes (consistent with prior schema PRs).
  • Motivating deployment is a live partner integration (Scope3 ↔ seller-operated composer); we can validate the shapes end-to-end against a real composer implementation during review.

Refs #7107

🤖 Generated with Claude Code


Design update from the motivating deployment (2026-09-01) — where ask 1 should go next

Further design work sharpened the fuller shape of the requester-bound universe (this PR's inline product_ids_exclusive remains the correct bootstrap; the following can layer on it without breaking the shape):

  • Bind by reference, not only by value. Support a versioned, previously synced universe via an opaque seller-issued catalog_ref/universe_id (optionally narrowed by product_ids). The proposal engine and the execution engine then consume the same versioned catalog — one catalog authority, two projections: the composer sees merchandising semantics and valid targeting choices; execution additionally sees private source bindings (product → ad-server objects, native targeting mappings), which AdCP should never standardize.
  • Reference lifecycle, not subscription transport. refine_proposals stays pinned to the request's universe by default (explicit rebase = new intent); every proposal echoes the universe it composed against; accept_proposal validates against it and fails with a catalog_stale-style outcome into re-quote/re-proposal when the referenced products, prices, or signal mappings changed — never silent substitution. The reference is not an inventory hold; availability stays live at acceptance.
  • Signal universe. A bounded composition also needs either a product-scoped signal universe or a catalog fence requiring every signal reference in a proposal to resolve within the referenced universe.
  • Universe integrity. Opaque references benefit from content digests (products/signals/mappings), analogous to the existing terms_digest discipline.

Happy to draft the reference form as a follow-up once maintainers weigh in on this PR's bootstrap. (Posting this here because issue comments are unavailable to our integration token; treat it as the continuation of #7107 ask 1.)

…nd terms-only finalize

Adds criteria.product_ids_exclusive (requester-bound composable universe,
capability-gated by media_buy.supports_exclusive_product_ids) and
media_buy.proposal_refinement.hold_semantics (inventory_hold | terms_only)
so proposal-capable sellers that hold no inventory are conformant.

Refs #7107

Co-Authored-By: Claude Fable 5 <[email protected]>
},
"uniqueItems": true
},
"hold_semantics": {

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.

Medium: Both new capability declarations — hold_semantics here (L1182) and supports_exclusive_product_ids (L1243) — are absent from docs/protocol/get_adcp_capabilities.mdx, the reference these very descriptions link buyers to. That page documents every sibling media_buy capability with its own #### section (#### outcome_target, #### availability_horizon, #### budget_capping) and the #### proposal_refinement section (L524-542) enumerates its sub-fields. A buyer following the schema link lands on the capabilities reference and finds no entry for either gating flag. The task-reference pages cover the contract; the capabilities enumeration is the coherence gap. Add a hold_semantics note under #### proposal_refinement and a #### supports_exclusive_product_ids section.

@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: Escalate to human review

Escalate — gated paths require human/CODEOWNERS approval.

This PR modifies four files under static/schemas/source/**, which are under a deterministic hard approval gate (gated_paths: true), but review_decision is REVIEW_REQUIRED (not APPROVED). Per decision rule row 2, this must escalate for human/CODEOWNERS review.

The change itself appears clean and additive (Normative-class): two optional capability-gated fields (product_ids_exclusive, hold_semantics) defaulting to today's behavior, a correct minor changeset, no oneOf regression, no dist mutation, no breaking wire change. Enum values/error codes verified present, schema nesting matches doc capability paths, and task-reference prose is coherent.

Medium findings

  • docs/protocol/get_adcp_capabilities.mdx — both new capabilities are absent from the reference page the schema descriptions link to and which documents every sibling media_buy capability under its own #### section. (Non-blocking; a human reviewer should confirm this doc gap is addressed.)

No critical/high findings. Gate lifts once a human/CODEOWNERS approval is recorded.

Why human review

  • Gated paths touched without required approval: static/schemas/source/enums/proposal-refinement-reason.json, product-discovery-criteria.json, refine-proposals-response.json, and protocol/get-adcp-capabilities-response.json are under a hard approval gate and review_decision is REVIEW_REQUIRED — human/CODEOWNERS review required.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/enums/proposal-refinement-reason.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/product-discovery-criteria.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/refine-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Aug 31, 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: Escalate to human review

Escalate — gated paths touched without required approval.

This PR modifies four files under static/schemas/source/**, which the repo declares under a hard, non-overridable approval gate (gated_paths: true). The current review_decision is unknown/none — not APPROVED — so the gate is not satisfied. Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded.

The reviewer's pass is clean: no critical/high/medium findings. The only delta since the prior review is a single editorial change at request_proposals.mdx:54 (plain-text refine_proposals mention converted to a markdown link, target verified). This is not blocking on its own — the escalation is driven entirely by the unsatisfied hard approval gate, not by any finding.

Escalation reasons

  • Gated paths touched without required approval: static/schemas/source/enums/proposal-refinement-reason.json, static/schemas/source/media-buy/product-discovery-criteria.json, static/schemas/source/media-buy/refine-proposals-response.json, and static/schemas/source/protocol/get-adcp-capabilities-response.json are under a hard approval gate and review_decision is not APPROVED — human/CODEOWNERS review required.

Once a real GitHub/CODEOWNERS approval is recorded, this clean diff can fall through to approve.

Why human review

  • Gated paths touched without required approval: static/schemas/source/enums/proposal-refinement-reason.json, static/schemas/source/media-buy/product-discovery-criteria.json, static/schemas/source/media-buy/refine-proposals-response.json, and static/schemas/source/protocol/get-adcp-capabilities-response.json are under a hard, non-overridable approval gate and review_decision is not APPROVED — human/CODEOWNERS review required.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/enums/proposal-refinement-reason.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/product-discovery-criteria.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/refine-proposals-response.json (modified) matches static/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'unknown', 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.

@bokelley

bokelley commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Punting this normative work to AdCP 3.3. The prototype, review feedback, and evolved reference-based universe design have been consolidated into #7107: #7107 (comment)

Closing without merge so 3.2 remains focused; the PR branch and commits remain available as implementation input for the 3.3 working-group cycle.

@bokelley bokelley closed this Sep 1, 2026
bokelley added a commit that referenced this pull request Oct 14, 2026
…universe and terms-only finalize (#7954)

Builds on the closed #7109 prototype (2543f52 / 92f5a95) for items 1 and 2 of #7107.

- criteria.product_ids_exclusive: product_ids becomes the complete composable
  universe for a request and its refinement lineage; signals are fenced to the
  listed products' signal_targeting_options; refinements may only narrow.
  Capability-gated by media_buy.supports_exclusive_product_ids.
- media_buy.proposal_refinement.hold_semantics (inventory_hold | terms_only):
  terms_only finalize commits terms without an inventory hold; expires_at is the
  acceptance window; hold_unavailable is excluded; version-gated for callers
  pinned below 3.3.
- docs/protocol/get_adcp_capabilities.mdx documents both capabilities, and a
  delegated-composition bootstrap profile page assembles them. The
  acceptance-only accept_proposal variant (item 3) is deliberately not included.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
bokelley added a commit that referenced this pull request Oct 14, 2026
…8140)

* feat(media-buy): delegated composition bootstrap — exclusive product universe and terms-only finalize

Builds on the closed #7109 prototype (2543f52 / 92f5a95) for items 1 and 2 of #7107.

- criteria.product_ids_exclusive: product_ids becomes the complete composable
  universe for a request and its refinement lineage; signals are fenced to the
  listed products' signal_targeting_options; refinements may only narrow.
  Capability-gated by media_buy.supports_exclusive_product_ids.
- media_buy.proposal_refinement.hold_semantics (inventory_hold | terms_only):
  terms_only finalize commits terms without an inventory hold; expires_at is the
  acceptance window; hold_unavailable is excluded; version-gated for callers
  pinned below 3.3.
- docs/protocol/get_adcp_capabilities.mdx documents both capabilities, and a
  delegated-composition bootstrap profile page assembles them. The
  acceptance-only accept_proposal variant (item 3) is deliberately not included.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* feat(media-buy): experimental hold_policy on products and proposals

Add core/hold-policy.json (feature id media_buy.hold_policy, #7661):
available, min_duration, max_duration, extendable, max_total_duration,
with strictly positive day/hour/minute/second ISO 8601 durations that are
forbidden when available is false. Declare it on product,
canonical-product, proposal, and canonical-proposal. A successful finalize
honors min_duration from when the hold is placed or returns
hold_unavailable; any non-holdable allocated product resolves the whole
proposal to terms-only finalize. hold_semantics becomes the default for
products that do not declare hold_policy.

Stacks on #7954 (terms_only hold semantics).

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

* test(compliance): hold_policy reference vectors and grader

Add static/compliance/source/test-vectors/hold-policy with 35 finalize
and 6 draft vectors for experimental hold_policy (#7661), each with
expected.violations, across six cases: hold bounds, hold_unavailable in
all-or-none batches, terms-only resolution for non-holdable drafts,
hold_semantics defaults, the 3.3 version gate, and draft-product
consistency.

The vectors use canonical proposals only. A day is 24 hours on the UTC
instant (including a DST vector). Hold placement time is not on the
wire, so the grader uses observation.hold_placed_at only when present
and otherwise grades both bounds against the request/response window,
reporting unsettled bounds as indeterminate. max_total_duration appears
only with extendable true. Product-draft consistency is checked for
presence and the available-false rule only.

tests/hold-policy-vectors.test.cjs holds the reference grader, replays
every vector, and is wired into test:schemas. Storyboards stay deferred:
the training agent serves at most 3.2 and the SDK's 3.2 canonical
proposal schema rejects hold_policy.

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

* feat(media-buy): hold_placed_at, binding drafts, per-entry terms_only for hold_policy

Apply the expert-review fixes to experimental hold_policy (#7661):

- Add hold_placed_at to canonical-proposal: required on a committed
  proposal whose hold_policy.available is true, forbidden on drafts and
  when available is false. It lies between request receipt and the
  response or submitted completion, and the bounds are
  hold_placed_at + min_duration <= expires_at <= hold_placed_at +
  max_duration. An exact retry never restarts the clock.
- Product hold_policy is a planning hint; only the draft binds. The
  draft derives available, durations and extendable from the allocated
  products and governs finalize even if a product's policy changes.
- A seller that lists media_buy.hold_policy emits hold_policy on every
  draft and committed proposal for 3.3+ callers, and omits hold_policy
  and hold_placed_at for callers below 3.3.
- Scope #7954's terms_only rules per finalize entry. In a mixed batch,
  a terms-only entry returns batch_aborted when a holdable sibling
  returns hold_unavailable.
- Remove hold_policy from legacy core/proposal.json; proposal-level
  policy is compact-lifecycle only.
- Schema: extendable defaults to false; max_total_duration requires
  extendable true. A day is 24 hours on the UTC instant and durations
  compare after normalizing.
- Document submitted-finalize timing, installment deadlines, exclusive
  holds, that available false needs no delegated_composition, and the
  extension chain (#8097).

Vectors: hold placement moves from the grader-side observation block
onto the committed proposal's hold_placed_at, which must lie inside the
observed request window. Window grading with indeterminate bounds
remains only for callers below 3.3, so the four placement-free vectors
become 3.2-caller vectors. New codes: hold_policy_missing (renamed from
draft_hold_policy_missing), hold_placed_at_outside_window,
hold_policy_sent_below_3_3, draft_exceeds_product_policy, and
hold_policy_durations_unordered. Schema vectors cover a missing
hold_placed_at and max_total_duration without extendable. 40 finalize
and 12 draft vectors.

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

* test(schema): raise whole MCP projection cap to 22 MiB for hold_policy

main already measured 20_945_219 bytes against the 20 MiB sanity cap set
in #6070. Experimental hold_policy is bundled into every product- and
proposal-bearing tool and brings the projection to 21_021_886 bytes.

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

* test(schema): raise comply_test_controller parity limit for hold_policy

Experimental hold_policy reaches the comply_test_controller request
through the seeded Product and the committed proposal: 1_259_242 bytes
measured on main with response collections and follower counts, bounded
at 1_265_000.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
bokelley added a commit that referenced this pull request Oct 14, 2026
…#8097)

* feat(media-buy): delegated composition bootstrap — exclusive product universe and terms-only finalize

Builds on the closed #7109 prototype (2543f52 / 92f5a95) for items 1 and 2 of #7107.

- criteria.product_ids_exclusive: product_ids becomes the complete composable
  universe for a request and its refinement lineage; signals are fenced to the
  listed products' signal_targeting_options; refinements may only narrow.
  Capability-gated by media_buy.supports_exclusive_product_ids.
- media_buy.proposal_refinement.hold_semantics (inventory_hold | terms_only):
  terms_only finalize commits terms without an inventory hold; expires_at is the
  acceptance window; hold_unavailable is excluded; version-gated for callers
  pinned below 3.3.
- docs/protocol/get_adcp_capabilities.mdx documents both capabilities, and a
  delegated-composition bootstrap profile page assembles them. The
  acceptance-only accept_proposal variant (item 3) is deliberately not included.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* feat(media-buy): experimental hold_policy on products and proposals

Add core/hold-policy.json (feature id media_buy.hold_policy, #7661):
available, min_duration, max_duration, extendable, max_total_duration,
with strictly positive day/hour/minute/second ISO 8601 durations that are
forbidden when available is false. Declare it on product,
canonical-product, proposal, and canonical-proposal. A successful finalize
honors min_duration from when the hold is placed or returns
hold_unavailable; any non-holdable allocated product resolves the whole
proposal to terms-only finalize. hold_semantics becomes the default for
products that do not declare hold_policy.

Stacks on #7954 (terms_only hold semantics).

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

* test(compliance): hold_policy reference vectors and grader

Add static/compliance/source/test-vectors/hold-policy with 35 finalize
and 6 draft vectors for experimental hold_policy (#7661), each with
expected.violations, across six cases: hold bounds, hold_unavailable in
all-or-none batches, terms-only resolution for non-holdable drafts,
hold_semantics defaults, the 3.3 version gate, and draft-product
consistency.

The vectors use canonical proposals only. A day is 24 hours on the UTC
instant (including a DST vector). Hold placement time is not on the
wire, so the grader uses observation.hold_placed_at only when present
and otherwise grades both bounds against the request/response window,
reporting unsettled bounds as indeterminate. max_total_duration appears
only with extendable true. Product-draft consistency is checked for
presence and the available-false rule only.

tests/hold-policy-vectors.test.cjs holds the reference grader, replays
every vector, and is wired into test:schemas. Storyboards stay deferred:
the training agent serves at most 3.2 and the SDK's 3.2 canonical
proposal schema rejects hold_policy.

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

* feat(media-buy): hold_placed_at, binding drafts, per-entry terms_only for hold_policy

Apply the expert-review fixes to experimental hold_policy (#7661):

- Add hold_placed_at to canonical-proposal: required on a committed
  proposal whose hold_policy.available is true, forbidden on drafts and
  when available is false. It lies between request receipt and the
  response or submitted completion, and the bounds are
  hold_placed_at + min_duration <= expires_at <= hold_placed_at +
  max_duration. An exact retry never restarts the clock.
- Product hold_policy is a planning hint; only the draft binds. The
  draft derives available, durations and extendable from the allocated
  products and governs finalize even if a product's policy changes.
- A seller that lists media_buy.hold_policy emits hold_policy on every
  draft and committed proposal for 3.3+ callers, and omits hold_policy
  and hold_placed_at for callers below 3.3.
- Scope #7954's terms_only rules per finalize entry. In a mixed batch,
  a terms-only entry returns batch_aborted when a holdable sibling
  returns hold_unavailable.
- Remove hold_policy from legacy core/proposal.json; proposal-level
  policy is compact-lifecycle only.
- Schema: extendable defaults to false; max_total_duration requires
  extendable true. A day is 24 hours on the UTC instant and durations
  compare after normalizing.
- Document submitted-finalize timing, installment deadlines, exclusive
  holds, that available false needs no delegated_composition, and the
  extension chain (#8097).

Vectors: hold placement moves from the grader-side observation block
onto the committed proposal's hold_placed_at, which must lie inside the
observed request window. Window grading with indeterminate bounds
remains only for callers below 3.3, so the four placement-free vectors
become 3.2-caller vectors. New codes: hold_policy_missing (renamed from
draft_hold_policy_missing), hold_placed_at_outside_window,
hold_policy_sent_below_3_3, draft_exceeds_product_policy, and
hold_policy_durations_unordered. Schema vectors cover a missing
hold_placed_at and max_total_duration without extendable. 40 finalize
and 12 draft vectors.

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

* feat(media-buy): experimental extend_hold action for refine_proposals

Refs #8086. Adds action extend_hold (feature id media_buy.hold_extension):
committed, unexpired source -> new committed successor with later
expires_at, hold transfers, source no longer acceptable. Atomic
extend-only batches, reuses the finalized outcome, failures are
hold_unavailable / batch_aborted. Capability
media_buy.proposal_refinement.hold_extension.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* docs(media-buy): address review of extend_hold (supersession, race, error codes)

Refs #8086.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* docs(media-buy): name Availnet as the hold_extension adopter

Refs #8086.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* docs(media-buy): reconcile extend_hold with hold_policy and terms_only

Refs #8086, #7661, #7954. Restacks extend_hold on hold_policy (#8140,
through 81b38ba), itself on terms_only hold semantics (#7954).

- Limits come from hold_policy. extendable defaults to false: when it is
  false or absent the seller declines (hold_unavailable) and buyers
  SHOULD NOT send extend_hold. The successor's expires_at MUST NOT
  exceed the original hold_placed_at plus max_total_duration; a request
  the seller cannot extend at all returns hold_unavailable. Absent
  hold_policy (a seller that does not list media_buy.hold_policy),
  limits stay seller policy. hold_extension: true remains the
  agent-level gate.
- Successors carry hold_policy and hold_placed_at forward unchanged, so
  max_total_duration counts from the root finalize's placement across
  the whole chain of extension successors.
- extend_hold applies only to committed proposals that hold inventory,
  judged per entry. An entry whose effective policy is terms-only
  (hold_policy.available false, or no hold_policy at a terms_only
  agent) fails the request at task level with INVALID_STATE, never
  hold_unavailable, replacing the non-normative terms_only paragraph
  that contradicted #7954 and #8140.
- Nothing relies on hold_policy in legacy core/proposal.json, which
  #8140 removed.
- Vectors: eleven extend_hold vectors in the hold-policy set (case
  extension) with a gradeExtend reference grader: successors within,
  at, and past the total ceiling (including a chain), hold_placed_at
  and hold_policy carried forward, a later expires_at, extendable
  defaulting to false, and INVALID_STATE for a source without a hold.
  Four new violation codes.
- Tests: the training-agent refine_proposals parity test now expects
  the extend_hold action value; the compact discovery tools/list budget
  rises to 155 KiB (+836 bytes) and the media-buy MCP model-context
  budget to 447 KiB (+501 bytes) for the combined stack.

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

* test(schema): raise whole MCP projection cap to 22 MiB for hold_policy

main already measured 20_945_219 bytes against the 20 MiB sanity cap set
in #6070. Experimental hold_policy is bundled into every product- and
proposal-bearing tool and brings the projection to 21_021_886 bytes.

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

* test(schema): raise comply_test_controller parity limit for hold_policy

Experimental hold_policy reaches the comply_test_controller request
through the seeded Product and the committed proposal: 1_259_242 bytes
measured on main with response collections and follower counts, bounded
at 1_265_000.

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

* fix(media-buy): scope max_duration to finalize and grade no-hold extend errors

Review fixes for extend_hold:
- canonical-proposal hold_placed_at: the max_duration bound applies to the
  committed proposal created by finalize. An extend_hold successor carries
  hold_placed_at forward and is bounded by max_total_duration instead, so
  the conformant extend-within-total vector no longer contradicts the
  schema text.
- Reference grader: an extend_hold against a commitment that holds no
  inventory must fail at task level with INVALID_STATE. Any other task
  error code is now the no_hold_wrong_task_error violation, with a new
  extend-terms-only-wrong-task-error vector.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant