Repository navigation
test(training-agent): fix installment-refusal test broken by #9005 (main is red) - #9036
Conversation
…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]>
There was a problem hiding this comment.
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.
main is red.
server/tests/unit/assignment-operations.test.ts > refuses installment-scoped assignmentshas 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:
format_option_reffor products whoseformat_optionsshare aformat_kind.The test's setup assign of
hero_v1(onpinnacle_news_display_premium) is now rejected withVALIDATION_ERROR ... format_option_ref_required, so the finalapprovalsassertion gets[]instead of['hero_v1'].Fix
This is a test-only change: pass the package's
formatOptionIdfrombuyWithPackageto both creatives, as every other test in the file already does. The behaviour under test, refusinginstallment_refswithUNSUPPORTED_FEATURE, is unchanged.npx vitest run server/tests/unit/assignment-operations.test.ts: 42 passed (was 41/42 on main).🤖 Generated with Claude Code