Repository navigation
fix(projection): scope route_period reconciliation estimates to their route - #50
Conversation
… route A route_period observation reconciles one route, but the estimate side summed every attempt of the provider key in the period. On fal all routes share the 'fal' connection key, so one h3 bucket inherited the wan attempts' estimate. Period rows now carry scope, and route_period rows match attempts on providerKey plus route modelKey while provider_period keeps summing the whole provider. Regression test asserts both behaviours with a second route's attempt in the same window.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. 📝 WalkthroughWalkthroughReconciliation period rows now include the event scope. Route-period cost estimates match attempt costs by model key; provider-period estimates continue to include all provider attempt costs in the period. ChangesReconciliation estimate scope
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The route-scoped estimate change has no identified merge-blocking issue; it is ready for normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Follow-up to #49. A
route_periodobservation reconciles one route, but the estimate side summed every attempt of the provider key in the period. On fal all routes share the same connection key, so a single h3 bucket inherited the wan attempts' estimate and the delta lied.scope.route_periodrows match attempt-terminal costs on providerKey and route modelKey;provider_periodrows keep summing the whole provider.pnpm test:ops:v1andpnpm typecheckgreen.Summary by CodeRabbit