mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
dd2f4c07fe
The alert AI button now offers a manual targeted Patrol check alongside the existing context-only Pulse Assistant handoff, so the take-the-lead intent routes to Patrol (the investigator) instead of overloading Assistant (the explainer). POST /api/ai/patrol/run (HandleForcePatrol) accepts an optional scope body and routes through the same TriggerScopedPatrol engine and scoped run record as automatic alert-triggered work, not a new trigger route; empty body keeps the legacy fleet-wide run. Scoped runs honour Patrol readiness but bypass the full-run cadence gate, consistent with the existing scoped-cadence rule, and carry resource identity only (no command or remediation payload). Frontend: triggerPatrolRun(scope?) and a split AI button (patrolOption) on the alert overview card whose menu runs the scoped check; icon/history rows stay single-purpose. Contract updates land in the touched/dependent subsystem docs (ai-runtime, api-contracts, agent-lifecycle, storage-recovery, frontend-primitives, security-privacy, patrol-intelligence, alerts); subsystem_lookup_test line expectation refreshed for the api-contracts shift.