Commit Graph
9207 Commits
Author SHA1 Message Date
rcourtman b0468b07ff Support Docker Compose application diagnosis and reviewed service updates (#4571)
Pulse now groups Compose services by runtime and project. Operators can
follow a service from the Docker installer to its checks, recent
failures and opt-in live logs. Container alerts can be muted on one
runtime while endpoint and machine checks keep their own settings.

For an explicitly registered deployment source, an approved update
changes one service image in the local Compose file or publishes a Git
branch against the reviewed base. The application shows the running
manifest and a fresh linked HTTP result separately, with recovery
instructions for the source owner. The Docker demo includes a matching
deployment image and a failed readiness check.

Verified both update paths through a private Docker daemon, registry,
Git remote and authenticated Pulse UI. Before the Git rollout the
running digest differed. After each rollout the digest matched, HTTP
returned v2, the peer container ID was unchanged and the application
volume marker survived. Browser checks also covered monitoring-only
onboarding, opt-in logs, scoped alert mute, desktop and mobile failure
diagnosis and retrying a scoped port check with simulated Proxmox guest
inventory. The production build passed all bundle budgets and 692
targeted frontend tests. All 34 action review tests passed after the
mobile digest wrapping fix. The full mock, Docker agent and Docker
protocol packages passed 479 tests. Three fixture-dependent Docker agent
tests were skipped in the standard package run. A separate native Docker
run on the final source exercised the directory-scoped replacement and
confirmed v1 to v2, an unchanged peer and retained application data.
2026-11-18 03:54:07 +00:00
rcourtman 0a7f9bb045 Use the shared action-list errors for Compose deployment history
Consumers can handle missing scope and storage failures through the
established action API codes. Exercise both missing scope parameters in
the API contract and include Compose among the supported list views.
2026-11-18 03:18:09 +00:00
rcourtman cea1509cc9 Constrain Compose source replacement to the registered directory
Keep the file replacement and recovery link relative to one opened
directory. Validate the action ID at installation and preserve a prior
recovery copy if the same action reaches the filesystem again. Keep the
Docker onboarding example within the public landing page budget.
2026-11-18 02:47:41 +00:00
rcourtman f30b2555ea Review Compose updates against their deployment source
Docker operators need to diagnose service failures and change one image
without losing the source that owns a running application. Bind approved
updates to the registered Compose file or Git base, then show the running
image and fresh HTTP evidence after rollout. Keep log access opt-in, mute
container alerts per runtime, and connect the Docker installer and demo
to the application workflow.
2026-11-18 02:36:36 +00:00
rcourtman afab8d9c75 Measure Patrol outcomes independently of finding cleanup (#4567)
Finding retention currently changes the apparent investigation outcome
distribution. Persist each closed run in an independent local 30-day
ledger and reconcile later action transitions by run identity. Export
only fixed outcome and handoff counts, availability and observation age
in schema 23. No customer text or run identifiers leave the
installation.

Keep legacy finding counters separate, document partial coverage after
upgrade, and disclose the new fields in the payload preview and privacy
document. Unknown optional handoff labels fall back to unspecified
without blocking an investigation conclusion.

Validation: core persistence, telemetry, conclusion and contract tests,
API/action reconciliation regression tests, concurrent persistence race
tests, TypeScript and 50 frontend tests. Three Chromium disclosure tests
cover preview, copy, refresh, ID reset, persisted opt-out and privacy
disclosure at 1280x800, 768x1024 and 390x844. Canonical pre-commit
checks also run before source landing.

Recovery race tests preserve byte-for-byte history, chat and encrypted
credentials alongside initialized measurement metadata. First setup
creates only the private empty ledger and does not reconstruct
pre-upgrade outcomes.

This is source preparation only. Live fleet measurement requires the
compatible receiver deployment and upgraded clients. A fresh observation
window does not reconstruct historical outcomes.
2026-11-18 01:35:56 +00:00
rcourtman 4d9f661c9b Show Docker Compose applications by runtime
Operators investigating a failed service need its containers, endpoint checks
and recent activity together. Scope each Compose project to the reporting
runtime so identically named projects on different hosts stay separate.
2026-11-18 01:29:51 +00:00
rcourtman 2991e3f7ae Verify investigation measurements preserve retained state
Establish installation measurement metadata in recovery fixtures while
preserving strict byte-for-byte checks for history, chat and credentials.
Prove first setup creates only the private ledger and does not backfill
pre-upgrade sessions. Record the receiver activity and passive-coverage
boundary in the owning contract.
2026-11-18 01:15:08 +00:00
rcourtman aa69542647 Merge branch 'main' into fix/tcp-check-closed-at-once 2026-11-18 00:06:57 +00:00
rcourtman feacbf0e1d Measure Patrol outcomes independently of finding cleanup
Record each closed investigation in a private 30-day ledger and reconcile
later action outcomes by local run key. Export fixed outcome and handoff
counts with observation coverage while keeping legacy finding counts separate.

Verify cleanup, replay, concurrency, failed writes and rollback boundaries,
and carry schema 23 through the payload preview and privacy disclosure.
2026-11-17 23:34:01 +00:00
rcourtman 39058c0358 Make metric history free on every plan (#4561)
Metric history is now free on every plan.

**Why:** Community installs already stored 90 days of daily averages
(and 366 days of availability history), but the history reads refused
anything past seven days. Paid installs barely use it: 12 of 88 covered
paid installs read past seven days in the last 30 days.

**What changes**
- `/api/metrics-store/history`, `/api/availability-history` and
`get_metric_history` serve every supported range on every plan; storage
retention decides how far back the data goes.
- `long_term_metrics` is a Community compatibility key with no upgrade
reason. `TierHistoryDays` and `max_history_days` are removed from the
entitlement and runtime payloads.
- The downgrade purge is removed: no history or generated reports are
deleted because a plan ended.
- The chart lock overlay, the guest drawer lock panel,
`HistoryLockPlanLink`, the billing "Metric History" row, the plan
comparison row and the plan copy that sold history are removed.
- README, plan docs, metrics-history help, API docs, the MCP tool
description and the internal contracts describe the new behaviour.

**Not in this PR:** the public pricing pages and licence-server pricing
copy in pulse-pro, which change when the release carrying this ships.
2026-11-17 20:53:33 +00:00
rcourtman 5904a069ef Merge remote-tracking branch 'origin/main' into fix/free-metric-history 2026-11-17 20:21:54 +00:00
rcourtman 790af9610a Keep the threshold tone on node temperature sparklines
In Trends and the row-hover lens the node Temp column replaced the
threshold-coloured gauge with a sparkline whose value was plain text,
so a node over its temperature trigger read the same as a cool one.

The value beside the sparkline now uses getTemperatureTextClass with
the node's thresholds and open-alert severity, the same tone and alert
title the gauge shows in Bars. The line keeps the red temperature
series colour the drawer charts use, so the sparkline still matches
the node's Thermals chart.
2026-11-17 20:15:53 +00:00
rcourtman 107c4e29f9 Make metric history free on every plan
Community installs already stored 90 days of daily metric averages and
366 days of availability history, but the chart, availability and agent
history reads refused anything past seven days, and lapsed paid installs
had history past seven days purged 60 days after a downgrade. Locking
users out of data on their own disk is the kind of limit that drew the
loudest complaints before (the monitored-system cap, SSO), and it is not
what people pay for: 12 of 88 covered paid installs read past seven days
in the last 30 days.

The history routes now serve every supported range on every plan, and
storage retention alone decides how far back the answer goes.
long_term_metrics moves into Community as a compatibility key with no
upgrade reason. TierHistoryDays, max_history_days and the downgrade
purge (DowngradeRetentionState, the metrics store commercial ceiling and
the generated-report purge) are removed, so nothing deletes history or
reports because a plan ended. The chart and drawer lock panels, the
history plan link, the billing summary row and the plan copy that sold
history go with them. Paying users lose nothing.

The public pricing pages and licence server copy in pulse-pro change
when the release carrying this ships.
2026-11-17 20:11:48 +00:00
rcourtman ae0ad80208 Merge remote-tracking branch 'origin/main' into feat/node-temperature-history 2026-11-17 19:32:33 +00:00
rcourtman fa8e3acb32 Show node history on row hover, temperature included
The Proxmox page shares one View control between the node table and the
guest table, but only passed the bars/sparklines mode and the range to
the node table. Row-hover History therefore worked on guest rows and did
nothing on node rows, and neither hover nor Trends charted the Temp
column, so an operator looking at a node at 94°C could not tell a steady
reading from a spike without opening the drawer.

The node table now takes the page's row-hover mode. In History hover a
hovered node row swaps CPU, memory, disk and temperature to sparklines
that share one cursor, as guest rows do; Details hover keeps the bars.
Trends charts temperature on every node row. The node history reader
starts on the first hover, so a page nobody hovers reads no node history.

/api/charts/infrastructure accepts temperature as an opt-in metric. The
default payload is unchanged; node and agent host series return stored
temperature history only when a caller asks for it. Temperature
sparklines scale around their own readings with a 25° minimum span, so
a steady 60°C reads as flat rather than pinned near the top.
2026-11-17 19:09:21 +00:00
pulse-triage[bot] 4b08e27d2c Require complete JSON decisions for hosted lifecycle changes (#4557)
Reuse the bounded administrator object decoder before suspension and
soft deletion. Preserve bodyless defaults while refusing trailing input,
competing controls, non-object roots, overflow and failed reads before
saving organization state.

Exercise real selected and peer metadata, supported options, admission
gates and native HTTP continuation; update the shared lifecycle and API
contracts.

---
Fleet candidate `20261117T164124Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `badef928f2b8a93d67ef7878ed1368e8f1250446` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-17 18:35:03 +00:00
pulse-triage[bot] 832f171e48 Refuse competing settings in private observer files
Validate repeated root and destination members before resolving observer credentials. Preserve singleton aliases, explicit transport and provisioning choices, and saved primary authority on refusal and correction. Keep the pending hosted lifecycle candidate separate.

Change-source: pulse-maintainer
2026-11-17 16:11:10 +00:00
pulse-triage[bot] 13d1d265c1 Preserve retained lifecycle input repair with landed recovery contracts
Compose exact candidate 4fcd1f45ca onto assigned cd9838474d without changing its handler or registered tests. Resolve the three additive shared-contract conflicts by retaining both landed recovery and lifecycle-input sections. Native proof is still unfinished pending existing Delivery executor disposition.

Change-source: pulse-maintainer
2026-11-17 15:33:33 +00:00
pulse-triage[bot] cd9838474d Refuse ended administrator recovery before token consumption (#4548)
Check request lifetime before reading recovery input and immediately
before single-use token validation. Preserve admitted consume-and-reset
completion and existing method, organisation and IP/token checks. Add
deterministic persisted-state and post-admission cancellation controls,
and document the public admission boundary.

---
Fleet candidate `20261117T132746Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `23d88622fd7beaedc366d48863b46023c1453a2d` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-17 14:52:45 +00:00
pulse-triage[bot] 4fcd1f45ca Require complete JSON decisions for hosted lifecycle changes
Reuse the bounded administrator object decoder before suspension and soft deletion. Preserve bodyless defaults while refusing trailing input, competing controls, non-object roots, overflow and failed reads before saving organization state.

Exercise real selected and peer metadata, supported options, admission gates and native HTTP continuation; update the shared lifecycle and API contracts.

Change-source: pulse-maintainer
2026-11-17 14:39:46 +00:00
pulse-triage[bot] 0108686b0d Keep sharing recovery in the keyboard flow (#4546)
**Keep sharing recovery in the keyboard flow**

Focus a stable named busy region before an explicit saved-sharing read
replaces Reload. Keep that position through success or failure and
remove delayed manual intent so leaving the panel wins. Preserve exact
saved-action recovery, uncertainty and no-write-replay boundaries, with
real-client regression coverage and comparable desktop/phone browser
proof.

**Use the supported exact-name sharing role query**

The first exact-source proof passed all 350 affected tests, then
type-check rejected a Testing Library option that belongs to text
queries, not role queries. A string accessible name already matches
exactly. Remove only that unsupported test option; keep the
browser-verified product runtime unchanged and finish the containing
validation chain.

---
Fleet candidate `20261117T125819Z-web-product` from the `web-product`
lane. Reviewed tip `e4e96af787dbcd36b13692a5d45f2befbe88e807` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-17 14:01:20 +00:00
pulse-triage[bot] 23d88622fd Merge commit '7b51c7de652c46295dae58461c4f73d2a7177d51' into maintainer-async/20261117T132746Z-core-runtime/pulse
Change-source: pulse-maintainer
2026-11-17 13:29:50 +00:00
pulse-triage[bot] 7b51c7de65 Refuse ended administrator recovery before token consumption
Check request lifetime before reading recovery input and immediately before single-use token validation. Preserve admitted consume-and-reset completion and existing method, organisation and IP/token checks. Add deterministic persisted-state and post-admission cancellation controls, and document the public admission boundary.

Change-source: pulse-maintainer
2026-11-17 13:07:24 +00:00
pulse-triage[bot] 0c907c40e0 Compose reviewed Sharing keyboard recovery with current main
Retain the reviewed Sharing commits and their source-bound browser receipt. Current main contains only independent Overview work since the original Sharing base; complete the remaining frontend static/build/embed proof on this combined source.

Change-source: pulse-maintainer
2026-11-17 11:30:27 +00:00
pulse-triage[bot] 8a26512a76 Compose reviewed token-control repair for containing API validation
Change-source: pulse-maintainer
2026-11-17 11:24:24 +00:00
pulse-triage[bot] 0ae87e9881 Keep sharing recovery in the keyboard flow
Focus a stable named busy region before an explicit saved-sharing read replaces Reload. Keep that position through success or failure and remove delayed manual intent so leaving the panel wins. Preserve exact saved-action recovery, uncertainty and no-write-replay boundaries, with real-client regression coverage and comparable desktop/phone browser proof.

Change-source: pulse-maintainer
2026-11-17 10:29:33 +00:00
pulse-triage[bot] dab05cb9ce Use a complete policy fixture for Overview withdrawal
The first exact-source proof passed all 212 affected tests, then type-check rejected the new hidden-surface fixture's partial policy. Supply its required read-only and presentation fields without changing the tested demo-withdrawal behavior. Keep the browser-verified runtime unchanged.

Change-source: pulse-maintainer
2026-11-17 09:50:28 +00:00
pulse-triage[bot] 8c963bab66 Keep saved organization details in the keyboard flow
Anchor explicit Overview reloads in a stable named busy region before the read replaces its controls. Keep Tab continuation and deliberate outside focus, including a later blur, without deferring a manual-result focus jump. Preserve the existing saved/uncertain rename continuation and all request, authority and no-replay behavior.

Update the owning contract and ordinary real-client transport regressions. Bind comparable desktop/phone light/dark browser proof to the final runtime bytes.

Change-source: pulse-maintainer
2026-11-17 09:42:19 +00:00
pulse-triage[bot] a9f159c92d Keep token-control transactions on live caller authority
Recheck the admitted token in its live inventory under the same configuration writer lock as creation, edit, revocation and rotation. Use current scopes, credential identity and boundaries after slow input or lock waits; retain typed 401/403 denials, valid self-change, persistence rollback and unlocked audit/HTTP I/O.

Contract-Neutral: Enforce existing token withdrawal, scope and organization boundaries at credential transaction admission; preserve routes, response schemas, grants, non-token admission and valid relay compatibility without adding a capability.
Change-source: pulse-maintainer
2026-11-17 08:36:43 +00:00
rcourtman 65a525b0d9 Accept "no stop/shutdown request" on the dead guest rubric (#4525)
On the 17 Nov pve-v1 replay (for #4513), the default agent's P4
conclusion said:

> Proxmox's own task log shows no stop/shutdown request for it in the
relevant window, consistent with an in-guest stop or crash

That's the decisive fact, but v3 lists only "task" phrasings, so the run
graded Handed back.

P4 v4 adds `no stop shutdown request`, `no stop or shutdown request`,
`no stop request` and `no shutdown request`. Across the eight stored P4
runs, only this run gains a match. Its evidence is kept as
`testdata/fault-set-pve-v1/p4-default-agent-stop-shutdown-request.json`,
and `TestP4AcceptsNoStopShutdownRequest` grades it under v4 (Handed
over) and v3 (Handed back, as recorded). The scorecard regrades stored
runs with the catalog rubric because only `outcome` changed.

`go test ./internal/ai/qualification/` passes.
2026-11-17 05:33:20 +00:00
rcourtman d2610b0361 Show each resource's ID in Patrol's triage tables (#4513)
This changes text every Patrol run reads, so the fault set was replayed
on both profiles first (results below).

Patrol's triage tables name resources without IDs, while
`patrol_report_finding` needs one. On eight fresh commands-on Pulses
with the P3 lab (16 Nov), the first run's backup findings were filed as
`ct/gitea`, `system-container/gitea`, `gitea` and `node/pmxlab`. #4507
and #4511 recover from those guesses; this stops the guessing. The
scoped app-container table already had a Resource ID column.

- `TriageFlag.ReportID`: each flag's reference is resolved to the
canonical ID a finding is filed under. That is a runtime record's first
ID, or the alert resolver's owner when the reference is an alert's
resource. It is resolved once per triage.
- A Resource ID column is added to Flagged Resources and to the Node,
Guest, Pool and Physical Disk tables. A reference that resolves to
nothing shows "—".
- The short form of the flags, used under tighter retry budgets, keeps
the ID: `gitea [system-container-…] (Backup Risk, warning)`.

`TestPatrolTriageTablesCarryTheIDAFindingIsFiledUnder` builds a
P3-shaped inventory, reads gitea's ID from the flag row, and files a
finding under it. Two tests that pinned the old headers are updated.

## Replay

Sonnet, Ask first, fresh Pulse per profile, one run per cell, 16–17 Nov.
The build was main 7dfb7bec8 plus #4505, #4511 and this PR.

| Fault | Commands on | Default agent |
|---|---|---|
| D1 web worker died | Fixed | Handed over |
| D2 worker segfaulted | Fixed | Handed over |
| D3 finished job | Quiet | Quiet |
| D4 restart loop, bad config | Handed over | Handed over |
| D5 database stopped | Fixed | Handed over |
| D6 host disk 92% | Handed over | Handed back, asked |
| D7 stopped, no alert | Fixed | Handed over |
| P1 guest stopped by a person | Quiet | Quiet |
| P2 guest disk, one folder | Handed over | Not looked at |
| P3 storage full of old backups | Handed over | Handed over |
| P4 guest died | Fixed | Handed back* |
| | **11 of 11** | **8 of 11** |

The baseline is 15 Nov (Docker: 7 of 7 and 5 of 7) and 16 Nov (Proxmox).
No cell got worse. D6 and P2 on the default agent are unchanged: Pulse
cannot read inside the disk with commands off.

- *P4's conclusion stated the decisive fact ("task log shows no
stop/shutdown request"), but the v3 rubric lists only "task" phrasings.
Fixed in #4525, which grades it Handed over.
- The first P1 on the default agent graded False alarm. The lab's
backups were 59 h old, so Patrol filed true "backup 59h old" findings on
the P1 guests. With #4507 and #4511 those now file under real IDs
instead of failing. I refreshed the lab backups and the rerun was Quiet;
the rig now refreshes them before each fresh Pulse.

Every `patrol_report_finding` call in the Proxmox runs (15 across 10
data folders) used a canonical ID, including the node (`agent-…`) and
the storage (`storage-…`). There were no guesses and no refusals. Before
this change, fresh runs guessed `ct/gitea`, `node/pmxlab` and similar.
2026-11-17 04:21:50 +00:00
rcourtman 736612be14 Accept "no stop/shutdown request" on the dead guest rubric
On the 17 Nov pve-v1 replay, a default agent's conclusion on P4 said
"Proxmox's own task log shows no stop/shutdown request" for the dead
guest, "consistent with an in-guest stop or crash". That is the decisive
fact, but v3 listed only "task" phrasings, so the run graded Handed back.

P4 v4 adds "no stop shutdown request", "no stop or shutdown request",
"no stop request" and "no shutdown request". Of the eight stored P4
runs only this one gains a match. The run's evidence is kept as test
data.
2026-11-17 04:16:27 +00:00
pulse-triage[bot] 51bb25e2a2 Prepare v6.9.0-beta.3
Beta cut from main at 1353d8ca0e. It carries every change merged since stable v6.8.0.

Contract-Neutral: Release-only v6.9.0-beta.3 version, release notes and distribution metadata; no public install or runtime contract changes.
Change-source: pulse-maintainer
2026-11-17 02:20:54 +00:00
rcourtman 1353d8ca0e Simplify alert-delivery rehearsal results (#4518)
The rehearsal screen buried destination outcomes beneath repeated cards
and explanations. It now shows one row per destination with aligned
alert and recovery results, a clear recovery action and expandable
delivery evidence. Setup controls disappear during an active run, and
history and policy guidance use secondary disclosures.

Recovery remains labelled as requested while deliveries are pending or
deferred. Explicit actions move focus to the report, while progress
refreshes preserve focus and expanded details.

Validation: 46 focused component and shared-primitives tests, frontend
type-check and production embed build passed. Browser verification
covered `/alerts/notifications` and exact rehearsal links at 1280×900,
768×1024 and 390×844, including real queue acceptance, rejection,
suppression, grouping, quiet hours, retries, recovery, stale evidence
and lost-response reconciliation.
2026-11-17 00:54:26 +00:00
rcourtman 59300ac53e refactor(alerts): simplify delivery rehearsal results
Make destination outcomes scannable with aligned alert and recovery statuses
and expandable delivery evidence. Keep setup controls out of active runs,
restore focus after explicit actions, and describe recovery as requested
while queued work continues.

Verify the result hierarchy, saved-settings gates and real queue states in
the browser at desktop, tablet and phone widths.
2026-11-17 00:34:26 +00:00
pulse-triage[bot] a95b64745f Preserve auth inventories with incomplete credential records (#4517)
**Preserve auth inventories with incomplete credential records**

Validate required identities across each session, CSRF and recovery
inventory before admitting rows or publishing a legacy migration. Route
null or unusable credential records through the existing private
preservation path rather than silently replacing their evidence on a
later save. Keep complete empty formats, ordinary expiry filtering and
legacy key/field fallback precedence.

Exercise real initializers, mixed row order, private byte/inode
retention, fresh independent grants, durable withdrawal and recovery
consumption, storage failure/recovery and complete-format compatibility.
Retain every existing save/shutdown and nonregular-file boundary.

Contract-Neutral: Apply existing unknown-inventory preservation and
fail-closed admission to incomplete credential identities without
changing API/rendered payloads, grants, storage formats, token lifetimes
or agent lifecycle. Update the security-privacy guarantee and executable
controls together.

**Check the distinct incomplete-session startup diagnostic**

Keep exact once-per-startup and once-per-preservation checks for both
old malformed-input fixtures and the new missing-key/null-row cases.
Expect the new semantic-admission diagnostic only for those new inputs;
retain byte, inode, privacy, persistence and restart assertions
unchanged.

Contract-Neutral: Test-only diagnostic expectation repair; no runtime
behavior, subsystem guarantee, source format, API or rendered payload
change.

---
Fleet candidate `20261116T220533Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `c14186ba2d5983f8312d02f85a6ea6f4b49de3a2` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-17 00:01:14 +00:00
rcourtman f975505528 Add alert delivery rehearsals through the notification pipeline (#4510)
Destination tests skip alert routing and the queue, leaving operators
without a way to rehearse ordinary delivery. Add labelled firing and
recovery messages through the existing notification manager, grouping,
quiet-hours policy, persistent queue, transports, retries and delivery
receipts. Reports distinguish per-destination acceptance, failure,
suppression, deferred work and unavailable evidence.

Use saved configuration with organization and settings-scope
authorization. Keep creation and recovery idempotent across uncertain
responses, retain bounded history across restart, and link received
messages to the exact report. Compose severity and retained-history
selectors with the shared form control and preserve expanded redacted
diagnostics during refresh. Reconstruct destinations from durable queue
jobs if an interrupted checkpoint could not update the report. Passed
means provider acceptance, with an explicit prompt to confirm receipt in
the receiving service. Resource evaluation, mobile push and the external
watchdog remain separate checks.

Validation: complete notification package, focused real-HTTP rehearsal
and race regressions, API organization-authorization and
notification-handler tests, a reproduced checkpoint report-write failure
regression, frontend typecheck/lint/build, shared-primitive guardrails,
and focused API/component/page tests. Browser checks against a local
HTTP receiver cover mixed outcomes, grouping/retries, quiet hours,
paused delivery, tag/severity routing, disabled recovery, missing
destinations, lost-response reconciliation, unavailable reads, restart
continuity and desktop/tablet/phone layouts. The renewed browser pass
covers both interrupted-admission uncertainty and a separate graceful
shutdown with completed notifier/server shutdown witnesses, plus twelve
distinct retained history entries and older/current selection checks.

The retry/audit regression waits for retained classification evidence as
well as retry scheduling. It passed 20 focused runs, 10 race runs, and
the complete rehearsal test set.
2026-11-16 23:28:45 +00:00
pulse-triage[bot] 6452506880 Preserve auth inventories with incomplete credential records
Validate required identities across each session, CSRF and recovery inventory before admitting rows or publishing a legacy migration. Route null or unusable credential records through the existing private preservation path rather than silently replacing their evidence on a later save. Keep complete empty formats, ordinary expiry filtering and legacy key/field fallback precedence.

Exercise real initializers, mixed row order, private byte/inode retention, fresh independent grants, durable withdrawal and recovery consumption, storage failure/recovery and complete-format compatibility. Retain every existing save/shutdown and nonregular-file boundary.

Contract-Neutral: Apply existing unknown-inventory preservation and fail-closed admission to incomplete credential identities without changing API/rendered payloads, grants, storage formats, token lifetimes or agent lifecycle. Update the security-privacy guarantee and executable controls together.
Change-source: pulse-maintainer
2026-11-16 22:18:38 +00:00
rcourtman 8224f39a91 Use shared form selectors for delivery rehearsals
The shared primitive guard rejects local labelled native selects. Reuse FormSelect so severity and retained-history inputs inherit the shared label wiring and dynamic option synchronization.
2026-11-16 21:57:41 +00:00
rcourtman 42b952b335 List a guest's backups when pulse_storage gets its name (#4505)
On the 16 Nov P3 replay with commands on, a fresh Pulse's first Patrol
run called `pulse_storage` type `backups` with `resource_id` `"gitea"`,
`"nextcloud"` and `"pihole"`. Backups record their subject by canonical
ID, so all three lists came back empty, and Patrol filed "No backup
records exist for gitea, not just a stale one" (and the same for the
other two). Each guest had a backup from 14 Nov. The findings stayed
open through the run.

Now a `resource_id` that is no VM, container, pod or host ID is resolved
by name, display name or VMID:

- one match: that resource's backups, with a note naming its ID;
- two or more: an error naming each;
- none: still tried as a subject ID, so a guest Pulse no longer monitors
lists its backups; an error if that lists nothing.

Names also resolve when `storage_id` is passed with them.

`TestPulseStorageBackupsAcceptAGuestsName` covers a name, a VMID, a name
plus `storage_id`, a guest with no backups (still an empty list), an
orphaned subject ID, an ambiguous name and an unknown one.

Not verified live: the fresh commands-on Pulse on this build did not
call the backups list, so the false findings did not come up either way.
2026-11-16 21:40:47 +00:00
rcourtman a0dafd1ae4 Show each resource's ID in Patrol's triage tables
Patrol's flag table and its node, guest, pool and disk tables named
resources without IDs, while patrol_report_finding needs one. On fresh
commands-on Pulses with the P3 lab, the first run filed backup findings
as "ct/gitea", "system-container/gitea", "gitea" and "node/pmxlab". The
app-container table already carried a Resource ID column.

Each triage flag now resolves its reference to the canonical ID a
finding is filed under (a runtime record's first ID, or the alert
resolver's owner), once per triage, and the tables show it. A reference
that resolves to nothing shows a dash rather than a guess. The short
form used on retry budgets keeps the ID too.
2026-11-16 20:53:38 +00:00
rcourtman 564b93d157 File guessed and name-shaped finding IDs under the resource's ID
After the unknown-ID hint, two other guesses still got through on the
P3 lab. Patrol filed "gitea" (a container's name) and "node/pmxlab"
(neither an ID nor a name) as resource_id. The exact resource_name
admitted each, and the repair only rewrote registry-shaped IDs, so the
findings were stored under those strings. The canonical ID is meant to
own deduplication: the same guest reported once by guess and once by
ID was two findings.

A resource_id that is exactly one resource's name is now filed under
that resource's ID, and the unknown-ID repair applies to any unknown
ID, not only registry-shaped ones. Both take the record's first
in-scope ID, so full and scoped runs agree. An ID that already has
findings under it, in any state, keeps them, so a snoozed or dismissed
finding filed under a name is not bypassed by a fresh one.
2026-11-16 20:34:39 +00:00
rcourtman 760b43a134 Merge branch 'main' into fix/backups-by-guest-name 2026-11-16 20:32:40 +00:00
rcourtman c3ea86a568 Recover rehearsal destinations from durable queue evidence
A shutdown checkpoint can retain work for a newly added destination before
its report update fails. Reconstruct missing destinations from retained jobs
so that reopening the queue cannot silently omit their delivery outcomes.
2026-11-16 20:27:54 +00:00
pulse-triage[bot] da64bba4e1 Keep nonregular auth inventories from blocking startup (#4508)
Check resolved inventory targets before opening sessions, CSRF tokens
and recovery tokens, so a direct or linked named pipe reaches existing
fail-closed preservation rather than waiting for a writer. Retain
readable regular-file links, saved formats, memory-only session/CSRF
behavior and durable-only recovery issuance.

Exercise the real initializers and save/shutdown paths with direct and
linked FIFOs, plus hashed and legacy regular-link compatibility.

Contract-Neutral: Enforce existing failed-read and unread
nonregular-inventory safety without changing API or rendered payloads,
credential grants, storage formats, agent lifecycle or backup/restore
protocols. The security-privacy implementation guarantee and executable
controls are updated together.

---
Fleet candidate `20261116T185353Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `53ec71c6c2c7eac30fde75711e828836e87d3ea1` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-16 20:25:43 +00:00
rcourtman bc9702ae47 Add real-pipeline alert delivery rehearsals
Destination tests bypass routing and the persistent queue, so they cannot
establish ordinary alert delivery. Add labelled firing and recovery rehearsals
through the shared notification pipeline with durable, idempotent evidence.
Show acceptance, failure, suppression, deferral and unavailable outcomes per
destination, and link received messages back to their exact rehearsal report.
2026-11-16 20:02:07 +00:00
rcourtman 647b305365 Name the in-scope resources when a finding's ID names nothing
Patrol's triage tables name resources without IDs. A fresh commands-on
run filed one backup finding for three guests as resource_id "ct/gitea",
resource_name "gitea (and nextcloud, pihole)". It was told the resource
was outside the patrol finding scope, tried "system-container/gitea",
and gave up, so a true finding (no backup in 54 hours) was lost.

An ID that matches no runtime resource is not out of scope, it is a
guess. The refusal now says so and names the in-scope resources whose
names appear as whole words in the submitted ID or name, with their IDs,
and asks for one finding per resource. Nothing is filed from that match;
the model retries with an exact ID. A real ID outside the scope keeps
the old refusal. Scope membership is built once per refusal.
2026-11-16 19:48:55 +00:00
rcourtman d21a5b1759 List a guest's backups when pulse_storage gets its name
Backups record their subject by canonical ID, and pulse_storage type
backups filtered on resource_id as given. A commands-on Patrol passed
"gitea", "nextcloud" and "pihole", got three empty lists, and filed
"No backup records exist" for guests that each had a backup.

A resource_id that is no VM, container, pod or host ID is now resolved
by name, display name or VMID. One match lists that resource's backups
with a note naming its ID; two are an error naming both. A reference
that matches nothing is still tried as a subject ID, so a guest Pulse
no longer monitors lists its backups, and is an error when that lists
nothing. Names resolve with storage_id too.
2026-11-16 19:28:23 +00:00
pulse-triage[bot] 53ec71c6c2 Keep nonregular auth inventories from blocking startup
Check resolved inventory targets before opening sessions, CSRF tokens and recovery tokens, so a direct or linked named pipe reaches existing fail-closed preservation rather than waiting for a writer. Retain readable regular-file links, saved formats, memory-only session/CSRF behavior and durable-only recovery issuance.

Exercise the real initializers and save/shutdown paths with direct and linked FIFOs, plus hashed and legacy regular-link compatibility.

Contract-Neutral: Enforce existing failed-read and unread nonregular-inventory safety without changing API or rendered payloads, credential grants, storage formats, agent lifecycle or backup/restore protocols. The security-privacy implementation guarantee and executable controls are updated together.
Change-source: pulse-maintainer
2026-11-16 19:02:28 +00:00
rcourtman 384eb91478 Summarize backups ahead of the list in pulse_storage (#4501)
A model reads only the first 16,000 characters of a tool result
(`MaxToolResultCharsLimit`). A `pulse_storage` backups result runs about
1.8 KB per backup, newest first, so on the P3 lab Patrol saw the newest
nine of thirty nextcloud archives. The pagination total came after the
points, so it was cut too. Two Sonnet P3 investigations summed the nine
(about 5 GB) and concluded the backups "cannot by themselves account"
for a 28 GB fill.

The first page of a backups result now opens with a `summary`:

- the backup count, total bytes and number of subjects;
- per subject (largest first, up to 20): count, bytes, oldest and
newest;
- grouped by the recovery subject key, so a PBS guest whose comment
changed stays one subject;
- `unknown_size` counts backups with no recorded size, so they are not
read as zero bytes;
- labels are cut to 80 characters, so the summary stays well under the
cut.

It covers every match when the list fits the limit (default 100). When
it doesn't, `summarized` says how many of the total it covers. A later
page has no summary. `pagination` also moves ahead of `points`. No store
query is added, so offset paging still reads at most two pages.

Not covered: past the limit, the summary covers only the first page. A
store-side grouped total would cover every backup.

`TestPulseStorageBackupsSummaryOutlivesTheModelCut` runs the result
through the same cut the agentic loop applies and reads the summary from
what is left. `go test ./internal/ai/tools/ ./internal/ai/` passes on
pulse-dev.
2026-11-16 18:39:02 +00:00