Pulse/internal/ai
rcourtman f0b983667c fix: normalize guest ID fallbacks to canonical instance:node:vmid format
Multiple frontend components were using - as a fallback
when guest.id was falsy. This format drops the node component, which is
critical for clustered setups where the same VMID can exist on different
nodes.

Changes:
- GuestDrawer.tsx: Updated guestId() and handleAskAI() to use canonical format
- GuestRow.tsx: Updated buildGuestId() to use canonical format
- Dashboard.tsx: Updated handleGuestRowClick() and guest rendering loop,
  also fixed legacy metadata fallback to use consistent keying
- ThresholdsTable.tsx: Updated guestsGroupedByNode() to use canonical format

Backend changes:
- Removed temporary debug logging added during investigation
- Added alert history section to AI buildEnrichedResourceContext() function

The backend generates VM/Container IDs in instance:node:vmid format (e.g.,
delly:delly:101) via makeGuestID(). This format is now consistently used
across all frontend fallbacks to prevent AI context, metadata, overrides,
and metrics from colliding or desyncing in clustered environments.
2025-12-20 22:11:35 +00:00
..
baseline Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
context fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
correlation fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
cost fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
knowledge fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
memory fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
patterns fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
providers test: improve test coverage for AI, license, config, and monitoring packages 2025-12-19 22:49:30 +00:00
alert_adapter.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_adapter_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
alert_provider.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
alert_provider_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_threshold_adapter.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
alert_threshold_adapter_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_triggered.go feat(ai): Add LLM memory system for patrol findings 2025-12-10 22:55:34 +00:00
alert_triggered_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
baseline_adapter.go feat(ai): Add baseline learning and anomaly detection (Phase 2) 2025-12-12 11:26:31 +00:00
baseline_adapter_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
baseline_exports.go feat(ai): Wire baseline learning loop into router startup 2025-12-12 11:29:47 +00:00
config.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
correlation_exports.go feat(ai): Add multi-resource correlation detection (Phase 6) 2025-12-12 14:26:10 +00:00
cost_persistence.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
cost_persistence_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
exports_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
findings.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
findings_persistence.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
findings_persistence_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
findings_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
kubernetes_analysis.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
kubernetes_analysis_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
memory_exports.go feat(ai): Add operational memory (Phase 3) - change detection and remediation logging 2025-12-12 13:49:37 +00:00
metadata_provider.go fix: add missing HandleLicenseFeatures method and related changes 2025-12-19 22:59:52 +00:00
metrics_history_adapter.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
mock_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
patrol.go fix: normalize guest ID fallbacks to canonical instance:node:vmid format 2025-12-20 22:11:35 +00:00
patrol_history_persistence.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
patrol_history_persistence_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
patrol_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
pattern_exports.go feat(ai): Add failure pattern detection for predictive intelligence (Phase 5) 2025-12-12 14:11:28 +00:00
resource_context.go Add AI monitoring enhancements and host metadata features 2025-12-09 16:27:46 +00:00
routing.go Add AI monitoring enhancements and host metadata features 2025-12-09 16:27:46 +00:00
routing_test.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
runbooks.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
runbooks_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
sanitize_test.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
service.go fix: normalize guest ID fallbacks to canonical instance:node:vmid format 2025-12-20 22:11:35 +00:00
service_extended_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
service_remediation_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
service_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
service_tools_test.go test(ai): improve AI package test coverage from 59.7% to 69.5% 2025-12-19 21:53:06 +00:00
target_host_test.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00