Warehouse Item Still Appears in Its Old Bin After Moving
Level 2 · node · Data · Secondary location index not cleared on move
Scenario
A fictional parts warehouse stores each item's current bin and maintains a secondary index for searching items by bin. Moving an item updates its detail view, but searching the old bin still returns the item. This makes the inventory appear to occupy two locations at once.
Requirements
When moving an item, remove it from the old bin index and add it exactly once to the new bin index. Moving to the same bin must not introduce duplicates. Reject moves for unknown items.
Acceptance criteria
- Item details show the new bin after moving.
- The old bin no longer lists the moved item.
- The new bin lists the item exactly once.
- Moving again to the same bin does not duplicate an index entry.