Skip to content

test(training-agent): fix installment-refusal test broken by #9005 (main is red) - #9036

Merged
bokelley merged 1 commit into
mainfrom
fix/assignment-ops-installment-test-format-ref
Nov 15, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/assignment-ops-installment-test-format-ref

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

main is red. server/tests/unit/assignment-operations.test.ts > refuses installment-scoped assignments has failed since #9005 merged. This blocks every open PR through the required "TypeScript Build" rollup; for example, #9035 and #9028 hit it.

Cause

Two PRs were each green alone and conflict together:

The test's setup assign of hero_v1 (on pinnacle_news_display_premium) is now rejected with VALIDATION_ERROR ... format_option_ref_required, so the final approvals assertion gets [] instead of ['hero_v1'].

Fix

This is a test-only change: pass the package's formatOptionId from buyWithPackage to both creatives, as every other test in the file already does. The behaviour under test, refusing installment_refs with UNSUPPORTED_FEATURE, is unchanged.

npx vitest run server/tests/unit/assignment-operations.test.ts: 42 passed (was 41/42 on main).

🤖 Generated with Claude Code

…ormat_option_ref

#8986 added 'refuses installment-scoped assignments' while #9005 was open.
#9005 then made the training agent require format_option_ref for products
whose format_options share a format_kind, so the test's setup assign of
hero_v1 is now rejected with format_option_ref_required and the final
approvals assertion sees []. Each PR was green on its own; main has failed
this test since #9005 merged. Pass the package's formatOptionId like the
rest of the file does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 test-only fix.

This PR touches a single file (server/tests/unit/assignment-operations.test.ts, +2/-2), threading buyWithPackage's formatOptionId into both hero creatives so the setup assign clears the format_option_ref_required check (#9005) that had broken the installment-refusal test (#8986). The assertions under test (installment_refs refused with UNSUPPORTED_FEATURE, nothing applied) are unchanged, so it unblocks a red main without altering coverage intent.

No protocol surface touched (no static/schemas/source/**, docs, dist artifacts, or migrations), so no changeset is owed and no schema↔docs/oneOf/immutability concerns apply. No reviewer findings. Not high-risk, no gated paths, no author team gate. Falls through to row 9.

@bokelley
bokelley merged commit bc2714a into main Nov 15, 2026
32 checks passed
@bokelley
bokelley deleted the fix/assignment-ops-installment-test-format-ref branch November 15, 2026 16:06
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