Skip to content

feat(seller): multi-item carts on the deterministic path - #27

Merged
abhay-codes07 merged 1 commit into
mainfrom
feat/multi-sku-cart
Sep 5, 2026
Merged

feat(seller): multi-item carts on the deterministic path#27
abhay-codes07 merged 1 commit into
mainfrom
feat/multi-sku-cart

Conversation

@abhay-codes07

Copy link
Copy Markdown
Owner

feat(seller): multi-item carts on the deterministic path

The real model already quotes multi-item requests ("5 kg rice and 2 kg
dal" -> two lines) because the quote tool accepts lines[]. The offline
proposer was single-SKU, so the model-down fallback quoted only the
first item. It now parses a multi-item request into cart lines and
quotes them all, matching the real model.

Strictly additive: _parse_multi_lines returns [] unless at least two
segments (split on and/,/&/aur/और) each yield a distinct product with an
explicit quantity, so every single-item request takes the unchanged
single-SKU path. The 200-task simulator (single-SKU by construction) is
unaffected. New test covers both the multi-item and the single-item case.

92 tests, ruff clean.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BLrj9TWybDCNw1mWxZgAks

The real model already quotes multi-item requests ("5 kg rice and 2 kg
dal" -> two lines) because the quote tool accepts lines[]. The offline
proposer was single-SKU, so the model-down fallback quoted only the
first item. It now parses a multi-item request into cart lines and
quotes them all, matching the real model.

Strictly additive: _parse_multi_lines returns [] unless at least two
segments (split on and/,/&/aur/और) each yield a distinct product with an
explicit quantity, so every single-item request takes the unchanged
single-SKU path. The 200-task simulator (single-SKU by construction) is
unaffected. New test covers both the multi-item and the single-item case.

92 tests, ruff clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLrj9TWybDCNw1mWxZgAks
Copilot AI lite review requested due to automatic review settings September 5, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@abhay-codes07
abhay-codes07 merged commit 6fe19d5 into main Sep 5, 2026
2 checks passed
@abhay-codes07
abhay-codes07 deleted the feat/multi-sku-cart branch September 5, 2026 12:22
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.

2 participants