feat: add evidence-bounded playbook diagnosis - #472
Conversation
Preserve legacy verdicts and bind optional diagnosis to evaluated content. Serialize SQLite schema upgrades across processes and verify rollback and concurrent startup.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
Included review availability: 1 review is currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughThe change adds validated playbook diagnosis to retrieved-learning evaluations. It tracks evidence completeness and playbook digests, updates the evaluation prompt, persists the new fields in SQLite, and adds migration, concurrency, rollback, and round-trip tests. ChangesPlaybook diagnosis evaluation
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The PR adds optional diagnosis data and concurrency-safe SQLite migration behavior without any supplied current-head merge-blocking risk; it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant AgentSuccessEvaluation
participant retrieved_learning_evaluator
participant PlaybookDiagnosis
participant SQLiteStorage
participant retrieved_learning_evaluation
AgentSuccessEvaluation->>retrieved_learning_evaluator: evaluate transcript and retrieved learning
retrieved_learning_evaluator->>PlaybookDiagnosis: validate diagnosis and evidence IDs
retrieved_learning_evaluator->>SQLiteStorage: persist diagnosis, digest, and completeness
SQLiteStorage->>retrieved_learning_evaluation: insert evaluation row
SQLiteStorage-->>AgentSuccessEvaluation: reconstruct evaluation result
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 25 functions across 10 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Your free Security trial is over. An organization admin can activate Security or dismiss this notice. Comment |
Summary
Changes
BEGIN IMMEDIATEbefore schema inspection, and roll back failed column additions.Test Plan
duplicate column name: diagnosisbefore the fix and passes afterward.Compatibility
No forced evaluation backfill or evaluation-version bump. The SQLite columns are added on startup, leaving historical rows intact.
Summary by CodeRabbit
New Features
Bug Fixes
Tests