Claude Code 从 Sai 那里接收结构化复制步骤、屏幕截图和错误上下文。它没有猜测可能出了什么问题,而是确切地知道:
哪个页面受到影响
哪个操作顺序触发了错误
预期的行为应该是什么
实际行为是什么
它能生成有针对性的修复方案,而不是推测性的建议。
第 7 步:Sai 重新测试修复程序
在 Claude Code 修补代码后,Sai 再次运行相同的测试序列:
申请优惠券 → 移除商品 → 查看总金额
验证总数不再为负数
捕获之前/之后的屏幕截图
检查 Sentry 中是否有新错误
第 8 步:向 Slack/GitHub 提交结构化报告
最终输出是发布到您团队频道的结构化质量保证报告:
Sai QA Review: PR #247 — Coupon Discount Logic
Status: ✅ Fixed and verified
Issue found:
Cart total became negative when removing items after applying coupon.
Root cause:
Coupon discount was applied as fixed amount without
recalculating against updated cart total.
Fix applied:
Added cap logic — discount cannot exceed current cart subtotal.
Verification:
- Before fix: Total = -$1.00 after removing item [screenshot]
- After fix: Total = $0.00, coupon capped correctly [screenshot]
- Sentry: No new errors
- Checkout flow: Completes successfully
When a PR modifies files in /src/checkout/:
1. Open preview deployment URL
2. Log inwith test account
3. Add 3 items to cart
4. Apply coupon TESTCOUPON
5. Modify quantities
6. Remove one item
7. Proceed to checkout
8. Screenshot each step
9. Report any total that is negative or mismatched