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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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