Commit Graph

828 Commits

Author SHA1 Message Date
rcourtman
bd29e392ca Batch raw metric samples for a minute between commits
The metrics table is clustered by resource, so every commit rewrites the
newest leaf page of each resource it touches. With a 5-second flush each
30-second agent sample landed in its own commit: about 1.9 WAL pages per
sample, 34 times the row data, and about 6.6 GiB/day for 270 resources.

Flush the write buffer every 60 seconds instead (buffer ceiling 10,000
rows) and name the raw rollup age so the flush stays well inside it.
Readers keep 5-second freshness: a Query* read whose own series has a
buffered sample older than 5 seconds flushes the buffer first, exactly as
Flush does and bounded by the existing 2-second write wait, and concurrent
readers wait for that flush. QueryCommitted skips the flush for the alert
metric window and the storage capacity trend, which merge their own fresh
in-memory tail; through a flushing read the alert path committed the buffer
about ten times a second. Minute batches are up to 20 times larger, so the
write queue is also bounded by samples, at the old worst case of 50,000.

The full-buffer detach, flush tick, Flush and shutdown drain are otherwise
unchanged. With the nightly watch's agent estate on pulse-dev, total Pulse
writes fell from about 4.9 to 1.4 GiB/day with identical committed rows,
every report accepted, and memory and CPU unchanged. pkg/metrics passes,
also under -race, as do the monitoring history, alert window, chart,
reporting and Assistant tool tests. TestStoreIdentityMigrationDeduplicatesLegacyRows
fails 2 of 20 runs on unchanged main and passed 20 of 20 with this change.
2026-11-10 01:08:26 +00:00
pulse-triage[bot]
a82106a579 Refuse to replace invalid saved encryption keys
Treat corrupt primary and corrupt or unreadable legacy key material as existing authority, not a request for migration or first-run replacement. Preserve exact key and saved-state bytes, return actionable non-secret errors, and keep valid-key reuse, clean first run and valid legacy migration intact.

Exercise real bootstrap, configuration and CLI consumers through refusal and explicit original-key restoration. Update the at-rest key contract and retain synthetic baseline failures as evidence.

Change-source: pulse-maintainer
2026-11-09 12:52:57 +00:00
pulse-triage[bot]
2f86f32d99 Bound SSO identity normalization to its retained prefix
Avoid converting complete external presentation claims to rune slices when only a bounded prefix is stored. Preserve exact normalization output and durable principals/roles; exercise reference equivalence, malformed Unicode boundaries, file-backed identity reload, fuzzing and a real allocation budget with paired benchmarks.

Contract-Neutral: Allocation-only optimization preserves normalized metadata bytes, principals, grants, persistence schemas, routes and wire formats.
Change-source: pulse-maintainer
2026-11-09 05:36:15 +00:00
pulse-triage[bot]
96d3508ea9 Fail closed when inherited access policy cannot be read
Preserve role and permission read failures through inherited policy evaluation instead of granting from a partial policy. Keep valid inheritance, deny precedence, configured administrator recovery and legacy manager adapters; exercise registered settings admission and unchanged saved credentials.

Contract-Neutral: Restores existing fail-closed RBAC authorization without changing routes, grants, wire schemas or existing manager interfaces.
Change-source: pulse-maintainer
2026-11-08 08:32:36 +00:00
pulse-triage[bot]
4dc3043b90 Match role-read recovery fixtures to the saved allow effect
The store normalizes an omitted permission effect to allow. Make that existing saved value explicit in the fault/recovery fixture so the exact recovered-permission comparison checks the persisted contract rather than an unsaved input. Keep the failed first assertion and all production code unchanged.

Change-source: pulse-maintainer
2026-11-08 07:12:04 +00:00
pulse-triage[bot]
aafbdf8a3d Report unavailable role reads without inventing absence
Use a separate optional error-aware role reader for the registered GET-by-ID endpoint. Distinguish missing roles from failed row or permission reads and return the existing fixed unavailable error rather than an absent or partially populated role. Keep legacy readers, tenant selection, grants and gates unchanged; cover read faults, saved/empty/missing roles and same-ID tenant isolation.

Contract-Neutral: Restore the existing distinction between unavailable RBAC storage and absent saved data on the registered role-detail read. No new route, response shape, successful payload, grant, gate, mutation, inheritance evaluation or frontend behavior is introduced.
Change-source: pulse-maintainer
2026-11-08 06:52:58 +00:00
pulse-triage[bot]
06bbe51598 Defer guest reads when replication status cannot be verified
A complete HTTP 500 from the replication status endpoint cannot prove an existing job finished its freeze/thaw. Keep known-job guest commands deferred until a usable status arrives, preserving unsupported-route compatibility and immediate verified resumption.

Exercise all six guest readers, direct and cluster clients, both collection paths, unrenewed observations, disk alert continuity and History gaps. Update the monitoring contract without claiming native thaw or original-guest recovery.

Change-source: pulse-maintainer
2026-11-05 02:16:33 +00:00
rcourtman
17a6c2c68c Pause guest-agent reads while replication can freeze a VM
Pulse holds guest-agent commands while a VM has a config lock, so they can't
leave a stale reply for a backup's thaw to read. Proxmox replication freezes and
thaws the guest holding only a local file lock, so no config lock appears, and it
only warns if the thaw fails. A guest could be left frozen the same way.

For guests the existing inventory poll lists with a job, read the job's status
before each command and defer while it has a live pid in its first hour, the
limit Proxmox puts on a freeze.
2026-11-04 15:41:01 +00:00
courtmanr@gmail.com
1d7911fc83 Let provider MSP clients fall back instead of locking
/msp and the guide promise that without a valid lease a provider's clients
fall back to Community behaviour and core monitoring keeps running. In fact
the hosted gate treated them as Pulse Cloud subscribers and returned 402. A
client whose container could not renew its one-day lease locked about a day
after creation, licensed or not: private-address DNS, the runtime's refusal
of private addresses, no NAT hairpin or a filtering firewall all do it.

The control plane now marks its clients, and a marked runtime opens the
workspace it was provisioned for. Capabilities still come only from a
verified lease, and organization routes and further organizations stay
gated, so nothing paid is granted. Pulse Cloud keeps the 402.

Renewal also stops depending on the host's network. Traefik answers the
portal's name on a client's isolated network, and a runtime with a configured
control plane accepts that private address. Older runtimes refuse private
addresses and upgrade.sh leaves them in place by default, so the name is
given only to runtimes whose image declares they can use it.

Checked on a lab VM with a release-tagged build and a private-address domain:
a client with an expired lease renewed; one created with no licence opened and
accepted an agent report.
2026-11-04 10:54:41 +00:00
rcourtman
e7f6c66520 Read PBS job run status from the admin endpoints
Every PBS prune, verify and sync job showed as "not run" in the Backups
servers table, even when PBS ran it successfully that morning.
GetJobHealthEvidence read configured jobs from /config/sync,
/config/verify and /config/prune. On a real PBS those return schedules
and retention only; last-run-state, last-run-upid, last-run-endtime and
next-run come only from /admin/sync, /admin/verify and /admin/prune. The
test fixture served run fields from /config, so the gap never showed.

Jobs are now read from /admin/{family}, falling back to /config/{family}
only when the admin endpoint is not found. A permission or other error on
/admin stays partial evidence rather than quietly degrading to
schedule-only facts. Against a real PBS 3, eight prune and verify jobs
went from no run state to OK, each matched to its task. The fixture now
uses /admin paths, and a PBS-shaped test fails against the old reads.
2026-11-02 18:23:28 +00:00
pulse-triage[bot]
47b197a6a2 Keep CLI API requests within the configured Pulse origin
Use the existing guarded transport for authenticated fleet reads and action commands. Preserve same-origin proxy paths and caller TLS or stricter policies without duplicating the redirect boundary.

Change-source: pulse-maintainer
2026-11-02 06:56:17 +00:00
pulse-triage[bot]
7966a309f0 Exercise CLI API redirect confidentiality
Cover every registered authenticated fleet and action command through actual loopback servers, including replayable action bodies and same-origin TLS redirects.

Contract-Neutral: Registered CLI regression tests only; runtime and existing API contracts are unchanged.
Change-source: pulse-maintainer
2026-11-02 06:49:07 +00:00
rcourtman
6dd202276c fix(monitoring): use collection clocks for agent counter rates
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.
2026-11-01 15:38:42 +00:00
rcourtman
e31210deec Report every lm-sensors temperature and fan with a stable key
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
2026-10-31 22:24:26 +00:00
pulse-triage[bot]
932c17b69a Require whole PBS datastore discovery before reconciling backups
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
2026-10-31 10:12:30 +00:00
pulse-triage[bot]
f55e279121 Reject ambiguous PBS running-writer inventories
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
2026-10-31 08:46:50 +00:00
pulse-triage[bot]
0d2aa2a731 Require whole PBS inventory responses before reconciling history
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
2026-10-31 05:28:23 +00:00
pulse-triage[bot]
3c2aa3a996 Keep unread PBS writer inventories from declaring failed backups
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
2026-10-31 03:11:01 +00:00
pulse-triage[bot]
edea3324a6 Reject malformed Proxmox task logs before guest synthesis
Read the full bounded response and require explicit, ordered native log lines before replacing accepted guest results. Retain the ordinary unread fallback, observation clocks and immutable-cache rules, with real HTTP and poll-to-history regression coverage.

Change-source: pulse-maintainer
2026-10-30 10:25:22 +00:00
pulse-triage[bot]
7967164537 Keep contradictory backup task results from completing archives
Require PVE task results and completion clocks to agree before replacing accepted writer evidence. An unread page retains the original running task and partial archive while independent completed copies remain usable. Native live/ended controls and ordinary completion are covered through the real client and VM/LXC ingestion.

Bind the existing response parser to its precise monitoring contract and normal response/lifecycle tests; its previously unowned path must not hide a missing proof route. No guest, task, backup or restore operation, public payload, protection policy or retention change.

Change-source: pulse-maintainer
2026-10-30 03:13:06 +00:00
pulse-triage[bot]
3541511d9c Deliver retained PBS and scoped lazy recovery on current main
Human PR3526 and PR3525 are on main, so the previous monitoring-contract overlap is resolved. Preserve their content and all three independent storage-recovery sections. Imported PBS and callback runtime/test files are unchanged from 9b87d13a8ef5ba6082602bed2b33e3834e056881; only additive contract composition resolves the conflict.

Contract-Neutral: Composition retains the reviewed PBS attribution and organisation-bound lazy selection contracts; no new public surface, authority, policy or schema.
Change-source: pulse-maintainer
2026-10-29 22:23:02 +00:00
pulse-triage[bot]
eab2db62cf Keep unread PVE task history from erasing backup intent
Require complete bounded task and audit responses before qualifying history. Carry last accepted tasks only for unread nodes without renewing observations or persisting them again, preserving partial archive classification and independent node updates. Accepted empty reads and explicit access denial still withdraw live rows.

Contract-Neutral: Enforces existing truthful scoped read and carry-forward semantics; no public endpoint, JSON field, extension ABI, token grant, protection policy or storage schema changes. The unclaimed storage-recovery contract records the behaviour; the human-held monitoring contract is untouched.
Change-source: pulse-maintainer
2026-10-29 20:13:57 +00:00
pulse-triage[bot]
a3b3ace2be Keep PBS success fixtures bound to their requested subjects
The complete PBS suite exposed two legacy success fixtures with only a timestamp and no native kind or ID. Supply the requested vm/100 identity and check both namespace results without relaxing snapshot admission. The runtime and frontend source are unchanged.

Contract-Neutral: Test-fixture correction only; no runtime or public contract delta.
Change-source: pulse-maintainer
2026-10-29 18:41:29 +00:00
pulse-triage[bot]
352121a8b3 Reject PBS snapshots outside their requested group
Validate every returned snapshot's exact native kind, opaque ID and unique timestamp before conversion or caching. Contradictory and duplicate arrays use the existing malformed-read retention path rather than renewing complete protection or reconciling valid history away. Preserve ordinary recovery, explicit emptiness and independent namespace evidence.

Change-source: pulse-maintainer
2026-10-29 18:27:00 +00:00
rcourtman
b94d8473ce Count the days external agents read Pulse history
The agent event-record experiment is reviewed on 2027-01-27 against one
test: at least 15 install IDs on stable versions reading history on
three or more separate days in a 30-day window. No existing counter can
answer it: they count requests, fold these reads into general context,
and the activity history keeps only its newest 500 records, so a busy
agent pushes out the days it read on.

After a successful list_recent_changes or get_metric_history response,
an external-agent request now also records one content-free history_read
marker per UTC day. The marker skips Pulse's own pages, is deduplicated
in memory and on disk, and sits outside the 500-record cap. Telemetry
schema 21 reports the number of distinct marker days as
pulse_intelligence_external_agent_history_read_days_30d (0 to 30). The
per-request records are unchanged, so existing counters keep their
meaning.
2026-10-29 12:59:09 +00:00
pulse-triage[bot]
f8a6107b90 Complete retained PBS inventory repair on current main
Compose the saved explicit-inventory admission repair unchanged with landed datastore-log and History-consumer work. Current producer-consuming browser proof remains the required next step; original guest and native recovery are separate.

Contract-Neutral: Compose the retained explicit-array admission repair under the existing unread-inventory retention contract; no new public surface, auth, identity or retention-policy delta.
Change-source: pulse-maintainer
2026-10-29 10:34:51 +00:00
pulse-triage[bot]
1cd052ad13 Separate DNS startup from recurring PBS log measurements
The full PBS suite passed, but the isolated race run included the process-global DNS cache's one-time 99-byte startup banner in its first healthy-poll log count. Initialise that shared resolver before capture in both log tests. This changes only fixture setup, not production or DNS behaviour. Keep the failed first receipt alongside the corrected-source proof.

Change-source: pulse-maintainer
2026-10-29 09:10:43 +00:00
pulse-triage[bot]
66de0e06a7 Keep routine PBS datastore payloads out of polling logs
Healthy datastore polls currently write deduplication traces and the complete provider map at Info on every read. Keep named measurements at Debug, omit arbitrary fields, and retain parse diagnostics with response sizes rather than response bodies. Readings, request selection, errors and backup-evidence behaviour are unchanged.

Exercise repeated status/RRD/GC collection at Info and Debug with enlarged provider extensions, plus malformed-list, malformed-status and HTTP-failure diagnostics.

Contract-Neutral: Internal PBS polling log volume and payload minimisation only; API results, requests, errors, backup evidence, access policy and rendered behaviour are unchanged.
Change-source: pulse-maintainer
2026-10-29 09:05:16 +00:00
pulse-triage[bot]
18d284893a Correct PBS unread-inventory lifecycle controls
Keep cold unread guests unassociated, preserve the additional historical root point during a partial scan, and make the accepted-empty fixture send an explicit array. Move the inventory comment to its actual reader.

Contract-Neutral: Correct regression assertions and fixtures for the existing failed-read retention contract; no runtime behaviour or public contract delta beyond the retained inventory admission repair.
Change-source: pulse-maintainer
2026-10-29 08:03:14 +00:00
pulse-triage[bot]
72e777d962 Require explicit PBS backup inventory arrays before reconciling absence
Missing or null data in namespace, group or snapshot responses is an unread inventory, not an authoritative empty array. Preserve the existing malformed-read retention, provider-evidence and ordinary recovery boundaries.

Contract-Neutral: Enforce the existing failed/malformed PBS enumeration and complete-success-only reconciliation contract; public payloads, endpoints, access, identity, retention policy and legacy namespace 404 compatibility are unchanged.
Change-source: pulse-maintainer
2026-10-29 07:29:10 +00:00
pulse-triage[bot]
404a859356 Retain observed PBS files across timeout and throttle responses
Treat typed HTTP 408 and 429 as unread evidence, not access rejection or absence. Keep snapshot and point clocks unchanged, preserve scope boundaries and do not add retries. Namespace discovery accepts legacy absence only from actual HTTP 404, never a quoted response-body code.

Change-source: pulse-maintainer
2026-10-29 04:50:23 +00:00
pulse-triage[bot]
993e12c972 Keep real runtime data disks visible in filesystem monitoring
Admit separately mounted Docker and Podman data directories while retaining specific layer-tree, virtual, remote and read-only exclusions. Exercise ordinary Proxmox VM polling, aliases, alert recovery and host/report admission without changing guest-read or backup policy.

Refs: #3444
Change-source: pulse-maintainer
2026-10-28 13:48:17 +00:00
pulse-triage[bot]
0771be9b27 Keep audit CSV text literal without rewriting signed evidence
Project untrusted CSV text after original event signature verification. Preserve JSON, scoped selection, metadata and export limits; cover all text columns, real signature verdicts, repeat exports and the authenticated HTTP route.

Change-source: pulse-maintainer
2026-10-27 17:46:37 +00:00
pulse-triage[bot]
6420aee87f Keep malformed saved pins distinct from explicit empty trust
Reject equivalent endpoint aliases that disagree between a malformed nonempty pin and deliberate CA mode, including delimiter-only pins. Certificate-verifier normalisation must not choose empty trust over a nonempty saved decision during resolution or consolidation.

Contract-Neutral: Completes the existing fail-closed exact-endpoint trust conflict contract; no new payload, route or frontend content.
Change-source: pulse-maintainer
2026-10-27 08:10:25 +00:00
pulse-triage[bot]
aa8e809fc8 Apply managed Proxmox TLS trust to exact polling endpoints
Persist endpoint-scoped decisions alongside discovery pins, including explicit CA mode, without clearing unrelated member trust or accepting renewed certificates automatically. Use the same policy for saved-credential probes, qualify their scope, and keep failed saves out of live PVE configuration.

Change-source: pulse-maintainer
2026-10-27 07:07:44 +00:00
pulse-triage[bot]
b801b34381 Preserve environment SSO authority across extension saves
Keep runtime-only provider authority through conversions and reconcile legacy snapshots before persistence. Reject environment-managed writes before bound handlers or service callbacks, while preserving independent saved-provider editing and detached authorization snapshots.

Change-source: pulse-maintainer
Contract-Neutral: Restore existing environment-provider immutability, non-persistence and snapshot isolation. The additive marker is runtime-only and changes no HTTP payload, route, entitlement, agent-lifecycle or storage-recovery contract.
2026-10-26 17:33:46 +00:00
pulse-triage[bot]
5cf7d82c6a Bound synchronous audit exports and summaries
Limit the actual query to 10001 rows and refuse selections over 10000 before verification or encoding. Preserve complete accepted results, selectors, signatures and access boundaries, and explain how to narrow a refused selection.

Change-source: pulse-maintainer
2026-10-26 16:06:56 +00:00
pulse-triage[bot]
815f16ac66 Require complete Proxmox guest status observations (#3341)
**Require complete Proxmox guest status observations**

Consume the full bounded status reply before admitting guest
measurements or
independent action observations. Reject absent, ambiguous, conflicting
and
foreign-guest successes, retaining optional provider fields and zero
counters.
Exercise actual HTTP reads, both collectors and the action observer
without
native guest operations.

Contract-Neutral: Repairs the existing source-observation and
fail-closed guest evidence contracts; no API, action authority, polling
budget, guest operation or policy change.

**Use the memory availability presence API in the status regression**

The first exact-source proof stopped at compilation because the new
assertion named the agent availability field rather than
VMMemInfo.HasAvailable. No test entered; use the existing public
predicate without changing runtime source.

**Bind guest status regressions to the served resource projection**

Wire the regression monitor to its actual state and canonical resource
adapter, and assert that the served memory tuple and original
observation match the ordinary collector. This strengthens the
registered regression and supplies actual producer frames for browser
proof; runtime source is unchanged.

**Separate listing and guest pressure in the status regression**

The test intends to retain a stronger guest observation over a differing
cache-inclusive listing after a rejected status reply. Give the listing
its own 50% value, rather than the same 100% as the guest; the existing
selector deliberately does not retain equal-percentage observations. No
production selection logic changes.

**Wire the status poll regression to its real alert manager**

The first collector execution reached CheckGuest with a nil fixture
manager. Provide the ordinary isolated manager, then assert that
rejected status observations preserve the existing memory incident and
only complete later recovery clears it. The retained failed aggregate
remains a failure; no runtime source is changed.

**Publish status fixtures through the monitor update boundary**

Use the ordinary monitor publication boundary before checking broadcast
observations, rather than directly ingesting a registry that its adapter
can
replace. Retain the failed 48 projection assertions; runtime source and
expected evidence are unchanged.

**Read status evidence through the current canonical adapter**

Publication atomically replaces the adapter registry. Read the current
production ReadState rather than the fixture original registry pointer;
retain every tuple, age, History and incident assertion. This fixes
fixture wiring only and does not change runtime selection or weaken
evidence checks.

**Keep diagnostic fixtures behind complete guest-status admission**

Supply the authoritative running status in successful and backup-lock
fixtures so they exercise their intended guest-safety paths. Assert
incomplete, conflicting and foreign status replies never reach
guest-agent diagnostics.

Contract-Neutral: Repairs diagnostic test fixtures for existing
complete-response and guest-safety invariants; no runtime, schema,
permission or contract changes.

**Match agent update targets to signed executable versions**

Serve the build-agent release identity on the machine version endpoint
so already-installed agents can pass its exact value through old typed
helpers. Keep display/Fleet targets unchanged and retain
development/source-build suppression, cache guards and all helper
trust/version/downgrade checks. Fixes the version-format cause in #3331,
not installed or reporter recovery.

Contract-Neutral: Restores the existing exact signed-agent target
identity invariant using the download validator; no response schema,
display target, permission, signature, digest, downgrade, rollback or
protocol change.

---
Fleet candidate `20261026T133225Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `bce8dcf7ef59fdf65393d647b620c8b070a56c39` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-10-26 15:43:33 +00:00
rcourtman
1b964ff5aa Hide macOS Time Machine mounts from agent disk inventory
A Mac backing up to a network Time Machine destination mounts the backup
disk image plus one read-only APFS snapshot per retained backup. The
agent reported every one of them as a machine disk, so a Mac Mini showed
a dozen extra rows under /Volumes/.timemachine/ and "Backups of <host>",
each at a false 92%: the image advertises the sparse bundle's 15 TB
ceiling, not the destination's real free space.

macOS marks all of these mounts nobrowse (MNT_DONTBROWSE, "not a path to
user data"), as it does the APFS companion volumes and simulator
runtimes already filtered by path. The collector now skips nobrowse
mounts before the usage syscall unless the operator explicitly includes
them. /Volumes/.timemachine/ also joins the shared special mountpoints,
so the server hides snapshot rows that agents without this change still
send.
2026-10-26 13:40:22 +00:00
pulse-triage[bot]
0bb004d0e2 Use the memory availability presence API in the status regression
The first exact-source proof stopped at compilation because the new assertion named the agent availability field rather than VMMemInfo.HasAvailable. No test entered; use the existing public predicate without changing runtime source.

Change-source: pulse-maintainer
2026-10-26 11:12:48 +00:00
pulse-triage[bot]
0d07a52724 Require complete Proxmox guest status observations
Consume the full bounded status reply before admitting guest measurements or
independent action observations. Reject absent, ambiguous, conflicting and
foreign-guest successes, retaining optional provider fields and zero counters.
Exercise actual HTTP reads, both collectors and the action observer without
native guest operations.

Contract-Neutral: Repairs the existing source-observation and fail-closed guest evidence contracts; no API, action authority, polling budget, guest operation or policy change.
Change-source: pulse-maintainer
2026-10-26 11:06:28 +00:00
rcourtman
5842fd0600 Read PMG queue counts from qshape, not the queue index
PMG's /nodes/{node}/postfix/queue is a directory index that lists the
four queue names, so the queue read has never decoded on a real gateway.
v6.5.0 logged that failure at debug level; 6.6.0 records it as a read
error, which degrades every PMG connection with queue monitoring on and
sends its poll task to the dead-letter queue (#2960).

Read each queue's TOTAL row from /postfix/qshape instead. qshape reports
ages only as buckets, so the oldest age is the lower limit of the oldest
non-empty bucket: it can under-report by up to half but never raises an
age alert early. Held mail is counted but kept out of the oldest age,
since it waits for an operator by design.
2026-10-26 10:24:35 +00:00
pulse-triage[bot]
ce1fc7e5ff Reject incomplete Proxmox storage inventories
Keep malformed successful storage catalogs and content replies from establishing absent backup history. Require complete bounded unambiguous inventories before filtering content; preserve explicit scoped empties and configuration defaults. Exercise actual HTTP readers and warm/cold poll, ingest and posture recovery.

Contract-Neutral: Tighten malformed-response admission without changing the public API schema, transport, permissions or reconciliation policy.
Change-source: pulse-maintainer
2026-10-26 08:57:07 +00:00
pulse-triage[bot]
4f0018789b Reject incomplete Proxmox snapshot response inventories
Require a complete bounded snapshot response before publishing membership or recovery evidence. Missing, ambiguous and invalid success payloads must retain last accepted state rather than confirm deletion. Cover both real HTTP clients through warm/cold polling, warnings and durable recovery history, while retaining valid empty and current-only listings.

Contract-Neutral: Tighten malformed-response admission without changing the public API schema, transport, permissions or reconciliation policy.
Change-source: pulse-maintainer
2026-10-26 06:48:21 +00:00
rcourtman
03132e8782 Reduce workload chart overhead and repair browser test setup (#3233)
Cold seven-day mock workload charts synthesized 914 values per series
before discarding most of them. Selecting the existing timestamp grid
before synthesis preserves the retained readings, newest point and
complete history window while bounding expensive work. The controlled
native request fell from 8.9 seconds to 1.3 seconds.

The strict chart query gate also exceeded its 90 ms p95 limit. Profiling
showed repeated SQLite row decoding, so raw fleet value reads now carry
the series and timestamp in one integer per observation. This
statement-local transport preserves exact values, negative-epoch
timestamps, tier reconciliation, resource scope and ordering, with
separate columns when a window could overflow. Full metrics-store tests
and targeted monitoring/API regressions pass, including boundary and
prepared-query cache controls. The 90 ms limit remains unchanged.

Organization browser fixtures arrange activated API fixtures before
their first workspace load. Explicit activation and deletion bounds
cover the existing server deadlines. Cleanup owns partial preparation,
attempts every tracked organization and retains failures. Native backend
teardown retains its final log. CI executes all 63 authentication,
organization and backend lifecycle controls before browser fanout.

Browser OS acquisition uses the hosted runner's existing signed Ubuntu
source definition. An unrelated Microsoft feed returning 403 can no
longer stop browser setup. Missing, unreadable or empty Ubuntu
definitions and incomplete Ubuntu index updates still fail. Existing
mirror, TLS, signature and cached archive hash checks remain in force.
Real apt acquisition controls, 17 package cache tests, 11 ownership
tests and normal commit/push checks pass.

The mock target lookup benchmark keeps fixture lifecycle logs out of
Go's result stream. A combined stdout/stderr control reproduces the lost
original observations and parses all ten corrected observations with
identical 4,731 lookups per operation. The benchmark work and comparison
thresholds remain unchanged.

Current-build browser verification covers
`/proxmox/workloads?type=vm&platform=proxmox-pve` at 1440×1000 and
390×844: seven-day trends, row drawer expansion, history range
selection, oldest/latest keyboard inspection and drawer dismissal.
Twelve organization-route cases cover organization settings, access,
sharing and billing across Chromium, mobile Chrome and mobile Safari
with retries disabled.

The [full stable/probation browser
run](https://github.com/rcourtman/Pulse/actions/runs/40160832317)
passed: 530 passed, 392 skipped, zero failures and no retry/flaky
markers in all eight shard logs. Agent registration and organization
provisioning also passed. This evidence covers product code at 64c0a3f9.
The later correction changes only a Go benchmark fixture and its
performance contract.

The [final-head stable E2E
run](https://github.com/rcourtman/Pulse/actions/runs/40163545118) also
passed all eight shards, agent registration and organization
provisioning: 186 passed, 183 skipped, zero failures.

All nine required source checks passed. The [final-head build and test
run](https://github.com/rcourtman/Pulse/actions/runs/40163545117)
passed, including benchmark comparison and strict chart qualification.
The chart result on valid hosted capacity was p50 38.31 ms, p95 51.01 ms
and p99 52.28 ms against the unchanged 90 ms p95 limit. The retained
artifact binds the measured binary to the tested synthetic merge commit.
The preceding runtime qualification also passed at p95 86.55 ms on its
runner. The benchmark comparison found no regression above the existing
10% and p<0.05 threshold. The corrected lookup fixture supplied all ten
observations without parser warnings.

After main advanced with scoped authentication and tenant runtime
changes, a native compatibility proof composed this exact head with
c809d3c93b. API, configuration API and
monitoring regressions passed. All twelve organization browser cases
passed again with retries disabled. A fresh embedded runtime passed the
desktop and phone seven-day chart matrix with both endpoints accessible.
The reviewed combined tree is 2e9a154b1c.
2026-10-25 05:27:11 +00:00
pulse-triage[bot]
63d973f40c Keep report CSV text from becoming spreadsheet formulas
Escape formula-like external text in single-resource, fleet and VM inventory CSV exports, including saved inventory reports. Preserve field boundaries, numeric measurements, ordinary text and the runtime inventory.

Contract-Neutral: Restores safe literal-text handling in existing report CSV cells; columns, numeric values, endpoints, authorization, archive formats and scheduling contracts are unchanged.
Change-source: pulse-maintainer
2026-10-25 03:45:08 +00:00
rcourtman
473926b495 Reduce retained chart row decoding without changing observations
Profiling the strict workload chart regression showed repeated SQLite column decoding on every observation. Carry the statement-local series number and timestamp in one integer for bounded raw value reads, while retaining separate columns whenever the requested window could overflow.

Preserve negative-epoch timestamps, current metric bindings, tier reconciliation, extrema readers and exact metric values. The paired cold-service benchmark falls from 63.5 ms to 60.6 ms. Full metrics-store tests and targeted monitoring/API chart regressions pass, including boundary and SQL-cache reuse controls.
2026-10-25 03:38:53 +00:00
pulse-triage[bot]
105fb05cc3 Decode native retained metric numbers without per-point reflection
Keep database/sql conversion for atypical values and rejection of NULL, malformed and overflowing observations. Compare native and fallback scans against primitive destinations and protect the allocation-free native path.

Contract-Neutral: Retained observations, numeric acceptance and rejection, SQL, sampling, source choice, extrema and access boundaries are unchanged; only application-side numeric assignment avoids per-observation reflection.
Change-source: pulse-maintainer
2026-10-24 17:32:56 +01:00
pulse-triage[bot]
c36672b2a7 Assemble retained metric series directly by statement-local number
Avoid per-observation string resolution and nested-map flushes for interleaved filtered fleets. Bind only nonempty series after each read and bound the direct buffers, preserving the existing wide-sparse fallback, SQL snapshots, tiers and exact observations. Verify against single-resource readers on both layouts.

Change-source: pulse-maintainer
2026-10-24 13:38:25 +01:00
pulse-triage[bot]
35af9de7f5 Transport filtered retained metrics by statement-local series number
Reuse bound resource and metric identities instead of decoding a metric string and a resource number for every raw fleet observation. Preserve scoped tier reconciliation, nullable values, caller ownership and display aggregation. Verify reordered bindings, both layouts/projections and filtered chunk boundaries; keep raw reads as one consistent statement.

Change-source: pulse-maintainer
2026-10-24 11:51:02 +01:00