t1336: Supervisor self-diagnosis — pipeline health, schema validation, issue tag drift#2276
Conversation
… issue tag drift detection (t1336) Add three new sanity check sections to detect systemic pipeline failures: - Section 6: Pipeline phase health — detects Phase 3 zero-eval streaks, gather_task_state errors, dispatch stalls, underutilisation - Section 7: Schema validation — verifies required columns exist in tasks table via PRAGMA (catches the exact worker_pid bug from PR #2275) - Section 8: Cross-repo issue tag truthfulness — compares GH issue labels against DB state for all managed repos Update sanity prompt to instruct AI about new sections 6-8 with appropriate action recommendations. Add Phase 3 throughput metrics (last eval/actioned, zero-eval rate) to build_health_context() so the AI reasoner has visibility into whether the lifecycle phase is actually working.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
WalkthroughTwo shell scripts in the supervisor automation toolkit were enhanced with expanded diagnostics. The ai-context.sh script now extracts Phase 3 throughput metrics from supervisor logs, while sanity-check.sh was significantly restructured to include pipeline health validation, database schema verification, and cross-repository GitHub issue tag consistency checks. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Wed Feb 25 03:46:44 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
Changes
sanity-check.sh—_build_sanity_state_snapshot()PRAGMA table_info(tasks)and verifies all required columns exist — catches the exact class of bug from PR fix: Phase 3 AI lifecycle completely broken — gather_task_state references non-existent worker_pid column #2275 whereworker_pidwas referenced after removalstatus:*) against DB task state for all managed repos, flagging driftsanity-check.sh—_build_sanity_prompt()ai-context.sh—build_health_context()Motivation
Phase 3 (ai-lifecycle) was silently broken for days because
gather_task_state()referenced a non-existentworker_pidcolumn (fixed in PR #2275). The supervisor had no way to detect this — it just saw 0 tasks evaluated and moved on. These diagnostics ensure such failures are surfaced to the AI sanity checker and reasoner.Testing
Summary by CodeRabbit
Release Notes
New Features
Improvements