Commit Graph

6306 Commits

Author SHA1 Message Date
rcourtman
922ee650ca Say in plain words what a container action actually did
When someone restarts, starts, stops or updates a Docker container from
Pulse, the result dialog showed raw fact dumps such as "Container
lifecycle: phase=verify; mutation started=true; ... after=running/
unhealthy" under "Outcome contradicted". About one in five of these
actions ends unconfirmed, almost always because the container really is
still unhealthy, and nothing on screen said so.

The execution and verification summaries are now plain sentences built
from the same typed facts, for example "Docker restarted the container."
and "The container restarted, but its health check is failing. Check its
logs." They describe what Docker reports using the state and running flag
together, say "Pulse could not get its health information" when the agent
receipt carries none, and keep missing, unchanged and older start times
apart. The raw facts stay on the evidence records and the legacy output,
and the action dialog shows that output in a collapsed "Agent details"
section, so nothing a power user could see before is lost.

The verification detail lines drop "trust domain" and "intended state"
wording. Verdicts, reason codes, evidence and API fields are unchanged.

Contract-Neutral: Rewords existing ActionResultV2 summaries for Docker container actions and the verification detail copy; no field, status, reason code, evidence or API shape changes
2026-11-03 16:05:26 +00:00
rcourtman
2486d9db37 Alert on failed PBS datastore jobs, apart from guest health (#3826)
A PBS sync that failed after a successful backup left Pulse all green
and raised nothing (#1815). This treats a failed PBS sync, verify, prune
or garbage-collection run as a problem with the datastore, not the
guest.

**What changes**
- Each PBS datastore resource carries a `pbs_job_failed` incident per
job whose newest run failed on it. The existing unified-incident
pipeline turns that into a warning `backup-storage-incident` alert on
the datastore, for example "Sync job s-1 failed on datastore offsite
(copying from pbs-main)". It clears when the job's newest run succeeds.
The storage disable switch and overrides apply.
- Backup health lists the same failures under a **Datastore jobs**
heading, one row per failed family with the datastore names; the row
scrolls to Backup servers. Guest counts are unchanged, so in the #1815
case the guest stays protected and the failed copy shows on its own.
- The PBS poller carries a job's last completed failure through polls
that report no newer outcome (run in progress, overdue, unreadable,
failed read), so the alert does not flap or clear early. Jobs are keyed
by family plus id, and a failed last run now outranks overdue.
- Mock PBS servers report job results, with one failed sync on the
secondary.

Only failures pinned to a datastore count; storeless task history never
raises an alert.

**Not in this PR:** durable PBS task history, a Tasks view, offsite-copy
lag, and PBS jobs in the 14-day Backup jobs chart (that chart is PVE
backup history only).

Verified in mock mode at 1024px and 375px (receipt included). Go:
unifiedresources, alerts, models, mock and monitoring packages pass;
frontend Proxmox and routing tests pass.
2026-11-03 15:18:22 +00:00
rcourtman
d87938bb24 Keep PBS job alerts through outages and partial reads
A PBS outage removed the datastore from a poll and stored the instance
without job results, so every failed-job alert cleared and fired again
when PBS returned. Job incidents now need two polls that see success
before recovering, so a missing datastore reads as unknown, and a failed
poll keeps the last job results so the carry survives the outage.

Only a failed job-list read now makes a family unreadable; task-history
trouble no longer keeps a removed job's failure alive. Recovery is judged
from the run's own status, so a success first seen after its next
schedule passed still clears the carry. Carried failures stay in memory:
a restart forgets them until PBS reports the job again.
2026-11-03 12:50:22 +00:00
rcourtman
0bba6c94bb Resolve the request organization for infra updates
The infra-update handlers were built once with the default monitor and
read state, so in multi-organization mode a request for any organization
listed the default organization's container updates and queued update
checks on the default organization's agents. Scheduler health likewise
always reported the default monitor.

Both now resolve the request organization's monitor and read state per
request. An organization whose monitor cannot be resolved gets no
updates, no queued command and a 503 for scheduler health, never the
default organization's data. A routed test fails if the router goes back
to wiring the handlers to a fixed monitor.

Contract-Neutral: Response payloads are unchanged; the api-contracts note records the tenant-resolution rule. The agent-lifecycle, security-privacy and storage-recovery boundaries are untouched: no new agent, credential, storage or recovery path.
2026-11-03 11:50:19 +00:00
rcourtman
2bafa37d5b Read PBS job status the way Proxmox does
PBS records a failed run as the bare error message. Matching substrings called "broken pipe" a success, which also cleared a carried failure, and left failures without "fail" or "error" in them unknown, so they never alerted. Exactly OK is success, a WARNINGS: prefix a warning, unknown unknown, and any other status a failure, as in proxmox-widget-toolkit parse_task_status.
2026-11-03 11:27:48 +00:00
rcourtman
74259fecf3 Reserve both loopback addresses for notification fallback tests (#3824)
Reserve both loopback addresses for notification fallback tests

Allocate the healthy loopback listener first, then reserve the stalled address at the same port. Retry only EADDRINUSE during paired reservation and retain both sockets for the test lifetime. This removes the cross-address allocation race without replacing the real dial path or replaying HTTP requests.

Contract-Neutral: Linux-only test fixture allocation changes. Production notification delivery, HTTP fallback semantics, permission boundaries and subsystem contracts remain unchanged.
2026-11-03 10:57:06 +00:00
rcourtman
6e1940883d Recognise community-scripts LXC installs again (#3822)
Community-scripts containers stopped being recognised as ProxmoxVE LXC
installs. Since September 2026 community-scripts/core writes
`/usr/bin/update` as a generic bootstrap that names the app only through
`export UPDATE_SCRIPT_NAME="pulse"`, and it rewrites older direct-pull
helpers on every update. `GetDeploymentType` looked for `pulse.sh` in
that file, so these containers fell through to `systemd` and lost the
ProxmoxVE update guidance.

- Detection now also matches the bootstrap's export line (anchored, so
`pulsechain` or other apps don't match). A table test covers the current
bootstrap, the legacy direct pull, Pulse's own helper and non-Pulse
scripts. Removing the new match makes the test fail.
- Settings → Security "restart required" used to tell ProxmoxVE users to
type `update`. That helper exits without restarting Pulse when no newer
release exists, and the update banner tells the same users not to use
it. The card now shows `systemctl restart pulse` and mentions the older
`pulse-backend` unit. The wording doesn't say "LXC", because Pulse's own
installer helper also puts native hosts in this class.
- The card now renders the presenter's label and command once for every
deployment type, replacing the hand-written block per type. Source and
unknown types get the generic hint instead of an empty box.

Verification: the updates package Go tests plus vitest for the
presenter, settings architecture and read-only panels, with type-check,
eslint and prettier, all on pulse-dev. A browser pass ran on an embedded
mock build at 1440 and 390 for proxmoxve, systemd, docker, source and
unset deployment types (receipt included).

Out of scope, noted for follow-up: the community-scripts `CLEAN_INSTALL`
path wipes `/opt/pulse` before extracting the new archive
(community-scripts/core `lib/forge.func`), so a failed extract leaves no
binary to restart.
2026-11-03 10:38:04 +00:00
rcourtman
24c9bfb8f1 Alert on failed PBS datastore jobs, apart from guest health
A PBS sync that failed after a successful backup left everything green
and raised nothing (#1815). A failed sync, verify, prune or GC run is a
problem with the datastore, not the guest, so each PBS datastore now
carries a pbs_job_failed incident per job whose newest run failed. The
existing incident pipeline turns it into a warning alert on that
datastore. Backup health lists the same failures under a Datastore jobs
heading, and guest counts are unchanged.

The poller now carries a job's last completed failure through polls
that report no newer outcome (a run in progress, an overdue job, a
failed read), so the alert neither flaps nor clears early. Jobs are
keyed by family as well as id, and a failed last run outranks overdue.
Mock PBS servers report job results, with one failed sync.
2026-11-03 10:30:02 +00:00
rcourtman
964388cedf Reserve both loopback addresses for notification fallback tests
Allocate the healthy loopback listener first, then reserve the stalled address at the same port. Retry only EADDRINUSE during paired reservation and retain both sockets for the test lifetime. This removes the cross-address allocation race without replacing the real dial path or replaying HTTP requests.

Contract-Neutral: Linux-only test fixture allocation changes. Production notification delivery, HTTP fallback semantics, permission boundaries and subsystem contracts remain unchanged.
2026-11-03 10:14:57 +00:00
rcourtman
4ba6185c4b Recognise community-scripts LXC installs again
Since September 2026 community-scripts writes /usr/bin/update as a
generic bootstrap that names the app only through
`export UPDATE_SCRIPT_NAME="pulse"`, and rewrites older helpers on
every update. GetDeploymentType looked for "pulse.sh" in that file, so
these containers fell through to "systemd" and lost the ProxmoxVE LXC
update guidance. Match the bootstrap's export as well.

The Security "restart required" card told ProxmoxVE users to type
`update` in the console. That helper exits without restarting Pulse
when no newer release exists, and the update banner tells the same
users not to use it. Show `systemctl restart pulse` instead, noting the
older pulse-backend unit and no longer naming the LXC, since Pulse's own
installer helper also classifies native hosts as proxmoxve. Render
the card from the shared restart instruction for every deployment type
rather than one hand-written block per type, so source and unknown
types get the generic hint instead of an empty box.
2026-11-03 10:06:39 +00:00
rcourtman
19dfd3040c Publish the monitor's discovery service under its lock
A tenant monitor's Start goroutine assigned discoveryService in
startModeRuntime without holding m.mu, while request handlers such as
auto-register read it through GetDiscoveryService. The race detector
flagged the pair intermittently in
TestTenantProxmoxInstallTokenGrantLivesOnInstanceRecord and failed
unrelated pull requests.

startModeRuntime now chooses and assigns the service under m.mu, and
GetDiscoveryService reads it under the read lock, matching
StartDiscoveryService and StopDiscoveryService. The org ID is read
directly because GetOrgID would take the read lock again. A new race
proof calls startModeRuntime and GetDiscoveryService from two
goroutines with no ordering between them.

Contract-Neutral: Locking fix for an existing monitor field; no API, schema, discovery behavior or subsystem contract change.
2026-11-03 09:32:19 +00:00
pulse-triage[bot]
923ad1e151 Keep resource read gates explicit for route inventory
The focused race attempt passes 43 groups, including all read-withdrawal cases, but the source route inventory cannot classify a local auth helper. Inline the same established auth/scope/response guards in each registration instead of adding bare-route exceptions or weakening the inventory check. Keep the failed aggregate and its completed proofs.

Contract-Neutral: Expresses the same response guard through existing explicit route gates; no route, JSON schema, scope grant, collection or retention changes.
Change-source: pulse-maintainer
2026-11-03 04:54:23 +00:00
pulse-triage[bot]
27fad4c41f Preserve the existing empty timeline envelope in read proof
The pre-repair HTTP comparison returned null recentChanges with count zero. Accept that unchanged empty-array representation instead of requiring a schema change in this confidentiality repair. Retain the adverse first fixture result.

Contract-Neutral: Corrects only an empty-timeline regression expectation; no runtime, route, schema or grant changes.
Change-source: pulse-maintainer
2026-11-03 04:36:04 +00:00
pulse-triage[bot]
2b31c41c8c Match storage summary proof to its aggregate contract
A healthy storage summary reports one storage subject, not its name in the incident list. Preserve the failed expectation and assert that actual aggregate. Cover the read-only report entrance and every mixed operator/verification mutation gate as well.

Contract-Neutral: Corrects a test expectation and extends admission regressions for existing queries; no runtime, route, schema or grant changes.
Change-source: pulse-maintainer
2026-11-03 04:27:32 +00:00
pulse-triage[bot]
6b0e47dd3a Keep unified resource results with their admitted reader
Reuse the established response-authority guard for unified inventory, detail, summary, facet and timeline queries, plus read-only operator state and maintenance evidence. Withhold delayed results and handler errors after credential withdrawal; leave mutation gates and work lifetime unchanged.

Contract-Neutral: Restores existing credential-withdrawal confidentiality on existing read routes. No route, JSON schema, scope grant, collection, retention or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 04:25:35 +00:00
pulse-triage[bot]
5620c7d4c9 Exercise withdrawn readers across unified resource queries
Pause real registered inventory reads after admission, withdraw token or session authority, and preserve independent readers, resource content, errors and read-only gates. Store-only entrances retain their admission/envelope checks without artificial database locks.

Contract-Neutral: Adds regression proof for existing resource read confidentiality and unchanged query contracts; no runtime, route, schema or grant changes.
Change-source: pulse-maintainer
2026-11-03 04:24:15 +00:00
pulse-triage[bot]
e70b069e3b Separate snapshot admission errors from withdrawn responses
Keep the strict generic denial assertion for admitted requests only. Initial authentication retains its existing error format. Give the approval fixture detached per-request summaries, matching the production adapter, so a monitoring-only read cannot redact the next reader's fixture. Preserve the failed comparison and all observed old-route disclosures.

Contract-Neutral: Corrects regression-fixture ownership and initial-auth expectations only; no runtime, route, schema, grant or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 03:11:35 +00:00
pulse-triage[bot]
49db768487 Retain reader authority across delayed agent snapshots
Apply the existing response-lifetime guard to resource context, capability and fleet snapshots and both Patrol status routes. Keep command-disclosure authority as well as monitoring-read for resource context, sharing the history guard without changing its behaviour. Current readers retain the same projections and redaction; withdrawn admissions receive no delayed result or resource-specific error.

Contract-Neutral: Restores existing credential-withdrawal confidentiality for existing agent snapshot reads; no route, JSON schema, scope grant, collection, retention or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 02:51:11 +00:00
pulse-triage[bot]
1c28fe736c Exercise authority withdrawal across agent snapshot reads
Pause the real inventory provider through all five registered context and Patrol status routes. Persisted token deletion, changed authority, session withdrawal and command-scope removal must not disclose delayed snapshots; independent current readers keep their data and redaction.

Contract-Neutral: Regression tests for existing credential lifetime and unchanged agent snapshots; no runtime, route, schema, grant or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 02:44:19 +00:00
pulse-triage[bot]
8feaf71fa3 Preserve fresh availability reads under a replacement identity
The initial lifetime assertions correctly reject old admissions, but a replacement credential ID or principal still holding monitoring-read may make a new request. Verify the fresh result instead of incorrectly expecting denial. Keep the earlier failed run as evidence; the runtime guard is unchanged.

Contract-Neutral: Corrects only a regression-test expectation for existing current-identity admission; no runtime, protocol, data model, grant or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 01:31:52 +00:00
pulse-triage[bot]
403b485195 Withhold availability history after credential withdrawal
Keep the existing monitoring-read response-authority check around the complete batch read, including POST body admission. Revoked or changed tokens and withdrawn browser sessions cannot receive delayed history or handler-specific errors; current readers retain the existing result and entitlement gates.

Contract-Neutral: Restores existing credential-withdrawal confidentiality on the availability history route; no endpoint, JSON schema, stored history, scope grant, collector, entitlement or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 01:22:37 +00:00
pulse-triage[bot]
79ea871b4f Cover availability history authority through delayed body reads
Exercise the registered route with real persisted history and admitted requests paused at their body read. Token deletion, changed authority and logout must withhold results and errors while an independent reader keeps its batch evidence.

Contract-Neutral: Regression tests for the existing monitoring-read lifetime and unchanged history response; no runtime, protocol, data model, grant or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 01:14:56 +00:00
pulse-triage[bot]
964e47cfcf Withdraw earlier TrueNAS history when batch ownership changes
Recheck every contributing tenant-local provider after the last native read. A connection removed or replaced during a later peer read must not leave its earlier result in the batch; source disable withdraws the whole native result. Keep surviving providers and fresh reads intact, without holding the poller lock across I/O.

Contract-Neutral: Restores the existing tenant-local native-history provider lifetime boundary for batch chart reads; no route, payload, permission, retention, identity, TLS or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-03 00:07:50 +00:00
pulse-triage[bot]
73cd49e414 Keep namesake TrueNAS connections distinct in presentation (#3796)
Native TrueNAS hosts expose an agent-shaped facet keyed by the
configured connection. Do not let hostname coalescing fold two such
identities into one host or redirect their pools and history. Exercise
distinct per-disk trajectories through pinned CORE collection,
persistence and scoped HTTP reads alongside separate host totals.

Contract-Neutral: Restore the existing connection-scoped TrueNAS
identity contract through presentation; no contract delta.

---
Fleet candidate `20261102T214024Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `e5a99e74c638f9e2e087681008c52f0f57f26d97` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-02 23:44:11 +00:00
rcourtman
cbb1d2ad20 Harden protected HTTP media and import replay fingerprints (#3792)
Pin non-executable transport media at protected result and stream writes
and key process-local configuration-import replay fingerprints. Harden
installer fixtures and scope security proofs to their owning runtime files.

Verify the full backend race-test shards, frontend checks, native
HTTPS/signature regressions, governance and CodeQL before landing.
2026-11-02 23:13:45 +00:00
rcourtman
7904e5fcc9 Keep plain notification errors readable in the delivery log
The delivery log runs every error through the webhook URL redactor. When
the text held no http(s) URL, the redactor parsed the whole message as a
single URL. Queue errors start with prose like `process queued apprise
notification "...": ...`, and a colon before the first slash is not a
valid relative URL, so every Apprise CLI, SMTP and other URL-free failure
reached the UI as "[invalid webhook URL]".

A Pro user whose image lacked the apprise binary saw exactly that: the
delivery warning fired, but the log row pointed at a URL problem instead
of "executable file not found in PATH".

Text without an http(s) URL now has only its URL-shaped words (those
containing "/" or "?") parsed and redacted. A malformed one still fails
closed, and path and query credentials in schemeless words are still
masked.

Contract-Neutral: bug fix; URL-free delivery-log error prose is no longer parsed as one URL, and the documented redaction and fail-closed rules are unchanged
2026-11-02 22:10:43 +00:00
pulse-triage[bot]
e5a99e74c6 Keep namesake TrueNAS connections distinct in presentation
Native TrueNAS hosts expose an agent-shaped facet keyed by the configured connection. Do not let hostname coalescing fold two such identities into one host or redirect their pools and history. Exercise distinct per-disk trajectories through pinned CORE collection, persistence and scoped HTTP reads alongside separate host totals.

Change-source: pulse-maintainer
Contract-Neutral: Restore the existing connection-scoped TrueNAS identity contract through presentation; no contract delta.
2026-11-02 22:03:21 +00:00
rcourtman
b8f9c51119 Harden protected response media and security test fixtures
Pin non-executable media at guarded HTTP write and flush boundaries so
protected output cannot become executable through missing or unsafe types.
Preserve payload bytes and existing credential-withdrawal semantics.

Key configuration-import replay fingerprints per guard rather than retain
unkeyed passphrase-derived digests. Limit installer fixture redirects to
fixed assets, require TLS 1.2, and make dependency-test expectations explicit.
2026-11-02 22:00:40 +00:00
pulse-triage[bot]
b010e9a0f7 Close retired tenant manager admission before shutdown
Prevent stale reload consumers from rebuilding a monitor after its owner stops, including cached reads during incomplete cleanup. Keep saved state, canonical credentials and the existing tenant-unavailable response; a fresh manager alone owns replacement runtimes. Add lifecycle, reload and HTTP-consumer regressions without changing the human-held monitor.go.

Change-source: pulse-maintainer
2026-11-02 20:11:38 +00:00
pulse-triage[bot]
8925065c5c Keep mixed host history from claiming a single source
Pixel review found that marking a mixed stored/native response as memory tells the user the history store has no data, despite preserved CPU and capacity samples. Omit the existing optional source hint for that mixed reply; keep pure stored responses unchanged and assert both cases.

Contract-Neutral: Uses the existing optional history source hint without adding values or changing metrics, grants, windows or aggregation.
Change-source: pulse-maintainer
2026-11-02 17:14:50 +00:00
pulse-triage[bot]
c9712a5dd5 Exercise the RPC read retry after session setup
The read-backoff fixture can time out during its cold handshake before reaching the read it asserts. Prepare an authenticated session first, retain the exact 200 ms read budget and one-session/one-read/no-REST assertions, and report stage counters on failure. Handshake and login deadline fixtures remain separate and unchanged.

Contract-Neutral: Test stage isolation only; production timeout and transport behavior are unchanged.
Change-source: pulse-maintainer
2026-11-02 17:11:26 +00:00
pulse-triage[bot]
495c0cc6ab Keep native host I/O visible beside stored CPU history
Qualify requested chart coverage per series and fill only missing host I/O directions after a successful store read. Select the current tenant-local TrueNAS host before native I/O; preserve stored series, complete simultaneous totals, zeros and withdrawal boundaries. Exercise CORE collection, canonical ingestion and the authenticated persisted-history route.

Contract-Neutral: Restores existing host-history fallback and series coverage; no route, payload, grant, identity, retention or aggregation contract changes.
Change-source: pulse-maintainer
2026-11-02 16:44:50 +00:00
pulse-triage[bot]
76b5088144 Arm history withdrawal fixtures after initial publication
The monitor publishes its first resource view while the fixture is being constructed. Hold only request-owned provider reads, so construction cannot consume the request barrier.

Change-source: pulse-maintainer
2026-11-02 15:21:52 +00:00
pulse-triage[bot]
8a6bce1395 Keep requested metric history with its current reader
Reuse the existing response-authority guard around both chart and canonical agent history reads. Revalidate the admitted token or session at disclosure without cancelling provider work or requiring execution/settings scopes. Cover real provider waits, persisted withdrawal and independent authorised readers.

Contract-Neutral: Enforce existing monitoring-read authority on both metric-history entry points; no route, grant, payload, mapping or retention contract changes.
Change-source: pulse-maintainer
2026-11-02 15:18:10 +00:00
pulse-triage[bot]
d59d727399 Retain current reader authority for requested history (#3770)
**Retain current reader authority for requested history**

Restore the held history disclosure repair on top of the landed
backup-job work, preserving its route and tests. Monitoring and
command-reading authority must still be present at disclosure; fresh
monitoring-only reads remain redacted and usable.

Contract-Neutral: No storage-recovery or agent-lifecycle contract delta:
shared route registration only composes the existing response guard for
an external history read; collection, retention, stored evidence and
agent work lifetime are unchanged. The owning API and security contracts
and executable regressions are included.

**Validate agent URL policy before replacing an installation**

Use the verified staged agent's production primary URL policy before
changing services, installed binaries, saved credentials or safe-profile
authority. The URL-only mode performs no credential reads, enrollment,
logging or state writes. Unsupported or unexecutable validation fails
closed, and TLS bypass never becomes plaintext consent.

Contract-Neutral: No deployment-installability or security-privacy
contract delta: this enforces the existing agent URL/HTTPS policy before
Unix replacement, without new transport permissions, service profiles or
installation routes. The owning agent lifecycle contract and real-CLI
installer regressions are included; the shared deployment contract
remains untouched while human PR3756 holds it.

**Keep URL admission independent of inherited credentials**

Defer the environment-token read until ordinary configuration
resolution. Prove the URL-only path never reads it, ordinary startup
retains its fallback, and unsupported or unexecutable validators refuse
before admission.

Contract-Neutral: The existing read-only URL admission contract is
unchanged; defer an unused credential default and cover its no-read and
fail-closed boundaries without changing startup permissions or installed
state.

**Bind agent URL admission tests to the installer source manifest**

PR3767's canonical-governance job failed because the installer
qualification binary compiles agent_url_admission_test.go but its
source-attestation manifest omitted it. Include that existing compiled
input so installer receipts hash it. Keep the manifest completeness and
hash checks unchanged.

Contract-Neutral: Add an already-compiled installer test to the existing
exact-source attestation boundary; no runtime, qualification policy,
credential, transport or rendered behaviour changes.

**Count API Ceph standby managers as running**

Keep manager standby roles healthy in the authoritative Proxmox service
map without masking stopped managers or MON/OSD warnings. Cover both
API/agent arrival orders and summary-only fallback through actual
polling and accepted reports.

Refs #1626

---
Fleet candidate `20261102T133922Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `d888d384d22869df3e084d6fb340abd63fd33ff9` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-02 15:03:11 +00:00
pulse-triage[bot]
c7cda13f46 Repair helper guidance link and recipe coverage
Pin the runtime guide to the immutable ancestor that contains the procedure, rather than drifting with main. Include both helper maintenance commands in the executable recipe inventory and exercise the fixed runtime help target. The returned candidate failed both repository checks; preserve those guards and the unchanged maintenance procedure.

Refs: #3754

Contract-Neutral: Keeps the existing collector-only update and installer-managed helper lifecycle; repairs help identity and documentation verification only.
Change-source: pulse-maintainer
2026-11-02 13:39:01 +00:00
pulse-triage[bot]
d888d384d2 Count API Ceph standby managers as running
Keep manager standby roles healthy in the authoritative Proxmox service map without masking stopped managers or MON/OSD warnings. Cover both API/agent arrival orders and summary-only fallback through actual polling and accepted reports.

Refs #1626

Change-source: pulse-maintainer
2026-11-02 13:29:18 +00:00
pulse-triage[bot]
e30c14bffd Retain current reader authority for requested history
Restore the held history disclosure repair on top of the landed backup-job work, preserving its route and tests. Monitoring and command-reading authority must still be present at disclosure; fresh monitoring-only reads remain redacted and usable.

Contract-Neutral: No storage-recovery or agent-lifecycle contract delta: shared route registration only composes the existing response guard for an external history read; collection, retention, stored evidence and agent work lifetime are unchanged. The owning API and security contracts and executable regressions are included.
Change-source: pulse-maintainer
2026-11-02 11:05:50 +00:00
pulse-triage[bot]
b87c182407 Explain the typed helper's separate update lifecycle
Report collector-only automatic update scope once when the typed helper-backed updater starts, and give operators the existing preflight/update procedure without widening helper authority or misclassifying healthy monitoring. Exercise the output and the copied, saved-state update commands with credential-free fixtures.

Refs: #3754

Contract-Neutral: Clarifies existing collector-only update scope and installer-managed helper maintenance; no wire, privilege, activation or recovery contract changes.
Change-source: pulse-maintainer
2026-11-02 10:48:07 +00:00
rcourtman
3a57ee56d9 Show 14 days of backup job outcomes beside Backup health (#3753)
Show 14 days of backup job outcomes beside Backup health

The Backups page could not answer "did last night's backups run, and is
that normal?". The only history on it was a chart of restore points per
day, which counts what exists rather than what failed, and the live
/api/backups/pve task list spans just the latest collection window, so
it cannot show two weeks either.

GET /api/backups/jobs summarizes PVE backup job outcomes for the last
24 hours and each of the last 14 local days with
recovery.BuildBackupHealth
over retained pve-task history, the authority behind the backup health
report. Multi-guest jobs count through attributed guest results, stale
running observations are not counted as running, and every day carries
its collection state, so days Pulse did not fully observe never read as
clean. Unreadable history is "unavailable", never zero failures.

A Backup jobs card shows the last 24 hours as outcome pills in its
header strip and one stacked bar per day, in the same table-card
vocabulary as Backup health, beside it from xl. It is a page-owned
section passed into ProxmoxBackupsTable, so the table keeps exactly its
PVE and PBS inventory reads, and it renders nothing until backup task
history exists.
2026-11-02 10:17:52 +00:00
rcourtman
c9c668bb60 Show 14 days of backup job outcomes beside Backup health
The Backups page could not answer "did last night's backups run, and is
that normal?". The only history on it was a chart of restore points per
day, which counts what exists rather than what failed, and the live
/api/backups/pve task list spans just the latest collection window, so
it cannot show two weeks either.

GET /api/backups/jobs summarizes PVE backup job outcomes for the last
24 hours and each of the last 14 local days with recovery.BuildBackupHealth
over retained pve-task history, the authority behind the backup health
report. Multi-guest jobs count through attributed guest results, stale
running observations are not counted as running, and every day carries
its collection state, so days Pulse did not fully observe never read as
clean. Unreadable history is "unavailable", never zero failures.

A Backup jobs card shows the last 24 hours as outcome pills in its
header strip and one stacked bar per day, in the same table-card
vocabulary as Backup health, beside it from xl. It is a page-owned
section passed into ProxmoxBackupsTable, so the table keeps exactly its
PVE and PBS inventory reads, and it renders nothing until backup task
history exists.
2026-11-02 09:18:53 +00:00
rcourtman
59bc124755 fix(ceph): correct manager counts and health projection
Count active and standby managers at collection and normalize older agent
rows at ingest so healthy clusters do not show a false manager shortage.
Keep unavailable-manager and genuine MON/OSD evidence unchanged.

Keep explicit health status and its details together at canonical state
merge so recovery cannot inherit an earlier incident. Treat normalized ERR
as critical in the shared Ceph table classification, including empty manager
reports, so rows, filters and drawer headers agree with provider health.

Preserve source priority and unrelated topology/count fallback. Pin the
producer, ingest, recovery and critical-rendering contracts with regressions.

Refs #1626
2026-11-02 08:56:15 +00:00
rcourtman
2d380af658 test(monitoring): await the accepted startup notification
A blocked webhook can dead-letter both the persisted notification and the
delivery-health alert it raises. Counting exactly one dead-letter entry
makes the bootstrap-policy test depend on polling timing.

Wait for the seeded notification's identity and expected delivery outcome.
Keep the installation-policy denial and actual provider receipt assertions.
2026-11-02 08:33:58 +00:00
pulse-triage[bot]
48bf5f5229 Match the MCP wrapper's guarded delegate in its contract
The containing API shard exposed a wrong parameter name in the added source assertion. Pin the existing d.next delegate; the runtime redirect guard and all other assertions stay unchanged. Retain the failed full-shard result before validating this final source.

Contract-Neutral: Correct a test source fragment only; the existing runtime and API contracts are unchanged.
Change-source: pulse-maintainer
2026-11-02 05:24:49 +00:00
pulse-triage[bot]
55e109aabc Require guarded agent HTTP execution in the API contract
Align the MCP/SSE adapter contract with the reviewed redirect-origin repair. Require the shared guard in the MCP wrapper, SSE transport and agent HTTP substrate rather than restoring the unsafe helper to satisfy a stale source assertion.

Contract-Neutral: Test-only alignment with the existing agent redirect-origin contract; no runtime or API contract delta.
Change-source: pulse-maintainer
2026-11-02 04:57:47 +00:00
pulse-triage[bot]
6219669809 Keep agent HTTP redirects within the configured origin
Guard standard clients without mutating caller policy or transport. Apply the same boundary to manifest discovery, capabilities, workflow activity and MCP event streaming so tokens and replayable bodies do not follow off-origin redirects. Preserve same-origin requests and report a fixed final-base-URL diagnostic.

Change-source: pulse-maintainer
2026-11-02 03:55:42 +00:00
pulse-triage[bot]
3f0f7938de Exercise agent redirect credential boundaries
Pin off-origin refusal across capability reads and writes, manifest discovery, MCP stdio, workflow activity and live events. Keep same-origin redirects and existing client policies working.

Contract-Neutral: Registered redirect regression tests only; no runtime or contract change.
Change-source: pulse-maintainer
2026-11-02 03:47:48 +00:00
pulse-triage[bot]
e220fb037d Publish billing state through owned private temporary files
Reuse the shared exclusive-descriptor writer for per-organisation billing state and migration. Preserve encryption, integrity, entitlement rules and migration policy while preventing stale temporary paths and independent stores from corrupting or exposing state.

Change-source: pulse-maintainer
2026-11-02 02:30:44 +00:00
pulse-triage[bot]
1e0b0bf83c Reproduce unsafe billing-state temporary-file reuse
Exercise both default and named organisations with encrypted synthetic state, stale temporary paths, destination links, migration, rename failure and independent writers. Preserve exact unrelated files and require private recoverable signed state.

Contract-Neutral: Registered filesystem regression tests only; no runtime or contract change.
Change-source: pulse-maintainer
2026-11-02 02:24:54 +00:00
pulse-triage[bot]
4fc752b424 Exercise uninstall rollback at the credential publication boundary
Block the final inventory rename instead of a predictable temporary path that the private writer no longer uses. Preserve the original synthetic inventory through restart and require the exact fail-closed response, durable retry credential and temporary-file cleanup before proving a successful retry. The monitoring control checks the actual rename error, not any incidental failure.

Contract-Neutral: Restore existing uninstall failure injection for the private writer and strengthen the same rollback and restart assertions; no production behaviour or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-02 00:59:17 +00:00