Scenario Builder: a donor's last battery can move to a base #34
Loading…
Reference in a new issue
No description provided.
Delete branch "vinny/builder-battery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A Scenario Builder deployment no longer fails when a base's air defence takes the last battery of a donor package.
1 validation error for RoleCount count: Input should be greater than or equal to 1.moved_batterydecremented the donor item's count before removing an emptied item. The contracts validate on assignment, socount = 0raised first.test_a_donors_last_battery_moves_and_its_package_goes.🤖 Generated with Claude Code
Base air defence moves a battery from a crowded site to a base with none. When the donor package held a single battery, item.count -= 1 assigned 0, which the RoleCount contract (validated on assignment, count >= 1) refused, and the whole deployment failed ("Input should be greater than or equal to 1"), live on 2026-10-14 for the Baltic laboratory plan. The last battery now leaves its package instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>