19 Commits

Author SHA1 Message Date
pulse-triage[bot]
37109ab753 Align Upgrade readiness and Agent telemetry Help with runtime
Document runtime upgrade-readiness checks and host-agent passive telemetry
bounds in docs/UPGRADE_v6.md, docs/operations/AUTO_UPDATE.md,
docs/UNIFIED_AGENT.md, and docs/AGENT_SECURITY.md (with byte-for-byte
in-app mirrors in frontend-modern/public/docs/), and add source-bound
regression tests in scripts/tests/test_upgrade_v6_docs.py and
scripts/tests/test_agent_docs.py:
- Upgrade readiness checks in GET /api/updates/plan (agent-migration-security,
  agent-token-scopes 14-day expiry warning and missing/expired token block,
  and Docker container-data-persistence via /proc/self/mountinfo) plus
  in-app update banner warning and PULSE_SUPPRESS_EPHEMERAL_DATA_WARNING=true.
- Host-agent passive Linux routing/DNS reads (/proc/net/route,
  /etc/resolv.conf, /run/systemd/resolve/resolv.conf, up to 8 gateways and
  8 DNS servers), host-filtered internal TCP peer reads (/proc/net/tcp,
  /proc/net/tcp6, capped at 128 internal RFC 1918/ULA/100.64.0.0/10 pairs
  with public, loopback, link-local, multicast, and self-IP sockets discarded
  before transmission), and bounded Docker/Proxmox hardware-accelerator class
  labels (max 8 labels, 24 chars).

Contract-Neutral: Documentation and source-bound doc-verification tests only; no runtime, API, schema, or UI contract changes.
Change-source: pulse-maintainer
2026-11-28 11:51:00 +00:00
pulse-triage[bot]
200a33adfb Align Unified Agent CLI, metrics, and Agent Doctor Help with runtime
Document six pulse-agent runtime flags and environment variables missing
from the Unified Agent configuration table (--enroll, --cacert,
--server-fingerprint, --agent-id-file, --state-dir, and
--disable-cluster-peer-sensors), record the health server /status
endpoint, none/disabled listener keywords, report-acknowledgement update
nudges, and the complete agent Prometheus metric set (kubernetes_enabled
on pulse_agent_info plus pulse_agent_module_enabled,
pulse_agent_module_ready, pulse_agent_destination_configured, and
pulse_agent_destination_delivery_up).

Update legacy /settings/infrastructure?agentDoctor=1 references in
UNIFIED_AGENT.md, AUTO_UPDATE.md, and FAQ.md (and their shipped Help
mirrors) to the canonical /settings/infrastructure/agent-doctor route
while noting legacy link compatibility, and bind every live pulse-agent
CLI flag, health metric, and canonical Agent Doctor route to source in
scripts/tests/test_agent_docs.py.

Contract-Neutral: documentation and documentation regression test alignment with already-shipped pulse-agent runtime flags, metrics, and Agent Doctor routing; no runtime, API, or subsystem contract delta
Change-source: pulse-maintainer
2026-11-28 06:15:55 +00:00
pulse-triage[bot]
bcd1d13892 Align Webhooks, Unified Agent, and Auto-Update Help with runtime
Update docs/WEBHOOKS.md, docs/UNIFIED_AGENT.md, docs/AUTO_UPDATE.md, and
their mirrored in-app Help copies under frontend-modern/public/docs/ to
close three verified runtime-vs-Help gaps:

- Document the built-in Mattermost webhook service, {{.ResolvedAt}} and
  {{.ResolvedAtISO}} template fields, Pushover optional priority/sound/device
  custom fields, and built-in ntfy Title/Priority/Tags headers and
  Authorization auth in docs/WEBHOOKS.md.
- Document seven shipped pulse-agent CLI flags and environment variables
  (--command-authority, --enable-live-logs, --docker-compose-sources,
  --deploy-ssh-user, --log-file, --release-identity, and --validate-url)
  in docs/UNIFIED_AGENT.md.
- Document switching a licensed Community server to the Pulse Pro runtime
  from Settings -> System -> Plans & Billing (GET /api/updates/pro-runtime
  and POST /api/updates/pro-runtime/apply, in-place systemd/LXC switching,
  Docker digest-pinned image commands, and typed refusal reasons) in
  docs/AUTO_UPDATE.md.
- Bind these updates to live Go and frontend source in
  scripts/tests/test_webhook_verification_docs.py,
  scripts/tests/test_agent_docs.py, and
  scripts/tests/test_update_recovery_docs.py.

Contract-Neutral: Documentation, mirrored in-app Help, and documentation consistency tests only; no runtime, API, polling, alert, telemetry, or UI code contract changes.
Change-source: pulse-maintainer
2026-11-28 02:48:01 +00:00
courtmanr@gmail.com
4c15b5063b test(agent): reconcile native and release proof inventories
Recovery commands expand the parsed recipe inventory, and native builds now
report their own compiler OS and ARM variant. Keep those expectations explicit
and exclude verifier unit tests from production provider seals while retaining
the verifier itself. Run these controls in the standalone proof as well.

The runtime implementation remains unchanged. These corrections address the
documentation and native qualification failures on the reviewed source head.
2026-11-05 19:30:24 +00:00
pulse-triage[bot]
f1beea2e84 Exercise credential-file handoffs through the real installer parser
Replace documentation assertions tied to the previous one-line parser with an inert exact-source parser fixture. Copied agent and PBS recipes must preserve the supplied private path and profile without putting its contents in argv or output. Keep the downstream private-reader assertion and add controls that reject dropped or rewritten paths and a missing isolation boundary. This reconciles both returned smoke-shard failures without reverting the empty-path refusal.

Contract-Neutral: test-only handoff proof preserves the existing credential, trust, profile and lifecycle contracts
Change-source: pulse-maintainer
2026-11-04 01:42:15 +00:00
pulse-triage[bot]
c7cda13f46 Repair helper guidance link and recipe coverage
Pin the runtime guide to the immutable ancestor that contains the procedure, rather than drifting with main. Include both helper maintenance commands in the executable recipe inventory and exercise the fixed runtime help target. The returned candidate failed both repository checks; preserve those guards and the unchanged maintenance procedure.

Refs: #3754

Contract-Neutral: Keeps the existing collector-only update and installer-managed helper lifecycle; repairs help identity and documentation verification only.
Change-source: pulse-maintainer
2026-11-02 13:39:01 +00:00
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]
da269aeaf2 Include runner-only removal in the recipe inventory check
The full documentation proof counted all 18 current recipes, including the newly documented standalone action runner removal. Keep the exact inventory assertion and shell parsing rather than retaining the old 17-command expectation.

Contract-Neutral: Test inventory correction for the documented runner-only recipe; no runtime, lifecycle, API or authority behaviour changes.
Change-source: pulse-maintainer
2026-10-10 07:49:59 +01:00
pulse-triage[bot]
e5f27d25f6 Clarify destructive agent removal and runner-only revocation
Explain evidence loss, saved-state trust, platform differences and partial removal before administrators act. Keep whole-agent removal separate from the Linux action runner, preserve deliberate path protections, and exercise copied commands with bounded synthetic recorders.

Contract-Neutral: Documentation and synthetic source-bound recipe checks only; no runtime, lifecycle, authority, platform or API behaviour changes.
Change-source: pulse-maintainer
2026-10-10 07:12:44 +01:00
pulse-triage[bot]
2ffb4eb8ab Match saved-script cleanup checks to the preserving local invocation
The existing argv test now exercises the one documented non-purging cleanup instead of the two removed destructive examples. Retarget and ordinary agent uninstall checks are retained.

Contract-Neutral: Documentation test expectations only; no runtime or installer change.
Change-source: pulse-maintainer
2026-10-07 20:03:04 +01:00
pulse-triage[bot]
953e0c6dec Keep legacy sensor cleanup local and preserve recovery evidence
Treat the existing helper as disruptive Proxmox host maintenance: disclose its LXC stop/start and key-removal scope, omit purge and API-account deletion, and require pre-state, private backups and actual postconditions. Exercise copied success/failure arguments with a synthetic helper and bind safety prose to current source.

Contract-Neutral: Documentation and documentation tests only; the cleanup helper, privileges and runtime contracts are unchanged.
Change-source: pulse-maintainer
2026-10-07 20:01:07 +01:00
pulse-triage[bot]
9bdd2ab20f Make agent setup refuse unsafe paths and incomplete downloads
Bring the general Unix private-file bootstrap up to the existing PBS guide's safety floor. Preserve token and installer files, ignore curl configuration, require verified HTTPS and HTTP 200 before publishing the script, and exercise refusal and partial-download paths.

Contract-Neutral: Documentation and executable documentation tests only; no installer, API, runtime or capability contract changes.
Change-source: pulse-maintainer
2026-10-07 15:24:56 +01:00
pulse-triage[bot]
34a568ef65 Keep constrained NAS install guidance private and non-destructive
Match QNAP guidance to existing data-volume relocation, create private per-attempt staging and preserve diagnostic logs and identity. Exercise copied commands for preparation and installer failures without an appliance operation.

Contract-Neutral: Clarifies existing installer storage and private staging guidance; no runtime, permission or data-contract change.
Change-source: pulse-maintainer
2026-10-05 07:25:14 +01:00
pulse-triage[bot]
cadb669610 Integrate reviewed private-help checks without replacing stronger fixtures
Preserve the reviewed candidate commits as the second parent and retain canonical one-shot, redirect, partial-response and disclosure controls in the overlapping API/PBS smoke fixtures. Keep the candidate's canonical PBS guard, scoped private temperature-file assertions and unchanged-verdict audit diagnostics.

Contract-Neutral: Integration of test-only private-help adapters; no runtime, guides, dependencies or frontend source changed.
Change-source: pulse-maintainer
2026-10-05 06:39:53 +01:00
pulse-triage[bot]
4bcca1a100 Scope private helper checks and retain audit retry diagnostics
Bind the new 0600 assertion only to the reviewed temperature cleanup helper rather than impose it on the unchanged public Unified Agent installer recipe. Include the captured canned audit output when its existing one-call assertion fails, preserving verdicts, call counts and timing controls. The complete second proof retains its fail-closed two-call observation without a cause or successful-retry claim.

Contract-Neutral: Test adapter scope and failure diagnostics only; existing guide, audit verdict and timing contracts are unchanged.
Change-source: pulse-maintainer
2026-10-05 05:33:35 +01:00
pulse-triage[bot]
eb9cf740bf Preserve copied-recipe isolation across guide smoke tests
Keep the shared direct-curl recorder compatible with the other existing guides while binding API requests to its reviewed private helper. Update the temperature selector to the reviewed fail-closed temporary download and retain disable-first TLS and mode checks. The first broad proof caught both adapter faults before publication.

Contract-Neutral: Test-only adapters for existing reviewed guide contracts; no runtime, guide, dependency or frontend change.
Change-source: pulse-maintainer
2026-10-05 05:20:34 +01:00
pulse-triage[bot]
5082c60d27 Restore documentation fixtures for private API and PBS recipes
Execute the actual API helper and PBS private-file/download handoffs, keeping their response-privacy assertions separate from shared credential-transport fixtures. Verify one-shot requests, exact methods and JSON, retained private responses and failure exits, TLS and preparation. Match the temperature cleanup test to its current non-clobbering download, without changing any guide.

Contract-Neutral: Repair connected documentation fixtures only; no guide, mirror, runtime, API, authentication, dependency or permission contract changes.
Change-source: pulse-maintainer
2026-10-05 04:35:48 +01:00
pulse-triage[bot]
98e489729a Require fresh receipts for copied agent setup commands
A skipped profile could reuse an earlier installer receipt and falsely pass the guide's regression check. Clear each recipe's receipt, require its own invocation, and exercise successful no-op and nonzero controls without changing the existing ten-second bound. Apply the same isolation to retarget and cleanup recipes.

Change-source: pulse-maintainer
2026-10-02 03:00:24 +01:00
pulse-triage[bot]
d5c187613a Keep agent setup tokens out of commands and unverified downloads
Use existing Unix and Windows token-file installers, verified HTTPS downloads and inspection before execution across setup, retarget, profile and cleanup examples. Exercise private files, all profile arguments, rejected TLS and failed downloads with synthetic guest-local fixtures.

Contract-Neutral: Documentation and executable documentation tests only; installer behaviour, privileges and runtime contracts are unchanged.
Change-source: pulse-maintainer
2026-10-01 05:41:44 +01:00