Skip to content

test(compliance): add flexible-window availability conformance - #6727

Merged
bokelley merged 1 commit into
mainfrom
test/availability-windows-conformance
Aug 20, 2026
Merged

bokelley merged 1 commit into
mainfrom
test/availability-windows-conformance

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

First conformance follow-up from #6644. Makes flexible-window availability gradeable end to end:

  • media_buy.availability_horizon capability declaration (schema + capabilities doc) — the storyboard gate; sellers opt in explicitly, mirroring the buying_modes wholesale pattern.
  • media_buy_seller/availability_windows scenario, required by the sales-guaranteed specialism and capability-gated:
    • horizon partitioning into coalesced half-open time windows (availability range unit)
    • eligibility-not-just-holds: the fixture's trailing 2-day gap (vs a 3-day minimum bookable duration) must come back unavailable and 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)
    • forecast is a per-read overlay: a conditional list_products read with forecast in fields must answer listed, never unchanged
    • the buy is the authoritative check: buy_products against a booked span or below the minimum duration rejects with PRODUCT_UNAVAILABLE
  • Training-agent implementation: seeded calendar fixtures (fixture.availability on seed_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.
  • Schema test vectors for availability_horizon mutual-exclusion and the time-dimension/availability_status shapes (7 tests).
  • Fixture availability block documented in the storyboard schema (seller-internal calendar state, never emitted on products).

Known-failing step

list_with_horizon is registered known-failing citing adcontextprotocol/adcp-client#2637: packaged SDK validators through 14.0.0-beta.4 predate the flexible-window vocabulary and reject the time dimension. 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

  • Full storyboard matrix: all 7 tenants meet floors (sales 315 → 322 steps; the scenario runs 7 passed / 1 known-failing skip / 0 failed)
  • npm run test:schemas, storyboard lint suite (16 lints), typecheck, changeset scope check — all green
  • Validated against GameOn's sequencing: they deploy after the next beta cut; drafts to be validated against their implementation per feat(media-buy): add flexible-window availability discovery #6644 thread

🤖 Generated with Claude Code

@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 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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Aug 20, 2026
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]>
@bokelley
bokelley force-pushed the test/availability-windows-conformance branch from afdc71d to 6d4edb8 Compare August 20, 2026 12:44

@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 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 (matches static/schemas/source/**) while review_decision is REVIEW_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.

@bokelley
bokelley merged commit 18f5f8e into main Aug 20, 2026
50 checks passed
@bokelley
bokelley deleted the test/availability-windows-conformance branch August 20, 2026 15:26
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