[codex] Preserve marketplace offer prices in policy fields - #20
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesMarketplace price precedence
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
price_in/price_outobservation prefer candidate marketplace offer prices over provider-family runtime metricsRoot cause
Σ_pol field observation read
ctx.state.ema[provider|family].price_*beforecandidate.price_*. For marketplace sources such as AntSeed, that collapsed multiple seller offers for the same family into one provider-family price, so policies could not actually select the cheapest seller/provider.Validation
lua -e 'package.path = package.path .. ";./tests/unit/?.lua"; dofile("tests/unit/price_enrichment.lua")'lua tests/run_lua.lua(564 passed, 0 failed, 0 errors)Summary by CodeRabbit