Commit Graph

14398 Commits

Author SHA1 Message Date
pulse-triage[bot]
75a2a34855 Respect the selected agent credential file
Keep PULSE_TOKEN out of the direct-token flag default. Refuse an unreadable or empty selected file instead of silently borrowing other credentials, while preserving enrolled runtime-token restarts and implicit token-optional startup.

Cover actual flag loading and a synthetic host issuer, private installer-writer, compiled agent and trusted HTTPS lookup/report journey. This repairs an independent source-selection defect; it does not establish the cause or recovery of Discussion #2769.

Change-source: pulse-maintainer
2026-10-11 18:28:08 +01:00
pulse-triage[bot]
bd38f26a50 Compare evaluation fixture command arguments without IFS joining
The sourced installer deliberately uses newline/tab IFS. Assert the three Docker arguments separately rather than joining them with the installer's separator. Runtime source and refusal bounds remain unchanged.

Contract-Neutral: Test-only argument-vector assertion repair; no runtime or operator contract changes.
Change-source: pulse-maintainer
2026-10-11 17:37:02 +01:00
pulse-triage[bot]
bf40374241 Repair unlicensed provider-MSP production startup
Use the same Compose configuration before and after best-effort evaluation issuance. Preserve two-client unsigned evaluation, signed renewal restarts, explicit invalid-file refusal and the Pulse-hosted licence requirement.

Add real release-daemon restart/readback controls and secret-free hosted Compose acceptance for the actual placeholder and licensed mounts.

Change-source: pulse-maintainer
2026-10-11 17:26:10 +01:00
pulse-triage[bot]
0eaa6baec6 Integrate reviewed transcript-control fixture query repair
Change-source: pulse-maintainer
2026-10-11 17:05:52 +01:00
pulse-triage[bot]
353be1ff00 Integrate reviewed Assistant retirement fixture repairs
Change-source: pulse-maintainer
2026-10-11 17:05:50 +01:00
pulse-triage[bot]
1ead9579a4 Reconcile recorded upstream admin-uninstall and scope documentation repairs
Change-source: pulse-maintainer
2026-10-11 17:05:41 +01:00
pulse-triage[bot]
209d113324 Integrate reviewed held timestamp age correction
Merge exact Web candidate ae701959af. Preserve main's stronger, already integrated backup safety-link assertion when resolving the test-only conflict; all six browser-verified runtime contents remain unchanged. Retained affected tests, type/lint and parent/final desktop-phone proof adequately cover this display-only change. Final full-suite/build admission did not execute and is not claimed passing.

Change-source: pulse-maintainer
2026-10-11 16:58:34 +01:00
rcourtman
149b55c3f9 Require an admin for non-token agent uninstall (#2833)
`POST /api/agents/agent/uninstall` (and `/api/agents/host/uninstall`) is
a collector's self-removal: a token holding `agent:report` removes the
agent that token owns. For any caller that is not a token, the handler
takes the administrative removal path (`RemoveHostAgent`) and deletes
any host agent by ID. The route was only `RequireAuth` plus
`RequireScope(agent:report)`, and browser sessions bypass token scopes,
so a non-admin SSO, proxy or organization-member session could remove
any agent, while the equivalent `unlink` and `DELETE` routes require an
admin.

The route now uses `RequireAdmin` like its neighbours. Token callers are
unchanged: `RequireAdmin` admits them and the `agent:report` scope check
still applies, so the collector's own uninstall and `install.ps1` keep
working (they are the only callers; the frontend does not use this
route).

`TestProxyAuthAdminGatesAdminEndpoints` gains the two uninstall routes
(it fails with the old wrapper: the non-admin request reached the
handler). `agent_uninstall_scope_test.go` keeps the token path reachable
and the scope check in place.
2026-10-11 16:56:42 +01:00
rcourtman
f0ceace4b0 docs: state the scopes for token regeneration and resource links (#2834)
Follow-up to the token scope fixes now on `main`.

- `POST /api/security/regenerate-token` replaces every stored token with
one full-access token. API-token callers need full-access scope (`*`)
and no non-default organization binding; anything narrower gets `403`
and should use `POST /api/security/tokens/{id}/rotate`.
- `POST /api/resources/{id}/link`, `/unlink` and `/report-merge` need
`monitoring:write`.

`scripts/tests/test_api_reference_routes.py` pins each statement to the
code that enforces it (the resource prefix gate and the regeneration
check). Each pin fails when the code or the reference is reverted. Both
doc copies change together; checked on a full `origin/main` tree: docs
mirror check, the Python doc-pinning suites (no new failures against the
earlier failing set) and a scan for test-pinned phrases this edit
removes (none).
2026-10-11 16:54:29 +01:00
pulse-triage[bot]
2570dcc067 Reconcile upstream attention lifecycle scope admission
Incorporate the exact upstream frontier observed during publication while preserving every reviewed local commit. The upstream correction separates attention lifecycle mutation admission from reads and action planning; combined final-source validation remains required.

Change-source: pulse-maintainer
2026-10-11 16:42:42 +01:00
rcourtman
a65e18d9b3 docs: state the scopes for token regeneration and resource links
Follows the token scope fixes. POST /api/security/regenerate-token now
needs an instance-wide full-access token from API-token callers and
replaces every stored token; the reference says so and points scoped
tokens at the per-token rotate route. POST /api/resources/{id}/link,
/unlink and /report-merge need monitoring:write.

test_api_reference_routes.py pins each of these to the code that
enforces it, so the reference and the gates cannot drift apart again.
Each pin fails when the code or the reference is reverted.

Contract-Neutral: Customer docs corrected to match shipped behaviour; no runtime, API or contract change.
2026-10-11 16:34:02 +01:00
rcourtman
7482418db3 Admit attention lifecycle POSTs on the mutation scope (#2832)
`/api/ai/patrol/attention/` is one prefix for reads, lifecycle mutations
(`acknowledge`, `unacknowledge`, `suppress`, `unsuppress`) and action
planning. Its outer gate used the read-detail scope set
(`monitoring:read`, legacy `ai:execute`, `relay:mobile:access`) for
every method, so a token holding only `monitoring:write` was refused
before the mutation handler's own `monitoring:write` check could run.
The pinned capability inventory (`relay_mobile_capability_test.go`)
already says `POST .../{item_id}/{mutation}` needs `monitoring:write`.

The outer gate now follows `HandleAttention`'s dispatch: a lifecycle
mutation is admitted by the mutation scope set, everything else by the
read set. Behaviour that does not change: a read-only token still cannot
mutate, a write-only token still cannot read, action planning keeps its
read-side gate plus its own entitlement and plan/approve/execute
authorization, and browser sessions bypass scopes as before.

`attention_mutation_scope_test.go` pins each of those four cases and
fails when the mutation routing is reverted.
2026-10-11 16:30:40 +01:00
rcourtman
111a62cfe8 Require an admin for non-token agent uninstall
POST /api/agents/agent/uninstall (and its host alias) is a collector's
self-removal: a token holding agent:report removes the agent that token
owns. For any caller that is not a token, the handler instead takes the
administrative removal path and deletes any host agent by ID. The route
was only RequireAuth plus RequireScope(agent:report), and browser
sessions bypass token scopes, so a non-admin SSO, proxy or organization
member session could remove any agent, while the equivalent unlink and
delete routes require an admin.

The route now uses RequireAdmin like its neighbours. Token callers are
unchanged: RequireAdmin admits them and the agent:report scope check
still applies, so collector and install.ps1 self-uninstall keep working.

The existing non-admin proxy test gains the two uninstall routes, and a
new test keeps the token path reachable and the scope check in place.

Contract-Neutral: Behavioural fix that gives the administrative removal path the admin gate its sibling routes have; no new API surface or contract.
2026-10-11 16:30:23 +01:00
pulse-triage[bot]
0d95b96511 Bound transcript-control fixture queries to the real header
Final-source proof source-f4isnzfv retained 23375 passes and a five-second deadline failure in the empty-session transcript oracle. Enumerate visible header button roles once instead of repeating full-panel scans, retaining every accessible name and disabled-state assertion. Enabled same-label controls outside the header cannot satisfy the oracle; both roots use normal cleanup. Keep the default deadline and all other cases unchanged.

Contract-Neutral: Test-only query scope and discriminating fixture; no frontend runtime, permissions, transcript or update contract changes.
Change-source: pulse-maintainer
2026-10-11 16:25:09 +01:00
rcourtman
47bc97ec02 docs: stop labelling free Patrol routes as Pro (#2831)
The API reference marked the Patrol stream, manual run, acknowledge,
snooze, suppress, suppressions and dismissed routes "(Pro)" and promised
`402` when unlicensed. None of them is licence-gated. Patrol and
managing its findings are free (`ai_patrol` is a free feature, and the
frontend offers these controls on every plan); only governed fixes need
Pro.

- The routes now show the scope they really need (`ai:execute`, with
`relay:mobile:access` also accepted on acknowledge, dismiss and snooze),
and a short note says what Community gets, including the
one-successful-full-run-per-hour cap on `POST /api/ai/patrol/run`.
- `reinvestigate` is labelled Pro with its real prerequisites
(`ai_autofix` entitlement, a Patrol mode above Watch only, `409` while
one is running).
- `reapprove` is documented as retired: it always answers `410
command_fix_retired`.

`scripts/tests/test_api_reference_routes.py` gains two checks: a Patrol
route documented without a paid label must have no licence wrapper in
its registration, and `reapprove` must be documented as retired. Each
fails when its claim is reverted. Both doc copies change together.

Checked on a full tree at `origin/main` with these files overlaid: docs
mirror check, the Python doc-pinning suites (no new failures against the
earlier failing set), a scan for test-pinned phrases this edit removes
(none), and the canonical completion guard with the `Contract-Neutral`
trailer.
2026-10-11 16:18:19 +01:00
rcourtman
e996666fe6 Stop token callers widening or bypassing their scopes (#2830)
Two places where an API token could do more than its scopes allow.

**`POST /api/security/regenerate-token`** replaces the whole token
inventory, wildcard tokens included, and issues a full-access
credential. A token holding only `settings:write` could reach it, wipe
every other token and mint an unrestricted one, which the normal create
and update paths refuse because a caller can only grant scopes it holds.
A token caller now needs full-access scope and must not be bound to a
non-default organization. Anything narrower gets `403` and is pointed at
`POST /api/security/tokens/{id}/rotate`, which replaces one token. Admin
sessions behave as before.

**`/api/resources/`** is one prefix route gated on `monitoring:read`,
but it also dispatches `POST` `link`, `unlink` and `report-merge`, which
persist resource identity changes. Anything other than `GET`/`HEAD` on
that prefix now needs `monitoring:write`. The more specific
registrations (operator state, maintenance) keep their own gates, and
browser sessions still bypass token scopes as everywhere else.

Tests pin both boundaries and each fails when its fix is reverted
(including the organization-precedence rule for the instance-wide
check). Two existing regenerate tests used a `settings:write` caller;
their subject is owner inheritance and rollback, so they now use a
full-access caller.

Compatibility: a repository search found no shipped caller of
`regenerate-token` (the UI uses `/api/security/tokens`); external
automation that regenerated with a `settings:write` token will now need
a full-access token or the rotate endpoint. A token-authenticated
browser session with only `monitoring:read` will see `403` on "Split
merged resource".
2026-10-11 16:16:18 +01:00
rcourtman
b161c42e31 Admit attention lifecycle POSTs on the mutation scope
/api/ai/patrol/attention/ is one prefix for reads, lifecycle mutations
(acknowledge, unacknowledge, suppress, unsuppress) and action planning.
Its outer gate used the read-detail scope set for every method, so a
token holding only monitoring:write was refused before the mutation
handler's own monitoring:write check ran. The pinned capability inventory
already says POST .../{item_id}/{mutation} needs monitoring:write.

The outer gate now follows the handler's dispatch: a lifecycle mutation
is admitted by the mutation scope set, everything else by the read set.
Read tokens still cannot mutate, a write-only token still cannot read,
and action planning keeps its read-side gate plus its own authorization.

Contract-Neutral: Behavioural fix that makes the route match its pinned capability inventory; no new API surface or contract.
2026-10-11 16:05:31 +01:00
rcourtman
66d4239307 docs: stop labelling free Patrol routes as Pro
The API reference marked the Patrol stream, manual run, acknowledge,
snooze, suppress, suppressions and dismissed routes "(Pro)" and promised
a 402 when unlicensed. None of them is licence-gated: Patrol and
managing its findings are free (ai_patrol is a free feature, and the
frontend offers these controls on every plan). Only governed fixes need
Pro. The routes now show the scope they actually require and the
reference says what Community gets, including the one-full-run-per-hour
cap on manual runs.

Also corrects the findings routes: reinvestigate is Pro and needs the
ai_autofix entitlement and a Patrol mode above Watch only, and
reapprove is retired and always answers 410.

scripts/tests/test_api_reference_routes.py gains checks that a Patrol
route documented without a paid label has no licence wrapper in its
registration, and that reapprove is documented as retired. Each fails
when its claim is reverted.

Contract-Neutral: Customer docs corrected to match shipped behaviour; no runtime, API or contract change.
2026-10-11 16:02:29 +01:00
rcourtman
9718555e31 Stop token callers widening or bypassing their scopes
Two authorization gaps where a token could do more than its scopes allow.

POST /api/security/regenerate-token replaces the whole token inventory,
wildcard tokens included, and issues a full-access credential (nil scopes
normalise to "*"). A token holding only settings:write could therefore
wipe every other token and mint an unrestricted one, which the normal
create and update paths refuse because a caller can only grant scopes it
holds. A token caller now needs full-access scope and must not be bound
to a non-default organization; anything narrower gets 403 and is pointed at
POST /api/security/tokens/{id}/rotate, which replaces one token. Admin
sessions are unchanged.

/api/resources/ is one prefix route gated on monitoring:read, but it also
dispatches POST link, unlink and report-merge, which persist resource
identity changes. A read-only token could change them. Anything other
than GET or HEAD on that prefix now needs monitoring:write; the more
specific registrations (operator-state, maintenance) keep their own gates.

Tests pin both boundaries and each fails when its fix is reverted. Two
existing regenerate tests that used a settings:write caller now use a
full-access one, since their subject is owner inheritance and rollback.

Contract-Neutral: Behavioural fix that enforces the documented token scope model; no new API surface or contract.
2026-10-11 15:57:35 +01:00
pulse-triage[bot]
1438ffa1bd Integrate reviewed monitoring-credential and runner recovery help
Change-source: pulse-maintainer
2026-10-11 15:46:00 +01:00
pulse-triage[bot]
3b04cb5971 Reconcile current API reference and TrueNAS documentation
Incorporate the exact upstream head observed during publication without rewriting accepted integrations or the additive safety-help test correction.

Change-source: pulse-maintainer
2026-10-11 15:41:33 +01:00
pulse-triage[bot]
ae701959af Accept additional links to the existing backup precaution
The complete current-source frontend suite finds six valid rendered links where the earlier unexecuted two-entry reconciliation expected an exhaustive pair. Continue requiring both original navigation and detailed-warning labels at the correct destination, without rejecting additional symptom-specific links. All independent thaw, every-filesystem writes, liveness, prior-active restoration and mirror assertions remain unchanged; guidance and production source are untouched.

Contract-Neutral: Test-only reconciliation of existing rendered safety guidance; no runtime, permission, safety or subsystem contract delta.
Change-source: pulse-maintainer
2026-10-11 15:37:02 +01:00
pulse-triage[bot]
c69e87912c Report only browser replacement actions actually exercised
The operator case checks held policy but performs no replacement. Do not attach the generic second-action success marker to it. This removes a misleading result field only: all assertions, browser interactions, source hashes and frontend bytes are unchanged; the existing own-parent browser receipt remains valid without rebinding.

Change-source: pulse-maintainer
2026-10-11 15:32:52 +01:00
rcourtman
5782887969 docs: correct API reference auth labels and add missing routes (#2829)
Checked all 345 HTTP routes the server registers against `docs/API.md`,
then corrected the reference where the code disagrees and added the
integrator-facing routes that were missing.

**Corrected**
- Auth and scope labels that omitted the scope token callers actually
need: notifications, SSO providers, license activate/clear, security
reset-lockout, availability targets, relay settings, and every
agent-profile route (token callers need `settings:write` even for
`GET`).
- Resource metadata routes were labelled "admin or ..." but have no
admin requirement.
- `POST /api/notifications/test` sends one test through a single
channel, not to all channels. The storage detail route is `GET
/api/storage/{storageId}`. Token updates accept a rename-only body.
`validate-token` sat under "Audit Log (Pro)" but has no licence gate.
`/api/setup-script` is public.
- `POST /api/ai/remediation/execute` and `/rollback` always answer `410
Gone` (approve already said so).

**Added**
`GET /api/ai/patrol/runs/{id}`, `POST /api/availability-history`, `POST
/api/agents/agent/{id}/allow-reenroll`, `PUT
/api/truenas/connections/{id}` and its `/test` route.

Each doc is mirrored under `frontend-modern/public/docs`; both copies
change together (`scripts/check_docs_mirror.py` passes).

**Left unchanged on purpose:** `(Pro)` labels on Patrol routes whose
code has no licence gate. Whether to gate the code or relabel the docs
is a product decision.

Adds `scripts/tests/test_api_reference_routes.py`, a static drift guard:
every scope named on a route line must exist in `pkg/auth/scopes.go`,
the newly documented routes must match their registration, and the
retired remediation routes must say `410`. It fails against the previous
reference (4 failures) and passes on this one, and carries its own
negative controls.

Checked locally: docs mirror check, vitest for the docs tests that read
these files, the Python doc-pinning suites (no new failures against the
previous run), the API guidance Go tests (only the existing macOS `GNU
timeout` failures remain), and the canonical completion guard with the
`Contract-Neutral` trailer.
2026-10-11 15:29:24 +01:00
pulse-triage[bot]
4c631ed813 Verify held timestamp ages on desktop and phone
Complete the current-source browser matrix with visible responsive token columns, observed initial canonical revalidation and the normal synthetic CSRF path. Use an explicit revisit rather than treating the display-only refreshing prop as a token-list refetch. Ten final groups pass with all twenty final screenshots inspected; current-parent controls reproduce retained ages. Record this actual final-byte receipt against the unchanged committed source parent.

Change-source: pulse-maintainer
2026-10-11 15:26:28 +01:00
pulse-triage[bot]
8e20302041 Keep the real ZIP extraction limit without expensive fixture compression
The broader API race proof failed after 902 seconds with the oversized ZIP fixture among its unterminated tests; the missing panic output does not establish the cause. The fixture needlessly Deflates 100 MiB of zeros. Generate the same exact oversized entry with ZIP Store and streamed zero input instead, keeping the production cap, stream-limit assertion, archive validity and other Deflate controls unchanged.

Contract-Neutral: Only the ZIP overflow test fixture encoding and construction cost change; the actual oversized entry, runtime extraction policy, size bound, error assertions and test deadlines are unchanged.
Change-source: pulse-maintainer
2026-10-11 15:24:18 +01:00
pulse-triage[bot]
adcb363d4e Keep every valid backup-safety entry point in help checks
Final combined-head proof source-0_yiz8c9 found six rendered links to the existing safety destination. Require each intended navigation and detailed-warning label exactly once without rejecting the other symptom-specific links. Preserve all guidance, mirror and safety assertions.

Contract-Neutral: Test-only integration correction; no runtime, documentation, permission or recovery contract changes.
Change-source: pulse-maintainer
2026-10-11 15:19:29 +01:00
rcourtman
9031dd949c docs: correct API reference auth labels and add missing routes
Audited every HTTP route the server registers against docs/API.md.
Where a documented route and the code disagreed, or an integrator-facing
route was missing, the reference now matches the code.

- Auth and scope labels: notifications, SSO providers, license
  activate/clear, security reset-lockout, availability targets, agent
  profiles (every method needs settings:write for tokens), relay settings
  and the resource metadata routes (no admin requirement).
- Behaviour: POST /api/notifications/test targets one channel per request,
  the storage detail route is GET /api/storage/{storageId} (not a list at /api/storage/), token
  rename-only updates are accepted, validate-token moved out of the Audit
  Log (Pro) section because it has no licence gate, and the setup script
  is public.
- Retired routes: /api/ai/remediation/execute and /rollback always answer
  410 Gone, as approve already documented.
- Newly documented: GET /api/ai/patrol/runs/{id}, POST
  /api/availability-history, POST /api/agents/agent/{id}/allow-reenroll,
  PUT /api/truenas/connections/{id} and its /test route.

scripts/tests/test_api_reference_routes.py pins the corrections to the
router so later drift fails a test: every scope named on a route line must
exist in pkg/auth/scopes.go, the newly documented routes must exist in the
router, and the retired routes must say 410. It fails on the previous
reference and passes on this one.

Each doc is mirrored under frontend-modern/public/docs and updated in
both places. Labels where the docs and the code disagree about licence
gating are left alone; that needs a product decision, not a doc edit.

Contract-Neutral: Customer docs corrected to match shipped behaviour; no runtime, API or contract change.
2026-10-11 15:13:29 +01:00
pulse-triage[bot]
6e54a792e4 Keep retained change and administration ages current
Complete the existing PR2600 residual timestamp continuation on current source. Six consumers read the shared clock while canonical observations, permissions, request admission, saved policy and unsaved edits remain unchanged. Retain mounted controls and a production-panel browser matrix with correctly selected responsive projections.

Contract-Neutral: Complete consumers of the existing shared-clock presentation contract; no API, permissions, polling, status, retention, navigation or action contract delta.
Change-source: pulse-maintainer
2026-10-11 15:07:45 +01:00
pulse-triage[bot]
d1c93855ff Clarify legacy monitoring credentials and separate runner recovery help
Use the supplied Doctor wording to separate collector privilege, credential scope and runner posture. Preserve both supported command paths and working monitoring; make profile choice deliberate rather than a connection diagnostic.

Contract-Neutral: Documentation and rendered-guide checks only; no command authority, credential issuance, admission, dispatch or recovery contract changes.
Change-source: pulse-maintainer
2026-10-11 14:23:38 +01:00
pulse-triage[bot]
6274777a4e Integrate reviewed running-executable update acceptance
Accept exact Delivery commits with retained source-z6bm51cn installer, race, vet and real-embed proof. Active forward and restored service acceptance now require stable MainPID and matching process bytes; uncertainty retains the backup without a new restart or rollback grant. Native containing-source follow-through remains separate.

Change-source: pulse-maintainer
2026-10-11 14:23:30 +01:00
pulse-triage[bot]
94ada96ae3 Reconcile upstream customer documentation corrections
Incorporate the upstream frontier recorded at the start of this coordination batch; retain reviewed local history and independent proof bindings.

Change-source: pulse-maintainer
2026-10-11 14:23:21 +01:00
rcourtman
4ba8fffe58 docs: correct customer docs that drifted from the source (#2826)
Corrects customer-facing docs that had drifted from the shipped
behaviour, found by checking about 5,200 concrete claims in 45 docs
(plus every environment variable the code reads) against the source.
Each discrepancy was re-verified against the code before editing, and
the edited text was reviewed again.

What a user following the old text would have hit:

- **Navigation and labels that no longer exist:** Settings > Relay,
Platform connections, Access Control, SSO Providers, a Create
Organization button. Patrol modes are now named Ask first, Safe auto-fix
and Autopilot.
- **Wrong values and behaviour:** `LOG_MAX_AGE=0` does not disable log
cleanup; the Patrol evidence budget is 10 calls and 12 turns (not 15 and
17); `ALLOW_UNPROTECTED_EXPORT` covers private networks as well as
public ones; `PULSE_AUDIT_ASYNC` defaults on.
- **Agent install:** `install.sh` ignores `PULSE_ENABLE_KUBERNETES` and
`PULSE_ENABLE_PROXMOX`, rejects `--disable-auto-update`, and the token
fallback lives in the state directory (`%ProgramData%\Pulse` on
Windows).
- **API reference:** audit endpoints return 402 on Community, onboarding
QR/deep-link are `GET`, `type=container` is rejected with 400, and
several routes need admin plus a scope.
- `HTTP_REDIRECT_PORT` was not documented anywhere.

Each doc is mirrored under `frontend-modern/public/docs`, so every
change is applied to both copies (`scripts/check_docs_mirror.py`
passes).

Tests that pinned the old wording are updated in the same commit. Three
of them asserted claims the code contradicts (`MaxEvidenceCalls 15`,
"helper is GET and POST only", "JSON numbers are interpreted as
seconds").

Left alone on purpose, because the evidence did not settle them: the
entitlement-table rows in `PULSE_PRO.md`, the guest-agent HTTP 500
wording in `API.md` / `VM_DISK_MONITORING.md`, and
`METRICS_DATA_FLOW.md`.

Verification run locally: docs mirror check; vitest for the 32 test
files that read these docs (513 tests); the Python doc-pinning suites
(no new failures against a pristine `HEAD` baseline); `go test` for
repoctl, notifications, availabilityprobe and pulse-control-plane;
registry and contract audits; the canonical completion guard with the
`Contract-Neutral` trailer.
2026-10-11 14:19:23 +01:00
pulse-triage[bot]
25700f5993 Integrate reviewed stage-qualified Docker update help
Preserve exact specialist commit and retained documentation/build/browser proof. Distinguish refused planning from sent or unknown actions without retries or wider grants; no runtime recovery claim.

Contract-Neutral: Integration of existing help and documentation checks only; no action, authentication, command-admission or recovery contract changes.
Change-source: pulse-maintainer
2026-10-11 14:11:39 +01:00
pulse-triage[bot]
3732bfb92b Contain steering-test workers without weakening completion checks
The retained race attempt reached the completed agent loop but exceeded the five-second service deadline. Keep that adverse result and the deadline; cancel and observe the worker before temporary-session cleanup, and retain goroutine stacks if either completion or cancellation fails. This prevents failure-path work from silently outliving its fixture and makes the unresolved stall diagnosable.

Contract-Neutral: Test-only cancellation, bounded cleanup and failure diagnostics; production streaming, persistence, steering and completion deadlines are unchanged.
Change-source: pulse-maintainer
2026-10-11 14:04:14 +01:00
pulse-triage[bot]
4b488a9333 Verify both troubleshooting backup-safety entry points
PR2825 frontend job 114474814376 selected the new symptom-first link while expecting the retained detailed precaution label. Assert both rendered destinations without changing guidance, safety requirements or timeouts.

Contract-Neutral: Test-only reconciliation of existing documentation navigation; no runtime, wire or subsystem contract changes.
Change-source: pulse-maintainer
2026-10-11 14:03:56 +01:00
rcourtman
8a99b16d6c docs: correct customer docs that drifted from the source
Audited the customer-facing docs against the code: about 5,200 concrete
claims (env vars, endpoints, flags, defaults, ports, UI labels), plus every
environment variable the code reads. Each discrepancy was re-verified
against the source before editing, and every edit was reviewed again.

What users would have hit following the old text:
- UI paths and labels that no longer exist (Settings > Relay, Platform
  connections, Access Control, SSO Providers, Create Organization) and
  Patrol mode names (now Ask first, Safe auto-fix, Autopilot).
- Wrong values and behaviour: LOG_MAX_AGE=0 does not disable cleanup,
  Patrol evidence budget is 10 calls and 12 turns, ALLOW_UNPROTECTED_EXPORT
  covers private networks too, PULSE_AUDIT_ASYNC defaults on.
- Agent install: install.sh ignores PULSE_ENABLE_KUBERNETES and
  PULSE_ENABLE_PROXMOX, rejects --disable-auto-update, and the token
  fallback lives in the state directory.
- API: audit endpoints answer 402 on Community, onboarding QR is GET,
  type=container is rejected, several routes need admin plus a scope.
- HTTP_REDIRECT_PORT was not documented anywhere.

Docs are mirrored under frontend-modern/public/docs, so each change is
applied to both copies. The tests that pinned the old wording (including
three that asserted claims the code contradicts) are updated alongside.

Contract-Neutral: Customer docs corrected to match shipped behaviour; no runtime, API or contract change.
2026-10-11 13:59:56 +01:00
pulse-triage[bot]
3448dc2770 Align updater discovery and URL fixture handoffs
Keep simulated process acceptance explicit in portable discovery and URL controls. Require the running-executable callback to receive the same selected service; refused and prior-inactive URL cases must not invoke it. Actual owned process identity remains covered independently.

Change-source: pulse-maintainer
Contract-Neutral: Portable fixture adapters and assertions only; no change to production acceptance or deployment contract.
2026-10-11 13:43:36 +01:00
pulse-triage[bot]
b5b92e1151 Separate refused Docker plans from uncertain workload updates in help
Use the existing planning error and Agent Doctor authority wording before workload inspection. Keep an earlier sent action and missing receipt unresolved, and route command-capable hosts to connection/admission help without retries or wider grants. Check rendered links, stage ordering and the implementation evidence.

Contract-Neutral: Existing workload-update help and documentation checks only; no action, authentication, command-admission or recovery contract changes.
Change-source: pulse-maintainer
2026-10-11 13:35:18 +01:00
pulse-triage[bot]
670974c6e4 Make notable-model cache tests independent of the public network
The complete offline Assistant suite exposed a live models.dev fetch in a unit test. Use the existing URL-injection seam with a loopback JSON fixture, assert every decoded provider and fuzzy cache key, and verify TTL reuse and recent versus old model classification. Isolate both tests from the singleton without changing production code.

Contract-Neutral: Test-only loopback fixtures replace live network and catalogue dependence with stricter cache assertions; no runtime, API, model-catalogue or product behaviour change.
Change-source: pulse-maintainer
2026-10-11 13:32:45 +01:00
pulse-triage[bot]
e053355179 Keep updater proof controls within their declared scopes
Supply the connected manager double's fixed comparator and keep its simulated process readback explicit. Separate mandatory real-sink controls from service-state deadlines without removing cases or extending either 45-second bound.

Change-source: pulse-maintainer
Contract-Neutral: Test fixture correction only; the running-executable acceptance contract added by the parent is unchanged.
2026-10-11 13:09:02 +01:00
pulse-triage[bot]
3c35a0bc64 Reconcile upstream unused Assistant handler removal
Preserve all reviewed local maintenance commits while incorporating the current published main. Upstream removes unused Assistant handlers; local updater, guest admission and help changes remain additive.

Change-source: pulse-maintainer
2026-10-11 13:03:10 +01:00
rcourtman
06e7177f9d Remove the Assistant mutation handlers nothing calls (#2824)
Supersedes #2777, which could not merge: main had moved 213 commits and
two files conflicted. Both conflicts were on code this change deletes,
so both resolve by taking the deletion.

- `internal/ai/tools/tools_control.go`: the Protected guests cleanup
that landed inside `executeRunCommand` is moot once the function is
gone.
- `internal/ai/tools/action_audit_remediation_lock_test.go`: deleted
with the audit lanes. The test main added there exercised
`checkRemediationLockForDispatch`, which this change deletes.
`TestLockMovedBySuccessionStillRefusesTheIDThePreviousGenerationLists`
in `internal/actionlifecycle` asserts the same refusal on the live
dispatch path, so no live coverage is lost.

Checked on the merged tree on pulse-dev: build and vet over the touched
packages, and the test suites for `internal/ai/...`,
`internal/actionlifecycle`, `internal/mutationregistry`,
`internal/unifiedresources` and the API `TestContract_` set. No caller
of a deleted name came in with main.

---

## What

Deletes the Assistant tool handlers and helpers that nothing in
production calls, along with their tests and the contract prose that
described them (about 8.7k lines, no behaviour change).

`pulse_control` only plans typed resource actions into Pulse Actions:
`executeControlResource` hands them to `typedActionPlanner`, which calls
`ActionLifecycle().Plan`. The handlers behind the retired model-authored
command, file and container paths stayed in the tree:

- `internal/ai/tools/tools_control.go`: `executeRunCommand`,
`executeControlGuest`, `executeNativeAppContainerControl` and their
approval-record, preflight, formatter and Docker-host-resolution helpers
- `tools_docker.go`: `executeDockerControl`,
`executeUpdateDockerContainer`
- `tools_kubernetes.go`: scale, restart, delete-pod, exec and the shared
resource-action pipeline
- `tools_file.go`: `executeFileEdit` and the append/write/mutation
chain. `registerFileTools` had no caller either, so `pulse_file_edit` is
not registered; the mutation registry denies calls to it before any tool
lookup
- `action_audit.go`: `executeCommandWithAudit`,
`executeNativeActionWithAudit`, the remediation-lock dispatch gate,
plan-hash helpers and `publishActionCompleted`
- `PulseToolExecutor.isAutonomous`, its `SetAutonomousMode` and the flag
argument of `SetContext`: their only readers were the deleted handlers

## Evidence

- A whole-program reachability run over `./cmd/...` lists every deleted
function as unreachable. A static call graph shows the callers of each
helper that is not itself a handler all sit inside the deleted set.
- `go build ./internal/... ./cmd/...` and `go vet` are clean,
`staticcheck -checks U1000 -tests=false ./internal/ai/tools/` reports
nothing, and the `internal/ai/...`, `mutationregistry`,
`agentcapabilities`, `actionlifecycle`, `unifiedresources`,
`internal/api` and `cmd` suites pass on pulse-dev
(`TestServerInfoEndpointReportsDevelopment` fails there only because the
synced tree has no `.git`).
- `TestFileTools_Registry` still pins that `pulse_file_edit` is not
registered. Two `RecordApprovalDecision` tests and the read cases of the
monitoring-when-access-unavailable test only used a deleted helper for
setup, so they are kept with direct fixtures.

## Contracts

- `ai-runtime.md`, `api-contracts.md` and `unified-resources.md` no
longer describe the tool-layer action broker. They say plan freshness
(`ErrActionPlanDrift`) and the operator remediation lock
(`ErrResourceRemediationLocked`, `validateExecutionPolicy`) are enforced
by `internal/actionlifecycle`, and that `action.completed` events come
from API-owned execution.
- Two `contract_test.go` source pins that named deleted code are dropped
(the `publishActionCompleted` dispatch sites and the `pulse_file_edit`
declaration); `TestContract_ExecutorPostCompletionCallback` now pins
only the seam that still exists. Two `code_standards_test.go`
expectations about deleted code go as well.
- The RA35 evidence entry for the deleted run-command test is removed
from `status.json`.

## Left alone

- The saved `autonomous` control level, its entitlement checks and
`ai.Service.IsAutonomous` approval admission stay as legacy
compatibility, as do `Service.SetAutonomousMode` and the chat clamp.
- `SetOnActionCompleted` and its router wiring have no dispatcher in the
tool layer any more; the contract prose says so. Retiring them is a
follow-up.
- `protectedGuests` plumbing stays; the Protected guests setting is
being decided in its own change.
2026-10-11 12:59:04 +01:00
pulse-triage[bot]
7eb12d0bf5 Require running executable proof for unattended update success
An installed target version and active service can conceal an old managed executable. Compare the actual process bytes between complete bounded MainPID observations before accepting an update or restored active service. Retain the backup and current service on uncertainty without an automatic restart or rollback grant. Register real owned-process and conditional transaction controls; keep synthetic/native and customer acceptance distinct.

Change-source: pulse-maintainer
2026-10-11 12:53:23 +01:00
pulse-triage[bot]
561f55b516 Integrate reviewed safe issue retest and reopening guidance
Accept exact Product Intelligence commits de4751f25a and 1761f602f0. Existing disclosure-page maintenance matches standing community policy; final retained doc, renderer, type-check, build and desktop/phone browser proof is adequate. No runtime behaviour or release availability is claimed.

Change-source: pulse-maintainer
2026-10-11 12:52:46 +01:00
pulse-triage[bot]
f11a6f8bd9 Compose current Assistant handler retirement with accepted guest safety repairs
Change-source: pulse-maintainer
2026-10-11 12:49:46 +01:00
pulse-triage[bot]
90d7081206 Integrate reviewed mapped IPv4 guest admission repair
Preserve exact candidate f0d27be7ba and its normal/race proof. Numeric address equivalence shares only per-VM admission, not saved TLS trust. Native recovery remains separate.

Change-source: pulse-maintainer
2026-10-11 12:44:20 +01:00
pulse-triage[bot]
cbcd51498e Reconcile upstream published Windows recovery frontier
Incorporate the origin/main commit present when this integration batch began; preserve reviewed source identities.

Change-source: pulse-maintainer
2026-10-11 12:44:18 +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