Files
Pulse/scripts
pulse-triage[bot] 37b1ce53fe Align API Reference auth, TrueNAS scope, and route contracts
Correct docs/API.md (and its frontend-modern/public/docs/API.md mirror)
against the registered route handlers in internal/api/router_routes_*.go,
internal/api/agent_ingest.go, internal/api/router.go, and
internal/config/truenas.go:

- Document GET /api/config as authenticated with monitoring:read instead
  of Public Config, and note authentication on GET /simple-stats and
  GET /ws (monitoring:read and organization membership rechecked every 10s).
- Update PUT /api/truenas/connections/{id} to match ScopeConfigured and
  docs/TRUENAS.md (setting monitorDatasets, monitorPools, and
  monitorReplication all to false is preserved as all off) and document
  POST /api/truenas/connections/preview and /{id}/preview.
- Align /api/settings/relay* and /api/onboarding/* auth, scope
  (relay:mobile:access or settings:read), and Relay+ license boundaries
  with router_routes_ai_relay.go and docs/RELAY.md.
- Document enforced admin and scope rules for /api/system/settings,
  /api/config/system, /api/system/mock-mode, /api/server/info,
  /api/agent/version, /api/agents/*/report, GET /api/agents/agent/{id}/config,
  and AI/Patrol/cost endpoints (/api/ai/models, /api/ai/test*,
  /api/ai/execute*, /api/ai/patrol/autonomy*, /api/ai/patrol/preflight,
  /api/ai/patrol/readiness, /api/ai/cost/*, /api/ai/debug/context).
- Add router- and config-anchored regression checks in
  scripts/tests/test_api_reference_routes.py.

Contract-Neutral: Documentation accuracy correction and docs-only test coverage aligned to existing registered routes and config semantics with no runtime behavior change.
Change-source: pulse-maintainer
2026-11-29 03:44:47 +00:00
..
…
…
…
…
2026-11-28 00:28:19 +00:00