mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 09:10:58 +01:00
Patrol investigations inferred their outcome from prose markers, so a bold or bulleted RESOLVED line became the terminal needs_attention and the finding was never investigated again. Timeouts clustered on subscription agents. Patrol's 60s stream idle timeout bounds a whole buffered CLI turn there, three investigations queued on one serial CLI slot, and the final summary call was capped at 20s. - Add patrol_conclude_investigation, an investigation-only, side-effect-free capture of resolved, cannot_fix or needs_attention. It is carried on InvestigationRunResult and OrchestratorInvestigationResult. - After a conclusion, the next turn is the summary. The final turn offers only the tools that end a run. A deadline reserve makes the current turn final before the run times out, and the summary call may use the time left. - Give investigation turns on subscription agents a 4-minute turn budget, a 25-minute default timeout and one investigation at a time. These limits are republished on config reload without holding the service lock across the Patrol lock. - Derive Patrol's outer deadline from the effective timeout. Sessions now carry their own deadline, and the stuck-run sweep measures a live run against it, so neither a lowered timeout nor the previous run's time resets a running investigation. - Record a run orphaned by a restart as interrupted, not timed out. A first investigation cut short that way used to stay running for good, which also blocked a manual re-run. Recovery applies only while the finding still shows that run, takes a result the run's session already recorded, and keeps an action outcome such as fix_queued. - Add unclassified and interrupted outcomes, with lifecycle, telemetry bucket, digest and record handling.
59 lines
2.9 KiB
Go
59 lines
2.9 KiB
Go
package agentcapabilities
|
|
|
|
const (
|
|
PulseQueryToolName = "pulse_query"
|
|
PulseMetricsToolName = "pulse_metrics"
|
|
PulseStorageToolName = "pulse_storage"
|
|
PulseDockerToolName = "pulse_docker"
|
|
PulseKubernetesToolName = "pulse_kubernetes"
|
|
PulseAlertsToolName = "pulse_alerts"
|
|
PulseReadToolName = "pulse_read"
|
|
PulseControlToolName = "pulse_control"
|
|
PulseFileEditToolName = "pulse_file_edit"
|
|
PulseKnowledgeToolName = "pulse_knowledge"
|
|
PulsePMGToolName = "pulse_pmg"
|
|
PulseSummarizeToolName = "pulse_summarize"
|
|
|
|
PulseRunCommandToolName = "pulse_run_command"
|
|
PulseControlGuestToolName = "pulse_control_guest"
|
|
PulseControlDockerToolName = "pulse_control_docker"
|
|
|
|
PulseSearchResourcesToolName = "pulse_search_resources"
|
|
PulseGetResourceToolName = "pulse_get_resource"
|
|
PulseGetTopologyToolName = "pulse_get_topology"
|
|
PulseListInfrastructureToolName = "pulse_list_infrastructure"
|
|
PulseGetConnectionHealthToolName = "pulse_get_connection_health"
|
|
PulseGetDockerLogsToolName = "pulse_get_docker_logs"
|
|
PulseGetPerformanceMetricsToolName = "pulse_get_performance_metrics"
|
|
PulseGetTemperaturesToolName = "pulse_get_temperatures"
|
|
PulseGetBaselinesToolName = "pulse_get_baselines"
|
|
PulseGetPatternsToolName = "pulse_get_patterns"
|
|
|
|
PatrolGetFindingsToolName = "patrol_get_findings"
|
|
PatrolAssessFindingToolName = "patrol_assess_finding"
|
|
PatrolReportFindingToolName = "patrol_report_finding"
|
|
PatrolResolveFindingToolName = "patrol_resolve_finding"
|
|
// PatrolProposeObserverToolName is the Patrol-detection-only monitor
|
|
// builder boundary. The model may author a bounded observer proposal, but
|
|
// core owns its identity, digest, validation, installation, and health.
|
|
PatrolProposeObserverToolName = "patrol_propose_observer"
|
|
// PatrolProposeActionToolName is the side-effect-free typed action
|
|
// proposal capture for Patrol investigations. Mutation-none: it
|
|
// records a validated proposal in the request-local capture sink;
|
|
// planning, approval, and execution stay on the canonical action
|
|
// lifecycle.
|
|
PatrolProposeActionToolName = "patrol_propose_action"
|
|
// PatrolActionCapabilitiesToolName is the investigation-only,
|
|
// side-effect-free lookup for the typed actions advertised by any
|
|
// canonical resource the investigation has identified. It lets the
|
|
// model choose an action target from evidence instead of pinning
|
|
// remediation to the finding's initial resource.
|
|
PatrolActionCapabilitiesToolName = "patrol_action_capabilities"
|
|
// PatrolConcludeInvestigationToolName is the investigation-only,
|
|
// side-effect-free conclusion capture. It records one typed zero-action
|
|
// conclusion (resolved, cannot_fix or needs_attention) in the
|
|
// request-local capture sink so the orchestrator never has to infer the
|
|
// outcome from prose. It grants no planning, approval or execution.
|
|
PatrolConcludeInvestigationToolName = "patrol_conclude_investigation"
|
|
)
|