Pulse/internal/ai
rcourtman 8ce0f4a872 Show context-window usage in the last-turn summary (OpenCode parity)
OpenCode shows how full the model's context is next to the composer;
Pulse showed raw token counts with no sense of scale. The done event
now carries context_limit_tokens (providers.ContextWindowTokens for
the selected route) and the drawer's last-turn summary renders input
tokens as a percentage of the window: '8,500 tokens (6% of context)',
with the full breakdown in the hover detail. Without the limit the
summary renders exactly as before. Pinned in the plain-answer corpus
scenario.
2026-06-11 17:18:42 +01:00
..
adapters feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
approval Drop redundant policy gates in resource-link routing 2026-05-09 21:31:45 +01:00
baseline feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
chat Show context-window usage in the last-turn summary (OpenCode parity) 2026-06-11 17:18:42 +01:00
circuit feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
correlation Stabilize dev runtime and complete PMG read-state migration 2026-05-21 15:15:23 +01:00
cost Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
eval Add discovery readiness to Assistant context 2026-06-04 21:56:36 +01:00
forecast Make Patrol reasoning model-owned 2026-05-15 12:22:52 +01:00
infradiscovery Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
jsonresponse Fix Discovery response JSON extraction 2026-05-25 18:02:28 +01:00
knowledge Harden AI knowledge guest listing paths 2026-03-29 14:18:20 +01:00
learning feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
memory Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
modelboundary Remove the cloud_context_privacy dial; fix cloud context to a lean posture 2026-06-09 09:43:21 +01:00
modelresolution Keep Assistant chat model routes explicit 2026-06-08 07:21:38 +01:00
patterns feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
providers Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
proxmox Cap AI patrol history and correlation reads 2026-04-01 14:47:58 +01:00
safety Harden external model prompt-secret sanitation 2026-05-13 13:03:40 +01:00
tools Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
unified Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
agent_exec_test_helpers_test.go Align Patrol prober with agent command policy 2026-05-01 20:28:11 +01:00
alert_adapter.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
alert_adapter_test.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
alert_provider.go Require approval for backend alert investigation commands 2026-05-07 01:24:57 +01:00
alert_provider_additional_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00
alert_provider_test.go Require approval for backend alert investigation commands 2026-05-07 01:24:57 +01:00
alert_threshold_adapter.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
alert_threshold_adapter_test.go fix: Docker container update detection showing false positives 2025-12-29 13:49:04 +00:00
baseline_adapter.go Enhance devcontainer and CI workflows 2026-01-01 22:29:15 +00:00
baseline_adapter_test.go fix: Docker container update detection showing false positives 2025-12-29 13:49:04 +00:00
baseline_exports.go feat(ai): Wire baseline learning loop into router startup 2025-12-12 11:29:47 +00:00
config.go feat: Pulse v6 release 2026-03-18 16:06:30 +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: Pulse v6 release 2026-03-18 16:06:30 +00:00
cost_persistence_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
cost_recording_audit_test.go Fix QuickAnalysis cost recording and audit the pattern 2026-05-10 21:57:39 +01:00
coverage_increase_test.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
demo.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
demo_test.go wire PDM alert bridge into PatrolService and seed demo 2026-05-13 05:42:25 +01:00
discovery_adapter.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
discovery_adapter_test.go Bypass approval gate for trusted internal Discovery commands 2026-05-17 21:59:39 +01:00
exports_test.go Restore RC backend proof regressions 2026-04-09 20:15:17 +01:00
findings.go Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
findings_additional_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00
findings_backup_verification.go emit backup_verification_stale finding from VerifyIntent 2026-05-12 22:23:55 +01:00
findings_backup_verification_test.go emit backup_verification_stale finding from VerifyIntent 2026-05-12 22:23:55 +01:00
findings_clustering_test.go feat(backend): implement AI Patrol, Investigation, and system-wide refactors 2026-01-30 19:02:14 +00:00
findings_coverage_test.go Purge resolved legacy alert-mirror findings on load 2026-05-11 11:40:07 +01:00
findings_dedup_test.go feat(backend): implement AI Patrol, Investigation, and system-wide refactors 2026-01-30 19:02:14 +00:00
findings_investigation_test.go feat(backend): implement AI Patrol, Investigation, and system-wide refactors 2026-01-30 19:02:14 +00:00
findings_lifecycle_test.go Surface finding-key collisions as lifecycle events instead of silent identity hijack 2026-06-09 22:03:20 +01:00
findings_marshal_mirror_test.go Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
findings_pdm_alert_bridge.go Add PDM HTTP alert source 2026-05-13 11:35:24 +01:00
findings_pdm_alert_bridge_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
findings_pdm_alert_emit_test.go prove PDM alert bridge emits and resolves through FindingsStore.Add 2026-05-13 05:42:25 +01:00
findings_pdm_http_client.go Add PDM HTTP alert source 2026-05-13 11:35:24 +01:00
findings_pdm_http_client_test.go Add PDM HTTP alert source 2026-05-13 11:35:24 +01:00
findings_persistence.go persist remind_at and remind_count on will_fix_later findings 2026-05-13 01:13:38 +01:00
findings_persistence_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
findings_remind_persistence_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
findings_remind_sweep_test.go add hourly sweep for overdue will_fix_later commitments 2026-05-13 01:13:38 +01:00
findings_resource_type_test.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
findings_storm_emit_test.go prove storm throttler emits and resolves through FindingsStore.Add 2026-05-13 02:41:45 +01:00
findings_storm_throttler.go add storm throttler substrate in FindingsStore.Add 2026-05-13 02:41:45 +01:00
findings_storm_throttler_test.go add storm throttler substrate in FindingsStore.Add 2026-05-13 02:41:45 +01:00
findings_suppression_persistence_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
findings_test.go Plumb operator-state and operational memory into investigation findings 2026-05-09 21:03:15 +01:00
findings_timeout_test.go feat(patrol): add timeout handling and shorter retry cooldown 2026-02-01 10:12:23 +00:00
findings_tools_adapter.go refactor(ai): Rename findings adapter and add chat patrol alias 2026-01-19 19:20:49 +00:00
findings_tools_adapter_test.go refactor(ai): Rename findings adapter and add chat patrol alias 2026-01-19 19:20:49 +00:00
findings_update_safety.go handle repeated update-safety digest changes 2026-05-13 04:18:27 +01:00
findings_update_safety_emit_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
findings_update_safety_test.go handle repeated update-safety digest changes 2026-05-13 04:18:27 +01:00
incident_coordinator.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
incident_coordinator_additional_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
incident_coordinator_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
intelligence.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
intelligence_coverage_test.go Recalibrate resource sensitivity: ordinary workloads aren't secret 2026-06-08 15:21:51 +01:00
intelligence_test.go Route correlations through intelligence facade 2026-03-19 04:15:26 +00:00
investigation_records.go Lift remediation-plan rollback into investigation records 2026-05-08 18:17:19 +01:00
investigation_records_test.go Lift remediation-plan rollback into investigation records 2026-05-08 18:17:19 +01:00
kubernetes_analysis.go Audit unified AI exports 2026-03-18 17:22:24 +00:00
kubernetes_analysis_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +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 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
metadata_provider_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
metrics_history_adapter.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
metrics_history_adapter_test.go fix: Docker container update detection showing false positives 2025-12-29 13:49:04 +00:00
mock_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
model_resolution.go Speed up Assistant stream startup 2026-06-05 22:54:44 +01:00
model_resolution_test.go Keep Assistant chat model routes explicit 2026-06-08 07:21:38 +01:00
parity_test.go test(go): stamp parity storage fixture LastSeen; raise CI go test timeout 2026-06-11 12:02:29 +01:00
patrol.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_ai.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_ai_additional_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_ai_eval_additional_test.go Prepare v6.0.0 release candidate 2026-06-04 14:07:14 +01:00
patrol_ai_intelligence_test.go Retire self-hosted AI quickstart surfaces 2026-04-28 15:49:18 +01:00
patrol_ai_more_test.go Align discovery prompt governance 2026-05-15 23:11:59 +01:00
patrol_ai_test.go fix(ai): filter DeepSeek DSML internal function-call format from responses 2026-02-01 18:07:41 +00:00
patrol_alerts_review_test.go Make Patrol reasoning model-owned 2026-05-15 12:22:52 +01:00
patrol_assistant_handoff.go Remove Assistant handoff decision guidance 2026-05-15 16:57:25 +01:00
patrol_assistant_handoff_test.go Remove Assistant handoff decision guidance 2026-05-15 16:57:25 +01:00
patrol_context_additional_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_coverage_test.go Gate Patrol readiness across runtime entrypoints 2026-05-07 18:24:47 +01:00
patrol_findings.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_findings_additional_test.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_history_memory_regression_test.go test: add memory regression coverage for AI stores 2026-02-04 19:56:12 +00:00
patrol_history_persistence.go Keep Patrol evidence aligned with live findings 2026-05-08 11:08:53 +01:00
patrol_history_persistence_test.go Keep Patrol evidence aligned with live findings 2026-05-08 11:08:53 +01:00
patrol_init.go Remove Assistant and Patrol tool-routing heuristics 2026-05-15 14:51:15 +01:00
patrol_init_additional_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_integration_test.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_intelligence.go Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
patrol_intelligence_test.go Align Patrol prober with agent command policy 2026-05-01 20:28:11 +01:00
patrol_lifecycle_integration_test.go fix(patrol): improve service lifecycle, graceful shutdown, and concurrency 2026-02-01 16:27:25 +00:00
patrol_metrics.go Remove Assistant and Patrol tool-routing heuristics 2026-05-15 14:51:15 +01:00
patrol_metrics_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_preflight.go Make Assistant tool choice model-owned 2026-05-15 11:27:15 +01:00
patrol_preflight_test.go Make Assistant tool choice model-owned 2026-05-15 11:27:15 +01:00
patrol_prober.go Align Patrol prober with agent command policy 2026-05-01 20:28:11 +01:00
patrol_prober_test.go Align Patrol prober with agent command policy 2026-05-01 20:28:11 +01:00
patrol_readiness.go Patrol runs are now stateless — drop prior session history 2026-05-10 17:14:47 +01:00
patrol_readiness_test.go Align DeepSeek V4 Patrol readiness 2026-05-08 11:34:07 +01:00
patrol_reconcile_test.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_resource_state_test.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
patrol_run.go Make Patrol reasoning model-owned 2026-05-15 12:22:52 +01:00
patrol_run_additional_test.go Update Patrol provider setup guidance 2026-05-07 16:15:07 +01:00
patrol_run_test.go Make Patrol reasoning model-owned 2026-05-15 12:22:52 +01:00
patrol_runtime_failure.go Surface Assistant provider readiness 2026-06-05 12:50:02 +01:00
patrol_runtime_failure_test.go Surface Assistant provider readiness 2026-06-05 12:50:02 +01:00
patrol_scoped_run_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_seed_budget_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_signals.go Stop mirroring alerts into Patrol findings 2026-05-10 21:33:41 +01:00
patrol_signals_test.go Stop mirroring alerts into Patrol findings 2026-05-10 21:33:41 +01:00
patrol_signals_vmid_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_state.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
patrol_stream_debug.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
patrol_test.go Auto-clear event/persistent Patrol findings on affirmative deterministic verification 2026-06-09 21:47:14 +01:00
patrol_thresholds_test.go feat: add AI Intelligence system with investigation and forecasting 2026-01-24 22:41:43 +00:00
patrol_triage.go Retry Patrol with provider-derived seed budgets 2026-04-01 23:09:32 +01:00
patrol_triage_integration_test.go Keep Pulse runtime boundaries model-owned 2026-05-17 18:24:13 +01:00
patrol_triage_test.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
patrol_triggers.go Make alert-triggered Patrol investigate the specific breach 2026-05-28 22:42:32 +01:00
patrol_triggers_flapping_test.go add patrol scope for flapping postmortem 2026-05-13 00:28:24 +01:00
patrol_triggers_test.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
pattern_exports.go feat(ai): Add failure pattern detection for predictive intelligence (Phase 5) 2025-12-12 14:11:28 +00:00
report_findings.go Replace heuristic report narrative with optional AI-generated layer 2026-05-10 19:30:54 +01:00
report_findings_test.go Replace heuristic report narrative with optional AI-generated layer 2026-05-10 19:30:54 +01:00
report_fleet_narrator.go Forbid the report narrators from acting as parallel detectors 2026-05-10 22:02:10 +01:00
report_fleet_narrator_test.go Add fleet-level AI narrative for multi-resource reports 2026-05-10 21:23:12 +01:00
report_narrator.go Forbid the report narrators from acting as parallel detectors 2026-05-10 22:02:10 +01:00
report_narrator_test.go Record cost events for AI report narration 2026-05-10 21:08:51 +01:00
resource_context.go Remove the cloud_context_privacy dial; fix cloud context to a lean posture 2026-06-09 09:43:21 +01:00
resource_context_policy_model.go Remove the cloud_context_privacy dial; fix cloud context to a lean posture 2026-06-09 09:43:21 +01:00
resource_context_policy_model_test.go Remove the cloud_context_privacy dial; fix cloud context to a lean posture 2026-06-09 09:43:21 +01:00
resource_context_test.go Recalibrate resource sensitivity: ordinary workloads aren't secret 2026-06-08 15:21:51 +01:00
resource_export.go Canonicalize export redaction labels 2026-03-19 04:07:47 +00:00
resource_export_test.go Canonicalize export redaction labels 2026-03-19 04:07:47 +00:00
resource_type_legacy.go refactor(ai): canonicalize truenas host resource types 2026-03-30 13:34:08 +01:00
resource_type_legacy_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
routing.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
routing_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
sanitize_test.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
service.go Remove the cloud_context_privacy dial; fix cloud context to a lean posture 2026-06-09 09:43:21 +01:00
service_coverage_imp_test.go Remove hidden discovery provider fallback 2026-06-08 03:48:33 +01:00
service_extended_test.go Reject cross-provider Assistant route fallback 2026-06-07 18:13:21 +01:00
service_remediation_test.go Remove Assistant pre-model context heuristics 2026-05-15 16:28:17 +01:00
service_test.go Stabilize dev runtime and complete PMG read-state migration 2026-05-21 15:15:23 +01:00
service_tools_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
target_host_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
test_remediation_engine_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00