fix: address critical and major issues from comprehensive testing#36
fix: address critical and major issues from comprehensive testing#36
Conversation
Critical: - Fix XSS in HTML report onclick handler (escJs instead of esc) - Fix MCP logger corrupting stdout JSON-RPC (route to stderr) Major: - Log skipped conversations in triage_check instead of silent catch - Add missing axiom/langfuse check in triage_explain trace source gate - Exclude truncationScore from averageMetrics (binary flag skewed quality) - Add zero-conversations guard in CLI analyzeCommand - Log recommendation generation failures in MCP tools Minor: - Clamp rootCauseTurn to valid range in diagnosis and MCP helpers - Use validateEnum in individualCheck (matching batchCheck) - Add readOnlyHint annotations to 4 read-only MCP tools - Expand test mock conversation to match rootCauseTurn fixture Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe PR introduces validation improvements and error handling enhancements across CLI, evaluation, and MCP modules. Changes include clamping rootCauseTurn values, adding enum validation, excluding metrics from averaging, expanding logging capabilities, adding tool read-only annotations, sanitizing HTML output, and updating test fixtures. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ 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 |
Summary
onclickhandler — useescJs()for JavaScript context escapingtriage_checkwith counter in resultstriage_explainsource gateaverageMetricsfix — exclude binarytruncationScorefrom quality averagerootCauseTurnclamping — prevent out-of-bounds turn index from LLM responsesfailureTypevalidation — usevalidateEnumconsistently in both batch and individual pathsreadOnlyHint: trueto 4 read-only toolscatch {}with logged warnings in MCP toolsTest plan
tsc --noEmit)🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes