Repository navigation
fix(testing): infer fixture ownership only from seller account scopes - #3616
Conversation
There was a problem hiding this comment.
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.)
87f3d53 to
137f889
Compare
There was a problem hiding this comment.
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, notescalate(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.
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_scenariosdiscovery 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:
adcpcommit40fa114a59d3f53ac6fa84fb3e64d46705a6ceba,dist/compliance/3.0.26/universal/idempotency.yaml, SHA-256785bba2c398fa5f59ade18ec5c03056ba9f412141961a0b59b0e78f46647bd73). 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.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.