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.
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.
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.
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.
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
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
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
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
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
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.
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
Implement the exclusive temporary-descriptor seam on the monitoring metadata filesystem and assert its interface at compile time. The existing WriteFile barrier still proves metadata is persisted before new guest coordinates are published. This repairs the containing CI compilation failure without changing runtime code or weakening the barrier.
Contract-Neutral: Adapt the guest publication test double to the reviewed FileSystem interface; no production behaviour or subsystem contract changes.
Change-source: pulse-maintainer
Time the legacy libvirt rate test across both receipts
TestApplyHostReportLegacyLibvirtRatesStayOnReceiptTime failed on main
(run 41335069897) with a rate below its lower bound. The bound divides
the counter delta by wall time measured from after the first report was
applied, but the monitor stamps receipt inside the apply. A slow first
apply under the race detector made the real receipt interval longer
than the measured wall time, so a correct receipt-time rate looked too
low.
Start the clock before the first report, so the wall time always spans
both receipt stamps. The bound still separates receipt time from
CollectedAt by four orders of magnitude.
TestApplyHostReportLegacyLibvirtRatesStayOnReceiptTime failed on main
(run 41335069897) with a rate below its lower bound. The bound divides
the counter delta by wall time measured from after the first report was
applied, but the monitor stamps receipt inside the apply. A slow first
apply under the race detector made the real receipt interval longer
than the measured wall time, so a correct receipt-time rate looked too
low.
Start the clock before the first report, so the wall time always spans
both receipt stamps. The bound still separates receipt time from
CollectedAt by four orders of magnitude.
One enabled but unreachable PBS storage on one PVE node marked the whole
connection's backup history partial, and posture then refused Protected
to every guest on it. On a real instance that showed 47 of 49 guests as
"attention" although their fresh, verified backups sat on storages that
read fine, and the Backups page never said which storage was the cause.
A partial collection still confirms what it re-read: collectors renew a
point's evidence only for rows the poll returned, stamped with that poll's
observation time. Posture now counts a point as supported under partial
history when its evidence is no older than the latest observation for its
provider scope. A point retained from an unread scope keeps its older
evidence and may have been pruned since, so it still never supports
protection; neither do backfilled migration evidence or denied,
unavailable or unknown history. A supported current backup is no longer
withdrawn because another source is partial, matching the existing rule
for unreadable sources.
PVE and PBS observations now also name what went unread (node, storage,
datastore namespace discovery, namespace), persisted on the observation
row and carried on each provider state. Explanations name the scopes, and
the Backups page shows one line naming the unreadable storage and what to
check. The names explain the gap only; confirmation never depends on them.
Tests that asserted "no guest is protected under a partial poll" now
assert that only guests whose backup the poll re-read are protected, with
partial coverage, and that retained points from unread scopes never are.
Buffered reports can arrive milliseconds apart even though their counters
were collected seconds apart. Measure sequenced agent counter intervals on
their collection clocks while retaining receipt-time freshness and history.
Carry the optional host IO counter timestamp through collection and reports,
use libvirt inventory time for CPU and IO, rebase incomparable clocks, and
omit unknown Docker network history. Preserve unsigned libvirt CPU counters
and legacy report compatibility. Register the counter, wire and producer
regressions under the existing subsystem proof routes.
Keep restored collectors running after helper rollback with their error
status. Require typed post-replacement restart failure before handing over
to the service manager. Sync executable bytes and mode before an atomic
POSIX replacement and apply the same barriers to persistent copies.
Make helper startup evidence authoritative, including an explicit absence,
so recovered and later helper starts cannot consume stale local markers.
Carry updater evidence through the canonical agent facet and host snapshot
with owned status and timestamp copies for fleet diagnostics.
Keep fleet diagnostic rows keyed by connection identity so refreshed
update evidence does not discard an open disclosure or its keyboard focus.
Keep accepted warnings as delayed queue batches when stopping, preserving the first grouping deadline and later quiet-hours hold without immediate sends. Serialize the buffer handoff with resolution and operator policy, and retain ordinary destination snapshots, cancellation, retries and delivery receipts. Exercise actual warning production, SIGTERM process restart, manager reload and matching recovery through scoped loopback receivers.
Fixes#3671
Change-source: pulse-maintainer
Keep delivery permission and SQLite available until queue workers,
admitted writes and direct fallback sends finish. Leave unclaimed rows
pending so restart and reload retain delivery work and firing receipts.
Restore shared webhook policy before persistent work is activated, including
tenant queues. Reject unreadable policy before queue creation and preserve
deployment URL locks when restoring saved installation settings.
Cover admission, concurrent stops, operator pause, channel disable,
direct fallback, restart recovery and bootstrap policy with persistent tests.
Keep API coverage of later policy replacement and revocation.
Per-sensor alerts, history and a CPU-source choice (#3565) need to name
one hardware input reliably, and the existing flat maps cannot: their
keys drop the chip's bus address and lower-case the label, so two NVMe
drives, two CPU sockets or applesmc's TC1F/TC1f collapse into one
reading, and readings outside 0-150 °C vanish.
The agent now also reports sensors.native: one entry per tempN_input
and fanN_input of every chip, keyed "<chip>/<channel>", with the
original label, kind, unit, unconverted value and an ok/invalid status.
Implausible readings such as applesmc's -127 °C stay listed as invalid
rather than disappearing, a stopped fan's 0 RPM is a reading, and a
chip whose inputs leave the legacy maps empty still reports. The list
is sorted, deduplicated and bounded at 256 entries; cluster peer
results leave it out.
Ingest accepts an entry only when its ID is exactly <chip>/<channel>
for a canonical channel of the reported kind, derives the unit, and
recomputes the status with the same shared plausibility policy, so the
server does not depend on the agent's judgement. The inventory is
carried through the host model, frontend state, unified resources,
clones and the read-state projection.
Nothing consumes it yet. The legacy maps keep their keys, filters and
consumers. The contract notes record what later slices must add first:
completeness state before a missing entry can mean a removed sensor,
and a collision-free encoding before the ID becomes a lower-cased
alert or metric key.
Refs #3565
**Revalidate API-token authority on agent event streams**
Keep existing subscriptions bound to the live credential, organisation
and read scope. Refresh command visibility after scope withdrawal, and
close withdrawn streams without changing event kinds or canonical
evidence. Exercise durable HTTP revocation, idle expiry, tenant
replacement and the shared MCP consumer through the registered route.
**Bound live-token stream refresh context ancestry**
Replace each disclosure snapshot over the original admitted request
context rather than retaining the preceding refresh. Keep live token and
tenant-owner checks, cancellation and scoped redaction unchanged.
Exercise 512 approval/action frames per token header, scope changes,
original context values and cancellation cleanup.
Contract-Neutral: Bounded per-stream context retention only; existing
HTTP and SSE payloads, token and tenant authority, redaction and
last-use updates are unchanged.
**Distinguish container SSH setup refusal from legacy collection**
Keep the key-generation restriction and legacy warn-and-use collector
unchanged. Distinguish their diagnostics and prove refused setup
preserves existing keys, while synthetic collection still requires a
usable key and strict host-key trust. No real SSH host is contacted.
Contract-Neutral: Diagnostic text, accurate comments and normal-suite
regression coverage only; key setup, SSH collection, host-key
verification, credentials and runtime contracts are unchanged.
**Keep the repeated-stream deadline distinct from a speed assertion**
The first race run reached the fixture's ten-second request deadline at
440 and 399 frames. Preserve the fixed 512-frame acceptance, context
ancestry, live redaction and explicit cancellation assertions. Model a
long-lived request deadline rather than imposing an unrelated throughput
budget; the enclosing Go test timeout still bounds hangs.
Contract-Neutral: Test fixture deadline only; no runtime, payload,
permission, cancellation or retention contract changes.
---
Fleet candidate `20261031T182734Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `bf87e439fc7f75241d84630285a265238efe1627` on `main`.
[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
Keep the key-generation restriction and legacy warn-and-use collector unchanged. Distinguish their diagnostics and prove refused setup preserves existing keys, while synthetic collection still requires a usable key and strict host-key trust. No real SSH host is contacted.
Contract-Neutral: Diagnostic text, accurate comments and normal-suite regression coverage only; key setup, SSH collection, host-key verification, credentials and runtime contracts are unchanged.
Change-source: pulse-maintainer
Resolve alert references through the resource registry without borrowing a
merged owner's different source. Use the memory keys and durable families
recorded during Docker, host-agent and PVE ingestion, including legacy agent
subjects after their live tail is lost.
Keep valid zero-span observations for the alert evaluator to judge. Cover
writer-to-reader parity, merged sources, persistent history and the factory
CPU grace, unknown-window retention and recovery. Pin the verification
contract and measure complete alert passes at two inventory sizes.
Use the shared bounded response and envelope admission for the outer datastore inventory before exclusions or child reads. Contradictory/error-bearing envelopes and partial success cannot remove retained backup evidence. Preserve HTML guidance, payload-free diagnostics and genuine empty discovery.
Exercise both guest types through the public poll, live cache, durable points and protection, including cold live state and ordinary complete/empty recovery. Keep original guest operations stopped.
Change-source: pulse-maintainer
Actual VM and LXC Backups pixels retain Running evidence while the Core posture explanation says no backup was found. Say no successful, completed backup instead: incomplete or failed artifacts remain evidence, not a usable success or an empty inventory.
Exercise every non-success outcome through point/observation posture derivation and the ordinary writer polling lifecycle. Protection, evidence identity, dates, policy and snapshot-only/unread-history decisions are unchanged.
Change-source: pulse-maintainer
Share whole-response backup inventory admission with running backup and sync task reads. Contradictory envelopes and non-200 success responses cannot establish no writer and turn incomplete artifacts into terminal failures.
Exercise both task families and later pages through the client, then VM/CT polling, durable points, posture and ordinary complete/empty recovery. Preserve bounded reads, aliases, permissions, conservative matching and guest-operation exclusions.
Change-source: pulse-maintainer
Namespace, group and snapshot listings can withdraw retained backup evidence or renew protection. Read their bounded bodies to completion, reject ambiguous or error-bearing envelopes, and keep valid empty listings and older namespace compatibility.
Exercise malformed-response retention, nonrenewal and ordinary recovery through the client and complete VM/CT polling-to-posture path. Guest operations, access scopes and polling budgets are unchanged.
Change-source: pulse-maintainer
Require explicit task arrays, usable worker types and fully read bounded responses before interpreting current writers. A later unread page or family returns no partial set. Ordinary unknown-visibility, empty-list and completed-snapshot handling is unchanged. Add client and real collector/durable-evidence regressions without guest operations.
Change-source: pulse-maintainer
The returned candidate failed TestReloadAndRuntimeContextStayOnCanonicalMonitoringPath because PBS now captures runtime context atomically with its client and admission claim. Trace that path and execute inheritance, deadline, cancellation and ended-runtime admission checks through the same normal-suite entry point. Production code and existing withdrawal/accepted-listing proofs stay unchanged.
Contract-Neutral: Repair and strengthen the canonical runtime-context test for the existing PBS owner path; no runtime, auth, public contract, collection budget or guest operation changes.
Change-source: pulse-maintainer
Keep canonical orphan/readiness assertions and replace the obsolete unbounded-PBS-read requirement with actual standing-alert preservation and ordinary independent recovery. Expired collection must not clear wanted sibling age alerts.
Contract-Neutral: Executable safety proof replaces an implementation-spelling assertion; runtime, policy and orphan scope are unchanged.
Change-source: pulse-maintainer
A fresh monitor retains durable history but has neither live snapshot rows nor their in-memory fetch times. Keep exact warm-cache preservation and cold non-invention assertions, rather than requiring orphan timestamps to survive cache pruning.
Contract-Neutral: Correct cold-fixture initial state only; production, deadline and safety assertions are unchanged.
Change-source: pulse-maintainer
Keep the same executable assertions in the normal Go suite, with named entry points in the existing discovery and read-policy proof routes.
Contract-Neutral: Test entry points only; runtime and public contracts are unchanged.
Change-source: pulse-maintainer
Keep emitted PBS inventory in the actual API envelope and exercise the owner retained across child expiry. Production collection and frontend source are unchanged.
Contract-Neutral: Test-fixture ownership and response envelope only; no runtime or public-contract delta.
Change-source: pulse-maintainer
Keep successful scopes useful when another read spends the existing budget, without renewing unread history or asserting complete protection. Bind background publication to its admitted runtime and client, and preserve explicit cancellation and ordinary recovery.
Contract-Neutral: PBS collection implementation only; no host-agent lifecycle, API, auth, polling-budget or protection-policy delta.
Change-source: pulse-maintainer
Require the real alert manager to admit both the wanted condition and optional prior warning before testing their preservation.
Contract-Neutral: Strengthen a test precondition only; no runtime or public contract delta.
Change-source: pulse-maintainer
A later storage timeout must not create a recovery-reader outage merely by passing its already-expired context into alert evaluation. Keep existing wanted conditions and prior real evaluation warnings until an ordinary evaluation. Cover both states through the real alert manager without any guest operation.
Change-source: pulse-maintainer
Keep the exact raw-record comparison while constructing its expected timestamp the same way as the model. The first focused run's twenty representation failures remain retained. Only expired deadlines drop cancellation for local publication; an unexpired request retains its signal alongside the owner fence.
Change-source: pulse-maintainer
A partially unread poll has not demonstrated permission recovery. Preserve its earlier access warning alongside accepted archive progress, and clear it only with a complete accepted enumeration. Extend the warm/cold expiry matrix with both assertions.
Change-source: pulse-maintainer
Publish accepted listings when a later storage, node, retry wait or assignment read exhausts the child budget. Keep unread local scopes and unproven PBS attribution without renewing them, and retain explicit cancellation and connection-owner fences. Exercise warm/cold VM and LXC history, exact membership, recovery and withdrawals.
Change-source: pulse-maintainer
Replace the stale semaphore-spelling assertion with the registered mixed-guest resource and membership checks. Keep the existing guard's test identity, eight-way read limit and full snapshot/independent-connection assertions.
Contract-Neutral: Test implementation only; the existing concurrency guard now executes the stronger normal-suite worker and membership proof. Runtime, schemas, access and evidence policy are unchanged.
Change-source: pulse-maintainer
Use eight workers and a bounded result channel instead of spawning one collector per eligible guest. Stop dispatching queued reads on cancellation while retaining accepted listings and previous unread evidence. Add resource-bound, mixed-guest, cancellation and ordinary-recovery tests and the matching monitoring contract.
Change-source: pulse-maintainer
Use native tempN_input subfeatures in both Linux temperature parsers. Keep real CPU, core, GPU, NVMe and additional readings and fan RPM intact, with complete-report and unit-spoofing regressions.
Refs #3570. Product intelligence retains reproduced-fix, published-stable and issue-disposition follow-through; this source change does not close it before release.
Change-source: pulse-maintainer
Reject listings returned after cancellation, while retaining already accepted observations if optional sizing exhausts its budget. Runtime and connection withdrawal still reject late publication. Align the canonical runtime-context guard with the atomic backup owner and keep canonical read-state tests independent of timeout fixtures.
Change-source: pulse-maintainer
The ordinary provider scheduler reads node updates as well as backups. Supply its existing no-op client adapter instead of a nil promoted interface; no runtime or product behaviour changes.
Contract-Neutral: Test adapter initialization only; runtime and public contracts are unchanged.
Change-source: pulse-maintainer
Keep cached guest fallback and already accepted task/history results distinct from late canceled reads. The connection owner still rejects the complete publication after runtime or binding withdrawal; existing mixed-queue progress and cached-evidence tests remain authoritative.
Contract-Neutral: Preserve existing partial-read semantics inside the private ownership fence; public schemas, auth and guest operations are unchanged.
Change-source: pulse-maintainer
Declare the independent fixture guest kind and node so the same produced inventories also prove consuming-surface attribution.
Contract-Neutral: Normal-suite fixture identity only; runtime and public contracts are unchanged.
Change-source: pulse-maintainer
Retain direct same-client runtime replacement and scheduled cycle/runtime cancellation controls without live guest operations.
Contract-Neutral: Regression proof and its explicit registry binding only; runtime and public contracts are unchanged.
Change-source: pulse-maintainer
A finished old scan must not leave its cadence timestamp delaying a new connection binding. Cover replacement during a 24-hour configured interval as well as in-flight replacement.
Contract-Neutral: Internal PVE scheduling correction only; public schemas, provider permissions and guest operations are unchanged.
Change-source: pulse-maintainer
Coalesce scans across core cycles, cancel and fence retired/replaced owners, and prevent late inventories or task logs from renewing accepted evidence. Preserve independent storage/snapshot budgets and existing read-only behaviour with lifecycle regressions.
Contract-Neutral: Internal PVE poll ownership only; public schemas, provider permissions, guest operations and host-agent lifecycle are unchanged.
Change-source: pulse-maintainer