You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(billing): re-apply lost C.2 review nits (warn-on-unknown-priceId + 4 hardening)
5 Copilot review findings from PR #3743 (#1250 P0) were silently lost because
a controller-side fix commit was never pushed to origin before the squash-merge.
Re-applied fixes:
1. JSDoc for buildPriceIdToPlanMap: accurate description with @returns tag
2. resolvePlan: warn log when priceId not in map and metadata empty (operationally
critical — same silent-free-downgrade shape as the P0 it was meant to prevent)
3. cancel_at truthy check → typeof === 'number' (prevents cancel_at=0 being skipped)
4. previousPlan: validatePlan() before comparison (rejects stale/invalid metadata values)
5. Test comment: corrects misleading "retryWithBackoff setTimeout suppression" claim
Refs: #3743, plan 2026-05-30-trawl-devkit-perfect-alignment.md
0 commit comments