Harden chat fallback observability and acceptance coverage (Vibe Kanban)#220
Harden chat fallback observability and acceptance coverage (Vibe Kanban)#220
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds passing of Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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
This PR hardens the VoltAgent-backed primary text path by improving per-request fallback observability and adding acceptance coverage for normal and degraded orchestration flows.
What Changed
chat.orchestration.timinglogging inpackages/backend/src/services/chatOrchestrator.tswith explicit operator-facing fields:toolName,toolReasonCode,toolRequestReasonCodefallbackReasonsresponseId,responseAction,responseModality,responseProvenance,responseRiskTier,responseModelVersion,responseCitationCount,responseMessageLengthpackages/backend/test/chatOrchestrator.test.tsto lock behavior:Why These Changes Were Made
The pilot goal is to validate readiness of the existing VoltAgent primary text path without rebuilding infrastructure. The key remaining hardening gap was fast operator triage: being able to answer, from one place, what happened, why fallback occurred, and what the user received.
These updates make fail-open decisions explicit and reviewable at request granularity, while preserving backend ownership of provenance/trace semantics and runtime accountability.
Important Implementation Details
This PR was written using Vibe Kanban
Summary by CodeRabbit
Chores
Tests