Skip to content

SHOP-4821: regression test — checkout must not oversell under existing allocations#1

Open
Benjaminfranck wants to merge 2 commits into
mainfrom
fix/SHOP-4821-oversell-regression
Open

SHOP-4821: regression test — checkout must not oversell under existing allocations#1
Benjaminfranck wants to merge 2 commits into
mainfrom
fix/SHOP-4821-oversell-regression

Conversation

@Benjaminfranck

Copy link
Copy Markdown
Owner

Resolves work item SHOP-4821 (oversell on concurrent checkout).

Adds a regression test enforcing lesson L-4821 from Port's Context Lake: availability on the
allocate_stocks path must be computed from committed allocations + reservations for every
select_for_update-locked row, so concurrent last-unit checkouts cannot both succeed.

  • Spec: SPEC-4821 · Plan: PLAN-4821 · Lesson: L-4821
  • Authored by the ShopFlow autonomous SDLC agent, reviewed adversarially, human-gated in Port.

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