mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-21 03:05:44 +00:00
ac5f140802
Fourth of the seven contextual Assistant entries. Verify fix is the post-remediation confirmation step: after a fix has run, the operator asks the Assistant whether the underlying condition actually cleared, rather than trusting the fix command's exit code or the LLM's prior self-verification. - Widens PatrolAssistantFindingIntent to include 'verify_fix'. - buildPatrolAssistantFindingPrompt gains a verify_fix branch that directs the LLM to check the current evidence against the original signal that fired the finding (metrics, resource state, recent alerts, service health), then synthesize: is the condition cleared, what evidence supports that judgment, how confident, and is there residual risk to monitor for. Tool calls are allowed; state-changing commands are explicitly forbidden — verification is read-only. - FindingsPanel adds a Verify fix button after Why, gated by hasAppliedFix() which returns true for investigation outcomes fix_executed, fix_verified, fix_verification_failed, and fix_verification_unknown. For fix_queued (no fix has run yet) and fix_failed (fix didn't complete) the button is hidden because there is nothing applied to verify. - autoSendInitialPrompt extends to verify_fix; Discuss with Assistant unchanged. Test: new verify_fix-intent prompt-builder case asserts the verification dimensions (condition cleared, evidence, confidence, residual / monitor) and the read-only safety boundary, and isn't either Discuss or Investigate phrasing.