CodePulse v2.1.25 — Session Intelligence Digest
Enriched 'Claude Ready' cards with file heat map, test cycle history, bash health, and risk-based QA triggers — all powered by the /loop watchdog.
New Features
- Session Intelligence Digest: When Claude finishes a task and enters
wait_for_instructions, the/loopwatchdog evaluates the session risk score. Medium-risk sessions (score ≥16) receive an enriched digest card showing file heat map, test cycle sequence, bash failure rate, and a risk assessment. High-risk sessions (score ≥31) auto-trigger T4 QA verification. - Digest Card Buttons: Medium-risk cards offer three actions:
[▶ Continue](resume session),[🔍 Run QA Check](manually trigger T4 verification), and[⏹ End Session](stop Claude). High-risk cards show[🔍 QA in Progress...]as T4 runs automatically. getDigestSnapshot()API: New method onSessionIntelligenceEnginereturns a structured snapshot with risk score, file heat map (top 5 by edit count), test cycle sequence (last 10), bash health metrics, and scope drift detection.
Improvements
- Configurable Thresholds: Three new config fields control digest behavior:
SESSION_DIGEST_ENABLED,SESSION_DIGEST_MIN_RISK(default 16), andSESSION_DIGEST_AUTO_QA_THRESHOLD(default 31). Startup validation warns when thresholds are inverted. - TCVF Dependency Warning: Startup now warns when
SESSION_DIGEST_ENABLED=truebutTCVF_ENABLED=false— digests require TCVF intelligence data to compute risk scores. - Idempotent Digest Delivery: Only one digest card per MCP wait cycle. The
digestSentForWaitIdsset prevents duplicates and is cleaned up in all 4 disposal paths.
Technical
sessionIntelligencefield added toGET /mcp/statusresponse for external watchdog consumption.session_digesttype added toPOST /notifywith threshold gating, idempotency, and per-waitId tracking.- Idempotency marked after successful callback (not before try) to prevent poisoning on transient Telegram failures.
- 12 new tests covering snapshot generation, notify flow, idempotency, and threshold behavior.