feat(observer): complete coverage trend enrichment + alert routing - #332
Merged
Conversation
Wires the last 5 built-but-unwired coverage methods into the live _record_coverage_trend path: - calculate_trend_slope / calculate_volatility_score / get_historical_data — enrich each trend record with direction, stability, and history depth so autonomy can tell a noisy blip from a sustained decline. - categorize_alert + AlertChannelConfig.get_routes_for_alert — every generated alert is now typed (category) and routed to its delivery channels (default → operator), making alerts actionable rather than just recorded. Prunes all 5 from audit.d12_baseline; the D12/DC10 gate confirms 0 — proof they're reachable from production, not baseline-hidden. Adds a test driving the below-threshold → categorize+route path. Audit clean; observer suite 1390 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the observer-plane coverage subsystem by wiring its last 5
built-but-unwired public methods into the live
_record_coverage_trendpath(the engine #326 began driving):
calculate_trend_slope/calculate_volatility_score/get_historical_data— each trend record now carries direction (%/day), stability, and history
depth, so downstream autonomy can distinguish a noisy blip from a sustained
decline instead of seeing a bare point.
categorize_alert+AlertChannelConfig.get_routes_for_alert— everygenerated alert is typed (category) and routed to its delivery channels
(default →
operator), making alerts actionable rather than merely recorded.Ratchet proof: all 5 names pruned from
audit.d12_baseline; the D12/DC10gate reports 0 — they're genuinely reachable from production now, not
baseline-hidden. New test drives the below-threshold → categorize+route path.
Audit clean; observer suite 1390 passed.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
🤖 Generated with Claude Code