Repository navigation
test(compliance): add flexible-window availability conformance - #6727
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/protocol/get-adcp-capabilities-response.json, which matches the deterministic gated-path glob static/schemas/source/**. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the hard approval gate is not satisfied and the outcome must be escalate.
Escalation reasons
- Touches gated schema source
static/schemas/source/protocol/get-adcp-capabilities-response.json— human/CODEOWNERS approval is required before merge.
Findings: None. The reviewer confirmed this is a purely additive change: a new optional media_buy.availability_horizon capability (x-added-in 3.2.0), horizon-partitioned forecasts, and buy-time PRODUCT_UNAVAILABLE enforcement. Schema↔docs coherence holds, the minor changeset is correct, and no critical/high/medium findings were raised. The escalation is strictly due to the unsatisfied path-based approval gate, not any code concern. Once a human/CODEOWNERS approval lands (review_decision → APPROVED), this clean diff can fall through to approve.
Why human review
- Modifies gated schema source static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required (decision rule row 2).
- This PR touches a path under a hard, non-overridable approval gate (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.
media_buy.availability_horizon capability declaration gates the new media_buy_seller/availability_windows scenario (required by the sales-guaranteed specialism): horizon partitioning into coalesced half-open time windows, eligibility-aware availability_status (a gap shorter than the minimum bookable duration is unavailable even with no competing hold), forecast excluded from list_products conditional reads, and PRODUCT_UNAVAILABLE on buys against closed or too-short windows. The training agent implements the full contract from seeded calendar fixtures; the list_with_horizon step is known-failing until the packaged SDK regenerates validators (adcp-client#2637). Co-Authored-By: Claude Fable 5 <[email protected]>
afdc71d to
6d4edb8
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema source modified without required review approval.
This PR modifies static/schemas/source/protocol/get-adcp-capabilities-response.json, a path under a hard, non-overridable approval gate (gated_paths: true, matches static/schemas/source/**). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision rule row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer found no critical/high/medium findings — the change is an additive capability flag (media_buy.availability_horizon) with coherent docs, tests, schema vectors, and a conformance scenario; changeset scope, oneOf discriminator, and immutable-artifact checks all pass. The diff appears mechanically clean, but the gate is deterministic and path-based; it lifts only when the GitHub review decision becomes APPROVED.
Escalation reasons
- Modifies gated schema source
static/schemas/source/protocol/get-adcp-capabilities-response.json(matchesstatic/schemas/source/**) whilereview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required (rule row 2).
No blocking findings; once a human/CODEOWNERS approval is recorded, this should fall through to approve.
Why human review
- Modifies gated schema source static/schemas/source/protocol/get-adcp-capabilities-response.json (matches static/schemas/source/**) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required (decision rule row 2).
- This PR touches a path under a hard, non-overridable approval gate (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.
Summary
First conformance follow-up from #6644. Makes flexible-window availability gradeable end to end:
media_buy.availability_horizoncapability declaration (schema + capabilities doc) — the storyboard gate; sellers opt in explicitly, mirroring thebuying_modeswholesale pattern.media_buy_seller/availability_windowsscenario, required by the sales-guaranteed specialism and capability-gated:timewindows (availabilityrange unit)unavailableand must coalesce with the adjacent booked spans into one closed window — a hold-state-only port of a homegrown avails tool fails exactly here (the migration trap @damiendonnelly reported)list_productsread withforecastinfieldsmust answerlisted, neverunchangedbuy_productsagainst a booked span or below the minimum duration rejects withPRODUCT_UNAVAILABLEfixture.availabilityonseed_product, passed through verbatim by the SDK runner), window partition/coalescing at discovery time across all three discovery tools, buy-time rejection, list_products conditional-read rule, capability projection on both the legacy and v6 wire paths. 8 new unit tests.availability_horizonmutual-exclusion and the time-dimension/availability_status shapes (7 tests).availabilityblock documented in the storyboard schema (seller-internal calendar state, never emitted on products).Known-failing step
list_with_horizonis registered known-failing citing adcontextprotocol/adcp-client#2637: packaged SDK validators through 14.0.0-beta.4 predate the flexible-window vocabulary and reject thetimedimension. Verified against beta.4 before keeping the entry. The platform behavior it would grade is covered by the new unit tests; remove the entry when the SDK regenerates against a protocol release containing #6644.Verification
npm run test:schemas, storyboard lint suite (16 lints), typecheck, changeset scope check — all green🤖 Generated with Claude Code