Repository navigation
fix(compliance): add accounts fixture to package_correlation_legacy_fallback storyboard - #7539
Conversation
…relation_legacy_fallback storyboards Seed fixture accounts in idempotency and package_correlation_legacy_fallback storyboards so account-scoped requests resolve before attribution is checked. A conformant require_operator_auth: false seller correctly returns ACCOUNT_NOT_FOUND when the account has not been declared via sync_accounts. Both storyboards issue account-scoped requests (create_media_buy / get_media_buys) against acmeoutdoor.example / pinnacle-agency.example without previously declaring that account, causing ordering-dependent false failures on conformant sellers. Fix: add accounts: fixture entries to both storyboards so the comply-test-controller seeds the account before any step runs. Fixes #7537 Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01CeoMbbduZwypDuJdj9X76T
…egression in governance and creative tenants Universal storyboards run under the shared public test token (storyboard-ci-token) which maps to the static:public:shared principal. The seed_account handler guards this principal with durableAccountIdentityError and returns AUTH_REQUIRED, causing fixture_unavailable → all storyboard steps skipped. Removing the accounts fixture restores the 3 passing steps (get_capabilities + 2 invariants) in governance and creative tenants. The package_correlation_legacy_fallback storyboard keeps its accounts fixture because it runs only in the sales tenant which uses a dedicated token. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01CeoMbbduZwypDuJdj9X76T
|
Sales storyboard orchestrator (2/8) failed on commit The Generated by Claude Code |
|
Tested this branch against our seller (a conformant
|
Adds the `acct_idempotency_acme_outdoor` accounts fixture entry to seed `acmeoutdoor.example` / `pinnacle-agency.example` via sync_accounts before any step runs. Fixes the ACCOUNT_NOT_FOUND failure on `idempotency/create_media_buy_initial` on cold sessions reported by @idemidenko. The package_correlation_legacy_fallback fix was already present on this branch; this commit completes the second half of the fix described in #7537. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01CYXQTpjRZ72syihGBqHc8S
|
Good catch — the The fixtures:
accounts:
- account_id: "acct_idempotency_acme_outdoor"
brand:
domain: "acmeoutdoor.example"
operator: "pinnacle-agency.example"
billing: "operator"
status: "active"
sandbox: trueHappy to hear the result on a cold session when you get a chance to re-run. Generated by Claude Code |
|
Cold-session verification:
Build — One flag: commit Generated by Claude Code |
…e/creative CI The fixtures.accounts block in a universal storyboard triggers seed_account under the shared public CI token (storyboard-ci-token → static:public:shared). The seed_account handler's durableAccountIdentityError guard returns AUTH_REQUIRED for this principal, causing fixture_unavailable → all 12 storyboard steps shown as skipped. This dropped governance from 160→157 passed and creative from 209→206 passed (both below their CI floors). The package_correlation_legacy_fallback.yaml accounts fixture is correct and safe — it only runs in the sales tenant which uses a dedicated token. The idempotency.yaml require_operator_auth: false false-failure issue requires an inline sync_accounts step (not a fixtures.accounts block) to work around the shared-token restriction in universal storyboards. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01CeoMbbduZwypDuJdj9X76T
|
|
Flag confirmed, and The root cause is right: The fix direction in That leaves the PR partially scoped: Generated by Claude Code |
|
Agreed on scope. Keeping this PR as-is (closes the Generated by Claude Code |
…geset description idempotency.yaml was not changed in this PR. The seed_account handler returns AUTH_REQUIRED for the static:public:shared principal used by universal storyboards, causing fixture_unavailable and skipping all 12 idempotency steps in governance and creative tenants. The correct fix requires an inline sync_accounts step, tracked in the parent issue. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_0162zReFCWmm1NKqgtZumKKa
|
Confirmed — Fixed:
The Generated by Claude Code |
|
PR title and body updated to match the narrowed scope: Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — additive compliance-fixture fix with a correct in-scope changeset.
What I checked
- Diff is 2 files, additive only (18 additions, 0 deletions): an
accounts:block plusaccount:attribution inpackage_correlation_legacy_fallback.yaml, and a matching patch changeset. - No changes to
static/schemas/source/**, so no schema↔docs coherence or oneOf discriminator concerns apply. - Changeset is present and in scope for a compliance-asset change; no
package.jsonversion edit; nodist/**released-artifact modification. - Not based on
3.1.x; no breaking-class / wire-shape change — non-escalating. gated_paths: false,high_risk: false, no no-auto-approve team match, first review.
Medium findings
static/compliance/source/protocols/media-buy/scenarios/package_correlation_legacy_fallback.yaml— seeded account carriessandbox:true(part of the natural key) while themedia_buyaccount:andsample_request.accountomit it, so the targetedACCOUNT_NOT_FOUNDfalse-failure may persist unless all three references agree. Worth a look, but non-blocking.
One medium finding, no blocking or escalation triggers (rows 1–8 do not fire) → row 9 approve.
…e_request
The accounts fixture seeds the account with sandbox: true, which participates
in the buyer-declared natural key per sync-accounts-request.json. The account:
field on the media_buy fixture and the sample_request.account both omitted it,
causing a natural-key mismatch — the controller would query
{acmeoutdoor.example, pinnacle-agency.example} (no sandbox) against a seeded
account keyed {…, sandbox: true}, leaving the ACCOUNT_NOT_FOUND false-failure
this PR targets intact.
Fixes the mismatch flagged in review by keeping all three references consistent.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CeoMbbduZwypDuJdj9X76T
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass, no blocking or medium findings.
Checked:
- The diff adds
sandbox: trueat three consistent sites inpackage_correlation_legacy_fallback.yaml(accounts fixture, media_buys account attribution, and the get_media_buys sample_request account), aligning the account natural key (brand + operator + sandbox) so it resolves to one seeded sandbox account and fixes the ACCOUNT_NOT_FOUND path. - All uses are schema-valid per account-ref.json and sync-accounts-request.json; no schema source or normative docs touched, so no schema↔docs coherence concern.
- The
patchchangeset is present and correctly scoped for additive compliance-fixture data. - No high-risk paths, no gated paths, no author team gate. Not a breaking-class protocol change.
No critical/high/medium findings — falls through to row 9 (approve).
|
The only failing test was This is a network connectivity flake against a live external endpoint. I've re-triggered the failed jobs. All other checks are green including the critical governance and creative storyboard floors. Generated by Claude Code |
Summary
Refs #7537 (Instance 2 only — Instance 1 tracked as follow-up, see below)
media-buy/scenarios/package_correlation_legacy_fallback.yamlfails on conformantrequire_operator_auth: falsesellers because it issues account-scoped requests without first declaring the account. A conformant seller correctly returnsACCOUNT_NOT_FOUND, causing an ordering-dependent false failure.Affected storyboard:
media-buy/scenarios/package_correlation_legacy_fallback.yaml—get_media_buysstep references the account pair with no prior declaration (Instance 2 in Storyboards issue account-scoped requests for an account no step declares (idempotency, package_correlation_legacy_fallback) #7537)Not in this PR:
universal/idempotency.yaml(Instance 1 in Storyboards issue account-scoped requests for an account no step declares (idempotency, package_correlation_legacy_fallback) #7537) —fixtures.accountscannot be used in universal storyboards because theseed_accounthandler returnsAUTH_REQUIREDfor thestatic:public:sharedprincipal →fixture_unavailable→ all steps skip. The correct fix is an inlinesync_accountsstep using a credential the universal storyboard runner already holds; tracked as follow-up on Storyboards issue account-scoped requests for an account no step declares (idempotency, package_correlation_legacy_fallback) #7537.Fix: Add
accounts:fixture entry topackage_correlation_legacy_fallback.yamlso the comply-test-controller seeds the account before any step runs. Also adds anaccount:field on themedia_buysfixture entry so the seeded buy is attributed to the correct account.Changes
static/compliance/source/protocols/media-buy/scenarios/package_correlation_legacy_fallback.yaml— addedfixtures.accountsblock withacct_legacy_package_correlationentry; addedaccount:field on themedia_buysfixture entry.changeset/fix-account-fixture-seeding.md— patch changeset entry (required by CIchangeset-check.ymlforstatic/compliance/source/paths)Non-breaking justification
Fixture additions only. No protocol schema changes, no storyboard step logic changes, no existing validation removed. Sellers that already pass this storyboard continue to pass.
Pre-PR review sign-offs
account_id,brand.domain,operator,billing: "operator",status,sandbox) matchessync-accounts-request.jsonschema;acct_prefix follows repo convention; two-layer fix (accounts entry + account field on media_buy) is correctpackage.json/package-lock.json/.github/**edits; diff is purely additive YAML fixture dataCI note
Pre-commit hook failures in this environment are pre-existing and unrelated to this diff:
tests/unit/addie/matched-pair-ni/exact-inference.test.ts— pre-existing Addie stats inference assertion failure onmaintests/unit/supertest-conductor-loopback.test.ts—EAFNOSUPPORT: address family not supported ::1(IPv6 unavailable in remote execution sandbox)Neither test file is touched by this PR. GitHub CI should pass on these files in the standard runner environment.
🤖 Generated with Claude Code
https://claude.ai/code/session_01B4LhzDrTs9zY1cd4fpozT7