Fix/Add ReasoningResult confidence_tier/is_actionable computed fields + boundary tests#118
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)
📝 WalkthroughWalkthroughThis PR refactors ChangesComputed fields implementation and testing
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
|
@Devnil434 , please review |
|
I checked both failing CI jobs on this PR. Phase 3 failed because services/init.py eagerly imports tracking, which pulls unrelated tracking imports into memory tests. Phase 4 failed on Ruff errors in the reasoning package.\n\nI prepared a fix branch here: https://github.com/kunal-9090/Eagle/tree/codex/fix-pr-118-ci\n\nFix included:\n- stop eager tracking imports in services/init.py\n- correct services/tracking/tracker.py to import settings from libs.config.settings\n- clean Ruff issues in services/reasoning/vlm.py, services/reasoning/pipeline.py, and services/reasoning/scene_graph.py\n\nLocal verification passes for both lint commands:\n- python -m ruff check services/memory/ libs/schemas/memory.py services/init.py services/tracking/tracker.py\n- python -m ruff check services/reasoning/ libs/schemas/reasoning.py libs/schemas/memory.py services/init.py services/tracking/tracker.py\n\nLocal pytest is blocked only because this machine lacks akeredis, which the GitHub workflow installs. I could not push directly to this contributor fork; GitHub returned 403 for kunal-9090. |
Fixes #117
What changed
ReasoningResult:confidence_tier: "high" (>= 0.75), "medium" (>= 0.50), otherwise "low"is_actionable: True only whenlabel == "Suspicious"andconfidence >= 0.65@computed_fieldso they are included inmodel_dump(mode="json").tests/test_reasoning_schema.pywith boundary + serialization coverage.Tests
is_actionablethreshold + label behaviormodel_dump(mode="json")Summary by CodeRabbit
Refactor
Tests