Commit Graph

26 Commits

Author SHA1 Message Date
pulse-triage[bot]
ada419c564 Align Scheduler, Update API, and Security Help with runtime
Update Help guides (with byte-for-byte in-app mirrors in
frontend-modern/public/docs/) and add source-bound doc regression tests:
- Scheduler and Alerting Help (docs/ALERTING.md, docs/API.md,
  docs/api/SCHEDULER_HEALTH.md, docs/monitoring/ADAPTIVE_POLLING.md,
  docs/monitoring/PROMETHEUS_METRICS.md,
  docs/operations/ADAPTIVE_POLLING_ROLLOUT.md,
  scripts/tests/test_watchdog_help_docs.py): document the shared worker
  execution-boundary fence landed in #5379 so operators know both local
  per-monitor workers and the POLL_TASK_WORKERS process dispatcher skip
  provider setup for claims retired after dequeue or slot admission while
  preserving any explicit replacement's own due time.
- Server update, teardown, and agent-capabilities API Help (docs/API.md,
  docs/AUTO_UPDATE.md, scripts/tests/test_api_reference_routes.py):
  document POST /api/updates/rollback, GET /api/updates/release-notes and
  its asset route, POST /api/auto-unregister, GET /api/agent/capabilities,
  and the exact scopes, body limits, cache headers, and status codes of
  the update API routes.
- Security registration Help CI repair (SECURITY.md,
  frontend-modern/public/docs/SECURITY.md,
  scripts/tests/test_security_docs.py): move the command-enabled install
  token agent:exec ceiling note out of the two-item Auto-Registration
  Security bullet list into a standalone paragraph so
  registrationSecurityGuide.test.ts passes again on main after #5383, and
  guard the two-bullet list shape in Python doc tests.

Contract-Neutral: Documentation, shipped in-app Help mirrors, and doc verification tests aligned with already-landed runtime behavior; no runtime, API, schema, or UI contract changes.
Change-source: pulse-maintainer
2026-11-28 11:21:00 +00:00
pulse-triage[bot]
7d1131aad5 Align Scheduler and Alerting Help with retired poll claim release
Document the retired waiting-claim release behaviour landed in #5368
across unclaimed operator Help guides and bind it to internal/monitoring
source:

- docs/monitoring/PROMETHEUS_METRICS.md, docs/monitoring/ADAPTIVE_POLLING.md,
  docs/api/SCHEDULER_HEALTH.md, docs/operations/ADAPTIVE_POLLING_ROLLOUT.md,
  docs/ALERTING.md (with mirrored frontend-modern/public/docs/ALERTING.md),
  and docs/API.md (with mirrored frontend-modern/public/docs/API.md):
  document that under POLL_TASK_WORKERS a confirmed target removal releases
  a claim still waiting in stage="waiting_for_slot" without starting
  provider setup or changing the concurrency cap so another due target can
  run, preserving any explicit replacement's own due time while leaving
  already-admitted stage="running" polls to keep their claim until they
  return.
- scripts/tests/test_watchdog_help_docs.py,
  scripts/tests/test_scheduler_polling_docs.py, and
  scripts/tests/test_scheduler_health_api_help_docs.py: bind the updated
  Help prose to acquireClaim, watchClaimRetirement, canStartClaim,
  claimRetired, and retirement channel close in poll_task_workers.go and
  task_queue.go while preserving the docs-only CI allowlist.

Contract-Neutral: Documentation, mirrored in-app Help, and doc-consistency tests only with no runtime, API, polling, alert, or subsystem contract change.
Change-source: pulse-maintainer
2026-11-28 08:24:53 +00:00
pulse-triage[bot]
8d5dc181e2 Align Machines staleness and Scheduler Health Help with runtime
Document recently landed monitoring-progress and stale-telemetry behaviour
across unclaimed operator Help guides and repair the main-branch doc test
drift introduced after #5358 merged over #5360:
- docs/UNIFIED_RESOURCES.md (and mirrored frontend-modern/public/docs/UNIFIED_RESOURCES.md):
  document the backend health envelope on Resource, Machines (/standalone/machines)
  stale Pulse Agent telemetry cues, banner, expanded notice, search, and fallbacks
  from #5361 (keeping preview-only standaloneVms out of stable Help), supported
  GET /api/resources sort fields, and GET /api/resources/{id} full detail payloads.
- docs/VM_DISK_MONITORING.md (and mirrored frontend-modern/public/docs/VM_DISK_MONITORING.md):
  explain Machines stale-telemetry indicators under "Use existing Machines readings
  without changing the guest" so operators inspecting an agent host during paused
  QEMU guest-agent reads can spot stale agent telemetry immediately.
- docs/api/SCHEDULER_HEALTH.md: document single-catalog Availability health roster
  reporting including remote-only checks (#5357) and retired poll-planner
  cancellation between provider roster/cadence reads (#5358).
- scripts/tests/test_navigation_help_docs.py and scripts/tests/test_watchdog_help_docs.py:
  update the broken monitor_polling_schedule.go token assertion from #5358
  (describeInstancesForScheduler(ctx)) and bind the updated Help prose to live
  frontend and Go sources while preserving the docs-only CI allowlist.

Contract-Neutral: Documentation and doc-regression test alignment only; no API, schema, route, or runtime contract change.
Change-source: pulse-maintainer
2026-11-28 07:05:26 +00:00
pulse-triage[bot]
143e4f67c5 Align Alerting and Scheduler Help with poll planning and retirement
Document recent monitoring-progress runtime fixes across unclaimed operator
Help guides and bind them to internal/monitoring source:
- docs/ALERTING.md (and mirrored frontend-modern/public/docs/ALERTING.md): add
  pulse_scheduler_poll_planning_age_seconds under "Warn when expected polls
  stop succeeding" (#5348), note that stage="running" stays visible during
  panic recovery logging after releasing a queue claim (#5344), and document
  retired-monitor poll-plan abandonment (#5351).
- docs/monitoring/PROMETHEUS_METRICS.md and docs/api/SCHEDULER_HEALTH.md:
  clarify panic-recovery logging visibility after releasing a queue claim
  (#5344) and retired-monitor poll-plan abandonment (#5351).
- scripts/tests/test_watchdog_help_docs.py: add source-bound regression checks
  against monitor_polling_schedule.go, poll_work_progress.go, and
  poll_task_workers.go while preserving the docs-only CI allowlist.

Contract-Neutral: Documentation and doc-regression test alignment only; no API, schema, or runtime contract change.
Change-source: pulse-maintainer
2026-11-28 05:45:07 +00:00
pulse-triage[bot]
0dc1383a10 Align Storage Pools staleness and poll-planning Help with runtime
Update public and mirrored in-app Help across FAQ, ZFS monitoring, TrueNAS,
Prometheus metrics, and Scheduler Health, with source-bound regression tests
in scripts/tests/test_public_docs_claims.py:

- Document Storage Pools staleness (#5346) in docs/FAQ.md,
  docs/ZFS_MONITORING.md, docs/TRUENAS.md, and their mirrored copies under
  frontend-modern/public/docs/: clear stale pools switch to amber Stale
  (leaving Status: Healthy for Status: Needs attention and Status: Warning,
  sorting ahead of fresh healthy pools, and grouping under stale), severe
  states and alert headlines stay visible with an inline Stale data cue and
  retained usage bars, search matches stale labels and source errors, and
  expanded drawers surface the stale State reason under Worth checking while
  deferring inline Capacity History as last known.
- Document unfinished poll-planning visibility (#5348) and panic-recovery
  logging under the running claimed-poll stage (#5344) in
  docs/monitoring/PROMETHEUS_METRICS.md and docs/api/SCHEDULER_HEALTH.md so
  operators know to inspect pulse_scheduler_poll_planning_age_seconds when
  queue and claimed-poll overdue gauges stay zero while poll counters stall.
- Bind both Help updates directly to the frontend Storage Pool presentation
  and backend poll-work progress sources in
  scripts/tests/test_public_docs_claims.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 04:19:46 +00:00
pulse-triage[bot]
e5ccd319f0 Merge reviewed scheduler freshness repair on corrected main
Change-source: pulse-maintainer
2026-11-27 02:50:09 +00:00
pulse-triage[bot]
587d99eac4 Keep adaptive poll freshness local to its monitor
Compute scheduler priority and health scores from the owning monitor's recorded success, not from the process-wide Prometheus series. Score each health row from the same timestamp it reports so a same-named connection cannot mask a stale poll.

Change-source: pulse-maintainer
2026-11-27 01:18:16 +00:00
pulse-triage[bot]
4f3afcaafd Align API, Auto-Update, and Pro Help with health and upgrade checks
Document landed runtime and UI behavior across unclaimed in-app Help guides:
- API.md and docs/api/SCHEDULER_HEALTH.md: document Proxmox VE startup and
  reconnect failure recording, first-poll health authority in /api/connections
  and /api/monitoring/scheduler/health (#5210), TrueNAS and VMware shutdown
  cancellation handling and in-flight provider fencing (#5219), GET
  /api/updates/plan readiness check IDs, and the top-level Availability page
  (/availability) with DNS probe coverage.
- AUTO_UPDATE.md: document Upgrade checks in Settings -> System -> Updates
  and the Container data persistence warning for ephemeral Docker /data
  storage (including backup export, volume mount guidance, and
  PULSE_SUPPRESS_EPHEMERAL_DATA_WARNING=true).
- PULSE_PRO.md: align the licence recovery navigation path to
  Settings -> System -> Plans & Billing.

Sync the mirrored frontend-modern/public/docs copies and add source-bound
regression tests in test_scheduler_health_api_help_docs.py,
test_update_recovery_docs.py, and test_license_recovery_docs.py.

Contract-Neutral: Documentation and doc-regression test alignment with already landed runtime and UI behavior; no API, schema, or runtime contract delta.
Change-source: pulse-maintainer
2026-11-27 00:15:01 +00:00
pulse-triage[bot]
f75afe3953 Document Scheduler Health fields and boundaries in in-app API Help
Expand the Scheduler Health section in docs/API.md and its shipped
frontend-modern/public/docs/API.md mirror so operators clicking through
from GET /api/state/summary in in-app Help can read updatedAt, enabled,
queue counts and oldestOverdueSeconds, pollStatus partial-read errors,
breaker retryAt, dead-letter recovery clearing, deleted availability
check retirement and the scope boundary separating scheduled polling
from agent reports, WebSocket delivery and alert evaluation. Note
deleted availability-check retirement in docs/api/SCHEDULER_HEALTH.md
and verify fields, routes and shipped Help links against live Go structs.

Refs: #5089
Contract-Neutral: Documents existing GET /api/monitoring/scheduler/health fields, retirement behaviour and read-only diagnostic boundaries with no runtime, API, collection or release changes.
Change-source: pulse-maintainer
2026-11-26 18:52:31 +00:00
pulse-triage[bot]
82768e9a0d Clear poll dead letters when collection resumes
Retire the connection's terminal record and its gauge when a later scheduled result succeeds. Keep a partial-read error visible and leave other failures, breaker admission and polling cadence alone. A recorded dead-letter retry time is not an active-queue deadline.

Refs #5089.

Change-source: pulse-maintainer
2026-11-25 23:53:04 +00:00
pulse-triage[bot]
1af732ddce Link to the claimed-poll metric heading
Match the existing fragment for the emoji-prefixed Scheduler Health heading in the Prometheus guide.

Change-source: pulse-maintainer
2026-11-25 21:42:28 +00:00
pulse-triage[bot]
9b1a0d1aa2 Show overdue queued polls in Scheduler Health
A poll due within seconds and a poll left waiting past its scheduled time can have identical queue counts. Report the oldest queued age in the existing tenant-scoped snapshot and its saved-snapshot queries. Keep future retries, claimed polls, and dead letters out of the age and preserve measured zero separately from older responses.

Change-source: pulse-maintainer
2026-11-25 21:36:38 +00:00
pulse-triage[bot]
763d259b62 Show saved retry context beside poll progress
The comparison of two scheduler snapshots drops the saved breaker and dead-letter timing. Show that context beside each connection without counting timing changes or an expired deadline as a finished poll.

Contract-Neutral: Only the scheduler guide and its existing recipe test change. Scheduler Health, polling, retry and alert behaviour are unchanged.
Change-source: pulse-maintainer
2026-11-25 19:09:25 +00:00
pulse-triage[bot]
96b475d849 Explain how live readings differ from Trends and drawer History
The old data-flow guide described client-side sampling and a fixed memory/store cutoff. Show operators which view to check when a chart and a fresh reading disagree, and link that distinction from the scheduler poll comparison.

Contract-Neutral: Repository-only documentation of existing chart sources and poll diagnostics; no runtime, shipped Help, API contract, or release-control change.
Change-source: pulse-maintainer
2026-11-25 18:02:40 +00:00
pulse-triage[bot]
eb8d17c16a Compare saved scheduler polls by connection
Join the two saved snapshots by connection key so an operator can spot which outcomes changed without matching two lists. Preserve partial reads and one-sided rows, and refuse ambiguous input instead of presenting an empty or healthy result.

Contract-Neutral: Changes a repository-only comparison of existing scheduler fields. No API, runtime, alert or rendered Help contract changes.
Change-source: pulse-maintainer
2026-11-25 16:34:27 +00:00
pulse-triage[bot]
cc8a5361e2 Show partial reads in scheduler diagnostic results
The saved-snapshot query only checks consecutive full failures. A reached connection can record an outstanding partial read with zero consecutive failures. Preserve the whole-failure rows, show both poll and error times with the error category, and leave raw errors and addresses in the private snapshot.

Contract-Neutral: Updates a repository-only read of existing scheduler fields. No runtime, API, alert or rendered Help contract changes.
Change-source: pulse-maintainer
2026-11-25 15:44:43 +00:00
pulse-triage[bot]
3c7fe7e0bc Explain failed scheduler snapshots without treating them as empty
Give operators a bounded result when the read is refused, unavailable, or incomplete. Keep the response and credential private and accept only one valid snapshot from HTTP 200. Explain what the due-soon count measures.

Contract-Neutral: Documents and exercises the existing read-only scheduler response. No runtime, access, API or in-app Help changes.
Change-source: pulse-maintainer
2026-11-25 14:57:27 +00:00
pulse-triage[bot]
1456b79dea Explain fixed-interval polling in scheduler diagnostics
Treat enabled as the adaptive timing flag, not a test of whether polling
is running. Add a local comparison of recorded results that distinguishes
completed polls, continuing errors and no new result without sharing the
raw snapshot or restarting Pulse.

Refs: #5089
Contract-Neutral: Documents existing poll and scheduler-health behavior without changing scheduling, response fields, access, or alert evaluation.
Change-source: pulse-maintainer
2026-11-25 12:42:44 +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]
ec5c96a290 Keep scheduler diagnostics private and failure-aware
Use one bounded, authenticated snapshot and local queries instead of secret-bearing argv and repeated requests. Preserve configuration precedence and rollback state, and judge successful polls rather than a universal queue-depth threshold. Exercise copied commands with HTTP, transport, schema and credential controls.

Contract-Neutral: Documentation and copied-command tests only; scheduler runtime and API contracts are unchanged.
Change-source: pulse-maintainer
2026-10-03 13:13:21 +01:00
rcourtman
ee63d438cc docs: standardize markdown syntax and remove deprecated sensor-proxy docs 2026-01-20 09:43:49 +00:00
rcourtman
3f0808e9f9 docs: comprehensive core and Pro documentation overhaul
- Major updates to README.md and docs/README.md for Pulse v5
- Added technical deep-dives for Pulse Pro (docs/PULSE_PRO.md) and AI Patrol (docs/AI.md)
- Updated Prometheus metrics documentation and Helm schema for metrics separation
- Refreshed security, installation, and deployment documentation for unified agent models
- Cleaned up legacy summary files
2026-01-07 17:38:27 +00:00
courtmanr@gmail.com
fd39196166 refactor: finalize documentation overhaul
- Refactor specialized docs for conciseness and clarity
- Rename files to UPPER_CASE.md convention
- Verify accuracy against codebase
- Fix broken links
2025-11-25 00:45:20 +00:00
rcourtman
6eb1a10d9b Refactor: Code cleanup and localStorage consolidation
This commit includes comprehensive codebase cleanup and refactoring:

## Code Cleanup
- Remove dead TypeScript code (types/monitoring.ts - 194 lines duplicate)
- Remove unused Go functions (GetClusterNodes, MigratePassword, GetClusterHealthInfo)
- Clean up commented-out code blocks across multiple files
- Remove unused TypeScript exports (helpTextClass, private tag color helpers)
- Delete obsolete test files and components

## localStorage Consolidation
- Centralize all storage keys into STORAGE_KEYS constant
- Update 5 files to use centralized keys:
  * utils/apiClient.ts (AUTH, LEGACY_TOKEN)
  * components/Dashboard/Dashboard.tsx (GUEST_METADATA)
  * components/Docker/DockerHosts.tsx (DOCKER_METADATA)
  * App.tsx (PLATFORMS_SEEN)
  * stores/updates.ts (UPDATES)
- Benefits: Single source of truth, prevents typos, better maintainability

## Previous Work Committed
- Docker monitoring improvements and disk metrics
- Security enhancements and setup fixes
- API refactoring and cleanup
- Documentation updates
- Build system improvements

## Testing
- All frontend tests pass (29 tests)
- All Go tests pass (15 packages)
- Production build successful
- Zero breaking changes

Total: 186 files changed, 5825 insertions(+), 11602 deletions(-)
2025-11-04 21:50:46 +00:00
rcourtman
fd0a4f2b0a docs: update documentation for v4.24.0 features
Updates documentation to reflect features implemented in recent commits:

**Security & API Enhancements:**
- Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After)
- Audit logging for rollback actions and scheduler health
- Runtime logging configuration tracking

**Scheduler Health API:**
- Document new v4.24.0 endpoint features
- Per-instance circuit breaker status
- Dead-letter queue tracking
- Staleness metrics
- Enhanced response format with backward compatibility

**Version & Health Endpoints:**
- Updated /api/version response fields
- Optional health endpoint fields
- Deployment type and update availability

**Configuration & Installation:**
- HTTP config fetch via PULSE_INIT_CONFIG_URL
- Updated environment variable documentation
- Enhanced FAQ entries

**Monitoring & Operations:**
- Adaptive polling architecture documentation
- Rollback procedure references
- Production deployment guidance

All documentation changes align with implemented features from commits:
- 656ae0d25 (PMG test fix)
- dec85a4ef (PBS/PMG stubs + HTTP config)
- Earlier commits: scheduler health API, rollback, rate limiting
2025-10-20 16:08:10 +00:00
rcourtman
469d11fc7e docs: add comprehensive scheduler health API documentation
Add detailed API reference and update rollout playbook:

**New: docs/api/SCHEDULER_HEALTH.md**
- Complete endpoint reference for /api/monitoring/scheduler/health
- Request/response structure with field descriptions
- Enhanced "instances" array documentation
- Example responses showing all states (healthy, transient, DLQ)
- Useful jq queries for troubleshooting:
  - Find instances with errors
  - List DLQ entries
  - Show open circuit breakers
  - Sort by failure streaks
- Migration guide (legacy → new fields)
- Troubleshooting examples with real scenarios

**Updated: docs/operations/ADAPTIVE_POLLING_ROLLOUT.md**
- Enhanced "Accessing Scheduler Health API" section (§6)
- Added examples using new instances[] array
- Updated queries to use pollStatus, breaker, deadLetter fields
- Practical jq commands for operators

**Key Documentation Features:**
- Complete JSON schema with examples
- All new fields documented with types and descriptions
- Real-world troubleshooting scenarios
- Copy-paste ready jq queries
- Migration path for existing integrations
- Backward compatibility notes

Operators can now:
- Find error messages without log digging
- Understand circuit breaker states
- Track DLQ entries with full context
- Diagnose issues using single API call

Part of Phase 2 follow-up - enhanced observability
2025-10-20 15:13:38 +00:00