Repository navigation
docs(cli): correct break-even and region filter notes - #2200
Conversation
…e guard an invariant Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 20 minutes for your next included review. View limit details
Comment |
|
Independent review (claude-opus-5-5) of cd9c8ca: APPROVE No blocking findings. Docs: both corrections match the code.
Panic in Returning an error would need new plumbing through Optional simplification: call Evidence:
|
Follow-ups from the review of #2197.
docs/cli/filtering.md: break-even is infinite only when net savings are at or below-upfront/term; net 0 gives break-even equal to the term.--include/exclude-regionsnarrow only EC2 Instance Savings Plans; Compute, SageMaker and Database plans skip the region filter (shouldIncludeRecommendationRegion).resizeAfterExclusion: the error branch aftercommon.ResizeCountwas unreachable (newCount is max(0, Count-excluded) with excluded > 0, so it is always in [1, Count] here) and logged and dropped. It is now an explicit invariant panic, so a broken invariant cannot produce a count with unscaled money.Tests: the existing extended-support adjustment tests and
ScalesMoneyWithCountpass.🤖 Generated with Claude Code