Skip to content

fix(testing): infer fixture ownership only from seller account scopes - #3616

Merged
bokelley merged 2 commits into
mainfrom
fix/virtual-step-seed-scope
Nov 3, 2026
Merged

bokelley merged 2 commits into
mainfrom
fix/virtual-step-seed-scope

Conversation

@bokelley

@bokelley bokelley commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

When a run supplies a brand, automatic catalog seeding currently treats runner-local assertions and accountless format/controller metadata as a second seller account. Unchanged frozen AdCP 3.0 idempotency fixtures then fail before either seed reaches the seller. Format discovery also uses the primary schema rather than the selected legacy schema, adding an account to a request that should be accountless.

Reuse the runner's existing intrinsic-task classifier for seed inference and exempt only accountless list_scenarios discovery and format-only validation from brand-default ownership inference. Rate-limit trip assertions still contribute their actual nested seller account, and genuine conflicting authored/default buyer, product-validation and custom-tool accounts still stop writes. Brand/account defaults now follow the trusted selected schema; undefined still selects the package primary. Mutating controllers retain the sandbox default their builder actually sends, including legacy versions whose schema omits the routing carrier. Existing default routing for all-accountless real requests is retained. No protocol schemas, cache pins, dependencies or package versions change.

Validation:

  • Build, lint (existing warnings only), typecheck, and 89 focused tests pass, with no skips.
  • Official MCP server plus public CLI run the untouched bundled frozen 3.0.25 idempotency storyboard; these authored bytes are identical to maintained 3.0.26 (adcp commit 40fa114a59d3f53ac6fa84fb3e64d46705a6ceba, dist/compliance/3.0.26/universal/idempotency.yaml, SHA-256 785bba2c398fa5f59ade18ec5c03056ba9f412141961a0b59b0e78f46647bd73). Programmatic execution with a run brand reproduces the reported regression; the CLI has no brand option and serves as a separate compatibility control. The catalog-only seller honestly skips unsupported buy writes.
  • Explicit indexed-schema controls cover 3.0/3.1 format discovery, primary scoped defaults, version isolation and the unchanged published 3.0 schema-validation fixture preflight. Genuine mixed buyer/controller namespaces still stop before writes.
  • Against the exact installed published 17.0.0-beta.15, eight of thirteen new behavioral cases fail, and the real branded frozen-storyboard run fails both seed operations. Ambiguity/default controls remain passing.
  • Four Claude expert reviews (DX, protocol, code, security) and three Codex persona reviews approve the final source; each stack independently verifies the 70-test affected subset. The prescribed Codex read-only sandbox lacked bwrap; the same personas ran with a read-only mandate through a working executor, and before/after source state hashes match.

Stable 16.x will receive a separate main-first backport after this source merges. Publication and cache adoption are coordinated separately.

The normal pre-push hook passed formatting, typechecking and the complete library build, including bundled schemas. Final passing tests and reviews use the completed artifact.

The source is rebased onto the independently reviewed webhook-version fix at 95a61bf707ef05255410eb40ff31c379354004e9; its seven-file seeding patch is unchanged by the rebase.

@bokelley
bokelley marked this pull request as ready for review November 3, 2026 16:39
@bokelley
bokelley marked this pull request as draft November 3, 2026 16:42
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Nov 3, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

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 patch with no blocking or medium findings.

Fixes storyboard controller-seeding scope so runner-local tasks (probes, webhook/rate-limit assertions, accountless controller-capability discovery, format-only validate_input) no longer synthesize a second catalog account from the run brand, while rate-limit trips still contribute their nested seller account and genuine mixed-account ambiguity still fails before seeding.

Checked:

  • Witness-not-translator: change narrows seeding scope rather than fabricating/reshaping wire data — no violation.
  • format-only target-kind list verified exhaustive against ValidateInputRequestSchema (product correctly excluded).
  • isRunnerOwnedTask extraction leaves no dangling imports in runner.ts.
  • Frozen 3.0 corpus is SHA-256-pinned in the regression test; new tests cover the added branches.
  • Changeset present and patch-level is appropriate for the behavioral fix.

Decision path: no critical/high/medium findings; gated_paths false; high_risk false; no team gate; no prior decision. Rows 1–8 do not fire → row 9 approve. (review_decision is REVIEW_REQUIRED, but with gated_paths false this does not force escalation.)

@bokelley
bokelley force-pushed the fix/virtual-step-seed-scope branch from 87f3d53 to 137f889 Compare November 3, 2026 16:55
@bokelley
bokelley marked this pull request as ready for review November 3, 2026 16:57

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

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 pass, no blocking findings.

Checked against the decision table top-down:

  • No critical/high findings (row 1 n/a).
  • gated_paths: false (row 2 n/a).
  • high_risk: false, no deletions (rows 3, 5 n/a).
  • No medium findings in data-loss/schema/infra (row 4 n/a).
  • Prior decision was approve, not escalate (row 6 n/a).
  • No no-auto-approve team match (row 7 n/a).
  • Zero medium findings, well under the 3+ threshold (row 8 n/a).
  • Falls through to row 9 → approve.

The PR scopes storyboard controller fixture-seeding to the real catalog owner. Reviewer confirmed: isRunnerOwnedTask is a clean pure extraction with no orphaned imports or cycles; seeding.ts flow correctly handles PROBE_TASKS, rate-limit-trip substitution, and default/authored ambiguity before writes; account-policy.ts correctly threads options.adcpVersion. Witness-not-translator rule not implicated (internal seed-scope, not wire). Changeset present and patch is appropriate (internal helpers, no exported-API/wire-shape change). New tests include a sha256 corpus pin and per-version authority asserts.

Note: review_decision is REVIEW_REQUIRED, but gated_paths is false and no team gate applies, so no hard gate blocks approval.

@bokelley
bokelley merged commit 768d4dd into main Nov 3, 2026
47 checks passed
@bokelley
bokelley deleted the fix/virtual-step-seed-scope branch November 3, 2026 17:12
bokelley added a commit that referenced this pull request Nov 3, 2026
…#3616) (#3619)

* fix(testing): infer fixture ownership only from seller account scopes

* fix(testing): respect selected schemas when resolving seed accounts

(cherry picked from commit 768d4dd)
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