Pulse/internal
rcourtman f6d31d166a feat(ai): Add multi-resource correlation detection (Phase 6)
Create internal/ai/correlation package:

1. Correlation Detector (detector.go):
   - Tracks events across resources
   - Detects when events on one resource follow events on another
   - Calculates average delay between correlated events
   - Confidence scoring based on occurrence count
   - Persists to ai_correlations.json

2. Features:
   - GetCorrelations() - All detected relationships
   - GetCorrelationsForResource() - Relationships for one resource
   - GetDependencies() - What resources depend on this one
   - GetDependsOn() - What this resource depends on
   - PredictCascade() - Predict what will be affected
   - FormatForContext() - AI-consumable summary

3. Integration:
   - Wire to alert history in router startup
   - Map alert types to correlation event types
   - Add correlation context to enriched AI context

Example AI context now includes:
'When local-zfs experiences high usage, database often follows within 5 minutes'

This enables the AI to understand infrastructure dependencies
and predict cascade failures.

All tests passing.
2025-12-12 14:26:10 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentexec refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
agentupdate feat: AI features, agent improvements, and host monitoring enhancements 2025-12-05 10:37:02 +00:00
ai feat(ai): Add multi-resource correlation detection (Phase 6) 2025-12-12 14:26:10 +00:00
alerts feat(ai): Wire alert history to pattern detector for event tracking 2025-12-12 14:16:03 +00:00
api feat(ai): Add multi-resource correlation detection (Phase 6) 2025-12-12 14:26:10 +00:00
auth refactor: Remove duplicate IsPasswordHashed from auth package 2025-12-02 17:19:07 +00:00
buffer Fix offline buffering: add tests, remove unused config, fix flaky test 2025-12-02 22:31:44 +00:00
ceph feat: AI integration, Docker metrics, RAID display, and infrastructure improvements 2025-12-09 09:29:27 +00:00
config Persist AI cost budget and allow history reset 2025-12-12 12:10:58 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
dockeragent Fix offline buffering: add tests, remove unused config, fix flaky test 2025-12-02 22:31:44 +00:00
errors refactor: Remove unreachable dead code branches 2025-12-02 14:48:57 +00:00
hostagent feat: AI integration, Docker metrics, RAID display, and infrastructure improvements 2025-12-09 09:29:27 +00:00
hostmetrics feat: AI features, agent improvements, and host monitoring enhancements 2025-12-05 10:37:02 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm perf: Pre-compile regexes in mdadm package 2025-12-02 15:11:04 +00:00
metrics AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
mock docs: Add godoc comments to more exported functions 2025-12-02 16:03:57 +00:00
models feat: AI integration, Docker metrics, RAID display, and infrastructure improvements 2025-12-09 09:29:27 +00:00
monitoring feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
notifications style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
resources feat(ai): Enhanced AI patrol system with alert triggers and history persistence 2025-12-10 21:08:22 +00:00
sensors feat: AI integration, Docker metrics, RAID display, and infrastructure improvements 2025-12-09 09:29:27 +00:00
ssh/knownhosts test: Add tests for SSH knownhosts error and path methods 2025-12-01 17:50:13 +00:00
system style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
tempproxy perf: Remove redundant fmt.Sprintf in tempproxy contains function 2025-12-02 15:24:40 +00:00
types test: add unit tests for types package 2025-11-26 14:10:21 +00:00
updates style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
utils AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
websocket refactor: Remove unreachable dead code branches 2025-12-02 14:56:35 +00:00