Pulse/pkg/discovery
rcourtman 88d419dd5b feat(ai): Add enriched context with historical trends and predictions
Phase 1 of Pulse AI differentiation:

- Create internal/ai/context package with types, trends, builder, formatter
- Implement linear regression for trend computation (growing/declining/stable/volatile)
- Add storage capacity predictions (predicts days until 90% and 100%)
- Wire MetricsHistory from monitor to patrol service
- Update patrol to use buildEnrichedContext instead of basic summary
- Update patrol prompt to reference trend indicators and predictions

This gives the AI awareness of historical patterns, enabling it to:
- Identify resources with concerning growth rates
- Predict capacity exhaustion before it happens
- Distinguish between stable high usage vs growing problems
- Provide more actionable, time-aware insights

All tests passing. Falls back to basic summary if metrics history unavailable.
2025-12-12 09:45:57 +00:00
..
envdetect feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
discovery.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
discovery_test.go Add unit tests for cloneProfile and clonePhase functions in discovery 2025-12-01 01:51:54 +00:00
probe_test_helpers.go feat: unify and improve Proxmox discovery/scanning architecture 2025-10-21 13:09:41 +00:00