Skip to content

fix(compliance): honor optional seller discovery features - #8703

Merged
bokelley merged 3 commits into
mainfrom
bokelley/schema-31-test-failures
Nov 3, 2026
Merged

bokelley merged 3 commits into
mainfrom
bokelley/schema-31-test-failures

Conversation

@bokelley

@bokelley bokelley commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Sellers with valid get_products responses can fail conformance when filtering returns additional matching inventory, auction options omit optional price guidance, or a creative library does not implement provenance enforcement. This change removes those assumptions and makes the relevant tests depend on the capability actually being exercised.

  • Add optional creative.supports_provenance for 3.3 and gate provenance storyboards on it. Audit observations also require the advertised sandbox query hook. Discovery matches the seeded product and policy together regardless of result order, and audit queries retain the same complete account reference as discovery and sync.
  • Replace the filter storyboard's one-result assertion with explicit negative-control exclusion. The published storyboard requires field_excludes_runner, so unsupported external runners skip before seeding. The hosted/manual runner enforces the check through the SDK's public assertion API while the installed SDK lacks native support; full runs and standalone steps retain the original seller evidence.
  • Construct auction bids from discovered options without requiring price_guidance. The update path reallocates budgets while preserving accepted bids. This intentionally exercises budget updates rather than raising bids from optional p75 guidance. The floor-less cases test post-discovery request construction; the existing catalog-adaptive fixture preflight is unchanged.
  • Clarify that fixture seeds and consuming requests share an account; a sandbox mode flag alone is not account identity.

Validation: focused conformance regressions, schema and compliance builds, capability/schema bounds, served-version capability tests, and the repository's commit/CI gates. The exclusion regression runs against the production adapter without SDK monkeypatching or conditional skips.

The separate SDK account-seeding dispatch change and Python mixed-batch format-projection failure remain follow-ups; this PR does not claim to fix either SDK implementation.


Open workspace in Conductor

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

This PR modifies static/schemas/source/protocol/get-adcp-capabilities-response.json, which matches the deterministic hard-approval gate static/schemas/source/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2).

Escalation reasons

  • Touches gated schema source static/schemas/source/protocol/get-adcp-capabilities-response.json — human/CODEOWNERS review required before merge (review_decision: REVIEW_REQUIRED).

Blocking findings

  • None. The reviewer found no critical/high/medium issues.

What was checked (reviewer): schema↔docs coherence for the new optional creative.supports_provenance field (x-added-in: 3.3.0, default false) — no drift; the storyboard gate correctly strips the 3.3 field below 3.3 via omitFieldsAddedAfterRelease, so pre-3.3 withhold tests pass; storyboard-exclusion-check.ts fails closed on malformed checks; no dist/** mutation (immutability intact); oneOf baseline untouched; no new external I/O. Changeset is a correct minor/patch for an additive optional field.

The change appears additive and non-breaking, but the schema-source path is under a hard approval gate that only lifts when review_decision is APPROVED. Once a human/CODEOWNERS approval lands, this would fall through to approve on a clean diff.

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 table 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 Nov 2, 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 schema source modified without an APPROVED review.

This PR modifies static/schemas/source/protocol/get-adcp-capabilities-response.json, which matches the hard gated path glob static/schemas/source/**. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision table 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 one substantive change (supports_provenance: true at router.ts:1431) is correctly scoped to the sales tenant, down-leveled via x-added-in: 3.3.0, and coherent with schema (default false), docs ("Added in 3.3; defaults to false"), and the candidate-version test. Remaining delta is test-only. A changeset is present (.changeset/fix-optional-discovery-conformance.md). Schema↔docs coherence holds.

Nothing actionable blocks merge on code grounds, but the gated-path approval gate stands. Prior decision was also escalate for the same reason; it persists because the gate condition is unchanged.

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 (decision table row 2).

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

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