Commit Graph

18 Commits

Author SHA1 Message Date
pulse-triage[bot]
d160c6d886 Align Patrol, Operational Trust, and Unified Resources Help docs
Fix runtime drift across four shipped Help guides and their mirrored copies under
frontend-modern/public/docs/:

- docs/AI_AUTONOMY.md: document that local subscription agent CLIs
  (codex-subscription, claude-subscription) run 1 investigation at a time
  rather than 3 in parallel (GetPatrolInvestigationConcurrency() in
  internal/config/ai.go), document the 64-finding critical-first in-memory
  deferred queue (maxDeferredInvestigations), and document the human-session
  Autopilot acknowledgement API endpoints
  (POST /api/ai/patrol/autonomy/acknowledgements and
  DELETE /api/ai/patrol/autonomy/acknowledgements/{id}).
- docs/PATROL_ARCHITECTURE.md: document investigation concurrency limits and
  the in-memory critical-first deferred queue
  (internal/ai/patrol_investigation_queue.go).
- docs/OPERATIONAL_TRUST.md: list all ten registered pulse_operational_trust_*
  Prometheus metrics and their bounded label vocabularies from
  internal/operationaltrust/metrics.go, including partial_permission on
  evidence observations, and reference full metric names in alert examples.
- docs/UNIFIED_RESOURCES.md: replace the contradictory "upgrading from
  platform-specific navigation" description for MIGRATION_UNIFIED_NAV.md with
  its retired historical context matching docs/README.md.

Extend source-bound regression tests in
scripts/tests/test_authentication_diagnostic_docs.py,
scripts/tests/test_production_rollout_docs.py, and
scripts/tests/test_navigation_help_docs.py.

Contract-Neutral: Shipped Help documentation alignment and source-bound docs unit tests only; no runtime UI, backend API, schema, auth, or subsystem contract delta.
Change-source: pulse-maintainer
2026-11-28 22:35:37 +00:00
pulse-triage[bot]
dc5386db43 Align Webhooks and Patrol investigation Help with runtime
Document live webhook delivery and Patrol investigation bounds across
unclaimed Help guides and add source-bound regression tests:

- docs/WEBHOOKS.md (+ mirror): document X-RateLimit-Reset-After on HTTP
  429 within the 1-second to 15-minute cap, exact HTTP status-to-failure
  class mappings (401/403/407 authentication, 402 configuration, 408/421
  connectivity, 423/425/5xx server_error, 429 rate_limited, other 4xx
  rejected), immediate non-retryable TLS handling across webhooks,
  email/SMTP, and Apprise with no Skip TLS Verify toggle on webhook/email
  destinations, and the 1 MiB response-body drain cap
  (WebhookMaxResponseSize).
- docs/AI.md (+ mirror): align Patrol Investigation Configuration with
  subscription-CLI defaults (25 min timeout, concurrency 1), the
  60-1,800s timeout clamp, and the 20-minute fix-retry cooldown; add the
  four remaining live InvestigationOutcome values (fix_rejected,
  fix_verification_unknown, unclassified, interrupted).
- docs/PATROL_ARCHITECTURE.md (+ mirror): document investigation turn
  stream-idle timeouts (60s streaming, 4m buffered Codex/Claude CLIs,
  preserved on ensureFinalTextResponse), remaining-deadline summary
  budget, conclusion reserve, 4,096-token output-limit recovery pass,
  and recoverStuckInvestigations (5-minute grace window, interrupted vs
  timed_out session/finding reconciliation).
- scripts/tests/test_notification_troubleshooting_docs.py and
  scripts/tests/test_authentication_diagnostic_docs.py: pin all added
  bounds and enumerations directly against live Go source.

Contract-Neutral: Documentation and doc-verification test alignment with existing runtime behaviour; no code, API, or subsystem contract changes
Change-source: pulse-maintainer
2026-11-28 12:18:22 +00:00
pulse-triage[bot]
4c0e22a3fc Align Proxy Auth, Reverse Proxy, and Production Security Help
Document landed origin validation on proxy-authenticated, Basic, and
proxy-attached API-token browser writes, direct loopback trust rules,
header-only session CSRF enforcement, atomic login lockout, in-flight
request-body authority revalidation, hosted loopback restriction, and
Proxmox VE 9+ omission of VM.GuestAgent.FileRead across canonical docs,
shipped Help mirrors, and source-bound tests.

Contract-Neutral: Documentation and documentation tests only; no runtime behavior, API schema, or subsystem contract changes.
Change-source: pulse-maintainer
2026-11-27 19:42:38 +00:00
pulse-triage[bot]
349a3afbeb Correct AI.md model settings labels and chat_model fallback scope
Use the live Shared Default Model label on Provider & Models, place the Patrol model override under Settings -> Pulse Intelligence -> Patrol -> Model readiness (AISettings.tsx), and note that a previously saved chat_model remains a compatibility fallback for server-side narration/analysis as well as legacy Pulse Mobile chat.

Contract-Neutral: Documentation and docs-regression test alignment only; no runtime, API, schema, or subsystem contract behavior changes.
Change-source: pulse-maintainer
2026-11-27 07:47:53 +00:00
pulse-triage[bot]
d7f4adb610 Align Help index, AI overview, and Storage proposal docs with runtime
Update docs/README.md, docs/AI.md, and docs/STORAGE_ARCHITECTURE.md with
their mirrored frontend-modern/public/docs/ copies and regression tests so
shipped Help matches live Patrol, Assistant, Relay retirement, and storage
documentation boundaries.

Contract-Neutral: Documentation and docs-regression test alignment only; no runtime, API, schema, or subsystem contract behavior changes.
Change-source: pulse-maintainer
2026-11-27 06:54:22 +00:00
pulse-triage[bot]
542c6be942 Align Architecture and Patrol Architecture Help with runtime
Update ARCHITECTURE.md and docs/PATROL_ARCHITECTURE.md (plus their
shipped frontend-modern/public/docs/ mirrors) to match current main
runtime behaviour and extend doc regression tests:

- ARCHITECTURE.md: replace non-existent router_routes_org_license.go and
  router_routes_hosted.go with router_routes_licensing.go,
  router_routes_cloud.go, and router_routes_debug.go; correct the
  default PVE polling interval from 2 s to 10 s (60 s for PBS and PMG);
  add /api/agents/agent/report (with /api/agents/host/report as legacy
  alias) and /api/recovery/postures; add the top-level /availability/*
  route and g c keyboard shortcut; replace the deleted
  stores/metricsCollector.ts entry with live stores; note Pulse Mobile
  and Relay retirement on 31 March 2027; and list all nine canonical
  pkg/auth RBAC resources.
- docs/PATROL_ARCHITECTURE.md: replace the removed post-loop evaluation
  pass, assessment sweep, and deleted computePatrolMaxTurns /
  computeTriageMaxTurns references with the live runAIAnalysisState and
  patrol_run.go pipeline, fixed patrolDetectionMaxTurns limits (4 quick,
  40 standard), explicit omitted-assessment reporting via
  patrolMissingAssessmentIDs, DetectSignals use in verifyBySignals and
  hasDeterministicVerifierForKey, and current investigation cooldowns.

Contract-Neutral: aligns Architecture and Patrol Architecture documentation and doc tests with already-landed runtime behaviour without changing runtime, API, or UI contracts.
Change-source: pulse-maintainer
2026-11-27 05:31:00 +00:00
pulse-triage[bot]
3870989dd2 Align Security, Security Review, and Patrol Safety Help with runtime
Update SECURITY.md, docs/SECURITY_REVIEW.md, and docs/AI_AUTONOMY.md
(plus their shipped frontend-modern/public/docs/ mirrors) to match
current main runtime behaviour and extend doc regression tests:

- SECURITY.md: replace the removed 1-day/1-week/Forever warning
  dismissal copy with SecurityOverviewPanel's admin-only posture and
  hardening links; add apprise.enc, deadman.enc, availability_targets.enc,
  and relay.enc to the AES-256-GCM store table; update X-XSS-Protection
  to 0; clarify UniversalRateLimitMiddlewareWithConfig skips; replace
  stale Settings -> API Tokens paths with Settings -> Security -> API
  Access; document all 20 canonical pkg/auth scopes; document
  comma-separated ALLOWED_ORIGINS matching; and align Agent Command
  Security with monitoring-only defaults, agent:exec, and approval checks.
- docs/SECURITY_REVIEW.md: add internal/api/resourceapi/load_test.go and
  ./internal/api/resourceapi to the reproducible 500-node load baseline
  so TestLoad_500Node_ConcurrentResources is not silently skipped.
- docs/AI_AUTONOMY.md: document the explicit human-session
  acknowledgement gate for Autopilot, the 1500 s subscription-CLI
  investigation timeout default, and independent ActionResultV2
  verification matching ASSISTANT_SAFETY.md.

Contract-Neutral: aligns existing Security, Security Review, and AI Autonomy documentation and doc tests with already-landed runtime behaviour without changing runtime, API, or UI contracts.
Change-source: pulse-maintainer
2026-11-27 03:36:12 +00:00
pulse-triage[bot]
dd0bb7ab2e Confirm local sign-out before proxy navigation
End the browser session and clear saved state before the configured provider redirect; keep failed or uncertain withdrawal visible and retry deliberate. Preserve normal credential and CSRF transport, independent tokens and administrator recovery.

Contract-Neutral: Repair the existing sign-out client sequence and feedback; no API, grant, provider protocol, route, storage/recovery, AI or polling contract delta.
Change-source: pulse-maintainer
2026-11-01 12:29:33 +00:00
pulse-triage[bot]
7742ac7c09 Distinguish proxy sign-out redirects from withdrawn access
Explain the existing redirect and local-session paths without promising proxy or IdP revocation. Keep secrets out of logout URLs and preserve role gating and administrator recovery during diagnosis.

Contract-Neutral: Documentation and safety assertions describe existing logout behaviour; no runtime, permission or API contract changes.
Change-source: pulse-maintainer
2026-11-01 10:06:50 +00:00
pulse-triage[bot]
21068a2e3b Avoid idle HTTP fixture teardown waits
Use a 50 ms server poll in the six owned documentation HTTP fixtures, instead of Python’s default 500 ms. Preserve every request, transport and cleanup deadline, response, assertion and adverse control. Check real idle and exceptional teardown for all seven listeners.

Contract-Neutral: Test fixture scheduling and lifecycle assertions only; no product, frontend, documentation, access or deployment contract change.
Change-source: pulse-maintainer
2026-10-30 17:48:05 +00:00
pulse-triage[bot]
42b49532e3 Keep direct proxy-auth probes off environment proxies
The copied loopback recipe inherits http_proxy and ALL_PROXY even with curl --disable. Real-curl parent controls sent the synthetic administrator-capable header to the proxy and could report its denial as a Pulse role result. Explicitly bypass proxies for the selected backend and keep the protocol boundary clear.

Exercise both response directions and three proxy environment selectors, preserving privacy, deadlines, cleanup and the existing role/IdP trust boundary. Add a repeatable production Docs/browser check for the exact copied guide.

Contract-Neutral: Documentation and synthetic recipe/browser checks only; proxy authentication semantics and runtime contracts are unchanged.
Change-source: pulse-maintainer
2026-10-13 07:13:38 +01:00
pulse-triage[bot]
c3210f77ee Align AI uncertainty wording check with the revised guide
The first exact-source documentation shard stopped on the old lower-case phrase after the guide moved it to the start of a sentence. Keep the same uncertainty requirement and all privacy checks, then complete the failed and unreached validation.

Contract-Neutral: Case-only expected documentation wording in a regression test; no runtime or guide change.
Change-source: pulse-maintainer
2026-10-09 20:07:13 +01:00
pulse-triage[bot]
abd720420b Use private response fixtures for AI recipe transport checks
The strengthened copied-command test also checks private output files, so use the shared sensitive-response fixture for its success body before qualification.

Contract-Neutral: Test fixture selection only; no runtime or access-control change.
Change-source: pulse-maintainer
2026-10-09 19:55:12 +01:00
pulse-triage[bot]
8359ac4e39 Keep AI control recipes private and bounded
Reuse the existing API helper for saved Patrol settings and deliberate Assistant control changes. Preserve methods, payloads and access scopes while keeping private response bodies out of terminal recordings and making lost-write readback explicit.

Contract-Neutral: Documentation and recipe regression tests only; existing AI settings methods, payloads and access controls are unchanged.
Change-source: pulse-maintainer
2026-10-09 19:54:33 +01:00
pulse-triage[bot]
75de65b338 Repair smoke qualification of stable metadata and proxy trust guidance
The complete current-source smoke suite exposed two stale fixtures: release objects omitted the required draft flag, and the proxy safety check assumed an emoji presentation selector absent from the shipped heading. Supply complete positive metadata while retaining draft/chart/preview and missing-maturity refusals; locate exactly one named Markdown section and discriminate missing or duplicate boundaries. Preserve all runtime, authentication, update and workflow gates.

Contract-Neutral: Test fixtures and section extraction only; product runtime, subsystem contracts, authentication boundaries and release-metadata admission are unchanged.
Change-source: pulse-maintainer
2026-10-09 14:25:55 +01:00
pulse-triage[bot]
7b03e5a10f Make proxy authentication setup role-aware and its probe bounded
Replace incomplete provider snippets with the existing authenticator and header-replacement requirements. Surface the all-users-admin default before enablement and stop copied diagnostics on bounded transport failure, preserving credentials and actual access checks.

Contract-Neutral: Documentation and synthetic recipe tests only; proxy authentication semantics and runtime contracts are unchanged.
Change-source: pulse-maintainer
2026-10-07 22:08:22 +01:00
pulse-triage[bot]
43b81bbb2b Exercise curl header removal and explicit empty roles separately
The first complete authentication-help proof exposed a fixture expectation error: curl removes a colon-only header rather than sending an empty value. Preserve that case and add the semicolon form, checking the exact transmitted value across success, denial and redirect controls. Documentation and runtime behaviour are unchanged.

Contract-Neutral: Executable documentation control correction only; no authentication, authorisation, frontend or runtime contract delta.
Change-source: pulse-maintainer
2026-10-03 12:02:53 +01:00
pulse-triage[bot]
2789a15fe5 Keep authentication diagnostics private and permission-aware
Use private header files rather than shared passwords or proxy secrets in process arguments. Separate intentional AI settings writes from diagnostics, distinguish proxy denials from authentication/transport failures, and preserve the real proxy trust boundary and 5.x limitation. Exercise copied commands, private-file preparation and rendered help.

Contract-Neutral: Documentation and executable help controls only; no authentication, authorization, AI autonomy or runtime contract change.
Change-source: pulse-maintainer
2026-10-03 10:22:45 +01:00