Skip to content

fix(compliance): honor optional 3.1 discovery and sandbox fixture scope - #8721

Merged
bokelley merged 2 commits into
3.1.xfrom
fix/3.1-discovery-harness
Nov 3, 2026
Merged

bokelley merged 2 commits into
3.1.xfrom
fix/3.1-discovery-harness

Conversation

@bokelley

@bokelley bokelley commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

A conforming 3.1 seller can return several matching products or omit optional auction price guidance, but the maintained harness currently fails those responses. This patch tests the seeded negative control rather than result count, and uses explicit buyer bids against the known auction fixtures.

  • Product filtering accepts additional/reordered matching products and multichannel products. The additive field_excludes check requires executable runner support; an older runner reports unavailable coverage before seeding.
  • Provenance storyboards require the explicit capability introduced in 3.3. Since 3.1 cannot advertise that field, library-only sellers skip these optional checks before mutations. Audit requests retain the complete existing 3.1 account reference.
  • The auction flow uses a wholesale read to bind exact seeded product/pricing identities, chooses buyer bids of 6 and 16 above seeded floors of 5 and 15, and reallocates budgets to 12,000/13,000 while preserving accepted bids. Failed discovery skips dependent buy mutations. Discovery accepts absent price guidance and unrelated products before the fixtures. This is a fixture-backed flow; it does not claim general catalog adaptation or require curated briefs to include the fixtures. Main uses a catalog-adaptive flow, so wholesale is an intentional maintained-runner adaptation.
  • Canonical product-validation fixtures and vendor-metric catalog fixtures explicitly bind seeding to the same sandbox account as their public probes and buy requests.
  • The reference seller echoes preserved bids in budget-update responses, selectively adapting existing main behavior from feat(conformance): strengthen 3.2 reference agent coverage #6883 (a6d1e49b98).
  • Auction and filter requests keep matching brand/account identities and sandbox routing. Production SDK remains 9.6.2; only the private regression runner moves to the actually published 17.0.0-beta.15.

This is a selective maintenance adaptation of the main harness fixes in #8703, after the main-first changeset split in #8719. It adds no fields to the 3.1 wire schemas and changes no versioned release artifacts.

Based on the normally merged prerequisite #8707 (dee47185da52928268b28265e9060f265ead5e9d). Its fixture-test repair is now in the base and is excluded from this PR diff. The rebase preserves the entire previously qualified source tree exactly (ad8ec972294eeec3dff3600d1007b08f0df1832d); the new head is 1c74ea1fbc5c7db503e1b65e099319ebe203e634. Both mandatory push matrices were rerun successfully, and remote CI is rerunning on that head. Release preparation uses the official maintained producer and a fresh human review on the final generated artifact head.

Validation:

  • Normal commit hooks passed on this exact source tree: 1,012 root tests, 120 auction/compliance cases, 4,403 server tests (3 existing skips), 17 import/state checks and typecheck. The server suite passed within the unchanged 240-second limit. Changesets scope/status is PATCH only.
  • Normal pre-push passed both mandatory six-tenant matrices without changing floors: current-source sales 109 clean / 418 passed steps; frozen 3.0.26 sales 65 clean / 277 passed steps. All required-clean scenarios passed.
  • Full actual reference MCP auction lifecycle passed 11/0/0, retaining fixture seeding and response-schema checks; the HTTP regression also asserts matching seed/discovery/create/update account identities and accepted-bid preservation.
  • Production SDK 9.6.2 regression checks verify honest unsupported-check skips and provenance skips before mutation. Its old wholesale builder is explicitly unsupported: actual MCP wire evidence shows it injects a forbidden brief; a strict 3.1 refusal fails discovery and skips subsequent creation/updates before buy mutations. A separate isolated post-discovery test covers fixture-backed buyer bids and budget-only request construction; it does not qualify that old builder or a full legacy-runner lifecycle.
  • Fresh registry-installed SDK 17.0.0-beta.15 controlled strict-3.1 MCP qualification passed: filter 10/0/0, intentional negative leak 5/2/3, auction source fragment 8/0/0, and three provenance skips before mutation. All 37 observed calls were schema-valid on wire version 3.1 with matching account/brand identities. This uses the development corpus and is not final qualification of a future published maintenance counter.

Open workspace in Conductor

@bokelley
bokelley marked this pull request as ready for review November 3, 2026 15:35
@bokelley
bokelley requested a review from a team as a code owner November 3, 2026 15:35

@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: Approve

Approve — clean review, no blocking or medium findings.

Checked: 3.1.x compliance-corpus maintenance. Relaxes product-count assumptions to negative-control exclusion via the new additive field_excludes check, gated behind field_excludes_runner so maintained SDK 9.6.2 skips before mutation. Rebuilds the sales-non-guaranteed auction flow to a fixture-backed wholesale read with explicit bids and budget-only updates, gates provenance scenarios behind the 3.3 creative.supports_provenance capability, and binds seeding fixtures to explicit sandbox accounts. No static/schemas/source/** or dist/** changes; patch changeset present. The one production line (task-handlers.ts:5985) echoes preserved bids in update responses, matching existing create/get sites and schema-valid. field_excludes added consistently across lint script, runner-output-contract (2.14.0→2.15.0), and storyboard-schema requires-list; legacy-SDK fail-closed test confirmed.

No gated paths, no high-risk flag, no author team gate, no prior decision. Falls through to row 9.

@bokelley
bokelley marked this pull request as draft November 3, 2026 15:55
@bokelley
bokelley force-pushed the fix/3.1-discovery-harness branch from 2d41434 to 1c74ea1 Compare November 3, 2026 16:06
@bokelley
bokelley marked this pull request as ready for review November 3, 2026 16:24

@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: Approve

Approve

No blocking findings. Subsequent pass on PR #8721 (prior run was a clean approve); the reviewer confirms the delta equals the full diff and surfaces no new critical/high/medium findings.

Checked:

  • Additive conformance-harness maintenance: new field_excludes check kind threaded consistently through lint-storyboard-validations-paths.cjs, runner-output-contract.yaml (2.14.0→2.15.0), storyboard-schema.yaml (field_excludes_runner gate), and the enum spot-check test.
  • The sole production change (task-handlers.ts:5985) echoes the preserved bid_price in budget-only update responses, matching the existing create-response shape at 4862.
  • The sales-non-guaranteed storyboard rewrite has no dangling $context.*_bid_price references, sandbox identity aligned, negative-control product_id matches the seeded fixture.

Gates: no no-auto-approve team match; gated_paths false; high_risk false; review_decision APPROVED. None of rows 1–8 fire → row 9 approve.

@bokelley
bokelley merged commit a68851b into 3.1.x Nov 3, 2026
13 checks passed
@bokelley
bokelley deleted the fix/3.1-discovery-harness branch November 3, 2026 16:33
bokelley added a commit that referenced this pull request Nov 3, 2026
…ng account

deterministic_testing seeds test-product/test-pricing and consumes them as
Acme Outdoor buying through Pinnacle, but it also provisions an unrelated
test.example account through sync_accounts and declared no top-level
context.account. Runners that fail closed refused to seed (two ambiguity
failures, zero writes); others seeded under their run-scoped default.

Declare the fixture-consuming account as the storyboard context owner, matching
the 3.1.x vendor_metric_catalog_precondition pattern from #8721. The
sync_accounts provisioning identity is unchanged.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant