Commit Graph

1415 Commits

Author SHA1 Message Date
pulse-triage[bot]
1a27471600 Reconcile published Overview charts with reviewed recovery guidance
Preserve accepted 0efe3f7a12 and exact upstream ebfdc9d669 additively. Keep quiet unavailable captions, keyboard and touch reading explanations, stopped-agent provenance and primary CPU readings. Preserve stable denied-update help outside Details and all regression assertions.

Change-source: pulse-maintainer
2026-10-14 00:08:44 +01:00
rcourtman
4f14ad6ab9 Use one primary CPU temperature rule everywhere
Three rules chose a node's single CPU temperature. Node history took
CPUMax first, agent history took cpu_package first, and the node drawer
recomputed the maximum of package, CPUMax and every core in the
browser. On an agent-fed node CPUMax is built from cores alone and can
sit below the package, and elsewhere a core can run above the package,
so the drawer's CPU temperature headline could disagree with the line
drawn beneath it and with the History tab. Node alerts and the CPU
low/record tracking used yet another package-first rule.

models.PrimaryCPUTemperatureCelsius is now the one rule: the hottest
usable package, CPU-maximum or core reading, with a sensor-map form for
agents. Node and agent history, the router's live fallbacks, the
unified resource temperature, node temperature alerts and the CPU
low/record tracking all call it. The drawer reads the resource value
through a new Node.cpuTemperature field instead of recomputing it, and
getCpuTemperature is removed.

Mock mode wrote a second package reading under a cpu.package key into
every agent host, including node-linked ones, from a series unrelated
to the node's static reading. A node and its linked agent now carry one
reading, sampled from the agent's series under the agent's real keys,
and both histories seed from that series, so the current reading
continues the line.
2026-10-13 20:15:36 +01:00
pulse-triage[bot]
2c35b7f043 Integrate reviewed backend BusyBox private bootstrap support
Change-source: pulse-maintainer
2026-10-13 19:21:33 +01:00
pulse-triage[bot]
624d3f09a3 Keep backend bootstrap input silent on BusyBox hosts
Mirror the qualified Unix reader in setup, Proxmox and container producers: select one terminal tool, distinguish missing terminal/tool/mode failures, restore its complete state before installation and on cleanup, and retain silent overflow draining. Emit the isolated privileged body once without changing tokens, trust, scopes, profiles or state. Cover serialized contracts and actual consumer payloads.

Change-source: pulse-maintainer
2026-10-13 17:17:36 +01:00
pulse-triage[bot]
14b9b3fbac Emit the private reader once and exercise the real caller prompts
Use a POSIX root/sudo prefix inside the isolated subshell rather than duplicating the long quoted reader. Synchronise PTY command entry and exit with the caller prompt, retain full terminal/privacy/overflow assertions, and follow current help rows by their labels. The browser driver now inspects the full Linux card.

Change-source: pulse-maintainer
2026-10-13 16:22:48 +01:00
pulse-triage[bot]
18ed34d2eb Keep copied Unix installation input private on BusyBox hosts
Select the BusyBox stty applet only when standalone stty is absent, fail before unsafe entry on terminal-control errors, and restore modes with the selected tool. Expose the existing private-file installation alternative on Linux/NAS alongside FreeBSD without changing issuance, TLS, removal or privilege.

Change-source: pulse-maintainer
2026-10-13 15:39:54 +01:00
rcourtman
420f34a41d Consolidate shared contracts and retire obsolete obligations
Keep shared tenant-store, backup association, source identity, grouping,
installer qualification and alert evidence rules at their canonical owners.
Consumer contracts retain scoped references and their distinct local rules.

Remove obligations for the deleted Discovery scanner and backfill. Replace
superseded chart-padding expectations, telemetry schema history and test
names with the current source contracts while retaining VM backup precautions,
privacy limits, paid behavior and native qualification boundaries.
2026-10-13 13:44:50 +01:00
rcourtman
2dfbbe4f9f Consolidate installer and settings contract ownership
Keep removal safety requirements in agent lifecycle and replace deployment
copies with scoped references. Keep legacy Assistant mode-echo compatibility
and security setup settings preservation in the API owner, so their consumers
do not maintain separate copies of the same obligations.

Runtime behavior, paid entitlement checks and native qualification limits
remain unchanged.
2026-10-13 13:25:37 +01:00
rcourtman
49b7abc860 Honour recurring and descendant maintenance in Patrol findings
Patrol's operator-state projection dereferenced the one-shot
MaintenanceStartAt/EndAt whenever IsInMaintenanceAt was true. A
recurring window also reports active but leaves those fields nil, so
the first finding Patrol evaluated during a recurring occurrence
panicked the provider. The projection now takes its bounds from the
active occurrence.

Alerts already silence guests under a host window scoped to
resource_and_descendants, but Patrol read only the exact resource, so
the same planned work dismissed a guest's alerts and still raised its
Patrol findings. Both now resolve maintenance through one rule,
unifiedresources.ActiveMaintenanceCoverageAt: own window plus
descendant-scoped ancestor windows, latest active end wins. Only
maintenance is inherited; monitoring mode, lifecycle and remediation
locks stay exact-resource state. An inherited dismissal says the window
is on a parent resource and names it on the lifecycle event, and the
Manage help now says descendants' new Patrol findings are dismissed
too.
2026-10-13 12:58:17 +01:00
rcourtman
88338e9a7c Preserve canonical resource ownership in Assistant
Keep selection on the registry ID through context, sessions and command
routing so same-name resources cannot cross provider boundaries.
Retain native executor coordinates, legacy inputs that resolve uniquely,
policy redaction and paid execution modes.

Refs #2681
2026-10-13 01:56:59 +01:00
rcourtman
668c5135c7 Keep workload identity stable across node moves (#2882)
A Proxmox node move changed the workload row key, reset an open drawer’s
History view and could publish new coordinates before saved guest
metadata migrated. Rows now use the stable unified resource ID,
bookmarks resolve through the registry, and the selected resource owns
its drawer tab and History range across regrouping.

Accepted publication migrates metadata before exposing the new node. A
failed write retains operator fields in memory and the last successful
disk snapshot, with recovery through the existing writer. Native
metadata and History coordinates remain separate from row identity.
Backend metrics targets take precedence over the legacy native fallback.

Route focus owns initial positioning. Viewport initialization measures
the selected row without replacing its reveal window. Local row clicks
retain their scroll position, while later scroll and resize events
follow the viewport. Operator policy, Assistant, all four Patrol modes
and paid entitlements are preserved.

The proof registry owns the focused publication and writer tests. Its
guard verifies acceptance and rejection without duplicating the catalog.
Canonical and browser guards share exact Git inheritance reads, so
updating a branch retains parent qualification for unchanged content.
New resolutions and mode changes still need current proof, and range
checks qualify the complete proposed change.

Validation:

- Regression controls reproduce publication ordering and persistence
failures. Targeted backend and race tests pass.
- Final repair checks pass: 476 tests across 15 frontend files,
type-check, production frontend build and embedded build.
- Current-source browser checks on /proxmox/overview at 1280x800,
900x800 and 390x844 cover VM and LXC, canonical and legacy links, node
regrouping, native and explicit History targets, saved links, reload,
keyboard selection, Collapse, Escape and search reselection.
- Additional desktop and phone checks cover operator policy persistence,
metadata write failure, delayed lookup cancellation and refused
references. The final browser matrix passes 196 checks.
- Merge-qualification regression reproduces inherited additions, renames
and deletions being misclassified. All 216 focused guard tests pass,
including retained mode changes, new resolutions and ordinary commits.

Browser node movement uses controlled resource updates. Publication and
metadata ordering are verified independently with filesystem barriers
and failure injection.

Refs #1669

The script-smoke fixture includes the shared repository I/O dependency.
All 23 prepush fixture tests pass.
2026-10-13 00:08:15 +01:00
rcourtman
c76522e64e Send unreachable Patrol providers to Provider & Models
When Pulse cannot reach the saved provider (a wrong Ollama URL, a server
that is down, a network fault), readiness reports provider_connection
and the Patrol setup card offered "Check Patrol model", with a hint that
provider connectivity can be healthy. The model check cannot fix an
unreachable provider. The card now sends the operator to Provider &
Models, where the URL and the provider test live, with a subtitle that
says Pulse cannot reach the provider. It does not open the setup panel,
because a passing network blip must not ask a cloud user for a key that
works.
2026-10-12 23:37:58 +01:00
rcourtman
a4d2cdc2b8 Integrate current workload evidence and merge qualification
Keep the current clock and stored-History readout alongside canonical row
selection and resource-owned drawer state.

Use one Git inheritance reader for browser and canonical qualification.
Inherited modes and objects keep their parent proof, while new resolutions
and mode changes remain subject to current contract and proof requirements.
Range checks still qualify the complete proposed change.

Refs #1669
2026-10-12 23:07:52 +01:00
rcourtman
3d0ce60463 Load the Patrol setup panel only when setup is needed
The setup panel brought the AI settings client, provider configs and cost
helpers into the Patrol page chunk, which pushed AIIntelligence to
73.42 kB gzip against its 70.86 kB budget. Only an install that cannot
run Patrol needs that code, so the workspace now loads the panel
lazily and passes the readiness provider in, and the panel resolves its
starting provider itself. AIIntelligence is 70.38 kB (main 69.89 kB).
2026-10-12 23:05:07 +01:00
rcourtman
159db4ba3c Set up Patrol on the Patrol page
18 of 60 paid installs on the current telemetry schema have no AI
provider. Getting Patrol running meant three pages: turn on Pulse
Intelligence, pick one of 14 providers and paste a key, choose a model
from a raw list, then find Check Patrol model on another page.

When Patrol is blocked because no provider is connected, Pulse
Intelligence is off, or the provider refused the saved key, the setup
card now connects a provider in place. It covers a cloud API key
(Anthropic, OpenAI, Gemini, DeepSeek, OpenRouter) or Ollama, names the
model Pulse will use from the Patrol guidance table, prices it before
anything is saved, then saves it, runs the provider test and the Patrol
model check, and offers the first run. A per-token model on the
untouched 6-hour schedule gets the same slower schedule Patrol settings
would propose. Everything else stays on Provider & Models.

The panel stays mounted once started, because polling flips the
readiness cause mid-setup and would otherwise remove the verdict. A
refused key (provider_auth) now routes to Provider & Models instead of
the model check, which could not fix it.
2026-10-12 22:08:37 +01:00
rcourtman
c31445e2e1 Default Pro Patrol to Ask first until a mode is chosen
Pro sells Patrol investigation, but every install starts in Watch only
and stays there unless the operator finds the mode control. In the paid
telemetry read on 12 October, 20 of 35 Pro installs with Patrol on ran
Watch only, and none of those 20 ran an investigation in 30 days, so
the feature they paid for never ran.

An install that never saved a Patrol mode now runs Ask first when it
holds a positive investigation licence. Patrol investigates new and
re-detected warning and critical findings and proposes a fix; nothing
changes without approval. The default only applies to a positive
licence answer: a missing licence checker counts as unlicensed, so a
startup window cannot spend provider budget on a free install. Free
installs and explicit choices are unchanged.

The Patrol header says so once, with the cost (the operator's AI
provider and 30-day budget) and two actions that save Ask first or
Watch only. The notice never renders on a plan-locked install. The
header also stops claiming "Watching your infrastructure" while Patrol
cannot run yet and reads "Patrol is not running yet" instead.
2026-10-12 21:00:52 +01:00
rcourtman
549a4ca821 Keep workload identity stable across node moves
Use unified resource IDs for workload rows and selection so moving a guest
between Proxmox nodes retains its open drawer and History range. Resolve
existing bookmarks through the registry instead of rebuilding client IDs.

Migrate guest metadata before accepted inventory publication and retain its
operator fields in memory if persistence fails. Native metadata and metrics
coordinates remain explicit compatibility inputs. Operator policy and paid
execution behavior remain intact.

Register the focused publication and writer proofs once. Check proof
acceptance and rejection without copying the registry catalog into tests.

Refs #1669
2026-10-12 19:22:31 +01:00
rcourtman
d5a6c887f6 Consolidate current Discovery contract ownership
Current contracts repeated the same retirement rule and still required
deleted scanners, drawer controls, payloads and trusted execution paths.

Point dependent contracts to the AI runtime owner and remove obsolete
requirements. Retain network discovery, saved availability targets,
encrypted knowledge and governed action execution with all four Patrol
modes.

Verified contract, registry, status and control-plane audits.

Refs #2848
2026-10-12 17:26:04 +01:00
rcourtman
8cff7de026 Restore Patrol's Safe auto-fix and Autopilot modes
Reverts #2863 before any release ships it. The live Pro pricing and
Patrol pages, in English, German and Spanish, sell both modes ("applies
safe fixes in the mode you choose: Ask first, Safe auto-fix, or
Autopilot"), and paying installs chose them. Shipping the retirement
would have silently downgraded those installs while the sales page still
promised the modes.

If the modes are retired, that needs a dated notice: stop selling them
first, warn installs on those modes in-app, and then re-ship the change.
It should not arrive through an engineering cleanup.

The receipt #2863 landed stays in place; this commit adds the receipt
for the restored content.
2026-10-12 14:13:47 +01:00
rcourtman
afc4c9275d Retire Patrol's Safe auto-fix and Autopilot modes
Patrol could run some fixes on its own in two paid modes: assisted (Safe
auto-fix) and full (Autopilot, behind a server-owned acknowledgement).
Schema-v17 telemetry for the week to 2026-10-11 counts 1 assisted and 2
full installs out of 612 reporting Patrol, 4 executed Patrol actions in
30 days, all on one install, and no GitHub request for more autonomy,
while the automatic path carried its own policy leases, acknowledgement
store, per-resource allowlist, release gate and Colima lab. Investigation
is what paid installs use, so it stays.

Patrol now has two modes. Watch only reports findings. Ask first
investigates and proposes fixes, and every fix waits in Actions for an
operator to approve and run it.

- A saved assisted, full or autonomous level reads as approval, and the
  update routes refuse those levels with 400 invalid_autonomy_level.
- The core Patrol action broker only plans: Plan and Submit persist the
  plan and return. ExecuteUnderPolicy, the policy authorization lease,
  the policy admission store methods, the Autopilot acknowledgement
  persistence, routes and dialog, and the per-resource automatic-action
  allowlist (store column now written as NULL) are gone.
  GetPatrolFullModeUnlocked stays on the extension contract and reports
  false.
- Historical action records keep their policy lease and tenant/resource
  reason codes decodable, labelled as retired modes.
- The Patrol inbox no longer splits issues into "continuing without a
  decision"; every current issue is an operator decision.
- Release gate RG-06 now proves Patrol never executes without an operator
  decision (integration tier) instead of limited unattended autonomy,
  and RG-02/RG-04 point at the surviving human-admission proofs.
- Pro plan copy, AI docs, privacy telemetry wording and the subsystem
  contracts describe the two modes.
2026-10-12 11:52:11 +01:00
pulse-triage[bot]
123652e29b Preserve reviewed monitoring repairs with upstream Discovery removal
Compose current main e2f4bdff03 additively. Retain both subsystem records and the held change-age control while withdrawing only the obsolete Discovery identification test. Reviewed identities and ancestry, canonical guest History ownership and upstream feature removal remain intact.

Change-source: pulse-maintainer
2026-10-12 10:04:58 +01:00
pulse-triage[bot]
35bb23bebf Use saved credentials in copied agent removal commands
Separate Unix and Windows removal from installation-token state across the installer, source manager and removed Agent Doctor handoffs. Preserve saved connection, canonical identity and trust, bypass ambient installation credentials, and keep install private-input/preflight behaviour unchanged. Bind command regressions and parent/final desktop and phone browser evidence; retain Windows installer failure-retention with Delivery.

Change-source: pulse-maintainer
2026-10-11 22:21:09 +01:00
rcourtman
39f988b220 Remove AI Discovery
AI Discovery ran a separate model-backed service scanner beside Patrol
and the Assistant: its own store, scheduler, model route, API, tool and
drawer UI. No telemetry counter ever measured its use (the telemetry
discovery_enabled flag OR'd it with network subnet discovery), the
maintainer judged it a flop, and the context it produced is already
available to the models through pulse_query, pulse_read and the
unified-resource context sections.

This deletes internal/servicediscovery, internal/ai/infradiscovery, the
pulse_discovery tool, the /api/discovery routes, the mock Discovery
fixtures, the Discovery tabs in the resource, guest, node and Docker host
drawers, the identified-service cards, readiness badges, provenance
markers, suggested web-interface URLs, the Workloads AI Context column,
the chat "Discovery is off" hint and the AI Service Context settings page.
The old settings route redirects to Assistant settings. The model-bound
sanitizer allow-list existed only to pass Discovery context through, so it
goes too, along with the CopyableCodeRow primitive that only the
Discovery tab used.

Network subnet discovery (/api/discover, the Infrastructure discovery
settings) and the discoveryTarget agent coordinates are separate features
and stay. Stored discovery_enabled, discovery_interval_hours and
discovery_model AI settings are ignored on load; the settings API decoder
is lenient, so older frontends saving those fields still succeed.
2026-10-11 22:20:25 +01:00
pulse-triage[bot]
de5f541553 Preserve upstream API wording and diagnostics authority contracts
Reconcile the overlapping single and fleet narration documentation with current upstream route assertions, retaining CSV refusal and the actual shared ai:execute guard. Record the incorporated diagnostics token visibility boundary in its dependent contracts without changing runtime authority.

Change-source: pulse-maintainer
2026-10-11 21:10:41 +01:00
pulse-triage[bot]
84264d7d22 Align narration contract assertions with upstream resolver guard
Preserve the published shared ai:execute gate while integrating the reviewed report help. Correct only source-shape assertions and the internal contract description; report behaviour and browser-verified guide contents remain unchanged.

Change-source: pulse-maintainer
2026-10-11 19:54:25 +01:00
pulse-triage[bot]
00f3f0dc89 Align report help and scope proofs with narration spending permissions
Keep generation's read scope distinct from the ai:execute permission needed for single-resource and fleet PDF narration. Preserve the bounded PR2836 runtime guard unchanged, mirror the canonical API/MSP help into shipped assets, and record the actual contract including token-triggered versus server-run schedules. Replace the old unconditional-POST source assertion with both method and spending-scope checks, and cross GET with all five caller types. The production Docs browser fixture checks the public guidance on desktop and touch phone without API requests or mutations.

Change-source: pulse-maintainer
2026-10-11 19:10:36 +01:00
rcourtman
fc667c2ae3 Merge remote-tracking branch 'origin/main' into pulse/sidecar-live 2026-10-11 12:35:42 +01:00
rcourtman
5d53fa7a3d Remove the Assistant mutation handlers nothing calls
pulse_control only plans typed resource actions into Pulse Actions
(executeControlResource -> typedActionPlanner). The handlers that sat
behind the retired model-authored command, file and container paths
stayed in the tree with no production caller: run command, guest
control, app-container control, Docker control and container update,
Kubernetes scale/restart/delete-pod/exec, and file append/write.
registerFileTools was never called either, so pulse_file_edit is not
registered at all; calls to it are denied by the mutation registry
before any tool lookup.

A whole-program reachability run over cmd/... lists each of them as
unreachable, and so is everything only they used: approval-record and
preflight authoring, the command and native-action audit lanes with
their remediation-lock gate and plan-hash helpers, the Docker host
resolvers, and the file write verification. The executor's autonomous
flag, whose only readers were those handlers, goes with them (the
executor's SetAutonomousMode and the flag argument of SetContext).

Delete them with their tests and the constants, types and test helpers
they stranded. The contract prose that described the removed broker now
says that plan freshness and the operator remediation lock are enforced
by internal/actionlifecycle. Two source pins that named deleted code go
(the publishActionCompleted dispatch sites and the pulse_file_edit
declaration), the standards tests drop their expectations of an
ActionPlan construction in action_audit.go and of the legacy app_container
rejection in the deleted file-edit test, and the RA35 evidence entry for
the deleted run-command test goes with them.

Left alone on purpose: the saved autonomous control level and its
entitlement and approval-admission checks, which stay as legacy
compatibility, Service.SetAutonomousMode and the chat clamp,
SetOnActionCompleted and its router wiring (no dispatcher is left, the
contract prose says so), and the protected-guests plumbing.

Rebuilt on current main: the first version had 213 commits of drift.
Two conflicts, both on code this change deletes. tools_control.go takes
the deletion over the Protected guests cleanup that landed inside
executeRunCommand. action_audit_remediation_lock_test.go goes with the
audit lanes, including the test added for the dispatch gate's read
through a succession; that gate is deleted here, and
TestLockMovedBySuccessionStillRefusesTheIDThePreviousGenerationLists in
internal/actionlifecycle covers the same refusal on the live path.
2026-10-11 12:35:28 +01:00
pulse-triage[bot]
c0e11cf44a Keep diagnostic TLS recovery within saved trust
Distinguish cancelled or timed-out probes from certificate faults before classifying error text. Replace verification-bypass advice with endpoint, chain and independently verified fingerprint checks across PVE and PBS diagnostics, including scheduler errors and support JSON.

Exercise real loopback trust refusal and operator-supplied pin recovery without changing stored trust, credentials or scheduler authority.

Contract-Neutral: Restore existing TLS/timeout diagnosis and safe recovery guidance; errorKind/schema, saved trust enforcement/settings, agent lifecycle and scheduler/recovery authority remain unchanged.
Change-source: pulse-maintainer
2026-10-11 10:17:19 +01:00
pulse-triage[bot]
bd6e21ca40 Keep recovered checks and ageing monitoring views truthful
Replace complete availability records instead of restoring withdrawn failure fields after recovery. Age held metric readings and availability views on the existing shared clock, and name expired Settings evidence Stale rather than Online. Keep the vSphere VM table named in kiosk and filtered-empty views.

Adapt these repairs to current source-withdrawal and page-owned state without importing old branches. The wider timestamp sweep remains separate; authentication, polling and notification recovery policy are unchanged.

Change-source: pulse-maintainer
2026-10-10 19:27:13 +01:00
rcourtman
3465804dd1 Stop mock-mode callers that read identity rebuilding the estate view (#2798)
Follow-up to #2778. Stacks cleanly on main; the contract prose
cross-references the wiring change in #2796, so land that first if both
are open.

## What was wrong

In mock mode the unified view is keyed on the fixture data version,
which advances on every metric tick, and building it for the default
1,776-resource estate costs about half a second of CPU (many seconds on
a starved process). #2778 moved the metrics-target lookup onto the
fixture structure revision. The other callers that read only what the
estate lists and how it connects still rebuilt the whole view after each
tick: at startup they made 42 view requests, all misses (the
Docker-alert prune 18, the connection snapshots 13, the host-agent
evaluation 8, the chart prewarm 2, the metrics-target lookup 1), and
with no client connected the monitor tick alone rebuilt the estate about
every nine seconds.

## What changes

- Callers that read identity and topology share the view built for the
current structure revision and operator links
(`currentStructureUnifiedStateView`, `GetUnifiedStructureReadState`,
`currentModeStructureReadState`, in
`internal/monitoring/unified_structure_view.go`; `mockMetricsTarget`
uses the same cache reader): the Docker-alert prune, the workload chart
prewarm, the demo Patrol operator-state resolver, and the host-agent
evaluation. `evaluateHostAgents`, which runs on every monitor tick, now
lists nodes only when an offline host names a linked node.
- The connection-degraded alert feed keeps only platform rows
(`snapshotConnectionsForAlerts` drops every agent row, and a PBS row's
reported node name only becomes a host alias that its snapshot does not
carry). It now builds the aggregator inputs with `platformRowsOnly`, so
it no longer reads the hosts, their desired-config fingerprints or the
PBS instances. The connections endpoint, diagnostics and runtime
inventory still read them.
- Deliberately not moved:
- The mock storage chart (`resolveMockStorageTotal`): a linked pool
takes its capacity from whichever source was seen last, which a tick can
move without a structure change. It stays on the data-version view, read
once per request instead of once per uncached pool.
- `linkedHostForNode`, `getHostAgentTemperatureForNode` and
`carriedTemperatureOutlivesAgentLease` (only reachable with
`PULSE_MOCK_KEEP_REAL_POLLING`): they read a host's status, disks,
sensors and report lease, which a tick moves. Hoisting them would need
the read state threaded through the node poller, and they run after
startup, so they stay as they were.

Real mode is unchanged.

## Measured (pulse-dev, probe builds, one pinned core, GOMAXPROCS=1,
host load 30 to 110, single runs)

| | #2796 alone | with this change |
|---|---|---|
| estate view builds before the listener answers | 2 | 1 |
| estate builds, no client connected, 299 s of life | 33 | 2 (both at
startup) |
| process CPU over a 180 s steady window | 12.3 s | 3.3 s |

A separate run of the pre-#2796 build used 9.0 s over that window, so
read 12.3 against 3.3 as the comparison rather than as exact
percentages. The public demo host runs a mock estate, so the
steady-state saving is the one that matters there.

## Verification

- New tests (in registered proof files): no consumer of the structure
view rebuilds the view after a fixture tick (Docker prune, structure
node listing, workload prewarm, host-agent evaluation including an
offline host that names a linked node); the data-version view still
rebuilds; the structure view follows a structural fixture change and an
operator link; lazy correlation lists nodes only for a linked host; a
storage chart reads the estate only when it is not cached; the alert
feed does not rebuild the view, its platform rows equal the full
aggregator's, and configured PVE/PBS/PMG rows survive without the hosts;
the Patrol resolver does not rebuild the view.
- Negative controls (each fails the named test): prune, prewarm, eager
node listing, structure node listing, alert feed and Patrol resolver
each moved back to the data-version view, and a storage chart that reads
the estate before checking its cache.
- `go vet` and the targeted tests on pulse-dev.

## Known limits

- The structure view can be several ticks old, so a caller on it must
not read status, metric values, timestamps, sensors or anything a link
merges by freshness; the contract says so. The fixture sets pod node
names (which feed the platform aliases a Patrol reference can resolve
through) when the estate is built, not on a tick.
- `pbsInstanceFromReadStateView` never copies `NodeName`, so
`pbsReportedNodeNamesByInstance` appears to feed empty host aliases on
the connections endpoint. That is a separate bug, not changed here.
- The batch sharing of the storage chart's read (`sync.OnceValue` in
`GetStorageMetricsForChartBatch`) is not pinned by a test; the
single-chart laziness is.

Not a feature: no demand-ledger entry.
2026-10-10 13:44:54 +01:00
rcourtman
8823440f33 Stop mock-mode callers that read identity rebuilding the estate view
In mock mode the unified view is keyed on the fixture data version, which
advances on every metric tick, and building it for the default
1,776-resource estate costs about half a second of CPU (many seconds on a
starved process). #2778 moved the metrics-target lookup onto the fixture
structure revision; the other callers that read only what the estate
lists and how it connects still rebuilt the whole view after each tick.
At startup they made 42 view requests, all misses, and with no client
connected the monitor tick alone rebuilt the estate about every nine
seconds.

Callers that read identity and topology now share the view built for the
current structure revision and operator links (currentStructureUnifiedStateView,
GetUnifiedStructureReadState): the Docker-alert prune, the workload chart
prewarm, the demo Patrol resolver, and the host-agent evaluation, which
also lists nodes only when an offline host names a linked node. The
connection-degraded alert feed keeps only platform rows, so it no longer
reads the hosts, their desired-config fingerprints or the PBS instances
that only feed agent rows and a host alias its snapshot drops.

The mock storage chart is not one of them: a linked pool takes its
capacity from whichever source was seen last, which a tick can move
without a structure change. It keeps the data-version view, read once per
request instead of once per uncached pool. The per-node polling lookups
of a monitor that keeps real polling in mock mode (linkedHostForNode,
getHostAgentTemperatureForNode, carriedTemperatureOutlivesAgentLease)
read a host's status, disks and sensors, which a tick moves, so they stay
on the data-version view.

On pulse-dev (one pinned core, host load 30 to 110, probe builds): a
start built the estate view twice before the listener answered with the
wiring change alone and once with this; with no client connected the
process built the estate 33 times in 299 s and used 12.3 s of CPU over a
180 s window, against twice and 3.3 s with this change.
2026-10-10 12:37:42 +01:00
rcourtman
884694a046 Carry the PBS-reported node name into the connections ledger
The PBS poll records the hostname the node reports about itself on
PBSInstance.NodeName so /api/connections can alias the PBS connection by
it and group the host agent running on that machine into the PBS row.

The name reaches the unified PBS resource (PBSData.NodeName), but
Monitor.PBSInstancesSnapshot() rebuilds each instance from the read-state
view, and the view had no accessor for it, so the snapshot always carried
an empty NodeName. The ledger's reported-name map was therefore always
empty and a PBS machine configured by IP or DNS alias still showed as an
API row plus a separate agent row. The unit tests missed it because they
hand the aggregator its inputs instead of going through the monitor.

Add PBSInstanceView.NodeName() and copy it in pbsInstanceFromReadStateView.
The new ledger test drives a real monitor through the input builder, the
connection aliases and the system grouping: with the conversion line
removed it fails on the missing alias, with it the agent attaches to the
PBS system.

Only direct root@pam sessions can read the node name (API-token
connections get none), so this restores grouping for password-auth PBS
connections; token-auth ones still match only on what they were
configured with.
2026-10-10 12:06:38 +01:00
rcourtman
d196f1cb51 Open the Patrol mode selector when a link lands on its anchor (#2784)
## What was wrong

The "Choose Patrol mode" buttons in Settings > Assistant (header and
Step 1) and the licence panel's Patrol control action link to
`/patrol#patrol-control`. Since the operator workbench redesign
(3088f52dc0) the four Patrol mode choices sit inside the Patrol header's
collapsed "Mode and automation" disclosure, and nothing opened it on
arrival. Those links therefore landed on a page where the choices were
hidden, which the api-contracts "Patrol control route target" clause
forbids: the canonical anchor must resolve to the visible Patrol mode
selector.

## What changed

`PatrolIntelligenceHeader.tsx` now opens the disclosure and scrolls it
into view when the route hash is `#patrol-control` (with or without the
`patrolControlStarter` query) or the `#operations-loop` compatibility
anchor.

- It reacts only to a change of hash or of the disclosure element, so a
disclosure the user collapses stays collapsed, and it still opens when
it mounts after runtime capabilities load.
- A plain `/patrol` visit stays collapsed.
- Plan-locked installs render no disclosure (an inline "Patrol mode"
line), so nothing changes for them.
- The starter query path only records the starter activity and strips
itself from the URL; it never handled focus, so it needed no separate
change.

The anchor-ownership clauses in `api-contracts.md`,
`patrol-intelligence.md` and `frontend-primitives.md` now describe the
arrival behaviour.

## Verification

- The header render suite gains eight cases: each anchor (three), a
plain visit, a late mount after the licence loads, in-app hash
navigation, a user collapse that stays collapsed, and the plan-locked
line. Against the previous header six of them fail (6 failed, 6 passed
in that file); with this change the Patrol feature, routing, Settings
agent panel, licence presentation and shared-primitive suites pass, as
do type-check and the full lint chain.
- Browser pass (receipt included): two dev servers, before and after, at
1440 and 390 px. Before, every anchor route and both Settings links land
with the disclosure collapsed; after, they open it with all four choices
enabled and in view. Runtime-locked installs open it with the paid
choices disabled; plan-locked installs are unchanged.

Observed, not changed here: on a plan-locked install at 390 px, arriving
from Settings leaves the page scrolled to where Settings was, as it did
before. That path renders no disclosure, so this change does not touch
it.
2026-10-10 09:57:25 +01:00
rcourtman
a4cdb4af87 Admit human action dispatch under the policy coordinator (#2781)
## What was wrong

`actionlifecycle.Service.Execute` read the operator remediation lock
inside `ValidateCurrentReadiness` and committed the `executing`
transition afterwards, with nothing holding the two together. A "Never
auto-remediate" (or Retired) save that landed between the readiness read
and `RecordActionExecutionAdmission` was acknowledged to the operator
and the approved action still reached the executor. `ExecuteUnderPolicy`
already held the admission read lock across the same steps, and
operator-state PUT/DELETE already take the write side through
`WithPolicyMutation`, so only the human path was outside the boundary.

No downstream gate closed it: the HTTP handler delegates straight to
`Execute`, none of the typed executors (`routedActionExecutor`, Docker,
Proxmox guest, host update, host storage cleanup) read the lock, and
neither store's admission write consults operator state.

## Change

`Execute` now runs its gates and the admission commit in
`beginHumanExecution` under `coordinator.mu.RLock()` and releases the
lock before `dispatchCommitted` calls the executor. A lock save either
lands before the readiness check and refuses the action, or queues
behind the committed admission.

An admitted dispatch is deliberately not recalled by a later lock,
including an attempt that was admitted but never sent and is resumed by
`RecoverExecutingActions`. Recalling known-unsent work needs an atomic,
conditional pre-send terminalization that neither store has
(`RecordActionExecutionRefusal` only accepts planned/pending/approved
rows; `ForceFail` records inconclusive truth). The contract now says so,
and notes that operator-facing copy should say an already-admitted
action can still run.

## Proof

-
`TestExecuteAdmissionLinearizesWithOperatorLockSave{MemoryStore,SQLite}`
starts a real policy writer inside the window (through the executor's
availability hook, after the lock read and before admission), asserts
the coordinator excludes a writer there, and orders the save
acknowledgement against the admission commit. Against the old
`service.go` it fails on both assertions: ack seq 1, admission seq 2,
executor called.
- `TestExecuteAdmittedDispatchIsNotRecalledByLaterOperatorLock` pins
release-before-dispatch (a save during `ExecuteAction` must not block)
and no recall.
-
`TestRecoverExecutingActionsDoesNotRecallQueuedAttemptAfterOperatorLock`
pins the unsent-attempt boundary.
- The whole `internal/actionlifecycle` package passes under `-race` on
pulse-dev.

Hooks now fire under the read lock on the human path as they already did
on the automatic path. `WithPolicyMutation`'s comment and
`api-contracts.md` say hooks must not request a policy write or re-enter
`Execute`/`ExecuteUnderPolicy`.

## Not changed

`PulseToolExecutor.recordActionExecutionStart`
(`internal/ai/tools/action_audit.go`) has the same check-then-record
shape outside the coordinator. I did not find a live route into it: its
mutation helpers (`executeRunCommand`, `executeControlGuest`,
`executeDockerControl`, `executeKubernetesScale`,
`executeNativeAppContainerControl`) have no non-test callers, and the
file write/append helpers sit behind `pulse_file_edit`, which the
mutation registry records as `retired_denied` /
`denied_before_transport`. Removing that retained code belongs with the
dead Assistant handler cleanup.
2026-10-10 09:50:56 +01:00
rcourtman
b2eed76e36 Open the Patrol mode selector when a link lands on its anchor
The "Choose Patrol mode" buttons in Settings > Assistant and the licence
panel's Patrol control action link to /patrol#patrol-control. Since the
operator workbench redesign (3088f52dc0) the Patrol mode selector lives in
the header's collapsed "Mode and automation" disclosure, and nothing
opened it on arrival, so those links landed on a page with the four mode
choices hidden. The api-contracts "Patrol control route target" clause
requires the anchor to resolve to a visible selector.

The header now opens the disclosure and scrolls it into view when the
route hash is #patrol-control, with or without the starter query, or the
#operations-loop compatibility anchor. It reacts only when the hash or the
disclosure element changes: the disclosure still opens when it mounts
after runtime capabilities load, and a user who collapses it keeps it
collapsed. A plain /patrol visit stays collapsed, and plan-locked installs,
which have no disclosure, are unchanged.

The header render suite pins each anchor, the plain visit, the late mount,
hash navigation, a user collapse and the plan-locked case; six of its new
cases fail against the previous header. The anchor-ownership clauses now
describe the arrival behaviour.
2026-10-10 09:24:48 +01:00
rcourtman
e885b8aced Undo only the links that hold a reported source in report-merge (#2780)
## Problem

A source-filtered `POST /api/resources/{id}/report-merge` picked the
links to undo by each fold's `Sources`, which is the folded side's whole
subtree. Two consequences:

- In a chain (Docker host linked into an agent linked into a VM), naming
only `docker` also split the agent from the VM, because the agent's fold
lists the Docker source it took in.
- Where recorded links form a cycle (S->V, W->V, S->W with V primary),
naming only `vmware` excluded V-W but left W-S, so W rejoined through S
on the next rebuild. `main` cannot record that cycle today (its third
link is skipped once W is folded), so this half is proved on hand-built
folds and will matter once chains record their closing links.

## Change

- `ManualLinkFold` records what each side is on its own (`HolderOwn`,
`FoldedOwn`), read before the other side is merged in. A repeated pair
unions them, as it does `Sources`.
- `ReportedManualLinkFolds` undoes the links that join a member carrying
a reported source to the part that stays, or to another reported member.
A member that hangs below a reported one and carries no reported source
goes with it, and its link stays. "The part that stays" is what the
resource still reaches without passing through a reported member, so a
reported member is cut from every link that would rejoin it.
- The handler uses it in place of `selected(fold.Sources...)`.

A report naming every source, or none, still undoes every link. The
drawer's Split sends every merged source, so it is unchanged; only API
callers with a real `sources` filter see a difference. No schema,
storage or response change.

## Proof

- `TestResourceReportMergeSourceFilterDetachesChainMembers`
(resourceapi): a Docker host linked into an agent linked into a VM,
reported for the leaf, the holder, both, every source and no filter,
checked on the monitor and the REST listing and against the links left
in the store.
-
`TestContract_ResourceReportMergeSourceFilterKeepsLinksOfUnreportedMembers`
(api).
- `TestReportedManualLinkFoldsDetachMembersCarryingTheSource` and
`TestReportedManualLinkFoldsLeaveNoReportedMemberJoined`
(unifiedresources): trees, the cycle above, the root re-keyed, folds
without own sources, a refold that gained a source. The second checks
that no reported member stays joined to the root; selecting by subtree
sources fails it on the cycle.
- Fold recording tests updated for the own sources; clone test checks
they are deep-copied.
- Negative controls on pulse-dev with the handler restored to the
subtree selection: the leaf case of the chain test and the new contract
test both fail with the full split they used to produce.
- Full `internal/unifiedresources` and `internal/api/resourceapi`
packages pass on pulse-dev.
2026-10-10 09:17:04 +01:00
rcourtman
21b496152c Remove the inert Assistant Protected guests setting (#2776)
## What and why

Settings > Pulse Intelligence > Assistant offered a **Protected guests**
list (`protected_guests`). The value was saved and pushed into the
Assistant tool executor, but the only code that read it was
`executeControlGuest`, which has no callers. The live mutation path,
`pulse_control type=resource` -> `executeControlResource` ->
`resolveControlTarget` -> `assistantTypedActionPlanner.PlanTypedAction`
-> `actionlifecycle.Service.Plan`, never consulted it. #2765 labelled
the field "legacy" and said it does not exclude saved plans; this
removes the setting instead of keeping a field that cannot do its job.

**Decision: remove, do not enforce.** The canonical way to keep Pulse
off a resource is its operator lock (**Never auto-remediate**, or a
Retired lifecycle): keyed by canonical resource id (a VMID or a name is
ambiguous across nodes and clusters), available for every platform, set
from the resource's own drawer, and enforced by the action lifecycle at
dispatch for every actor, approved plans included. A second,
string-keyed list that only the Assistant honours would extend a legacy
path next to a canonical one. Nothing in GitHub issues, discussions or
the demand ledger ever asked for it, and no user doc described it before
#2765.

The one real gap the lock had on the Assistant's path was planning:
`Plan` does not read operator state, so the Assistant could leave a plan
in Actions that can never run. `assistantTypedActionPlanner` now reads
the state through the tenant-scoped lifecycle store (the same read
Patrol's broker uses) and declines before `Plan`; `pulse_control`
returns an `ACTION_NOT_ALLOWED` result with `reason_code:
resource_remediation_locked` and how to clear it. A state that cannot be
read does not refuse planning, because dispatch re-checks.

## Proof it was inert (before)

- In-process, production planning chain (tool executor +
`assistantTypedActionPlanner` + real lifecycle and Proxmox executor,
only the node runner faked): a guest whose name and VMID were both in
the list was planned (`planned:true`, real action id). An
operator-locked guest was planned too.
- Live on a private non-mock stack (stub Proxmox node, stub
OpenAI-compatible provider emitting `pulse_control restart web-prod`,
`protected_guests: ["web-prod","101"]` saved): the call reached the
planner and was refused only by the runner availability gate; protection
was never consulted. (The typed action runner needs Linux systemd
containment, so planning success could not be reproduced live on macOS;
the in-process run covers it.)

## After

- Same live stack on this branch, with the old config (still carrying
`protected_guests`) loaded: `GET /api/settings/ai` omits the field,
Settings shows no field, Save sends no `protected_guests`.
- Locking `web-prod` through the real UI (guest drawer > Manage > Never
auto-remediate > Lock this resource > Save overrides) and repeating the
Assistant turn returns the lock refusal and leaves nothing in Actions.
Unlocked, the turn behaves as before.
- Negative control: with the planner check removed,
`TestAssistantDeclinesToPlanAgainstBlockedGuest` fails for both blocking
states.

## Compatibility

- A stored `protected_guests` still loads (tolerant decode) and is
dropped the next time the settings are written. `PUT
/api/settings/ai/update` ignores the key from older clients (verified by
test), and `GET` no longer returns it. No other repo reads it.
- The maintainer's saved-policy compatibility tests from #2765 keep
their real assertions (control level, entitlement, Patrol policy); only
the `ProtectedGuests` marker is gone. The legacy copy, pins and prose it
added are replaced: Settings points at the lock, docs/AI.md and
docs/AI_AUTONOMY.md say the list is gone and how to lock a resource,
contract clauses updated in ai-runtime, api-contracts, agent-lifecycle,
frontend-primitives and storage-recovery.
- `frontend-modern/browser-tests/assistant-control-compatibility.cjs` (a
manual harness for the maintainer's proof environment) is updated for
the removed field; it was not run here.

## What this does not fix (chipped separately)

- A lock is lost when its resource is manually linked into another
resource or re-keyed by an identity succession (`registry.go` fold,
`canonical_id_succession.go` `UPDATE OR IGNORE`).
- Saving a lock while a human-approved dispatch is being admitted can
race past the dispatch gate (`actionlifecycle.Service.Execute` re-checks
without the admission lock). The public copy says the lifecycle checks
the lock again before it runs an already-planned action; the contract
names the window.
- REST and Patrol planning still use the unchanged lifecycle planner;
the planning refusal is Assistant-only by design. The lock covers the
exact resource, not its host or descendants, and does not stop read-only
investigation.

## Verification

- Go: `internal/config`, `internal/ai/...`, targeted `internal/api`
(Assistant planning, AI settings handler, contract) and `go vet` pass
locally; new tests cover unlocked, Never auto-remediate, Retired,
non-blocking overrides, a non-default tenant, the exact response
envelope and no audit written on refusal.
- Frontend: tsc, eslint, copy and form-label lints,
Settings/utils/guardrail vitest pass; new AISettings test covers the
hint, read-only hiding, an old backend still echoing the list, and the
Save payload.
- Browser: private stack, desktop and 390px, Settings > Assistant and
the guest drawer Manage tab; receipt included.
- Three Sol review rounds; findings fixed (tenant store path,
overclaiming copy, retired-state remedy, missed browser harness pins,
missing receipt) or chipped.
2026-10-10 08:50:08 +01:00
rcourtman
f00ab32a32 Admit human action dispatch under the policy coordinator
Execute read the operator remediation lock in ValidateCurrentReadiness and
committed the executing transition afterwards, with nothing holding the
two together. A "Never auto-remediate" or Retired save that landed between
the readiness read and RecordActionExecutionAdmission was acknowledged to
the operator and still let the approved action reach the executor.
ExecuteUnderPolicy has always held the admission read lock across the same
steps; operator-state saves already take the write side through
WithPolicyMutation, so the human path only has to join them.

Execute now runs its gates and the admission commit in beginHumanExecution
under the coordinator read lock and releases it before ExecuteAction is
called. A lock save therefore either lands before the readiness check and
refuses the action, or queues behind the committed admission. An admitted
dispatch is deliberately not recalled, including an attempt that was
admitted but never sent and is resumed by RecoverExecutingActions: recalling
known-unsent work needs an atomic pre-send terminalization neither store
has, and the contract now says so instead of leaving it implicit.

The new test fires a real policy writer inside the window, through the
executor's availability hook, asserts the coordinator excludes a writer
there, and orders the save acknowledgement against the admission commit on
both stores. Against the old service.go it fails on both assertions (ack
seq 1, admission seq 2, executor called). Two more tests pin that the lock
is released before dispatch and that neither an admitted dispatch nor a
queued attempt is recalled by a later lock.

The api-contracts and security-privacy notes describe the shared boundary.
2026-10-10 08:47:35 +01:00
rcourtman
70ed7488a4 Undo only the links that hold a reported source in report-merge
A source-filtered report-merge chose the links to undo by the sources
each fold's folded side took in, which spans that side's whole subtree.
Naming the source of a leaf in a chain (a Docker host linked into an
agent linked into a VM) also split the leaf's holder from the VM, and
where recorded links form a cycle a reported member stayed joined
through the link whose fold did not name it.

Folds now record what each side is on its own (HolderOwn, FoldedOwn),
read before the other side's sources are merged in, and
ReportedManualLinkFolds undoes the links that join a member carrying a
reported source to the part that stays or to another reported member.
A member hanging below a reported one goes with it and its link stays.
A report naming every source or none still undoes every link, so the
drawer's Split is unchanged; only API callers with a real sources
filter see a difference.
2026-10-10 08:10:56 +01:00
rcourtman
8226d38836 Merge remote-tracking branch 'origin/main' into fix/assistant-protected-guests 2026-10-10 07:49:19 +01:00
rcourtman
1d6d2bfcae Remove the inert Assistant Protected guests setting
Settings > Assistant offered a Protected guests list (protected_guests)
that was saved and pushed into the Assistant tool executor, but its only
reader was executeControlGuest, which nothing calls. pulse_control plans
through the shared action lifecycle and never consulted the list, so a
guest named in it (by VMID and by name) was planned like any other. The
"legacy" label added in #2765 states that limit; this removes the
setting instead of keeping a field that cannot do its job.

The canonical way to keep Pulse off a resource is its operator lock
(Never auto-remediate, or a Retired lifecycle). It is keyed by canonical
resource id, applies to every platform, and the action lifecycle refuses
dispatch for it even for approved plans. The one gap was planning: the
lifecycle plans without reading operator state, so the Assistant could
leave a plan in Actions that can never run. assistantTypedActionPlanner
now reads the state through the tenant-scoped lifecycle store (the same
read Patrol's broker uses) and declines before Plan, and pulse_control
reports the block with how to clear it. A state that cannot be read does
not refuse planning, because dispatch re-checks.

Removed: AIConfig.ProtectedGuests and its getter, the settings API
field, the executor field/setter/config, the chat service plumbing, the
Settings field and form state, and the legacy copy, pins and prose from
#2765. A stored value still loads (tolerant decode) and is dropped the
next time the settings are written; older PUT bodies that send the key
are ignored. The Settings panel points at the guest's Manage tab.
2026-10-10 07:46:45 +01:00
rcourtman
912d7ceb51 Judge connection freshness by the monitor's live poll cadence
Non-default organisations run their monitors against a detached copy of
the server config (#1619). A system-settings save reaches those monitors
only as runtime PBS and PMG polling overrides, so the copy that the
connections list reads through the org's config handlers kept the old
interval until that monitor was rebuilt. The active-to-stale cutoff is
3 x the polling interval, so raising PBS from 1m to 5m left a 3m cutoff
and Settings > Infrastructure badges read "stale" for part of every
cycle, while lowering it delayed the badge by the same factor.

Add Monitor.BasePollInterval, an override-aware reader for the clamped
PVE, PBS and PMG base cadence that never takes m.mu, and have the
connections input builder use it whenever a monitor is present. The
fixed-cadence branch of resourcePollIntervals reads the same accessor, so
resource freshness and connection freshness share one derivation.

The system settings GET is not affected: both production routes serve
SystemSettingsHandler, which reads the base config and persisted
settings; the configapi handler that reads the tenant copy is only a
fallback when that handler is absent.
2026-10-10 07:37:03 +01:00
rcourtman
9f738144b7 Correct Patrol mode selector and dialog contract prose
Contract clauses described Patrol header UI that no longer exists.
api-contracts.md named a "Patrol control dialog", but 27ba85ddc6 removed
the header's Configure Patrol dialog, and the header's only dialog is now
the Autopilot acknowledgement. api-contracts.md, frontend-primitives.md
and patrol-intelligence.md called the Patrol mode selector
"always-visible". Since the workbench redesign (3088f52dc0) it has sat in
a collapsed "Mode and automation" disclosure, and plan-locked installs
get one inline Patrol mode line instead of a selector.

The rewritten clauses say where the selector lives, what plan-locked
installs see, that setup keeps the disclosure, and which labels a
restored patrol_configuration_failure session shows. A rendered header
test pins each header fact, with mutation checks showing it fails when
the disclosure opens, the selector leaves it, setup hides it, plan-locked
installs get a selector, the anchor moves, or a dialog comes back.

api-contracts.md still requires the #patrol-control anchor to resolve to
the visible selector. The disclosure stays closed when a link arrives
there, which is a code gap rather than stale prose, so that clause is
left for a separate fix.
2026-10-10 07:06:29 +01:00
pulse-triage[bot]
43c4f50f42 Integrate reviewed Assistant planning controls and saved-policy compatibility
Merge exact Web tip b908be2e55 with launch upstream 0289e8b648. Preserve both independent memory-evidence and Assistant-control contract sections in two internal documentation conflicts; all reviewed frontend content remains byte-identical. Retained sensitive race, browser, build and completed source observations are adequate for the changed control boundary. Broad affected-package race remains unproved after its recorded observation timeout; no aggregate pass or publication is claimed.

Change-source: pulse-maintainer
2026-10-10 02:47:01 +01:00
pulse-triage[bot]
6488742416 Clarify legacy Assistant protection limits and contain mode menu
The current canonical resource planner does not consult the retained guest list. Label that compatibility data honestly and link its accessible limitation without discarding saved policy. Keep the review-only mode menu within the composer on phones, with geometry and resize controls.

Reconcile the old autonomous-mode test with the explicit core-owned investigation flag, preserving saved preferences and legacy approvals. Mounted settings, parent-discriminating copy/menu checks, help mirrors and final-byte browser receipts cover the existing flow.

Change-source: pulse-maintainer
2026-10-10 01:29:01 +01:00
pulse-triage[bot]
a721b3a8e0 Preserve guest memory evidence across AI queries and local observers
Carry selected memory source, state and original time through existing queries, Assistant context and condensed facts. Missing usage remains unknown, measured zero stays numeric, and resource refreshes cannot renew a local observer's retained memory sample. Historical numeric percentages retain explicit source limitations. Shared qualification keeps the existing Patrol, collector, threshold and guest-command contracts intact.

Change-source: pulse-maintainer
2026-10-10 00:46:16 +01:00
pulse-triage[bot]
1927020ba2 Make Assistant controls describe governed action planning
Project interactive Assistant controls to Read-only and Ask first without migrating legacy stored preferences or relaxing entitlement, legacy command approval, scoped execution or Patrol policy. Preserve stored policy even when an older client echoes the projected mode on an unrelated save. Explain saved Actions plans and operator review in existing Settings, Chat and help.

Add saved-client and encrypted-config compatibility, authenticated plan-only access, active-stream and scope regression controls with parent comparisons. Record inspected final-byte desktop/phone browser proof and the affected subsystem contracts.

Change-source: pulse-maintainer
2026-10-10 00:28:43 +01:00
pulse-triage[bot]
40dbc0e173 Date held alert readings from their evaluated breach
Use the integrated optional metric-status breach date before a validated legacy fallback for attention and hover copy. Keep unknown and Go-zero dates undated, and carry the retained ISO date into scoped Assistant model context without restoring its removed detail surface. Preserve live readings, recovery rules, restart compatibility and the explicit operator-approval boundary.

Add same-parent date controls, production desktop/phone browser proof and the affected alert/API/shared presentation contracts. This is the existing PR2626 consumer continuation, not native guest recovery, notification delivery or new demand.

Change-source: pulse-maintainer
2026-10-09 23:41:05 +01:00
pulse-triage[bot]
5709c6073c Preserve held threshold alerts’ breach dates in live state
Date the evaluated breach through metricStatus rather than publishing poll-varying lifecycle LastSeen. Holds and recovery retain the saved date; unknown dates stay absent and restart rebuilds the volatile status from the existing checkpoint.

Pin exact-trigger and renewed breaches, both restart sources, unchanged recovery-mirror writes, concrete state JSON and keyed websocket withdrawal. Preserve thresholds, notification timing and existing consumer compatibility.

Refs: #2626
Change-source: pulse-maintainer
2026-10-09 21:44:37 +01:00