Skip to content

fix(inventory): add depleted to open_item reject list#386

Merged
robotlearning123 merged 1 commit intomainfrom
fix/inventory-guards-v2
Mar 29, 2026
Merged

fix(inventory): add depleted to open_item reject list#386
robotlearning123 merged 1 commit intomainfrom
fix/inventory-guards-v2

Conversation

@robotlearning123
Copy link
Copy Markdown
Member

Summary

  • Add InventoryStatus.depleted to open_item() status guard
  • Depleted items (quantity=0) should not be openable

Replaces #365

Test plan

  • tests/test_inventory_guards.py verifies depleted items raise ValidationError

@robotlearning123 robotlearning123 enabled auto-merge (squash) March 29, 2026 04:43
@robotlearning123 robotlearning123 force-pushed the fix/inventory-guards-v2 branch 3 times, most recently from 7a5135f to 4bd93e0 Compare March 29, 2026 05:37
@github-actions github-actions Bot added the ci-verified All required CI checks have passed label Mar 29, 2026
Depleted items (quantity=0) should not be openable. Add
InventoryStatus.depleted to the status guard in open_item().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@robotlearning123 robotlearning123 force-pushed the fix/inventory-guards-v2 branch from 4bd93e0 to 048b1ab Compare March 29, 2026 05:59
@robotlearning123 robotlearning123 merged commit bee969e into main Mar 29, 2026
22 checks passed
@robotlearning123 robotlearning123 deleted the fix/inventory-guards-v2 branch March 29, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-verified All required CI checks have passed python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants