# API Contracts ## Contract Metadata ```json { "subsystem_id": "api-contracts", "lane": "L6", "contract_file": "docs/release-control/v6/internal/subsystems/api-contracts.md", "status_file": "docs/release-control/v6/internal/status.json", "registry_file": "docs/release-control/v6/internal/subsystems/registry.json", "dependency_subsystem_ids": [ "agent-lifecycle", "ai-runtime", "cloud-paid", "notifications", "patrol-intelligence" ] } ``` ## Purpose ### Requested metric history retains its admitted reader The existing `/api/metrics-store/history` chart read and canonical agent `get_metric_history` read retain the admitted API token or local browser session through the complete synchronous lookup and response. For API tokens, current monitoring-read scope, credential identity, principal and organisation authority are checked at output, including after the agent's inventory lookup. Local sessions retain the admitted session instance, validity, principal and store. Withdrawal before output returns the fixed 401 rather than metric values or a successful empty series; after an admitted prefix it only stops further writes. Handler-specific headers remain undisclosed until an authorised write. This uses the existing response-authority guard and changes no initial gate, resource/metric mapping, provider work lifetime, downsampling, fallback, response shape or retention entitlement. Removing unrelated execution/settings scopes does not end a permitted monitoring read. Existing proxy and unauthenticated policies are unchanged. Other readers and canonical metrics are not cancelled or deleted. It does not erase data already admitted to an HTTP response or a client cache, and does not establish installed session/IdP recovery or measured exposure. Normal-suite metric-history lifetime tests hold the real resource provider after registered-route admission, without database locks or production hooks. The contract matrix covers both token transports, persisted HTTP token deletion, expiry, scope/organisation/identity/principal/runtime-role withdrawal, and an independent reader. Session tests cover actual persisted logout, replacement, expiry, principal and session-store changes, for single and all-series responses. Route-inventory controls retain monitoring-only, wildcard, session and proxy reads and unrelated-scope removal. Existing history query/entitlement/fallback and shared response-writer tests remain applicable. Consuming browser proof must use actual producer responses at desktop and narrow sizes, not a guard skip. ### Agent HTTP redirects retain their configured origin Manifest discovery, capability HTTP calls and agent SSE reads using standard Go clients refuse redirects that change scheme, hostname or effective port, or introduce different URL userinfo. In particular, the custom `X-API-Token` header and replayable write bodies must not follow an off-origin redirect. Same-origin relative redirects and equivalent default ports remain supported. Explicit HTTP base URLs remain supported; an upgrade or downgrade is not silently followed. The shared request executor copies the client, preserving its transport, timeout, cookie jar and stricter redirect callback, with the normal ten-redirect default when no callback exists. Callback edits cannot widen the origin. Boundary refusal returns a fixed final-base-URL diagnostic without the redirect destination's userinfo, path or query. Custom `HTTPDoer` implementations still own their transport policy. No server route, scope, payload, token grant or browser producer changes. Registered HTTP and MCP tests cover real loopback redirects, TLS, cancellation, caller policy, request preservation and consuming stdio/event errors. ### Slow Assistant JSON results use current token authority The existing POST `execute` and `kubernetes/analyze` routes revalidate the admitted API-token identity, principal, `ai:execute` scope and selected organisation/instance authority at each response write, not only before waiting for the provider. The Kubernetes guard sits outside the extension binding. Revocation, expiry, identity/principal replacement, invalid runtime role or lost scope/organisation/instance authority denies undisclosed results. Before a final response is committed, refusal returns a generic 401 without handler-specific headers, JSON data or false empty success. After an admitted prefix, refusal only stops later writes; it never appends a new HTTP error to that response. An already-admitted write can be in flight when authority changes. This synchronous writer exposes no streaming, hijacking, `ReaderFrom` or `Unwrap` escape, buffers no payload and closes at handler return. It does not replace the original request context, cancel admitted work on token withdrawal, change the 120/180-second execution bounds, or detach work from normal client cancellation. Session/proxy admission, licence checks, authorised payloads and the retired raw-command endpoint remain unchanged. No new route, tool, history source or grant is added. `assistant_json_lifetime_test.go` uses the full Router, native HTTP and real execute/Kubernetes core handlers with a held local text-only provider. Both token headers, independent readers, all withdrawal cases, unchanged session/proxy readers, client cancellation and the extension licence refusal are covered. `TestContract_AssistantJSONWithdrawAfterPersistedTokenDelete` exercises the real DELETE and durable token inventory for both JSON routes. Writer regressions pin undisclosed headers/bodyless refusal, admitted prefixes, closure, transport errors and no bypass. These are synthetic source proofs, not installed/private-binary recovery, exposure or release evidence. ### Non-executable media at the Assistant result boundary The synchronous writer on the existing execute and Kubernetes analysis result routes admits only `application/json` or `text/plain; charset=utf-8`, with `X-Content-Type-Options: nosniff` on the actual response transport. Valid JSON media parameters are normalized to the JSON type. Missing, malformed or other handler types fall back to plain text; none may turn a result into HTML, SVG or JavaScript. Alternate-case media headers are discarded before the canonical headers are set directly at each transport commit or body-write boundary. Payload bytes, status and other admitted headers are preserved: JSON is not HTML-escaped twice, parsed or buffered by this boundary. This does not change admission, withdrawal checks, request cancellation or the extension licence gate. Undisclosed withdrawn responses still return the generic 401 without handler headers; committed responses cannot change media later. The actual core handlers already marshal their successful payloads as JSON and return plain errors. The narrower writer contract also prevents a downstream implementation from omitting a type and relying on HTTP content sniffing. `token_response_media_test.go` exercises native HTTP with omitted, malformed, HTML/XHTML/SVG/JavaScript, JSON and plain-text types, explicit and implicit status, JSON round-trip and noncanonical headers. `TestContract_AssistantJSONMediaBoundary` checks both real handlers through the full Router with token and session readers, a text-only local provider and HTML-shaped data. These are source regressions, not installed/private-binary acceptance or a security-scanner disposition. ### Assistant streams use current token authority at disclosure The existing POST `execute/stream`, `investigate-alert` and `chat` routes revalidate their admitted API-token identity, principal and selected organisation at the actual serialized writer, including idle progress, heartbeats and terminal frames. The first two retain instance-admin and `ai:execute` requirements, with the guard outside the alert-analysis extension. Chat retains its existing `ai:chat` **or** relay-mobile scope alternatives; removing an unrelated scope or replacing one allowed chat scope with the other does not end a permitted read. Revocation, expiry, invalid runtime role, identity/principal replacement, lost scope or organisation/instance authority suppress subsequent output. No HTTP error or invented terminal success is appended to an admitted SSE response. A frame admitted before concurrent withdrawal can already be in flight. The shared guarded stream writer pins `text/event-stream; charset=utf-8` for SSE or `application/json` for structured errors. Missing, malformed or other media types fall back to plain text with `nosniff`; alternate-case media headers cannot escape the boundary. Explicit status, implicit body writes and flush-only commits use the same closed media policy, with original payload bytes preserved. Informational headers do not commit the final response. The guard exposes deadline setters, not an unguarded response-writer escape: Assistant handlers still clear the initial server deadlines and bound each write. The outer API error/status wrapper forwards these same two controls without exposing its raw writer; native short-server-deadline regressions run all three actual routes past that initial deadline. Closure joins active transport writes and rejects queued/late callbacks. Legacy execute and investigation keep their independent background execution and original 15/5-minute bounds; denying their read is not cancelling their work, and HTTP completion can therefore wait for that work. Chat keeps its existing request-bound 15-minute execution and cancellation behaviour. Session/proxy admission, licence gates, payloads and other readers remain unchanged. This adds no route, grant, tool, event type or history source. `assistant_stream_lifetime_test.go` uses the full Router, native HTTP/SSE and real legacy/chat handlers against a held local text-only provider. It covers both token headers, fresh denials, independent readers, scope alternatives, non-token readers, instance/licence gates and actual idle execution lifetimes. `TestContract_AssistantStreamsWithdrawAfterPersistedTokenDelete` executes the real persisted DELETE for all three routes. Shared writer tests pin deadline forwarding, final closure and the lack of a bypass. These are synthetic source proofs, not installed/private-extension recovery, exposure or publication. ### Billing Admin cancellation and non-replayed writes `frontend-modern/src/api/billingAdmin.ts` accepts an optional cancellation signal for the global hosted organization inventory, per-organization billing read and subscription PUT. Existing session preference, encoded organization path and `skipOrgContext` are unchanged: the platform-admin endpoints still use default request context, not the UI's selected tenant. Idempotent reads retain the existing client fallback policy. Subscription writes set `retry: false`, so an unconfirmed response does not replay after CSRF refresh, rate limiting or token fallback; the client rechecks cancellation after CSRF preparation before dispatch. A pending abort does not claim a server-side rollback. Existing server-side administration, organization and capability checks remain authoritative. API unit and real-client transport tests cover option propagation, headers, encoded targets, non-retry responses and cancellation during CSRF preparation. ### Selected organization detail and billing request lifetimes The existing organization `update` client optionally accepts the same `expectedOrgID`, `AbortSignal` and `retry: false` binding as access and sharing. It preserves the exact encoded organization path, session preference, body and no-implicit-context behaviour. The common API client validates that binding again after CSRF preparation and must not dispatch a stale-selection rename. License `getStatus` likewise optionally accepts an expected organization, cancellation signal, explicit no-retry policy and session preference for the existing Billing panel. Unbound callers retain their previous status transport; no endpoint, response shape, scope or backend authority changes. Registered `orgs.test.ts`, `license.test.ts` and the common transport access tests verify the forwarding and pre-dispatch boundaries, with consuming Overview/Billing read-generation and adverse-response proof in OrganizationReadLifetimes. ### Dashboard sockets do not retain withdrawn token authority The existing `/ws` route keeps its initial authentication, monitoring-read, organization, origin and licensing gates. For API tokens, its single writer revalidates the admitted identity/principal against the current owning token inventory before every outgoing data frame, including each queued flush, and before the existing 30-second idle ping. Revocation, expiry, read-scope removal, changed identity/principal or lost organization authority ends the connection with code 1008 and fixed reason `Monitoring access ended`; it sends no queued product data or HTTP error after that refusal. An already admitted frame can still be in flight during a concurrent withdrawal. New requests authenticate normally; a legitimate replacement identity may reconnect. The shared validator returns detached authority without changing the original HTTP request after its handler returns. Tenant removal cannot fall back to a stale or global inventory. Proxy admission, wanted monitoring reads after execute-scope removal, other subscribers and canonical data are unchanged. Browser-session withdrawal follows the session read-lifetime contract below. The existing frontend policy-close path returns to sign-in rather than silently retrying withdrawn credentials. No route, token grant or event/history source is added, and source/browser proof is not installed recovery or publication. `websocket_auth_test.go` exercises all three existing token transports, current tenant ownership and immutable requests. The contract's real persisted HTTP DELETE ends an already-open registered socket. `hub_test.go` exercises queued flush refusal and the actual idle ping, without a shortened production timer. The agent SSE lifecycle suite retains its bounded disclosure refresh contract. ### Agent event streams retain live API-token authority The registered agent SSE route revalidates its admitted token before the connected frame, each visible product frame and each 15-second idle heartbeat. Revocation, expiry, loss of monitoring-read scope, changed identity/principal or loss of the selected organization closes the stream and releases its subscription. No error body is appended to SSE and no event kind, route or grant is added; reconnects use normal HTTP authentication/scope enforcement. Frames already admitted before a concurrent withdrawal may still be in flight. Refreshing disclosure replaces one context layer rooted at the original admitted request; it does not accumulate earlier token snapshots or context ancestors. `TestAgentEventTokenRefreshKeepsBoundedContext` checks repeated actual SSE frames, live approval/action redaction, preserved context values/deadline and cancellation unsubscription for both token headers. Wire payloads and last-use updates are unchanged by this bounded-state correction. `TestAgentEventTokenLifecycleDeleteThroughHTTP` in the route inventory executes the actual persisted DELETE and rejects both continued delivery and reconnect. `TestAgentEventTokenLifecycleRefreshesDisclosure` in the contract suite checks live command-scope withdrawal, independent subscriber detail and unchanged canonical evidence. The normal lifecycle suite covers both token headers, idle expiry/revocation, tenant replacement and the shared real MCP consumer. Sessions/proxy authentication and existing event payload shapes stay unchanged. ### Public-URL token checks share authentication ownership The pre-route public-URL authority check uses the existing locked token validator and detached snapshot. Normalisation and last-used metadata updates hold the same exclusive configuration ownership as ordinary authentication; subsequent scope checks never mutate the live record outside it. Both supported token headers retain the existing settings-write requirement. Expired, invalid, wrong-role and monitoring-only credentials gain no capture authority. Sessions, proxy/basic administration and URL/origin selection are unchanged. `TestPublicURLTokenCaptureUsesAuthenticationOwnership` covers concurrent capture and ordinary authentication, retained scope/identity and successful last-use updates; `TestPublicURLTokenCapturePreservesTokenRefusals` pins both headers and refused metadata. The real concurrent history HTTP test remains unchanged and must pass with the race detector; the observed race is not warmed away or suppressed. No new rendered state, token grant or runtime action is introduced. ### Recent-change execution facts are a restricted projection Monitoring-read history uses kind-specific scalar facts and fixed reasons; runbook titles and arbitrary stored execution text/metadata stay undisclosed. The existing response envelope, scopes, filters and canonical history remain unchanged. The detailed recent-change contract below and normal-suite typed, HTTP, MCP and JSON snapshot tests own this disclosure boundary. ### Agent action details follow command-disclosure authority The existing agent event and resource-context reads require `monitoring:read`, but that scope does not disclose command/output detail. API tokens without `ai:execute` receive no full `actionResultV2`: arbitrary result summaries, reason strings, evidence identities/references and recovery detail can carry command or provider output even after credential-pattern redaction. Instead, `actionResultSummary` explicitly sets `detailsRedacted:true` and preserves only validated execution status, verification status/evidence class, compensation support/status and any nested compensation execution/verification axes. This is a read projection, not a canonical evidence envelope; no evidence is deleted, re-digested or invented, and a malformed canonical result remains inconclusive. Restricted legacy errors retain only an exact known refusal prefix (such as `plan_drift:`), never its arbitrary suffix or an unknown prefix. Verification notes follow the command redaction rule even when the command is absent. Session and existing `ai:execute` disclosure are unchanged. Per-request copies must preserve other subscribers' and stored evidence, auth and tenant boundaries. Ordinary-suite `agent_action_disclosure_test.go` checks both completion producers, pointer/value payloads, legacy/V2 records, scoped/session/wildcard callers, independent outcome axes, malformed digests, durable context HTTP reads and concurrent authenticated SSE subscribers. `action_disclosure_test.go` in the MCP adapter runs the real authenticated handlers through tools/call text/structured output and live JSON-RPC notifications. `TestContract_AgentScopedActionResultIsAnExplicitSummary` pins the distinction between withheld detail and canonical evidence. ### Admit saved permissions before presenting user access `RBACAPI.getUserPermissions` admits the existing array response only when every member has nonempty string `action` and `resource` fields. Empty arrays are valid; null, missing, malformed or partially unreadable responses reject as a whole rather than inventing absence or a smaller permission set. Wildcards and future nonempty strings remain intact. Stable principals stay URL-encoded without substituting display names. The backend already distinguishes storage failure from a healthy empty array, and no endpoint or authority changes. `rbac.test.ts` checks response admission, complete rejection and encoded principals. User Access keeps loading/failed reads distinct from an accepted saved snapshot, binds results to the current dialog request, preserves role drafts across explicit read-only retry and does not call any mutation as part of retry. `RBACPaywallPanels.test.tsx` and desktop/narrow consuming browser proof cover that state and identity boundary. ### Token inventory must be read before absence is presented The API Access consumer distinguishes loading, failed and accepted token inventories. Pending reads show nonnumeric loading values; rejected reads keep counts and scope posture unknown, with persistent bounded feedback and an explicit Retry token inventory action. Only an accepted empty list establishes zero visible tokens. Counts describe credentials visible to the account, not instance-wide access. Retry invokes only the existing list read, admits one consumer request at a time and preserves creation drafts and selected scopes. It neither grants write authority nor replays a token mutation. `SecurityAPI.listTokens` rejects missing, malformed or partially unreadable inventories as a whole, including invalid record identities/scopes and duplicate IDs. It never drops bad members into a plausible smaller list. Explicit empty arrays and legacy nil lists remain empty; absent/nil/empty record scopes retain their legacy full-access meaning and unknown string scopes remain visible. Unread inventory cannot drive the existing token-absence reconciliation. Normal-suite `security.test.ts` and `APITokenManager.test.tsx` cover admission, loading, denial/failure, repeat retry, accepted empty and populated results, draft preservation, partial local creation and unchanged read-only controls. Desktop/narrow browser verification exercises the real API Access producer and consumer using safe HTTP responses, not a replacement component page. ### Lazy investigation setup keeps the resolved service scope The internal `SetupOrchestrator(orgID string)` callback binds only an already resolved AI service whose own organisation matches the requested scope. Empty and whitespace-default aliases normalise consistently; a missing, unavailable or misbound tenant service cannot borrow or replace the default runtime. The AI-service selection does not construct a tenant service or run its provider initialisation. Existing scoped chat dependency setup is unchanged. The caller must supply the authenticated request's organisation, not a literal fallback. The callback ABI, route authentication, entitlements and execution authority are unchanged. `TestAutoFixOrchestratorSetupUsesRequestedOrg` checks the real public callback, scoped chat/findings/retained-store dependencies, untouched peer orchestrators and consuming History/thread HTTP reads for default and two named tenants. The unavailable-service and concurrent-organisation cases pin fail-closed selection, independent initialisation and unchanged retained credentials/files. The tests pre-seed unstarted chat services and make no provider call or new run. The private caller and combined private consumer proof remain Enterprise-owned; these public seam tests establish no installed sign-in or investigation run. A member test announces and reveals its result beside that exact member rather than leaving feedback in the off-screen global footer. The normal primary Test connection result stays in the footer; both remain endpoint-qualified and do not update background or agent health. The member-section test and browser interaction proof check the locally scoped live result. The node API client retains server-projected TLS endpoint and first-use fields, serialises explicit per-endpoint empty pin choices, and keeps credentials out of saved-connection test payloads. Nonempty malformed pin strings are preserved, not normalised into an empty CA choice. The editor's configured-node state consumes GET readback after saving trust instead of interpreting write-only overrides as configuration. `NodesAPI` tests and the configured-node readback test cover these client boundaries; peer edits never imply a cluster-wide trust reset. Existing PVE `monitorVMs`, `monitorContainers`, `monitorStorage` and `monitorBackups` response fields include false values. Omitting a disabled scope would make the editor substitute its new-connection defaults and enable collectors during an unrelated trust save. `TestPVEEndpointTrustEditorPreservesDisabledCollectors` verifies the round-trip. ### Scoped Proxmox trust edits and connection tests PVE updates accept `clusterEndpointTrustOverrides` entries containing an existing HTTPS `endpoint` and required string `fingerprint`. An empty string selects the existing verification setting for that endpoint; missing/null, duplicate equivalent endpoints, unknown scopes and contradictory primary settings are rejected before mutation. A primary `fingerprint` edit also reconciles that exact endpoint in polling trust. Candidate PVE configuration is published in memory only after persistence succeeds. Cluster member responses expose the permitted runtime `tlsEndpoint` and `usesPrimaryTLS`, with the effective fingerprint. `tlsFirstUse` distinguishes an unknown member from an explicit empty-pin choice, so the editor does not claim that automatic first-use trust is saved CA validation. Saved-credential Test accepts an optional existing PVE `endpoint` and temporary TLS edits. It makes no saved trust or health changes and states that other endpoints/background collection were not tested. Omitted TLS edits use polling's saved trust, including an ambiguity failure. Other provider types cannot select a PVE endpoint. `TestPVEEndpointTrustAdmission` and `TestPVEEndpointTrustSavedPolling` cover rejected inputs, failed persistence, bounded probes and unchanged credentials. ### Configuration imports distinguish saved files from live recovery After an archive commits, every attempted live alert, webhook, email and guest metadata reload must succeed before the import acknowledges success. A failed read or unavailable component of a present monitor returns HTTP 500 with a bounded, fixed component list and a failed audit outcome. Independent reloads still run; raw errors, private paths, destinations and archive inputs never enter that response or audit detail. The complete plain-text error stays below the API client's 200-character boundary, including its newline, so the existing recovery dialog retains the explanation instead of reporting success and reloading the page. This is a **saved, incompletely applied** outcome, not rollback or permission to repeat a replacement. Committed replay admission remains retained, including after this failure. Operators check the destination's live settings before relying on them. Initialization contexts without a monitor remain supported; a present monitor with a missing alert/notification manager fails gracefully, not by panic or a successful live-apply claim. `TestHandleImportConfigRuntimeOutcome` exercises each read failure, combined failure, missing managers, successful independent application, bounded private errors, audit outcomes and newer-edit/replay preservation using real imports. `TestContract_ConfigImportIncompleteRuntimeKeepsCommittedOutcome` binds the real router, authentication, metadata reader, no-store and replay response. The registered frontend transport test and browser proof consume these post-commit responses through the unchanged recovery flow. This establishes neither notification delivery nor installed/native recovery. ### Configuration-import transport replays are bounded, not fresh recovery The existing import POST keeps authentication, write scope, CSRF and tenant resolution ahead of replay admission. A handler admits one import per workspace through persistence and runtime apply. Equal archive/passphrase requests that committed are rejected with HTTP 409 for ten minutes after completion, including when runtime apply failed or the response was lost. Neither a replacement write nor a reload is repeated, and a cached success cannot imply that a newer edit was restored. Different archives can be imported after the active import ends; uncommitted failures can retry after their cause is corrected. Admission stores only scoped HMAC-SHA-256 request fingerprints and completion times, never archives, passphrases or response bodies. Each guard uses its own cryptographically random, process-local key, so retained fingerprints cannot be used as unkeyed passphrase verifiers. Length-prefixed input preserves archive and passphrase field boundaries. Empty/default scope aliases share one admission; different tenants do not. The process-local registry holds at most 128 active/recent attempts and fails closed with HTTP 503 rather than evict an unexpired attempt. Active imports never expire; completed entries expire without extending their window on replay. This is a bounded transport safety measure, not durable cross-restart idempotency or installed recovery. `config_import_replay_test.go` exercises real persistence, newer credentials/ settings/metadata, overlapping archives, runtime failure and loopback response loss. `config_import_admission_test.go` covers concurrency, expiry and capacity. `TestContract_ConfigImportReplayRemainsAuthenticatedAndScoped` exercises the consuming router's tenant, authentication and CSRF boundaries. No guest/QGA, backup execution, database/driver/schema or native recovery route is added. ### Host-agent disk history distinguishes absence from zero History and full/infrastructure summary charts synthesize host-agent disk usage only when its canonical disk reading is present. An accepted report without a filesystem reading must not create a live 0% sample; a measured 0% remains available. A recorded disk series keeps its original values and timestamps, including when CPU has no history. Existing lease, error, query-selection and provider-aggregate contracts remain unchanged. `TestHostDiskUsageHistoryAndSummaryRespectPresence` exercises cold and recorded History (all/selected metrics), both summary routes and disk-only selection for missing, unavailable, measured-zero, low-percentage and nonzero readings on online/offline hosts. Browser proof must exercise the returned producer payload through the existing Machines drawer at desktop and narrow widths. ### Webhook deletion has an explicit committed acknowledgement `DELETE /api/notifications/webhooks/{id}` returns `success: true` after saved and live inventories both remove that ID. The legacy `status: "success"` field remains for existing clients. The destination editor already requires the boolean before accepting deletion; the acknowledgement must not leave a successfully removed row shown as failed. Missing destinations, failed persistence and failed live publication retain their existing error and rollback paths, not a success body. The handler's deletion assertion pins both fields; persistence-failure controls continue to require no live removal. This changes no route, scope, credential, retention or admitted-delivery snapshot contract. ### Typed MCP fleet filters survive HTTP projection GET/DELETE capability projection preserves public string and boolean query arguments, including explicit `false`, without stringifying numbers, null, arrays or objects. Path parameters and internal approval metadata remain out of the query; write-body and authentication contracts are unchanged. `get_fleet_context` still advertises `hasFindings` as boolean: true narrows to resources with active findings; false/omitted applies no finding-presence filter. String dimensions intersect with it, and legacy string transport stays compatible. No endpoint or API-handler filter semantics change. `TestProjectCapabilityCallGETDELETEPreservesTypedFilters` pins conversion and shielding; the HTTP request test pins encoding and token preservation. `TestServer_FleetBooleanFiltersReachRealHandler` joins actual MCP stdio/schema, HTTP transport, production fleet handler and text/structured output over safe resource/finding fixtures. It covers true/false/omission, composed filters and an empty intersection; this is not released-binary or customer-estate proof. ### Unreported agent delivery supplies no live chart fallback A saved enrollment awaiting its first accepted report, including after its reporting lease expires, remains queryable by its existing metrics target. History and summary chart routes retain stored series but cannot synthesize a now-stamped live sample from that enrollment's absent metrics. An accepted report restores normal live fallback behaviour. ### Proxmox setup guide names the command-access option by its shared label (21 October 2026) The Proxmox node setup guide's Docker-in-LXC note now points to the Pulse Agent installer option through `getUnifiedAgentCommandAccessOptionLabel` ("Allow Pulse to run commands on this host") instead of the "combined command profile" wording. The node setup client still sends `enableCommands: false` and mints monitoring-only credentials; no request or scope changes. `settingsArchitecture.test.ts` pins the shared label. ### Reporting telemetry observes canonical generation and delivery boundaries `internal/api/reporting_activity.go` records best-effort content-free events to the root config persistence wired through the existing settings-store boundary. Organization context contributes only to a local opaque deduplication key. Direct resource and VM inventory downloads count only a full successful response write, excluding HEAD, cancellation and short writes. Distinct generation days cover returning manual use without retaining download identities. Scheduled report generation, file saving and existing SMTP transport outcomes each contribute their own counter. A successful reporting period is recorded only after final schedule state saves. Interrupted email recovery records uncertainty after persisting that outcome. Retries still use the same scheduling/delivery system and frozen reporting window. No endpoint, report payload, delivery state, retry policy, pricing or entitlement changes. The activity adapter cannot block a report on tally failure. Scheduler restart/retry, distinct-period reuse, complete download and mock-suppression proof lives in `internal/api/reporting_activity_test.go`. Notifications retains SMTP acceptance authority, and the activity recorder never claims inbox delivery. The shared adapter is declared by exact path in the paid-surface allowlist. The real boundary regression rejects sibling reporting implementation files and private licensing imports added to this observer, preserving the private renderer and licensing bridge boundaries. ### Container verification distinguishes transitional health Both agent and independent lifecycle readbacks classify a running container's `starting` health as inconclusive, not a final postcondition contradiction. Execution and verification remain separate axes: a confirmed readback cannot turn a lost mutation acknowledgement into acknowledged execution. The action summary retains the agent's sanitized error. The Docker action-result tests cover this projection without changing receipt protocol versions or authority. ### Finding-scoped investigation reads belong to the current occurrence The finding investigation and transcript endpoints return only the session owned by the finding's current occurrence. After a resolved finding is re-detected, a retained earlier session returns `404` through these current views until a new session exists. Explicit session and action history retain their original evidence. Outcome and record reconciliation check session identity and the persisted regression boundary under the findings lock before changing current state. `TestPatrolHistoricalActionCannotResolveRecurringFinding` in `internal/api/ai_handlers_patrol_actions_additional_test.go` covers three occurrences, restart, historical reads and duplicate action callbacks. ### Recovery point reads stay coherent between HTTP and investigations The points endpoint and investigation adapter use the same org-scoped manager reader. Demo composition reads the canonical fixture graph through the recovery query helpers; ordinary tenants read their persisted store. Moving the existing in-memory filters into recovery preserves point, series and facet query semantics and pagination bounds. The API/tool parity regression checks that a collected backup failure remains readable without a PVE client or command agent. The investigation backup inventory uses the same `KindBackup` and canonical subject query as the points endpoint, retaining point identity, repository references, tri-state verification and evidence provenance in real and demo modes. Tool pagination translates global offsets into the shared source's bounded pages. No route, entitlement, recovery mutation or action approval is added. ### Copied backend bootstrap commands have one portable private reader Existing setup artifact aliases and Proxmox/container command fields retain separate credential response fields. Their command text now selects standalone `stty` or, only when absent, BusyBox `stty`, with distinct fail-closed terminal, tool and mode diagnostics. One isolated root/sudo prefix emits the privileged reader once, preserving complete fetch/preflight and 0700/0600 path handoff. No route, payload key, issuance scope, TLS policy or install authority changes. `TestContract_PortablePrivateBootstrapPayloads` checks the serialized producer boundary; full configapi PTY/tool/privacy/caller tests exercise the commands. Browser acceptance must use the actual producer fields through their existing setup/agent consumers, not a frontend-file guard skip or fabricated commands. ### Patrol setup panel reuses existing AI endpoints The Patrol page setup panel adds no endpoint or payload field. It calls `PUT /api/settings/ai/update` (provider key or Ollama URL with `enabled`, then `patrol_model`, `model` only when empty, and `patrol_interval_minutes` only when the cost model slows the untouched default), `POST /api/ai/test/{provider}`, `GET /api/ai/models`, `GET /api/ai/patrol/model-guidance`, `GET /api/ai/patrol/cost-preview` and `POST /api/ai/patrol/readiness`, with the same meanings Provider & Models and Patrol settings rely on. The panel loads on demand, so none of these requests is made until Patrol is blocked and the operator starts setup. The `provider_connection` readiness cause is read as it is: it changes only where the Patrol page sends the operator, not any payload. ### Patrol autonomy reports the Pro default `GET /api/ai/patrol/autonomy` adds `default_mode_applied`. It is true only when the install never saved a Patrol mode and holds a positive investigation licence; then `requested_autonomy_level` and `effective_autonomy_level` both read `approval`. Any save, including the monitor-only save, writes the level and the flag reads false from then on. Older clients ignore the field, and no other autonomy payload field changes meaning, and `getPatrolAutonomySettings` returns the flag unchanged. Proofs: `internal/api/patrol_autopilot_test.go` (`TestPatrolAutonomyReportsTheProDefault`) and `frontend-modern/src/api/__tests__/patrol.test.ts`. ### AI guest memory projections preserve uncertainty Existing AI get/list/topology responses carry selected guest memory evidence: availability, pressure qualification, source, state and original observation time. A missing/invalid guest percentage is JSON null rather than zero; a measured zero is explicitly numeric, including in list/topology and Assistant inventory. Get usage bytes are null when unavailable. Non-guest response numbers remain unchanged. The added evidence is a read-only projection, not a new route, command, feature, collector or diagnostic authority. `TestGuestMemoryQueryEvidence` exercises actual tool serialization and `TestAssistantGuestMemoryContextAndFacts` preserves it through Assistant condensation. Performance responses add a guest-history source limitation without relabelling past samples or changing their numbers; their actual tool controls are in `TestGuestMemoryHistoryDoesNotBorrowLiveOrigin`. The `protected_guests` settings field is retired: it was never an exclusion filter for canonical saved action plans. `GET /api/settings/ai` no longer returns it, `PUT /api/settings/ai/update` ignores it from older clients, and a stored value is dropped the next time the settings are written. Scope and approval authority do not change. ### Assistant control_level is an interactive projection AI settings GET/PUT responses expose `read_only` or `controlled`: an entitled legacy `autonomous` preference presents planning for operator review, never unprompted execution. Existing legacy PUT validation and `ai_autofix` checks remain; an entitled old client can retain the stored preference, an unentitled request is refused. Unrelated saves do not rewrite it. Shared external-agent vocabulary, Patrol settings and authenticated authority remain unchanged. `TestContract_AssistantSettingsAdvertisePlanningNotExecution` and the actual persistence/handler tests pin responses and compatibility. A legacy client echoing the projected `controlled` mode into an unrelated AI settings PUT must retain a stored `autonomous` preference and its existing legacy command-approval selection. `TestAssistantProjectedModeEchoPreservesLegacyPolicy` uses actual encrypted GET/PUT persistence with and without the entitlement, then checks explicit read-only opt-out and later opt-in remain possible. ### Optional held-alert breach date consumer `MetricAlertStatus.lastBreachAt?: string` mirrors the existing backend ISO field dating `Alert.value`. Older servers and restart-before-evaluation may omit it. Consumers validate it, then a valid legacy `lastSeen`, without creating a date from start/poll time. Frontend type and consumer regression controls are in `types/api.ts` and `features/alerts/__tests__/helpers.test.ts`. No endpoint, required field or mobile capability changes. ### PMG scope readback preserves explicit all-off settings Settings node responses carry explicit false for all four PMG scope booleans, including all-off and partial selections. The existing edit form defaults omitted mail/queue/quarantine flags to on; `omitempty` must not resurrect an opt-out during a later unrelated save. Real GET-payload controls in `configapi/pmg_scope_test.go` and `TestContract_PMGFalseScopeIsExplicitOnWire` cover this consumer boundary without changing frontend source. Existing node add/update payloads keep their four boolean collection options. PMG saves persist the internal `monitoringConfigured` discriminator: legacy all-zero entries retain the existing mail-statistics default, while a saved all-off scope remains off through readback and restart. Partial scope patches first materialise that legacy default, then apply the supplied options; omitted options and unrelated edits do not erase an opt-out. PMG additions/edits publish the new runtime connection only after the durable save succeeds. Nodes and connection aggregation use the same effective mail-statistics rule. `configapi/pmg_scope_test.go`, `connections_aggregator_test.go` and the PMG branch controls cover defaults, saved/partial/failed patches and readback. `TestContract_PMGUncollectedDatasetsRemainAbsent` preserves missing optional readings across the existing PMG endpoint; it adds no route or payload dataset. ### Origin-trust reversal and consistent webhook placeholders `POST /api/system/settings/update` treats the presence of a string `allowedOrigins` as a patch: an explicit empty string removes saved and runtime CORS trust, while omission changes neither. Null is not an empty-string clear. Persist first; a failed save changes no runtime policy or settings cache. `GET /api/system/settings` reports the effective value. Deployment-owned origins remain authoritative: changing them returns `409 env_locked` before any save; the form's unchanged locked value does not replace the underlying saved value or prevent other settings edits. Authentication, settings scopes, CSRF, TLS, comma-separated exact-origin matching and embedding policy stay independent. `TestAllowedOriginsPatchBoundaries`, `TestAllowedOriginsSavedEffectiveLifecycle`, `TestAllowedOriginsSaveFailurePreservesPolicy` and `TestAllowedOriginsGetUsesDeploymentPolicy` bind these boundaries to the real handlers, middleware, persisted settings, settings reload and production config loader. This is source acceptance, not an installed deployment observation. Webhook Create, Update and saved-form Test use one masked-value resolver. `***REDACTED***` means keep the corresponding saved value, not omit the field: missing, masked or conflicting saved identities return `400` before saving, live publication or a Test send. HTTP header names share case-insensitive identity, including aliases alongside an exact match; custom-field keys remain case-sensitive. Conflicting submitted header aliases are also rejected. A masked signing secret needs a non-empty, non-placeholder saved secret. Explicit additions/changes, omitted-map replacement/removals and blank-header normalization retain the existing semantics; list/create/update responses stay masked. Unsaved forms must supply literal values rather than saved masks. `TestWebhookPlaceholderBoundaryAgreement` and `TestWebhookSavedFormTestMatchesEncryptedEdit` exercise every entry point and a real Test request plus encrypted edit/readback. Existing ordinary-delivery integration retains grouped/ungrouped firing, resolution and restart controls; these do not establish native Telegram acceptance or alter old queued jobs. ### Existing disk History keeps native thermal fallback reachable The authenticated disk History endpoint supplements a missing or shallow `smart_temp` series even when independent I/O metrics already exist in the persistent store. Single-metric and the drawer's all-metric requests use the same monitor-owned native/local selection. Only a broader series (or more actual samples at equal span) replaces the thermal series; unrelated stored values and min/max bounds stay unchanged. Samples stay within the issued window and use the existing aggregation and fallback-source wire contract. Complete local coverage makes no native history call. Store errors remain HTTP 500 rather than being concealed by native fallback. `TestTrueNASDiskHistoryAuthenticatedRoute` traverses the real authenticated TLS client, provider, tenant poller, monitor and router using declared appliance responses and ordinary store writes. It covers nil store, I/O-only store, a single thermal row, complete local coverage, store errors, token scope, tenant binding and revocation. It preserves original Celsius samples/timestamps and independent I/O, not synthetic temperature padding or CPU substitution. This is connected source proof, not an installed appliance or containing release. ### Confirmed Patrol rule operations preserve tenant context — issue #2528 The manual-rule confirmation presents the returned exact ID and scope before a keyboard-scrollable reason; the readable header and Cancel/Remove footer remain separate from long data. This does not truncate the stored reason or change authorised pre-read, one DELETE, readback or uncertainty handling. The frontend consumes the existing GET/DELETE suppression endpoints without a wire or permission change. The optional client expectedOrgID pins the request header and checks context before and after CSRF preparation; retry:false disables auth, invalid-organisation, CSRF and rate-limit retries for this flow. Other callers retain their defaults. Current auth, scope and CSRF checks remain authoritative; an abort or mismatched context stops dispatch. The suppression client rejects malformed or duplicate rows, accepts the existing empty nil slice, and only deletes a rule_ identity with explicit manual origin and no finding/dismissal attribution. Transport success alone is not removal: the UI must read the same collection back and establish exact-ID absence. ### Open threshold alerts expose their live evaluation — issue #2068 `Alert.metricStatus` (`/api/alerts/active`, the websocket state and `/api/state`) is optional and additive. It carries `phase` (`breaching`, `latched` or `recovering`), `value` (the value compared with the rule, the average for a rolling-average rule) with `rawValue` and `evaluationWindowSeconds` when windowed, `unit`, `observedAt`, `trigger`, `recovery` (the alert clears at or below it), `recoveryDelaySeconds`, and, while recovering, `recoveryStartedAt` and `recoveryElapsedSeconds`. Legacy `value`, `message` and `lastSeen` keep meaning the last reading that met the trigger. The field is absent for non-threshold alerts and until the first evaluation after a restart, and clients then fall back to `message`. `metricStatus.lastBreachAt` optionally dates the alert's retained evaluated breach value. Holds and recovery do not advance it to `observedAt`, and an unknown/zero date is omitted. The websocket and `/api/state` projection still omit legacy `lastSeen`; `/api/alerts/active` retains it. Old clients may ignore the additive field; consumers without it may use a valid legacy `lastSeen` but must not fabricate the date from `startTime` or the current observation. After restart no live status exists until evaluation; resolved rows have none. `TestMetricBreachTimeStateDeltasPreserveAndWithdraw` reconstructs the client baseline through held, recovery, renewed-breach, unknown-date and no-status keyed patches, including removal rather than retention of an obsolete date. ### Organisation deletion retains data after incomplete monitoring shutdown Authenticated organisation-owner deletion waits for tenant-loop exit and sealed guest metadata persistence before removing the directory or calling offboarding. An incomplete drain or final write failure returns HTTP 503 with the existing error envelope and `tenant_shutdown_incomplete`; the message says the data was retained and exposes no filesystem path or underlying error. The runtime owner and recreation guard stay retained. Default-organisation immutability, session and membership checks, successful HTTP 204 and other tenants' access are unchanged. `TestOrgDeleteRetainsDataWhenGuestMetadataPersistenceFails` exercises a real confined rename failure through the ordinary handler and metadata store; existing successful deletion and authorization controls remain required. ### Optional guest-memory observation reaches existing frontend consumers Frontend Memory and ResourceMetric model the existing optional server-owned `observation` fields (state, source, original observedAt). The shared wire reader selects only those fields and never invents an annotation for a legacy metric. API/canonical workload mapping preserves the selected annotation, not that of a conflicting platform facet. Unknown states/times stay non-current in the Proxmox guest drawer. Numeric selection, permissions and existing endpoint shape remain unchanged; hook/adapter/History controls verify this consumer. ### Platform connection alerts share the constructed runtime owners The default monitor's connection-alert snapshot callback is installed only after TrueNAS and VMware pollers have been constructed. It captures those exact router-owned instances, as used by the request-time connections ledger, rather than startup's nil fields. A runtime inventory or login failure can therefore reach the existing connection-degraded detector with the same state, error category and observation time shown by `GET /api/connections`. Existing three-observation firing, healthy recovery confirmation, disabled and paused suppression, tenant separation and source-specific policy are unchanged. This preserves the existing default-monitor scope; it does not add per-tenant alert wiring, a probe, route, permission, wire field or new detector. Saved Tests and configured scope still cannot prove a TrueNAS runtime poll. `TestRouterPlatformConnectionAlertsFollowRuntime` in `internal/api/contract_test.go` uses the actual constructor, loopback appliance clients, saved config, ledger, normal monitor ticker and alert manager. It covers both observed failures, paused peers, independent authoritative disable and required-inventory recovery. Those controls prove source wiring, not #2382's cause, native appliance recovery or release availability. ### Metrics History responses are bound to the issued selection The shared History client admits HTTP200 JSON only when the response resource type, resource ID, range and single/all-metric shape match the issued request. Validation uses a captured selection, not a subsequently mutated params object. It preserves only the server's explicit compatibility rules: Kubernetes types use the `k8s` wire token, legacy pod IDs receive the `k8s:` prefix and IDs are trimmed. An omitted range accepts the empty or 24h default echo; explicit ranges and metrics must match exactly. No host, node or disk alias is guessed. Metrics containers and point arrays must have the declared shape, finite readings/aggregate bounds and representable timestamps. Zero and observed empty arrays/maps are valid; omitted source remains compatible, and declared store, memory, live and mock_synthetic provenance is preserved. Finite but unusable window bounds still reach the existing observation-based window fallback. Rejected bodies produce a fixed diagnostic without their IDs, values or text; body status claims are not HTTP status. Real transport/access failures remain unchanged. No endpoint, server permission, collector or wire schema changes. `chartsHistoryResponse.test.ts` covers the response matrix, legitimate protocol variants and mutable input; existing `chartsApi.test.ts` uses actual-shaped responses to verify request construction. `HistoryResponse.contract.test.tsx` exercises the real client with production drawer, shared chart-state and row warming consumers. The connected browser fixture verifies actual History components/CSS on desktop Chromium and phone WebKit, not native identity, appliance history, workload safety or released availability. ### TrueNAS saved probes do not rewrite runtime evidence — issue #2382 The saved connection test uses stored server-owned secrets, or merges an edited payload under the existing validation and tenant boundary. It reads system information on a separate client and reports the probe's result in its existing response. Neither success nor failure rewrites the runtime provider's `poll` timestamps, last error, failure count, retry schedule, `observed` contribution or supplemental-inventory readiness. A successful probe can coexist with failed required inventory collection; only a completed runtime refresh can clear that runtime failure. No new route, response field or permission is added. `TestTrueNASSavedProbePreservesRuntimeEvidence` in `internal/api/contract_test.go` uses an HTTP appliance analogue through the actual client, poller and handlers, including prior inventory followed by required-method failure and no initial poll. This is diagnostic truthfulness, not native appliance/session recovery. ### Resource maintenance API reference The canonical and shipped API references document the existing authenticated GET/PUT/DELETE `/api/resources/{id}/operator-state` contract. Read access requires `monitoring:read`, and replacement or deletion requires `monitoring:write`. Maintenance examples preserve unrelated operator settings and distinguish resource-only scope from inherited descendant maintenance. Bounded expiry ends maintenance suppression without a separate activation call. Applying active maintenance clears matching active alerts while retaining history, rather than promising incident-preserving snooze semantics. This documentation change adds no route, permission or lifecycle behavior. The existing `docsLinks` checks keep the shipped reference synchronized with `docs/API.md`. ### Ollama credential lifecycle Settings return only `ollama_username` and `ollama_password_set`, never the password. An omitted password preserves it, a supplied password replaces it verbatim, and `clear_ollama_password: true` removes it. An empty username clears the username independently. `TestAISettingsOllamaPasswordLifecycle` proves these existing wire semantics against persistence; the connection and provider tests verify authenticated requests to synthetic Ollama endpoints. ### Node import preview response ownership The node credential editor calls the existing monitored-system-ledger preview endpoint with the current plan's preview request. It accepts asynchronous response state only for the request's still-current local generation. A plan change or unmount retires that generation, including for error and loading-state updates; returning to the same endpoint does not revive a retired request. This is a consumer-side response-lifetime rule, not a wire-schema or server cancellation change. Current-request errors remain visible and retryable. A preview is informational: it cannot approve setup or mutate a connection. The focused NodeCredentialSlot regression and settings architecture boundary check accompany desktop/narrow browser interaction proof. The delivery-log response redacts embedded webhook URLs in errorMessage rather than treating the entire diagnostic as a URL. Non-secret operation and failure context survive alongside notificationId, destinationId, outcome, failureClass and attempts; malformed URL diagnostics fail closed. The HTTP payload proof is TestContract_DeliveryDiagnosticPayload; notification handler tests pin plain, credential-bearing and malformed errors. No response keys or route permissions change. ### Node form name stays an optional label The add/edit node form no longer marks `name` required. Every client save path already sends a non-empty name (`data.name.trim() || deriveNameFromHost(data.host)`), the setup-command request omits an empty name so registration falls back to the reported server name, and `disambiguateNodeName` keeps duplicate names distinct, so the node APIs see no new empty-name request shape. `NodeCredentialSlot.test.tsx` pins endpoint-first order, the optional name and the derivation as the endpoint is typed. The sequence summary in `NodeCredentialSlot.tsx` names the endpoint step "API address and name" to match that field order; it is copy only and changes no request. ### Canonical incident-history query contract Incident APIs discover canonical-only occurrences and retain exact-start selection. `/api/ai/incidents` returns structured incidents even without a resource filter, plus history coverage and the existing unmeasured active-count contract. Resource-detail summaries describe the same page, not a second read. Canonical read failures return HTTP 503 before snapshot fallback. Timeline exports preserve source event identity, observed/occurred timestamps, actor, source, confidence, metadata and related identities. Notes can attach to a canonical-only occurrence without storing a second canonical lifecycle. ### Canonical Patrol and Assistant continuation, 2026-09-07 Canonical planning owns persisted actor/request idempotency. The same trusted request and exact normalized intent return the original plan before live registry admission. A different intent under that identity returns `action_request_conflict` (HTTP 409), including persistence-wrapped conflicts. Concurrent inserts cannot create two accepted actions. Planning does not approve or execute. Assistant invocation identity binds session, user message and provider tool-call identity. Patrol uses its explicit proposal identity. Public action references preserve causal resource identity, versioned independent outcomes and canonical approval requirements, including quorum, MFA and requester exclusion. Projection rejects malformed requirement metadata rather than silently downgrading it. Current regression and lab limits are in `docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md`. Action reconciliation refreshes the durable product investigation record from the authoritative session/action even when the finding outcome already matches. The same builder owns initial completion and later refresh. Original prose, evidence and retained rollback survive. Unchanged hydration is a no-op, and a record-only repair does not repeat outcome notifications. Resolved findings retain the canonical action-history link and resolved status in Assistant context. Live approved and rejected recovery cases pass, but storage's lexical scorecard pass fails semantic review because an exhausted container tmpfs was incorrectly attributed to host capacity. Storage and broader product qualification stay open. Product history retains the stored result-bearing `TranscriptToolCall` contract, including observed output and an optional success bit. A false bit is retained, and an absent historical result bit stays absent. Provider requests use the explicit narrower projection. The history adapter cannot project away evidence by treating a display transcript as request arguments. The frontend Patrol API extends the shared Assistant tool-call shape, and transport regressions pin failed output and unknown historical status across the message envelope. The internal Patrol bridge preserves explicit execution limits, scoped tool allowlists and execution identity. The retired unmatched-signal evaluator no longer contributes a signal-count-derived successful-report budget. Diagnosis and missing-finding assessments stay in the original evidence conversation. The frontend `Node` projection preserves the unified resource's optional `metricsTarget` without deriving storage coordinates from its display identity. Proxmox-only nodes advertise the `node` storage family and provider-native ID. An explicit Agent source takes precedence with its own `agent` coordinates. Discovery routing alone does not establish an installed Agent or its history capabilities. Resource adapters and history consumers preserve that distinction. The manual Patrol API consumes the service's selected-mode runtime verdict as an execution check. Dimension-level presentation warnings cannot authorize a run after a provider failure leaves Watch-only readiness unassessed. Operator cancellation retains its existing non-failure advisory semantics. Higher-mode canary guidance retains its existing advisory behavior only after Watch has been verified. The Assistant tool-provider wiring passes the current monitor's retained metrics store to the historical metrics adapter. Resource-scoped performance queries use canonical registry coordinates and retain history across process restarts. Store failures are returned to the caller rather than hidden behind an in-memory fallback. This is an internal read-provider extension and adds no route or external write authority. The restart proof is `internal/ai/tools/retained_metrics_test.go`. The public `PBSBackup` projection keeps `inProgress` as the compatibility field for an incomplete, manifestless snapshot. Optional `writeActivityObserved: true` says the collector obtained a complete bounded view of current PBS backup/sync writers for that poll, while optional `writeActive: true` says one of those writers accounts for the artifact. When the observation field is absent, clients must preserve the prior conservative running interpretation; they must not infer that no writer exists. Completed snapshots omit both fields. The Unified Agent helper artifact has a distinct rate-limited public download contract at `GET|HEAD /download/pulse-agent-helper?arch=linux-*`. The route rejects missing and non-Linux architectures, never substitutes the collector binary, and returns the same checksum, Ed25519 signature, and SSH signature headers used by the signed agent installer boundary. Development builds fail with an exact local build command when the helper is absent; published builds may proxy only the exact versioned `pulse-agent-helper-linux-*` release asset and its two signature sidecars. The action runner has a parallel Linux-only, rate-limited signed-binary contract at `GET|HEAD /download/pulse-agent-runner?arch=linux-*`; it never falls back to a collector or helper asset. `POST /api/agents/action-runner/credential` is an operator-only admin, `settings:write`, and `actions:execute` operation. It accepts one canonical monitored `agentId` / `hostname` pair and returns a new, separately persisted `agent:exec` credential bound to organization, agent ID, normalized hostname, runtime role `action-runner`, binding version 1, and capability `typed_actions.v1`. The canonical agent ID must satisfy the same bounded action-identity vocabulary used by runner configuration, registration, session admission, typed requests, and receipts; issuance fails before secret generation when that identity cannot be represented safely at every boundary. The route re-resolves the pair against exactly one live, non-conflicted, non-integration host in the request tenant. Issuing again atomically prepares a ten-minute replacement beside the current active record; older unactivated replacements are removed, while persistence failure restores the complete token inventory and returns no usable new secret. The created response is non-cacheable and exposes the activation-pending state and deadline, not predecessor secrets. `PATCH /api/agents/action-runner/credential` is the runner-owned activation commit. It requires the current `agent:exec` bearer, exact organization, canonical agent/hostname binding, and an exact registered pending transport. A pending transport is visible to this commit proof but unavailable to action dispatch and cannot evict or interrupt the active predecessor. The commit requires durable token persistence and begins by installing a reversible per-host session fence, which temporarily rejects new dispatch plus inbound results from both predecessor and replacement while credential storage is in flight. It then clears the pending expiry, removes only the server-recorded predecessor IDs, and atomically promotes the exact replacement session before unfencing. Pending requests and durable-operation queries carry an immutable per-WebSocket authority generation, so promotion cannot transfer in-flight predecessor work to the replacement. A failed durable save restores the prior inventory before rolling back the fence; failed exact promotion performs a compensating durable save, and an indeterminate compensation fail-closes both session slots. Socket cleanup occurs only after the credential and session locks are released. The route never reports success for an in-memory-only activation or a vanished pending connection and never allows a caller-selected token ID. Repeating activation for an already active exact session is idempotent so a lost HTTP response can be reconciled safely. `DELETE /api/agents/action-runner/credential/activation` is the only rollback-authorizing cancellation boundary for an installer-held replacement. It accepts no request body, authenticates the exact pending replacement bearer, and serializes with activation under the same durable token-inventory lock. A successful `204` durably removes that replacement and tombstones its exact admission so a pre-admitted or late transport cannot commit afterward. If activation has already won, the route returns conflict; persistence failure or any indeterminate state returns an error and must never authorize restoring the predecessor credential or files. `DELETE /api/agents/action-runner/credential` is the runner's narrowly scoped self-revoke operation. It requires the current `agent:exec` bearer credential, rejects browser/session authentication, accepts only `agentId` and `hostname`, and deletes only when the caller token, organization, action-runner metadata, and canonical host binding all match. The durable token inventory is restored on persistence failure; after a successful delete, the exact admitted session is invalidated and the route returns no credential material. Monitoring credentials cannot call issuance or self-revoke or authenticate an action-runner session, and action-runner credentials cannot report, read agent configuration, or manage collectors. Unknown request fields and ambiguous, mismatched, or conflicted host identities fail closed. The API runtime is decomposed along production domain boundaries so Go can compile and execute domain qualification packages concurrently. Shared tenant identity and scope enforcement live in `internal/api/apicontext/` and `internal/api/apihttp/`; alert lifecycle, notification management, queue/DLQ, and their monitor adapters live together in `internal/api/alerting/` with their unit and contract tests. The root `internal/api` package retains router wiring, cross-domain integration proof, and compatibility aliases for established extensions; domain behavior must not be copied back into that root facade. Configuration, node lifecycle, discovery, export/import, setup-script, auto-registration, and agent-install handlers live with their focused tests in `internal/api/configapi/`. Install-token persistence and command-channel binding policy are shared through `internal/api/agenttokens/` and `internal/api/agentbinding/`, so config enrollment and root Router admission consume one security contract without importing each other. Unified resource registry construction, tenant stores, list/detail/facet queries, discovery projections, and storage/resource response contracts live with their tests in `internal/api/resourceapi/`. Chart aggregation, monitor history queries, response contracts, downsampling, per-tenant caches, and all six chart handlers live with their tests in `internal/api/chartapi/`. Root `ResourceHandlers` and Router methods remain source-compatible composition facades for action/operator-state mutations, extensions, and route wiring; they must not regain resource-query or chart computation behavior. Browser WebSocket shutdown distinguishes ordinary client lifecycle from transport failure. Normal closure, navigation/going-away, and abnormal closure codes used by disconnected clients are informational; policy violations and other unexpected codes remain error-classified for operator visibility. Browser WebSocket ingress is bounded to 64 KiB both on the wire and after permessage-deflate decompression. The hub reads at most the decoded limit plus one byte before accepting a message or closing with code 1009. Oversized compressed messages must be rejected before JSON decoding and without waiting for a final frame, so an unfinished compressed message cannot retain an unbounded expanded buffer. Messages at the decoded limit remain valid when the wire limit is also met, and normal inbound and outbound compression remain supported. The transport proof is `internal/websocket/hub_inbound_limit_test.go`, covering plain, compressed, fragmented and unfinished messages with at-limit controls. Successful quick security setup is durable before its success response is emitted: Pulse writes the canonical auth environment file, activates the same hashed credentials in memory, and for root systemd installs reports both the canonical `envFile` and the supplemental service override behavior. `PATCH /api/security/tokens/{id}` supports bounded metadata updates. A nonblank `name` renames the record without rotating its secret or changing scopes; a `scopes` update retains the existing delegation checks, and omitted fields are left unchanged. The response returns the complete updated token record. Own canonical runtime payload shapes between backend and frontend, including the trust boundary that keeps customer-safe support diagnostics and normal product API routes free of maintainer commercial analytics. `GET /api/alerts/config` and `PUT /api/alerts/config` carry `schedule.initialNotify` as the canonical initial notification-routing field. The accepted values are `all`, `email`, `webhook`, and `apprise`; the backend normalizes aliases and invalid values before responding, persisting, and updating the live notification runtime. Escalation levels use the same value vocabulary but remain independent of the initial target. The same live update applies all four `schedule.grouping` fields atomically. When grouping is disabled, pending and subsequent alerts are delivered individually; the API boundary must not reduce that setting to the window or grouping-key fields while silently ignoring `enabled`. `GET /api/alerts/history` accepts the canonical severity facet values `info`, `warning`, and `critical` (plus omitted/`all` for no severity filter) and returns only matching rows after the time and resource filters. Alert payloads use the same closed three-level vocabulary; legacy `error` data is normalized to `critical` before it crosses the API boundary. Each history entry carries at most one `evidence` envelope, the newest by `observedAt`, whether it comes from the event-log projection, a live overlay or the JSON fallback (#1803). `operationalRecord.evidenceIds` and `transitions[].evidenceIds` keep their full lists, so some identifiers name envelopes the entry omits. The alert event log keeps every snapshot whole, and `GET /api/alerts/active` returns an open alert's full evidence. Notification configuration round-trips destination minimum severity as `all`, `warning`, or `critical`. The Relay adapter has a deliberately narrower persisted floor of `all` or `critical`, but an all-alert mobile payload still preserves canonical `info` severity rather than rewriting it as warning. `POST /api/notifications/terminal-failures/retry` and `POST /api/notifications/terminal-failures/dismiss` are admin, `settings:write` operator actions. Their strict response is `{"success": true, "affected": }`; frontend clients must normalize malformed counts to zero and must not consume the raw DLQ payload, which can contain notification configuration and content. `DELETE /api/ai/patrol/suppressions/finding_{findingID}` is the canonical reopen path for a dismissed Patrol finding. It removes the finding-backed suppression row, preserves the operator note, clears dismissal state in both the Patrol and unified stores, and returns not-found when the row is not currently dismissed or suppressed. `GET` and `POST /api/ai/patrol/objectives` plus `GET`, `PATCH`, and `DELETE` on `/api/ai/patrol/objectives/{id}` are the authenticated `ai:execute` contract for retained Patrol intent. The write payload accepts a bounded outcome brief, optional bounded context, and optional canonical resource IDs; updates and deletes require the current non-zero revision and stale writes return the stable `409 patrol_objective_revision_conflict` envelope. The response includes server-derived `coverage` and the internal observer lifecycle for honest status, but public request schemas do not accept either field. Unknown fields, trailing JSON, over-limit bodies, unsupported statuses, and malformed scope entries fail closed. Objective text is never copied into audit messages. Observer responses include the additive closed `evidence_fit` value, `direct` or `proxy`. Only a healthy installed direct observer may produce `coverage.state=covered`; a healthy proxy remains `uncovered/observer_proxy` with a server-authored explanation. Missing fit on older persisted observers is interpreted as proxy, so an upgrade cannot turn a weak correlated signal into an implicit protection claim. The model-facing proposal tool requires the fit, while objective create/update clients still cannot author it. Objective-triggered Patrol run and finding payloads retain an optional `objective_context` snapshot containing the exact objective/observer identity, revision, bounded desired-outcome text, affected canonical resources, local evidence, and observation time. This snapshot is model and audit context only; it is not an API-supplied approval, tool choice, policy factor, or execution credential. Older persisted runs and findings without the additive field remain valid. Patrol attention consumers may derive a resource-first display title from the canonical title and `subjectResourceName`, but that presentation must not rewrite the retained record or infer a different issue kind. The canonical `subjectResourceId` remains the route and copy value even when the browser hides the raw identifier from ordinary reading. Browser progressive disclosure may collapse evidence, protection posture, and lifecycle history, but it must not drop those typed fields or replace their server-authored trust state. Decision, finding, and approval counts remain distinct API projections and must not be presented as interchangeable totals. `subjectResourceId` and `subjectResourceType` also decide the browser's `Open resource` destination: the browser resolves the id through `GET /api/resources/{id}` for the subject's platform and falls back to the type hint, so both fields must keep naming the subject the alert or finding is about (an alert's `unifiedAlertType` display words are accepted as hints). Governed action audits are read the same way: the browser resolves `request.resourceId` through `GET /api/resources/{id}` for the action review's `Open resource` link and falls back to the audit's recorded `resource` name and type, so both must keep naming the resource the action acts on. The same resolution picks the thresholds tab and search behind the alert-only guidance link, so the registry resource's display label must stay the label the thresholds rows are built from (`getAlertResourceDisplayLabel`). The attention list's authenticated read contract is independent of Patrol's model-readiness and on/off state. `PatrolIntelligenceSurface.tsx` must not gate the attention transport or its canonical list on `shouldShowPatrolSetupOnly`; the setup task remains a separate runtime projection above it. This changes no attention route, response shape, token scope, or mutation authority. Physical-disk payloads preserve optional SMART counter presence, including explicit zero values, and expose provider vendor metadata without converting missing data into health. Unified-resource clients may request bounded server pages until the response's declared `totalPages` is exhausted; no client-side page ceiling may silently truncate a wide fleet. Disk history lookup resolves an exact canonical resource ID first and accepts a metrics target, serial, or WWN only when the match is unique and the hardware identifier is usable. Unified availability responses preserve one source-owned `network-endpoint` resource per configured target, including checks correlated to an existing machine. A correlated machine may carry the same check as an additive availability facet, but that projection is not availability-source ownership and must not suppress the endpoint from type filters, totals, REST reloads, or websocket snapshots. Plural machine projections use `availabilityChecks`; the singular `availability` field remains only a compatibility projection. Its workspace view comes from the `/patrol/` route segment, not a query parameter or component state, so no API payload carries or depends on the selected view. The API-owned Relay adapter projects every canonical alert that reaches the fired-dispatch callback into the governed Pulse Mobile push contract, subject to the Relay destination's persisted all-alert or critical-only floor. An ordinary alert carries the stable alert ID, generated `alert_fired` type, canonical severity, and existing `view_alert` action. A canonical external-probe outage retains the generated `external_probe_offline` type; a host-offline alert is eligible for that specialized type only when the host currently owns an enabled external-probe assignment. Both projections carry no infrastructure name, target, address, error text, or arbitrary alert metadata. `GET` and `PUT /api/settings/relay` expose `alert_minimum_severity` without exposing Relay secrets, and mixed persisted state normalizes to all-alert delivery unless critical-only was selected explicitly. `POST /api/agent-install-command` accepts an optional `insecure` boolean for Proxmox installer generation. When true, the returned command uses insecure TLS for the installer download and passes `--insecure` to the agent; omission or false preserves certificate verification. The server, not the browser, continues to mint and quote the enrollment token. Install-command credentials are monitoring-only unless the request explicitly selects command execution. Monitoring credentials require `agent:report` and `agent:config:read`; host collectors may additionally carry only `docker:report` and `kubernetes:report`. They carry no wildcard, operator, action, `agent:exec`, or `agent:manage` authority. Issuance and admission reject any role-marked credential outside that exact allowlist, while persisted-load migration durably removes historical excess authority before admitting the inventory. Explicit command-capable credentials add `agent:exec` only. Hosted PVE, PBS, and PMG commands do not infer execution authority from the target platform. Agent Doctor exposes the local command-authority profile and the server-derived credential execution scope as separate fields, and reports an over-scoped monitoring credential rather than hiding it behind the current command-enabled boolean. `POST /api/agents/collector/reduce-authority` is the authenticated, idempotent safe-profile migration boundary. Its JSON body identifies the caller's agent and canonical hostname; both must match the attached report credential and its organization. The transition rejects credentials missing the mandatory collector baseline, removes every scope outside the exact collector allowlist from that token, persists before success, restores the full token inventory on persistence failure, and invalidates only the exact matching collector session after persistence. A token bound only to a hostname carries no agent ID for that match until something names the agent. `POST /api/agents/agent/report` names it: when the reporting agent presented the same ID the response acknowledges in `agentId`, that ID is recorded on a hostname-bound token that has none, so a collector that never connected the command channel can still reduce its authority. The report request and response shapes are unchanged. `TestContractDeployEnrolledCollectorReducesItsAuthorityAfterItsFirstReport` in `internal/api/contract_test.go` pins report, then reduction. ### Saved-credential uninstall copy handoffs Existing installer, source-manager and removed Agent Doctor copy actions do not request an install token for removal. The composed operations hook carries canonical ID/hostname into the appropriate saved-state command family; no endpoint, payload, API-token scope, server removal authentication or identity matching changes. `infrastructureAgentDoctorModel.test.ts` composes every removed-platform handoff with the real command closure, preserving exact identity and keeping installation credentials out. The shared command proof executes a terminal-free Unix recorder and inspects explicit Windows parameter binding. Browser evidence is UI-only; server/native deregistration and Windows failure retention require their own owner result, not source acceptance. ### Chart caps select before wire conversion (24 October 2026) The existing time-nearest chart cap selects indices in the original series before allocating wire-format points. Its equal-time targets, latest-time tie break, first/last observations and degenerate-span index fallback are unchanged. No average, synthetic timestamp or new sampling policy is introduced; zero and selected extrema retain their exact values. Oldest-data metadata still examines every eligible source observation, including one omitted from display. Empty series remain empty and each converted response owns its point slices. The retained reader, LTTB stage, source/alias choice, scopes and cache budgets stay unchanged. `TestChartPointSelectionMatchesOriginalCap` compares the frozen former algorithm with both wire and source-point paths over mixed cadence, millisecond ties, negative epochs, unsorted/degenerate spans and caps from unlimited to one point. `TestContract_ChartIndexFallbackPreservesObservations` checks the exported fallback with equal-time, fractional, negative and explicit-zero observations. Source parity and consuming browser evidence remain separate acceptance obligations. ## Canonical Files 1a. `docs/API.md` 1b. `frontend-modern/public/docs/API.md` 1. `internal/api/contract_test.go` 1a. `internal/api/platform_connection_shared.go` 1b. `internal/api/metadata_handlers_shared.go` 1c. `internal/config/persistence_metadata_accessors.go` 2. `internal/api/resourceapi/resources.go` 2a. `internal/api/resources_compat.go` 2b. `internal/api/chartapi/service.go` 2c. `internal/api/chartapi/types.go` 4. `internal/api/alerting/alerts.go` 4a. `internal/api/attention_handlers.go` 4b. `internal/api/attention_receipts.go` 5. `internal/api/activity_audit_handlers.go` 5a. `pkg/extensions/audit_admin.go` 6. `internal/api/actions.go` 5a. `internal/api/action_executor.go` 5b. `internal/api/docker_container_action_executor.go` 5c. `internal/api/proxmox_guest_action_executor.go` 5d. `internal/api/proxmox_guest_action_observer.go` 5e. `internal/api/proxmox_guest_action_result.go` 5f. `internal/api/host_update_action_executor.go` 6a. `internal/actionlifecycle/service.go` 7. `internal/actionplanner/planner.go` 8. `pkg/pulsecli/api_client.go` 9. `pkg/pulsecli/actions.go` 10. `pkg/pulsecli/fleet.go` 11. `pkg/pulsecli/root.go` 12. `frontend-modern/src/types/api.ts` 12a. `frontend-modern/src/types/operationalTrust.ts` 12b. `frontend-modern/src/stores/websocket.ts` 12c. `frontend-modern/src/stores/__tests__/websocket-unified.test.ts` 12d. `internal/websocket/hub.go` 12e. `internal/websocket/state_delta.go` 12f. `internal/websocket/state_delta_test.go` 13. `frontend-modern/src/types/actionAudit.ts` 14. `frontend-modern/src/api/actionAudit.ts` 14a. `frontend-modern/src/api/patrolAttention.ts` 7a. `frontend-modern/src/api/resourceActions.ts` 7b. `frontend-modern/src/api/agentCapabilities.ts` 7c. `frontend-modern/src/api/generated/agentCapabilities.ts` 15. `frontend-modern/src/api/responseUtils.ts` 16. `frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx` 17. `frontend-modern/src/components/Settings/APITokenManager.tsx` 17. `frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx` 18. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` 19. `frontend-modern/src/constants/apiScopes.ts` 20. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` 21. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` 22. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` 23. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx` 24. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx` 25. `frontend-modern/src/components/Settings/nodeModalModel.ts` 26. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx` 27. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx` 28. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx` 29. `frontend-modern/src/components/Settings/useNodeModalState.ts` 30. `frontend-modern/src/utils/agentInstallCommand.ts` 31. `frontend-modern/src/api/nodes.ts` 32. `frontend-modern/src/api/license.ts` 23a. `frontend-modern/src/api/settings.ts` 23b. `frontend-modern/src/api/workloadHistoryActivity.ts` 33. `frontend-modern/src/api/monitoredSystemLedger.ts` 34. `frontend-modern/src/api/resources.ts` 35. `frontend-modern/src/api/monitoring.ts` 36. `internal/api/monitored_system_ledger.go` 36a. `internal/api/telemetry_workload_history.go` 37. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` 38. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts` 39. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts` 40. `frontend-modern/src/utils/apiTokenPresentation.ts` 41. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts` 42. `internal/api/router_routes_auth_security.go` 43. `internal/api/relay_hosted_runtime.go` 44. `internal/api/ai_hosted_runtime.go` 45. `internal/api/router_routes_licensing.go` 46. `internal/api/reporting_inventory_handlers.go`, `internal/api/report_schedules.go`, `internal/config/report_schedules.go` and the notification-owned delivery boundary in `internal/notifications/email_enhanced.go` 47. `internal/cloudcp/portal/bootstrap.go` 48. `internal/cloudcp/portal/handlers.go` 49. `internal/cloudcp/portal/page.go` 50. `internal/cloudcp/portal/page_templates.go` 51. `internal/cloudcp/portal/frontend/src/index.ts` 52. `internal/cloudcp/portal/frontend/src/shell.ts` 53. `internal/cloudcp/portal/frontend/src/billing.ts` 54. `internal/cloudcp/portal/frontend/src/runtime.ts` 55. `internal/cloudcp/portal/frontend/src/types.ts` 56. `internal/cloudcp/portal/frontend/src/styles.css` 57. `internal/cloudcp/portal/frontend/tsconfig.json` 58. `internal/cloudcp/portal/frontend_sync_test.go` 59. `internal/api/recovery_handlers.go` 51a. `internal/api/pbs_backups.go` 60. `internal/api/configapi/config_setup_handlers.go` 52a. `internal/api/configapi/setup_script_render.go` 52b. `internal/api/cloud_agent_install_command.go` 52c. `internal/api/configapi/config_handlers.go` 52d. `internal/api/configapi/config_node_handlers.go` 52e. `internal/api/configapi/config_system_handlers.go` 52f. `internal/api/configapi/config_discovery_handlers.go` 52g. `internal/api/configapi/config_export_import_handlers.go` 61. `internal/api/demo_mode_commercial.go` 62. `internal/api/demo_mode_operations.go` 63. `internal/api/security_status_capabilities.go` 64. `internal/api/demo_middleware.go` 65. `frontend-modern/src/stores/aiRuntimeState.ts` 66. `internal/api/connections_types.go` 66a. `internal/api/runtime_inventory_sources.go` 67. `internal/api/connections_aggregator.go` 68. `internal/api/connections_handlers.go` 69. `internal/api/connections_probe.go` 70. `frontend-modern/src/api/connections.ts` 70a. `frontend-modern/src/api/runtimeInventorySources.ts` 71. `frontend-modern/src/utils/connectionErrorPresentation.ts` 72. `internal/api/availability_handlers.go` 73. `frontend-modern/src/api/availabilityTargets.ts` 74. `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/AvailabilityTargetSlot.tsx` 65a. `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx` 65b. `frontend-modern/src/components/Settings/availabilitySettingsModel.ts` 75. `pkg/aicontracts/investigation.go` 66a. `pkg/aicontracts/orchestrator_deps.go` 66b. `pkg/aicontracts/fix_execution.go` 76. `internal/api/ai_intelligence_handlers.go` 77. `frontend-modern/src/api/ai.ts` 79. `frontend-modern/src/api/patrol.ts` 79a. `internal/api/patrol_objectives.go` 81. `internal/api/agent_exec_token_binding.go` 81a. `internal/api/agentbinding/policy.go` 81b. `internal/api/agenttokens/install.go` 81c. `internal/api/action_runner_credentials.go` 72a. `cmd/pulse-mcp/main.go` 72b. `cmd/pulse-mcp/README.md` 72c. `cmd/agent-probe/main.go` 72d. `scripts/generate-pulse-intelligence-docs.go` 82. `internal/agentcontext/` 73a. `internal/agentcapabilities/` 73b. `pkg/extensions/ai_autofix.go` 83. `scripts/generate-types.go` 83a. `internal/api/agent_fleet_doctor.go` 83b. `frontend-modern/src/api/agentDiagnostics.ts` 84. `internal/api/alerting/notification_queue.go` 84a. `internal/api/alerting/notifications.go` 84b. `internal/api/apicontext/` 84c. `internal/api/apihttp/` 85. `docs/release-control/v6/internal/MOBILE_COMPATIBILITY_MANIFEST.json` 86. `docs/release-control/v6/internal/mobile_compatibility_manifest.schema.json` 87. `scripts/release_control/generate_mobile_compatibility.py` 88. `scripts/release_control/mobile_compatibility.py` 89. `internal/api/relay_mobile_capability_generated.go` 90. `pulse-mobile:config/mobile-api-surface.json` 91. `pulse-mobile:src/generated/coreCompatibility.ts` 92. `pulse-mobile:src/api/coreMobileContract.ts` The alert and notification transports expose the operational-trust contract additively. Alert payloads may carry a typed operational record, latest transition, bounded transition timeline, and evidence envelopes. Notification queue and DLQ payloads may carry typed links back to those records and exact transitions. Older payloads without these optional fields remain readable; frontend consumers use `frontend-modern/src/types/operationalTrust.ts` as the single TypeScript projection rather than recreating lifecycle or evidence enums locally. `TransitionCause` includes `ownership_transferred` for a close whose condition another record now owns, such as a node metric handed to its Pulse agent; it may only enter `resolved`. Alert payloads (history, state snapshot and websocket) may also carry an optional `resolution` (`reason`, `successorResourceId`, `successorName`, and on state payloads the alert engine's `summary`), typed once as `AlertResolution` in `frontend-modern/src/types/api.ts`. Its absence means an ordinary recovery. Separately, an alert payload may carry a top-level optional `summary`: the message without the subject its resource name already gives ("Offline"). It is presentation copy for rows that show the resource, not a resolution account; `message` stays the full sentence, and clients without a summary show `message`. ## Shared Boundaries ### CLI API redirects retain their configured authority The existing authenticated `pulse fleet connections` and `pulse actions` commands reuse `agentcapabilities.DoAgentHTTPRequest` for standard HTTP clients. A redirect cannot widen the initial request's scheme, hostname, effective port or userinfo authority, including for replayable plan, decision and execution bodies. Same-origin proxy paths remain usable. The caller's TLS, timeout, cookie jar and stricter redirect policy are retained without mutation; custom HTTPDoers continue to own their transport policy. Off-origin refusal uses the fixed final-base-URL diagnostic, not destination paths or queries. Registered `api_redirect_test.go` exercises all seven commands across the five redirect statuses with default and supplied clients, and same-origin TLS reads/writes. `actions_test.go` retains stricter caller refusals and the original last-response behaviour. This does not change server-owned approval, execution, scopes, grants, API payloads or the rendered web interface. Scheduled reporting owns report generation, persisted attempts and scheduling. Notifications owns SMTP configuration validation, MIME construction, structured failure classification and the completed-message acceptance boundary. Report retries must consume those shared verdicts rather than parse SMTP prose or create another transport retry loop. - Quick security setup must synchronise the router-captured configurable authorizer when committing the local administrator identity, before establishing its session. The resulting Settings capabilities must grant both administrator-session surfaces and API Access/Pulse Intelligence permission surfaces without requiring a process restart. Permission checks and token scopes remain enforced for other identities. ### Notification recovery reload ownership Queue recovery routes retain stable handler objects across router reloads, but both router monitor replacement entry points refresh their queue owner. Missing monitor or notifier returns 503; successful post-reload stats, Retry and Dismiss use the replacement notifier. Existing method, administrator and token-scope gates are unchanged. `TestRouterSetMonitorRefreshesNotificationQueue` records the stopped-owner 503 regression and replacement-owner success. Canonical Patrol action hydration maps an expired action to `needs_attention` and preserves its exact action reference, original investigation prose and retained finding evidence. An expired proposal creates no execution or verification evidence. Hydration repairs the investigation and durable finding record from the same authoritative audit and does not publish duplicate updates. The API regression for expired hydration covers missed callbacks and unchanged historical evidence. The linked action remains discoverable after its outcome stops being queued. ### Independent Docker update readback `dockerContainerUpdateExecutionResult` must not promote replacement-ID equality alone to independent confirmation. The daemon observation must match the agent readback's state and running flag; running replacements additionally require state `running` and health `healthy` or `none`. A deliberately stopped replacement remains confirmable without being started. Missing agent readback or its state leaves independent verification inconclusive. Contradictory readback changes verification, not the recorded execution or compensation. No wire schema or mutation authority changes. Verification: `TestDockerContainerUpdateIndependentObservationMustMatchState` in `internal/api/docker_container_action_result_test.go` covers running, stopped, restarting, unhealthy, unknown health and absent readback cases. GET /api/security/status includes currentUsername in authenticated and privileged responses, derived from the validated authentication snapshot rather than configured administrator identity. Public login discovery omits it. The field is identity only: it does not grant instance-settings authority or change token scopes. Scoped local sessions retain this identity when privileged authUsername is withheld. Commercial migration payloads are a shared API/cloud-paid contract. The license-server client must preserve canonical v6 nested error-envelope codes such as `RENEWED_KEY_AVAILABLE`, and commercial posture payloads may carry `commercial_migration.first_failed_at` so the backend can distinguish a short transport outage from sustained blocked egress without changing retry cadence. Browser API types and presentation helpers must treat `exchange_stale_key` plus `retrieve_current_key` and `exchange_connectivity_required` plus `allow_license_egress` as explicit migration states rather than inferring them from HTTP status alone. Ordinary non-release mock mode uses isolated synthetic persistence, so startup must not send a persisted mock JWT to the configured commercial exchange or publish a stale `commercial_migration` failure from that synthetic key. Explicit license-panel activation remains the opt-in path for deliberate migration tests. Customer license invalidation is also a shared API/cloud-paid contract. Customer Pulse may call `POST /v1/grants/status` only with its encrypted installation token and installation/fingerprint binding; it must never receive or use the operator-wide Relay revocation-feed credential. The successful response carries authoritative license version, refresh-required state, and bounded cadence hints but no grant or cross-customer event data. Pulse refreshes through the signed-grant endpoint only for a newer version, clears activation only for explicit token/installation/license revocation codes, removes paid entitlements but preserves scoped recovery authority for explicit suspension, and exposes only non-secret synchronization health in `/api/license/status`. `GET /api/connections` consumes the agent desired-config contract for fleet governance. When it derives `fleet.commandPolicy`, `fleet.configDrift`, and rollout state, it must compare the agent-applied report with the effective desired config after token command-execution gates have been applied, not the raw profile or metadata desire. A profile that wants commands enabled but is served to a runtime token without an allowed `agent:exec` binding is desired-disabled for the connections payload, matching `/api/agents/agent/{id}/config` and agent report responses. The internal connection-to-alert snapshot also carries the platform monitor's resource ID separately from the public connection-row ID. Alert policy lookup must resolve that source identity through the unified registry so a PBS or PMG offline override saved under the registry resource cannot be bypassed by the ledger's `pbs:` or `pmg:` display identity. PVE setup API consumers, generated scripts, runtime setup, installer setup, and browser manual guidance must share one `PulseMonitor` privilege contract: prefer `VM.GuestAgent.Audit` plus `VM.GuestAgent.FileRead` on PVE 9+, and use legacy `VM.Monitor` only as the PVE 8 fallback when guest-agent privileges are unavailable. Mobile onboarding QR/deep-link payload readiness is a shared backend/frontend contract. `internal/api/onboarding_handlers.go` owns the `409 onboarding_not_ready` diagnostic response when Remote Access, relay registration, or the dedicated Pulse Mobile credential is incomplete, while `frontend-modern/src/api/onboarding.ts` and relay settings consumers may only surface those diagnostics and must not synthesize partial pairing payloads. The `instance_url` Pulse web handoff field is optional and may only be emitted when the resolved Pulse URL is an absolute `https://` URL; non-HTTPS admin URLs must be omitted from QR/deep-link payloads with a warning diagnostic so mobile pairing does not fail on a web-handoff-only field. The complete Pulse-to-mobile boundary is governed by `MOBILE_COMPATIBILITY_MANIFEST.json`, not by parallel route strings in each repository. It classifies every declared capability as `mobile-required`, `mobile-handoff-only`, or `desktop-only`; owns route methods, compatible token scopes, required request/response fields, pairing data, and push navigation; and generates both the Go runtime inventory and Pulse Mobile TypeScript projection. `pulse-mobile:config/mobile-api-surface.json` is the consumer minimum and released-line probe declaration. Canonical Private Governance must compare that consumer against the exact Pulse manifest and retain revision-bound evidence. Pulse Mobile's OTA gate separately proves the app against server lines already in customers' hands. Proxy-auth administrator evaluation is a shared auth/API contract. Once `PROXY_AUTH_ROLE_HEADER` is configured, `internal/api/auth.go` must treat a valid proxy-auth user with a missing or blank role header as authenticated but non-admin, and only an explicit admin role may pass admin gates. An unset `PROXY_AUTH_ADMIN_ROLE` resolves to `config.DefaultProxyAuthAdminRole` and must never disable role gating: `CheckProxyAuth` is the single admin verdict every proxy-auth gate consumes, so a half-configured role header would otherwise promote every proxied user to administrator across all of them. Installations that intentionally make every proxy-authenticated user an admin must do that by leaving the role header unset and protecting Pulse at the proxy/IdP layer. Local credential auth reads are also part of this shared boundary. Handlers in `internal/api/auth.go` and `internal/api/router.go` that compare `AuthUser` and `AuthPass` must snapshot those mutable config fields while holding `config.Mu.RLock()` before running constant-time username or password-hash checks. CSRF bootstrap checks may snapshot local auth, API-token, and proxy secret presence under that same lock, then evaluate SSO provider state outside the config lock. WebSocket state refreshes triggered by API handlers are invalidation signals, not a parallel API payload contract. `internal/api/agent_handlers_base.go` and `internal/api/alerting/alerts.go` may check subscriber counts, then call `BroadcastCurrentState` / `BroadcastCurrentStateToTenant`; they must not build or retain full frontend-state payloads at the handler boundary. The WebSocket hub owns tenant-aware state resolution after coalescing, through the same state getter that backs the canonical `/api/state` payload. The hub must serialize whole-state resolution across coalesced broadcasts, initial-client delivery, and explicit client data requests. Initial hydration and explicit resync return the complete canonical state; subsequent invalidation broadcasts must derive ordered, per-client resource merge patches from that same resolved state, including explicit removals and resource order, instead of repeatedly serialising the whole resource graph. A delta may be sent only after that client has accepted its full baseline, and the baseline may advance only after the ordered client queue accepts the delta. The frontend must apply JSON Merge Patch deletion semantics, preserve unchanged resource fields, and retain support for complete `rawData` snapshots during resync. The hub must cancel delayed or queued work when its client leaves and join every state producer before closing client channels. Reconnect, request, or invalidation churn must not multiply concurrent clones of that canonical payload or race shutdown sends against channel closure. A client's lifecycle cancellation signal must be initialized and read through one synchronized owner before registration, requested-state work, delayed initial-state delivery, or disconnect may race over it; every path must observe the same stable signal. Ordinary unregister and slow-client eviction must use the same synchronized send/close ownership; recovering a send-on-closed panic is not a substitute for a race-free channel lifecycle. Invalidation coalescing is a throttle, not a restart-on-signal debounce. The first invalidation after a quiet period broadcasts after the 100 ms coalesce window; later invalidations for the same audience (all clients, or one tenant) replace the pending request without rescheduling it, and are broadcast no sooner than `defaultStateBroadcastInterval` (2 seconds) after that audience's previous broadcast. Every accepted agent report sends an invalidation and each broadcast resolves and diffs the full frontend state (about 130 ms at 2,080 synthetic resources), so the debounce let broadcast work scale with agent count, and signals closer together than the window could postpone broadcasts indefinitely (#2199). `TestStateBroadcastsSpacedByInterval`, `TestTenantStateBroadcastsSpacedByInterval`, and `TestStateBroadcastNotStarvedBySteadySignals` pin the spacing, latest-state, and no-starvation behaviour. Browser clients declare their inbound state-frame ceiling on the WebSocket upgrade URL before initial-state construction begins. If a complete snapshot or a later delta exceeds that ceiling, the hub sends a compact `stateTooLarge` marker, clears the per-client delta snapshot, and enters baseline-free REST recovery. It must not advance the baseline to the withheld state: `GET /api/state` is constructed later and is not provably byte- or revision-identical. While recovery is active, coalesced state invalidations produce markers rather than deltas. The frontend may use each REST response as a complete display snapshot, with one throttled trailing refresh for markers that arrive during hydration, but only a complete state payload actually delivered on that WebSocket connection may re-establish its delta baseline. Clients and servers that predate negotiation retain the existing full-frame path; a new client that locally drops such a legacy oversized frame must stay delta-free and use the same throttled REST recovery for that connection. Docker and Podman app-container CPU payloads expose two API facts with different meanings: canonical resource metrics and `/api/metrics-store/history` CPU fallback points use host-capacity-normalized percent, while Docker metadata may expose runtime-native per-core CPU percent plus the host CPU count as raw diagnostic evidence. API consumers must not treat raw per-core CPU as the threshold, chart, or canonical resource CPU value. Proxmox legacy model CPU fields have the inverse compatibility shape: `models.Node.CPU`, `models.VM.CPU`, and `models.Container.CPU` remain 0..1 ratios, but `/api/metrics-store/history` live fallback points must convert those ratios to 0..100 chart percentages before serialization. Proxmox VM and system-container chart payloads add a `memoryused` byte series beside the existing guest-relative `memory` percentage series. Consumers that present memory against a host denominator must derive that trend from `memoryused`; they must not relabel the percentage series. Candidate import plans for PVE/PBS/PMG onboarding are API-contract consumers, not local UI estimates. Probe and Discovery candidates must build their preview through `frontend-modern/src/api/monitoredSystemLedger.ts` and `POST /api/license/monitored-system-ledger/preview`, preserving source, resource type, name, hostname, host URL, and resource id in the request. The frontend may render the preview and approval state, but it must not persist a candidate or call node setup/save APIs until the operator has approved the current endpoint, credential path, and collection scope. Assistant chat `workflow_state` events are a shared AI/API payload boundary. The backend source of truth is `internal/ai/chat.WorkflowStateData`, pinned by `internal/api/contract_test.go`; the browser's generated TypeScript projection left with the Assistant chat window on 2026-10-22. The done event (`internal/ai/chat.DoneData`) follows the same contract and carries, alongside token usage and `context_limit_tokens`, an optional `session_cost_usd`: the backend-estimated cumulative session spend summed from the operator cost ledger. It is omitted (not zero) whenever any of the session's recorded models has unknown pricing, so clients must treat absence as "no honest figure" and must not substitute a client-side pricing table. Agent capabilities manifest payloads follow the same rule: `internal/agentcapabilities.Manifest`, `Capability`, `CapabilityCategory`, `SurfaceContract`, `SurfaceContractComponent`, `OperatorSurfaceContract`, `SurfaceAffordanceContract`, `MCPAdapterContract`, and `MCPAdapterConfigFamily` generate `frontend-modern/src/api/generated/agentCapabilities.ts`; the shared frontend client must alias those generated types instead of redeclaring a browser-local manifest model. The manifest-owned `surfaceContract` is the canonical API statement that Pulse Intelligence Core is shared, Pulse Patrol is the primary built-in operator, and Pulse Assistant plus Pulse MCP are the supported access paths over the same governed capabilities, including the affordances each path exposes. The Patrol surface description is also manifest-owned product copy; API clients, docs, and settings projections must render the concise policy-bound operator summary from the manifest instead of carrying local control-level prose. The manifest-owned `mcpAdapter` is the canonical API statement for Pulse MCP client setup facts: server name, command, base URL flag/default, token environment variable, and supported client config families. UI and docs may compose copy around those facts, but they must not carry component-local or README-local setup constants. Manifest-backed MCP initialize responses must render that relationship from `Manifest.SurfaceContract` rather than hard-coded adapter prose. Native Assistant operating instructions must use the same shared renderer, with surface-specific affordance flags controlling only whether tools, resources, prompts, capability metadata, and Assistant-native interactive questions are advertised. MCP initialize responses and JSON-RPC handlers must resolve those surface affordances before advertising or serving tools, resources, prompts, or capability metadata; raw manifest capability and prompt presence can satisfy an allowed affordance, but cannot enable a disabled surface affordance. Prompt advertising and serving must use `MCPManifestSurfacePromptProjectionSupported` and `GetMCPPromptFromManifestSurface` so the target surface's `prompts` affordance and the manifest-owned workflow prompt catalogue are resolved together before initialize, `prompts/list`, or `prompts/get` exposes prompts. The Pulse Intelligence manifest docs generator must also render the MCP README surface-contract block from `Manifest.SurfaceContract` and the MCP client config block from `Manifest.MCPAdapter`; scope, tool, prompt, error-code, and Assistant/MCP/Core/Patrol relationship docs are all API-manifest projections, not parallel onboarding snapshots. Workflow-prompt rendering is a canonical API projection of that same manifest. MCP `prompts/list` projects the manifest labels as protocol prompt titles and MCP `prompts/get` renders through the shared workflow-prompt core in `internal/agentcapabilities`. The authenticated `POST /api/ai/workflow-prompts/render` route that rendered starters for the browser Assistant was removed on 2026-10-23, after the chat window that called it was retired; no client may render prompt templates locally. Successful workflow prompt rendering is also the API boundary for content-free guided-starter activity: activity records carry only the manifest prompt name, coarse surface, and timestamp; first-party Pulse app surfaces that start the same governed journey without rendering prompt text may record through authenticated `POST /api/ai/workflow-prompts/activity`; and MCP adapters that render prompts locally may report the same event through `POST /api/agent/workflow-prompt-activity`. The first-party marker route is an authenticated `ai:chat` route owned by `internal/api/ai_handler.go` and `internal/api/router_routes_ai_relay.go`; it accepts one JSON object with a manifest-declared prompt name plus an optional first-party surface, allows only `pulse_assistant`, `pulse_patrol`, `patrol_control`, `patrol_autonomy`, and the legacy `pulse_pro_activation` alias, defaults omitted surface to `pulse_assistant`, rejects unknown prompts or non-first-party surfaces, and returns no payload. `pulse_patrol` is the ordinary first-party Patrol entry marker, while `patrol_control` is the current paid Patrol control handoff marker for the same manifest-owned Patrol work prompt. `patrol_autonomy` and `pulse_pro_activation` remain legacy Pro activation entry-point aliases for compatibility only; none of these surfaces is a separate prompt, route, Assistant surface, or completion proof. The browser-only paid Patrol control handoff may carry the coarse `patrolControlStarter=patrol_control` route query so Patrol can record that same marker after navigation. The old `operationsLoopStarter=patrol_control`, `operationsLoopStarter=patrol_autonomy`, and `operationsLoopStarter=pulse_pro_activation` values must remain accepted as legacy aliases that normalize to the current Patrol control starter, but those queries are not API payload fields and may not contain prompt arguments, resource IDs, finding IDs, account identity, token identity, or terminal proof. Consuming that route handoff must still enter the authenticated first-party marker route described here before any status projection treats it as Patrol control starter evidence. Operations status projections count `pulse_patrol`, `patrol_control`, legacy `patrol_autonomy`, and legacy `pulse_pro_activation` as Patrol control starter evidence, while `proActivationOperationsLoopStarterCount` preserves only the legacy Pro activation entry-point count. The agent marker route is an authenticated `monitoring:read` API-token route, accepts only one JSON object with a manifest-declared prompt name, normalizes the `X-Pulse-Agent-Surface` value `pulse_mcp` to the Pulse MCP surface, and must reject unknown prompts without recording activity. Neither route may accept or persist prompt arguments, rendered text, resource IDs, finding IDs, session IDs, token identity, request bodies, or model output. Telemetry preview and outbound ping payloads project that same content-free activity into 30-day Patrol work starter counters: one total starter count plus source-specific Assistant, Pulse Patrol, primary Patrol control, legacy Pro activation entry-point, and Pulse MCP counts. Those payload fields are API-contract fields for adoption/value measurement only; they must not carry prompt text, prompt arguments, resource/finding identity, session identity, checkout/account identity, or request details. `GET /api/agent/patrol-control/status` owns the shared content-safe Patrol control value state exposed to native Pulse and MCP-facing agents. The legacy `GET /api/agent/operations-loop/status` URL remains a compatibility alias, not the primary route: `not_started`, `in_progress`, `governed_decision_recorded`, `verified_needs_mcp`, and `verified`. `verified_needs_mcp` remains a tolerated legacy value for older payloads, but MCP readiness is no longer a Patrol control value gate. Counts remain the aggregate evidence source, while `patrolControlValueState` is the canonical branch signal for distinguishing a safe terminal rejection from a verified operations-value outcome. `patrolAutonomyValueState` and `proActivationValueProofState` mirror that value as compatibility aliases for older commercial and telemetry consumers. Only `verified` means the first-party Patrol control loop has approved-governed action, verified outcome proof, and recorded action history; adjacent UI or agent clients must not infer that from `nextAction=complete` alone. Current-work precedence is part of that same contract: `activeFindingCount` must include aggregate active issue-level findings from the canonical Patrol findings store, including runtime/service findings that are not attached to a unified registry resource. Pending approvals and active findings are current operator work and must outrank older completed/resolved loop proof when the route chooses `nextAction` and step status. Historical Patrol control proof remains recorded as count-only value evidence, but it must render as history until the current finding or approval is handled. Browser presentation labels the route `Patrol` and may label the default queue `Open work`, but those labels are chrome over this existing status/finding/approval contract; they are not new API fields, prompt payloads, or alternate current-work schemas. Shell navigation may derive separate content-free counts from the existing read models. The `Patrol` badge may show the active Patrol finding count, while the peer `Actions` badge may show the durable action-inbox pending-approval count. This is presentation over existing read models, not a new API route or status field. It must not include finding IDs, approval IDs, resource names, commands, prompt text, or model output in visible chrome, and must not replace the detail-owning Patrol findings, durable action inbox, approval, run-history, or status routes. The Patrol surface may expose a compact Actions handoff, but the durable `/actions` route continues to own the complete record list and review controls. The authenticated `GET /api/agent/patrol-control/status` projection exposes the same content-free starter evidence as count-only fields (`operationsLoopStarterCount`, `assistantOperationsLoopStarterCount`, `patrolOperationsLoopStarterCount`, `patrolControlOperationsLoopStarterCount`, `patrolControlCompletedOperationsLoopCount`, `patrolControlResolvedOperationsLoopCount`, `patrolControlValueState`, `patrolAutonomyOperationsLoopStarterCount`, `patrolAutonomyCompletedOperationsLoopCount`, `patrolAutonomyResolvedOperationsLoopCount`, `patrolAutonomyValueState`, `proActivationOperationsLoopStarterCount`, `proActivationCompletedOperationsLoopCount`, `proActivationResolvedOperationsLoopCount`, and `mcpOperationsLoopStarterCount`) inside the status evidence window. These fields are orientation/adoption evidence for Assistant, Patrol control, older compatibility clients, and MCP loop entry points. `patrolControlOperationsLoopStarterCount` is the primary starter count for native Pulse Patrol and Patrol control starts, while `patrolAutonomyOperationsLoopStarterCount` mirrors it for compatibility and `proActivationOperationsLoopStarterCount` is retained only for older external-agent clients; primary clients must use `patrolControlOperationsLoopStarterCount`. Only the completed-loop and resolved-loop counts may summarize that first-party starter evidence and terminal loop evidence coexisted in the current evidence window. `patrolControlCompletedOperationsLoopCount` requires Patrol issue evidence, contextual Assistant or external-agent collaboration, and either a rejected governed decision or an approved governed decision with verified outcome proof. `patrolControlResolvedOperationsLoopCount` is stricter: it requires Patrol issue evidence, contextual Assistant or external-agent collaboration, an approved governed decision, and verified outcome proof. The completed-loop, resolved-loop, and value-state `patrolAutonomy*` and `proActivation*` fields are compatibility aliases for the same Patrol control proof model; human-facing manifest descriptions and external-agent docs must describe all of these fields as Patrol control compatibility metadata rather than a Pro activation journey. The `internal/telemetry.ClassifyPulseIntelligencePatrolControlProof` helper is the canonical count-only classifier for those completed/resolved counts and the `patrolControlValueState` string; API status projections and outbound telemetry/adoption projections must call that helper or its legacy alias wrapper instead of restating the branch rules locally, and must not pass `externalAgentReady` into that classifier because MCP readiness is not a Patrol control proof input. The `externalAgentReady` field is not manifest-shape readiness by itself: the route must first prove the Pulse MCP Patrol work contract exists in the canonical manifest and then require a single non-expired API token covering every scope required by the published Pulse MCP Patrol work capability set. It is optional external-agent readiness for settings handoff and MCP clients, not a completed/resolved Patrol control proof requirement. They must not expose prompt names, surfaces, identities, payloads, checkout/account identity, route parameters, action IDs, command text, resource names, or finding IDs, and they do not replace the detail-owning Assistant, Patrol, governed-action, verification, or finding-resolution routes. The public `docs/AI.md` Pulse Intelligence overview must use the same API projection: its marked Core/Patrol/Assistant/MCP block is rendered by `PulseIntelligenceOverviewMarkdown(Manifest.SurfaceContract)`, while surrounding product detail may stay human-authored. The External agents settings panel is part of the same API projection: its surface summary must consume the generated frontend manifest types and `/api/agent/capabilities.surfaceContract` through `frontend-modern/src/api/agentCapabilities.ts` instead of repeating Assistant/MCP/Core/Patrol relationship copy or affordance labels in the component. Its MCP client examples and copied config snippets must also consume `/api/agent/capabilities.mcpAdapter` through that same shared frontend client; the component must not own local `pulse-mcp`, `--base-url`, token-env, or client-family constants, and copied config snippets should be available only inside an on-demand setup disclosure rather than becoming the default API Access page content. The public investigation orchestrator dependency contract in `pkg/aicontracts/orchestrator_deps.go` is also part of this shared boundary: orchestrator tool-call and tool-result payloads must bridge to the shared `agentcapabilities.ProviderToolCall` / `ProviderToolResult` shapes through the `aicontracts` projection helpers, preserving Assistant/MCP input-map, thought-signature, and provider-result normalization instead of duplicating local payload copies in API handlers. The API contract proof for native Assistant provider tools follows the same shared-boundary rule: chat-facing API tests must pin `PulseToolExecutor.AssistantProviderTools` as the single native Assistant provider-tool projection entrypoint, while the executor owns the manifest surface-affordance gate and the pairing of runtime-available registry tools, registry governance descriptors, and Assistant-native interaction tools before provider requests are assembled. Surface tool inventories are a shared Pulse Intelligence API contract rather than a UI or adapter inference. `internal/agentcapabilities.SurfaceToolContract` and `ProjectPulseIntelligenceSurfaceToolContracts` must describe Pulse Assistant tools as `assistant_registry` sourced provider tools, splitting registry-backed tools from Assistant-native interaction tools such as `pulse_question`. The shared `pulse_question` declaration (`NewPulseQuestionProviderTool`) must keep its scope boundary in the tool description itself: structured clarification is for preferences, risky choices, and ambiguity between named options, and must never be used to ask the operator for internal identifiers (resource IDs, UUIDs) that read-only tools can resolve — small local models otherwise convert missing-required-argument tool failures into identifier elicitations aimed at first-run users (`TestNewPulseQuestionProviderToolBuildsSharedAssistantTool` pins the prohibition string). Manifest-declared external-adapter tools are `capability_manifest` sourced request/response capabilities projected from `Manifest.Capabilities` by `ProjectManifestSurfaceToolContracts` and published on `Manifest.SurfaceToolContracts`. External surfaces, including Pulse MCP, must resolve through the surface-generic manifest contract path and must fail closed when their published `surfaceToolContracts` entry is missing. Native Assistant provider-tool projection must enter through `ProjectPulseAssistantProviderTools`, so disabled Assistant affordances also fail closed instead of letting runtime registry availability re-enable provider tools. The two surfaces therefore share governance vocabulary and core execution contracts without pretending their tool-name lists are interchangeable. The frontend-facing contract type must be generated from that same Go shape (`frontend-modern/src/api/generated/agentCapabilities.ts`) and re-exported by the shared agent-capabilities client. Do not hand-write a parallel frontend copy. Runtime surface-tool normalization and count/presentation helpers also belong in `frontend-modern/src/api/agentCapabilities.ts`, so native Assistant UI, MCP onboarding surfaces, and future agent-compatible surfaces do not infer tool availability from local tool-name lists. Do not expose live Assistant registry availability through the public, cacheable `/api/agent/capabilities` manifest; the authenticated `GET /api/ai/assistant/surface-tools` endpoint that served it to the browser Assistant was removed on 2026-10-23 with the retired chat window, and no client renders runtime Assistant tool posture. Clients must not hard-code registry tool names or treat MCP capability names as native Assistant tools. The Agent integrations panel may render MCP tool posture from the static public manifest, but the request/response capability filtering and `SurfaceToolContract` construction must be backend-owned in `Manifest.SurfaceToolContracts`; the generic `getAgentManifestSurfaceToolContract(manifest, AGENT_SURFACE_ID_PULSE_MCP)` frontend client path may normalize only that published manifest field. Missing `surfaceToolContracts` entries must not cause the browser to infer MCP tools from raw capabilities. The panel must not know the streaming-only `subscribe_events` exception, call a per-surface projection alias, or maintain a local MCP tool count. The shared frontend client must not export a Pulse-MCP-specific surface tool helper; MCP onboarding uses the generic surface resolver with `AGENT_SURFACE_ID_PULSE_MCP` so future external surfaces do not require browser-side helper duplication. Frontend surfaces that need to know whether Pulse MCP exposes the full Patrol work loop must derive that readiness through the shared agent-capabilities client from the manifest-owned operations-loop workflow prompt, MCP adapter contract, and Pulse MCP surface tool contract rather than hard-coding readiness in the consuming component. The Patrol work capability set includes the content-safe `get_patrol_control_status` capability as the first orientation read, followed by fleet context, resource context, findings, governed action planning, action decision, action execution, and finding resolution; readiness helpers, workflow-prompt gates, and MCP surface projections must consume that one shared set instead of maintaining local loop-tool lists. Native Patrol surfaces that need the current loop evidence must call the authenticated `GET /api/agent/patrol-control/status` route through `frontend-modern/src/api/agentCapabilities.ts`, not through a Patrol-local fetcher or a browser-side reconstruction of agent capability progress. First-party Patrol presentation may tolerate legacy `open_mcp` and `verified_needs_mcp` payloads as already verified operator-loop history, and it may show `externalAgentReady` only as optional external-agent context. Patrol current-work state/model must not fetch the manifest to derive MCP readiness, accept MCP readiness props, or introduce a page-local MCP readiness contract. First-party Patrol UI may present that projection as Patrol current work, but the authenticated route, query compatibility aliases, and generated wire fields remain the `operations-loop` contract until a deliberate API migration changes them. Backend consumers that need an external surface's request/response capability set must resolve it through `ResolveManifestSurfaceToolContract` and `ManifestSurfaceToolCapabilities`, not by reading raw `surfaceToolContracts` entries directly; that shared path normalizes `CapabilityNames`/`ToolNames`, filters non-request/response capabilities, and enforces the resolved surface `tools` affordance before docs, adapters, or UI projections see any tools. Provider retry progress must use typed fields (`attempt`, `max_attempts`, `retry_after_ms`) on that same event instead of frontend-only string parsing or provider-specific ad hoc events; clients may format those fields, but must not invent retry progress that the stream contract did not carry. Assistant `provider_start` status text must remain route-neutral (`Waiting for assistant.`) while selected route identity travels through the typed `provider` and `model` fields. `provider_retry` status text must describe a selected-route retry, not a provider fallback or hidden route switch. Assistant chat stream payloads must not expose automatic provider fallback metadata: `workflow_state` may carry the selected `provider` and `model` plus same-route retry fields, but `provider_fallback`, `failed_provider`, `failed_model`, `next_provider`, and `next_model` are retired from the stream event contract. Cross-route recovery belongs to explicit failed-turn actions, not hidden `/api/ai/chat` stream mutation. Assistant session summarization (`POST /api/ai/sessions/{id}/summarize` and its `ChatSessionCompactionResult`) was removed on 2026-10-23 with the browser Assistant, its only caller. Infrastructure settings copied agent commands are a shared API/payload boundary even when the final command string is assembled in the browser. Selected-row upgrade commands may carry fresh token and identity fields when the operator is rerunning a known install command for a specific connection, but stale-agent update commands opened from platform notices must not serialize API tokens, agent IDs, or hostnames into Unix shell payloads. Those commands route through the `agentUpdates` settings query for scoped row selection and then call the installer-owned `scripts/install.sh --update` saved-state path on the target host. Stale-agent UI must consume `/api/version`'s `agentUpdateTargetVersion`, not the app build `version`, so development/source builds that intentionally report `dev` to agents do not surface update nags when no real agent update target exists. Windows remains on the existing token-gated PowerShell payload until its installer owns the same saved-state update contract. This exclusion also covers build-injected diagnostic metadata and explicit source-build markers. `/api/version` preserves the full diagnostic version, sets `isSourceBuild`, and omits both `channel` and `agentUpdateTargetVersion`. `TestHandleVersionBuildIdentityContract` exercises the actual handler response for a release, a diagnostic build, and a marker-declared source build. Summary-chart response caching is a shared API boundary: `internal/api/chartapi/service.go` may serve a short cached JSON payload for repeated infrastructure-summary and per-workload chart requests with the same organization, range, metric set, and workload scope, but that cache is transport-only. It may amortize polling and remount cost, but it must not change normalized response shape, answer for a tenant whose monitor is unavailable, merge tenants, or become the source of truth for telemetry freshness. The infrastructure route resolves read-state before it reads its cache; the per-workload route checks read-state only when it recomputes, so a cached workload payload can outlive a read-state outage by at most its 3-second TTL. Infrastructure-summary and per-workload chart payloads must share one bounded retention budget across query variants: no more than 64 entries or 16 MiB of encoded payloads. Inserts must purge expired variants and evict the oldest retained payloads as either bound is reached; a response larger than the byte budget may still use in-flight singleflight deduplication but must not be retained after the request completes. Router-owned unified-resource adapter construction is also transport wiring, not an API-local health model. When `internal/api/router.go` creates default or tenant monitor adapters, it must pass the effective monitor configuration into monitoring-owned source freshness derivation so `/api/resources`, summaries, and Assistant resource providers observe the same Proxmox/PBS/PMG stale thresholds as the live monitor. API handlers must not hard-code source stale windows or reinterpret between-poll source freshness as workload degradation. The `/api/resources` type filter is the REST contract boundary for platform page native inventory. It must accept canonical Docker / Podman runtime tokens (`docker-image`, `docker-volume`, `docker-network`, `docker-task`, `docker-swarm-node`, `docker-secret`, `docker-config`) and canonical Kubernetes API object tokens (`k8s-namespace`, `k8s-service`, `k8s-replicaset`, `k8s-statefulset`, `k8s-daemonset`, `k8s-job`, `k8s-cronjob`, `k8s-ingress`, `k8s-endpoint-slice`, `k8s-network-policy`, `k8s-persistent-volume`, `k8s-persistent-volume-claim`, `k8s-storage-class`, `k8s-configmap`, `k8s-secret`, `k8s-serviceaccount`, `k8s-role`, `k8s-cluster-role`, `k8s-role-binding`, `k8s-cluster-role-binding`, `k8s-resource-quota`, `k8s-limit-range`, `k8s-pod-disruption-budget`, `k8s-horizontal-pod-autoscaler`, `k8s-event`) whenever unified resources can publish those records. RBAC tokens (`k8s-role`, `k8s-cluster-role`, `k8s-role-binding`, `k8s-cluster-role-binding`) accept singular and plural aliases identically to the rest of the K8s type allow-list, and the resource payload carries summary RBAC fields only (rule count, role kind / role name, subject count, subject Kinds, ClusterRole aggregation labels) — full PolicyRule contents and individual subject names are not exposed through any API surface. Docker node and Swarm node aliases may normalize to the canonical `docker-swarm-node` token, and Swarm secret/config aliases may normalize to `docker-secret` and `docker-config`, but unsupported legacy aliases should continue to fail closed instead of silently widening platform queries. For Proxmox-authored VM and system-container resources, `/api/resources` also owns the workload action/discovery target coordinates. The payload may emit `discoveryTarget` for those workloads only when unified resources has linked the Proxmox node parent to a stable Pulse agent ID; `agentId` is that linked agent ID, not the Proxmox node display name. Clients must not infer a Proxmox workload action target from `node` plus `vmid` when the backend omits that target. Source-specific backup artifact routes are canonical API payload boundaries. `/api/backups/pve` owns Proxmox VE task, storage-archive, and guest-snapshot collections. `/api/backups/pbs` owns Proxmox Backup Server artifacts and must carry the PBS-authored `models.PBSBackup` fields, including datastore, namespace, backup type, VMID, backup time, size, protection, verification, files, owner, and comment. Recovery history may index those artifacts, but it must not be the only API path for PBS protection or verification state when a platform page needs source-native backup columns. `/api/backups/jobs` owns summarized PVE backup job outcomes for the Backups page: counts for the last 24 hours and for each of the last 14 days in the viewer's `timezone` (an IANA name; anything unreadable is UTC), with a `historyState` of `complete`, `partial`, `not_observed` or `unavailable` on the window and on every day. It is built by `recovery.BuildBackupHealth` from retained `pve-task:` history and its collection coverage, the authority behind the backup health report, never from the live `/api/backups/pve` task list, which spans only the latest collection window. Failures name the workload and outcome only; provider error text stays out of this summary. Unreadable history reports `unavailable` and zero counts, never a clean window. Only Proxmox VE guests are rated, so another platform's VMs cannot mark every day partial. Windows end at the oldest latest observation when every rated instance was polled within 30 minutes (coverage ends at the last completed poll, so "now" would read partial on every healthy install), and only tasks that started or finished inside a window count there. Mock mode maps the fixture tasks the same way and treats every rated instance as observed. Hosted workspace handoff exchange is a canonical API/session payload boundary. `/api/cloud/handoff/exchange` may redirect to a tenant-local target path only when that path is carried in the signed control-plane JWT as `target_path`. The exchange must ignore unsigned request-form or query redirect targets, sanitize the signed target as a same-origin local path, fall back to `/` when the claim is absent or unsafe, and include `target_path` in JSON responses only after the same sanitization. This lets Pulse Account deep-link an MSP operator to tenant-owned destinations such as agent installation or reporting without turning the tenant exchange into an open redirect or moving API ownership for agent tokens, alerts, or reports into the control plane. Hosted tenant agent install commands are a canonical tenant-runtime API payload boundary. The hosted route and its reusable command helper must produce the same PVE/PBS install command shape while preserving tenant-local token persistence, org binding, token metadata, and already-initialized tenant monitor refresh behavior. Provider-hosted MSP control-plane proofs may exercise that helper, but they must not create a second control-plane-only token path. Performance report branding is a canonical reporting API payload boundary. Reporting handlers may attach `ReportBranding` to the existing single-resource and multi-resource report request contracts by combining provider-default runtime configuration with an optional tenant-local `system.json` workspace override. The API must pass the active `white_label` entitlement state into the reporting layer, and the reporting layer remains the final gate: an unentitled tenant runtime must render the normal Pulse report identity even if branding configuration is present. Provider-hosted MSP proofs may exercise branding through tenant runtimes, but the control plane must not gain MSP-specific report generation plumbing or cross-client report content. Tenant-local workspace branding overrides may carry display names and bounded inline logo data only; local filesystem `logoPath` input is reserved for provider-default runtime configuration and must not be accepted from persisted workspace settings. Pulse Account workspace summaries carry setup state as a backend-owned payload contract. Browser bootstrap and `/api/portal/dashboard` workspace entries may include `setup_status` with only `ready`, `setup_path`, `install_agents`, `configure_outputs`, or `review`, plus optional setup evidence counts such as `agent_count`, `agent_token_count`, `unused_agent_token_count`, `last_agent_seen_at`, `alert_route_count`, `disabled_alert_route_count`, `report_schedule_count`, and `disabled_report_schedule_count` when the control plane has a canonical source for them. MSP account bootstrap may also include account-level `setup_templates` for provider guidance, but those templates are copy and sequence guidance only; workspace readiness remains owned by the workspace setup facts. The canonical source is a read-only tenant-local setup facts reader, not browser inference or portal-local state. Health review still wins first: active workspaces with a failed latest health check report `review`. Healthy or unchecked workspaces with no used non-expired `agent:report` token report `install_agents`; workspaces with an agent but no enabled alert route or no enabled report schedule report `configure_outputs`; only workspaces with at least one reporting agent, enabled alert route, and enabled report schedule may report `ready`. `setup_path` remains the fallback when no canonical setup facts source is available. The browser may present that state as a setup checklist and deep-link into tenant install/reporting surfaces, but it must not infer cross-client readiness from health alone or mint tenant-owned agent, alert, or report configuration from Pulse Account. MSP account UI may present those same workspace entries as clients, but that language is portal presentation only. Bootstrap and dashboard payloads continue to expose account `kind`, `workspaces`, tenant IDs, role IDs, setup facts, and member roles with the stable workspace field names. Mixed-account views must scope MSP client wording to MSP account surfaces and keep Cloud or self-hosted workspace wording scoped to their own account surfaces. Provider setup templates are collapsible guidance over the account payload; they must not replace tenant-local setup facts, become a readiness source, or require a payload shape change when the portal presents compact client rows. 1. `cmd/pulse-mcp/main.go` shared with `ai-runtime`: the Pulse MCP adapter runtime is both an AI runtime surface for external-agent access to Pulse Intelligence and a canonical API contract projection over the agent capabilities manifest and Pulse MCP surface tool contract. 2. `cmd/pulse-mcp/README.md` shared with `ai-runtime`: the Pulse MCP adapter guide is both an AI runtime surface for external-agent access to Pulse Intelligence and a canonical API contract projection over the agent capabilities manifest. Manifest path placeholders projected by `cmd/pulse-mcp` are canonical API path parameters, not string concatenation hints: adapter calls must use the shared `internal/agentcapabilities` call projection helper to percent-encode placeholder values as single path segments before dispatching to Pulse so resource IDs and node IDs cannot change the declared route. That same helper owns the top-level-argument fallback for JSON request bodies: non-placeholder write arguments become the body when the caller does not provide a nested `body` object, and internal tool-call metadata such as approved-action grants is stripped before any public API body is built. MCP tool descriptions and fallback tool input schemas must project the same manifest-owned method/path, scope, request/response shape, category, action-mode, approval-policy, and stable error-code metadata through that shared helper rather than maintaining a second adapter-local capability table. The manifest-owned `surfaceToolContracts` field is the Pulse MCP tool allowlist for `tools/list` and `tools/call`, and the same shared `ManifestSurfaceToolCapabilities` resolver must gate execution, so streaming-only capabilities such as `subscribe_events`, or raw manifest capabilities omitted from the Pulse MCP surface contract, cannot be invoked through an MCP request/response tool even if a client sends their name manually. Adding a raw capability to `Manifest.Capabilities` is not enough to publish an MCP tool; the Pulse MCP `surfaceToolContracts` allowlist must opt it into that external-agent surface. A `surfaceToolContracts` entry may narrow the operator surface's affordance posture, but it must not re-enable a disabled surface affordance; normalized external-adapter surface summaries must clear tool and capability names when the effective `tools` affordance is false. MCP initialize capability advertisement and the shared manifest-backed tool, resource, and prompt handlers must also pass through the manifest-owned surface affordance contract, so tools, resources, prompts, and capability metadata are exposed only when the target surface allows that affordance and the manifest has the backing data to satisfy it. Prompt support is proven through `MCPManifestSurfacePromptProjectionSupported`, not a raw workflow-prompt presence check at individual call sites. Generated MCP prompt inventory must also pass through the same surface prompt projection gate rather than listing raw workflow prompts directly. MCP notification advertising, transport-event filtering, notification method projection, and SSE-to-MCP notification bridging are also shared API contract projections: the event kinds listed in `capabilities.experimental.pulseNotifications.kinds`, the `subscribe_events` manifest description, and the API SSE producer must use the same `internal/agentcapabilities` event vocabulary rather than adapter-local string lists. The agent SSE subscription transport, record parser, actionable-record filter, and MCP notification projector are part of that same shared boundary: `cmd/pulse-mcp` and reference probes may own connection lifetime and reconnect policy, but they must not carry their own event-stream request headers, subscribe status handling, `event:` / `data:` scanner loops, transport-event parser semantics, or SSE-to-MCP notification bridge. MCP JSON-RPC method constants, JSON-RPC envelopes, request decoding, notification response policy, shared manifest-backed and surface-affordance-gated tool-server semantics, shared tool-server method dispatch, initialize/tool-call/resource payloads, notification method projection, MCP resource URI projection, context-backed `resources/list` / `resources/read` projection, and prompt catalog/rendering payloads belong to the MCP adapter edge. MCP must not re-export neutral provider-call, provider-result, registry-preparation, result-construction, result-text, result-interpretation, or direct-execution helpers under MCP names; those helpers live under the neutral shared tool core and are consumed directly by Assistant and adapter surfaces. The raw `tools/call` params decode may stay in `mcp.go`, but parameter normalization and validation belong to the neutral shared tool-call core: tool names must be trimmed and required, argument maps must be cloned deeply enough to detach nested JSON-like `body` maps/slices and then initialized, and invalid params must fail before capability lookup so empty-name calls are not reported as unknown manifest tools. Projected-tool behavior hints are neutral API manifest projection state: `ToolBehaviorHints` belongs in the shared projection core, while `MCPToolAnnotations` may exist only as a protocol-facing alias at the MCP adapter edge. Native Assistant direct registry execution must consume the neutral `ToolCallParams` normalization/validation contract and the shared invalid-params, unknown-tool, and control-disabled tool result helpers from `internal/agentcapabilities/tool_call.go` before tool lookup or handler dispatch, rather than carrying a second name/argument path or local entrypoint failure envelope for in-app execution. The approved-action text projection for Pulse tool calls is part of that same boundary: API relay execution may receive the legacy command string, but parsing tool names, `default_api:` prefixes, and quoted arguments must happen in `internal/agentcapabilities`, return the shared `ToolCallParams` shape, and pass through the same normalization and validation contract as decoded MCP `tools/call` payloads. The same helper owns the `current_resource` handle plus governed aliases and recursive tool-argument detector so native Assistant, API relay execution, and MCP-compatible adapters cannot drift on unresolved attached-resource placeholder handling. Structured tool response envelopes, the tool-result error-code parser, the `verification.ok` evidence parser, provider tool/call/result shape projection, provider-result context projection for full transcript plus model-context results, neutral provider-tool behavior hints and Pulse governance metadata, provider-emitted streamed tool-input parsing, final provider tool-input raw fallback handling, native Assistant provider-tool name catalog and exact/prefix matching, provider tool-call artifact detection and streaming tool-name prefix holding, question-type/defaulting vocabulary, native Assistant question input parsing, and tool error-code vocabulary are part of that same boundary; native Assistant tool protocol wrappers may preserve only neutral registry tool aliases and must not expose MCP/JSON-RPC wire aliases or carry local copies of provider tool JSON, provider call params, chat tool-call JSON, chat tool-result JSON, provider-native tool-call artifact regexes, the blocked/failed/retryable shape, common error-code strings, recovery error-code parsing, write self-verification evidence parsing, or the approval-required / policy-blocked marker prefixes, payload `type` values, formatter helpers, parser helpers, or typed approval-required payload contract used by governed Assistant tool outcomes. Chat and API consumers may project that shared marker payload into their own event shapes, but they must not define anonymous local approval-marker readers or discard the shared approved-action argument map returned for replayed tool execution. MCP-shaped provider projection aliases and structured tool-response result aliases must not exist as helper wrappers; MCP may keep protocol wire aliases only for the actual `tools/call` params/result envelopes while using the neutral provider, tool-response, and direct-execution helpers by their shared names. Assistant registry tool schemas must also behave as API-contract values: `agentcapabilities.Tool.NormalizeCollections` owns independent copies of structured `InputSchema` maps, required slices, enum slices, provider input-schema maps, and JSON-schema default containers; direct provider schema projection helpers must normalize through that same path before emitting provider JSON, while `ToolRegistry.Register` and `ToolRegistry.ListTools` must normalize at their respective boundaries instead of exposing mutable caller-owned or registry-owned schema collections. Manifest-backed external-agent tools follow the same rule: `agentcapabilities.CloneCapability`, `CloneCapabilities`, and `CloneRawMessage` must detach raw manifest `inputSchema` and `outputSchema` bytes, structured `_meta["pulse.capability"]` maps, and error-code slices before lookup or projection results leave the shared boundary, so MCP `tools/list` serialization and adapter post-processing cannot mutate the fetched or canonical manifest. Provider tool-call input normalization is owned there too: provider responses, stored Assistant transcript calls, and API-facing chat-message projections must clone tool input maps, nested JSON-like argument values, and raw provider thought-signature payload bytes through the shared `ProviderToolCall.NormalizeCollections` path rather than reusing mutable caller maps across surfaces. Provider result context projection is owned there as well: native Assistant, external adapters, and future Pulse Intelligence surfaces must use the shared projection for full transcript results and model-context results instead of locally pairing provider tool-result structs or reimplementing the truncation notice. Shared tool result normalization is also owned by the neutral tool-result core: `agentcapabilities.ToolResult.NormalizeCollections` must initialize empty content collections, detach content slices, and clone structuredContent maps before native Assistant registry execution or external MCP method dispatch returns a result envelope. Result-text extraction, result interpretation, JSON object and array-wrapper structuredContent projection, and `HTTPCallResponse` to shared tool-result wrapping must live in `internal/agentcapabilities/tool_result.go`; MCP may alias only the actual `MCPToolResult`/`MCPContent` wire envelopes and must not keep MCP-named constructor, text, or interpretation wrappers. Direct native execution over those shared result envelopes must use the surface-neutral `agentcapabilities.InterpretDirectToolExecution` helper; MCP-named direct-execution symbols are not part of the adapter contract. Manifest fetches, agent request construction, API-token header placement, JSON content-type posture, capability HTTP invocation, neutral `ExecuteCapabilityToolHTTP` request/response execution, request/response capability body-return helpers, and stable non-2xx error-envelope formatting are shared-core behavior. `cmd/pulse-mcp` may own stdio and retry/backoff policy, but it must not re-declare the MCP wire/result structs or local agent HTTP client rules that Assistant tool execution and reference clients also consume. 3. `frontend-modern/src/api/agentCapabilities.ts` shared with `ai-runtime`: the agent capabilities frontend client is both the Pulse Intelligence external-agent manifest consumer and a canonical API payload contract boundary. 4. `frontend-modern/src/api/agentDeploy.ts` shared with `agent-lifecycle`: the cluster agent deploy client is both the agent lifecycle one-step cluster member install surface and a canonical API payload contract boundary. 4. `frontend-modern/src/api/agentProfiles.ts` shared with `agent-lifecycle`: the agent profiles frontend client is both an agent lifecycle control surface and a canonical API payload contract boundary. 5. `frontend-modern/src/api/ai.ts` shared with `ai-runtime`: the AI frontend client is both an AI runtime control surface and a canonical API payload contract boundary. `/api/settings/ai` is the provider-registry projection for Assistant and Patrol runtime configuration. Its `providers` collection exposes non-secret provider metadata from the config-layer registry, including provider id, display name, protocol family, default route, default base URL, credential field names, configured-state field names, clear-key field names, env-var hints, docs URL, gateway flag, current configured state, and, for providers whose model catalog is user-supplied (today Ollama), the Patrol-blessed `suggested_model` with its `suggested_model_note` hardware copy and `suggested_model_equivalents` tags. Those suggested-model fields are registry-derived guidance, omitted when a provider has no blessing, and must never be inferred or overridden browser-side. The legacy top-level configured booleans may remain for browser compatibility, but new provider additions must update the registry-backed projection and contract tests rather than adding an untyped browser-only provider list. API responses must never echo provider secret values; settings updates may accept credential and clear-key fields, persist trimmed values, and return only configured state. The settings projection and update request carry no `protected_guests` field: the Assistant has no guest list of its own, and a `protected_guests` key from an older client is ignored. Guests Pulse must not act on are locked through the resource operator state (`neverAutoRemediate`), which the Assistant honours at planning. 7. `frontend-modern/src/api/generated/agentCapabilities.ts` shared with `ai-runtime`: the generated agent capabilities frontend types are both the Pulse Intelligence manifest TypeScript projection and a canonical API payload contract boundary. 8. `frontend-modern/src/api/nodes.ts` shared with `agent-lifecycle`: the shared Proxmox node client is both an agent lifecycle setup/install control surface and a canonical API payload contract boundary. 9. `frontend-modern/src/api/notifications.ts` shared with `notifications`: the notifications frontend client is both a notification delivery control surface and a canonical API payload contract boundary. 10. `frontend-modern/src/api/orgs.ts` shared with `organization-settings`: the organization frontend client is both an organization settings control surface and a canonical API payload contract boundary. 11. `frontend-modern/src/api/patrol.ts` shared with `ai-runtime`: the Patrol frontend client is both an AI runtime control surface and a canonical API payload contract boundary. The Patrol status payload owns Patrol readiness as structured API state: provider/model/settings/tool prerequisites must travel as bounded readiness checks instead of frontend-only heuristics or generic analysis-failed text. `/api/settings/ai/update` must persist recoverable provider/model changes and return the same structured readiness cause in its settings payload, while `/api/ai/patrol/run` must use the `patrol_readiness_not_ready` error taxonomy when it rejects a known-bad Patrol runtime configuration. Bounded `status`, `cause`, `provider`, and `model` details are the canonical transport shape. When the request body carries `resource_ids` or `resource_types`, `/api/ai/patrol/run` runs a manual targeted Patrol check scoped to those resources (reusing the scoped engine and scoped run record, bypassing the full-run cadence gate); an empty body keeps the fleet-wide run. The scoped body carries resource identity only — no command or remediation payload. Patrol may demote the shared model catalog behind an explicit advanced UI action, but it must still source selectable model routes from the shared AI runtime catalog/settings payloads rather than introducing a Patrol-local model list or inferred provider catalog. `/api/ai/patrol/findings` is the canonical Patrol-page findings source, and `/api/ai/patrol/runs` records may expose bounded `source` provenance so demo evidence can be separated from live runtime assessment state without changing the stable run payload shape. The Patrol findings payload carries optional `resource_criticality` (`high`, `medium`, `low`, or omitted/empty default) stamped from `/api/resources/{id}/operator-state`. It is a resource priority tie-breaker for same-severity Patrol work, not a severity override; the frontend client mirrors it on both `Finding` and `UnifiedFindingRecord` and normalizes it to `UnifiedFinding.resourceCriticality`. The Patrol findings payload carries `capacity_forecast` as a structured deterministic field (`current_pct`, `daily_change`, `days_to_full`) on capacity-relevant findings whose resource has enough utilization history to compute a trend. The frontend client must mirror it verbatim so the deterministic urgency reading reaches the surface unchanged; it must not be synthesized, inferred, or overridden client-side, and a missing forecast must mean "no recorded history to compute one," not a default urgency. The Patrol status payload's `trigger_status` object is the canonical transport for alert/anomaly trigger queue and mode facts. Patrol summary UI may present that state as factual trigger-mode context, but it must not infer trigger enablement or queue state from settings payloads, route state, or run-history labels. Patrol coverage freshness is a frontend presentation derived only from the canonical `runs.completed_at`, `status.last_patrol_at`, `status.next_patrol_at`, `status.interval_ms`, and `status.running` fields. The client may warn when the last completed full check is older than its bounded freshness window, but it must not mint a second freshness endpoint, rewrite the stable Patrol payload, or present old run evidence as a current healthy all-clear. 12. `frontend-modern/src/api/patrolAttention.ts` shared with `patrol-intelligence`: the Patrol attention client is both the Patrol read-model transport and a canonical typed API boundary. 12. `frontend-modern/src/api/rbac.ts` shared with `organization-settings`: the RBAC frontend client is both an organization settings control surface and a canonical API payload contract boundary. 13. `frontend-modern/src/api/security.ts` shared with `security-privacy`: the security frontend client is both a security/privacy control surface and a canonical API payload contract boundary. 14. `frontend-modern/src/api/updates.ts` shared with `deployment-installability`: the updates frontend client is both a deployment-installability control surface and a canonical API payload contract boundary. It must preserve `/api/updates/plan.readiness` payloads as backend-owned API state so settings UI can render `ready`, `attention`, and `blocked` update checks without rebuilding upgrade state locally. The frontend may disable blocked installs, but the backend apply route remains authoritative and must reject a recomputed `blocked` readiness verdict. 14. `frontend-modern/src/api/workflowPrompts.ts` shared with `ai-runtime`: the workflow prompt activity client is both the AI runtime workflow-prompt telemetry surface and a canonical API payload contract boundary. 15. `frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx` shared with `ai-runtime`, `frontend-primitives`: the External agents settings panel is the optional settings-shell projection of Pulse MCP onboarding, the AI runtime connected-agent onboarding surface, and a presentation consumer of the shared agent capabilities frontend client. The panel may own settings placement, copy composition, local fallback rendering, and the user-facing hierarchy that frames Patrol as the primary governed operator with MCP clients as secondary access to the same approval policy and action history. Capability category order, labels, descriptions, required scopes, the Pulse Intelligence surface contract, surface affordance badges, and capability rows must still come through `frontend-modern/src/api/agentCapabilities.ts` instead of a browser-local category table or component-local manifest fetcher. Manifest-owned prompt, scope, failure-code, tool-contract posture, and raw capability inventories should be available for client builders but must stay demoted behind a builder-oriented Developer details disclosure rather than occupying the default Assistant settings view. The external-agent setup checklist must stay behind a user-triggered `Show connector setup` disclosure, while direct setup links open that disclosure automatically. Posture and policy summaries belong under Patrol access model, while prompt, scope, failure-code, and tool inventories must be nested behind Live manifest details so opening the developer disclosure does not immediately dump the full manifest. Visible nested labels should use user-facing terms such as Agent starting points and Agent capabilities rather than raw workflow/MCP inventory labels. External adapter posture must read as `External agents expose ... through Patrol mode`; `Pulse MCP` and `pulse_operations_loop` may remain only as manifest or wire names inside builder/debugging detail, not as the visible product model a user must learn. The External agents Patrol handoff must use `Choose Patrol mode` and frame the first step as choosing what Patrol may handle automatically before a connected agent can request work; connected-agent setup must not revive activation-loop or raw MCP readiness language as the primary call to action. When the setup checklist is expanded, Step 1 owns the visible Patrol-mode handoff and the panel header must not repeat the same call to action. The same wording applies when API-owned projections feed Patrol availability or plan-comparison presentation: customer-facing helpers must describe governed scope as what Patrol may handle automatically, not as how far Patrol can go or how much control Patrol has. Client config follows the same product hierarchy: it may expose manifest-derived OpenCode and Claude-style wrappers, but the default panel must lead with Patrol control and scoped-token setup, not raw JSON blocks. Direct `/settings/pulse-intelligence/agents#external-agent-setup` links must scroll and briefly focus the External agents panel after the settings layout settles, so the external-agent setup route lands on the optional client setup boundary rather than generic token inventory. Legacy `/settings/security/api#external-agent-setup` and `/settings/security/api#pulse-mcp-setup` links must remain accepted and redirect to the canonical Pulse Intelligence External agents route. Normal API Access visits keep token management first; token-preset links may still land on API Access because credential minting remains the API token contract, not a separate credential or execution surface. The Patrol control handoff must target the Patrol operator surface where the inline control level is configured, while API Access remains the token and external-agent setup surface. Failure-code summaries in the panel must derive from capability `errorCodes` through the same frontend manifest client instead of a browser-local recovery-code registry. Explanatory capability-publication copy in that panel must point at the manifest-owned surface contract, not raw backend capability rows, so the API contract remains clear that Pulse MCP publication requires the `surfaceToolContracts` boundary. Token setup handoffs in this panel may link to the API token creation form, but the named full-surface preset must remain the manifest-derived `Patrol external agent` preset from `frontend-modern/src/components/Settings/APITokenManager.tsx` and `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`; the Agent integrations panel must not hardcode or recompute the required token scope set. MCP adapter setup facts in the panel are also manifest-owned: server name, command, base URL flag/default, token environment variable, supported config families, and copied OpenCode/`mcpServers` snippets must flow through `frontend-modern/src/api/agentCapabilities.ts` from `/api/agent/capabilities.mcpAdapter`, not component-local constants. The default setup copy must frame connected agents as optional access to Pulse context and Patrol work, keep Patrol as the built-in operator that checks infrastructure, follows Patrol mode before acting, asks when approval is required, verifies outcomes, and records history, and say external agents use that same boundary. It must not use "Use Pulse MCP only" or "outside client" copy, and it must not describe external-agent setup as a separate operator journey. The Patrol control handoff belongs to the Patrol control route; API Access may mint the token and show MCP client setup, but it must not send operators to Assistant settings to choose Patrol's control level. 16. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `security-privacy`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary. The API token inventory table may own credential and usage cells, but it must inherit embedded table framing from `frontend-primitives` `PulseDataGrid` rather than carrying API-token-local scroll or border wrappers around the grid. Docker and Podman token usage copy must come from `frontend-modern/src/utils/apiTokenPresentation.ts` and its shared source platform label, so API-token tables, revoke warnings, and token presets do not reintroduce generic `container runtime` operator-facing labels. API-token scope-reference documentation links may compose frontend-primitives' `ExternalTextLink`; API contracts own the token scope, usage, preset, and revoke semantics, not new-tab anchor safety or link chrome. Token refresh/loading state remains API contract data only while the visible spinner shell routes through frontend-primitives-owned `LoadingSpinner` instead of an API-token-local animate-spin SVG. The create-token section may expose stable in-page anchors for sibling API Access onboarding surfaces, but preset scope contents must continue to flow from the API manifest client and token manager model rather than from anchor callers such as Agent integrations. Empty scope selection is not a wildcard request in the token manager UI: generation must require an explicit scoped preset, custom scope, or deliberate Full access selection before the frontend sends a create-token payload. Token scope selector semantics stay API-contract owned, but the visible pressed/unpressed selector pill shell routes through frontend-primitives `SelectablePillButton` instead of API-token-local rounded-full selector classes. 16. `frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx` shared with `security-privacy`: the deferred API token edit and revoke dialogs preserve the shared security/privacy and API contract boundary. Edit and revoke dialogs are deferred behind the explicit row action so the API Access entry chunk does not ship mutation-only controls before they are requested. Deferral must not weaken the existing confirmation, scope validation, failure-open, or read-after-write behavior. 17. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `security-privacy`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary. 18. `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx` shared with `agent-lifecycle`: the inline node credential slot is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 19. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` shared with `agent-lifecycle`: the pure infrastructure operations inventory/install model is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary. Docker and Podman install-profile labels and descriptions in that shared model must derive their customer-facing source name from `frontend-modern/src/utils/sourcePlatforms.ts` rather than page-local wording, because those install choices set API-token and install-command expectations for the operator. That same install-profile model must keep the standalone Docker / Podman runtime profile distinct from Proxmox LXC Docker inventory. The Docker profile may force local runtime monitoring, while Docker inside LXCs must point operators to the Proxmox VE node profile plus command execution and explicit server-side guest Docker inventory opt-in. That same browser/API boundary must not retain customer-side commercial or onboarding telemetry wrappers around infrastructure operations. Pulse Account and the server-owned commercial reporting routes own commercial event ingestion; the infrastructure operations model and install state may navigate to canonical destinations, but must not import or call local `upgradeMetrics`, `conversionEvents`, or infrastructure onboarding metrics wrappers. Agentless availability targets and structured `/api/connections` fleet posture share this same settings/API boundary as monitoring-managed endpoint configuration, not host-install lifecycle or prose-derived row labels. `internal/api/availability_handlers.go` owns CRUD and test payloads for `/api/availability-targets`, while `frontend-modern/src/api/availabilityTargets.ts` and `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`, `frontend-modern/src/components/Settings/availabilitySettingsModel.ts`, and `AvailabilityTargetSlot.tsx` own the browser transport shape. The settings summary and status pills classify each target through `getAvailabilityTargetHealth`. When the target's unified `network-endpoint` resource is loaded, the Machines tab's `getStandaloneResourceStatusIndicator` decides, so stale evidence and unresolved identity count the same on both pages. Otherwise the target's own status is read the way `availability_poller.go` derives the resource status: aggregate and single-location failures are offline only once consecutive failures reach the failure threshold (default 2), a missing count is zero, and a never-checked target is pending. Settings and the Machines availability tab therefore report the same counts in the same words. Availability target probe-result and error notices may compose frontend-primitives' `CalloutCard` for shared settings callout chrome; API contracts own the target CRUD/test payload semantics and endpoint routing, not local colored alert shells. HTTPS target payloads additively carry `certificateMonitoringDisabled` and `certificateExpiryWarningDays`. Monitoring is on by default when the explicit opt-out is absent, and the effective warning window defaults to 30 days. Certificate settings are invalid on non-HTTPS targets. Saved and unsaved test responses may include the same secret-free `certificate` observation returned by the runtime probe, while reachability success remains independent from trust posture so an operator can diagnose an untrusted but reachable endpoint. HTTP/S targets may also carry one explicit `http` application-response contract. Its bounded vocabulary is `HEAD`, `GET`, or `POST`, one accepted status range, at most sixteen operator headers, optional Basic or bearer authentication, an optional POST body of at most 8 KiB, and bounded text and JSON-path assertions over at most 64 KiB of response content. An absent `http` block preserves the legacy HEAD-with-GET-fallback behavior for saved targets without a migration rewrite. Every execution-field edit, including a contract or secret change, advances the server-authored configuration revision and therefore the existing availability-history revision boundary. Request bodies, passwords, bearer tokens, and header values are write-only. List/create/update responses return only `httpSecrets` presence markers; Updates and unsaved tests that identify an existing target merge omitted write-only values from encrypted persistence before validation/execution only while scheme, host, and effective port remain unchanged. An endpoint origin change clears omitted body/header values and requires Basic or bearer credentials to be entered again before the target can be saved or tested; stored credentials must never follow an address edit silently. Test and current-status responses expose transport reachability separately from the typed application outcome, status code, and bounded failure code, but never return the request body, response body, credential values, or arbitrary remote content. Contract tests must pin redaction, unchanged- secret preservation, bounded evaluation, and the reachable-but-incorrect application case. The settings client edits the request body in the shared `FormTextarea`, whose size note (`Up to 8 KiB`) is the field's accessible description; removing a stored body stays an explicit action beside it, and leaving the field blank keeps the stored body as before. Availability target protocol vocabulary is canonicalized at the API/config boundary: clients may submit `ping` as a user-facing alias for the ICMP check, but saved targets, API reads, probe status, connections rows, and unified-resource availability facets must continue to use the canonical `icmp` value. Connections ledger rows with type `availability` must route management handoffs, pause, remove, and test actions to those availability-target endpoints and must not reuse node, SSH, platform API, or Pulse Agent setup payloads. For probe-assigned rows, the Connections ledger consumes monitoring's canonical server-receipt freshness reference and its already-derived stale verdict. It must not independently age the agent-authored `LastSuccess` timestamp, because agent clock skew could make Connections disagree with the `network-endpoint` resource and canonical probe alert lifecycle. Mock mode must expose authored availability targets through those same list, saved-test, and connections-ledger payloads so demo endpoints exercise the canonical API contract rather than a frontend-only fixture. Availability target payloads carry an optional `linkedResourceId` field that, when set to a known resource id, requests the unified-resource registry to attach the probe facet onto that resource while retaining the source-owned `network-endpoint`. The field is authoritative and fail-closed: invalid or ambiguous explicit references remain unresolved and do not fall back to address correlation. Address correlation applies only when no explicit link is present. 20. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx` shared with `agent-lifecycle`: the node setup authentication section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 21. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx` shared with `agent-lifecycle`: the node setup basic-info section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 22. `frontend-modern/src/components/Settings/nodeModalModel.ts` shared with `agent-lifecycle`: the pure node setup modal model is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 23. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx` shared with `agent-lifecycle`: the node setup monitoring section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 24. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx` shared with `agent-lifecycle`: the node setup guide section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 25. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx` shared with `agent-lifecycle`: the node setup status/footer section is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 26. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `security-privacy`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary. 27. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts` shared with `agent-lifecycle`: the direct-node infrastructure settings state hook is both an agent lifecycle control surface and a shared Proxmox node API contract boundary. Its retained settings-shell read uses an authority-gated `type=agent` unified-resource query for node status and the canonical response aggregations for estate counts. It must not restore an unfiltered all-resource read on unrelated Settings routes. 28. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts` shared with `agent-lifecycle`: the infrastructure discovery runtime state hook is both an agent lifecycle control surface and a shared discovery/settings API contract boundary. That same shared boundary also owns settings-route polling scope for discovery payloads: the `/api/discover` refresh loop and websocket-backed discovery status hydration may run only while the operator is on the canonical Infrastructure settings workspace at `/settings/infrastructure`, not on retired infrastructure sub-routes. Discovery refreshes and scan results are route-scoped state updates. If the settings route unmounts while a request is in flight, the hook must drop the result and avoid surfacing stale background errors into the next settings panel. It also owns the explicit manual-scan contract for `/api/discover`: when the operator runs discovery from the infrastructure manager, the hook must consume the immediate POST response body as the next source of truth for discovered candidates and scan errors rather than waiting for a later poll or websocket update. Cached GET payloads and manual POST payloads must both normalize their `updated` / `timestamp` values into one millisecond-backed `lastResultAt` state so discovery review rows do not depend on transport- specific timestamp shapes. 29. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` shared with `agent-lifecycle`: the infrastructure install state hook is both an agent fleet lifecycle control surface and an API token, lookup, and install transport contract boundary. Setup-completion handoff token creation is valid only while the active infrastructure add step is an installer route (`agent`, `linux-host`, `unraid`, `docker`, or `kubernetes`). Mounting the infrastructure workspace for unrelated settings panels must not auto-create install tokens from a stale setup handoff. 30. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` shared with `agent-lifecycle`: the shared infrastructure operations state hook is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary. 31. `frontend-modern/src/components/Settings/useNodeModalState.ts` shared with `agent-lifecycle`: the node setup modal state hook is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary. 32. `frontend-modern/src/constants/apiScopes.ts` shared with `security-privacy`: the API token scope catalog is both a security/privacy token-management trust surface and a canonical API token payload boundary. Docker and Podman scope labels must use the shared source platform label rather than generic `container` copy, because those labels surface directly in token presets, custom scopes, and inventory badges. The `ai:execute` scope label is customer-facing API contract copy: it must describe Pulse Intelligence actions as governed Patrol actions for plans, approvals, policy-allowed fixes, verification, and history rather than as generic operations workflows or a separate agent product. 33. `frontend-modern/src/utils/agentInstallCommand.ts` shared with `agent-lifecycle`: the shared frontend install-command helper is both an agent lifecycle control surface and a canonical API/install transport contract boundary. Generated install commands are part of the API contract because they bind the UI-selected Pulse URL, token source, custom CA, insecure/plain-HTTP behavior, and `/download/pulse-agent?arch=...` availability proof into the installer invocation. Windows, macOS, and Linux commands must therefore preflight the exact platform artifact and avoid raw token process arguments. Windows generated commands must pass boolean installer intent through environment variables and invoke `install.ps1` through child PowerShell `-File` calls so Windows PowerShell argument binding cannot reinterpret copied `$true` values as strings or let preflight-only returns abort the parent wrapper before install. 34. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `security-privacy`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary. It owns the operator-facing Docker / Podman token vocabulary used by API Access, token presets, usage summaries, and revoke warnings. 35. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts` shared with `agent-lifecycle`: the infrastructure settings presentation helper is both an agent lifecycle control surface and an API-backed direct-node/discovery settings boundary. 36. `internal/agentcapabilities/action_target.go` shared with `ai-runtime`: the Pulse Intelligence governed action target type and resource-to-action-target mapping vocabulary are both the Assistant approval/runtime routing contract and the canonical API/agent target contract for governed actions. 37. `internal/agentcapabilities/control_level.go` shared with `ai-runtime`: the Pulse Intelligence control-level vocabulary and control-tool availability predicate are both the Assistant runtime gating contract and the canonical API/agent permission posture for governed action tools. 38. `internal/agentcapabilities/errors.go` shared with `ai-runtime`: the Pulse Intelligence agent error envelope is both the canonical API failure payload contract and the AI runtime adapter error-parsing contract for Assistant and external-agent surfaces. 39. `internal/agentcapabilities/events.go` shared with `ai-runtime`: the Pulse Intelligence event vocabulary is both the canonical API SSE event contract and the AI runtime adapter notification contract for Assistant and external-agent surfaces. 40. `internal/agentcapabilities/governance_prompt.go` shared with `ai-runtime`: the Pulse Intelligence surface-affordance-resolved model-facing operating-instruction, tool-governance prompt, reusable provider-tool governance description, Assistant-native offered-tool filtering, and Assistant-native interactive question-tool governance projections are both the Assistant system-prompt governance section and the shared API/agent vocabulary for action mode, approval posture, MCP affordance advertisement, and non-registry interaction-tool boundaries. 41. `internal/agentcapabilities/http.go` shared with `ai-runtime`: the Pulse Intelligence agent HTTP substrate is both the API capabilities invocation contract and the shared AI runtime adapter execution primitive for MCP and reference agent clients. 42. `internal/agentcapabilities/invocation.go` shared with `ai-runtime`: the canonical registry-owned invocation descriptors (per-tool discriminator, enum-exact case coverage, closed workflow-kind and mutation-target vocabularies, deep-copied lookups, fail-closed classification with unknown targets denied at policy evaluation) are both the native Assistant invocation safety-classification contract and the canonical API/agent governed-invocation policy contract consumed by provider projection and registry runtime enforcement; canonical tool names cannot carry descriptor overrides. 43. `internal/agentcapabilities/manifest.go` shared with `ai-runtime`: the canonical Pulse Intelligence agent capabilities manifest declaration, including capability display titles, manifest-owned finding lifecycle schemas, manifest-owned governed action schemas and routes, manifest-owned external-adapter surface tool contracts, and manifest-owned structured output schemas, is both the API discovery payload source and the AI runtime projection contract for Pulse Assistant and MCP-facing agent tools. 44. `internal/agentcapabilities/markdown.go` shared with `ai-runtime`: the Pulse Intelligence manifest Markdown projection, including manifest-owned capability titles, surface-filtered Pulse MCP tool/error inventories, and prompt labels, is both the canonical API/agent documentation projection and the AI runtime onboarding projection for Assistant-compatible external-agent surfaces. 45. `internal/agentcapabilities/mcp.go` shared with `ai-runtime`: the Pulse Intelligence MCP protocol version, JSON-RPC, method dispatch, method payload, surface-tool-contract-gated initialize operating-instruction and capability advertisement payload, manifest surface-filtered tools/list and tools/call execution bridge, manifest surface-gated resources/list and resources/read bridge, manifest-owned and surface-affordance-gated workflow prompt projection, protocol wire aliases, resource and prompt handler gates, and notification projection collectively define the external-agent adapter wire contract over the shared Pulse Intelligence tool core; MCP initialize, tools/call execution, resource list/read projection, and prompt list/get projection must enter through manifest-owned surface and workflow-prompt contracts so raw capability slices cannot bypass the published external-adapter contract. 46. `internal/agentcapabilities/mcp_adapter.go` shared with `ai-runtime`: the Pulse MCP adapter setup contract defaults and normalization are both the canonical API manifest setup projection and the AI runtime onboarding contract for Assistant-compatible external-agent surfaces. 47. `internal/agentcapabilities/patrol_scope_tools.go` shared with `ai-runtime`: the typed Patrol resource-scope evidence mapping is both the AI runtime least-manifest projection contract and the canonical API/agent vocabulary that keeps scoped Watch and investigation tool reductions aligned across the Pulse and enterprise boundary. 47. `internal/agentcapabilities/projection.go` shared with `ai-runtime`: the agent capability external-tool projection helper, normalized manifest-owned surface tool contract resolution and tools-affordance gating, manifest-owned resource-context route and argument vocabulary, operator-state capability and route vocabulary, finding workflow capability and lifecycle argument vocabulary including resolution and dismissal notes, governed action capability, route, and argument vocabulary, manifest-owned tool title and outputSchema projection, structured Pulse capability _meta, and shared tool behavior hints are both the canonical API manifest projection contract and the AI runtime adapter projection for Pulse Assistant and MCP-facing agent tools, with MCP annotation and metadata wire names confined to adapter-edge aliases. 48. `internal/agentcapabilities/provider_tool_artifacts.go` shared with `ai-runtime`: the provider tool-call artifact detector and streaming tool-name prefix splitter are both the Assistant stream-sanitization boundary and the shared external-adapter leak guard for provider-native tool-call markup that escaped the structured channel. 49. `internal/agentcapabilities/schema.go` shared with `ai-runtime`: the agent capability input schema contract is both the canonical API manifest schema envelope and the AI runtime structured tool-schema, governance-aware provider-projection with neutral behavior hints and Pulse governance metadata, offered-tool governance extraction for Assistant prompt policy, manifest-affordance-gated Assistant provider-surface composition, manifest raw-schema to Assistant provider-schema projection for capability tools, legacy native Assistant utility provider aliases and schemas, provider-call normalization, provider-result context projection, Assistant-native interaction provider-tool declaration, and live Assistant execution-normalization contract for Pulse Assistant and MCP-facing agent tools. Provider-facing schemas are closed objects, provider-originated internal approval fields and undeclared properties fail closed, and `/api/ai/chat` does not expose request-owned autonomous authority. `internal/api/agent_command_authorization.go` is the server-owned bridge from an approved interactive action to agentexec: it validates org and action identity and atomically consumes the exact command/target approval immediately before grant signing and WebSocket dispatch. 50. `internal/agentcapabilities/scopes.go` shared with `ai-runtime`: the manifest-derived required-scope summary is both the canonical API/agent token guidance contract and the AI runtime adapter startup/onboarding contract for Assistant-compatible external-agent surfaces. 51. `internal/agentcapabilities/sse.go` shared with `ai-runtime`: the Pulse Intelligence SSE subscription transport and record parser are both the canonical API event-stream consumption contract and the AI runtime adapter push bridge contract for MCP and reference agent clients. 52. `internal/agentcapabilities/surface_contract.go` shared with `ai-runtime`: the Pulse Intelligence operator-surface affordance contract, shared surface-affordance, surface-tool identity, Assistant surface tool filtering, normalized external surface tool resolver, surface lookup, affordance labels, and manifest-published external-adapter surface tool allowlist projection are both the canonical API manifest surface model and the AI runtime prompt and onboarding guardrail for Assistant and MCP-facing surfaces. 53. `internal/agentcapabilities/text_tool_invocation.go` shared with `ai-runtime`: the Pulse Intelligence text tool invocation parser, internal approval argument, and current_resource handle vocabulary are both the Assistant approved-action execution projection and the shared tool-call params bridge for governed Pulse Intelligence tool calls, with MCP tools/call compatibility staying at the adapter edge. 54. `internal/agentcapabilities/tool_call.go` shared with `ai-runtime`: the Pulse Intelligence shared tool-call params, normalization, validation, direct registry preparation, registry-entrypoint failure result helpers, and provider/registry tool-call safety classification are both the native Assistant execution contract and the canonical API/agent tools/call compatibility contract for governed Pulse Intelligence tool calls; the shared invocation-blocked result is the stable refusal for every profile-denied mutation (pulse-state and infrastructure alike). 55. `internal/agentcapabilities/tool_execution.go` shared with `ai-runtime`: the Pulse Intelligence neutral capability tool HTTP execution helper and direct tool execution output/error mapper are both the Assistant-native direct execution contract and the canonical API/agent request/response execution contract, with MCP adapters consuming the neutral helpers only after the shared MCP manifest-surface execution bridge has applied the published surface tool contract. 56. `internal/agentcapabilities/tool_marker.go` shared with `ai-runtime`: the Pulse Intelligence Assistant tool marker vocabulary and approval/policy marker parser are both the Assistant structured tool-result compatibility contract and the canonical API/agent branching contract for governed tool outcomes. 57. `internal/agentcapabilities/tool_names.go` shared with `ai-runtime`: the Pulse Intelligence registry tool-name vocabulary is both the native Assistant execution/display contract and the canonical API/agent tool identity contract for MCP-facing external-agent adapters. 58. `internal/agentcapabilities/tool_response.go` shared with `ai-runtime`: the shared tool response envelope, tool error-code vocabulary, and tool-result error-code and verification evidence parsers are both the Assistant structured tool-result contract and the canonical API/agent branching contract for Pulse Intelligence tool failures, recovery tracking, and write self-verification. 59. `internal/agentcapabilities/tool_result.go` shared with `ai-runtime`: the Pulse Intelligence shared tool-result content/result envelope, structuredContent projection, result constructors, HTTP response-to-result mapping, text projection, and result interpretation helpers are both the Assistant registry result contract and the canonical API/agent result projection contract for governed tool outcomes. 60. `internal/agentcapabilities/transcript.go` shared with `ai-runtime`: Stored Assistant tool results and product history share one result-bearing transcript contract, with an explicit narrower provider-request projection. Observed failures and absent historical result status must survive the API boundary. 60. `internal/agentcapabilities/types.go` shared with `ai-runtime`: the agent capabilities manifest wire type, manifest-owned external-adapter surface tool contract field, capability display title and structured output schema fields, approval-policy vocabulary, capability governance normalization, and tool-governance descriptor shape are both the canonical API payload contract and the AI runtime projection contract for Pulse Assistant and MCP-facing agent tools. 61. `internal/agentcapabilities/workflow_prompt.go` shared with `ai-runtime`: the Pulse Intelligence workflow prompt catalogue, manifest-owned `workflowPrompts` projection, MCP prompt title projection, presentation kind hints, shared resource-context and finding argument vocabulary, Patrol issue-handling capability gating, argument validation, and manifest-gated shared prompt rendering rules are both the AI runtime starter contract for Assistant-compatible surfaces and the canonical API/agent prompt projection contract for MCP-facing clients. 62. `internal/api/access_control_handlers.go` shared with `organization-settings`: RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary. The `/api/resources` type filter also treats URL-encoded comma separators (`%2C`) the same as literal comma-separated type lists, because frontend consumers build these requests through standard URL query encoders. The shared node setup boundary above owns the guided/manual setup split for PVE/PBS consumers: API Inventory and Host Telemetry Agent setup modes are auto-registration paths, while Token ID/Value fields, Test Connection, and Add Node are manual-token or existing-node edit controls only. That same client contract must expose the setup strategy before a token path is chosen: API Inventory is the recommended least-privilege API path, Host Telemetry Agent is the optional full-host-telemetry root-agent path, and Manual Token Setup is a manual API-token escape hatch. For PVE, the Host Telemetry Agent setup path is also the governed host-side Docker-in-LXC inventory setup path: the frontend request to `/api/agent-install-command` must explicitly ask for command execution, the generated install command must render `--enable-commands`, and the default API Inventory path must not imply it can run the opted-in host-side Docker inventory collector. The inline node credential slot must keep the visible submit sequence as `Endpoint`, `Authentication`, and `Coverage` before the API-backed setup controls. That sequence is presentation guidance for the existing setup payload phases; it does not create a second node setup API model or allow page-local payload ownership. 63. `internal/api/agent_ingest.go` shared with `agent-lifecycle`: Unified Agent report admission, removal, remote-config identity binding, and re-enrollment responses are both an agent lifecycle authority and a canonical authenticated API contract boundary. 64. `internal/api/agent_install_command_shared.go` shared with `agent-lifecycle`: agent install command assembly is both an agent lifecycle control surface and a canonical API payload contract boundary. 65. `internal/api/agentbinding/policy.go` shared with `agent-lifecycle`, `security-privacy`: install-token command-channel binding is simultaneously an agent lifecycle admission policy, a canonical API identity contract, and a security boundary. 66. `internal/api/agenttokens/install.go` shared with `agent-lifecycle`, `security-privacy`: agent install-token issuance and persistence are simultaneously an agent lifecycle authority, a canonical API token contract, and a security boundary. Frontend and backend Unix install command builders must stay on the same token-file and preflight transport contract: tokens are passed to the installer as ephemeral files, and host install snippets must verify the target Pulse URL plus exact agent binary artifact before root escalation. The shared Proxmox agent install command contract may expose `--enable-commands` only through an explicit request field. The PVE Host Telemetry Agent setup surface is the approved caller for that opt-in when the operator wants Patrol actions or server-opted-in Docker-in-LXC inventory from the Proxmox node; generic Proxmox API Inventory setup must remain least-privilege and command-execution-free. 32a. `internal/api/cloud_agent_install_command.go` shared with `agent-lifecycle`, `cloud-paid`: hosted tenant agent install commands are agent lifecycle enrollment transport, hosted/provider MSP tenant boundary, and canonical API payload contract. The route and reusable helper must both mint PVE/PBS install tokens only in hosted mode, only for an existing tenant/org, and only into that tenant runtime's token store with the org boundary, command shape, token metadata, and already-loaded tenant-monitor refresh behavior preserved. 64. `internal/api/ai_handler.go` shared with `ai-runtime`: Pulse Assistant handlers are both an AI runtime control surface and a canonical API payload contract boundary. Assistant session list payloads may expose only the safe `handoff_summary` projection needed by the browser to mark and restore a scoped handoff. The payload must not expose provider-bound model context, raw commands, preflight output, action results, or remediation command descriptions. That safe projection owns Patrol handoff identity as data, not browser inference: `kind` may identify `patrol_assessment`, `patrol_configuration_failure`, `patrol_run`, `patrol_finding`, or generic `scoped_context`; the frontend no longer produces `patrol_assessment` or `patrol_configuration_failure`, so those kinds come from sessions saved by earlier builds, and assessment and configuration-failure sessions must not be collapsed into one finding because a safe action reference contains a finding ID. `patrol_configuration_failure` may carry only the runtime-failure boolean needed for drawer/session presentation, and run-specific fields remain reserved for `patrol_run`. Chat requests that carry `handoff_metadata.kind=patrol_run` are identity envelopes, not browser-authored model context: the API handler must resolve the run ID through the backend Patrol service, rebuild the model-only run context and resources server-side, and ignore request-side run context, resources, or actions when the run cannot be resolved. Stored session metadata must be readable by the handler so follow-up turns can rehydrate the same backend context without asking the browser to resend provider-bound payloads. `GET /api/ai/sessions` also owns the Assistant history lookup contract: optional `search` text must filter the browser-safe session projection before optional `limit` truncation, and matching may use only safe session identity, title, timestamps, and handoff-summary fields. Search must not expose provider-bound model context, stored prompts, raw tool output, or remediation details, and clients must search through this endpoint rather than inventing a parallel history endpoint. `PATCH /api/ai/sessions/{id}` owns the Assistant session-title mutation contract. The request body is limited to a user-visible `title`; the handler must reject empty titles, the chat store must normalize whitespace and bound persisted title length, and the response must be the updated browser-safe `ChatSession` projection. Rename must not expose or mutate stored prompts, messages, provider reasoning, model handoff context, approvals, action state, or tool evidence. The turn-repair, compaction, fork, and steering sub-resources (`/undo`, `/redo`, `/summarize`, `/fork`, `/steer`) and the unsupported OpenCode-style `/diff`, `/revert`, and `/unrevert` routes were removed on 2026-10-23 with the browser Assistant that called them; Pulse Mobile never used them. They fall to the session router's unknown-subresource `404` after its `ai:chat` scope check, and `ChatSession` projections no longer carry `can_redo`. The projection carries a boolean `system` flag for Pulse-owned background sessions (Patrol detection `patrol-main`, `patrol-eval`, and `investigation-*` runs), derived server-side from the well-known session IDs via `chat.IsSystemSessionID`; clients must not re-derive that ownership from ID string patterns, and must keep system sessions out of resumable-chat offers while leaving them listable for inspection. `POST /api/ai/sessions/{id}/abort` is the remaining session mutation sub-resource and accepts only `POST`. Any other method that reaches the handler returns `405` with `Allow: POST` through `requireAssistantSessionMutationMethod` in `internal/api/ai_handler.go`, before the session service is resolved (earlier layers still answer first: `Router.ServeHTTP` returns `200` for `OPTIONS` preflight, and auth, scope, CSRF, and demo-mode guards keep their own refusals). The demo-mode read-only guard and the CSRF check both treat `GET` and `HEAD` as reads, so the method contract belongs to the mutating handler rather than to its callers. `GET /api/ai/sessions/{id}/messages` stays the read path. Resource-context follow-up turns are different from Patrol-run rehydration: browser-safe `handoff_metadata.kind=resource_context` must not replace a stored rich handoff envelope with a partial metadata-only envelope, and the handler must not ask the browser to resend resource context that the chat runtime can rehydrate from the stored selected-resource envelope. Assistant message-history payloads are part of the same browser-safe projection boundary: `GET /api/ai/sessions/{id}/messages` must encode only messages passed through `chat.Message.ClientSafe()`. Collection fields stay stable for clients, but hidden provider `reasoning_content`, raw `pulse_*` / `patrol_*` tool-call prose, DSML/XML/function-call envelopes, JSON tool-call text, token accounting strings, and provider thinking text must not serialize into API history. Runtime history may retain provider reasoning for model continuity, but restored drawer state must expose only visible assistant prose plus governed structured tool evidence. Persisted tool-result transport messages must be folded into the assistant `tool_calls` entries that own them, exposing completed `output` and `success` state while keeping internal `tool_result` records out of the browser transcript. Assistant message history must also preserve the effective `model` route that produced the answer, including local runtime routes such as `pulse:local-inventory`. Agent capability manifest types are generated from `internal/agentcapabilities` payload structs into `frontend-modern/src/api/generated/agentCapabilities.ts` and must stay derived through `scripts/generate-types.go`. The chat stream must not carry the retired `explore_status` pre-pass event. Runtime workflow telemetry may remain a transport event, but client-bound Assistant streams must use `chat.StreamEvent.ClientSafe()` so raw provider `thinking` payloads and serialized tool-call prose cannot cross the API boundary. Tool execution progress is part of this SSE contract: `tool_start`, `tool_progress`, `tool_cancel`, and `tool_end` must carry typed payloads generated from `internal/ai/chat` structs so the frontend can mutate one visible tool row from pending to running/waiting to completed/error, or cancel a runtime-policy-hidden pending row, without inventing a browser-only event shape. The shared frontend SSE consumer in `frontend-modern/src/api/streaming.ts` may insert an animation-frame-backed paint checkpoint with a bounded timer fallback after opted-in Assistant progress/tool/status events, including events that arrive through separate queued stream reads rather than the same decoded HTTP chunk. OpenCode parity is source-backed by fetched `origin/dev` commit `9ed17da55ab1f7360cc0e01075f763e27fa899e9`, `packages/opencode/src/cli/cmd/tui/context/sync-v2.tsx`, where `apply(event)` mutates typed message parts event-by-event (`apply(event)`, line 120; `session.next.tool.progress`, line 317). Pulse chat text and reasoning deltas must therefore get an immediate first-delta paint checkpoint and bounded periodic checkpoints for long coalesced `content` / `thinking` runs, without yielding after every token. That pacing is an API-client consumption rule only: it must not change event payload shape, event order, timeout handling, reader cleanup, parse-error handling, or ordinary content-token throughput. Cold Assistant streams must include a typed `session` event backed by `internal/ai/chat.SessionData` as soon as the HTTP SSE writer is ready and an immediate neutral `workflow_state` preparation event before backend handoff recovery, model resolution, selected-route retry planning, context prefetch, inventory reads, or user-visible provider output so the frontend can bind the backend-created session and show live progress without a separate create-session request. That cold-stream model resolution must use explicit configured chat routes or stable provider defaults without waiting on provider model catalogs; `/api/ai/models` and settings responses own catalog-backed recommendation, not the first-response chat stream. The same SSE transport must emit neutral `workflow_state` events with phase `stream_idle` during governed silent intervals while request-bound Assistant execution is still in flight. Hidden SSE comment heartbeats are not sufficient user-visible progress. The handler must serialize comment heartbeats and JSON event writes through one writer lock, and the `stream_idle` event must stop before terminal `done`/`error` rather than becoming assistant-authored transcript content. The generated frontend union, stream parser tests, and backend JSON snapshot proof must stay in lockstep with that payload; `done.session_id` and `question.session_id` remain compatibility payloads, not the primary cold-session creation contract. Assistant `done` events must also carry the effective `model` route that completed the stream so provider fallback, transcript labels, retries, and model-route recovery stay tied to the actual responding provider rather than the failed request route. Mock-mode Assistant chat is part of that same API contract: when mock mode is active, `internal/api/ai_handler.go` must start, restart, sync, and tenant-initialize the chat runtime from an in-memory effective config that enables Assistant without mutating the persisted `AIConfig`. `/api/ai/chat` must therefore accept cold Assistant requests in mock mode even when no real provider or model is configured, and it must return the normal typed SSE sequence rather than the service-not-running recovery error. The mock fixture must pace its browser-facing status/tool/content events enough to prove the visible stream contract, while tests may disable that pace to keep backend proof fast. 65. `internal/api/ai_handlers.go` shared with `ai-runtime`: AI settings and remediation handlers are both an AI runtime control surface and a canonical API payload contract boundary. The AI settings payload on `/api/settings/ai` carries no cloud-context-privacy field: cloud context behavior is a fixed posture (real context to cloud, with credentials and local-only resources always withheld), not a settings-payload knob, so neither a `cloud_context_privacy` dial nor a `share_operational_context_with_cloud` boolean is part of the request or response contract. Local subscription-agent configuration is represented by explicit boolean opt-ins, `codex_subscription_enabled` and `claude_subscription_enabled`, plus canonical provider IDs in `configured_providers` and the provider registry projection. Those fields convey route selection only; they are not OAuth tokens, API keys, or proof of current login health. Settings updates may enable or disable them, while provider-test and Patrol-preflight endpoints remain the authority for binary, login, model-access, and structured-tool readiness. No API response may expose CLI credential material, and no failure may silently substitute the corresponding metered API provider. The manual Patrol-preflight handler and settings-triggered asynchronous preflight must delegate deadline ownership to the AI runtime so route policy cannot drift at the API edge: API providers retain the 30-second preflight budget, local subscription agents receive the bounded two-minute preflight budget, and an earlier request cancellation still wins. Legacy Assistant SSE routes in this handler that still use the older execute envelope, including `/api/ai/execute/stream` and `/api/ai/investigate-alert`, must preserve their existing top-level `complete` payload shape while sharing the governed Assistant transport liveness contract: visible neutral `workflow_state` events with phase `stream_idle` during silent intervals, hidden SSE comments only as keepalives, serialized heartbeat/event writes, and no idle progress after terminal `complete`/`error`/`done`. Provider test responses from `/api/ai/test` and provider-specific `/api/ai/test/{provider}` preflight responses must return one safe structured diagnostic envelope: `success`, `message`, optional `model`, `cause`, `summary`, `recommendation`, and `action`, plus `provider` on the provider-specific endpoint. The provider-specific endpoint may accept an optional JSON request body with `model` so Assistant can test the exact selected chat model; when that field carries an explicit provider prefix it must match the route provider instead of silently testing a different provider's model. Failure payloads must use the AI runtime's Patrol failure-cause vocabulary and safe remediation text instead of returning raw upstream provider errors. General `/api/ai/test*` payloads use neutral provider diagnostic copy for Assistant and settings readiness; Patrol-specific wording is reserved for Patrol preflight, Patrol findings, and Patrol run records. Raw details stay available only to server logs or redacted governed internal Patrol evidence. The frontend API client and settings shell must treat this payload as the canonical provider health contract rather than parsing free-form provider error strings. 66. `internal/api/ai_intelligence_handlers.go` shared with `ai-runtime`: AI intelligence handlers are both an AI runtime control surface and a canonical API payload contract boundary. 67. `internal/api/alerting/notification_queue.go` shared with `notifications`: the notification queue and DLQ handler is both a notification delivery consequence surface and a canonical API payload boundary for operational transition links. 68. `internal/api/alerting/notifications.go` shared with `notifications`: notification handlers are both a notification delivery control surface and a canonical API payload contract boundary. Apprise configuration-update logs contain normalised mode, counts and presence flags, not endpoint paths, config keys, targets or arbitrary CLI and header strings. Test-error responses retain safe structured failure summaries and HTTP status, never raw Apprise output or provider response bodies. Request/response schemas and authorised configuration round-trips remain unchanged; `internal/api/alerting/notifications_test.go` exercises both the update log and the real sender through the test handler. 69. `internal/api/configapi/config_setup_handlers.go` shared with `agent-lifecycle`: auto-register and setup handlers are both an agent lifecycle control surface and a canonical API payload contract boundary. 70. `internal/api/configapi/setup_script_render.go` shared with `agent-lifecycle`, `storage-recovery`: the generated Proxmox setup-script is a shared boundary across agent lifecycle (forced-command keys, install/uninstall edits), API contracts (rendered token shape and encoded rerun URL), and storage/recovery (backup visibility grants, Pulse-managed temperature SSH keys, and SMART disk-temperature collection). That same shared boundary also owns reachable-host selection truth for canonical Proxmox registration: runtime callers may propose ordered `candidateHosts`, but the API contract must persist and echo the first candidate Pulse can actually reach instead of freezing the caller's rejected first preference into the stored node endpoint. That same canonical payload contract also owns strict-TLS truth for that selected host: `/api/auto-register` may only persist `VerifySSL=true` when Pulse actually captured a certificate fingerprint for the selected candidate, and it must not pretend public-CA verification is safe after every candidate fingerprint probe failed. For PVE cluster sources, that same contract must distinguish primary configured endpoints from covered cluster-member endpoints. A caller whose candidate hosts match a non-primary `clusterEndpoints` entry is already registered and must not rotate the shared Proxmox token, even if the primary connection is currently disconnected. A caller whose candidates match the primary configured endpoint may still drive disconnected-source repair. That same contract now owns stale-marker verification as well: setup-token-authenticated `checkRegistration` requests may omit token completion fields and must answer `{registered:boolean}` from canonical candidate-host matching so runtime repair can distinguish real registrations from stale local marker files without rotating tokens first. That same contract owns user-chosen connection naming for assisted setup: `/api/setup-script-url` accepts an optional `name` field (the connection name typed in the add dialog), stores it on the one-time setup token, and the setup-token-authenticated `/api/auto-register` completion must name a newly created connection with that carried name instead of the node's self-reported hostname. Identity matching for dedup and cluster-member adoption stays on the reported server name and candidate hosts, so a user-chosen name can never fork an existing connection, and an empty or absent `name` preserves the hostname-derived default. That same shared boundary owns the install-token bootstrap type rule: the one-shot Proxmox source-creation grant carried by agent-install tokens accepts either a matching declared `install_type` of `pve`/`pbs` or a generic `host` install token presenting one canonical Proxmox type (#1644), because the Settings → Infrastructure installer mints `host` tokens while the unified installer auto-detects PVE/PBS on the target. Non-canonical request types never hold the grant, and the grant keeps its settings-authorized `issued_via` requirement, first-hostname binding, and serialized completion. Consumption is recorded per canonical type: one PVE create and one PBS create per token, each still one-shot, because a host running both products is an officially supported deployment and the agent registers each one separately from the same install token (#1644). The hostname binding and the mint-age clock are not per type — the first type to register pins `bound_hostname` for both. `proxmox_registration_consumed_types` carries the per-type ledger; a record with only `proxmox_registration_completed=true` predates it and reads as every canonical type consumed, so upgrading cannot revive a spent token. That grant is also time-bounded on its own clock: install tokens are minted without an expiry, so the bootstrap capability expires 24 hours after mint (`install_issued_at`, falling back to the record's creation time, and fails closed with neither). An expired grant answers `canRegister:false` and the same 403 as any ungranted token while the token keeps reporting, and the denial is logged distinctly from a token that never held a grant. Consumption ordering is part of the contract: the grant is consumed and persisted before the created source is written, and a failed source save rolls the consumption back, so a failing token store can never leave a persisted source next to a live grant. The rollback restores only the type being consumed, so a failed second-product save on a combined host cannot revive the first product's already-spent grant. The exec binding contract follows from that grant: a `bound_hostname` written by auto-register (no `bound_agent_id`, no binding version) is a clean first use of the command channel, so a matching hostname binds the fresh runtime agent ID through the first-use path rather than the legacy identity-migration branch, and the registration-bound hostname is not rewritten by an equivalent spelling the agent reports. That same contract owns auto-register WebSocket event intent: a successful completion that creates a new PVE/PBS node may broadcast `node_auto_registered`, but successful idempotent matches or credential refreshes for an already configured node must use a non-toast config-change event such as `nodes_changed` instead of re-announcing first registration. The event payload must carry the canonical `source` field so browser consumers can distinguish script-initiated operator handoffs from background agent lifecycle churn. That same shared setup contract also owns teardown symmetry for script-managed Proxmox nodes: `/api/auto-unregister` must accept the canonical `type`, normalized `host`, explicit `serverName`, optional canonical `tokenId`, request-body `authToken`, and `source:"script"` payload, and it must answer the same canonical success envelope on both real removals and idempotent no-op reruns so browser/runtime callers do not invent a second uninstall vocabulary. That same setup-script payload contract owns the Proxmox permission shape for generated scripts, runtime-side host-agent setup, and installer auto-registration. PVE setup paths must create `pulse-monitor@pve!pulse-*` tokens with privilege separation enabled, then apply `PVEAuditor`, optional `PulseMonitor`, and optional `/storage` `PVEDatastoreAdmin` ACLs to both `pulse-monitor@pve` and the concrete token id. PBS scripts must grant `Audit` to both `pulse-monitor@pbs` and the concrete token id. Browser/runtime setup callers must not fork this into token-shared, token-unprivileged, or user-only ACL variants. For PVE, `PulseMonitor` privilege selection must prefer `VM.GuestAgent.Audit` plus `VM.GuestAgent.FileRead` on PVE 9+ and reserve `VM.Monitor` for the legacy PVE 8 fallback, so API-generated scripts, runtime setup, installer setup, and browser manual guidance stay on one privilege contract. 70. `internal/api/enterprise_extension_rbac_admin.go` shared with `organization-settings`: RBAC admin extension endpoints are both an organization settings control surface and a canonical API payload contract boundary. 71. `internal/api/licensing_bridge.go` shared with `cloud-paid`: commercial licensing bridge handlers carry both API payload contract and cloud-paid entitlement boundary ownership. 72. `internal/api/licensing_handlers.go` shared with `cloud-paid`: commercial licensing handlers carry both API payload contract and cloud-paid entitlement boundary ownership. That same shared licensing boundary also owns authenticated install-version and runtime-build attribution: `internal/api/router.go` must hand the canonical process `serverVersion` and normalized runtime identity into `internal/api/licensing_handlers.go`, and the shared licensing runtime must carry those exact values through `/v1/activate`, `/v1/licenses/exchange`, `/v1/grants/status`, and `/v1/grants/refresh` so migrated installs can be attributed to exact builds and public-vs-Pro runtime status without inventing a second version source or trusting browser-supplied hints. That same shared licensing boundary also owns self-hosted purchase-return framing. `/auth/license-purchase-start` and `/auth/license-purchase-activate` may return operators only to the canonical self-hosted settings route at `/settings/system/billing/plan`, and the bridge pages must describe that surface as a plan-owned destination (`Plans`, `Plan activated`, `Finalizing plan upgrade`) rather than as a tier-owned `Pulse Pro billing` page. Frontend callers may still render the unlocked tier name inside that destination, but the browser/API contract must not reintroduce Pulse-Pro-as-page-name copy in callback titles, actions, or retry guidance. 73. `internal/api/licensing_legacy_retry.go` shared with `cloud-paid`: the background legacy-exchange retry loop carries both API payload contract and cloud-paid entitlement boundary ownership. 74. `internal/api/org_handlers.go` shared with `organization-settings`: organization management handlers are both an organization settings control surface and a canonical API payload contract boundary. 75. `internal/api/org_lifecycle_handlers.go` shared with `organization-settings`: organization lifecycle handlers are both an organization settings control surface and a canonical API payload contract boundary. 76. `internal/api/payments_webhook_handlers.go` shared with `cloud-paid`: commercial payment webhook handlers carry both API payload contract and cloud-paid billing boundary ownership. 77. `internal/api/public_signup_handlers.go` shared with `cloud-paid`: hosted signup handlers carry both API payload contract and cloud-paid hosted provisioning boundary ownership. That same shared boundary also owns public hosted-signup response privacy: syntactically valid `/api/public/signup` requests must return one generic `202 Accepted` Pulse Account message whether provisioning/email side effects ran or were suppressed by the owner-email limiter, while invalid bodies and true server failures remain explicit. 77. `internal/api/relay_mobile_capability.go` shared with `relay-runtime`: the backend-owned Pulse Mobile relay capability inventory is both a relay runtime boundary and a canonical API payload contract surface. 78. `internal/api/relay_mobile_capability_generated.go` shared with `relay-runtime`: the generated Pulse Mobile route inventory is both a relay runtime allowlist and the backend projection of the canonical mobile API contract. 78. `internal/api/resourceapi/resources.go` shared with `unified-resources`: the unified resource endpoint is both a backend payload contract surface and a unified-resource runtime boundary. 79. `internal/api/security.go` shared with `security-privacy`: the security handlers are both a security/privacy control surface and a canonical API payload contract boundary. That same shared security/API boundary owns CSRF replacement-token concurrency. When parallel browser mutations arrive with stale or missing CSRF tokens for the same session, `internal/api/csrf_store.go` may retain a bounded set of recent unexpired token hashes so each server-issued replacement can validate its retry. Logout, password-change, and explicit session revocation must still delete the full session token set rather than leaving any retained replacement token valid. The same boundary owns SSO browser-session identity shape: `ssoSessionUsername` in `/api/security/status` is the stable provider-scoped principal used by authorization and organization context, while `ssoSessionDisplayName` is the mutable human-readable label derived from SSO claims for app chrome. Frontend consumers may display the label, but API, organization, token, and permission checks must continue to bind to the stable principal. `/api/security/status` also owns an explicit three-tier disclosure contract. Unauthenticated callers receive only the public login/setup allowlist (`detailLevel=public`): authentication presence, login routing, SSO provider discovery, and browser presentation policy. Authenticated callers may additionally receive their own session identity, token scopes, and capability projection (`detailLevel=authenticated`). Deployment, network, credential, token-hint, audit, proxy-configuration, and agent URL details require an admin/session boundary or an API token carrying `settings:read` (`detailLevel=privileged`). Bootstrap token paths, LXC IDs, and Docker container names are not part of any security-status tier. 80. `internal/api/security_tokens.go` shared with `security-privacy`: the security token handlers are both a security/privacy control surface and a canonical API payload contract boundary. Token owner identity is reserved for the server-authenticated principal: shared token-minting helpers must derive `owner_user_id` from the current session or caller token and reject extension metadata that tries to overwrite that field. API-owned token minting paths that bypass `/api/security/tokens`, including agent install, deploy bootstrap/enroll, container runtime migration, quick security setup, and API-token regeneration must still call the shared owner setter and must not encode owner identity inside their extension metadata maps. The dedicated Pulse Mobile relay token route is part of that same API contract even though its runtime capability is Relay-owned: `POST /api/security/tokens/relay-mobile` must pass normal admin and `settings:write` authorization, then require the paid `relay` feature before minting a `relay:mobile:access` credential. Community installs may receive the standard license-required response, but direct API calls must not bypass Relay entitlement by creating mobile runtime tokens. Setup-script rendering remains governed by the shared boundary above. PVE setup-script auto-registration is part of the rendered API contract: after creating the privilege-separated token and applying ACLs, the script must smoke-test the exact token id/value against `${HOST_URL%/}/api2/json/nodes` with `PVEAPIToken` authentication before it posts the canonical `/api/auto-register` payload. Smoke-check failure is a manual-completion state, not a successful auto-registration response. Rendered auto-register transport must capture the response body and HTTP status together (no `-f` body suppression), and the invalid-setup-token branch must key off a 401/403 status instead of grepping for server error strings the backend does not emit, so the auth-failure guidance is actually reachable (#1644). Operator-facing manual-completion and rerun guidance in the rendered scripts must name the live `Settings → Infrastructure` page, not the retired Nodes page. 82. `internal/api/slo.go` shared with `performance-and-scalability`: the SLO endpoint is both an API contract surface and a protected performance hot-path boundary. 83. `internal/api/system_settings.go` shared with `security-privacy`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary. 84. `internal/api/unified_agent.go` shared with `agent-lifecycle`: unified agent download and installer handlers are both an agent lifecycle control surface and a canonical API payload contract boundary. Development-mode missing-binary responses must report the build command for the requested normalized OS/architecture, not a hard-coded Linux target, so installer preflight failures point operators at the artifact they actually need. 85. `internal/api/updates.go` shared with `deployment-installability`: update handlers are both a deployment-installability control surface and a canonical API payload contract boundary. `GET /api/updates/release-notes` is the authenticated running-release companion to update checks. It returns the exact published tag body as `version`, `releaseNotes`, `releaseDate`, and `isPrerelease`, rejects source/development builds, and keeps missing releases distinct from upstream failures. `frontend-modern/src/api/updates.ts` must preserve that payload without creating a frontend-authored changelog shape. `GET /api/updates/release-notes/assets/{tag}/{name}` uses the same authentication and monitoring-read scope, accepts only the running published tag and PNG sidecars referenced by that release body, and distinguishes missing assets from upstream failures. The server bounds payload size, PNG dimensions and GitHub redirect hosts. Versioned private browser caching keeps images inside the existing same-origin CSP boundary. 86. `pkg/aicontracts/action_broker.go` shared with `ai-runtime`: the public typed action-proposal broker contract is both an AI runtime proposal boundary (the only sanctioned Patrol route to an infrastructure mutation) and a canonical API dependency contract over the shared action lifecycle service. The updater registry behind `GET /api/updates/plan` is a plan-provider seam only (`SupportsApply`, `PrepareUpdate`, `GetDeploymentType`); apply and rollback semantics ride the manager pipeline behind `POST /api/updates/apply` and `POST /api/updates/rollback`, and the updates API exposes no per-deployment adapter execute or rollback transport. `POST /api/updates/apply` rejects target versions at or below the running version with a conflict response unless the request body sets the explicit `allowDowngrade` flag, so a stale-but-valid release asset URL is a refused downgrade rather than a silent install. `POST /api/updates/rollback` takes the `eventId` of an update history entry, is gated admin plus `settings:write` exactly like apply, restores the retained backup recorded on that entry through the manager pipeline, and answers with the same started-acknowledgement shape as apply; conflict responses cover pruned or missing backups and Docker deployments, and not-found covers unknown history entries. `GET /api/updates/pro-runtime` (admin plus `settings:read`) answers whether a community build can switch to the Pulse Pro runtime as `{available, reason?, currentVersion, version?, installInPlace, docker?}`, where `reason` is the closed set `already_pro`, `not_activated`, `not_eligible`, `source_build`, `unsupported_deployment`, `older_release`, `prerelease_only` and `unavailable`, and `docker` reuses the `DockerUpdateCommands` shape. `prerelease_only` means the broker's pinned Pro release is a prerelease while the install follows the stable channel, so the answer carries the pinned `version` but offers neither an in-place switch nor Docker commands; rc-channel installs are still offered the pin. `POST /api/updates/pro-runtime/apply` (admin plus `settings:write`) takes no body, re-checks that an in-place switch is offered (otherwise a plain conflict response, with the reason logged rather than returned), runs the same readiness gate as apply against the switch target version, and answers with the apply started-acknowledgement shape. Neither route exposes broker credentials. 87. `pkg/aicontracts/fix_execution.go` shared with `ai-runtime`: the public approved-fix execution contract is both an AI runtime approved-action boundary and a canonical API dependency contract for Patrol and enterprise auto-fix binders. 88. `pkg/aicontracts/investigation.go` shared with `ai-runtime`: the public Patrol investigation record and finding contract is both an AI runtime handoff boundary and a canonical API payload contract for Patrol, Assistant, unified findings, persistence, and audit surfaces. 89. `pkg/aicontracts/orchestrator_deps.go` shared with `ai-runtime`: the public investigation orchestrator dependency contract is both an AI runtime handoff boundary and a canonical API payload contract for Assistant and Patrol tool-call history. 90. `pkg/extensions/ai_autofix.go` shared with `ai-runtime`: the enterprise auto-fix extension dependency seam is both an AI runtime approved-action boundary and a canonical API extension contract over Assistant and Patrol execution dependencies. 91. `pkg/extensions/audit_admin.go` shared with `security-privacy`: the enterprise audit endpoint and canonical store configuration seam is both a security persistence trust boundary and a canonical API extension contract. 92. `pulse-mobile:config/mobile-api-surface.json` shared with `relay-runtime`: the Pulse Mobile consumer minimum and released-line probe inventory are both API compatibility and relay runtime boundaries. 93. `pulse-mobile:src/generated/coreCompatibility.ts` shared with `relay-runtime`: the generated mobile route, pairing, and push projection is both an API consumer contract and relay runtime boundary. 94. `scripts/generate-pulse-intelligence-docs.go` shared with `ai-runtime`: the Pulse Intelligence manifest docs generator is both an AI runtime docs/onboarding projection and a canonical API contract projection over the agent capabilities manifest and Pulse MCP surface tool contract. Update-plan responses own the structured readiness verdict for server updater capability, rollback support, agent continuity, v5 agent migration transport security, and agent reporting token scope. That verdict is part of the update-plan API contract, not a settings-only migration registry. When v5 or legacy agents are present, readiness must preserve the `agent-migration-security` warning that automatic first-hop migration depends on HTTPS or trusted local-network transport, with signed-installer reinstall as the high-assurance path. `POST /api/updates/apply` must derive the requested target version through the shared update-target validation path, recompute readiness from live backend state, and reject `blocked` verdicts before update execution starts. On the compiled Pro edition the same check and apply endpoints are served by the license server download broker instead of the public GitHub releases: response shapes are unchanged, but `downloadUrl` is a broker intent URL for the activation's license server (target version carried in the query so the shared update-target validation still applies), and apply re-resolves fresh signed artifact URLs server-side. Update payloads must never expose broker credentials (installation token, fingerprint) or the short-lived signed URLs, and handlers must not fork payload shape by edition. The platform-connections API contract also owns inactive monitored-system candidate semantics end to end. `enabled=false` on TrueNAS or VMware preview, test, add, and update payloads must serialize through the shared ledger client as `active:false`, and preview responses may legitimately return `no_change`, `removes_existing`, or `removes_multiple` with empty projected-system lists when the disabled candidate no longer contributes to a monitored-system group. That same monitored-system grouping contract now also owns restart-safe host report continuity at the API boundary. The removed monitored-system limit enforcement path must not return; the API should treat a returning standalone host report as existing grouping context when monitoring can match it to recent persisted host continuity, so a server restart or v6 upgrade does not change the explanatory grouping model before the live inventory rebuild catches up. Genuinely new host identities must still return the canonical monitored-system blocked payload. Independently, Assistant scope is server-bound: `ai:chat` authorizes conversation, reads, sessions, and knowledge reads only; durable knowledge changes and explicit governed approval/execution require `ai:execute`, relay-mobile chat does not inherit it, trusted proposal correlation identity is server-authored, and unknown/internal model fields fail closed before capture or store access. ## Extension Points The frontend action wire mirror in `frontend-modern/src/types/actionAudit.ts` tracks the durable inbox/detail, policy provenance, dispatch, and `ActionResultV2` objects. `frontend-modern/src/api/resourceActions.ts` owns `GET /api/actions?view=pending|settled` and `GET /api/actions/{id}` consumption; `frontend-modern/src/api/patrol.ts` owns Autopilot acknowledgement create, activation, effective-mode, and revocation consumption. These mirrors must use backend JSON names and closed enums rather than frontend authority dialects. The same client owns the retained-objective list/create/update/delete mirror for `/api/ai/patrol/objectives`. Objective writes carry optimistic revisions and may author only the bounded brief, optional context, resource IDs, and status; coverage and observer artifacts remain server-owned. Successful active create or material update requests immediately ask the tenant Patrol service to plan coverage, while the HTTP response remains the durable objective truth and does not claim that queue acceptance means coverage. The frontend mirror treats `observer_proxy` as uncovered objective truth and may present its useful local signal without translating it into covered state. The route-backed Actions review consumes an exact typed action id through its browser query state and resolves lifecycle state from `GET /api/actions/{id}`; Patrol may link to that identity but must not infer Open versus History from finding copy or create a second mutation client. Approve, reject, and execute remain bound to the canonical Actions review and the exact displayed `planHash`. Patrol Open work copy in the browser may clarify row-level evidence, approval, automatic-action, and verification-result review as presentation over existing Patrol finding/run/status payloads. Such copy changes do not by themselves add a new API state machine, queue contract, or verification-accounting field. 0. Parallel platform/resource handler families share their flow logic instead of per-platform copies. `internal/api/platform_connection_shared.go` owns the platform connection update flow (locate by trimmed ID, decode with stored-record fallback via the generic `decodeOptionalInstanceRequest`, normalize, preserve masked secrets, validate, persist, respond redacted — `updatePlatformConnection` + `platformConnectionUpdateSpec`) and the admin+settings:write item-route mux builder (`platformConnectionItemRoute`); a new platform connection surface wires a spec instead of re-rolling the flow, so masked-secret preservation cannot be forgotten. `internal/api/metadata_handlers_shared.go` owns the guest/docker metadata GET/PUT payload semantics (empty object instead of null, zero record instead of 404 — pinned by `TestContract_MetadataGetPayloadsUseZeroRecordsInsteadOf404`). Guest, Docker, and host metadata handlers must resolve the active tenant monitor's live metadata stores. `ConfigPersistence`, export/import, entitlement usage, and reload-time router wiring must share those store instances rather than retaining independent in-memory caches of the same files; a successful API write must therefore be visible to backend resource projection and configuration export immediately. Assistant URL updates must resolve a provider per organization and refresh existing services after a monitor replacement; a default provider must not be shared across tenants. Infrastructure update detection (`internal/api/update_detection.go`) and scheduler health resolve the request organization's monitor and read state on every request; an organization whose monitor cannot be resolved gets no updates and no queued update check, never the default organization's. Deploy preflights and jobs share `handleDeployJobStatus` / `handleDeployJobEvents` in `internal/api/deploy_handlers.go`; recovery points series/facets share `parseRecoveryListPointsOptions`; docker and kubernetes agent lifecycle PUTs share per-handler `handleHostLifecycleAction` / `handleClusterLifecycleAction`; PBS/PMG node connection probes share `testProxmoxPlatformConnection`; secrets-backed sqlite stores (handoff JTI, purchase-return redemptions) open through `openHardenedSecretsDB` so the private-permission hardening policy stays single-sourced; privileged settings endpoints gate through `serveSetupTokenOrSettingsWrite` in `internal/api/router.go`; patrol findings convert to the unified store through one `unifiedFindingFromAI`. 1. Add or change payload fields through handler + contract tests together 2. Update frontend API types in lockstep with backend contract changes. Websocket-backed API consumers such as `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` and `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` may read runtime context only through `frontend-modern/src/contexts/appRuntime.ts`; they must not import `frontend-modern/src/App.tsx`, because payload ownership remains in the API contract rather than the root shell. 2a. Route settings infrastructure connected-system ledgers through `/api/connections` and `frontend-modern/src/components/Settings/useConnectionsLedger.ts` together. The frontend ledger may retain the last fulfilled connection snapshot while polling or manual reload is in flight, but that retention is only a fetch lifecycle rule; it must not synthesize rows, downgrade backend fleet state, or replace the shared connection projection with page-local placeholders. In mock mode that ledger is a clean room, composed in `internal/api/platform_mock_connections.go`: real configured PVE, PBS, PMG, vSphere, TrueNAS, and availability sources are dropped from the aggregator inputs and only authored fixtures compose the payload, matching the substitution `/api/config/nodes` already performs. Real clients are never initialised while mock mode is on, so retaining those rows would publish real connection names and addresses through an otherwise synthetic payload and report a collection state that mock mode itself suspended. The single exception is the `PULSE_MOCK_KEEP_REAL_POLLING` opt-in, where the configured sources genuinely do collect and remain in the ledger. 2b. Route agentless availability target kind changes through `internal/api/availability_handlers.go`, `internal/api/platform_mock_connections.go`, `frontend-modern/src/api/availabilityTargets.ts`, and the unified-resource availability payload together. The bounded `targetKind` vocabulary is `machine`, `service`, and `device`; missing legacy values default to `service`. Browser add-dialog routes may carry a `targetKind` query value to preselect that bounded kind, but the persisted contract remains the `AvailabilityTarget.targetKind` payload. Browser consumers must not place availability targets into Standalone Machines from that classification; Machines membership requires Pulse Agent resource evidence. API clients must not infer that classification from protocol, hostname, port, or row label. The settings-side availability model may choose semantic and state-colored chip classes for the visible target status, but route/query parameters, `targetKind`, and the status payload remain API-owned contract facts rather than CSS-derived state. 3. Add dedicated contract tests for new stable payloads Unified resource type-filter and organization-share resource type additions must route through `internal/api/resourceapi/resources.go`, `internal/api/org_handlers.go`, frontend resource typing, and `internal/api/contract_test.go` together. Native provider projections such as TrueNAS `network-share` may be accepted by `/api/resources` filters and cross-organization share normalization only after the unified-resource contract defines the canonical resource type and payload facet. 3a. Route diagnostics payload fields and user-facing diagnostics copy through `internal/api/diagnostics.go`, `internal/api/diagnostics_contract_test.go`, `internal/api/diagnostics_additional_test.go`, and `internal/api/diagnostics_memory_test.go` together. Docker and Podman health notes emitted by diagnostics must lead with Docker / Podman module language and route operator recovery to the Infrastructure and Security settings surfaces rather than generic runtime family wording or retired agent-management destinations. Pulse Assistant diagnostics must expose native runtime availability as `assistantRuntimeConnected`; the diagnostics payload must not revive legacy MCP transport fields such as `mcpConnected` or `mcpToolCount` for the first-party Assistant surface. 3b. Route Docker / Podman management API response copy through `internal/api/docker_agents.go`, `internal/api/docker_metadata.go`, `frontend-modern/src/api/monitoring.ts`, and their route/client tests together. Operator-facing responses for Docker / Podman host removal, hide/unhide, pending uninstall, display-name, and host metadata paths must use Docker / Podman module or host wording instead of generic container runtime labels. 3ba. Route Docker / Podman report body sizing through `pkg/agents/docker/report_limits.go` and `internal/api/docker_agents.go`. The endpoint accepts exact inclusive ceilings of 2,097,152 encoded HTTP-body bytes and 10,485,760 decoded JSON bytes, preserves empty-encoding and gzip compatibility, and returns `413 report_too_large` with `dimension` and `limitBytes` diagnostics for the first byte over either boundary. Unsupported encodings remain `415`; malformed gzip and invalid JSON remain distinct `400` failures. 3c. Route Assistant finding handoff context changes through `internal/api/ai_handler.go`, `internal/api/ai_handler_test.go`, and `internal/api/contract_test.go` together. Patrol-originated handoffs must keep `[Finding Briefing]`, `[Finding Context]`, `[Finding Lifecycle Context]`, structured handoff resources, related root-cause/correlation finding context, and structured handoff actions model-only, with the briefing summarizing latest lifecycle event and factual governed action artifact metadata without raw command text or Pulse-authored next-step guidance. Structured handoff action references may use the current live Patrol investigation-fix approval for the finding when that approval is newer than the approval ID on the durable record, but the payload may carry only IDs, status/risk/target metadata, request/expiry timestamps, action plan identity and expiry, safe generated approval summaries, command counts, and fix/action references, never the approval command payload. Patrol remediation-plan handoffs must use the same boundary for model-only context: plan status, risk, step labels, and command counts are allowed, while raw command and rollback command payloads remain in governed action surfaces. Frontend Patrol finding-discussion handoffs run in the approval-required Assistant mode that `/api/ai/chat` sets server-side for every request, never the user's persistent autonomous control setting, and send no execution-mode field of their own; live approval, action artifact, fix-outcome, and remediation-plan references only add structured action metadata, they are not the trigger for the boundary. Frontend-visible Patrol briefing payloads must stay compact and must not include suggested prompt chips, Patrol-authored next-step recommendations, or route-owned recommendation metadata. Frontend queued-fix recovery handoffs where the live approval or action artifact payload is unavailable must still carry that Patrol-owned finding briefing, current `fix_queued` posture, approval-required disclosure, and model-only evidence context; they must not degrade into generic Assistant investigation chat or imply that execution can proceed from missing command payloads. Expired-approval recovery handoffs may use a still-available structured action artifact payload only as safe metadata: description, target, risk, rationale, destructive posture, and command count may enter the briefing, while raw command text remains owned by governed remediation or approval surfaces. If the unified finding list lacks a full investigation record, frontend finding-discussion handoffs may hydrate the latest investigation session for the same safe action artifact metadata, but they must not paste raw action command text into the authored prompt or visible briefing. Direct alert-investigation API handoffs through `internal/api/ai_handlers.go` must enforce that same request-scoped boundary by setting `ai.ExecuteRequest.AutonomousMode` to false and `ai.ExecuteRequest.RequireCommandApproval` to true; API proof must keep this guarded in both `internal/api/ai_handlers_test.go` and `internal/api/contract_test.go`. Governed action artifact lines in the briefing must derive from those same structured action references after recovery so the briefing cannot contradict the handoff action payload. Related finding context must resolve from the current unified finding store, stay bounded and deduplicated, include current recency and latest lifecycle facts, and seed only structured handoff resources for canonical policy, state, topology, and timeline hydration. Chat execution owns resource-policy sanitization of the assembled model-only handoff before prompt injection, so API payload builders may pass structured product context without turning raw resource identity into user-authored text or disclosure authority. 3d. Route command-agent WebSocket registration token semantics through `internal/api/agent_exec_token_binding.go`, `internal/api/router.go`, and `internal/api/contract_test.go` together. `agent:exec` tokens must already be bound to the registering agent ID or hostname before `/api/agent/ws` accepts command registration. The only first-use exception is a Pulse-minted PVE/PBS install-command token carrying the governed install metadata; that token may bind once to the first command agent ID and hostname that registers, and a later different agent or hostname must be rejected. Generic unbound `agent:exec` tokens remain fail-closed. 4. Route unified resource sensitivity, routing, and `aiSafeSummary` payload changes through `internal/api/resourceapi/resources.go`, `internal/api/contract_test.go`, and the canonical frontend resource consumer proofs together; resource governance metadata must not ship as an API-only or frontend-only heuristic That same resource payload contract owns `aggregations.policyPosture` on `/api/resources` and `/api/resources/stats`. The aggregation must be derived from canonical unified-resource policy metadata, normalized as camelCase resource API JSON, and exercised with backend contract tests plus the canonical `useUnifiedResources` frontend hook proof whenever it changes. 5. Route unified-resource action, lifecycle, and export audit reads through `internal/api/activity_audit_handlers.go`, `internal/api/router_routes_licensing.go`, and `internal/api/contract_test.go` together so the control-plane execution trail stays on a governed API contract instead of a store-only shape Enterprise audit-log reads are part of that same API boundary. Audit list and verification handlers must preserve structured storage failure semantics from `pkg/audit`: transient store pressure returns `503` `audit_store_busy` with `Retry-After`, unavailable or corrupt audit storage returns `503` `audit_store_unavailable`, and unrelated query failures remain `query_failed`. List response sizes must stay bounded while valid non-negative offsets remain able to traverse the retained audit history. Invalid booleans, timestamps, limits, and offsets fail with a stable `400` validation response instead of being ignored. Successful list responses always encode `events` as an array, including an empty history, and obtain `events` plus `total` from one storage snapshot with stable `(timestamp, id)` ordering. Enterprise endpoint binders may extend export, summary, and webhook behavior, but list and verification replacements must delegate these canonical handlers so Pro cannot discard or remap the storage contract. Unified action planning is part of that same API-first action contract: `POST /api/actions/plan` must route through `internal/api/actions.go`, `internal/actionlifecycle/service.go`, `internal/actionplanner/planner.go`, and `internal/api/contract_test.go` together, returning deterministic `ActionPlan` identity, approval policy, blast radius, resource/policy versions, plan hash, and preflight checks without approving or executing the capability. A successful plan must also be durably recorded in the unified action-audit store with initial lifecycle evidence before the API returns: approval-required plans land as `pending_approval`, and retries with the same deterministic action identity must return the existing audit without rewinding an approved, executing, or terminal record or duplicating its lifecycle events. MCP, CLI, and UI consumers may adapt this payload, but they must not become the source of truth for action planning semantics. The plan/decision/execution lifecycle itself is transport-independent and lives in `internal/actionlifecycle/service.go`; the REST handlers in `internal/api/actions.go` are thin decode/actor/error-mapping adapters over that one service. In-process consumers (for example a Patrol action broker) must call the same service and therefore inherit identical resource lookup, availability checks, plan hashing, audit persistence, approval decisions, remediation locks, plan-drift revalidation, execution, and terminal publication. No caller, HTTP or in-process, may implement a parallel lifecycle or dispatch a resource mutation around this service. The Patrol proposal seam rides that same service: `internal/api/patrol_action_broker.go` implements the public `aicontracts.OrchestratorActionBroker` contract as a tenant-bound proposal adapter. It stamps the fixed `pulse_patrol` requestedBy actor and a broker-owned `ActionOrigin` (surface/finding/investigation/proposal IDs plus the orchestrator-observed investigation evidence IDs) through the service's internal `PlanWithOptions`; the public plan endpoint keeps calling plain `Plan`, so an HTTP request body can never claim a first-party origin. Enterprise still has no decision or execution method. After planning, core may auto-authorize only when the capability's declared eligibility and the tenant's effective Patrol mode allow it, the resource is not locked by `NeverAutoRemediate`, and any persisted resource capability limit or recurring window admits it. Absence of a resource policy inherits those tenant and capability bounds; an enabled per-resource capability/window policy may only narrow them, and `NeverAutoRemediate` remains the explicit opt-out. Assisted mode admits only `low_risk`; unlocked full mode may also admit `elevated`; monitor, approval, dry-run-only, MFA, and a missing or unknown tenant policy fail closed. Automatic admission is lifecycle-owned: `ExecuteUnderPolicy` re-reads the complete tenant, capability, resource, window, unlock, license, and emergency-stop posture under the shared policy admission coordinator, binds it to a typed versioned lease, then persists the `pulse_patrol_policy` / `policy` approval and `executing` transition in one store CAS transaction. No reusable policy-approved state exists. Lazy initialization of that shared coordinator must be concurrency-safe: simultaneous first policy writers on one lifecycle service must converge on one coordinator and cannot enter parallel admission or mutation sections. Malformed, stale, unreadable, or revoked policy records a stable refused-before-dispatch failure with no executor call. Human approval stays a distinct path: automatic-mode, resource-limit, and recurring-window changes do not revoke a human decision, while plan drift, `NeverAutoRemediate`, and the action emergency stop remain universal. The executing transition is the admission linearization point; a later emergency stop is best-effort cancellation and never claims rollback. Proposals that populate a capability parameter declared `IsSensitive` are refused with `ErrSensitiveParamsRequireOperator` before any audit persistence, so secret material never enters model output, investigation stores, or action audit records. Capability inspection for proposals goes through `Service.Capabilities`, which shares planning's registry resolution and typed errors. The service also exposes an additive, org-scoped `OnActionTransition` persisted-state callback (`func(orgID, record)`; plan, decision, and terminal execution transitions, published only after the corresponding store write succeeds), wired through `ResourceHandlers.SetActionTransitionPublisher`, so proposing surfaces can reconcile decisions and outcomes onto the correct tenant. A Patrol proposal must carry both its finding and investigation IDs before anything persists; identity-less proposals are refused so a governed action can never lose deterministic correlation. Enterprise binds proposal evidence from the bounded, non-terminal tool-use events it observed for that run; the broker copies those IDs into `ActionOrigin`, and the lifecycle normalizes and de-duplicates them before persistence. Model output cannot mint this audit provenance, and the IDs grant no planning, approval, or execution authority. The frontend action-audit contract projects every broker-owned origin correlation field, including `operationalRecordId` and `evidenceIds`, without treating either as operator-authored data. Consumers may build an exact Patrol return route from `operationalRecordId` only for a recognized Patrol surface; absence of that field remains an unavailable return route. Authority proof: `TestContract_PatrolActionBrokerKeepsPolicyExecutionCoreOwned` in `internal/api/contract_test.go`. The proposal enters that broker from the investigation-only `patrol_propose_action` capture (canonical name and descriptor in `internal/agentcapabilities/`): mutation-none, side-effect-free, rejected by registry policy outside the investigation profile, with the model supplying only resource/capability/params/reason and all correlation identity injected from trusted orchestration context. The companion investigation-only `patrol_action_capabilities` tool is also statically read/mutation-none and profile-gated. It accepts a canonical resource ID and projects the same tenant-bound `Service.Capabilities` contract used by proposal validation, including declared parameter schemas and sensitivity markers but no values. A catalogue lookup neither creates a proposal nor grants plan, approval, or execution authority, so an investigation can select a causal action target beyond the initial finding without widening the mutation boundary. Proposal parameter values are redacted from durable transcripts and stream events by the shared exposure projector (including provider-streamed raw-input overrides, which are discarded for exposure-restricted tools); the action audit is their canonical durable home once the broker plans the proposal. Proposal acceptance validates through the planner's exported canonical rules (`actionplanner.FindCapability` / `actionplanner.ValidateParams`), so a proposal that validates is exactly a proposal the planner will accept; the broker's `ActionCapabilityParamInfo` projection carries `Pattern` alongside enum and sensitivity so that validation parity survives the cross-repo boundary. The Patrol proposal broker and the per-org proposal capability catalog are wired from the router onto the AI settings handler (`SetActionBrokerFactory` / `SetProposalCatalogFactory`), and the investigation adapter (`orchestratorChatAdapter`) exposes only `ExecuteInvestigationStream` (returning the structured investigation result with its typed proposal errors) and `ListInvestigationTools`. The shared optional `InvestigationExecutionLimitUpdater` contract carries successful Patrol autonomy budget/timeout updates into the live enterprise orchestrator. The API mutation is not complete if persistence and the response advance while the execution boundary remains on stale defaults; newly admitted investigations must snapshot the newly published limits. The retired command-execution, autonomy, and command-shaped approval adapters are removed, and the legacy `aiautofix` command-approval endpoints fail closed with `command_fix_retired`. Executor-owned live readiness is part of planning, not a UI precheck: after planner validation and before audit persistence, the lifecycle service must ask the registered executor whether the resource/capability is currently executable. A failed readiness check returns `409` `action_execution_unavailable`, does not create or mutate an action audit record, and must not dispatch commands. Docker / Podman lifecycle readiness uses that hook for command-agent connectivity and runtime posture; browser controls may consume advertised capabilities, but must not replace this check with direct shell, SSH, provider, or agent-command calls. Concrete action feasibility is a separate lifecycle gate from cheap capability availability. `AvailabilityChecker` remains safe for bulk `/api/resources` projection; the optional `FeasibilityChecker` runs only for a specific action during planning and again before approval/dispatch, where it may ask the current Unified Agent to perform the versioned, read-only `action_preflight` for the exact action-bound operation digest. An infeasible, stale, mismatched, timed-out, or unsupported agent result returns the same `409 action_execution_unavailable` contract and cannot persist an approval or enter `executing`. The preflight result is readiness evidence only, never approval, dispatch authority, durable receipt, execution success, or verification. Docker / Podman lifecycle execution resolves the command WebSocket by the Docker reporting agent ID first, then by canonical Docker host name when the runtime source ID differs from the command-agent registration ID. Once `/api/actions/{id}/execute` has entered the API-owned execution contract, the executor may dispatch the vetted container lifecycle and verification commands as trusted agent commands; the host-agent hard-block policy still applies, and the action audit remains the approval and lifecycle source of truth. Docker lifecycle and image-update result evidence must validate raw agent chronology against the bounded freshness/skew window before canonical normalization. Canonical evidence preserves the original `ObservedAt` and server `ReceivedAt` even when the observer clock is slightly ahead. Stale or excessively future observations stay inconclusive and must never be made fresh by rewriting timestamps. The version-2 independent Docker observation contract carries a canonical daemon health state as well as lifecycle state. For start and restart, the API may confirm the postcondition only when the container is running and the independent snapshot says `healthy` or explicitly `none` because no health check exists. `starting`, `unhealthy`, missing health, protocol-v1 agents, and unsupported values remain contradicted or inconclusive. Legacy durable receipts without health stay recoverable but cannot be upgraded from execution truth to verified outcome truth. Proxmox QEMU VM and LXC lifecycle execution is part of that same API-owned action contract. Proxmox guest resources may expose only conservative lifecycle operations (`start`, `shutdown`, `reboot`, `stop`) and execution must route through the registered action executor, not through platform tables, Assistant tool shortcuts, direct Proxmox API mutation, SSH, or guest-local agents. The executor must resolve a connected Proxmox node command agent from the unified resource's linked node agent first, then the canonical Proxmox node hostname, dispatch only vetted `qm` / `pct` lifecycle commands as trusted action-owned agent commands after the API action enters execution, and verify the resulting Proxmox state with `qm status` / `pct status` before recording success. Templates, locked guests, stale Proxmox inventory, incomplete VMID/node metadata, unsupported handlers, and disconnected node command agents must fail closed through the same readiness and audit model. Agent-managed Linux host package updates are the second complete typed action vertical. `install_os_updates` is admin-floor and elevated-policy eligible, has no model-selectable parameters, and is advertised only for a command-enabled host whose agent reports supported APT posture. Planning and dispatch recheck a fresh error-free inventory, a positive pending count, the registered handler, and live agent connectivity. Execution uses only `ExecuteHostUpdate` with the closed typed envelope; it must not synthesize a shell command in the API. The terminal audit distinguishes package-manager success from verified, failed, or inconclusive post-install simulation and records reboot-required state without rebooting. The API injects the agent-authored inventory fingerprint into the typed request; refresh-time fingerprint drift refuses before installation and requires a new plan, so a stale package index cannot silently widen the approved mutation. Agent-managed package-cache cleanup is the third complete typed action vertical. `clean_package_cache` is admin-floor and low-risk-policy eligible, accepts no model parameters, and is advertised only when the canonical cache filesystem is under pressure and the fresh agent-authored cache posture reports meaningful reclaimable bytes. Dispatch uses only `ExecuteHostStorageCleanup` with the closed `host_storage_cleanup` envelope and injects the observed fingerprint; command text, paths, packages, and arbitrary arguments never cross the API. The agent owns the sole `apt-get clean` mutation and read-after-write cache scan. The terminal audit records before/after/reclaimed byte counts and distinguishes verified, failed, and honestly inconclusive outcomes; inconsistent or unbounded byte evidence fails closed. Resource payloads may expose the same executor-owned unavailable state as `actionReadiness[]` entries with stable `name`, `available`, `reasonCode`, and `reason` fields so browser and agent clients can explain disabled actions without treating unavailable capabilities as executable. A readiness entry may add an optional bounded `detail` naming the concrete lookup the refusal was judged against (for example the stale enrollment token id, or the agent-id / hostname session lookups that missed); `reason` stays the stable operator-safe copy and clients must not branch on `detail` text. Action approval decisions are API-owned as a separate non-execution contract: `POST /api/actions/{id}/decision` may only record an `approved` or `rejected` decision against a persisted `pending_approval` action, update the canonical action audit, and append lifecycle evidence atomically. It must not invoke the capability driver, create an `executing`/`completed` event, or attach an execution result; execution requires a later explicit execution contract. Patrol investigation-fix approvals produced through `internal/api/ai_handlers.go` must enter that same API-owned model at queue time: the approval adapter must attach a governed `ActionPlan`, persist the initial action audit as `planned` then `pending_approval`, and keep the approval ID, action ID, requester identity, dry-run/preflight posture, and lifecycle trail available for Assistant handoff and resource action-history hydration. Queueing a Patrol investigation fix must stamp the action request and initial lifecycle events as `pulse_patrol`; it must not execute the fix, create a Patrol-local audit record that bypasses `/api/actions`, or present Patrol-origin proposals as generic Assistant-origin actions. `/api/ai/approvals` must expose the persisted `requestedBy` identity so frontend Assistant handoffs can carry Patrol provenance before the chat runtime refreshes the current action state from action audit. Backend `/api/ai/chat` refresh of a finding handoff must also recover that requester identity from the live approval record when action audit has not yet hydrated the current action state. Denying a Patrol investigation-fix approval through `/api/ai/approvals/{id}/deny` is part of the same API contract: it must persist the approval-store denial, record a `rejected` action-audit decision when the approval carries a governed action plan, and update the owning finding's investigation outcome to `fix_rejected` instead of leaving `fix_queued` with no live approval. Action execution is API-owned as the next explicit contract: `POST /api/actions/{id}/execute` may only start execution for an approved action or an approval-free executable plan, must atomically persist the `executing` lifecycle state before invoking a registered executor, and must atomically persist the terminal `completed` or `failed` result afterward. Before the endpoint enters `executing`, it must rebuild the current resource/capability plan from the unified registry and compare the stored action id, resource version, policy version, and plan hash. A mismatch is a refused-before-dispatch `action_plan_drift` failure: the executor is not called, the action audit is moved to `failed` with a `plan_drift:` result, lifecycle evidence is appended, and the shared `action.completed` SSE bridge publishes the terminal failure so agents do not poll a stale plan into execution. The resource version that anchors that comparison hashes semantic state only: relationship edges count by identity (source, target, type, active), never by their `ObservedAt`/`LastSeenAt` observation stamps, because adapters restamp those on every report cycle and a version that churns with observation time makes every human-reviewed plan drift before it can be approved and executed. Dry-run-only plans are not executable plans and must fail closed before any `executing` mutation. If no API executor is registered, the endpoint must fail closed without mutating the approved audit record or appending execution lifecycle events. Approval must never imply execution, and local UI, CLI, MCP, agent, or storage/recovery adapters must not bypass this endpoint with a parallel execution transport. The supported CLI adapters for this contract are `pulse actions plan`, `pulse actions decide`, and `pulse actions execute`, owned by `pkg/pulsecli/actions.go` and registered from `pkg/pulsecli/root.go`. They must remain thin authenticated clients for `POST /api/actions/plan`, `POST /api/actions/{id}/decision`, and `POST /api/actions/{id}/execute` rather than importing planner internals, creating action IDs, or executing capabilities locally. `pulse actions capabilities` may read the canonical `GET /api/resources/{id}/facets` payload to discover resource capability names and parameter schemas before planning, but it must not invent a parallel capability inventory or expose internal handler names. `pulse actions audit` and `pulse actions events` may read `GET /api/audit/actions` and `GET /api/audit/actions/{id}/events` as verification adapters, but they must remain read-only views of the canonical action audit and lifecycle trail rather than a second audit store. 6. Route dedicated unified-resource timeline and facet-bundle reads through `frontend-modern/src/api/resources.ts`, `internal/api/resourceapi/resources.go`, and `internal/api/contract_test.go` together so the backend facet contract and the frontend client stay aligned on one timeline-first surface, while capability and relationship detail stays backend-owned for AI correlation and change detection. Resource reference reads use `ResourceAPI.getResource()` and the existing `GET /api/resources/{id}` resolver. The registry owns current IDs, declared succession and unique legacy/source aliases. Frontend selection cancels a superseded lookup and applies only its returned resource ID. A refused or ambiguous reference cannot be translated by guessing instance, node or VMID. Compact aggregate consumers must read `GET /api/resources/stats` through `ResourceAPI.getStats()` rather than paging `/api/resources` and discarding every row. The stats client preserves the backend-owned total, type, status, source, and policy-posture contract while keeping aggregate-only settings surfaces independent from estate size. `/api/resources/{id}/timeline` and `/api/resources/{id}/facets` must keep resource timelines relationship-aware by opting into the canonical `ResourceChangeFilters.IncludeRelated` store path, so a resource timeline includes direct changes and changes that name the resource in `relatedResources` instead of hiding child or dependency activity from the owning resource. The same facet bundle must return the selected resource's backend-authored `capabilities` and canonical `relationships` alongside recent changes and grouped counts, so frontend detail surfaces consume one governed API payload instead of rebuilding capability or topology context from the list response. Provider-wide timeline reads are part of the same API contract: `GET /api/resources/timeline` returns the canonical resource timeline response shape with an empty `resourceId`, uses the shared `since`, `limit`, `kind`, `sourceType`, and `sourceAdapter` parser, and remains protected by the monitoring-read scope. Platform pages may use it for API-authored provider activity such as vSphere tasks and events, but they must not create page-local activity stores or a second query vocabulary. 7. Route unified-resource list ordering through `internal/api/resourceapi/resources.go`, `internal/api/contract_test.go`, and the owned unified-resource registry helpers together; list payloads must stay deterministic for equal-name resources by carrying one canonical `name -> type -> id` tie-break across cold seed, REST pagination, and websocket-backed refreshes instead of inheriting map order or page-local re-sorts That same shared API contract also owns the external resource `type`, canonical display name, and cluster identity published through `/api/resources` and `/api/state`; the websocket/state hydrate path must not emit legacy aliases or raw store labels once the unified resource contract has normalized them. Lightweight integration polling uses the same canonical read-state boundary: `GET /api/state/summary` is an authenticated `monitoring:read` route that returns aggregate counts, Docker host summaries, active-alert count, canonical verdict counts, a severity-ordered attention projection capped at 30 resources, and `lastUpdate`. It must stay derived from the unified read state plus the tenant-scoped alert snapshot, and must not expose full resources, per-resource histories, raw provider payloads, command data, or child arrays from the full `/api/state` hydrate. The same backend-owned `health` envelope is additive on `/api/resources` and websocket resource rows; frontend surfaces must not re-derive health from provider status. Realtime `/api/state` and websocket `resources` snapshots must also collapse transient split host identities before broadcast: a Proxmox-node row and a host-agent row for the same machine must leave the API boundary as one hybrid `agent` resource with merged source facets, not as duplicate rows that disappear only after REST reconciliation. Realtime `/api/state` and websocket state payloads carry deduped static metadata: the state-level `capabilityCatalog` maps content-addressed ids to the estate's distinct capability blobs and each resource references its set via `capabilitiesRef` instead of inlining the blob per resource; a resource published without an inline `policy` is, by contract, at the default posture (internal sensitivity, cloud-summary routing, no redactions) and its `aiSafeSummary` is withheld with it, while non-default postures keep both inline; and `canonicalIdentity.aliases` no longer duplicates `supersededIds`, which stay the canonical superseded-spelling carrier for identity resolution. Because the websocket delta engine diffs top-level state fields generically, a catalog change must ride the same frame as the first resource referencing the new entry. Realtime `/api/state` and websocket state snapshots also own Proxmox tag presentation payloads. `pveTagStyles` is keyed by Proxmox instance and carries the parsed datacenter `tag-style` color overrides plus `caseSensitive`; frontend consumers must treat it as the canonical per-instance source when present. The older `pveTagColors` map remains a compatibility aggregate only, so clients must not use it to override an instance-scoped style. 8. Route unified-agent installer and binary download headers through `internal/api/unified_agent.go` and `internal/api/contract_test.go` together. Unified-agent BINARY downloads must keep the canonical `X-Checksum-Sha256` plus `X-Signature-Ed25519` contract for updater clients whether the binary is served locally or proxied from the matching GitHub release, instead of leaving callers to infer trust from source location alone. The served install-script endpoints (GET /install.sh and /install.ps1) are governed differently and have NO GitHub fallback at all: they serve the locally bundled AGENT installer or fail closed with 503. The agent installer is a per-build artifact bundled into every release tarball and Docker image, not a release asset, so the endpoint must never fetch the top-level GitHub install.sh release asset (the SERVER installer, which rejects the agent wizard's --url / --token-file, issue #1470). It attaches the base64-encoded `X-Signature-SSHSIG` header when the local detached signatures are present and omits it when they are not; a present-but-unsigned local agent installer is still served, because the agent install path (curl piped into bash) does not verify these headers, so correctness of the served script outranks signature presence. 9. Route canonical AI intelligence summary and resource-intelligence reads through `frontend-modern/src/api/ai.ts`, `frontend-modern/src/stores/aiIntelligence.ts`, `frontend-modern/src/stores/aiIntelligenceSummaryModel.ts`, `frontend-modern/src/features/patrol/usePatrolIntelligenceState.ts`, `frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx`, the Patrol-owned section files under `frontend-modern/src/features/patrol/`, `frontend-modern/src/pages/AIIntelligence.tsx`, `internal/api/ai_handlers.go`, and `internal/api/contract_test.go` together so the store normalization owner, runtime hook, feature shell, Current work workspace, section owners, route shell, and backend payload stay aligned on one governed surface, including the canonical recent-changes slice and the decision-first Patrol projection boundary, where API-owned active attention and pending decisions render before retained-objective setup, verified receipts, and operational history without introducing a new API status, severity, or workflow dialect. The browser may order the canonical attention projection by severity, then actionable review posture, then observation recency, but it must preserve every API-owned lifecycle, evidence, protection, action, and verification fact in selected detail. Attention-row control names expose the displayed record in source order, through the Patrol and frontend primitives visible-label contract; rendering must not replace those facts with a title-only accessible name. The first-party `Inbox`, `Protection`, and `Activity` modes are a mutually exclusive presentation boundary, not API query modes: Inbox consumes the canonical attention projection, Protection consumes retained objectives, and Activity consumes verified receipts plus existing action/finding/run records. Switching panels must not rewrite membership, merge counts, invent lifecycle state, or refetch one dataset as though it represented another. Secondary receipt responses that are absent or incomplete may degrade to an unavailable or empty supporting panel; they must not unmount the current attention workbench or convert missing receipts into successful work while keeping the universal governed-operation ledger as one subordinate handoff rather than a second Patrol implementation: the surface may show the durable action inbox's content-free pending count and link to `/actions`, but action rows, policy decisions, mutations, and verified outcomes remain owned by the action inbox and review route and the Patrol work-group inputs, where the browser may group current approvals, failed actions, failed checks, recurring active issues, and overdue scheduled protection only from API-owned Patrol status, run history, approval state, and finding-composition facts rather than page-local inference and the calm-day Patrol empty queue boundary, where the browser must not turn API-owned Patrol status, run history, approval state, or finding-composition facts into a protection-current, coverage, schedule-freshness, drift-history, verification-waiting, trust, or proof strip after current work has been ruled out. Latest coverage may appear only as bounded empty-state copy inside the current-findings surface, not as a separate calm-day posture list while keeping the learning counters backend-only coverage, so Patrol keeps health and findings primary and does not render timeline, correlation, or policy-posture data as a headline product metric and that secondary investigation context remains explanatory API evidence, not a Patrol workspace mode: the Patrol page renders no recent-change, correlation, or policy-posture details, whether or not a finding is active or a run record is selected, and must not surface those backend context payloads as a page-level forensic block and the Patrol status presentation boundary, so trigger/scheduling status from Patrol status APIs stays in the header/control surface instead of being repeated as default status chrome, watch-only presentation says Patrol checks infrastructure and shows current issues while the selected Watch only mode describes the capability positively, such as Patrol checking infrastructure and reporting issues only, avoiding repeated header/control sentences, `Will not` policy-list wording, secondary Limits disclosures, or repeated infrastructure-unchanged caveats, and the browser-visible label stays operator-readable even when internal Assistant handoff metadata still uses assessment terminology and the Patrol findings empty-state behavior, so `0 active findings` only renders as a healthy frontend conclusion when the same governed AI summary contract still reports healthy overall health; degraded or not-fully-verified health predictions must flow through to the Patrol findings surface instead of being replaced by page-local "looks healthy" copy and the Patrol control presentation boundary, so the Patrol mode selector inside the header's collapsed `Mode and automation` disclosure owns the selected autonomy level, plan-locked installs get no selector or disclosure and keep watch-only as the current capability in one inline `Patrol mode` line, and the free Patrol working surface must not render a disabled paid-level matrix, compact Pro badges, or any paid-mode disclosure. The free surface stays clean of paid-feature surfacing; Pro discovery belongs in Settings, website/docs, and contextual at-need prompts, not in the daily-use control surface. The one allowed at-need prompt is a single finding-level Pulse Pro capability line in the expanded finding primary-action area for plan-locked installs on active critical or warning findings, with its upgrade action gated by the upgrade-prompt policy, and the selector must still avoid Limits controls, hard-limit matrices, or absent-feature explainers. Compact control labels remain understandable decisions such as `Ask first`, `Safe auto-fix`, and `Autopilot` rather than transport shorthand or Pro-matrix labels, the Patrol header description derives from the same effective control state, and Settings > Pulse Intelligence > Patrol, which replaced the retired header settings drawer, stays limited to model, schedule, trigger, notification, and user-level model checks sourced from the existing settings APIs rather than duplicating a second control-level chooser. Runtime or provider setup readiness may suppress run, schedule, model, trigger, and provider-repair controls until Patrol can check infrastructure reliably, but it must not hide the Patrol mode selector or replace it with setup-first proof/status chrome. When provider/model readiness blocks manual Patrol while the header still shows current infrastructure work, the primary run control projects that API state as a direct Provider & Models setup action instead of an inert disabled `Run Patrol` button and the first-party Patrol mode starter boundary, so successful direct autonomy saves may record the coarse content-free `patrol_control` workflow prompt marker only when the effective control level or full-control acknowledgement changes and the paid Patrol control feature is available, while the autonomy settings API remains the source of truth for persisted control state rather than carrying prompt content, finding context, or completed-work proof; after recording that marker, Patrol state must reload Patrol status, findings, approvals, and run history so first-party control changes become visible as the next current-work step without waiting for polling and the Patrol trust-history evidence carried by Patrol status, so historical regressions keep the current findings empty state out of green all-clear copy even when the active finding count is zero and the latest summary score is otherwise healthy and the Patrol Current work empty-state behavior, so once runtime state (running, blocked, disabled, unavailable) and stale coverage have taken precedence, the governed AI summary's overall health, together with run history, decides whether the current-findings empty state reads `No current issues`, `Check needed`, or `Patrol needs review` instead of letting count-only page fragments emit a stale `No issues found` conclusion and the Patrol Current work copy boundary, so the API-owned health, finding, run, and control facts remain semantic inputs while browser-visible empty and descriptive text stays operator-facing: what will appear there, what Patrol may do under the selected control level, and what to run or review next, not activation-loop proof, queue internals, or verification accounting and the restored Patrol mode Assistant session copy, so the API compatibility kind `patrol_configuration_failure`, which only sessions saved by earlier builds carry, may remain stable while the restored drawer title, subject, and action label (`Patrol mode save failure`, `Patrol mode`, `Review Patrol mode issue`) describe saving and reviewing Patrol mode rather than a generic configuration/apply flow. The Patrol header has no Patrol control or configuration dialog: choosing `Watch only`, `Ask first`, or `Safe auto-fix` in its mode selector saves that mode directly, and its one dialog is the Autopilot acknowledgement opened by choosing `Autopilot` and the Patrol main-surface treatment itself, so the same governed summary contract lands inside the existing workspace and Current work surfaces while severity travels through compact header accents and icon badges instead of a page-local full-width verdict strip and the Patrol workspace badge treatment, so the API-owned finding, runtime, and run-history counts remain semantic input only while visible state and count badges route through frontend-primitives-owned `StatusIndicatorBadge` and `MetadataBadge` instead of page-local class strings in the Patrol section owners and the Patrol control-level copy, so frontend section owners treat `PatrolAutonomyLevel` plus lock state as the API input for current-work and findings-workspace descriptions instead of presenting generic investigation or fix capabilities when the payload currently resolves to watch-only. The same API input owns the visible Patrol control boundary summary: what Patrol may do, what must ask for approval or Pro/runtime availability, and any explicit hard limits must derive from `PatrolAutonomyLevel` plus lock state, not from page-local safety thresholds or operations-loop completion proof. The default API-backed presentation must stay on the selected control level and its plain summary; it must not render a separate Limits disclosure, hard-limit matrix, or always-on explanatory matrix beside the mode picker. and the Patrol container update risk lock, so `/api/settings/ai` `alert_triggered_analysis` stays the licence-masked API value while the runtime-capabilities `ai_alerts` grant or `paid_runtime_required` block decides which lock explanation the Patrol settings card renders, without a new API field. A `paid_runtime_required` block is presentation input only: when the security-status presentation policy hides commercial surfaces, Patrol mode and container update risk both render their neutral lock and the browser must not surface the block's Pro download URL and the Patrol run-record copy, so `finding_ids` remains the API-owned fail-closed scoping input while the frontend presents selected history as a Patrol run record instead of a generic findings filter or snapshot workflow and Patrol loading indicator state remains API data only while the visible header and finding loading spinners route through frontend-primitives-owned `LoadingSpinner` instead of encoding API state in page-local spinner shells and Patrol first-load refresh failures remain degraded data state rather than route failure, so frontend Patrol load orchestration keeps the workspace mounted, preserves any last-known Patrol evidence, exposes a retry affordance, and sends transport details only to debug/API diagnostics instead of raw page copy and the Patrol issue-row presentation boundary, so active collapsed Patrol rows use API-owned severity, subject, recency, recurrence, and actionable workflow state as semantic input while suppressing raw `loopState`, investigation-status, investigation-outcome, confidence, and generic review/detected process badges from the default row. Row-owned Patrol issue scaffolding may also use API-owned finding description, impact, evidence, recommendation, approval state, and workflow fields to explain problem, affected resource, checked evidence, next step, and verification state without adding a new API payload or page-level proof surface; those process details remain available in expanded context, selected run records, Assistant handoff context, or API diagnostics when they are actually needed and the Patrol run-history coverage verdict (`getPatrolRunCoverage`), which the current-findings empty state reads before any overall-health `coverage` factor: a latest completed full patrol that ended with errors or was followed by a failed run, or only targeted or follow-up runs, withholds the all-clear, and a clean full patrol with non-zero `resources_checked` that completed within the last 24 hours, with no failed run after it, keeps a coverage factor from withholding it; the page shows no aggregate verification-posture summary (expanded run-history entries still show each run's own scope and coverage), and any surface that adds one must take it from that run-history verdict rather than page-local heuristics and any same-day activity-mix explanation, which nothing computes or renders today; a surface that adds one must explain a recent full patrol followed by alert-triggered or anomaly-triggered scoped work from the same governed run history instead of reconstructing the mix from page-local timing heuristics and the Patrol status recency split, so `last_patrol_at` remains reserved for completed full Patrol sweeps while scoped runs and verification checks advance `last_activity_at` without claiming a fresh full-estate verification pass and the monitor-context Patrol coverage posture boundary, so Proxmox overview and other monitor-first launch pages must not consume API-owned Patrol status, latest run history, current findings, or pending approvals as a generic coverage/schedule proof strip. Future scoped monitor affordances may reuse those API signals only from an operator action or selected Patrol context, without adding a new payload, inferring resource-specific proof from global Patrol counters, or duplicating the Patrol queue/empty-work contract on generic dashboard or Home surfaces and the Patrol Assistant handoff model, so frontend handoff prompts pass current finding context, safe action posture, and resource references as bounded request metadata while leaving tool selection and remediation reasoning to the configured LLM instead of serializing a frontend-authored tool route or fix plan into the API request and the Patrol control presentation boundary, so frontend copy may summarize assisted mode as low or medium-risk automatic fixes allowed by policy, but the risk threshold itself remains backend-owned and must not be inferred from warning severity, UI labels, or page-local finding state and the Patrol control route target, so the frontend-owned `/patrol#patrol-control` anchor remains the canonical navigation affordance, while `/patrol#operations-loop` remains inbound compatibility only, rather than becoming an API payload field, Assistant prompt body, or backend completion state machine. The canonical anchor must resolve to the visible Patrol mode selector, not to the assessment workspace: arriving on `#patrol-control`, with or without the starter query, or on the `#operations-loop` compatibility anchor opens the Patrol header's collapsed `Mode and automation` disclosure and scrolls it into view, a plain `/patrol` visit leaves it collapsed, and plan-locked installs, which have no selector, land on the header's inline `Patrol mode` line; that anchor may route a new Pro user to Patrol mode from a generic Patrol run state, but issue-backed progress through Assistant, governed decision, verification, and MCP parity must still derive from real Patrol finding, investigation, approval, action, or trust evidence owned by the Patrol state model. The native Patrol workspace must not load the authenticated operations-loop status projection to decide current work; that projection remains an API/MCP/telemetry and adjacent commercial compatibility surface, while local Patrol state exposes Patrol work from status, findings, approvals, and run history. The route anchor itself must stay out of API payloads and must not become completion proof. When that projection still returns `nextAction: open_assistant` for a current Patrol finding, the first-party Patrol page must treat it as compatibility guidance and route the primary action into the Patrol findings workflow; Assistant handoffs remain contextual selected-finding actions, not the canonical API completion step for Patrol current work. and the canonical alert-triggered Patrol enqueue path in `internal/api/router.go`, so alert-fired Patrol work flows through the unified alert bridge and trigger manager instead of being duplicated by monitor callback wiring and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` card, so a compact recent-change summary renders through one governed frontend card instead of a page-local list loop; the resource drawer's full `Change history` timeline is a separate list built on the shared `frontend-modern/src/utils/resourceChangePresentation.ts` helpers and the shared `frontend-modern/src/utils/resourceChangePresentation.ts` formatter used by the resource drawer, so canonical change wording does not drift across surfaces and the Patrol supporting-context boundary, so the Patrol page keeps recent-change payloads off the page with no `Details` context selector or default forensic block, and any Patrol surface that does render same-state recent-change records from the canonical AI payload or attach them to Assistant normalizes them into changed-substate wording first, avoiding no-op operator copy such as `online` to `online` while preserving the backend-owned timeline event and the `/api/ai/intelligence/changes` route plus `internal/api/contract_test.go`, so the canonical recent-changes endpoint stays on the same intelligence facade and contract snapshot instead of bypassing the shared timeline source and the canonical policy-posture snapshot derived from unified resources, so sensitivity, routing, and redaction counts stay owned by the same AI summary contract instead of being reconstructed as a page-local governance rollup and the resource-intelligence payload carried by the drawer AI card, so the resource-detail surface stays on one canonical intelligence contract instead of introducing a separate detail endpoint and the global learned-correlation route `/api/ai/intelligence/correlations`, which has no frontend client today: no page renders that list, so the shared AI intelligence store neither loads nor holds it and the resource drawer reads per-resource correlations from the resource-intelligence payload; a surface that later renders the global list must add one store-owned load instead of a page-local fetch and the shared dashboard-load bundle inside `frontend-modern/src/stores/aiIntelligence.ts`, so the page orchestration stays on the store-owned bundle instead of enumerating the AI fetches inline and the Patrol page refresh lifecycle in `frontend-modern/src/features/patrol/usePatrolIntelligenceState.ts`, so slow or stalled secondary reads from that shared dashboard-load bundle may continue resolving in the background while the operator-facing Patrol refresh control remains generation-aware, timeout-bounded, and reusable once Patrol findings and status are already visible and the Patrol header in `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx`, which outside setup-only states may summarize noteworthy API-owned `status.trigger_status` facts in one compact line and, unless a provider setup block shows `Fix setup` instead, links to Settings > Pulse Intelligence > Patrol, where the Patrol model, schedule, and trigger tuning are saved through `PUT /api/settings/ai/update`, so none of those settings or background-only runtime-policy pauses become the primary Patrol control decision and the header carries no schedule and model drawer and any frontend presentation of the AI summary's `policy_posture` counts, which must render that canonical snapshot through one shared component instead of page-local posture loops; no frontend surface renders those counts today, and the resource drawer stays on per-resource policy lines and the dedicated `frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts` owner, so if Patrol recent-change, learned-correlation, or policy-coverage summary text returns, it is derived from the canonical AI payload in that one place instead of as hook-local count and pluralization logic; Patrol renders no such summary today and the model carries no such derivation and the Watch-only forward-path handoffs owned by `frontend-modern/src/features/patrol/patrolControlPresentation.ts` together with the Actions inbox empty-state read of `GET /api/ai/patrol/autonomy`, so finding-level and inbox-level mode guidance consumes the canonical Patrol autonomy read/save contract through the Patrol state hook (`handleAutonomyChange`) instead of introducing a second mode mutation path or a page-local autonomy dialect and the Patrol finding-to-Assistant handoff owned by `frontend-modern/src/components/AI/FindingsPanel.tsx`, so the pending-approval, investigation, and proposed-fix reads behind that handoff happen once in the panel instead of in a second, unwired copy inside the Patrol state hook and that same Patrol investigation-context owner, so visible Assistant drawer handoffs may include live pending-approval metadata only as safe operator context: approval ID, status, risk, requested/expiry timestamps, target label, generated approval summary, and command count are allowed, while approval command payloads stay inside governed approval/remediation surfaces, and finding-level handoff context may be derived from the same bounded metadata only so Assistant receives approval status, risk, dry-run posture, and existing action artifact metadata without Pulse choosing the next step or receiving raw command/execution payloads; finding-level handoffs may also send one bounded model-only `handoff_context`, one `handoff_resources` target reference, and one `handoff_actions` entry for that governed approval or action artifact so the Assistant runtime can refresh finding and action posture from IDs and safe summaries instead of relying on pasted chat text and the dedicated `frontend-modern/src/stores/aiIntelligenceSummaryModel.ts` owner, so recent-change counts and governed policy-posture fallbacks normalize once at the shared store boundary instead of as Patrol-hook-local payload repair and the Patrol findings list the state hook reads from `aiIntelligenceStore.patrolFindings`, so `usePatrolIntelligenceState.ts` does not re-derive page-level severity tallies from it: the hook's unread `summaryStats` tally has been removed, the hook derives no client-side severity tally from that list today (the backend's per-severity `findings_count` reaches it only inside the AI summary payload it passes through), and the Activity tab's `This week` card takes its open-by-severity counts from `GET /api/ai/patrol/digest` instead of recounting that list and the shared `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` card, so learned correlations and correlation context stay rendered through one governed frontend card instead of separate page-local list loops and the same shared correlation card's ordering and truncation rule, so callers pass raw correlations instead of encoding their own top-N sort behavior and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` cards' optional `buildResourceHref` input, so a surface that needs resource-filter links passes them into the shared card instead of rebuilding infrastructure URLs inline; the cards carry no link default since the cross-resource drilldown links were retired, and render resource labels as plain text and the Patrol runtime-remediation destination shared with the AI settings endpoint, so run-history runtime-failure actions and runtime-finding actions may reuse the governed provider-settings route while still presenting that destination in Patrol as provider configuration instead of generic `AI Settings` copy and the Patrol route-shell destination itself, so the thin page shell at `frontend-modern/src/pages/AIIntelligence.tsx` may continue to bridge the shared AI-runtime payload boundary while exposing `/patrol` as the canonical product route and keeping retired `/ai` browser entry points unregistered and the Patrol route-shell accessibility boundary, so brand icons in `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx` stay decorative when the same heading already exposes visible Patrol text, preventing duplicate accessible names such as `Pulse Patrol Patrol` and the Patrol mode selector boundary, so the header's `Mode and automation` disclosure composes the shared `frontend-modern/src/components/shared/FilterButtonGroup.tsx` primitive for the visible `Watch only` / `Ask first` / `Safe auto-fix` / `Autopilot` presentation while the API contract remains the sole owner of accepted autonomy values, `full_mode_unlocked` persistence, license-required rejection shape, and the monitor-only clamp; when the API/license state clamps Patrol to monitor for plan reasons, frontend consumers must present watch-only as the effective capability without paid level badges, disabled paid choices, default Pro-absence explainers, or a full-loop header description, while runtime-locked Pro installs may explain the missing runtime; provider model, schedule, trigger tuning, and readiness validation must remain advanced settings plumbing alongside that inline Patrol mode boundary. API-adjacent frontend and docs projections may keep legacy wire values such as `monitor`, `assisted`, and `full`, but customer-facing copy must name the visible choices as `Watch only`, `Ask first`, `Safe auto-fix`, and `Autopilot` rather than leaking compatibility terminology. policy rather than changing the compatibility API boundary; setup-only readiness may hide those run/configuration affordances, but the Patrol mode selector stays in the header's `Mode and automation` disclosure as the primary policy boundary during setup and the Patrol mode presentation boundary, so `frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx` routes active Patrol findings into the Patrol-owned findings workflow, renders the first-party loop as check/investigate/act-under-policy/verify/record, uses `Patrol mode` as the human-facing name for the governed autonomy selector while preserving `patrol_control`, `patrolControl*`, and `patrol_autonomy` only for compatibility route and wire identifiers, and demotes Assistant and external-agent readiness out of the primary operator loop without introducing a new API request shape, frontend-authored tool route, serialized remediation plan, or page-local MCP setup contract; direct single-finding CTAs must derive from existing finding-presentation helpers and canonical routes such as the Patrol provider-settings route, selected findings, approvals, and history rows may still open contextual Assistant handoffs through their governed owners, the user-facing `Patrol` route title and `Open work` queue title must remain presentation labels over the same current-work status contract rather than new payload states, setup-only Patrol runtime failures must use existing finding/runtime fields to render the Patrol-owned `Fix Patrol setup` framing, a dedicated setup task, and one direct `Open Provider & Models` action while suppressing the readiness banner, generic issue-row chips, filter chrome, and run-history action chrome that would compete with provider setup, but recent changes, correlations, and policy-coverage payloads must not render as a generic first-party Details/evidence console on the Patrol page, and raw finding lifecycle telemetry must be reserved for explicit all/resolved/history or selected-run review states instead of default active current-issue expansion The Patrol page may consume server-authored readiness and preflight-backed status, but it must translate that transport state into `Patrol setup issue` or `Patrol setup warning`, provider/model context, and the canonical `Open Provider & Models` action. Raw preflight, tool-call observation, and readiness-internal wording remain API/settings diagnostics rather than first-party Patrol operator banner copy. and the external-agent Patrol-control status route, so `GET /api/agent/patrol-control/status` may expose only aggregate Patrol issue evidence, aggregate active issue-level Patrol finding counts, pending approvals, contextual collaboration counts inside the Assistant step, governed action counts split into approved and rejected decision counts, verified outcome counts, Patrol control starter/completed-loop/resolved-loop proof exposed through primary `patrolControl*` fields, `patrolAutonomy*` compatibility fields, `proActivationOperationsLoopStarterCount` as an older-client compatibility field, completed/resolved/value `proActivation*` compatibility aliases, optional token-backed MCP readiness, generated timestamps, and the next coarse loop action for native and MCP-facing orchestration; it must not expose finding IDs, action IDs, resource names, commands, prompt text, model output, actors, request bodies, token identity, token names, or token counts, and it must not replace the canonical fleet-context, resource-context, finding, approval, or action routes that own the underlying detail. Its `progressLabel` is operator-facing Patrol status copy: it must describe the current action or outcome in plain Patrol terms such as checking, investigating, approval, rejection, verification, and recorded history rather than activation-loop, value-proof, autonomy, or MCP-completion language. Human-facing manifest capability descriptions, generated MCP README text, and frontend projections for this route must say Patrol mode; wire identifiers such as `patrol_control`, `patrolControlCompletedOperationsLoopCount`, `patrol_autonomy`, `patrolAutonomyCompletedOperationsLoopCount`, and `patrolAutonomyValueState` may retain control/autonomy terminology for compatibility, and `proActivation*` wire identifiers may remain only as compatibility fields, not as user-visible Pro activation journey copy. The route may count generic execution lifecycle as recent loop activity, but the governance stage is decision-backed: `governedActionCount` must require approved or rejected governed-action evidence, `approvedDecisionCount` and `rejectedDecisionCount` must preserve that split without identifiers, and `verifiedOutcomeCount` must require an approved governed action with verified post-action evidence. Current active findings and pending approvals are live operator work: they must keep the next action and four-step rollup pointed at the current finding or approval before older Patrol control completed/resolved proof is presented as history. Aggregate issue evidence and resolved trust history are not by themselves current operator work, so native Patrol consumers must not turn resolved-only history into current finding copy or actions. `patrolControlCompletedOperationsLoopCount` and the mirrored `patrolAutonomyCompletedOperationsLoopCount` may only be derived when content-free Patrol control starter evidence, Patrol issue evidence, contextual Assistant or external-agent collaboration evidence, and either rejected governed-decision evidence or approved governed-decision evidence with verified outcome evidence coexist in the same status window. `patrolControlResolvedOperationsLoopCount` and the mirrored `patrolAutonomyResolvedOperationsLoopCount` may only be derived when content-free Patrol control starter evidence, Patrol issue evidence, contextual Assistant or external-agent collaboration evidence, approved governed-decision evidence, and verified outcome evidence coexist in the same status window; no Patrol control or compatibility alias field may carry prompt, account, action, resource, or finding identity. The four-step `steps` rollup must keep counts aligned with the operator evidence that satisfies each stage: Patrol counts issue evidence, Assistant counts contextual collaboration without prompt or response content, governance counts pending approvals until an approved or rejected decision exists, then counts those decisions, and verification counts verified outcomes or terminal rejected decisions when no write ran. External agents remain optional readiness context through `externalAgentReady` rather than a first-party activation gate or operator step. A rejected-only decision is terminal for the execution-verification branch because no write ran; an approved decision still requires verified outcome proof before the verification step completes. The approved-success/verified-outcome predicate is shared inside `internal/api/`: outbound Pulse Intelligence action telemetry and `GET /api/agent/patrol-control/status` must both route through the same approved-action verification helper. A completed action with `ExecutionResult.Success=true` is execution evidence only; it must not set `verifiedOutcomeCount`, approved-action-success telemetry, Patrol control resolved-loop proof, or paid resolved-loop proof unless the action also has `VerificationOutcome.Status=verified` or a canonical verification result that ran and succeeded. 10. Route frontend API-client parsed error propagation, API-error-status fallback handling, allowed-status handling, custom status-specific error handling, command-trigger success envelope handling, shared response parsing pipelines, missing-resource lookup handling, metadata CRUD routing, stream event consumption, response status, collection normalization, scalar payload coercion, and structured error normalization through canonical shared helpers under `frontend-modern/src/api/` Telemetry preview payloads are part of this same frontend API-client boundary. `frontend-modern/src/api/settings.ts` must mirror the content-free `internal/telemetry.Ping` payload shape exposed by the system settings preview route, including Pulse Intelligence loop booleans, Assistant and Patrol counters, operations-loop workflow starter counts, governed-action counters including approved/rejected action decisions, Patrol-origin plan, approval, decision, approved-attempt, and approved-success counters, and external-agent/MCP aggregate, adapter-origin, and capability-class counters, so browser preview, privacy disclosure, and outbound heartbeat JSON do not drift into separate contracts. Operations-loop starter fields may count only the canonical `pulse_operations_loop` prompt over the rotating telemetry window, with total, native Assistant, first-party Patrol, primary Patrol control, legacy Pro activation entry-point, and Pulse MCP counters. They are active-journey evidence, not proof that the user collaborated with context/tools, approved execution, verified an outcome, or resolved a finding. The external-agent/MCP readiness boolean in that same payload is a manifest-surface capability signal: a non-expired API token covering any Pulse MCP-published capability scope may configure the surface, while recent use still requires route activity markers and generic `ai:chat` tokens do not count as external-agent readiness. Assistant chat stream workflow-state payloads are part of this same frontend API-client boundary. `workflow_state` events must keep `phase`, `message`, `state`, and `tool` stable, selected-route starts may carry `provider` and `model`, and selected-route retry may carry `attempt`, `max_attempts`, and `retry_after_ms`; automatic provider fallback metadata (`provider_fallback`, `failed_provider`, `failed_model`, `next_provider`, `next_model`) is retired from `/api/ai/chat` stream payloads. The selected-route `provider_start` message is operator progress copy and must be active/in-progress wording such as ` is starting the response.` while the typed `provider` and `model` fields carry the exact route identity. `frontend-modern/src/api/generated/agentCapabilities.ts` must stay derived from `internal/agentcapabilities`, including manifest surface contract fields; and frontend API tests must pin any new generated SSE fields, including live tool-start and tool-progress payload fields such as `phase` and `message` and pending tool cancellation payloads such as `reason`. Control-level values exposed through AI settings or chat payloads must alias the shared `agentcapabilities.ControlLevel` vocabulary rather than redefining read-only/controlled/autonomous strings in API-local code. That same shared org-management client boundary now owns target-consent sharing semantics across `frontend-modern/src/api/orgs.ts`, `internal/api/org_handlers.go`, and the shared org route wiring. Cross-org share creation must remain a pending request until the target organization accepts it, the payload must preserve `status`, `acceptedAt`, and `acceptedBy`, and widening an accepted share's requested role must reset the share back to `pending`. Downstream settings surfaces must not infer live access from share creation alone or recreate manager-only pending-share visibility rules locally. 11. Add or change API token scope, assignment, and revocation presentation through `frontend-modern/src/components/Settings/APITokenManager.tsx`, `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`, and `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` That same shared token contract also owns audit scope separation: audit event, verification, summary, export, and unified action/export audit reads must require the dedicated `audit:read` scope instead of reusing broader monitoring or settings-read token grants. 12. Add or change infrastructure operations token generation, lookup, assignment, the pure unified-agent inventory/install model, the split infrastructure install state owner, the split direct-node/discovery infrastructure settings owners, the shared infrastructure-operations state provider/context shell, and install presentation through `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`, `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`, `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`, and `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`. Phase 9 retired the InfrastructureOperationsController shell and the useInfrastructureReportingState reporting path; they must not be reintroduced, and aggregator-backed reporting reads are owned by `frontend-modern/src/components/Settings/useConnectionsLedger.ts` under the frontend-primitives contract. Setup-handoff auto-token cleanup in the shared install state hook may guard state updates after disposal, but it must not return from `finally` or mask token-generation and lookup failures owned by the API contract. That same aggregator-backed reporting read may hide passive config or rollout handshakes from primary source-manager attention when the API reason says only that an agent has not yet reported a comparable applied configuration fingerprint. That is a presentation choice over the canonical `Connection.fleet` payload, not a second API state: the raw fleet fields must remain available for deeper fleet diagnostics and must not be rewritten into source credential, liveness, or setup failure facts. That same governed infrastructure-operations API boundary also owns discovery polling activation: the shared discovery runtime may only poll `/api/discover` while the settings shell has the `infrastructure-connections` route active, so route-level IA changes cannot silently keep discovery traffic alive on unrelated systems or install screens. That same governed setup/install boundary also owns uninstall convergence: when a script-managed Proxmox node removes its local Pulse credentials, the canonical `/api/auto-unregister` API must remove the matching stored node immediately and emit the same discovery/node-deleted refresh semantics as manual deletion, so the infrastructure sources table does not keep a stale active row until the next failed poll. That same governed install-presentation boundary must preserve the Docker-versus-Proxmox LXC distinction from the shared model: generated install surfaces may not imply that Docker inside Proxmox LXCs requires a guest-local agent when the intended path is a Proxmox node agent with command execution and server-side guest Docker inventory opt-in. That same governed setup/install boundary also owns Proxmox `authorized_keys` symlink preservation in the rendered PVE setup script: temperature-key install and uninstall edits must resolve the real authorized-keys target before filtering Pulse-managed `# pulse-` lines, and `internal/api/contract_test.go` must pin the generated shell shape. 13. Keep `internal/api/session_store.go` on a fail-closed auth-persistence boundary: persisted OIDC refresh tokens may only round-trip through encrypted-at-rest session payloads, and any missing-crypto or invalid-ciphertext path must drop the token instead of preserving plaintext-at-rest session state. SSO session persistence must also keep the stable session owner and the display label as separate fields. Restart survival may restore both, but display-claim changes must not rewrite the session owner used for RBAC, tenant, organization, or token ownership checks. 14. Keep tenant AI handler wiring on canonical provider ownership: `internal/api/ai_handlers.go` may wire tenant `ReadState` and tenant-scoped unified-resource providers into AI services, but it must not revive tenant snapshot-provider bridges once Patrol can initialize and verify from those canonical providers directly. 15. Keep Patrol status transport semantics explicit in that same AI handler layer: the Patrol status endpoint must carry machine-readable runtime availability such as blocked, running, disabled, active, or unavailable rather than asking frontend consumers to infer operator state from stale summaries or run history. 16. Keep legacy Patrol quickstart transport semantics retired from the public v6 GA contract: ordinary AI settings and Patrol status payloads must not expose quickstart credit/status fields, and any stale hosted-model blocked copy that survives from compatibility state must normalize back to provider/local-model setup rather than presenting credit badges or acquisition prompts. 17. Keep Patrol intelligence summary transport semantics single-voiced: the canonical overall-health payload and Patrol run-history payload together must support one primary assessment plus one explicit verification explanation, and frontend consumers must not need to derive a second compact assessment or verification verdict row from the same payloads beneath the primary assessment strip. That same transport split supports Patrol assessment and action metadata for any consumer without adding another API field (the Patrol page renders no assessment strip today): a consumer that needs compact state derives it from existing overall-health, run-history, active finding, runtime, and pending-approval facts (no shared frontend presenter does so today), so the API remains the source of facts while the configured LLM owns next-step reasoning. Those action references map back to existing API-backed Patrol controls and approval/finding filters; summary transport must not become a new execution or approval API. The API contract should stay presentation-neutral here: it supplies the score, current risk facts, verification facts, and action state needed for a compact operator summary, but it must not imply a hero, card, duplicate verdict layout, or expanded assessment panel. Normal Patrol page consumers should keep explanatory assessment, verification, and activity context in the owning Findings and Runs surfaces rather than reintroducing an expanded assessment strip. 18. Keep Pulse Mobile relay credential minting and permission ownership on backend ownership: `internal/api/router_routes_auth_security.go`, `internal/api/security_tokens.go`, `internal/api/auth.go`, `internal/api/relay_mobile_capability.go`, `internal/api/router_routes_ai_relay.go`, and `frontend-modern/src/api/security.ts` may expose the canonical mobile runtime token creator and governed route gates, but browser callers must only consume that route and must not define the mobile runtime scope, compatibility gate list, route inventory, or token-purpose metadata locally. 19. Keep hosted tenant browser-session precedence on the shared auth boundary: `internal/api/auth.go`, `internal/api/contract_test.go`, and hosted tenant callers must treat a valid `pulse_session` as authoritative before any API-only token fallback or no-local-auth anonymous fallback, so cloud handoff can continue into protected hosted routes without flattening the operator back to `anonymous` or forcing a browser session through bearer-token-only mode after the tenant has minted API tokens. That same shared auth boundary also owns hosted handoff authorization. `internal/api/cloud_handoff.go`, `internal/api/cloud_handoff_handlers.go`, and hosted tenant callers must derive the effective tenant role from pre-existing server-side org membership only, rather than trusting the handoff JWT to append missing members, repair org metadata, or upgrade roles on arrival. Handoff may mint a browser session only when the tenant org already contains the account as the owner or a member with a valid stored role, and tenant orgs with a blank `OwnerUserID` must fail closed instead of being claimed by the first owner-shaped handoff token. Hosted handoff session identity must bind to the signed stable user subject (`sub`/`UserID`) rather than the contact email. Email may participate only as legacy membership lookup and delivery metadata, and any canonicalization of email-keyed tenant membership must preserve the stored role instead of creating or elevating membership from the token. Blank or email-shaped handoff subjects are invalid even when the tenant still contains legacy email-keyed owner/member rows. Hosted magic-link verification follows the same API/session identity rule: the token may carry contact email for delivery, but `/api/public/magic-link/verify` must resolve that email against current server-side organization metadata and create the browser session for the stored owner/member principal. Magic-link request and verify paths must fail closed when contact email matches a blank owner/member principal instead of sending or accepting a token that would turn email into the session identity. Checkout webhook post-payment magic-link delivery follows the same resolver-owned rule: Stripe `customer_email` can drive only best-effort delivery after server-owned org linkage is validated, and it must not send when the linked org row has matching contact metadata but no stored owner/member principal. Live org authorization is stricter than those delivery and migration helpers: `internal/api/authorization.go`, `internal/api/org_handlers.go`, `internal/api/cloud_org_admin_auth.go`, and settings-scope checks must use strict `OwnerUserID`/member `UserID` membership helpers for request access, not the email-aware compatibility accessors. Public hosted signup must therefore keep the generated owner user ID server-side for org metadata and RBAC assignment while using returned contact email only for `GenerateToken`/`SendMagicLink`; the accepted signup response remains uniform and must not expose the owner principal. 20. Keep tenant settings-scope authorization aligned with org management: `internal/api/security_setup_fix.go`, `internal/api/contract_test.go`, and settings-bound hosted callers must allow the current non-default org owner/admin membership to exercise privileged tenant routes, rather than requiring a separate configured local admin identity after hosted handoff. Hosted handoff must not be treated as an org-management side effect for that same privilege boundary. Only canonical invitation, membership-management, or explicit owner-transfer flows may create tenant membership or change the stored owner/admin role. Shared auth routes and downstream settings consumers must treat handoff role claims as bounded by the server-owned membership record, never as authority to elevate tenant privileges. That same org-management transport now owns explicit acceptance for new self-hosted membership as well. `internal/api/org_handlers.go`, `frontend-modern/src/api/orgs.ts`, and `internal/api/contract_test.go` must keep new-user adds on the canonical pending-invitation payload (`kind:"invitation"`) plus current-user accept/decline routes, rather than binding an arbitrary username directly into `org.Members`. Immediate role mutation remains valid only for already-accepted members, and owner transfer must fail closed unless the target user is already a stored member. The same permanent-control boundary also requires a fresh browser session for owner transfer: `internal/api/auth.go`, `internal/api/session_store.go`, and `internal/api/org_handlers.go` must reject transfer attempts unless the request carries the bound `pulse_session` cookie for the acting owner and that session was minted recently enough to represent an explicit re-auth, rather than letting any long-lived hijacked session permanently reassign org ownership. That same shared auth boundary also owns pre-auth local setup and recovery containment. When no authentication is configured, anonymous fallback and bootstrap quick setup may run only on direct loopback, recovery tokens must bind to the generating client IP, and recovery may mint only a browser-bound localhost session rather than a shared filesystem toggle that disables auth for every loopback client. Direct `CheckAuth` callers must also fail explicitly: a non-loopback or missing-credential request may not fall through as a silent `200`, and middleware wrappers must use shared response capture so route-specific auth errors remain single-written rather than being replaced by a second generic auth body. The same shared auth boundary also owns release-build admin bypass gating. `internal/api/auth.go` may keep `ALLOW_ADMIN_BYPASS` for non-release development workflows, but release builds must compile that env override out entirely instead of reading it and deciding at runtime whether to honor or ignore it. 21. Keep mobile onboarding payload reads aligned with the server-owned relay-mobile credential: `internal/api/router_routes_ai_relay.go`, `internal/api/onboarding_handlers.go`, and `internal/api/contract_test.go` must allow the dedicated `relay:mobile:access` scope to reach the governed QR, deep-link, and connection-validation payloads without reintroducing a broader `settings:read` requirement for token-authenticated pairing clients. That same shared relay/runtime boundary also owns hostname target equivalence for agent command routing. `internal/api/router_routes_ai_relay.go` and `internal/api/contract_test.go` may match a short host against the canonical connected-agent FQDN, but they must do so through `internal/unifiedresources/hostname_equivalence.go` and must not collapse distinct FQDNs that merely share the same short hostname into one API target. When an explicit `targetHost` misses that canonical match, the shared relay adapter must keep the result empty instead of silently falling back to the lone connected agent. That same shared runtime-token boundary also owns agent-exec binding. `internal/api/deploy_handlers.go`, `internal/api/router.go`, and `internal/api/contract_test.go` must mint agent-exec-capable runtime tokens with a server-owned `bound_agent_id` and reject websocket registration when the token is missing binding metadata or names a different agent. That same websocket admission path must also cap concurrent connections per client IP before upgrade so one source cannot hold unbounded agent-exec sockets open. Legacy `bound_hostname` metadata may be normalized only as compatibility input into that same canonical `agent-` binding, and unbound agent-exec tokens must fail closed instead of being treated as global command authority. The cluster agent deploy payloads in `internal/api/deploy_handlers.go` are a typed client contract consumed through `frontend-modern/src/api/agentDeploy.ts`. Candidate and preflight target addresses must be literal IPs resolved by `DeployHandlers.deployTargetIP` (a literal IP in the member's API URL, else the cluster endpoint's `EffectiveIP()`), never a hostname parsed out of the API URL, and a member with no known address must come back `deployable: false` with reason `no_address` rather than failing later in the source agent's preflight. Candidates and preflights must answer `409 ambiguous_cluster` when more than one Proxmox connection reports the cluster name, and job creation must answer `409 deploy_in_progress` while a recent install job on the cluster is unfinished, admitting atomically so concurrent requests start at most one install. `internal/api/deploy_handlers_test.go` and `frontend-modern/src/api/__tests__/agentDeploy.test.ts` pin that shape. Proxmox-side LXC Docker detection and inventory wiring in `internal/api/router.go` shares that agent-exec transport boundary: router startup may configure the monitoring checker or collector only when explicit server env opt-in is present, must route execution through the authenticated Proxmox node agent, and must keep inventory collection behind the monitoring-owned minimal Docker summary contract rather than exposing a new public API payload shape. 22. Keep hosted billing-state quickstart grants retired from new shared API flows: `internal/api/hosted_entitlement_refresh.go`, hosted signup, and trial-state construction must not auto-grant or refresh quickstart inventory for new workspaces, while low-level billing-state readers may still preserve historical fields that already exist on disk. 23. Keep hosted AI settings bootstrap on the shared API contract as a retired path: `internal/api/ai_hosted_runtime.go`, `internal/api/ai_handlers.go`, `internal/api/ai_handler.go`, and `internal/api/contract_test.go` must treat a missing `ai.enc` in hosted mode as an unconfigured BYOK/local-provider state, not as a machine-owned `quickstart:pulse-hosted` bootstrap condition. Hosted tenant reads may inherit billing state for commercial authorization, but they must not create quickstart-backed AI config or call the quickstart bootstrap upstream route. 24. Keep post-boot AI enablement contract-backed on the shared AI/mobile approval surface: `internal/api/ai_handler.go`, `internal/api/ai_handlers.go`, `internal/api/router.go`, `internal/api/router_routes_ai_relay.go`, and `internal/api/contract_test.go` must turn the governed approvals-list API into the canonical empty-list payload as soon as settings-driven AI enablement succeeds, rather than leaving that surface on `503 Approval store not initialized` until some separate startup-only side effect happens. The same post-boot lifecycle owns the investigation surface: a successful in-process chat start or restart must reapply the same live dependency wiring as cold startup, including the Enterprise investigation orchestrator and Patrol circuit breaker, so enabling Intelligence after boot cannot leave finding investigations on `503 Investigation orchestrator not initialized` until the server restarts. 25. Keep infrastructure summary chart transport contract-backed on the shared API surface: `internal/api/chartapi/service.go`, `internal/api/contract_test.go`, and frontend infrastructure summary consumers must normalize long-range mixed-cadence history into equal-time summary buckets before shipping the infrastructure charts API payload, so 7-day and 30-day summary cards do not expose compressed right-edge tails just because recent samples arrive at a finer storage resolution. 26. Keep long-range workload chart transport time-proportional on the shared API surface: `internal/api/chartapi/service.go`, `internal/api/contract_test.go`, and workload chart consumers must cap mixed-cadence workload history by equal-time buckets rather than raw point index for the per-workload chart API, so 7-day and 30-day workload cards do not bunch recent samples at the right edge just because recent telemetry is stored more densely. 27. Keep chart timestamp precision canonical on that same shared API surface: when `internal/api/chartapi/service.go` serializes monitoring history into infrastructure or workload chart payloads, it must preserve canonical millisecond timestamps from the shared monitoring timeline instead of rounding through whole-second conversion, so seeded mock history and live appends collapse onto one operator-visible timeline instead of appearing as duplicated tail samples. 28. Keep Patrol remediation payload naming backward-compatible without leaking legacy automation-first wording into product copy. `frontend-modern/src/api/patrol.ts`, `internal/api/ai_handlers.go`, and `internal/api/router_routes_ai_relay.go` may continue to expose stable transport fields such as `fixed_count`, `auto_fix`, `autofix`, and the `ai_autofix` capability name, but comments, API license-required messages, and presentation labels layered on that API contract must describe the operator-visible capability as remediation or safe remediation workflows. 29. Keep storage chart identity canonical on that same shared API surface: the shared storage charts endpoint must key pool and physical-disk series by the resolved unified-resource `MetricsTarget.ResourceID`, not by canonical resource IDs or page-local aliases, so storage rows, focused summary cards, sticky summary shells, and detail charts all address the same history series in live and mock mode. 30. Keep synthetic chart-history fallback identity canonical on that same shared API surface: when `internal/api/chartapi/service.go` synthesizes mock history (through `BuildSyntheticMetricHistorySeries`, which the metrics-store history route uses), it must derive the fallback from canonical `resourceType`, `resourceID`, and `metricType` ownership instead of raw min/max seed-prefix helpers, so range changes and runtime mock updates stay on one governed timeline. Mock storage follows the same rule at `/api/metrics-store/history`: when a storage or Ceph resource has current capacity in canonical live state, the handler must return its in-memory or deterministic `usage` series for both metric-specific and all-metrics requests before querying the persistent demo store. This includes provider-derived targets with no legacy history row and legacy rows whose persistent series is still sparse while fleet backfill is running. 31. Keep workload-chart response identity canonical on that same shared API surface: `internal/api/chartapi/service.go`, `internal/api/contract_test.go`, and workload chart consumers must emit provider-backed VM and system-container series under the same canonical workload IDs that workloads page rows use, while resolving history through the unified `MetricsTarget.ResourceID`, so hover and focus selection do not fall off for provider-backed rows. Kubernetes pod workload rows follow that same contract through their metrics target. `/api/resources` may expose pod history only through the unified `MetricsTarget.ResourceID`, but that target must be the canonical prefixed runtime key `k8s::pod:` and not the bare source pod ID, so pod workload rows and pod chart payloads stay on one history series. 32. Keep the hosted account portal bootstrap intelligible without duplicate chrome. `internal/cloudcp/portal/page.go`, the maintained portal frontend bundle, and the shared portal styles may refine layout density, but the account/billing shell must remain understandable from the primary header, section title, and factual body content alone instead of depending on a second context-chip strip to restate the same scope. The bootstrap payload is also the portal's honesty contract about the runtime it runs on: `internal/cloudcp/portal/bootstrap.go` carries `email_sign_in_available` and `provider_hosted_mode`, both the HTML page path and `/api/portal/bootstrap` must populate them from the control-plane environment (`PortalEnvironment`), and the signed-out shell must render the operator sign-in instructions instead of an email-send form whenever `email_sign_in_available` is false. Older payloads without the flags must default to the email form (available) so Pulse-hosted cloud behavior is unchanged. 33. Keep storage wire metadata lossless across shared API payload types. `frontend-modern/src/types/api.ts` must continue to expose provider-backed storage metadata such as Proxmox `pool` and `zfsPool` fields when the backend emits them, instead of silently dropping that detail from the shared runtime contract. 34. Keep hosted entitlement refresh ownership on the same governed API contract as hosted status and entitlements reads. `internal/api/licensing_handlers.go`, `internal/api/hosted_entitlement_refresh.go`, and `internal/api/contract_test.go` must resolve the effective hosted billing target before refresh, persistence, and evaluator rewiring, so tenant- scoped hosted routes cannot refresh against an empty non-default org while the machine's real hosted lease still lives on `default`. The hosted verifier bridge may keep the legacy `PULSE_TRIAL_ACTIVATION_PUBLIC_KEY` environment literal for deployed tenant compatibility, but API call sites that validate hosted entitlement leases must route through the `HostedEntitlement*` licensing aliases rather than treating the retired trial-activation callback as the active acquisition model. 35. Keep public demo bootstrap posture on the shared security-status contract. `internal/api/router_routes_auth_security.go`, `internal/api/security_status_capabilities.go`, frontend security-status consumers, and shared demo-mode stores must treat `/api/security/status.presentationPolicy.demoMode` as the canonical public browser bootstrap signal for demo posture instead of asking frontend callers to infer demo state from response headers, `/api/health` probes, or hostname heuristics. The more detailed `sessionCapabilities.demoMode` projection is authenticated caller context, not part of the unauthenticated response. Shared browser stores that consume Patrol approvals must also fail closed from that resolved demo policy at the store boundary, so public demo shells do not probe `/api/ai/approvals` or `/api/ai/remediation/plans` after the read-only demo posture is already known. 36. Keep public demo commercial posture middleware-owned on that same shared API contract. `internal/api/demo_middleware.go`, `internal/api/demo_mode_commercial.go`, `internal/api/subscription_entitlements.go`, and `internal/api/contract_test.go` must classify commercial routes centrally as either hidden (`404`) or runtime-safe. Public demo browsers may read the non-commercial `/api/license/runtime-capabilities` contract for feature truth, while `/api/license/commercial-posture`, `/api/license/entitlements`, and `/auth/license-purchase-start` stay hidden. Upgrade prompts, trial nudges, monitored-system migration guidance, usage counts, billing identity, and plan metadata must therefore not depend on hidden commercial routes surviving the public demo boundary. 37. Keep the storage charts route (`HandleStorageCharts` in `internal/api/chartapi/service.go`) as the canonical storage summary contract for the storage page's summary consumers. `internal/api/chartapi/service.go`, `internal/api/chartapi/service_test.go`, and shared frontend consumers must expose pooled storage history through one response keyed by canonical metrics-target IDs, preserve millisecond chart timestamps, and avoid reconstructing storage summary behavior from per-pool `/api/metrics-store/history` fan-out. 38. Keep infrastructure summary metric filtering canonical on that same shared API surface. `frontend-modern/src/api/charts.ts`, `internal/api/router_routes_monitoring.go`, `internal/api/chartapi/service.go`, `internal/api/chartapi/types.go`, and `internal/api/chartapi/service_test.go` must route optional infrastructure-summary `metrics` filters through one governed transport contract, so route-owned consumers can request only the series they render without inventing a second summary endpoint or silently widening back to disk/network payloads. The same contract must carry those requested metric filters through the shared guest-chart batch loader in `internal/monitoring/monitor_metrics.go` instead of fetching the full guest metric set and trimming after the API payload is already assembled. `ChartsAPI.getInfrastructureSummaryCharts` is the only frontend client for `/api/charts/infrastructure`; the deprecated `getInfrastructureCharts` alias, which could not pass `metrics`, is removed and must not return as a second unfiltered entry point. 39. Keep the retired compact dashboard overview route absent from that same shared API surface. `internal/api/resourceapi/resources.go`, `internal/api/router_routes_monitoring.go`, and `frontend-modern/src/api/resources.ts` must not restore `/api/resources/dashboard-summary`, `useDashboardOverview`, or frontend dashboard consumers as compatibility paths for KPI cards, problem-resource rows, governed resource labels, top-infrastructure identity, or metrics- target join keys. New summary payloads must be owned by their product route and pinned in the API contract there. The aggregate `/api/charts/workloads-summary` and `/api/charts/storage-summary` chart routes are retired the same way. No first-party client ever called the workloads route, the storage route lost its last reader when `storageSummaryTrendCache.ts` was deleted, and neither appeared in `docs/API.md`. Their handlers, response types, `ChartsAPI` methods, mock prewarm and SLO budget are gone, and they must not return as compatibility reads; a new aggregate chart starts from a live consumer and its own contract entry. 40. Keep mock and demo chart reads on the same canonical unified snapshot as the rest of the API surface. `internal/api/chartapi/service.go`, `internal/api/chartapi/service_test.go`, and chart consumers must route `/api/charts`, `/api/charts/infrastructure`, and `/api/storage-charts` through `GetUnifiedReadStateOrSnapshot()` whenever mock or demo presentation is active, so VMware, storage, and infrastructure series stay aligned with `/api/resources` and `/api/state` instead of drifting onto the live store-backed graph. 41. Route the unified connections ledger and address probe through `internal/api/connections_types.go`, `internal/api/connections_aggregator.go`, `internal/api/connections_handlers.go`, `internal/api/connections_probe.go`, and `frontend-modern/src/api/connections.ts` together so `GET /api/connections` and `POST /api/connections/probe` stay on one canonical payload shape instead of re-deriving state from per-type config stores in the frontend. State must remain a derived field sourced from in-memory scheduler health (`monitoring.Monitor.SchedulerHealth()`) plus agent `Host.LastSeen`; for agent rows, `Host.LastSeen` is the monitoring-owned server receipt time, not the agent payload timestamp. The endpoint must not introduce new persisted per-connection state. The probe endpoint must remain admin-gated (`RequireAdmin` + `ScopeSettingsWrite`) to block unauthenticated SSRF against internal hosts. That same probe path must also validate user-supplied addresses before probing, reject metadata, link-local, multicast, and unspecified destinations, and pin each outbound dial to the permitted IPs from the validating resolution so DNS rebinding cannot swap the target between validation and connect time. Within that pinned set the dialer tries each permitted IP in resolution order, so a host whose first address family is unreachable (e.g. `localhost` resolving to `::1` while the service listens only on `127.0.0.1`) still connects. That same `/api/connections` payload now also owns the additive `systems[]` grouping contract for the infrastructure settings source manager. Those grouped rows must stay source-oriented and backend-authored: one primary source row may carry attached collection methods such as a linked Pulse Agent, but attached methods must not be emitted as duplicate peer rows when backend ownership can prove they augment the same source. When the owning source is a Proxmox cluster, that same backend-authored system payload must also carry the canonical cluster identity so the frontend can label the row by cluster moniker instead of by one endpoint node's hostname. That grouped payload must also carry the backend-authored cluster member collection with node identity, endpoint, node-local status, and any linked agent connection id so the frontend can render child node composition without reverse-engineering it from standalone agent rows. Only node records compose that member collection: a physical disk an agent reports on a member carries the node's Proxmox identity so it stays discoverable in the Proxmox workspace, but it never becomes a member and never lends its health, timestamp, or model name to the node's state or aliases, so a disk warning cannot render an actively reporting node as Stale. Those member records, plus any primary or attached connection row that represents the same host, must also carry canonical host aliases when the backend knows them, so discovery and settings surfaces can reconcile hostname-only and IP-only views of the same enrolled machine instead of showing a second "discovered" candidate row for an already represented source member or API-plus-agent source row. Exact host-agent matches for a configured single-host platform source (PVE, PBS, PMG, or TrueNAS) must also attach through the backend systems payload when workload node inventory is absent because credentials or reachability are blocked, so the infrastructure ledger does not split the same physical host into an API row plus a standalone host-agent row. Host matching uses normalized names, addresses, and aliases and fails closed when more than one enabled platform source matches; VMware remains excluded because a vCenter connection is not the ESXi host on which an agent would run. PBS source aliases include the hostname the PBS node reports about itself (`PBSInstance.NodeName` as returned by `Monitor.PBSInstancesSnapshot()`, which converts it back out of the unified PBS view), because reported machine identity, not configured addressing, is what reconciles an IP-or-alias-configured PBS connection with the host agent running on that machine. Composition adds agent telemetry to the source row without converting provider health, credentials, or polling freshness into agent lifecycle evidence. Agent-backed connections also own canonical version/update facts on that same payload: when a source or attachment is backed by Pulse Agent, `/api/connections` carries the installed agent version, the current server-side target agent version when it is meaningful, and whether an update is available, so settings surfaces do not invent frontend-local version comparison rules. That same shared contract also carries compact `agentIdentity` facts on agent-backed connections, including the reported hostname, report IP, platform/OS, kernel, architecture, and command capability, so settings surfaces can render recognizable standalone-host identity without a second inventory fetch or frontend-local host reconciliation rules. Agent config drift on that same payload must source desired fingerprints from `Monitor.GetHostAgentConfig(...).DesiredConfig` or the same `remoteconfig.BuildDesiredConfigMetadata` path. Desired config metadata is actionable only when the server has assigned a managed desired value, such as an explicit command-execution policy or an agent-applied settings key. The empty default host-agent config may still carry signed metadata for validation, but `/api/connections` must not turn that passive default into an operator-visible pending rollout. Agent rows without a managed config override expose `configDrift.status: not-applicable` and a current applied rollout with a bounded no-rollout reason. When a managed desired fingerprint exists, the aggregator must not manufacture convergence by assigning desired and applied to the same local report-field fingerprint; if host state lacks a trustworthy applied config fingerprint, `configDrift` stays pending or unknown and rollout stays non-current. Appliance-specific Pulse Agent compatibility is an additive host-profile fact on that same identity payload. For Unraid and similar host profiles, `agentIdentity.platform` remains the canonical runtime platform such as `linux`, while `agentIdentity.hostProfile` carries the governed profile id such as `unraid`; frontend clients must not re-promote those profile ids into first-class platform types. Once a governed host profile is resolved, the runtime platform is the profile's manifest runtime platform even when the host's base distro token is something implementation-specific such as Slackware on Unraid. Unified-resource agent payloads use the same split: `agent.platform` is the normalized runtime platform and `agent.hostProfile` is the optional governed profile id for host/appliance presentation. The API aggregator must resolve host-profile identity tokens and runtime platform fallback values through the generated platform-support backend projection in `internal/platformsupport/manifest_generated.go`, so payload normalization cannot drift into API-local Unraid or appliance branches. `pulse fleet connections` may read that same `GET /api/connections` payload as a deterministic CLI adapter for agent-ready operations, but it must remain a read-only view over the canonical connections ledger rather than re-deriving fleet governance state in CLI-local code. The legacy `Storage` payload shape exposed by the frontend types in `frontend-modern/src/types/api.ts` may also carry an optional canonical `platform` field (e.g. `vmware-vsphere`, `truenas`, `proxmox-pve`) when the source adapter knows which platform owns the storage record. Frontend source-filter resolvers must prefer that canonical platform key over the on-disk `type` (`vsan`, `vmfs`, `nfs41`, `zfs-pool`) so platform-page source filters, chip option counts, and grouping all collapse to the canonical platform vocabulary instead of leaking storage technology labels into operator chrome. 35. Keep Proxmox VM guest-agent reachability on the shared API payloads instead of deriving it in page-local code. Backend VM payloads and `frontend-modern/src/types/api.ts` may carry optional `guestAgentStatus` and `guestAgentExpected` fields. `expected-unreachable` means the VM is still powered/running in Proxmox but a previously healthy QEMU guest agent stopped responding; consumers must not reinterpret that field as the VM power state. ### Resource list platform admission `GET /api/resources` publishes `aggregations.platformAdmission`, an object of six booleans (`proxmox`, `docker`, `kubernetes`, `truenas`, `vmware`, `standalone`) describing which primary platform pages the requested resource set admits. The field is always present on a successful list response, including for an empty set, where every flag is false. The field names are the contract: a rename is a navigation regression for any consumer that resolves its platform navigation from this facet. Consumers MUST read admission from this facet rather than classifying a full-state payload, and MUST NOT reconstruct it from `aggregations.bySource`. Proof: `TestContract_ResourceListReportsPlatformAdmission` and the wire-shape pin in `frontend-modern/src/types/__tests__/resource.test.ts`. `POST /api/config/nodes/test-connection` records a node connection test outcome for telemetry. Recording begins only after the request is validated as carrying a target and credentials, so a request rejected for incomplete input is never counted as a node that could not be reached. Recording wraps the response writer and must not alter the response contract: status codes and sanitized error bodies stay exactly as they were. `POST /api/config/nodes/test-config` is deliberately not instrumented, because instrumenting both endpoints would double-count a single operator action and corrupt the failure share the counters exist to measure. ### Audit investigation filter rejection The existing GET `/api/audit`, `/api/audit/export` and `/api/audit/summary` validate every supplied `startTime` and `endTime` as RFC3339 and reject empty, malformed, equal or reversed bounds with HTTP 400 before querying events. List and export likewise reject supplied `success` values other than literal `true` or `false`. Absence remains unfiltered; event/user filters, tenant, licence, role and method boundaries, formats and signature verification remain. Export/summary do not inherit list pagination, and summary has no success filter. No new endpoint is introduced. Actual handlers and exporter are pinned by `internal/api/audit_filter_validation_test.go` with fake persistent loggers, including query non-execution and tenant isolation; `internal/api/audit_handlers_test.go` pins valid export/summary filter payloads. Canonical synchronous export and summary now accept at most 10,000 matching events. The actual Query receives Limit=10,001 and Offset=0, with every other selection unchanged and no preliminary Count. A sentinel row (or an oversized response from a logger ignoring Limit) refuses the whole selection before signature verification, encoding or attachment headers. Both fallback handlers return `400 export_too_large` with a constant `maxEvents` detail and guidance to narrow time/event/user selection. No partial success, silent truncation, total count claim, byte-size bound or duration guarantee is made. Empty, small and exactly 10,000-event selections retain complete JSON/CSV/summary and verification semantics. `pkg/audit/export_bounds_test.go` and `internal/api/audit_export_bounds_test.go` pin overflow, complete wire contents, query-error refusal and narrowing recovery; existing selection, tenant and access tests retain those boundaries. The Audit Log UI uses the unchanged list and per-event verification endpoints, not these synchronous export/summary routes. List/export/summary parse the entire raw query with `url.ParseQuery`; damaged encoding (including an invalid unknown pair) returns `400 invalid_query`, never a partial selection. The named singleton parameters `event`, `user`, `startTime`, `endTime`, `success`, `limit`, `offset`, `format` and `verify` may appear at most once, including under encoded keys; repeated values return `400 ambiguous_query`, even when identical. Valid encoded values, unknown well-formed parameters and existing per-endpoint filter semantics remain. Rejections occur before Query/Count/signature checks or export attachment headers. `internal/api/audit_selection_validation_test.go` exercises the actual handlers/exporter, scoped wire results and tenant isolation without a database. POST/PUT `/api/admin/webhooks/audit` require an explicit `urls` array. `null`, `{}` and `{"urls":null}` return `400 invalid_request` without updating existing destinations. `{"urls":[]}` is intentional removal of every endpoint; non-empty selections still undergo all existing URL/SSRF validation before one update. Body bounds, organisation/access/entitlement gates and best-effort forwarding remain unchanged; these controls establish no receiver delivery. The same test file pins both methods, unchanged state after refusal, deliberate clear/restore, invalid-URL atomicity and tenant-scoped mutation. Audit webhook updates also reject competing top-level `urls` members with `400 invalid_request`, before DNS/URL validation or any logger update. JSON escapes and the existing case-insensitive key matching (including Unicode case folds) identify the same selection: identical duplicates are ambiguous too. A singleton alias, well-formed unknown fields and nested metadata remain compatible. The bounded body must contain one complete JSON object, followed only by whitespace; a second document, junk or an oversized suffix cannot silently apply its first selection. Explicit `[]` clear/restore, atomic URL/SSRF validation, tenant selection, access/entitlement and best-effort delivery are unchanged. `internal/api/audit_handlers_test.go` pins both methods, duplicate aliases, preserved destinations, singleton compatibility and complete-body bounds. This proves configuration preservation, not external receiver delivery. ## Forbidden Paths 1. Handler-local payload shape drift without a contract test 2. Untracked compatibility aliases becoming permanent runtime contracts 3. Frontend-only payload assumptions that are not owned in backend contracts 4. Frontend API clients inferring canonical HTTP status from `Error.message` text 5. Frontend API clients branching on raw `response.status` checks for governed status handling instead of the shared response-status helpers 6. Frontend API clients parsing governed success or stream payloads with raw `response.json()`, ad hoc `response.text()` + `JSON.parse(...)`, or per-module `JSON.parse(...)` stream decoding instead of the shared response parsing helpers 7. Frontend API clients normalizing nullable or legacy collection payloads with module-local `|| []`, `?? []`, or ad hoc `Array.isArray(...)` fallbacks instead of shared collection helpers 8. Frontend API clients swallowing non-not-found API failures behind broad `catch { return null; }` fallbacks instead of routing only canonical `404` cases through explicit status checks 9. Frontend API clients coercing governed backend payload fields through module-local scalar helper stacks instead of shared scalar coercion helpers 10. Frontend API clients normalizing governed structured error payloads through module-local helper functions instead of shared error normalization helpers 11. Frontend API clients open-coding parsed non-OK response throwing with `throw new Error(await readAPIErrorMessage(...))` instead of the shared response assertion helper 12. Frontend API clients open-coding governed `assertAPIResponseOK(...); parseRequiredJSON(...)` or `parseOptionalJSON(...)` tandems instead of shared response pipeline helpers 13. Frontend API clients open-coding governed `404 => null` response branches for resource lookups instead of shared missing-resource response helpers 14. Agent and guest metadata clients duplicating the same CRUD transport logic instead of using one shared metadata client 15. AI stream clients duplicating SSE reader, timeout, chunk-splitting, and JSON event parsing loops instead of using one shared stream consumer 16. Monitoring delete and idempotent mutate clients open-coding `404`/`204` allowed-status branches instead of using canonical shared allowed-status helpers 17. Governed frontend API clients open-coding `if (!response.ok) { if (isAPIResponseStatus(...)) throw new Error(...) }` status-to-user-message branches instead of using canonical shared custom-status error helpers 18. Monitoring command-trigger clients open-coding `parseOptionalAPIResponse(response, { success: true }, ...)` success-envelope fallbacks instead of using a canonical shared success-envelope helper 19. Governed frontend API clients open-coding `try/catch` wrappers around `apiFetchJSON(...)` just to map `402` or `404` into `[]`, `{ plans: [] }`, or `null` instead of using canonical shared API-error-status fallback helpers 20. Backend config/settings handlers pointing operator guidance at GitHub `main` docs when the running build already ships that guidance locally under `/docs/` 21. Telemetry preview or reset endpoints drifting from the exact server-owned telemetry runtime contract instead of reusing the same source-of-truth snapshot and install-ID state the background sender uses 22. Shared SSO test or metadata-preview handlers open-coding outbound metadata/discovery URLs, allowing userinfo-bearing HTTP(S) inputs, or rebuilding `/.well-known/openid-configuration` with origin-root string concatenation instead of the shared validated URL helpers before any outbound request 23. AI settings handlers echoing raw provider secrets or testing the wrong provider model: `/api/settings/ai` may expose masked provider-auth presence such as `ollama_password_set`, but backend payloads must never echo stored secrets back to clients, and provider-specific test routes must stay bound to the selected provider's own configured model instead of whichever other provider currently owns the default `model` field; per-provider base URL overrides (`openai_base_url`, `zai_base_url`, and Ollama's `ollama_base_url`) round-trip through the same settings payload and take precedence over the registry default, so a provider can be retargeted (e.g. Z.ai standard versus coding endpoint) without code changes 24. `/api/diagnostics` exposing maintainer/admin analytics such as commercial funnel, sales funnel, pricing/checkout conversion, or infrastructure onboarding telemetry. Customer diagnostics may expose runtime health, supportability, and sanitized troubleshooting state; admin analytics must stay behind admin-owned metrics routes. 25. Handlers that perform a caller-requested write (settings, sessions, credentials, workflow or resource state) while answering `GET` or `HEAD`. A route registered without a mux method pattern, or a sub-resource dispatched by path, must refuse safe methods in the mutating handler through `requireRequestMethod` in `internal/api/method_guard.go` (or an equivalent explicit check) instead of relying on its callers, the demo-mode read-only guard, or the CSRF check. ## Completion Obligations WebSocket events derived from tenant infrastructure use `Hub.BroadcastMessageToTenant` or `Hub.BroadcastToTenant` with the owning org. Setup registration uses the setup-token org already bound to the request; node changes and test notifications use the request org. Empty org IDs target only `default`; custom and alert broadcasts require an explicit org argument. `BroadcastMessage` permits only the instance heartbeat (`ping`), shared system theme (`settingsUpdate`), and server update progress (`update:progress`); other types are refused. `internal/websocket/hub_event_boundary_test.go` and `internal/api/configapi/tenant_event_delivery_test.go` cover cross-org refusal, scoped delivery and default-org compatibility, including the existing custom discovery envelope. ### Docker update agent-attested running verification In `internal/api/docker_container_action_result.go`, a matching replacement container ID is insufficient to confirm a running agent readback. A running replacement must report state `running` and health `healthy` or explicit `none`. Known unsuitable health or lifecycle states contradict verification; missing or unrecognised running health yields `inconclusive` with `container_health_unknown`. A running replacement whose health check is still `starting` yields `inconclusive` with `container_health_starting`, matching start and restart verification. Docker has not yet settled the health check in that state (no probe has run, or failures have not reached the retry threshold), so it is not evidence against the update. This does not change execution or compensation history, introduce a wire field, or require stopped replacements to run. The Docker agent (`internal/dockeragent/container_update.go`) polls a started replacement whose health is `starting` every 2s, for at most 3 minutes, before judging it. Docker's default probe first runs 30s after start, so the 5s crash check alone usually saw `starting` on health-checked images and rarely reached its unhealthy rollback. A replacement that turns `unhealthy`, stops, or is `restarting` (Docker keeps `Running` set while a crashed container waits to restart) is rolled back. One still `starting` at the cap is kept, and the host agent's readback then reports `starting`. Verification: `TestDockerContainerUpdateAgentReadbackMustSupportRunningClaim` in `internal/api/docker_container_action_result_test.go` covers healthy, no-healthcheck, stopped, unhealthy, starting, restarting and unknown-health readbacks. The typed-dispatch fixture supplies explicit no-healthcheck evidence. `TestUpdateContainer_WaitsForReplacementHealthToSettle` in `internal/dockeragent/container_update_test.go` covers settling healthy, settling unhealthy, exiting, restarting or failing inspection during the wait, the cap and no health check. `TestUpdateContainer_SettleCapEndsHungHealthInspect` covers an inspect that hangs past the cap, which ends the wait without rollback. The public connection ledger and action APIs must project telemetry liveness and command admission independently. An agent may be adapter-healthy while remote control is `disconnected`; in that state command policy is blocked and action dispatch returns the canonical unavailable/disconnected error rather than inferring command readiness from reports. Resource actions resolve the live session inside the request organization, prefer the immutable report token binding when present, and refuse stale-token fallback to hostname or agent ID. Docker / Podman report transport changes must prove uncompressed and gzip ingress, exact inclusive boundaries, encoded and decoded 413 rejection, ordinary and 163-container Docker/Podman fleets, and typed compression diagnostics. The handler must consume the agent-lifecycle-owned shared contract rather than restating size constants or warning text. RBAC transport changes must prove that settings, SSO role mapping, and authorization share one default-organization manager; that healthy empty collections serialize as arrays; and that provider, migration, or read errors retain the stable `503 rbac_store_unavailable` envelope instead of becoming successful empty payloads. Manual Patrol execution is a canonical identity-bearing API contract. A scoped `POST /api/ai/patrol/run` request accepts only the declared resource and alert fields, rejects client-authored prompt context and trailing or unknown JSON, and resolves requested resource identities against the current collection snapshot before acknowledging the run. Unmatched, ambiguous, or zero-match explicit identities return the stable `patrol_scope_unresolved` 422 envelope; accepted responses include the requested-to-effective scope resolution. The runtime must re-resolve at execution time and persist a failed run if collection drift turns the accepted scope into a zero-match race. Admission atomically reserves the same single execution slot used by unscoped runs before returning HTTP success. The response therefore includes `run_id` and `started_at`; a busy slot returns the typed `409 patrol_already_running` envelope instead of acknowledging work that may be dropped. Qualification clients may retry that honest conflict within their scenario timeout. Clients must not infer a successful targeted check from admission alone: the named run record remains the authoritative analysis outcome. 1. Update contract tests when payloads change, including admin verification endpoints such as `POST /api/ai/patrol/preflight` whose response shape (`tool_call_observed`, `duration_ms`, classified `cause`/`summary`/`recommendation`, plus `recorded_at`/`recorded_at_unix` for the cached snapshot) is part of the canonical Patrol diagnostic surface, the `patrol_preflight` snapshot field on `/api/settings/ai` that hydrates the Check Patrol model panel on page load, the auto-trigger contract on `POST/PUT /api/settings/ai` whose handler dispatches preflight in the background only when the change actually moved Patrol transport so routine saves do not write a new `patrol_preflight` snapshot, the startup-seed contract where `NewAISettingsHandler` dispatches the same async preflight after `LoadConfig()` succeeds so the first `/api/settings/ai` poll after a Pulse restart already carries a populated `patrol_preflight` snapshot, and the GET-symmetry contract where `HandleGetAISettings` includes `patrol_readiness` (with the cached-preflight-augmented `tools` check) on the same response that already carries `patrol_preflight`, so the Patrol page picks up classified preflight evidence on first load instead of only after a save; readiness checks may keep stable machine IDs such as `configuration`, but user-facing labels in this payload must say Patrol mode rather than Patrol configuration, and the settings UI must summarize successful diagnostic snapshots as model readiness instead of rendering raw preflight/tool-call wording The same diagnostic payload may inform Patrol page setup banners, but the Patrol page must present it as setup/model-check state and must not render raw preflight or tool-call-observation copy in the header banner. 2. Update frontend API types in the same slice 3. Route runtime changes through the explicit API-contract proof policies in `registry.json`; default fallback proof routing is not allowed 4. Update this contract when canonical payload ownership changes Reusable install-token generation in `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` must stay outside the command-execution scope. The browser may request reporting/config plus Docker and Kubernetes reporting scopes for reusable installer transport, but it must not add `agent:exec`; command-capable install commands must come from the backend command-generation path with host-bound metadata or first-use Proxmox install metadata. Signed Unified Agent config responses must honor the command-registration token boundary before returning `commandsEnabled:true`. When a real API token record is present on an agent config/report request, the backend may sign or echo command enablement as true only if that token has `agent:exec` and is already bound to the requested agent by hostname or agent id, or is an unbound Pulse-minted Proxmox install-command token carrying the governed first-use metadata. Generic or unbound command-scope tokens must receive `commandsEnabled:false` in the response while the stored desired setting remains unchanged for a later correctly bound token. 5. Keep `/api/resources` policy metadata aligned across backend payload tests and canonical frontend resource consumers whenever sensitivity or routing fields change 6. Keep Patrol status payloads explicit enough that the frontend can present blocked runtime state without treating a previously healthy summary snapshot as current runtime truth, and keep Patrol recency semantics explicit in transport by reserving `last_patrol_at` for completed full patrols while exposing any Patrol activity separately through `last_activity_at` and the scoped-trigger status payload on that same Patrol status surface, so queued scoped work, busy-mode state, and per-source enablement (`alert` versus `anomaly`) stay transport-backed instead of being inferred by page-local heuristics and the event-trigger runtime-block payload on that same scoped-trigger status surface, so `event_triggers_blocked`, `event_triggers_blocked_reason`, and `event_triggers_blocked_message` explain effective runtime policy without making the transport look like the operator turned alert or anomaly triggers off; default Patrol UI surfaces may use that payload to explain an actionable manual-run block, but must not promote a background-only policy pause as ordinary operator guidance when manual Patrol still works and the split Patrol trigger settings contract, so `patrol_alert_triggers_enabled` and `patrol_anomaly_triggers_enabled` are the canonical AI settings fields while legacy `patrol_event_triggers_enabled` remains a compatibility aggregate rather than the primary control surface and the retired quickstart compatibility contract, so `/api/settings/ai` and `/api/ai/patrol/status` no longer carry `quickstart_credits_remaining`, `quickstart_credits_total`, `quickstart_credits_available`, `quickstart_blocked_reason`, or `using_quickstart` as ordinary v6 GA fields, and shared handlers must not invent client-authored commercial identity, synthetic credits, or quickstart-backed config now that the hosted quickstart bootstrap path is retired and the provider-first availability rule, so missing managed-model activation identity must not block ordinary BYOK/local setup and must not silently attempt anonymous bootstrap and the hosted model alias retirement rule, so persisted legacy hosted quickstart model IDs such as `quickstart:minimax-2.5m` are cleared before `/api/settings/ai` responds, instead of leaking stale vendor identifiers or a managed-model promise back into governed payloads and the AI settings blocked-reason contract, so stale `quickstart_blocked_reason` values are cleared or interpreted as compatibility metadata when a provider-backed path is active or the self-hosted app is routing the operator to provider/local-model setup and the public interpretation rule, so compatibility state must not become generic hosted AI quota, anonymous Community entitlement, trial CTA, account-backed activation support, or full-chat entitlement in normal self-hosted v6 GA UI and the Patrol autonomy save contract, so Community/free runtime payloads may persist only `monitor` autonomy settings through `/api/ai/patrol/autonomy`, while `approval`, `assisted`, and an acknowledged `full` return the canonical license-required response instead of a generic save failure (the shared acknowledgement gate refuses a `full` request without a current Autopilot acknowledgement first, for example with `409 acknowledgement_required` when it carries none), and the Patrol frontend state owner must refuse any level other than `monitor` when a save starts while the safe-remediation entitlement is not effective; its payload carries only `autonomy_level`, the investigation budget and timeout, and (for Autopilot) `acknowledgement_id`, never `full_mode_unlocked`. The monitor-only backend path owns the unlock clamp: it must clear stale full-mode unlock and Autopilot activation state in its response and persistence layer instead of preserving paid remediation state through a free configuration save and the Patrol settings-save readiness contract, so `/api/settings/ai/update` may save a selected Patrol provider/model even when that model is not ready for tool-backed Patrol execution, but it must echo `patrol_readiness` with stable `cause` metadata and execution routes must continue to fail closed before model calls. Frontend settings consumers must surface that saved-but-not-ready response as a saved configuration issue rather than a failed save, and never as inline failure state: every Pulse Intelligence settings page (Provider & Models, Patrol, Assistant, Service context) raises a warning notification naming the echoed summary, provider, and model, while the Patrol page's on/off save raises a fixed not-ready warning and leaves the diagnosis to the page's own readiness surfaces, such as the readiness banner that names the summary, provider, and model while the header offers `Fix setup` when Patrol is active; and the structured investigation-record contract, so unified findings may expose `investigation_record` only through the shared `aicontracts.InvestigationRecord` payload shape, with frontend API types and backend contract tests updated in the same slice as any field change. That shared shape carries top-level `impact` and `rollback` fields alongside the existing `verification` array so paid Patrol responses can name the consequence of operator inaction and the undo intent for a proposed fix at the record root rather than buried inside per-step fix payload, and `trigger.cause` mirrors the Go failure-cause string in the TS API client so frontend consumers see the same patrol-failure attribution the backend persists. Both `impact` and `rollback` are omitempty/normalize-empty and must remain absent rather than fabricated when Patrol has not yet populated them. Top-level `impact` also lives on `unified.UnifiedFinding` directly, not only on the nested investigation record, so detection-time consequence-if-ignored copy authored on `Finding.Impact` (for example by the Patrol runtime-failure classifier) reaches API consumers even when no investigation record is attached. The Finding to UnifiedFinding conversion in `internal/api/router.go` and the dedup-merge path in `FindingsStore.Add` must both propagate `impact` alongside `description` and `recommendation` rather than dropping it; persisted findings created by older binaries must adopt the freshly-classified impact text on next re-detection rather than preserving the empty value. The action audit `result` field carries an optional `verification` block (TS `ActionVerificationResult` mirroring the Go type) with `ran`, `command`, `output`, `success`, `ranAt`, and `note`. API consumers (specifically the Resource Action History on the infrastructure detail drawer) must round-trip the verification block as the action-audit readback API returns it and render it as a distinct outcome row alongside the dispatch `result`. The `command`, `output`, and `note` fields are redacted to stable markers at persistence/readback boundaries, including migrated legacy rows, so consumers must not expect or re-expose raw historical verification details. Operators see whether Pulse ran the read-after-write probe and whether it confirmed the intended state, not raw command output. When `ran=false` (no derivable check, or feature disabled for the action class) nothing must be rendered, matching the no-fabrication rule. The action audit `verificationOutcome` field carries the bounded operator-facing verification status and evidence summary. Frontend consumers must map `verified`, `unverified`, `failed`, and `unknown` through shared action-audit presentation helpers, preserving `evidenceSummary` as audit evidence while avoiding route-local wording or raw status-token-first copy. The patrol-status response (`PatrolStatusResponse`) carries an optional `trust` block of type `ai.FindingsTrustSummary` that surfaces the trust-metrics snapshot for the Patrol page. The block is populated when a patrol service is available and omitted otherwise; the JSON keys are `tracked`, `currently_active`, `resolved`, `auto_resolved`, `fix_verified`, `fix_failed`, `dismissed_as_noise`, `dismissed_as_expected`, `dismissed_as_later`, `suppressed`, and `regressed_at_least_once`. The TS API client carries a parallel `FindingsTrustSummary` interface in `frontend-modern/src/api/patrol.ts` and a `trust?` field on `PatrolStatus`. Snapshot semantics, not lifetime totals. The Patrol Assistant handoff carries an optional `intent` field of type `PatrolAssistantFindingIntent` (`'discuss' | 'explain'`) so contextual entry points on the finding surface can route through the same handoff builder while seeding different leading sentences. The structured handoff context (investigation record, operational memory, pending approval, proposed fix, next-step action) must be attached identically across intents; only the seed prompt's framing varies. The TS API client mirrors the `previous_resolved_fix_summary` field on both `UnifiedFindingRecord` (in `frontend-modern/src/api/ai.ts`) and `Finding` (in `frontend-modern/src/api/patrol.ts`), and the store normalizer promotes it to the camelCase `previousResolvedFixSummary` on the store-level `UnifiedFinding` so finding-card render code can read it. Without this mirror, the field stays backend-only and operators cannot see "what worked last time" without opening Assistant. `unified.UnifiedFinding` also carries a `previous_resolved_fix_summary` operational-memory field captured at regression time from `existing.InvestigationRecord.ProposedFix.Description`. The AddFromAI update branch must propagate non-empty `previous_resolved_fix_summary` into the existing finding using the same overwrite pattern as `description`, `impact`, and `recommendation`, and the Finding to UnifiedFinding conversion in `internal/api/router.go` must copy `f.PreviousResolvedFixSummary` alongside the other operator-facing strings. The same shape also carries an optional `remind_at` timestamp (ISO 8601) on both `UnifiedFindingRecord` and Patrol `Finding` shapes. It is populated only when `dismissed_reason === 'will_fix_later'` and represents the wake-up deadline at which the next re-detection clears the dismissal — the operator-facing half of the canonical `Finding.RemindAt` contract. The store normalizer promotes it to camelCase `remindAt` on `UnifiedFinding`, the Finding to UnifiedFinding conversion in `internal/api/router.go` must copy `f.RemindAt`, and the AddFromAI update branch must mirror it (including clearing on remind-at wake or undismiss) so the dedup surface stays consistent with the canonical findings store. The Findings panel must visibly preview the deadline at dismiss-confirm time and badge dismissed-as-will_fix_later rows with the pending remind-at, otherwise the new behavior is invisible until the reminder fires. The Patrol manual-feedback endpoint surface also includes `POST /api/ai/patrol/resolve` (handled by `HandleResolveFinding` in `internal/api/ai_handlers.go`) for operator-driven manual resolution when the operator has fixed an issue out-of-band. The TS client `resolveFinding(findingId)` in `frontend-modern/src/api/patrol.ts` must post `{finding_id}` to that endpoint and surface the boolean result through `aiIntelligenceStore.resolveFinding` so the operator surface gets uniform refresh and error UX with acknowledge / snooze / dismiss. The same `UnifiedFindingRecord` shape also carries `auto_resolved`, the operator-vs-Pulse attribution flag set by the canonical findings store. The store normalizer must promote it to camelCase `autoResolved` on `UnifiedFinding`, the Finding to UnifiedFinding conversion in `internal/api/router.go` must copy `f.AutoResolved`, and the AddFromAI dedup-merge path must mirror it onto the existing record. The frontend resolution-reason helper must use that flag to attribute operator-driven Mark resolved closures as "Resolved by you" instead of generic auto-detection copy, while keeping Patrol's own fix outcomes (`fix_verified`, `fix_executed`, `resolved`) priority because those describe Pulse's actual remediation rather than mere auto-detection. The canonical Patrol page header copy is owned by the patrol-intelligence subsystem and must consume from `frontend-modern/src/utils/patrolPagePresentation.ts`. The `PatrolIntelligenceHeader` shell on the Patrol API surface reads the title, description, and title tooltip from `getPatrolPageHeaderMeta()` rather than carrying inline copy, so the operator-facing framing of what Patrol owns (watching infrastructure, detecting issues, recording findings, and escalating into governed investigation/action only when the selected Patrol mode allows it) stays tied to the contract instead of drifting between hover and inline. The Patrol page must not introduce header or workspace trust strips over this payload. High-signal trust facts from `state.patrolStatus()?.trust` (the `FindingsTrustSummary` block already plumbed through the patrol status payload) may feed the primary assessment readout, but they remain render-only consumers of the existing canonical signal and must not introduce a new fetch path or duplicate data plumbing. The same page-header recency line also reads `PatrolRecencyPresentation.resourcesCheckedLabel` — derived by `getPatrolRecencyPresentation` from the latest completed run's `PatrolRunRecord.resources_checked` — so the operator sees coverage alongside recency without needing a new API surface. The label stays optional when coverage is zero and reads `checked N resources` for any completed run, whatever its type or outcome; it never says verified. The Patrol current-findings empty state reconciles AI summary coverage factors against run history: outside runtime and stale-coverage states, the latest completed full run decides first. One that ended with errors or was followed by a failed run, or only targeted or follow-up runs, withholds the all-clear. A clean one with non-zero `resources_checked` that completed within the last 24 hours, with no failed run after it, lets the all-clear stand even while `overall_health` still carries a `coverage` factor such as `Recent Patrol errors` (which the backend keeps until three consecutive clean full runs lead its window or the errored runs leave it), and a grade lowered only by coverage factors does not read as degraded health. In every other case a `coverage` factor still withholds the all-clear. and the Assistant finding-context request contract, so `/api/ai/chat` payloads carrying `finding_id` may hydrate a structured investigation summary from the unified finding, but raw action commands must stay out of the persisted prompt and inside governed approval/remediation context; the backend may pass that summary as model-only handoff context for the current turn and retain it as same-session model context for follow-up turns. The backend may also carry structured handoff resource references from the same finding into chat execution, but those references must hydrate through canonical unified-resource registration before they affect session-scoped action validation. If stored for follow-up turns, they remain model-context references rather than saved user text or action authority, and the runtime must re-resolve them against current canonical resources before use. The API/chat boundary may also store the originating finding ID as model-context metadata so later turns in the same Assistant session can refresh the current unified finding and investigation record before model execution; that reference is not lifecycle authority and must not be persisted as user text. If that reference no longer resolves through the current unified finding store, the API/chat boundary must clear the stored handoff context and unpinned handoff-seeded resource scope rather than replaying stale investigation state. The chat handoff payload must carry the unified finding's lifecycle and recency state, including active/resolved/ snoozed/dismissed/suppressed status, detection/last-seen/resolution timestamps, recurrence/regression facts, and recent lifecycle events, so API consumers do not reduce Assistant context to an outdated investigation summary. The frontend store boundary must preserve those recurrence facts from the shared payload, including `times_raised`, so Patrol presentation and Assistant handoff helpers do not infer repeated findings from page-local state. The briefing must carry the primary finding's current recency facts, bounded evidence snapshot, verification summary, and factual governed action artifact metadata before investigation guidance and may carry the latest lifecycle event as the current handoff state, while the detailed lifecycle list must stay bounded and model-only. Chat execution may also resolve root-cause and correlated finding IDs from that current unified finding into compact related-finding summaries and structured handoff resources. Those related summaries may include the related record's current recency and latest lifecycle facts, but those related records remain model-only explanation context and must not become saved user text, disclosure authority, lifecycle authority, approval authority, or execution authority. Chat execution may also hydrate canonical resource-policy context for those resources through unified-resource resolution and shared policy presentation helpers, but the resulting handling guidance is read-only, model-only context and must not become saved user text, disclosure authority, or action authority. Chat execution must apply that same resource-policy boundary to the assembled product-originated handoff text before model prompt injection, including finding briefings and lower-level finding/action context, so governed resource identities are redacted even when the selected model is local and no provider-bound sanitizer will run. Chat execution may also hydrate current canonical resource-state context for those resources, including compact status, freshness, source-health, metric, incident, and governed-capability summaries from the unified-resource model, but that snapshot is model-only read-only infrastructure context and must not become saved user text, disclosure authority, or action authority. Chat execution may also hydrate canonical relationship context for those resources through shared unified-resource relationship presentation and parent-edge synthesis, but topology context is read-only and must not become saved user text or action authority. Chat execution may also hydrate recent changes for those handoff resources from the canonical unified-resource timeline, but it must resolve product-originated resource references through the canonical unified-resource provider before querying timeline changes, with raw handoff IDs used only as a compatibility fallback. The resulting context is read-only, model-only explanation data and must not become saved user text or action authority. The backend may also carry structured pending-action and approval references from the investigation record into chat execution, and may recover the current live Patrol investigation-fix approval for the finding when the durable record has no current approval ID, but those references must omit raw action commands, remain model-only review context, and leave approval/execution authority with the governed approval and remediation APIs. Frontend-visible pending-approval drawer briefings must be a presentation of that same safe handoff context: approval ID, status, risk, target, requested/expiry timestamps, action label, and approval-flow safety posture may be shown, while raw commands stay outside chat prompt and context payloads. Chat execution may refresh approval status snapshots for those references from the canonical approval store, but that snapshot is read-only, org-scoped, and must not expose or infer the raw command. When the API handoff builder recovers a live approval, the first model-only finding briefing and structured handoff action must use that recovered approval's safe lifecycle metadata, request/expiry timestamps, action plan identity, approval policy, plan expiry, and dry-run posture as factual action artifact metadata instead of falling back to stale investigation-record approval posture. When the reference resolves to a governed action plan or action audit, chat execution must hydrate the canonical action ID, lifecycle state, requester, capability, approval policy, plan expiry, preflight/dry-run summary, and terminal success/failure state from the action-audit store so API consumers do not mistake the original approval snapshot for current action truth. That action-audit snapshot remains model-only review context and must not expose raw command text or raw execution output. Frontend handoff briefings must derive from the same shared investigation payload rather than inventing a second finding-context transport shape. 7. Keep Patrol summary payload consumers aligned on one assessment hierarchy: transport-driven Patrol summary data may show supporting counts and outcomes, but the canonical assessment and verification states must remain singular and not be repeated as a second compact verdict strip. The collapsed readout should describe current operator state and score directly rather than combining reassuring grade labels with active-issue copy; recurrence and trust counters are historical evidence unless the active finding or approval payload marks current operator work. Patrol-owned status, finding, and run-history payloads are sufficient fallback evidence for Current issues when the broader intelligence summary payload is missing, slow, or unavailable. Frontend consumers of the operations-loop projection must present the compact progress label as current work state, not as a duplicate of the selected Patrol autonomy mode, and terminal verified/rejected outcomes with no active finding or pending approval must stay history detail behind `No active work`; native Patrol consumers must not render a separate proof strip solely to expose that history action. A first-party Patrol control starter may render a ready-to-run Patrol step only after subtracting the legacy `proActivationOperationsLoopStarterCount` alias from aggregate Patrol-control starter evidence, so a legacy activation-entry count alone cannot revive the old proof UI. 8. Keep Patrol verification and activity facts unified on one transport-backed secondary status area: when frontend consumers combine Patrol status payloads (`runtime_state`, `last_patrol_at`, `last_activity_at`, `trigger_status`) with run-history transport, the latest run result, activity mix, scoped-trigger state, and circuit-breaker context must read as one supporting explanation beneath Current issues or selected history instead of being re-expanded into a separate full-width status strip plus duplicate summary layers and the Patrol runtime-failure run-history contract, so backend payloads, persistence adapters, and `frontend-modern/src/api/patrol.ts` preserve `error_summary` and `error_detail` whenever an erroring run has structured provider, model, tool, context-window, quota, auth, rate-limit, or connectivity failure context and the Patrol run-history Assistant handoff contract, so frontend run-history consumers may pass a bounded `[Patrol Run Context]` block, scoped resource references, run outcome/coverage facts, sanitized analysis, and structured runtime failure summary/detail as model-only chat context under the server-set approval-required mode, leaving retries, configuration changes, and remediation authority outside the chat payload and the main Patrol page composition boundary, so once that governed secondary area exists inside the Current issues and history workspace the same payloads must not also drive a second page-level status strip elsewhere on the route and the Patrol supporting-context rule, so recent changes, learned correlations, and policy coverage stay backend and Assistant context instead of advertising a parallel Patrol workflow in any page state, healthy or degraded. First-party Patrol page consumers must not turn those payloads into a generic Details/supporting context panel; selected finding and run records remain the source of truth for what the operator can inspect or do next. 9. Keep AI settings setup transport vendor-neutral: `/api/settings/ai/update` must accept provider credentials or base URLs without a baked vendor model ID, resolve the effective BYOK `model` through the canonical runtime provider-catalog policy, and return that resolved model on the same shared `/api/settings/ai` payload instead of depending on frontend-supplied model defaults. 10. Keep AI settings paid-control fields entitlement-effective at the API payload boundary. `/api/settings/ai` and `/api/settings/ai/update` may preserve stored autonomous, Patrol auto-remediation, and alert-triggered analysis preferences in config, but response payloads must expose only the control level and paid Patrol settings currently allowed by runtime entitlements. 11. Treat Patrol summary supporting metrics as readouts, not reinterpretations: when frontend consumers derive cards such as active findings, criticals, warnings, or fixes from the canonical payloads, those cards must stay numeric and must not synthesize new assessment labels like `Issues detected` or verification labels like `Partial verification` beneath the primary summary contract 12. Treat active Patrol runtime transport as compatible with factual activity surfaces: when the runtime is currently running, frontend consumers may surface in-progress activity context, but they must not add a second assessment verdict derived from runtime state alone 13. Treat Patrol recency as a singular transport-driven fact: the page-header recency line presents the governed Patrol timing context, so frontend summary consumers must not derive an extra timing pill from the same payloads inside any primary summary card that returns 14. Treat Patrol findings counts as a singular supporting surface as well: when the summary shell already exposes count cards for active findings, warnings, criticals, and fixes, the primary assessment card must not repeat those same payload-derived counts as secondary badges 15. Treat Patrol schedule and recency as header-owned metadata on the main Patrol page: findings empty-state consumers should not receive or restate `next_patrol_at`, `last_patrol_at`, `last_activity_at`, or interval timing once those transport fields are already presented by the page header 16. Keep recovery payload filters canonical across `/api/recovery/rollups`, `/api/recovery/points`, `/api/recovery/series`, and `/api/recovery/facets`: when `internal/api/recovery_handlers.go` adds a governed recovery filter or display field such as provider-neutral `itemType`, the same normalized transport must land across all four endpoints and the contract tests must pin both outbound payload shape and accepted query aliases in the same slice 17. Keep recovery platform-query vocabulary canonical across that same `/api/recovery/*` surface: operator-facing transport must emit `platform` as the canonical query field, accepted legacy `provider` aliases must remain compatibility-only input, and `internal/api/contract_test.go` must pin that fallback behavior in the same slice as any handler change 18. Keep recovery payload platform vocabulary canonical across that same `/api/recovery/*` surface: point payloads must expose `platform`, rollup payloads must expose `platforms`, and any compatibility `provider` / `providers` aliases must remain secondary fallback fields rather than replacing the shared response model 19. Keep recovery linked-resource vocabulary canonical across that same `/api/recovery/*` surface: points and rollups must expose `itemResourceId` as the canonical linked-resource field, accepted legacy `subjectResourceId` aliases must remain compatibility-only input or secondary payload fields, and the shared proof surface must pin that normalization in the same slice as any handler change 20. Keep recovery external item-reference vocabulary canonical across that same `/api/recovery/*` surface: point and rollup payloads must expose `itemRef` as the canonical external item-reference field, accepted legacy `subjectRef` aliases must remain compatibility-only secondary payload fields, and the shared proof surface must pin that normalization in the same slice as any handler change 21. Keep first-host lookup completion explicit on the shared install-state API boundary: when `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` receives a successful connected-agent lookup result, the canonical install flow must expose direct navigation into `/settings/infrastructure` and the first visible platform/runtime page rather than leaving the operator on a transport-only status readout or reviving the removed `/infrastructure` route. 22. Keep the shared first-host detection contract explicit on `/api/state` as used by `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`: the canonical `connectedInfrastructure` projection must stay suitable for detecting the first active reporting system during install so brand-new operators can receive the first success handoff without typing a hostname or agent ID. 23. Keep the shared first-run install-token transport explicit on `/api/security/tokens` as used by `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`: once quick setup has produced the setup handoff credentials, the canonical token-creation contract must remain usable immediately from the install workspace so the first-host flow can auto-create the scoped install token without forcing the operator through a second manual token-generation step. Any downloaded first-run handoff instructions emitted by that same shared install-state surface must describe that prepared token path consistently with the live runtime behavior rather than directing the operator to create another install token manually. Preparing a different command-access scope through `/api/agent-install-command` must not delete the previous install token through `/api/security/tokens/{id}`. A returned or revealed credential may already be reporting from an installed host; absence of local usage evidence is not evidence it is unused. Minting a replacement preserves the old credential and its scopes. Command flags and the replacement credential become available atomically, or the complete previous command state is restored on failure. Host install mints opt out of the shared API client's automatic retry, including its generic 403/CSRF replay: a failure returns to the operator without resubmitting credential creation. Authentication and CSRF checks remain enabled. The installer explains that preparation does not reconfigure an installed agent and that deliberate revocation belongs in Tokens only after checking no agent still uses it. `InfrastructureOperationsModel.test.tsx`, `useInfrastructureOperationsState.branchcov0722pm.test.tsx` and `InfrastructureInstallerSection.test.tsx` cover this consuming boundary; `nodes.test.ts` pins the non-retrying host mint and browser HTTP fixtures verify a single refused submission. Native service recovery remains separate. 24. Keep connected-infrastructure surface vocabulary canonical across the shared `/api/state` and reporting/install consumers: `frontend-modern/src/types/api.ts` must treat `truenas` as a first-class connected-infrastructure surface kind, and connected-infrastructure consumers such as `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` together with `frontend-modern/src/components/Settings/useConnectionsLedger.ts` and `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx` must preserve the transport distinction between machine-managed surfaces (`agent`, `docker`, `kubernetes`) and platform-connections-managed surfaces (`proxmox`, `pbs`, `pmg`, `truenas`) instead of collapsing them into one uninstall/stop-monitoring model. That same shared payload contract must also preserve guest-linked host identity on connected infrastructure and removed-host records through `linkedVmId` and `linkedContainerId`, so settings consumers can keep the top connections ledger scoped to top-level infrastructure without re-deriving guest status from names or local heuristics. 25. Keep AI settings payload continuity explicit on the shared `/api/settings/ai` surface: `internal/api/ai_handlers.go` and `internal/api/contract_test.go` must expose masked provider-auth state such as `ollama_username` and `ollama_password_set` without echoing raw stored secrets, and the same backend contract must keep provider test routes bound to the selected provider's configured model instead of whichever other provider currently owns the default `model` field. Anthropic provider readiness on this shared settings payload is API-key backed only: legacy OAuth fields may be echoed as cleanup state, but they must not count toward `configured`, `anthropic_configured`, `configured_providers`, model listing, provider tests, or runtime provider construction. `/api/ai/oauth/start` and `/api/ai/oauth/exchange` fail closed with `unsupported_anthropic_oauth`, `/api/ai/oauth/callback` must not save tokens, and `/api/ai/oauth/disconnect` may clear stored legacy tokens. The Ollama provider payload also owns `ollama_keep_alive` as the canonical request keep-alive field: GET and update responses must expose the normalized configured value, update requests must reject malformed values, an empty string is the install default and means omit Ollama `keep_alive` so the server policy is inherited, and stored provider secrets remain masked independently of that runtime option. The shared provider registry marks OpenAI as key-optional only when `openai_base_url` selects a custom compatible endpoint; the official OpenAI route and other hosted providers remain key-required. `configured_providers`, provider tests, and model listing must accept that keyless custom route without emitting an empty Authorization header. Custom model-list results retain every non-empty opaque ID and carry server-authored `provider: "openai"` identity. Local subscription test and Patrol failures must distinguish missing CLI installation or login for the Pulse service identity from network reachability: the response keeps the existing bounded diagnostic envelope, classifies the route as not configured, and returns service-account setup remediation without raw CLI output (#1742). `remove_providers` is the complete provider lifecycle mutation: it removes provider-owned secrets, endpoints and runtime options, clears selected models for that provider, invalidates model inventory, and disables Pulse Intelligence if the final provider is removed. Legacy `clear_*` fields remain single-credential mutations. The AI settings payload no longer carries AI Discovery scheduling (`discovery_enabled`, `discovery_interval_hours`, `discovery_model`); those fields were removed with AI Discovery on 2026-10-11 and must not return without a new evidence-backed `FEATURE_REQUESTS.md` entry. 26. Keep shared AI runtime reads centralized on that same governed contract: `frontend-modern/src/stores/aiRuntimeState.ts` is the canonical frontend read owner for `/api/settings/ai` and `/api/ai/models`. AI-owned consumers such as `frontend-modern/src/features/patrol/usePatrolIntelligenceState.ts` and `frontend-modern/src/components/AI/AICostDashboard.tsx` must reuse that shared store for read-side runtime truth, while `frontend-modern/src/components/Settings/useAISettingsState.ts` remains the write-side settings owner. Non-AI settings surfaces such as `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts` must not probe `/api/settings/ai` just to gate assistant affordances. AI-owned refresh actions may still force a shared reload or sync that store after an owned settings mutation, but they must not reintroduce page-local mount loops that fetch `/api/settings/ai` or `/api/ai/models` separately for chat, Patrol, and cost/budget views. The `/api/ai/models` catalog must also include backend-owned direct-provider fallback entries for configured DeepSeek V4 paths when live provider catalog reads fail, so Patrol and Assistant model selectors keep saved `deepseek:` selections visible without inventing page-local catalog entries or falling back to another provider's model. 27. Keep API-backed first-target onboarding canonical on that same shared infrastructure-settings boundary: `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, and `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx` must present TrueNAS and other API-backed platforms as Platform connections-first onboarding rather than as dedicated unified-agent install profiles. The shared host-install contract may guide operators through the first agent-managed host, but alternate CTAs and setup-completion guidance must route API-backed first systems through the canonical infrastructure onboarding contract at `/settings/infrastructure?add=pick`, while agent-managed first hosts use `/settings/infrastructure?add=agent`. The infrastructure workspace may consume those onboarding query params and normalize the browser back to `/settings/infrastructure`, but first-run callers must not fall back to the retired `/settings/infrastructure/install` or `/settings/infrastructure/platforms` deep links. 28. Keep the shared agent-download fallback transport pinned to published release lineage. The served install-script endpoints (/install.sh, /install.ps1) have no GitHub fallback at all (see item 8); they serve the locally bundled agent installer or fail closed. The remaining GitHub fallback is the agent-BINARY download proxy: `internal/api/unified_agent.go` and `internal/api/contract_test.go` must only map stable tags or explicit RC prerelease tags without build metadata to GitHub release assets; dev prereleases such as `v6.0.0-dev`, git-described `+git...` builds, and other unpublished prerelease identifiers must fail closed on that API boundary instead of generating fake release URLs from a local runtime version string. 29. Keep local trial-start transport retired from self-hosted v6 GA runtime paths. `POST /api/license/trial/start` must not be registered as an ordinary in-app acquisition endpoint; browser API clients, route inventory, demo mode, and feature gates must all treat it as absent. The retired `/auth/trial-activate` self-hosted return path must also stay absent from the ordinary router and settings UI; signed hosted entitlement leases may refresh cached hosted/cloud entitlement state, but they must not create a local Pro trial acquisition callback. Entitlement payloads may retain `trial_eligible` and `trial_eligibility_reason` as compatibility fields, but ordinary self-hosted responses leave eligibility false and the reason empty; active trial state is represented by `subscription_state`, `trial_expires_at`, and `trial_days_remaining` only. 30. Keep `/api/security/dev/reset-first-run` transport-backed and genuinely unauthenticated: when the dev reset route clears first-run auth it must also clear any env-backed auth state that feeds `/api/security/status`, so the public status payload flips `hasAuthentication` to `false` without disclosing the bootstrap token path or deployment fingerprint, and allows browser-owned first-session proof to re-enter the real setup wizard instead of silently falling back to an already-authenticated app state. The explicitly dev-gated reset response may expose the newly created bootstrap token and file path to its authorized caller, but it must not emit the token value into automatic runtime logs. 31. Keep shared SSO test and metadata-preview transport fail-closed: SAML metadata URLs and OIDC issuer URLs must reject non-HTTP or userinfo-bearing inputs before any outbound request is attempted, and OIDC discovery must append `/.well-known/openid-configuration` beneath the configured issuer base path instead of resetting to the origin root. OIDC Test must reject a missing discovery issuer or any byte-for-byte mismatch with the configured issuer, including trailing slashes and case, just as normal sign-in discovery does. Use bounded `missing_discovery_issuer` / `issuer_mismatch` failures without reflecting untrusted discovery values. Successful Test only establishes discovery and issuer equality, not client credentials or sign-in, and must say so. Testing must not change saved provider settings, secrets, admission restrictions or local administrator recovery. A non-200 discovery response exposes only its numeric HTTP status with fixed recovery guidance; never reflect provider/proxy reason phrases, headers or bodies. The failure must state that nothing was saved and sign-in was not tested. 32. Keep SSO provider-detail payloads edit-complete and non-secret: `GET /api/security/sso/providers/{id}` may keep flat list/card fields for summary compatibility, but it must also return the nested OIDC/SAML fields used by settings edit forms, plus restrictions and role mappings, without echoing raw OIDC client secrets or SAML private keys. The same detail payload must round-trip through `PUT /api/security/sso/providers/{id}` without clearing existing OIDC redirect, logout, scopes, restrictions, role mappings, or stored secret markers unless the update explicitly replaces them. Same-type edits also retain omitted advanced nested settings that the detail/editor cannot represent: OIDC claim names/CA bundle and SAML signing material, trust files, custom paths, attribute/policy and logout settings. Explicit nested empty strings, false values and nulls still clear those fields. No settings or secrets are inherited across protocol changes. Visible fields and restriction clears keep their existing replacement semantics, and blank OIDC secrets keep their existing preserve rule. Never expose signing keys or hidden settings just to round-trip the editor. `TestSSOProviderUnrepresentedFields` covers all omitted persisted fields, aliases, clears and restart readback; `TestContractSSOUnrepresentedSettingsSurviveSignedProviderEdit` verifies that an enabled signed SAML provider remains valid and initializes its real runtime after an ordinary non-secret detail/save cycle. 33. Keep config-archive import reloads fail-closed on the shared API/runtime boundary. `internal/api/configapi/config_export_import_handlers.go`, `internal/api/contract_test.go`, and adjacent config/runtime helpers must tolerate absent notification managers and other optional runtime managers after a successful import-triggered reload request, returning a controlled API outcome instead of panicking or leaving browser-visible state half rewired. 34. Keep recovery list pagination meta honest on the shared `/api/recovery/*` surface. `/api/recovery/points` and `/api/recovery/rollups` clamp the requested page size to the canonical shared bounds `recovery.DefaultListPageLimit` (100) and `recovery.MaxListPageLimit` (500), defined once in `internal/recovery/model` and re-exported through `internal/recovery`, before serving, in both the mock paginators and the store paths, so `internal/api/recovery_handlers.go` must normalize `page` and `limit` once at parse time and compute the response `meta` block (`page`, `limit`, `totalPages`) from those normalized values. The meta must echo the effective limit, never the raw query value, so a client iterating `totalPages` is never told fewer pages than the server actually serves. Handler and store clamps must derive from those exported constants rather than re-hardcoding the numbers. `internal/api/recovery_handlers_test.go` pins the above-max and non-positive limit meta normalization in the same slice as any handler change. ### Patrol attention transport `internal/api/attention_handlers.go` and `frontend-modern/src/api/patrolAttention.ts` own the typed read transport for `GET /api/ai/patrol/attention`, `GET /api/ai/patrol/attention/summary`, and `GET /api/ai/patrol/attention/{id}`. The same authenticated transport exposes `GET /api/ai/patrol/attention/receipts` as the bounded verified-work projection. Read routes require `monitoring:read`, and — because the attention workbench supersedes the legacy patrol findings routes that mobile devices already used — they equally accept the backend-owned `relay:mobile:access` capability and the legacy `ai:execute` scope through the governed relay mobile runtime route inventory in `internal/api/relay_mobile_capability.go`. Attention lifecycle mutations (`POST /api/ai/patrol/attention/{id}/{mutation}`) require `monitoring:write` under the same inventory-mapped acceptance. Token scope acceptance must not drift back to a single-scope gate: a registered phone carries only `relay:mobile:access`, so a `monitoring:read`-only gate silently severs mobile alert sync on upgrade (v6.1.0-rc.4 regression). Lists use bounded pagination with a maximum of 200 records and one bounded protection-posture batch. The summary path does not read recovery history. Receipt reads are separate from lifecycle pagination: the unified action store filters the trusted `patrol` and `operational_trust_attention` origins and a canonically confirmed postcondition before applying the requested maximum of 50, orders by verification update newest first, and returns only bounded presentation fields. A client must not scan a generic resolved-attention or settled-action page and filter it after pagination, because unrelated history can otherwise hide genuine verified work. An item's `subjectResourceId` is the unified resource ID the alert's subject reference resolves to in the org's current inventory, the same ID `GET /api/ai/patrol/findings` carries as `resource_id` and that protection postures and resource actions use, so clients scope findings and open resources with it directly. The detail's `operationalRecord.subjectResourceId` keeps the alert's own reference (`docker:/`, a Proxmox source ID, `agent:/disk: