mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Keep the reviewed BYOK disclosures while testing their meaning across Markdown wrapping and UK spelling. Limit retired-offer checks to Pulse-hosted models, and retain explicit checks for direct provider traffic, restricted identifiers and local endpoint verification. Distinguish model context from pseudonymous usage telemetry without an ambiguous anonymity phrase. Contract-Neutral: Existing help and its regression checks only; model transport, redaction, authorisation, retention and telemetry runtime are unchanged. Change-source: pulse-maintainer
957 lines
50 KiB
Markdown
957 lines
50 KiB
Markdown
# Pulse Intelligence
|
||
|
||
Pulse Patrol is available to everyone on the Community plan with BYOK (your own AI provider). Pro adds hands-on Patrol modes, issue investigation, governed fixes, verified outcomes, and 90-day history, while hosted Cloud carries those capabilities for hosted environments. Learn more at <https://pulserelay.pro> or see [PULSE_PRO.md](PULSE_PRO.md).
|
||
|
||
---
|
||
|
||
## Overview
|
||
|
||
<!-- pulse-intelligence-overview:start -->
|
||
Pulse Intelligence is built around a shared **Pulse Intelligence Core**: Canonical context, governed actions, safety gates, approval state, action audit, and verification shared by Pulse Assistant, Pulse MCP, and Pulse Patrol.
|
||
|
||
That core is deliberately surfaced with Patrol as the primary built-in operator and Assistant plus MCP as access paths over the same governed capabilities:
|
||
|
||
1. **Pulse Patrol**: Patrol is the first-party operations surface: it checks infrastructure, investigates issues, follows the chosen Patrol mode before acting, verifies outcomes, and records what happened.
|
||
2. **Pulse Assistant**: The chat surface Pulse Mobile uses for operator questions over the same governed tools, approvals, and verification; the in-app web chat window is retired. Affordances: tools.
|
||
3. **Pulse MCP**: The external-agent adapter that projects canonical Pulse Intelligence capabilities as MCP tools. Affordances: tools, resources, prompts, and capability metadata.
|
||
<!-- pulse-intelligence-overview:end -->
|
||
|
||
These surfaces are built on the same action-driven architecture: the configured LLM owns diagnosis, prioritization, fix reasoning, and action choice; Pulse supplies context, capabilities, safety gates, approval state, and audit trails. Verification is part of the governed action lifecycle rather than a separate model-owned feature.
|
||
|
||
### Not Just Another Alerting System
|
||
|
||
Pulse Patrol is a **scheduled and event-triggered governed operator** that:
|
||
|
||
- **Assembles evidence** from metrics, storage, backups, alerts, and resource timelines
|
||
- **Provides statistical context** such as baselines, trend summaries, capacity estimates, and event relationships
|
||
- **Lets the configured LLM reason** over that evidence and decide whether to call tools or report findings
|
||
- **Routes governed actions** through approval, entitlement, policy, verification, and audit boundaries
|
||
- **Preserves operator feedback** as context for future model runs without converting it into Pulse-authored fixes
|
||
|
||
Pulse runs collection and orchestration on your server. **BYOK does not make
|
||
model processing local:** a hosted model receives provider-bound context. Read
|
||
[AI privacy](#privacy) before enabling Patrol or an investigation.
|
||
|
||
📖 **For a deep technical dive into the Patrol runtime, see [Patrol architecture](PATROL_ARCHITECTURE.md).**
|
||
|
||
🧪 **For independent live-fault qualification, safety gates, model comparison,
|
||
and release-claim rules, see [AI_PATROL_QUALIFICATION.md](AI_PATROL_QUALIFICATION.md).**
|
||
|
||
See [Assistant safety architecture](ASSISTANT_SAFETY.md) for the safety gates
|
||
the shared AI runtime enforces.
|
||
|
||
### Using Pulse from Claude Code, Codex, and other agents
|
||
|
||
Pulse has no in-app chat window. To ask about your infrastructure in plain
|
||
language, connect an MCP client such as Claude Code, Codex, or OpenCode to
|
||
`pulse-mcp`: open **Settings → Pulse Intelligence → External agents** and
|
||
choose **Show connector setup**. `pulse-mcp` fetches `/api/agent/capabilities`,
|
||
projects those canonical API capabilities as MCP tools, and preserves the same
|
||
stable error envelopes and approval/audit contracts as Patrol. New operational
|
||
capabilities are added to the canonical API manifest first; MCP-only copies of
|
||
the same business logic are drift.
|
||
|
||
The tool list is registry-owned at runtime, not hand-maintained here. For the
|
||
current inventory, read the live `/api/agent/capabilities` manifest or
|
||
`pulse-mcp` `tools/list`. The same manifest carries reusable `workflowPrompts`
|
||
metadata, so MCP `prompts/list` clients discover the fleet triage, resource
|
||
investigation, and Patrol finding review workflows.
|
||
|
||
---
|
||
|
||
## Pulse Patrol
|
||
|
||
Patrol is a scheduled model workflow that builds a rich, system-wide snapshot and gives your configured LLM the tools it needs to produce actionable findings.
|
||
|
||
### How Patrol Works
|
||
|
||
```
|
||
Scheduled/Event Trigger
|
||
│
|
||
▼
|
||
buildTriageSeedSectionsState() ── infrastructure evidence and policy context
|
||
│
|
||
▼
|
||
LLM analysis (with tools) ← pulse_storage, pulse_metrics, pulse_alerts, etc.
|
||
│
|
||
▼
|
||
patrol_report_finding() / patrol_assess_finding() / patrol_resolve_finding()
|
||
│ └── explicit verdict for every known finding
|
||
│
|
||
├── DetectSignals() ── deterministic evidence extraction from tool outputs
|
||
│ │
|
||
│ ▼
|
||
│ Evaluation pass ── focused LLM review of unmatched evidence
|
||
│
|
||
▼
|
||
model-reported findings ── validated, deduplicated, stored
|
||
│
|
||
▼ (if configured)
|
||
MaybeInvestigateFinding() ── model investigation + governed fix planning/execution
|
||
```
|
||
|
||
### Operational objectives and model-authored observers
|
||
|
||
Patrol objectives retain an operator's desired outcome—for example, “keep
|
||
camera streams available”—instead of requiring the operator or Pulse to encode
|
||
every application-specific check. Active objectives are included as
|
||
value-oriented context in applicable Patrol runs. When an objective has no
|
||
observer, the configured model can use `patrol_propose_observer` to translate
|
||
that outcome into a bounded, versioned read-only observer proposal using the
|
||
estate context and tools available on that installation.
|
||
|
||
The proposal boundary is intentionally not an execution boundary. Pulse owns
|
||
the observer identity, revision, SHA-256 digest, encrypted local persistence,
|
||
declared trigger kind, and read-only posture. A model cannot mark its proposal
|
||
validated, install it, give it action authority, or claim that monitoring is
|
||
active. Coverage remains `uncovered` until a core-owned validator, sandbox
|
||
installer, runtime, and health lease have actually accepted the artifact. This
|
||
keeps the intelligence in the model while keeping continuity and authority in
|
||
Pulse—and avoids calling a model repeatedly when a future cheap local observer
|
||
can handle the steady-state signal.
|
||
|
||
### The Patrol attention queue
|
||
|
||
The first thing Patrol shows is the **Inbox** tab, a decision inbox headed "N decisions need you" (or "No decisions are waiting"), a single operator queue
|
||
projected from Pulse's canonical alert lifecycle. It combines current
|
||
operational state with evidence quality and protection context; it does not
|
||
create a second finding lifecycle.
|
||
|
||
- **Active** contains open work plus stale or unknown collection states that
|
||
still require a decision.
|
||
- **Acknowledged** and **Suppressed** remain inspectable without being counted
|
||
as active work.
|
||
- **Recent resolved** preserves the explanation and transition history without
|
||
presenting old work as live.
|
||
- **Stale or unknown** means Pulse lacks current enough evidence. It is never
|
||
shown as healthy or resolved.
|
||
- A calm message appears only when the lifecycle evaluation succeeded, coverage
|
||
is current, and no active item exists. An unavailable evaluation says so
|
||
explicitly.
|
||
|
||
Select an item to see the affected resource, impact, next step, typed evidence,
|
||
protection posture, and lifecycle timeline.
|
||
|
||
Open items can be acknowledged directly. Suppression is temporary and requires
|
||
an operator reason plus a bounded expiry; it never resolves the detector's
|
||
finding. Eligible Pulse Pro Docker health items can offer a governed restart.
|
||
That journey uses the canonical action plan, approval, execution, audit, and
|
||
verification APIs. A successful command does not resolve the attention item;
|
||
fresh detector evidence must still confirm recovery.
|
||
|
||
### What Patrol Sees
|
||
|
||
Every patrol run passes the LLM comprehensive context about your environment:
|
||
|
||
| Data Category | What's Included |
|
||
|---------------|-----------------|
|
||
| **Proxmox Nodes** | Status, CPU%, memory%, uptime, 24h/7d trend analysis |
|
||
| **VMs & Containers** | Full metrics, backup status, OCI images, historical trends, anomaly evidence |
|
||
| **Storage Pools** | Usage %, capacity estimates, type (ZFS/LVM/Ceph), growth rates |
|
||
| **Docker/Podman** | Container counts, health states, unhealthy container lists |
|
||
| **Kubernetes** | Nodes, pods, deployments, services, DaemonSets, StatefulSets, namespaces |
|
||
| **TrueNAS** | Pools, datasets, disk health, SMART status, replication, alerts |
|
||
| **PBS/PMG** | Datastore status, backup jobs, job failures, verification status |
|
||
| **Ceph** | Cluster health, OSD states, PG status |
|
||
| **Agent Hosts** | Load averages, memory, disk, RAID status, temperatures |
|
||
|
||
### Model-Bound Context
|
||
|
||
Beyond raw metrics, Patrol prepares structured evidence for the model:
|
||
|
||
- **Trend summaries** — 24h and 7d samples showing `growing`, `stable`, or `declining` behavior
|
||
- **Baseline evidence** — Z-score anomaly evidence from historical metrics
|
||
- **Capacity estimates** — "Storage pool reaches 95% in about 12 days at current growth rate"
|
||
- **Infrastructure changes** — Detected config changes, VM migrations, new deployments
|
||
- **Resource relationships** — Related events and topology context
|
||
- **User notes** — Your annotations explaining expected behavior
|
||
- **Dismissed findings** — Respects your feedback and suppressed alerts
|
||
- **Investigation context** — Uses prior alert context, Patrol run history, and resource timelines
|
||
|
||
### Deterministic Evidence Extraction
|
||
|
||
Patrol parses tool outputs for concrete evidence such as backup failures, storage pressure, and disk health failures. These signals are not final findings by themselves: unmatched signals are sent to a focused LLM evaluation pass, and if the model still declines to report them, Pulse does not convert them into Pulse-authored findings.
|
||
|
||
| Signal Type | Trigger | Default Threshold |
|
||
|------------|---------|-------------------|
|
||
| `smart_failure` | SMART health status not OK/PASSED, or critical SMART counters such as pending sectors, offline uncorrectable sectors, or NVMe media errors | N/A |
|
||
| `high_cpu` | Average CPU usage | 70% |
|
||
| `high_memory` | Average memory usage | 80% |
|
||
| `high_disk` | Storage pool usage | 75% (warning), 95% (critical) |
|
||
| `backup_failed` | Recent backup task with error status | Within 48h |
|
||
| `backup_stale` | No backup completed for VM/CT | 48+ hours |
|
||
|
||
Thresholds can be configured via alert settings to match user-defined values.
|
||
|
||
### Examples of What Patrol Catches
|
||
|
||
| Issue | Severity | Example |
|
||
|-------|----------|---------|
|
||
| **Disk approaching capacity** | Warning/Critical | Storage growing toward full with concrete time-to-threshold evidence |
|
||
| **Backup failures** | Warning | PBS job failed, no backup in 48+ hours |
|
||
| **Storage issues** | Critical | PBS datastore errors, ZFS pool degraded |
|
||
| **Ceph problems** | Warning/Critical | Degraded OSDs, unhealthy PGs |
|
||
| **Kubernetes issues** | Warning | Pods stuck in Pending/CrashLoopBackOff |
|
||
| **SMART failures** | Critical | Disk health check failed, pending sectors, offline uncorrectable sectors, or NVMe media errors |
|
||
| **Alert-triggered investigations** | Pro / Cloud | A fired alert prompts the model to gather surrounding context and explain likely cause |
|
||
|
||
### What Patrol Ignores (by design)
|
||
|
||
Patrol is **intentionally conservative** to avoid noise:
|
||
|
||
- Small baseline deviations ("CPU at 15% vs typical 10%")
|
||
- Low utilization that's "elevated" but fine (disk at 40%)
|
||
- Stopped VMs/containers that were intentionally stopped
|
||
- Brief spikes that resolve on their own
|
||
- Anything that doesn't require human action
|
||
- Conditions already fully covered by the normal alert lifecycle unless the model finds additional context that changes the operator decision
|
||
|
||
> **Philosophy**: If a finding wouldn't be worth waking someone up at 3am, Patrol won't create it.
|
||
|
||
### Finding Severity
|
||
|
||
- **Critical**: Immediate attention required (service down, data at risk)
|
||
- **Warning**: Should be addressed soon (disk filling, backup stale)
|
||
|
||
Note: `info` and `watch` level findings are filtered out to reduce noise.
|
||
|
||
### Managing Findings
|
||
|
||
Findings can be managed via the UI or API:
|
||
|
||
- **Resolve**: Mark as fixed (finding will reappear if the issue resurfaces)
|
||
- **Dismiss**: Record feedback about this finding; use **Reopen** to undo its dismissal
|
||
- **Create rule**: Permanently auto-dismiss future findings for the selected resource and category
|
||
|
||
Dismissed and resolved findings persist across Pulse restarts.
|
||
|
||
#### Remove a rule created by mistake
|
||
|
||
**Reopen** undoes an individual finding's dismissal, not a separately created
|
||
rule. Removing a created rule allows future matching findings to appear again; it
|
||
does not resolve a problem or automatically reopen previously dismissed
|
||
findings. It leaves the other rules and finding history intact.
|
||
|
||
##### Use the rule controls when available
|
||
|
||
1. Sign in as an authorised administrator and select the correct organisation.
|
||
Open **Patrol → Activity** and expand **Suppression rules**, or follow
|
||
**Manage suppression rules** from the finding's rule-creation control.
|
||
2. Match the resource, category, reason and **Rule ID** before choosing
|
||
**Remove rule**. **All resources** or **All categories** means a broad rule,
|
||
not just the finding you were looking at.
|
||
3. Review the exact scope in the confirmation and choose **Remove this rule**.
|
||
**Cancel** leaves the rules unchanged.
|
||
4. Check that the selected row disappears and Pulse reports **Rule removed**.
|
||
If removal cannot be confirmed, choose **Reload rules** and check that exact
|
||
ID before trying again: a lost response does not prove deletion failed.
|
||
|
||
After an organisation or access change, reload the rules in the intended
|
||
organisation before making another change. If you cannot load or verify them,
|
||
stop; do not bypass the failure with the console workaround. Other rules may
|
||
still cover the same scope, so removal does not guarantee a new finding.
|
||
To undo an individual dismissal, use **Reopen finding** in **Finding options
|
||
and history** instead.
|
||
|
||
##### Older builds without rule controls
|
||
|
||
In v6.4.5, **Create rule** has no corresponding rule-list or delete control in
|
||
the UI. If your build has no **Suppression rules** control, the existing API
|
||
workaround below can remove one manual rule without an upgrade or restart.
|
||
It is not a way around denied access or a failed removal in the UI.
|
||
|
||
For a rule made with **Create rule**, sign in normally to Pulse in an
|
||
authorised administrator's browser session, select the correct organisation,
|
||
and open that Pulse tab's developer console. Review the following snippet
|
||
before running it. It lists only manually created rules, asks for one exact
|
||
ID, and confirms its resource, category and reason before deleting it. Cancel
|
||
either prompt to leave the rules unchanged. Keep the list private: resource
|
||
names and reasons can describe your infrastructure.
|
||
|
||
No password, API token or session cookie needs to be copied or pasted. The
|
||
browser supplies its existing session; the snippet reads only the normal
|
||
CSRF and organisation cookies locally. Do not switch organisation while it
|
||
runs, use it on another website, disable authentication/CSRF protection, or
|
||
edit Pulse's data files. A token-only login or an expired session may not
|
||
support this workaround: stop on an authentication or missing-CSRF error
|
||
instead of inserting credentials into the snippet.
|
||
|
||
```javascript
|
||
(async () => {
|
||
const cookie = (name) => {
|
||
const row = document.cookie.split(';').find((part) => part.trim().startsWith(`${name}=`));
|
||
return row ? decodeURIComponent(row.trim().slice(name.length + 1)) : '';
|
||
};
|
||
const org = cookie('pulse_org_id') || 'default';
|
||
const headers = {
|
||
Accept: 'application/json',
|
||
'X-Requested-With': 'XMLHttpRequest',
|
||
'X-Pulse-Org-ID': org,
|
||
};
|
||
const readRules = async () => {
|
||
if ((cookie('pulse_org_id') || 'default') !== org) throw new Error('Organisation changed; stop.');
|
||
const response = await fetch('/api/ai/patrol/suppressions', {
|
||
credentials: 'same-origin', redirect: 'error', cache: 'no-store', headers,
|
||
});
|
||
if (!response.ok) throw new Error(`Rule list failed (HTTP ${response.status}); stop.`);
|
||
const rules = await response.json();
|
||
if (!Array.isArray(rules)) throw new Error('Unexpected rule list; stop.');
|
||
return rules.filter((rule) => rule && rule.created_from === 'manual');
|
||
};
|
||
const rules = await readRules();
|
||
console.table(rules.map((rule) => ({
|
||
id: rule.id, resource: rule.resource_name || rule.resource_id || 'Any resource',
|
||
category: rule.category || 'Any category', reason: rule.description,
|
||
})));
|
||
const id = prompt('Enter one exact rule ID from this list, or Cancel to keep all rules.');
|
||
if (id === null || !id.trim()) return;
|
||
const matches = rules.filter((rule) => typeof rule.id === 'string' && rule.id === id.trim());
|
||
if (matches.length !== 1) throw new Error('ID must match exactly one listed manual rule; stop.');
|
||
const rule = matches[0];
|
||
if (!confirm(`Delete only ${rule.id}?\nResource: ${rule.resource_name || rule.resource_id || 'Any resource'}\nCategory: ${rule.category || 'Any category'}\nReason: ${rule.description}\nFuture matching findings may appear again.`)) return;
|
||
if ((cookie('pulse_org_id') || 'default') !== org) throw new Error('Organisation changed; stop.');
|
||
const csrf = cookie('pulse_csrf');
|
||
if (!csrf) throw new Error('No browser CSRF token; stop and sign in normally, without pasting tokens.');
|
||
const response = await fetch(`/api/ai/patrol/suppressions/${encodeURIComponent(rule.id)}`, {
|
||
method: 'DELETE', credentials: 'same-origin', redirect: 'error',
|
||
headers: { ...headers, 'X-CSRF-Token': csrf },
|
||
});
|
||
if (!response.ok) throw new Error(`Deletion not confirmed (HTTP ${response.status}); stop.`);
|
||
if ((await readRules()).some((remaining) => remaining.id === rule.id)) {
|
||
throw new Error('Rule is still listed; removal was not verified.');
|
||
}
|
||
console.info('Selected rule is no longer listed. Other rules were not deleted.');
|
||
})().catch((error) => console.error(error.message));
|
||
```
|
||
|
||
A failed or lost response is not confirmation of removal. Do not blindly run
|
||
the deletion again: refresh the rule list first (open
|
||
`/api/ai/patrol/suppressions` in the same signed-in Pulse browser) and check the
|
||
selected ID. If the rule is absent, it was already removed. If you cannot
|
||
verify the result, stop and report only the HTTP status or error, not cookies,
|
||
tokens or the full rule list. Entries whose `created_from` is `finding` or
|
||
`dismissed` are individual finding decisions and are deliberately excluded
|
||
from this snippet.
|
||
|
||
Every active finding shown or returned to a Patrol run must receive an
|
||
explicit `present`, `resolved`, or `uncertain` assessment. Silence is not an
|
||
all-clear signal. `present` refreshes current evidence, `resolved` remains
|
||
subject to deterministic verification, and `uncertain` keeps the finding open
|
||
and makes the run visibly inconclusive.
|
||
|
||
### Patrol model qualification
|
||
|
||
The Assistant model matrix below proves Assistant orchestration only. Patrol
|
||
recommendations are published separately from live, reversible canary faults,
|
||
healthy controls, normal collection paths, scenario-owned ground truth, and
|
||
track-specific launch gates. See
|
||
[Pulse Patrol autonomous operations and real-world qualification](AI_PATROL_QUALIFICATION.md)
|
||
for the catalogue, methodology, safe lab boundary, full-track local suite,
|
||
privacy-allowlisted community evidence export, and publication command.
|
||
|
||
---
|
||
|
||
## Patrol Modes
|
||
|
||
Patrol supports four modes that decide how far Pulse can go after it finds an issue:
|
||
|
||
| Mode | Behavior | Plan |
|
||
|-------|----------|------|
|
||
| **Watch only** | Detect issues only. No investigation or fixes. | Community (BYOK) |
|
||
| **Ask first** | Investigates findings and proposes fixes. All fixes require approval before execution. | Pro / hosted Cloud |
|
||
| **Safe auto-fix** | Runs warning-level governed fixes automatically and verifies results. Critical findings still require approval by default. | Pro / hosted Cloud |
|
||
| **Autopilot** | Runs eligible governed fixes automatically and verifies results. Use only in environments where this is acceptable. | Pro / hosted Cloud |
|
||
|
||
Community and Relay installs can still run scheduled Patrol findings with BYOK. Watch only remains the free-first baseline; investigation, proposed fixes, and fix execution are paid AI-operations capabilities rather than a core monitoring limit.
|
||
|
||
### Investigation Flow
|
||
|
||
When a finding is created in a Pro Patrol mode:
|
||
|
||
```
|
||
Finding created
|
||
│
|
||
▼
|
||
MaybeInvestigateFinding()
|
||
│
|
||
├─ Has orch + chatService?
|
||
│ │
|
||
│ ▼
|
||
│ InvestigateFinding()
|
||
│ │
|
||
│ ▼
|
||
│ Create chat session
|
||
│ │
|
||
│ ▼
|
||
│ AI analysis (with tools)
|
||
│ │
|
||
│ ▼
|
||
│ [Fix proposed?] ──Yes──► Queue approval (or auto-execute in full mode)
|
||
│ │
|
||
│ No
|
||
│ ▼
|
||
│ Update finding with outcome
|
||
│
|
||
└─ Skip investigation
|
||
```
|
||
|
||
### Investigation Configuration
|
||
|
||
| Setting | Default | Description |
|
||
|---------|---------|-------------|
|
||
| `MaxEvidenceCalls` | 10 | Maximum evidence-tool calls per investigation; the terminal typed proposal is reserved separately |
|
||
| `MaxTurns` | 12 | Internal provider-response safety ceiling derived from the evidence budget (budget + proposal + final summary) |
|
||
| `Timeout` | 10 min | Maximum duration per investigation |
|
||
| `MaxConcurrent` | 3 | Maximum concurrent investigations |
|
||
| `MaxAttemptsPerFinding` | 3 | Maximum investigation attempts per finding |
|
||
| `CooldownDuration` | 1 hour | Cooldown before re-investigating |
|
||
| `TimeoutCooldownDuration` | 10 min | Shorter cooldown for timeout failures |
|
||
| `VerificationDelay` | 30 sec | Wait before verifying fix |
|
||
|
||
### Investigation Outcomes
|
||
|
||
| Outcome | Meaning |
|
||
|---------|---------|
|
||
| `resolved` | Issue resolved during investigation |
|
||
| `fix_queued` | Fix proposed, awaiting approval |
|
||
| `fix_executed` | Fix auto-executed successfully |
|
||
| `fix_failed` | Fix attempted but failed |
|
||
| `fix_verified` | Fix worked, issue confirmed resolved |
|
||
| `fix_verification_failed` | Fix ran but issue persists |
|
||
| `needs_attention` | Requires human intervention |
|
||
| `cannot_fix` | Issue cannot be automatically fixed |
|
||
| `timed_out` | Investigation timed out (will retry sooner) |
|
||
|
||
---
|
||
|
||
## Pulse Assistant chat (retired)
|
||
|
||
The in-app Pulse Assistant chat window and its Settings page have been retired.
|
||
Patrol is the built-in operator, and the governed tools the chat used are
|
||
available to external agents through `pulse-mcp` (see
|
||
[Using Pulse from Claude Code, Codex, and other agents](#using-pulse-from-claude-code-codex-and-other-agents)).
|
||
An alert's **Have Patrol investigate** button starts a targeted Patrol check on
|
||
the alert's resource; its findings appear on the Patrol page.
|
||
|
||
Pulse Mobile keeps its chat tab until the app retires on 31 March 2027. It uses
|
||
the chat action level saved before the retirement, and the chat model override
|
||
if one was saved, otherwise the default model from **Provider & Models**. The web
|
||
settings no longer set the action level or the override; removing the provider
|
||
an override names clears it, and Mobile chat then uses the default model.
|
||
|
||
To keep automated actions away from a specific guest, lock it: open the guest,
|
||
choose **Manage**, turn on **Never auto-remediate** under Operator overrides,
|
||
and save. Pulse then refuses typed actions that target that resource, including
|
||
approved ones.
|
||
|
||
---
|
||
|
||
## Weekly summary and email
|
||
|
||
Pulse's **This week** summary adds up retained Patrol activity over the last
|
||
seven days. Open **Patrol → Activity** to read it; use **Settings → Data & Reports**
|
||
to schedule the same summary by email. The card, weekly email and **Report type**
|
||
selector are included in **v6.5.0**. An older build can lack these controls.
|
||
|
||
This is a summary of recorded activity, not a complete audit or proof that every
|
||
resource is healthy. Use individual findings, run history and **Actions** for
|
||
the result of a particular investigation or fix.
|
||
|
||
### Read the summary
|
||
|
||
The card normally says **Last 7 days**: a rolling window, not a calendar week.
|
||
If it says **Since … (older runs are no longer kept)**, its run history covers
|
||
only part of that window. Refreshing the card reads existing records; it does
|
||
not run Patrol or recover missing history.
|
||
|
||
| Line | What it means and what to check |
|
||
| --- | --- |
|
||
| **Patrol runs** | Retained runs, checks and failures in the window. The resource count is the largest number checked in one run, not a count of distinct resources across the week. Read run history for failed or missing checks. |
|
||
| **New issues** | New-finding totals recorded by those runs. The open severity counts concern findings detected within the window; older open findings are not included. Check the full findings list before concluding that nothing needs attention. |
|
||
| **Issues resolved** | Recorded automatic resolutions plus manual resolutions still retained. Dismissed and muted findings are described separately. A cleared finding does not establish that an action ran or was independently verified. |
|
||
| **Investigated** | Recorded investigation outcomes on retained findings. “Fix run, result unknown” is not a verified fix; open the finding for its result and remaining work. |
|
||
| **Fixes run** | Actions recorded as successfully executed. “Verified afterwards” is a separate count; review failed actions and waiting approvals in **Actions**. Do not run an action again merely to increase the count. |
|
||
| **Estimated spend** | Recorded Patrol model calls and their estimated USD cost, not an invoice or all Assistant usage. If some calls have no known price, the displayed amount is incomplete, not a zero-cost result. Check [Cost Tracking](AI.md#cost-tracking). |
|
||
|
||
The displayed mode is Patrol's **current** mode, not a history of mode changes.
|
||
Watch-only mode can explain why investigations or fixes were not performed,
|
||
but changing mode is not a repair for an empty summary.
|
||
|
||
### Schedule the weekly email
|
||
|
||
Scheduling requires the **advanced reporting** entitlement and an account
|
||
allowed to manage report schedules. Reading the Patrol card does not itself
|
||
grant scheduling access. See [Plans and entitlements](PULSE_PRO.md).
|
||
|
||
1. Check that email notifications are **enabled and configured** under
|
||
**Alerts → Notifications**. Listing recipients on a schedule does not
|
||
configure a mail provider or enable email.
|
||
2. Open **Settings → Data & Reports**, choose **Create schedule**, then set
|
||
**Report type** to **Patrol weekly summary**.
|
||
3. Enter a schedule name, weekday, time and an IANA **Timezone**, such as
|
||
`Europe/London`. The summary is weekly, covers the last seven days, and is
|
||
sent as HTML and plain text email. It is not a PDF/CSV attachment, a
|
||
resource/tag-filtered report, or a saved disk copy.
|
||
4. Set **Email recipients** deliberately. Blank uses the existing email
|
||
notification recipients; if none are configured, delivery can fall back
|
||
to the sender address. Use explicit authorised recipients to avoid that
|
||
ambiguity. The email can contain resource names, findings and costs.
|
||
5. Save with **Enabled** selected for automatic runs. **Run now** sends a real
|
||
email; it is not a preview or a test of future scheduled delivery. Use it
|
||
only when those recipients should receive the summary.
|
||
|
||
The Report type choice appears when the session reports AI as enabled. An
|
||
existing summary keeps its type when edited after AI is switched off. If the
|
||
choice is missing, check the installed version, current workspace, AI settings
|
||
and reporting access; do not change Patrol's autonomy mode, re-enrol agents or
|
||
create an API token just to reveal it.
|
||
|
||
### Check a missing email or empty summary
|
||
|
||
- **No recorded runs:** check Patrol's enabled state, configured provider,
|
||
ordinary run history and errors. “Patrol has not run” can also reflect an
|
||
unavailable Patrol service, not proof that the environment had no problems.
|
||
Do not force a run, restart Pulse or change retention just to fill the card.
|
||
- **Failed schedule:** read **Last run** and the saved error in Reporting. On
|
||
a narrow screen, use the same signed-in page at a wider viewport to see
|
||
that column. A missing Patrol service and missing email configuration are
|
||
different failures. Preserve the original error; do not repeatedly use
|
||
Run now or send synthetic alerts to diagnose them.
|
||
- **Run marked OK but no email received:** that status means Pulse's sender
|
||
returned success, not that the message reached the recipient's inbox.
|
||
Check the selected recipients and the mail provider's delivery or rejection
|
||
record, then the mailbox's filtering. A successful alert Test does not prove
|
||
that this schedule ran or used the intended recipients.
|
||
- **Email links missing:** links depend on the configured Pulse public URL.
|
||
Open Patrol in your existing authenticated browser; do not make Pulse
|
||
publicly accessible or disable TLS to make an email link work.
|
||
|
||
Keep full mail errors, recipient addresses, credentials and exports private.
|
||
Share only a locally reviewed, redacted error and the relevant schedule time
|
||
and outcome; see [Getting Help](TROUBLESHOOTING.md#-getting-help).
|
||
|
||
### Honest limits of the data
|
||
|
||
- Run history retains at most **100 runs**. Event-triggered activity can
|
||
exhaust it before seven days. The partial-window notice concerns run
|
||
retention only; its absence does not certify all other lines as complete.
|
||
- Resolved findings can be purged after **24 hours**, and dismissed findings
|
||
after **30 days**. Manual resolutions, dismissals and investigation outcomes
|
||
on purged findings can disappear from these totals. Automatic resolution
|
||
totals come from retained runs, so the lines need not reconcile exactly.
|
||
- Actions have their own retained audit records, but the digest reads a bounded
|
||
set and can show an empty action line when that source is unavailable.
|
||
Check **Actions** itself; zero in this summary is not proof that no action
|
||
took place. Pending approvals can include actions created before the window.
|
||
- Model spend depends on recorded usage and known prices. This summary cannot
|
||
establish that caching, a budget limit or a provider's bill is correct.
|
||
|
||
### API
|
||
|
||
For an existing authenticated integration, `GET /api/ai/patrol/digest` requires
|
||
`ai:execute` scope. Optional `days` is an integer from **1 to 30**, default
|
||
**7**; invalid values return 400. Scheduled email always uses seven days.
|
||
The response groups `window`, `mode`, `runs`, `findings`, `investigations`,
|
||
`actions`, `alerts` and `spend`. `window.history_complete` and
|
||
`window.history_since` describe the run-retention limitation above, not a
|
||
whole-report completeness guarantee.
|
||
|
||
A zero response can be returned when the Patrol service is unavailable.
|
||
Authentication, scope or transport errors are not a zero result. Prefer the
|
||
signed-in card for a one-off check; never extract a session cookie or put an
|
||
API token in a command, URL or public report. See [API authentication](API.md#-authentication)
|
||
for the private header-file approach when an integration needs it.
|
||
|
||
## Configuration
|
||
|
||
Configure providers in the UI: **Settings → Pulse Intelligence → Provider & Models**
|
||
|
||
### Supported Providers
|
||
|
||
- **Anthropic** (API key)
|
||
- **OpenAI**
|
||
- **OpenRouter**
|
||
- **DeepSeek**
|
||
- **Google Gemini**
|
||
- **Ollama** (self-hosted, with tool/function calling support)
|
||
- **Codex subscription (local)** — uses an installed Codex CLI signed in with
|
||
ChatGPT; no OpenAI API key is required or forwarded
|
||
- **Claude subscription (local)** — uses an installed Claude CLI signed in
|
||
with a Claude plan; no Anthropic API key is required or forwarded
|
||
- **OpenAI-compatible base URL** (llama.cpp, LocalAI, LM Studio, and other
|
||
compatible servers; the API key is optional when the custom endpoint is
|
||
intentionally keyless)
|
||
|
||
Legacy Anthropic OAuth fields may still appear in stored settings so existing
|
||
installs can disconnect and clear old tokens, but Anthropic OAuth is not a
|
||
supported runtime authentication method and does not make Anthropic configured.
|
||
|
||
### Local subscription-agent routes
|
||
|
||
The local subscription routes are explicit, same-machine transports for
|
||
self-hosted Pulse. Enable one under **Provider & Models** only when the Pulse
|
||
process runs as a user that can execute the corresponding CLI and read that
|
||
CLI's existing login. Pulse does not copy, store, refresh, or expose the CLI's
|
||
OAuth credentials. It also constructs a strict child-process environment that
|
||
does not forward API-key environment variables such as `OPENAI_API_KEY` or
|
||
`ANTHROPIC_API_KEY`, Pulse secrets, cloud credentials, or unrelated tokens,
|
||
preventing an installed API key from silently changing the billing route.
|
||
|
||
On a standard Linux systemd install, Pulse runs as the `pulse` account with
|
||
`HOME=/opt/pulse`. Install the selected CLI for that account (its supported
|
||
user-local binary directory is `/opt/pulse/.local/bin`) and complete the login
|
||
as that account; a CLI installed or authenticated only as `root` is
|
||
intentionally unavailable to Pulse. For Claude, verify the service identity
|
||
with:
|
||
|
||
```bash
|
||
sudo -u pulse env HOME=/opt/pulse PATH=/opt/pulse/.local/bin:/usr/local/bin:/usr/bin:/bin claude auth status --json
|
||
```
|
||
|
||
If it is not logged in, run `claude auth login` with the same `sudo -u pulse`
|
||
environment, restart `pulse.service`, and retry the provider test. Pulse also
|
||
accepts an absolute executable override through `PULSE_CLAUDE_CLI_PATH` or
|
||
`PULSE_CODEX_CLI_PATH` in `/etc/pulse/.env`; the target must remain executable
|
||
by the `pulse` account and its credentials must still belong to that account.
|
||
|
||
The child CLI is not given infrastructure authority. Each invocation runs in a
|
||
new temporary directory, with user extensions disabled, no Pulse MCP server,
|
||
no approval capability, and a structured output schema. It returns one proposed
|
||
provider turn. Pulse validates tool names, IDs, argument JSON, and tool-choice
|
||
constraints. Pulse retains tool execution and policy enforcement: the normal
|
||
Pulse tool loop independently applies control level, license,
|
||
protected-resource, approval, action, and verification policy. The CLI never
|
||
executes a Patrol tool itself.
|
||
|
||
Claude Code can occasionally express a requested Pulse tool as a local native
|
||
tool call even though local tools are disabled. Pulse audits Claude's buffered
|
||
event stream, accepts only the first call whose name was explicitly offered for
|
||
that turn, and routes it back through Pulse's normal executor; undeclared local
|
||
tool attempts fail closed. This does not grant Claude Code direct access to the
|
||
infrastructure.
|
||
|
||
This is still a local agent process, not a remote chat-completions API. Pulse
|
||
rejects a turn if Codex reports command, file, MCP, web, computer, or image-tool
|
||
activity, and Claude is launched with its built-in filesystem, shell, web, and
|
||
task tools denied. Codex's read-only sandbox is the remaining operating-system
|
||
boundary; operators should run self-hosted Pulse under a dedicated,
|
||
least-privilege OS account that cannot read unrelated user secrets. Do not
|
||
enable a subscription-agent route on a broadly privileged service account
|
||
merely to avoid API charges.
|
||
|
||
Install and authenticate the CLI before enabling its route:
|
||
|
||
```bash
|
||
codex login
|
||
codex login status
|
||
|
||
claude auth login
|
||
claude auth status --json
|
||
```
|
||
|
||
Use model IDs such as `codex-subscription:gpt-5.6-luna`,
|
||
`claude-subscription:sonnet`, or `claude-subscription:opus`. Model availability
|
||
and plan limits remain controlled by the installed CLI and the user's plan.
|
||
These routes are unsuitable for a container or service account unless that
|
||
runtime deliberately has the CLI and its own valid login. Pulse reports missing
|
||
binaries, logged-out sessions, plan limits, and model access failures as
|
||
provider readiness failures; it never falls back to a metered API provider.
|
||
|
||
The opt-in live transport probe is:
|
||
|
||
```bash
|
||
PULSE_TEST_SUBSCRIPTION_AGENTS=1 \
|
||
go test ./internal/ai/providers -run '^TestSubscriptionAgentLive$' -count=1 -v
|
||
```
|
||
|
||
Qualification reports record `inference_route=local_subscription_agent` so
|
||
subscription-backed runs cannot be confused with direct API or local-model
|
||
runs. Token counts depend on what the CLI exposes, and a subscription allowance
|
||
is not represented as a zero-dollar API price. The report keeps its monetary
|
||
cost unknown and marks the per-run metered-API budget as not applicable; plan
|
||
limits, provider errors, latency, and any usage the CLI exposes remain visible.
|
||
For automatic Watch checks, Pulse also sends a bounded output allowance and a
|
||
low reasoning-effort hint to the local Codex or Claude transport. This limits
|
||
routine structured routing and summary overhead; it does not reduce the tools
|
||
available to Watch or change Pro investigation reasoning, which remains
|
||
model-led and uses its normal reasoning depth.
|
||
|
||
Z.ai requests sent through a configured `/api/coding/paas/` endpoint are
|
||
recorded as `inference_route=coding_plan_allowance`. Qualification keeps their
|
||
per-run monetary cost unknown and the metered-API dollar budget not applicable,
|
||
while still scoring tokens, latency, provider or plan failures, and model
|
||
quality. The standard Z.ai `/api/paas/` endpoint remains a `metered_api` route.
|
||
|
||
### Models
|
||
|
||
Pulse uses model identifiers in the form: `provider:model-name`
|
||
|
||
Custom OpenAI-compatible model catalogs are authoritative. Pulse lists every
|
||
non-empty model ID returned by the endpoint, including IDs without a known
|
||
vendor prefix, and binds them to the configured `openai` provider instead of
|
||
guessing from the ID. Pulse omits empty Authorization headers, uses the
|
||
portable `max_tokens` request field, and omits optional OpenAI stream extensions
|
||
on custom endpoints. If an endpoint explicitly supports only buffered
|
||
completions, Pulse validates the complete response before projecting it through
|
||
the streaming runtime. Partial or malformed tool responses never become
|
||
executable calls.
|
||
|
||
Ollama `keep_alive` is an optional provider setting. Blank is the default and
|
||
means Pulse omits the field so the Ollama server's own policy applies; explicit
|
||
duration, seconds, `-1`, and `0` values persist across restart and apply to both
|
||
streaming and non-streaming requests.
|
||
|
||
You can set separate models for:
|
||
- Chat (`chat_model`)
|
||
- Patrol (`patrol_model`)
|
||
- Patrol fix model (`auto_fix_model`, retained as the compatibility settings key)
|
||
|
||
### Patrol model readiness advisor
|
||
|
||
Open **Settings → Pulse Intelligence → Patrol → Model readiness** and select
|
||
**Check Patrol model** to evaluate the exact provider, model, and local runtime.
|
||
The advisor uses synthetic data only and never calls infrastructure tools. It
|
||
checks provider connectivity, exact typed streaming tool calls, two
|
||
Patrol-shaped context fixtures, a multi-turn tool-result continuation, and
|
||
projected loop latency. Provider calls respect the configured cost budget and
|
||
their token counts are recorded under the `patrol_readiness` usage category.
|
||
|
||
Probes run with the runtime the fixtures require rather than provider server
|
||
defaults: an explicit runtime context window sized to the haystack fixtures
|
||
(sent as `num_ctx` on Ollama and clamped to the model's trained window), a
|
||
pinned temperature of 0, a generation budget that absorbs `<think>` reasoning
|
||
from thinking models, and the same inter-chunk stream stall allowance as the
|
||
real Patrol loop. When an evaluation fails, the result carries per-scenario
|
||
evaluation detail (probe and validator errors, including the provider's stop
|
||
reason such as `done_reason=length`) so the failure is diagnosable from the
|
||
UI and the API snapshot.
|
||
|
||
Results are reported separately for **Watch only** and **Ask first**. A short
|
||
synthetic evaluation never certifies **Safe auto-fix** or **Autopilot**; those
|
||
modes remain `not_assessed` until an extended governed canary is available.
|
||
Changing the selected model, provider credentials or endpoint, or relevant
|
||
timeout settings invalidates the cached result. Slow evaluations can be
|
||
cancelled from the UI without replacing the last completed evidence.
|
||
|
||
Provider transport health is reported independently from Patrol capability. A
|
||
local endpoint can remain healthy and usable for ordinary Assistant chat while
|
||
the selected model receives an amber Patrol warning because it did not
|
||
demonstrate typed tool calls, context selection, continuation, or the required
|
||
latency envelope. That warning does not mislabel the provider as disconnected,
|
||
and it does not weaken Patrol's fail-closed tool/action admission.
|
||
|
||
Removing a provider is a complete lifecycle action: Pulse deletes that
|
||
provider's stored credential, custom endpoint and provider-owned runtime
|
||
options, clears model selections routed through it, invalidates its model
|
||
catalog, and disables Pulse Intelligence when no provider remains. Credential
|
||
rotation through the legacy clear-key fields remains credential-specific.
|
||
|
||
### Storage
|
||
|
||
AI settings are stored encrypted at rest in `ai.enc` under the Pulse config directory. Related files:
|
||
|
||
| File | Purpose |
|
||
|------|---------|
|
||
| `ai.enc` | Encrypted AI configuration and credentials |
|
||
| `ai_findings.json` | Patrol findings |
|
||
| `ai_patrol_runs.json` | Patrol run history |
|
||
| `ai_patrol_model_readiness.json` | Last versioned Patrol model-readiness result; contains outcomes and timings, not prompts, credentials, or tool transcripts |
|
||
| `ai_usage_history.json` | Token usage data |
|
||
| `ai_chat_sessions.json` | Legacy chat sessions (UI sync) |
|
||
| `baselines.json` | Learned resource baselines |
|
||
| `ai_correlations.json` | Resource correlation data |
|
||
| `ai_patterns.json` | Detected patterns |
|
||
|
||
Config directory: `/etc/pulse` (systemd) or `/data` (Docker/Kubernetes)
|
||
|
||
### Testing
|
||
|
||
- Test provider connectivity: `POST /api/ai/test` and `POST /api/ai/test/{provider}`
|
||
- Evaluate Patrol model readiness: `POST /api/ai/patrol/readiness`
|
||
- List available models: `GET /api/ai/models`
|
||
|
||
---
|
||
|
||
## Schedule and Triggers
|
||
|
||
Patrol runs on a configurable schedule:
|
||
|
||
| Interval | Description |
|
||
|----------|-------------|
|
||
| Disabled | Patrol runs only when manually triggered |
|
||
| 10 min – 7 days | Configurable interval (default: 6 hours) |
|
||
|
||
Patrol can also be triggered by:
|
||
- **Manual run**: Click "Check now" in the Patrol header (the button shows "Starting…" or "Running…" while a run is starting or in progress)
|
||
- **Alert-triggered analysis (Pro and above)**: Runs when an alert fires
|
||
- **API call**: `POST /api/ai/patrol/run`
|
||
|
||
---
|
||
|
||
## Model Context Layer
|
||
|
||
Pulse includes a model-context layer that aggregates evidence from AI runtime subsystems:
|
||
|
||
### Components
|
||
|
||
| Component | Purpose |
|
||
|-----------|---------|
|
||
| **Baseline Store** | Maintains statistical metric summaries and anomaly evidence |
|
||
| **Pattern Store** | Records recurring event evidence and trend context |
|
||
| **Correlation Store** | Links related events and resource relationships for model context |
|
||
| **Investigation Context** | Uses alert history, Patrol runs, and resource timelines |
|
||
| **Knowledge Store** | Persists user annotations and model-safe context |
|
||
| **Forecast Service** | Estimates capacity trajectories from historical samples |
|
||
|
||
### Check History
|
||
|
||
Historical Patrol checks remain available from **Activity > Finding options and
|
||
history**, under **History**. Patrol no longer shows the legacy operational
|
||
score. Check history is not the primary daily monitoring answer and does not
|
||
replace the canonical attention queue.
|
||
|
||
---
|
||
|
||
## Model Matrix (Pulse Assistant)
|
||
|
||
This table summarizes the most recent **Pulse Assistant** eval runs per model.
|
||
|
||
Update the table from eval reports:
|
||
```
|
||
EVAL_REPORT_DIR=tmp/eval-reports go run ./cmd/eval -scenario matrix -auto-models
|
||
python3 scripts/eval/render_model_matrix.py tmp/eval-reports --write-doc docs/AI.md
|
||
```
|
||
Or use the helper script:
|
||
```
|
||
scripts/eval/run_model_matrix.sh
|
||
```
|
||
|
||
Run the resource-context Assistant handoff eval against a live resource:
|
||
```
|
||
EVAL_RESOURCE_CONTEXT_ID=delly:delly:101 \
|
||
EVAL_RESOURCE_CONTEXT_NAME=homeassistant \
|
||
EVAL_RESOURCE_CONTEXT_TYPE=system-container \
|
||
EVAL_RESOURCE_CONTEXT_NODE=delly \
|
||
EVAL_RESOURCE_CONTEXT_FORBIDDEN="/mnt/pve/finance-db,/var/lib/homeassistant,literal-provider-token-123" \
|
||
go run ./cmd/eval -scenario resource-context -url http://127.0.0.1:7655 -user admin -pass "$PULSE_EVAL_PASS"
|
||
```
|
||
|
||
<!-- MODEL_MATRIX_START -->
|
||
| Model | Smoke | Read-only | Time (matrix) | Tokens (matrix) | Last run (UTC) |
|
||
| --- | --- | --- | --- | --- | --- |
|
||
| anthropic:claude-3-haiku-20240307 | ✅ | ❌ | 2m 42s | — | 2026-01-29 |
|
||
| anthropic:claude-haiku-4-5-20251001 | ✅ | ✅ | 8s | 18,923 | 2026-01-29 |
|
||
| anthropic:claude-opus-4-5-20251101 | ✅ | ✅ | 9m 31s | 1,120,530 | 2026-01-29 |
|
||
| gemini:gemini-3-flash-preview | ✅ | ✅ | 7m 4s | — | 2026-01-29 |
|
||
| gemini:gemini-3-pro-preview | ✅ | ✅ | 3m 54s | 1,914 | 2026-01-29 |
|
||
| openai:gpt-5.2 | ✅ | ✅ | 5s | 12,363 | 2026-01-29 |
|
||
| openai:gpt-5.2-chat-latest | ✅ | ✅ | 8s | 12,595 | 2026-01-29 |
|
||
<!-- MODEL_MATRIX_END -->
|
||
|
||
---
|
||
|
||
## Safety Controls
|
||
|
||
Pulse includes settings that control how "active" AI features are:
|
||
|
||
- **Patrol modes (Pro and above)**: Lets you choose whether Patrol only watches, asks before changes, handles safe fixes, or uses policy autopilot
|
||
- **Governed fixes (Pro and above)**: Allows Patrol to propose, approve, run, verify, and record fixes under the Patrol mode you choose
|
||
- **Issue investigation (Pro and above)**: Lets Patrol investigate findings with surrounding infrastructure context
|
||
- **Policy autopilot unlock (Pro and above)**: Permits eligible critical fixes without per-fix approval after an explicit opt-in
|
||
|
||
If you enable execution features, ensure agent tokens and scopes are appropriately restricted.
|
||
|
||
### Advanced Network Restrictions
|
||
|
||
Pulse blocks AI tool HTTP fetches to loopback and link-local addresses by default. For local development:
|
||
|
||
- `PULSE_AI_ALLOW_LOOPBACK=true`
|
||
|
||
Use this only in trusted environments.
|
||
|
||
---
|
||
|
||
## Privacy
|
||
|
||
**BYOK is not local-only processing.** It supplies your own provider credentials,
|
||
not a guarantee that infrastructure data stays on your server. Model processing
|
||
happens at the configured endpoint. With a hosted model, context travels directly
|
||
from a self-managed Pulse instance to that provider, not through Pulse
|
||
infrastructure.
|
||
|
||
- **Model context differs from usage telemetry.** It can include resource names
|
||
and addresses, monitoring state, relationships, operator notes and objectives,
|
||
prior findings and tool results used in the run. Review the chosen provider's
|
||
retention and training policies before enabling scheduled Patrol or an
|
||
investigation; Pulse does not set those policies for you.
|
||
- **Redaction has a scope.** Non-local model requests apply secret filtering and
|
||
resource-policy handling: local-only resource details are omitted or
|
||
summarised, and known restricted identifiers are redacted. **Internal and
|
||
Sensitive resources can still be shared with a hosted model.** These safeguards
|
||
do not make every note or tool result anonymous. Keep credentials out of notes
|
||
and prompts; do not treat a sensitivity label as a promise of local processing.
|
||
- **Local processing depends on the endpoint.** If context must stay within
|
||
your network, use a trusted local model endpoint and verify that it does not
|
||
forward requests elsewhere. BYOK or an API-compatible endpoint alone does not
|
||
establish that. Local inference does not disable Pulse's other outbound
|
||
connections.
|
||
- **Usage telemetry is separate.** Its enabled-by-default heartbeat contains a
|
||
rotating pseudonymous install ID, aggregate counts and coarse flags, not model
|
||
prompts or tool output. Turning off **Outbound usage telemetry** does not stop
|
||
AI provider requests or delete locally retained AI history.
|
||
- **External MCP clients have their own data flow.** Review the external
|
||
client's model provider and data-handling settings too: it can pass the Pulse
|
||
tool results it is authorised to read to its own model, independently of
|
||
Pulse's selected provider.
|
||
|
||
See [AI provider data](PRIVACY.md#ai-provider-data) for outbound handling and
|
||
[local history privacy](CONFIGURATION.md#handle-configuration-and-history-privately)
|
||
before sharing saved records. Do not attach prompts, run histories or raw tool
|
||
output to a public report; use only a relevant, locally reviewed and redacted
|
||
excerpt.
|
||
|
||
---
|
||
|
||
## Why Patrol Is Different From Traditional Alerts
|
||
|
||
Alerts are threshold-based and narrow. Patrol gives the selected model a broader, tool-backed operating picture.
|
||
|
||
- **Alerts**: "Disk > 90%"
|
||
- **Patrol**: "The model sees ZFS pool usage, growth rate, datastore consumers, backup context, and governed actions, then decides whether that evidence warrants a finding or action recommendation."
|
||
|
||
---
|
||
|
||
## Cost Tracking
|
||
|
||
Pulse tracks token usage and costs:
|
||
|
||
- View usage summary: `GET /api/ai/cost/summary`
|
||
- Reset counters: `POST /api/ai/cost/reset` (admin)
|
||
- Set monthly budget limits in AI settings
|
||
|
||
---
|
||
|
||
## Troubleshooting
|
||
|
||
| Issue | Solution |
|
||
|-------|----------|
|
||
| Patrol not responding | Verify provider credentials in **Settings → Pulse Intelligence → Provider & Models** |
|
||
| No execution capability | Confirm at least one agent is connected |
|
||
| Findings not persisting | Check Pulse has write access to `ai_findings.json` in the config directory |
|
||
| Too many findings | This shouldn't happen — please report if it does |
|
||
| Investigation stuck | Check circuit breaker status at `/api/ai/circuit/status`; may auto-reset after cooldown |
|
||
| Model not available | Ensure provider API key is valid and model ID matches provider format |
|
||
|
||
## Related Documentation
|
||
|
||
### Deep Dives (Recommended for Technical Audiences)
|
||
|
||
- **[Pulse Assistant Deep Dive](ASSISTANT_ARCHITECTURE.md)** — Complete technical breakdown of the model-owned tool surface: explicit context, session fact caching, FSM enforcement, parallel execution, grounded execution guardrails, structured errors
|
||
- **[Pulse Patrol Deep Dive](PATROL_ARCHITECTURE.md)** — Patrol runtime documentation: evidence assembly, deterministic signal extraction, model evaluation, investigation context, investigation orchestration
|
||
|
||
### Reference Documentation
|
||
|
||
- [Architecture: Pulse Assistant (Safety Gates)](ASSISTANT_SAFETY.md) — Detailed FSM states, tool protocol, and invariants
|
||
- [API Reference](API.md) — Complete API endpoint documentation
|
||
- [Plans and entitlements](PULSE_PRO.md) — Community/Relay/Pro/Cloud features and licensing
|