Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Preserve Patrol evidence and surface action submission failures
rcourtman57ead19484c4
diff --cc docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.mdindex daa6d4acc5,fdcf448c34..a59207d817--- a/docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md+++ b/docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md@@@ -93,12 -93,12 +93,13 @@@ Each removal must run its focused regre### Completion and external dependenciesThe local implementation goal remains open until required qualification is--performed. Ordinary Assistant requests work with the current subscription route,--but autonomous Patrol has an explicit provider-policy refusal and remains--blocked. Do not rephrase the refused probe, bypass the readiness boundary or--count an interactive request as an autonomous Patrol pass. A supported provider--path is required for that qualification. Prepare other work while resolving the--provider dependency through supported configuration.++performed. The maintainer authorized Gemini 3.8 Flash through OpenRouter with a++US$5 key limit and one-day expiry on 2026-09-06. That supported route passes the++streaming readiness and initial live Watch and dependency cases recorded below.++The earlier Claude subscription refusal belongs to the exact synthetic++continuation request. It does not establish a blanket restriction on autonomous++monitoring. The refused request has not been retried or rephrased. Readiness is++not evidence that diagnosis, action execution or independent recovery succeeds.Release publication and wider product readiness are separate. Independentvolunteered Pro environments are still required before claiming repeatable@@@ -1408,642 -1408,3 +1409,753 @@@ correction above is a separate scoped cThe redesign remains open for reliable interpretation, the config-read contract,storage/backup, approved/rejected action outcomes and supported autonomous Patrolqualification. Wider customer readiness still requires independent Pro environments.++### Docker measurement correction plan, 2026-09-06++The next shared-source correction distinguishes absent block-I/O observations+from measured idle zero and removes the Docker layer-size ratio from filesystem+capacity. Counter presence uses the existing rate tracker contract. Missing+reports must not reset the baseline or fabricate samples. Container layer sizes+remain descriptive metadata.++Persisted Docker-family disk series previously mixed invalid capacity ratios and+unobserved I/O zeros with real measurements. New disk observations use separate+physical series keys while public metric names remain unchanged. Retained reads+exclude ambiguous legacy disk series without deleting or relabelling them. The+shared app-container storage family also serves non-Docker providers, so new+valid capacity observations must remain supported. Non-Docker series retain+existing behavior. Explicit zero must survive every retained-read API and rollup.++Browser verification is required after the final backend build. Interaction+matrix: `/docker` at 1440x1000, 900x1000 and 390x1000, container selection,+resource drawer open/close, current metrics, history expansion, measured idle,+unavailable readings, and reload. Inspect actual pixels, scrolling, focus and+Escape dismissal. `/patrol` evidence rendering must preserve absent versus zero+in current-resource and retained-history tool results. Controlled responses may+qualify rendering but cannot qualify diagnosis. Live read-only API observations+must bind to the rebuilt backend. No autonomous subscription retry or paid-model+request is authorized by this correction.++Collection also carries optional presence for each I/O direction. Explicit zero+entries survive the report JSON. For older reports without presence, only+positive counters establish an observation, so ambiguous zeros remain unavailable+until the agent is updated or a positive baseline exists. This does not require+re-enrollment. Docker-host first-disk history and network-counter presence are+adjacent limits outside this container block-I/O correction.++The final browser matrix also covers the shared host I/O table, Docker host+Overview and Machines table/tooltip at the same three widths. Partial read/write+observations must show a missing marker for the absent direction, retain measured+zero, and remain excluded from sums used for sorting and comparison. Exercise+column selection, hover/focus, tooltip dismissal and scrolling where present.++### Docker correction qualification and scope++The implementation carries per-direction presence from collection and report+JSON into the existing rate tracker, canonical resource metrics, persisted+history and resource-to-browser conversion. REST resource adaptation also+preserves optional rates. Shared rate formatting keeps missing values distinct+from zero in Machines and Docker host details. Incomplete rates do not become+complete throughput totals for sorting or comparison. A browser-discovered+first-user column migration bug is corrected in the shared preference hook, so+showing Disk I/O survives the first reload.++Legacy workload conversion in `frontend-modern/src/hooks/useWorkloads.ts` still+uses numeric direction fields with grouped availability. Its direction-level+modernization remains a separate consumer follow-up. Docker-host first-disk+history and network presence are also outside this container measurement slice.+The correction must not be represented as complete coverage of all metrics or+all monitoring surfaces. No new model competence or autonomous action result is+claimed.++Affected Go package checks and targeted race checks ran on pulse-dev with+Go1.26.8. The changed websocket assertion now expects observed read zero with+absent write omitted. Targeted frontend suites and type checking cover optional+rates, REST conversion, sorting, formatting and column persistence. Ten paired+read-benchmark rounds used the unchanged parent store via Go overlay. The+canonical >10%, p<0.05 regression gate passed, with +0.82% timing geomean in this+scoped comparison. This is not a fleet-load or full-product performance claim.++The Pro backend was cross-built on pulse-dev from the changed source and+installed into the existing local dev runtime. Binary SHA256:+`59f05f954ff8080bd3e8f3054b2b059281c49172ee771b2e454c255241158a4a`.+No production agent was replaced. Older agents remain compatible and treat+ambiguous zero counters conservatively.++Private receipts: `/Volumes/Development/pulse/tmp/patrol-docker-observed-metrics/`.+Worker logs: `/opt/pulse-release-worker/patrol-docker-observed-proof/`.+PR1934's preceding identity correction merged at+`6b0abc3bee9ffa81f6ab298b5b67ee11369688a0` with all checks passing. The current+measurement slice passed final-source Playwright inspection on `/docker`,+`/standalone/machines` and `/patrol` at 1440x1000, 900x1000 and 390x1000.+Live history, controlled absence/idle/loading/error, partial host rates, column+persistence, nested picker dismissal, tooltip focus, and expanded Assistant+evidence were exercised. The source-bound receipt is+`frontend-modern/browser-verification.json`. The unused shared host table card+has type and selector coverage, not an active-route browser claim. Controlled+responses qualify rendering only. Landing checks remain separate from the+unperformed diagnosis, approved/rejected action and recovery qualifications.++### Configuration-read correction plan++A successful canonical container get followed by a false config `not found`+result is a source contract defect. Native configuration reads must use current+canonical inventory for identity and provider capability. Optional session+resolution preserves continuity for later actions, not proof of existence.+Explicit query restrictions must be checked before registering or refreshing a+resource. Unsupported adapters, missing configuration providers, unavailable+placement and empty provider responses remain distinct from missing inventory.+No action validation or native log-read authority changes in this slice.++Regression matrix: TrueNAS config with absent, empty and existing session+context, canonical identity across aliases, explicit query denial without a+provider call, Docker unsupported capability, genuinely missing inventory,+unavailable placement, provider failure and nil provider response. Reproduce+the failing cases before changing runtime code. Run affected Go tools checks+and focused race coverage on pulse-dev.++Browser matrix after the final build: `/patrol` Assistant tool result details+at 1440x1000, 900x1000 and 390x1000, available configuration, unsupported+capability, true missing resource and denied/provider-failed results. Exercise+open/closed details, hover and keyboard focus, Enter/Space, deepest output+scrolling, Escape, and persisted/reloaded evidence. Use captured actual tool+results to qualify rendering without claiming model diagnosis or native+provider integration. No autonomous subscription retry or separately billed+provider request is part of this correction.++### Configuration-read correction qualification++The baseline reproduced absent/empty session failures, stale session placement+and false not-found results after successful canonical gets. The corrected+read path uses canonical resource identity and current provider placement. It+checks explicit query restrictions before registration and preserves an existing+query-only session's action limits. Unsupported configuration, unavailable+provider/placement and nil provider responses carry explicit reasons and the+tool error bit. Unavailable inventory and missing read state also remain failures+rather than evidence of resource absence. Actual inventory absence remains the+existing not-found lookup result.++Fourteen focused contract cases pass with strict resolution enabled. The+existing native-config regression, full tools package and focused race proof+passed on pulse-dev with Go1.26.8. The final-source Pro binary SHA256 is+`552699cdf2e61a4ca1cea2ac5ef4e065735cbd1dbca01665456e184bd4fc3533`.+It is installed only in the existing local dev stack. No production agent or+provider configuration was changed.++Playwright passed on `/patrol` at 1440x1000, 900x1000 and 390x1000. Eight actual+tool results were replayed and inspected, including successful, unavailable,+missing, denied and failed reads. Expanded inputs/outputs, keyboard toggles,+scrolling, Escape, reload and controlled session restoration preserve exact+evidence and error state. Controlled session responses prove rendering and+reload behavior, not server persistence or a new model/native-provider result.+The source-bound browser receipt records those limits. Private artifacts are+under `/Volumes/Development/pulse/tmp/patrol-config-read-contract/` and worker+logs under `/opt/pulse-release-worker/patrol-config-read-proof/`.++PR1935's Docker correction required two legacy partial-total test expectations+to be updated in `0fcb2ee147354de770dfc4b0b9672d8c2c9dceb2`. The focused 55-test+file and scoped hook passed. Its latest CI has no failures and remains pending+completion. The configuration correction still requires its own landing checks.+Real-model retest, temporal/storage interpretation, approved and rejected+action outcomes and independent recovery proof remain open. Autonomous+subscription refusal and separately billed provider approval boundaries remain+unchanged.+++### Corrected storage evidence, ordinary Assistant retest++The Docker observation and canonical configuration corrections are pushed to+PR #1935 at `355ac1f0a481d6dbc9a7ff3977bced0956711979`. Their exact staged+worker pre-commit checks passed without source changes. Remote checks remain+pending. The current configuration runtime also passed all fourteen contract+cases, the complete tools package and focused race checks.++One ordinary read-only storage assessment ran on 2026-09-06 from+12:27:05.857Z to 12:30:03.726Z, an HTTP window of 177.869s. It used the existing+`claude-subscription:claude-opus-5` route, explicit `autonomous_mode=false`,+read-only control and thirteen successful tool reads. No infrastructure change,+paid-model request or autonomous readiness retry occurred. This is a single+assessment, not a success-rate or latency estimate.++The answer identified the backup datastore at 90.6% utilisation and its active+capacity warning affecting seven workloads. It used the corrected container I/O+history, separated cumulative device counters from rates, acknowledged missing+container filesystem usage, and retained the reason for missing older history+as unknown. It did not attribute older host I/O peaks to the container whose+returned I/O window starts later. These are useful observations.++The complete diagnosis still does not qualify. Its opening assurance that the+container is not short of space contradicts the later acknowledgement that+container filesystem usage is unavailable. It treats high retained host rates+as bucket/counter artifacts without establishing that mechanism. It includes a+host CPU maximum timestamped 21:00 the previous evening in a 03:00-04:00 window.+The suggested retention explanation is not established by capacity alone, and+available PBS job reads were not performed. Its rough growth extrapolation uses+retained extrema, not a measured first-to-last slope, and must retain that limit.+Corrected observations have not established reliable interpretation.++The run also highlights a tool-context distinction to review: Docker-host+`agent_connected` describes the command connection, while telemetry may still+arrive through other collection paths. The model treated current telemetry and+that false connection flag as an unresolved inconsistency. Its storage-pools+request supplied `host`, although the tool schema only advertises that filter+for RAID and Ceph detail. That call returned all pools. Neither observation+justifies fabricating resource absence or collection downtime.++Playwright exercised `/patrol` at 1440x1000 and 390x1000, the actual answer,+all thirteen expanded tool records, keyboard activation, deepest output+scrolling, Escape, reload and the persisted session. Every displayed input and+output matches the persisted tool records. Pixel review includes the answer,+evidence and the mobile table scrolled to its rightmost state. The table's+400-pixel content is reachable inside its 309-pixel horizontal viewport.+The artificial selected-route warning comes from blocked non-GET route checks,+so this does not qualify the unmodified provider-readiness UI.++The runtime binary SHA256 stayed+`552699cdf2e61a4ca1cea2ac5ef4e065735cbd1dbca01665456e184bd4fc3533`+through the request and browser pass. Private request, source, binary, tool,+persistence, evaluation and pixel receipts are under workspace-relative+`tmp/patrol-storage-assistant-check/`. No native config action was requested,+so this assessment does not qualify model use of that corrected action.+Storage-fault ground truth, reliable diagnosis, approved/rejected actions and+independent recovery remain open. The supported autonomous provider dependency+and wider independent-Pro-environment gate remain unchanged.+++### Command connection evidence correction plan++Live command connectivity and retained monitoring observations are independent+facts. The shared tool contract will name command-agent connections explicitly,+including parent-node connections, without changing routing or execution policy.+Topology built without a command-connection snapshot must omit connection flags,+execution hints and connected counts rather than manufacture false/zero values.+An observed empty snapshot still reports disconnected/zero. Assistant inventory+context must preserve the same observation boundary. Existing permission,+approval and invocation checks remain authoritative.++Regression matrix: current Docker inventory and metrics with disconnected and+connected command transport, read-only control with a connected agent, parent+node versus guest connection, topology without a connection observation versus+an observed empty set, and Assistant's seeded inventory. Run affected tools/chat+packages and focused race proof on pulse-dev.++Browser matrix after rebuilding the local Pro backend: `/patrol` at 1440x1000,+900x1000 and 390x1000, actual captured query results showing disconnected and+connected command transport beside unchanged monitored workload evidence.+Exercise tool details open/closed, keyboard focus/activation, deepest output+scrolling, Escape, reload and persisted result presentation. Inspect pixels and+bind receipts to the final source and binary. Controlled rendering proof does+not qualify model interpretation, autonomous Patrol or infrastructure actions.+++### Command connection evidence qualification++The original projection failed the new regression because it labelled command+transport as generic agent connectivity and emitted connected-agent counts from+an inventory-only seed. Canonical guest search also promoted a parent-node+connection into a direct guest connection. The shared projection now retains+those distinctions. Existing host aliases remain available for non-guest+resources. No routing, approval, execution or provider policy boundary changes.++Four canonical query cases pass: no command connection, connected read-only+transport, a direct guest connection without a parent connection, and connected+transport with control enabled. Current workload state and CPU remain available+in every case and no command is executed. Separate checks prove that topology+without a command snapshot omits connection and execution hints and connected+counts, while an observed empty snapshot retains false/zero. Assistant inventory+context inherits that same unobserved state.++Final source proof on pulse-dev used Go1.26.8 and GOMAXPROCS4. The full tools+package passed in 59.456s and chat in 6.402s. Focused race checks passed in 1.048s+and 1.030s. The Pro runtime cross-build passed and the installed local binary+SHA256 is `bcaf748107211ee733a6dc0f4d17220d9b4d1ce1918c25bde27cf3d10c0d6379`.+The managed development process restarted onto that artifact and `/api/health`+reported healthy. No production agent was replaced.++Playwright exercised nine captured results at `/patrol`, 1440x1000, 900x1000+and 390x1000. Inputs, outputs and completed states match exactly before and after+controlled session reload. Hover, keyboard focus/activation, expansion/collapse,+deepest output scrolling, Escape and session selection passed. Pixel inspection+covered each distinct connection state, unchanged workload metrics and restored+mobile results. Backend and renderer hashes remained unchanged. The artificial+route-check warning and controlled persistence fixtures retain their earlier+qualification limits. No model request was part of this proof.+A read-only settings check confirms the cached `provider_refusal` still carries+its original `2026-09-05T19:46:39Z` timestamp and `patrol_capable=false`.++Private source bindings, logs, captured outputs, runtime process/health receipts+and browser proof are at workspace-relative `tmp/patrol-command-context/`.+The change still requires its scoped pre-commit and landing checks. The preceding+PR #1935 head `4d302109cee0758a132ff150935630b50114cc05` has no reported failures+but its Build and Test and Core E2E runs are pending behind live earlier runs+on the same branch. Those workflows are not restarted or cancelled.++This correction establishes the connection evidence contract, not reliable+interpretation. Native configuration-read model use, storage-fault diagnosis,+approved/rejected action outcomes and independent recovery remain open, as do+the supported autonomous provider dependency and independent-environment gate.+++### Ordinary Assistant storage fault and recovery, 2026-09-06++The command-connection correction passed the exact nine-file worker pre-commit+and was pushed as `f5f440dbad18d83557104d2cf6197d8319949e44` in PR #1935.+Required CI remains in progress. This is not a release or a completed goal.++An owned DockerLab run used the checked-in storage-pressure manifest on Tower.+Independent observations established a healthy worker with 8,347,648 free bytes,+then a real ENOSPC fault with zero free bytes, a running/unhealthy worker and a+healthy control. Pulse collection converged to both states before the request.+The ordinary read-only Assistant used the configured subscription Opus 5 route.+It was not an autonomous Patrol request and did not retry the cached refusal.++The diagnosis took 114.847 seconds and ten tool calls. It identified the worker's+unhealthy state, the control's current healthy state and a failed command-route+log read. It did not retry that unavailable capability. However, it falsely+ruled out resource pressure using low CPU, memory, network and disk-read values.+Filesystem capacity was absent from its evidence and was independently full.+This is a failed diagnosis, despite its otherwise useful uncertainty statement+and suggested diagnostic read. No model-directed mutation occurred.++After the answer, the independent oracle still found zero available bytes and+an unhealthy worker. Removing only the owned fill file restored 8,220,672 bytes+and healthy status. Pulse collected recovery and resolved the health alert.+A follow-up in the same Assistant session took 91.358 seconds and five new reads.+It correctly identified current recovery and the resolved alert, distinguished+symptom recovery from an unknown cause and did not invent an intervention.+It overstated continuous control health and non-impact from sparse observations.+The recovery assessment is partial, not a complete incident explanation.+An independent post-answer check confirmed healthy worker/control, no container restart+and 7,639,040 free bytes. Both cleanup passes passed, with no second-pass work+and unchanged unrelated inventory. The disposable resources are removed.++Playwright exercised `/patrol` and Assistant at 1440x1000 and 390x1000, all fifteen+retained tool input/output pairs, keyboard expansion/collapse, deepest output+scrolling, complete answers, Escape, reload and the same retained conversation.+Rendered inputs/outputs match persisted records. Pixel inspection covered both+answers and the failed-access result on desktop and mobile. Runtime and source+hashes remained unchanged across both requests, with binary+`bcaf748107211ee733a6dc0f4d17220d9b4d1ce1918c25bde27cf3d10c0d6379`.+The route warning was an artifact of blocking non-chat POSTs in the proof browser.+The original autonomous refusal timestamp remained `2026-09-05T19:46:39Z`.+Private fixtures, source bindings, observations, screenshots and assessments+are at workspace-relative `tmp/patrol-storage-fault-case/`.++### Next canonical correction: tmpfs inventory++Before implementation, source and native inspection establish a collection gap:+Docker reports the owned scratch mount in `HostConfig.Tmpfs`, while `Mounts` is+empty. `internal/dockeragent/collect.go` copies only `Mounts`, so shared resource+queries falsely present an empty mount inventory. Preserve these native tmpfs+entries through the existing report mount type. Keep destination, type and+reported options, derive read/write from those options, preserve authoritative+existing mount records and deterministic ordering. Do not infer used/free space+from a configured size. No enrollment, permission or production agent change is+part of this collection correction.++Proof plan: reproduce the captured tmpfs-only inspect shape through the actual+collector, then cover existing mounts, overlapping representations, read-only+options and absent host configuration. Run targeted/full collector checks on+pulse-dev and verify the report through the existing shared projection. Browser+proof after the final change must exercise mount evidence in resource details+and Assistant tool results, desktop and mobile, including deepest expansion and+reload. A captured-result rendering check is not installed-agent or model+qualification. Leave those limits explicit until the new collector is exercised+through a supported installed path.++The incident lookup also needs an identity audit: the canonical container ID+returned no incident recording while the observed health alert used its legacy+Docker resource ID. This is a concrete lookup discrepancy to investigate, not+yet proof that a recording exists. Model inference from unmeasured capacity and+sparse health history remains an open quality failure. Supported autonomous+provider, approved/rejected actions and independent environments remain open.++Further shared-projection inspection before editing found that `MountInfo` drops+native mount type/options and that canonical app-container queries derive write+access from equality with the single string `ro`, misreporting compound read-only+options. The same slice must preserve type/options and the canonical `RW` boolean+through both canonical-provider and typed read-state query paths. Add a query+regression and capture its actual output for final Assistant browser proof.+This remains mount configuration evidence, not measured filesystem capacity.+++### Tmpfs collection and query contract proof++The captured tmpfs-only and mixed-mount regressions failed against the previous+collector, then passed after the collection correction. The full dockeragent+package passed in 18.883s and focused race proof in 1.030s. Existing monitor report+mount propagation and discovery mount regressions passed. Both query paths+failed because type/options were lost, then passed after projection correction.+The full tools package passed in 59.473s and focused race proof in 1.030s.+A final output-only capture rerun passed in 0.013s. All proof used Go1.26.8 and+GOMAXPROCS4 on pulse-dev. The final Pro cross-build passed and the installed+local binary SHA256 is+`0a21dca4106c2ddc6873a3aca3b23378dccef35383ca00d7e9292b966de7c200`.+The managed local backend restarted and `/api/health` reported healthy.+No production collector was replaced.++Final Playwright proof used captured canonical resources at `/docker`, widths+1920, 1440, 900 and 390 with height 1080. It exercised mount summary/title,+keyboard row expansion/collapse, mobile row tapping, adjacent detail state,+mount-destination search, Escape and reloaded search state. The existing wide+mount column is truncated with a full title. Responsive details have no dedicated+mount section. This is an existing presentation limitation, not full mobile+mount inspection qualification. Assistant's complete mount evidence is readable+at `/patrol`, 1440x1000, 900x1000 and 390x1000. Both actual query projections+passed exact input/output comparison, hover/focus, keyboard expansion/collapse,+deepest scrolling, controlled session reload and reopening retained records.+Pixels were inspected on desktop and mobile. Source/binary hashes stayed fixed.+The original autonomous refusal timestamp is unchanged.++These browser fixtures qualify rendering of the corrected shared fields. They+do not qualify an installed collector, actual model interpretation of tmpfs+configuration, or durable backend persistence of those fixture sessions. The+ordinary live diagnosis/recovery records above have real server persistence+and retain their failed/partial judgments. Exact scoped hook and landing remain+required. Required model/action qualification and independent environments are+still open. The typed compatibility get path also does not accept the canonical+ID returned by its list path, so its mount regression uses an existing accepted+name. That identity residual is recorded for modernization, not silently fixed+through this mount projection.++## Canonical incident history, 2026-09-06++The tmpfs correction passed the exact worker hook and was pushed as+`6e18777d30f30b498def39d30016a697cabc4ea7` in PR #1935. That scoped+delivery does not change the failed storage diagnosis or partial recovery verdict.++The incident audit found a source-of-truth mismatch, not evidence that an existing+recording merely needed an ID alias. The legacy five-second recorder has no+production alert callback connected to its coordinator. It samples cached values+using recorder time without preserving their source measurement time. Connecting+that recorder would not supply trustworthy higher-frequency history.++The canonical resource timeline already stores observed changes, alert lifecycle+events and executed actions. Assistant handoffs use a bounded excerpt of this+same store. The shared `pulse_knowledge` incidents action now reads that+organization-pinned timeline directly, using the supplied canonical resource ID.+It does not require the resource still to exist in current inventory, infer+identity from names, include related resources implicitly, or reconstruct events+from current metrics. The response preserves canonical source, observation and+optional occurrence timestamps, state transitions and metadata. `since` filters+on observation time, and bounded results report `has_more`. Empty retained history+does not establish health. Missing or failed storage is a failed read.++Explicit legacy `window_id` lookups remain isolated archive reads, must match the+requested resource, and explain that sample timestamps do not establish source+freshness. The primary incidents action no longer uses those recordings. The+legacy recorder/coordinator startup and API active-count plumbing still exist.+Their retirement is a separate cleanup in this redesign and must preserve any+saved archives. Do not connect them as a replacement incident truth source.++Qualification uses the real SQLite resource store with a fired/resolved lifecycle,+an older excluded record, a related-resource negative control, absent occurrence+time, truncation and empty history. Unavailable/failed storage, invalid input and+archive resource isolation are separate negative controls. Captured actual tool+responses must pass the Assistant expansion, scrolling and reload matrix at+`/patrol`, 1440x1000, 900x1000 and 390x1000. This is contract and rendering proof,+not a new real-model or continuous-coverage claim.++Read-only API inspection of the actual removed storage fixture confirmed a+remaining canonical write-boundary defect. The canonical app-container timeline+returns its creation and removal, while the fired event at 13:14:28.59485Z and+resolved event at 13:17:58.634095Z remain under its legacy Docker resource ID.+The resource API includes related network changes by design. The new tool uses+direct resource history only. `recordAlertTimelineChange` passes the alert's+source ID directly to `BuildAlertTimelineChange`, and `MonitorAdapter.RecordChange`+forwards it without canonical resolution. Consequently this read-path change is+only partial incident-history remediation. The next required owning fix must+resolve event identity before persistence and preserve access to retained prior+identity records, including removed resources, through the shared identity/history+contract. It must not add a Docker string rewrite inside the Assistant tool.+The shared writer and retained-identity correction remain required in this goal.+Private raw API receipts are in `tmp/patrol-canonical-history/live-timeline.json`+and `live-legacy-alert-timeline.json`. No model call or infrastructure mutation+was made during these reads.++The history regression passes through the registered tool dispatcher. The full+tools package passed in 59.856s, the final focused capture passed in 0.036s, and the+focused race check passed in 1.189s on pulse-dev with Go1.26.8 and GOMAXPROCS4.+The final Pro build passed and was installed into the local development stack.+Its SHA256 is `4929aeb869db54122bc5525352d3126c0e9fa7c4847e3fdfa741500600b5e00d`.+The managed backend restarted healthy. Final Playwright proof passed all five+registered-tool cases at `/patrol`, 1440x1000, 900x1000 and 390x1000, including+hover/focus, Enter/Space, deepest output scrolling, Escape and controlled session+reload with exact input/output and success/failure comparison. Root inspected+actual pixels at all three widths. Source and binary hashes remained fixed.+The provider warning stayed visible and no retry, route switch or provider+request was made. This is captured-response rendering, not real-model diagnosis+or server persistence qualification. The exact scoped worker hook gates delivery+through PR #1935.+++## Shared Docker history identity, 2026-09-06++The preceding incident-read correction was pushed as+`580a246981c76b401e9007f5ac65c89355b64c6d` in PR #1935. Its live retained+records established the identity split addressed here.++The canonical fix belongs to the shared monitor/store boundary. Exact full+Docker container references resolve through current registry identity. Retained+bindings survive inventory removal, and deterministic source-specific identities+allow legacy records to be found after restart. Names and abbreviated IDs are+not sufficient evidence. A small organization-scoped history alias index joins+readable records without rewriting event IDs, timestamps or metadata. Existing+canonical succession machinery was deliberately not used for these aliases+because it also moves operator state and action indexes. History matching must+not transfer authority. The alias index follows journal retention and separate+store connections read fresh bindings.++Focused regression and race proofs passed on pulse-dev with Go1.26.8 and+GOMAXPROCS4. Full unifiedresources, monitoring and tools packages passed in+37.826s, 79.866s and 59.584s. They cover real alert-manager callbacks, recovery+after inventory removal, restart, replay, same-name controls, tenant isolation,+unchanged operator/approval records and registered Assistant tool reads. Scoped+history lookup measured 0.261–0.275ms with one alias and 0.317–0.336ms with+20,000 unrelated aliases, at 6,280 bytes and 94 allocations per read. These are+worker microbenchmarks, not fleet or frontend performance qualification.++The verified worker Pro binary has SHA256+`bb6d1508a5b4d23943c37dfc42198f132c0139805dcd1891ee18aca0a9f9dd54`.+It was installed into the local development stack and restarted healthy. Both+canonical and legacy timeline API queries now return the same seven retained+records for the removed storage fixture, including the original fired/resolved+records with exact unchanged content. The complete registered-tool rendering+matrix passed at `/patrol`, 1440x1000, 900x1000 and 390x1000. Six captured cases+include migrated history, bounded and empty results, and unavailable/failed+reads. Hover/focus, Enter/Space, deepest scrolling, Escape and controlled-session+reload preserved exact inputs, outputs and completed/failed states. Pixels were+inspected at all three widths. Source and binary hashes remained fixed. Private+receipts are `tmp/patrol-history-identity/browser/receipt.json` and+`live-history-proof.json`. Controlled session responses qualify rendering, not+server persistence or model diagnosis. The cached provider refusal remained+unchanged. No model request or infrastructure fault was made. The exact scoped+worker hook remains the delivery gate for PR #1935.++This history correction does not qualify the failed ordinary storage diagnosis,+partial recovery claim, installed tmpfs collector, autonomous provider, approved+and rejected action outcomes, or independent Pro environments. The unused legacy+recorder/coordinator still needs retirement with its archives preserved.+++The history identity change passed the exact thirteen-file worker hook and was+pushed as `919331d5b3f6076f8616b07eb8e9ca611f26ee52` in PR #1935. Integration+with main `11a8cc2180aae886ec7f92e2333002b57cf1b9a3` preserves both sides of+three additive subsystem-contract conflicts. The host-ingestion auto-merge+retains Docker observation corrections alongside incoming host-link provenance.+Unrelated registry indentation was restored without changing its decoded data.++The combined monitoring, unifiedresources, tools, config and models packages+passed in 85.894s, 41.931s, 59.609s, 18.381s and 0.098s. Focused history,+Assistant, host-link and lifecycle race checks passed. Frontend type checking+and four alert suites passed all 42 tests. The incoming delivery-log component+browser proof passed at 1440x900 and 390x900, including reordered success/failure,+held events, pending state and newest failure. Pixels were inspected. This is+scripted component proof, not installed notification delivery.++The final merged-source Pro binary has SHA256+`234f625cb74be3d300facfed1bb17b17e20c44c06037a1f8f4fffc1c4f49d621`.+Its local restart was healthy. The complete six-case Assistant matrix was+repeated at `/patrol`, 1440x1000, 900x1000 and 390x1000, with exact tool records,+keyboard expansion/collapse, deep scrolling and controlled-session reload.+Pixels and source/binary bindings were checked after this final build. Both+actual removed-container timeline queries still return the same seven retained+records with the original fired/resolved content. No model request, route+switch, infrastructure fault or production collector replacement was made.+The autonomous provider refusal remains enforced. Integration receipts are in+`tmp/patrol-history-integration/`. The full integration hook gates its merge+commit and push. All previously recorded model and wider-readiness gaps remain+open.++## Legacy recorder retirement, 2026-09-06++The disconnected incident coordinator, five-second cached-metrics sampler,+pre-incident buffers, archive writer and unused adapters are removed. They had+no production alert trigger. Canonical resource history remains the primary+incident evidence for Assistant. No replacement diagnosis or scheduling policy+was added.++Explicit archive lookup now requires exact organization, resource and window+binding. The reader is lazy and read-only. Saved file contents, modification+time, mode, old observations, metadata and summary values survive reads. Missing+archives, malformed files and missing windows remain distinct outcomes. Legacy+`recording` status is historical, and the response discloses that the old+`summary.duration_ms` field contains nanoseconds. An old file is never rewritten+to make its evidence appear current.++The incidents API now reports `active_count: null` with+`active_count_status: not_measured`. The retired coordinator's empty map never+established a measured zero. Its legacy incident-memory listing still needs a+canonical query design covering aliases, canonical-only events, honest bounds+and propagated projection-read errors. This is recorded as an open modernization+residual rather than treating that listing as complete.++Final-source registered archive-tool receipts pass Playwright at `/patrol`,+1440x1000, 900x1000 and 390x1000. The five cases cover a saved observation,+unavailable/malformed archives, the wrong resource and a missing window.+Verification includes hover/focus, Enter expansion, exact tool input/output,+deep scrolling, Space collapse, Escape, reload and controlled session reopening.+Actual pixels were inspected. Incoming main alert dispatch wording also passes+its isolated real Overview browser script at all three widths. These controlled+responses prove rendering, not model diagnosis, installed delivery or server+persistence.++The final worker Pro binary is+`bd29e6f27be7b3ad4cfbc37842f4da90f08c6a48c9fc23b12c9c597b67346c9b`.+After the managed local restart, canonical and legacy queries still return the+same seven retained homelab records with the original fired/resolved events+unchanged. The live incidents API reports an unmeasured count. Cached provider+refusal remains enforced. No model request, paid spend, provider retry,+production collector change or fault injection occurred in this slice.++Archive, tools, chat, AI runtime and targeted API/race checks passed on the+worker. One full API run as root invalidated its mode-bit persistence-failure+fixture. That fixture passes unchanged under the normal worker account. The+full API rerun passes under that account (286.960s), as do the incoming+startup-replay and legacy-boundary source checks. Frontend type checks and all+29 incoming alert tests pass. The exact staged hook gates landing.+Private receipts are under `tmp/patrol-archive-retirement/` in the workspace.++### Live collector storage evidence, 2026-09-06++`TestCollectContainerStorageFaultLive` calls the production Docker client and+`collectContainer` implementation against the existing storage-pressure lab.+The opt-in command, run on the worker beside its Docker Unix socket, is:++```sh+PULSE_QUALIFY_ORACLE_DOCKER_CONTEXT=default go test ./internal/dockeragent -run '^TestCollectContainerStorageFaultLive$' -count=1 -timeout=240s -v+```++The final test passed in 8.694s on Docker 29.8.0 against the runtime source tree+of `186ce504c8f0fa6e0174f3b10f3d99f6278f10fc`. Its SHA256 is+`cdf303f4de23c020690c81b0b57190c728319788cb0aaff906b0d4d9d864541e`.+Independent filesystem observations measured 8,380,416 available bytes before+the fault, zero during it and 8,380,416 after recovery. The service stayed+running. Collected and JSON-decoded health followed healthy, unhealthy, healthy,+while the unrelated control remained healthy. Docker returned zero native+`Mounts` throughout. The report retained the single tmpfs destination, type,+8 MiB configuration options and writable setting from `HostConfig.Tmpfs`.+Configured size is not a measured capacity counter in the report.++The test targets exact run-owned container IDs and labels. Existing fixture+cleanup passed, its second cleanup was a no-op and inventory matched the+pre-run snapshot. The test skips without explicit opt-in. All four existing+mount regression cases also pass. Private logs are in+`tmp/patrol-storage-collector-live/` in the workspace.++This proves live collection and report serialization only. It does not send a+report to Pulse, enroll or replace a production agent, call a provider, or+qualify approval, execution, diagnosis or model recovery. No runtime or frontend+source changed in this slice, so no new browser claim is made. Prior storage+diagnosis failures and the cached autonomous-provider refusal remain open.++++++## Funded Gemini qualification, 2026-09-06++++The maintainer authorized `openrouter:google/gemini-3.8-flash` with a provider-side++US$5 key limit expiring on 2026-09-07. The provider key endpoint confirmed both++constraints. Credentials remain in runtime configuration, not these receipts.++Synthetic readiness passed in 9.034 seconds: three streaming tool scenarios,++two context fixtures and multi-turn continuation. This supports the readiness++claims for Watch only and Ask first. It does not qualify autonomous fixes.++++The first unhealthy-container run, `q-20260906-172952-3cccbf34`, detected the++correct fault and left the healthy control alone, but failed overall. The exact++Gemini route had no price entry, and the model attempted unsupported Docker++configuration access. The shared price table now records the reviewed standard++rates of US$0.75 input and US$3.75 output per million tokens for direct Gemini++and OpenRouter. Variant routes remain unknown. These introductory rates must be++reviewed on 2027-01-01. The query capability description now explicitly names++TrueNAS as the supported app-container configuration adapter and directs Docker++collected health/mount/port/network reads to `get`. Runtime permissions and++qualification gates are unchanged.++++The following runs used the worker-built Pro binary++`74464e75977caf55cda092c8cf56c24967616c8c24d770872fbea5d86e31a1dc`,++core base `b0b39f00dc6685ad9ed63e8a6e91b954338073e4` plus the pricing and++capability-description changes, and canonical enterprise base++`3d9f4e3051d38027355a2a1f36b8c7f672a09b65`. The worker archive commit++`d9cb84e15d1acc377341129bdda5c28176e7128c` has identical contents for all++87 tracked enterprise files. The existing runner created disposable++resources on Tower, waited for normal collection, and used independent fault,++recovery and cleanup oracles.++++| Case / run | Result | Evidence |++|---|---|---|++| Unhealthy, `q-20260906-174546-a7a9810b` | Pass | 9.709s detection phase, two tools, no failed/duplicate calls, healthy sibling unflagged. |++| Unhealthy, `q-20260906-174708-81f8d655` | Pass | 10.541s detection phase, exact unhealthy resource found. |++| Unhealthy, `q-20260906-174758-14deaa15` | Pass | 9.395s detection phase, exact unhealthy resource found. |++| Unhealthy, `q-20260906-174853-71cf894f` | Pass | 25.673s detection phase, exact unhealthy resource found. |++| Healthy mixed, `q-20260906-180144-381874a6` | Pass | 5.200s detection phase, no false findings. |++| Dependency, `q-20260906-175058-de5e350d` | Pass | Starting from only the client symptom, identified the stopped dependency and affected client. Investigation completed in 18.970s with three evidence calls and no mutation. |++| Storage, `q-20260906-175232-3ce6fbfa` | Fail before inference | Normal collection never converged to the required resource projection. No model diagnosis was attempted. |++| Approved restart, `q-20260906-175812-0593b9b7` | Fail before approval | Detection and investigation completed, but no exact action reference existed. The broker refused because Tower's Docker command agent was disconnected. Nothing executed. |++| Rejected restart, `q-20260906-175940-bff6992a` | Fail before rejection | No exact action was available to reject. This does not qualify rejected-action handling. |++++Every listed run passed cleanup, including second-cleanup no-op and unchanged++inventory. Individual Watch run estimates were about US$0.007 to US$0.014.++Those scorecard estimates cover the Patrol detection phase, not the separate++investigation calls. Provider-side aggregate spend is the budget authority for++this temporary key. The fixed route price does not turn an estimate into a++reconciled bill or establish a hard Pulse budget for unpriced history.++++Live qualification exposed two additional shared contract defects. The++investigation orchestrator logged action-broker refusal but completed the++record without retaining the error, leaving the model's captured-proposal prose++visible without the later refusal. The current enterprise change retains the++original diagnosis, persists the broker refusal as a failed investigation with++`needs_attention`, and creates no action reference. The product history adapter++also projected result-bearing transcript calls back into provider request calls,++dropping observed output and success/failure. The current core change uses one++shared transcript type for stored chat and product history, preserving the++separate explicit provider projection.++++The live review exposed duplicate detail IDs, duplicate unformatted conclusions,++paused history made unclickable by the scheduling switch, and narrow filter/sort++overlap. The shared finding/investigation surfaces now preserve one detail target,++render sanitized Markdown once for identical summaries, retain distinct summaries,++keep history available while paused, and wrap controls. Result-bearing tool calls++use the same expandable evidence component as Assistant. Historical calls without++a result status retain their evidence without invented success or failure. An++investigation outcome of `cannot_fix` or `needs_attention` does not identify who++resolved the finding, so the shared resolution copy no longer infers manual review.++++Private run receipts and source/binary bindings are under++`tmp/patrol-gemini-38/` in the workspace. The original failed runs remain failed.++Installed storage collection and a temporary command-enabled lab agent remain++prerequisites for real storage and approved/rejected recovery qualification.++No production agent has been replaced. Full action outcomes, remaining backup++coverage and independent volunteered Pro environments remain open.++++++### Final refusal and evidence-retention proof++++Two further approved-remediation attempts remain **failed**:++`q-20260906-181839-6cbdc711` and `q-20260906-182952-6acfb739`. Both retained the++broker error separately from the original model summary, saved `status=failed`++and `outcome=needs_attention`, and created no action reference. Both passed++cleanup. The final run used Pro binary SHA256++`24de8c9ea0020067d298c489f0d99a272b5ec4b00afab7a40dff55aabb244061`,++including the proposal-response clarification, and detected its exact unhealthy++container with no false positives. Its saved investigation is++`48a16b05-50f0-4605-847c-0a71b3435975` for finding `ca3af29ac54d540f`.++The original failed scorecards have not been reclassified as action passes.++++The restored history API retains observed outputs and explicit `success=false`++for historical `pulse_read` failures. Live browser review at `/patrol` exercises++successful query output, both `ACTION_NOT_ALLOWED` and `NO_AGENT` failures,++original diagnosis, one broker error, paused history and review focus return.++The settings proof at `/settings/pulse-intelligence/patrol` checks the exact++model, reviewed rates, synthetic readiness limits and reload. The current++source-bound browser receipt records desktop, intermediate and mobile results.++GET response fixtures cover unknown historical result status only, without++claiming new persisted model evidence or action execution.++++Remaining qualification requires a current installed collector and a temporary++command-enabled lab agent. A Linux amd64 agent has been built on the worker,++SHA256 `ae2ed8b97709ec6e71af979c293ca9d3634662767ec1b59629baf4933c90cf5d`,++without installing it or changing Tower credentials. Tower's separate production++reporting agent is untouched. Any agent enrollment must use the canonical scoped++installation flow, preserve explicit identity and revoke temporary execution++access after qualification. Detection success does not satisfy this prerequisite++or the remaining backup and independent-environment cases.diff --cc docs/release-control/v6/internal/status.jsonindex 3796c35581,bf404a895b..9a6a3ab30a--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@@ -10201,7 -10201,7 +10201,7 @@@},{"id": "patrol-assistant-customer-outcome-qualification",- "summary": "The redesign goal remains open, with its executable plan and detailed receipts in docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md. Patrol owns investigation and Assistant continues the same issue. Observations, hypotheses, accepted proposals, execution and independently verified outcomes remain distinct. The recorded baseline contains 127 paid installations, 71 Patrol-enabled, 23 with Assistant calls and fourteen verified resolutions from one installation. Schema17 outcome/provider/cost fields had no adoption. These do not establish representative success, false-alarm or missed-problem rates. Shared provenance/history/risk fixes and removal of proposal-as-proof and proxy completion policy landed through PR1928/1929. PR1934 merged canonical tool/transcript identity. PR1935 contains measurement-presence, capacity, canonical config-read, command-connectivity and tmpfs collection/query corrections through 6e18777d30f30b498def39d30016a697cabc4ea7. Exact worker hooks and named browser matrices passed, with remote landing pending. Real ordinary storage diagnosis failed by ruling out pressure without filesystem capacity evidence. Same-session recovery correctly identified present health and alert resolution but overstated continuous control health. Independent fault-intact, recovery, two-pass cleanup and persisted transcript checks passed. The current incident history correction replaces the primary legacy recorder read with the existing organization-pinned canonical resource timeline, preserving source/time semantics, bounded history, empty coverage and failed-read distinctions. Explicit legacy archive reads remain resource-bound. Its registered-tool SQLite, full tools package, focused race and final-source browser proofs pass. The primary history read was pushed as 580a246 in PR1935. The shared monitor/store identity correction now joins exact full Docker references with canonical container history through an organization-scoped history-only alias index. Original event content and approval/operator authority remain unchanged. Callback, removal/restart, replay, tenant/control and registered-tool tests, full affected packages, race checks and scoped lookup benchmarks passed. Final worker-build API proof returns the same seven retained homelab records under canonical and legacy queries, preserving the original fired/resolved events exactly. Six-case Playwright proof at desktop/intermediate/mobile widths passed. The exact thirteen-file worker hook passed and 919331d5 was pushed through PR1935. Integration with main 11a8cc2180 preserves both contract changes and passes affected backend, race, frontend and final-build browser/API proofs. The full integration hook gates the merge commit. The disconnected legacy recorder/coordinator and its cached-metrics adapter are retired. Explicit read-only archive lookup preserves recorded values and discloses legacy duration units. The old incidents API live count is explicitly unmeasured. Final archive/history/API and race checks pass, including the full API suite under the normal worker account after identifying a root-only permission-fixture failure. Final worker-build browser proof covers five archive outcomes across desktop/intermediate/mobile widths. Live canonical and legacy queries preserve the same seven original homelab records, and the API count is unmeasured. The exact staged hook gates landing. The legacy incident-memory listing still needs alias-aware canonical queries, canonical-only events, honest bounds and propagated projection-read failures. Installed tmpfs collector and real-model interpretation remain unqualified. Other named residuals include unsupported filters, typed compatibility canonical-ID lookup, legacy direction availability, Docker-host history and responsive mount details. Claude Max explicitly refused autonomous Patrol readiness. Cached refusal and API409 enforcement remain enforced. Separate paid-provider approval is pending, with no paid request or policy bypass. Ordinary Assistant is not autonomous qualification. Required local work still includes reliable interpretation, config-read/model retest, storage/backup and approved/rejected action outcomes. Independent volunteered Pro environments remain a separate wider-readiness gate.",- "summary": "The explicit Patrol/Assistant redesign goal, contract, execution plan and source-bound evidence remain in docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md. Model judgment owns diagnosis. Observations, hypotheses, proposals, executions and independently verified outcomes remain distinct. Assistant continues the same issue and governed action records. The recorded 2026-09-05 baseline has 127 paid installations, 71 with Patrol enabled and 23 with Assistant calls. Fourteen verified resolutions came from one installation. Schema 17 outcome/provider/cost fields had no adoption. Usage does not prove useful linked tasks or representative false-alarm, missed-problem or success rates. Shared risk, provenance, history, missing-access and diagnostic-continuity corrections have regression and named browser proof. Proposal promotion, duplicate causal inference, contextless evaluations and count-based diagnostic completion policy were removed. Independent Docker fault/oracle contracts qualify reproducible injection, negative controls and cleanup, not model competence or governed action outcomes. Integrated CI exposed retained-query performance, disk-probe ordering and route-label timing regressions. Their scoped corrections and qualification records landed through PR1928 and PR1929. PR1929 merged at cf98358c0eb46987a82def5776fa41db5f54210a with backend, frontend, benchmark, governance, CodeQL and all eight Core E2E shards passing. The current ordinary retained-history diagnosis still contradicts explicit temporal semantics and remains unqualified. Two additional read-only Assistant requests used claude-subscription:claude-opus-5 against run-owned containers on the monitored Tower host. The healthy request took 82.835s and seven tools, correctly recommending no action, but overstated absence of storage impact. The dependency request took 204.384s and sixteen tools with three failed reads. It identified the stopped dependency, preserved the missing command access and causal uncertainty, but overstated storage exclusion and recovery implications. Config reads incorrectly reported app-container not found after successful canonical gets. These single cases remain partial diagnosis evidence, not a qualification pass. The fixture deadline performed two-pass cleanup with unchanged original inventory. Post-answer fault readback and explicit recovery were not completed, so no action outcome is claimed. Captured responses exposed concurrent tool-ID merging, sibling approval removal and renderer mutation of shared evidence. The current scoped correction keeps supplied invocation IDs authoritative and stable message rows without deep transcript reconciliation. All 167 affected frontend tests pass. Final-source browser replay at /patrol, 1440/900/390x1000, preserves all seven and sixteen exact tool inputs/outputs. Controlled stream states verify concurrent progress, cancellation, failed completion and sibling approval retention without provider or infrastructure actions. Exact captures, failed reproductions, hashes and remaining limits are in the plan. This correction still requires its own scoped landing checks. Claude Max explicitly refused autonomous Patrol readiness. Cached refusal and API409 enforcement remain intact, with no bypass or repeated retry. Ordinary Assistant is not autonomous qualification. Approval for an alternate separately billed provider remains pending, and no paid request occurred. Reliable interpretation, the config-read contract, broader storage/backup and approved/rejected action outcomes remain required local work. Independent volunteered Pro environments remain a separate wider-readiness gate.",++ "summary": "The redesign goal remains open, with its executable plan and detailed receipts in docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md. Patrol owns investigation and Assistant continues the same issue. Observations, hypotheses, accepted proposals, execution and independently verified outcomes remain distinct. The recorded baseline contains 127 paid installations, 71 Patrol-enabled, 23 with Assistant calls and fourteen verified resolutions from one installation. Schema17 outcome/provider/cost fields had no adoption. These do not establish representative success, false-alarm or missed-problem rates. Shared provenance/history/risk fixes and removal of proposal-as-proof and proxy completion policy landed through PR1928/1929. PR1934 merged canonical tool/transcript identity. PR1935 contains measurement-presence, capacity, canonical config-read, command-connectivity and tmpfs collection/query corrections through 6e18777d30f30b498def39d30016a697cabc4ea7. Exact worker hooks and named browser matrices passed, with remote landing pending. Real ordinary storage diagnosis failed by ruling out pressure without filesystem capacity evidence. Same-session recovery correctly identified present health and alert resolution but overstated continuous control health. Independent fault-intact, recovery, two-pass cleanup and persisted transcript checks passed. The current incident history correction replaces the primary legacy recorder read with the existing organization-pinned canonical resource timeline, preserving source/time semantics, bounded history, empty coverage and failed-read distinctions. Explicit legacy archive reads remain resource-bound. Its registered-tool SQLite, full tools package, focused race and final-source browser proofs pass. The primary history read was pushed as 580a246 in PR1935. The shared monitor/store identity correction now joins exact full Docker references with canonical container history through an organization-scoped history-only alias index. Original event content and approval/operator authority remain unchanged. Callback, removal/restart, replay, tenant/control and registered-tool tests, full affected packages, race checks and scoped lookup benchmarks passed. Final worker-build API proof returns the same seven retained homelab records under canonical and legacy queries, preserving the original fired/resolved events exactly. Six-case Playwright proof at desktop/intermediate/mobile widths passed. The exact thirteen-file worker hook passed and 919331d5 was pushed through PR1935. Integration with main 11a8cc2180 preserves both contract changes and passes affected backend, race, frontend and final-build browser/API proofs. The full integration hook gates the merge commit. The disconnected legacy recorder/coordinator and its cached-metrics adapter are retired. Explicit read-only archive lookup preserves recorded values and discloses legacy duration units. The old incidents API live count is explicitly unmeasured. Final archive/history/API and race checks pass, including the full API suite under the normal worker account after identifying a root-only permission-fixture failure. Final worker-build browser proof covers five archive outcomes across desktop/intermediate/mobile widths. Live canonical and legacy queries preserve the same seven original homelab records, and the API count is unmeasured. The exact staged hook gates landing. The legacy incident-memory listing still needs alias-aware canonical queries, canonical-only events, honest bounds and propagated projection-read failures. Installed tmpfs collector and real-model interpretation remain unqualified. Other named residuals include unsupported filters, typed compatibility canonical-ID lookup, legacy direction availability, Docker-host history and responsive mount details. The earlier Claude subscription refusal is limited to the exact synthetic continuation request and has not been retried. On 2026-09-06 the maintainer authorized Gemini 3.8 Flash through OpenRouter with a US$5 one-day key. Readiness, four unhealthy-container runs, the healthy mixed control and the client-to-stopped-dependency investigation passed on Tower. Storage failed before inference because collection did not converge. Approved and rejected restart cases found the fault but did not reach either decision: the disconnected Docker command agent prevented creation of an exact action. These failures exposed lost broker errors and lost tool-result fields in the product-history adapter. Current changes preserve the failed submission separately from the model diagnosis and retain result-bearing transcript calls, with exact provider projections unchanged. Browser work corrects duplicate review IDs, unformatted duplicate summaries, paused-history access and narrow control overlap. Final rebuilt live/API/browser and worker proof gate landing. Required local work still includes installed storage collection, a command-enabled lab agent, approved/rejected action verification, storage/backup and the remaining named evidence gaps. Independent volunteered Pro environments remain a separate wider-readiness gate. Final broker-refusal repeats retain failed/needs_attention, original diagnosis and no action. Investigation history now preserves and renders result-bearing calls through the shared transcript and Assistant evidence component, including explicit failed reads and unknown historical status. Shared resolution copy no longer infers manual review from an attention/cannot-fix outcome. Desktop/intermediate/mobile browser proof binds final content. Real approved/rejected recovery, installed storage collection, backup coverage and independent environments remain open. A verified Linux agent artifact is prepared but no Tower agent credentials or production agent installation have been changed.","owner": "project-owner","status": "planned","recorded_at": "2026-09-05",diff --cc docs/release-control/v6/internal/subsystems/ai-runtime.mdindex cbddc59567,a8001aa9b4..e6d80a6222--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@@ -25,46 -25,6 +25,86 @@@ that same result. Successful reads reta## Purpose++Stored chat and product history share the result-bearing `TranscriptToolCall`++contract. API adapters preserve observed output and the explicit success/error++bit. Only provider-request projections remove those display fields. A failed++read must not become an invocation with no visible result on the way to Patrol++or Assistant history. The adapter regression includes a `NO_AGENT` result and++`success: false`, and provider serialization retains its existing narrower shape.++++Capturing a typed proposal does not create an action. The proposal response++discloses that broker validation is still pending, without forcing the model to++stop investigating. If the broker later refuses submission, the enterprise++orchestrator retains the model's diagnosis unchanged and records the broker++error as a failed investigation needing attention, with no action reference.++The real disconnected-agent case must remain unsuccessful until its actual++transport prerequisite is satisfied. A successful model turn or recorded++proposal is not approval, execution or recovery.++++The shared investigation review renders sanitized Markdown and does not repeat++an identical persisted/fetched conclusion or error. Distinct evidence remains++visible. Pausing scheduled Patrol does not disable history review. The review++control has one detail target and returns keyboard focus when closed. Merged tool++results use Assistant's shared expandable evidence component. Historical calls++without an explicit result bit do not gain an inferred success/failure state.++Resolution copy cannot infer manual review from `needs_attention` or `cannot_fix`.++++The shared pricing table includes reviewed standard Gemini 3.8 Flash rates for++the exact direct and OpenRouter routes. OpenRouter variants and aliases remain++unpriced until independently reviewed. Rates carry the review date and are++estimates, not reconciled provider charges. The introductory rates require a++new review on 2027-01-01. `TestGemini38FlashReviewedRoutePricing` covers real++qualification token counts and request-route preservation, and++`TestGemini38OpenRouterPricingDoesNotGuessVariantRates` preserves unknown variants.++++The canonical query tool describes the app-container configuration boundary++explicitly: TrueNAS supports `config`, while Docker/Podman expose their collected++health, mounts, ports and networks through `get`. This communicates the existing++adapter contract to the model. It does not add configuration access, suppress++tool errors or weaken qualification gates. The existing++`TestAppContainerConfigObservationContract` retains unsupported-adapter and++provider/identity boundaries.+++Shared app-container query mount evidence preserves native type, source,+destination, options and canonical read/write access. Compound options such as+`ro,noexec` cannot become writable through string equality heuristics. Both the+canonical provider and typed read-state projection preserve the same fields.+Configured size in mount options does not establish filesystem usage or free+space. `TestQueryPreservesMountConfigurationEvidence` covers these contracts.+The ordinary live storage case still failed diagnosis by excluding resource+pressure without capacity evidence. Mount fidelity alone does not qualify model+interpretation. Incident-record lookup across canonical and legacy Docker IDs+and typed compatibility lookup of canonical IDs remain explicit identity gaps.++Shared query projections name command transport explicitly through+`command_agent_connected`, `node_command_agent_connected` and the corresponding+topology counts. These observations do not establish monitoring freshness or+installation state. A topology built without a connection snapshot omits command+flags, execution hints and connected counts. An observed empty snapshot preserves+false/zero. Assistant's inventory seed carries that same absence semantics.+The parent node's connection cannot become a direct guest connection merely+because provider placement names that node. Existing command routing, control,+approval and invocation enforcement remain authoritative. A `can_execute` hint+reflects connected transport with control enabled, not approval for an operation.+`TestCommandConnectivityDoesNotReplaceMonitoringEvidence`,+`TestTopologyOmitsUnobservedCommandConnections` and+`TestAssistantInventoryDoesNotInventCommandConnectionObservations` cover these+projection and continuity boundaries. Existing persisted tool records are not+rewritten, and this contract does not qualify model diagnosis or recovery.++Native app-container configuration reads resolve identity, provider and placement+from current canonical inventory. Optional session discovery cannot fabricate a+not-found result or replace current placement with a stale execution target.+Query restrictions on both the supplied reference and canonical identity are+checked before registration, and an existing session's allowed actions are not+expanded by a read. Unsupported adapters, missing providers, incomplete placement+and nil provider observations retain known resource identity and an explicit+unavailability reason with the shared tool error bit. They cannot count as a+successful configuration read. Actual inventory absence remains distinct.+`TestAppContainerConfigObservationContract` exercises these boundaries with+strict resolution enabled. This read correction does not relax action or native+log validation and does not qualify autonomous diagnosis or recovery.+The published Patrol qualification schema must accept the fault injectors usedby the executable catalogue. `TestCatalogFaultInjectorsMatchPublishedSchema`checks the actual scenario faults against the schema enum, including the@@@ -837,6 -797,6 +877,7 @@@ cheap local detection into model-owned31. `internal/agentcapabilities/tool_names.go` shared with `api-contracts`: 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.32. `internal/agentcapabilities/tool_response.go` shared with `api-contracts`: 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.33. `internal/agentcapabilities/tool_result.go` shared with `api-contracts`: 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.++34. `internal/agentcapabilities/transcript.go` shared with `api-contracts`: 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.34. `internal/agentcapabilities/types.go` shared with `api-contracts`: 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.35. `internal/agentcapabilities/workflow_prompt.go` shared with `api-contracts`: 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.36. `internal/api/ai_handler.go` shared with `api-contracts`: Pulse Assistant handlers are both an AI runtime control surface and a canonical API payload contract boundary.diff --cc docs/release-control/v6/internal/subsystems/api-contracts.mdindex 25cb1e0a17,fcb1d3e1f3..dce8d007d6--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@@ -20,6 -20,6 +20,14 @@@## Purpose++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 toolallowlists and execution identity. The retired unmatched-signal evaluator nolonger contributes a signal-count-derived successful-report budget. Diagnosis@@@ -1683,6 -1683,6 +1691,7 @@@ payload shape change when the portal pr57. `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.diff --cc docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex be689ee943,be689ee943..4fe2cffb5a--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@@ -15,6 -15,6 +15,16 @@@## Purpose++Pausing the Patrol schedule does not disable investigation history review.++The finding review control owns one detail target and regains keyboard focus on++close. Investigation conclusions use sanitized Markdown, deduplicate identical++stored/fetched text, and retain distinct evidence. Merged tool results render++through Assistant's shared expandable evidence component with their explicit++success/failure bit. Unknown historical status stays unknown. A broker refusal++remains visible separately from the original diagnosis and cannot be presented++as an accepted action. An attention/cannot-fix outcome does not establish manual++review or identify who resolved a later finding.++Detection retains one model conversation for evidence gathering and findingdecisions. Recording one finding does not establish diagnostic sufficiency orremove its evidence tools. Missing assessments and provider failures remaindiff --cc docs/release-control/v6/internal/subsystems/registry.jsonindex d510933efd,dd2a7fa00e..b2a859541e--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@@ -779,6 -779,6 +779,14 @@@"api-contracts"]},++ {++ "path": "internal/agentcapabilities/transcript.go",++ "rationale": "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",++ "subsystems": [++ "ai-runtime",++ "api-contracts"++ ]++ },{"path": "internal/agentcapabilities/types.go","rationale": "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",diff --cc frontend-modern/browser-verification.jsonindex 379a1e7177,00f6b678ae..a4f4d323a6--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@@ -1,39 -1,20 +1,49 @@@{"version": 1,- "base_sha": "ab6d21400074393379a78350249ba4f5412941c0",- "verified_at": "2026-09-06T16:30:47.586Z",- "base_sha": "f4dc1e69a0e214dd0085c7696f42444b8fd91fa3",- "verified_at": "2026-09-06T16:58:13Z",++ "base_sha": "b0b39f00dc6685ad9ed63e8a6e91b954338073e4",++ "verified_at": "2026-09-06T18:44:39.842657Z","result": "passed","changed_paths": [- "frontend-modern/src/features/alerts/deliveryDiagnosisPresentation.ts"++ "frontend-modern/src/api/patrol.ts",++ "frontend-modern/src/components/AI/FindingsPanel.tsx",+ "frontend-modern/src/components/Login.tsx",++ "frontend-modern/src/components/patrol/InvestigationMessages.tsx",++ "frontend-modern/src/components/patrol/InvestigationSection.tsx",++ "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx",+ "frontend-modern/src/useAppRuntimeState.ts",++ "frontend-modern/src/utils/aiFindingPresentation.ts",+ "frontend-modern/src/utils/localStorage.ts"],"content_sha256": {- "frontend-modern/src/features/alerts/deliveryDiagnosisPresentation.ts": "bc3eadf8f790517b377430a42eb67e8fdfcadb53bb13b87cd971d6a9ab91d607"++ "frontend-modern/src/api/patrol.ts": "3e5bec5d29d9218450c3fb5b531fd17652759c325e049bde497e3fb96544a622",++ "frontend-modern/src/components/AI/FindingsPanel.tsx": "1063492593361f29a88109641d76fc2492027cd23b470452dfa4f437fa325700",+ "frontend-modern/src/components/Login.tsx": "621f0b97d775aacaa521a3c72ed02db3fde5ad3eda06d55950a32107723eb44c",++ "frontend-modern/src/components/patrol/InvestigationMessages.tsx": "4518f4755ff3d7dcdd0d8030372011e3481726db27ef695a9afc1d4ea6af3976",++ "frontend-modern/src/components/patrol/InvestigationSection.tsx": "32669694f6dc959c3c3684f17a4ecb4c3d9411f7fc2ae20f1192d68b1d87e52b",++ "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx": "1e52d00e61fb6affb9365cee74eb6820135d1d6d8a20161d02499ab3d6084da5",+ "frontend-modern/src/useAppRuntimeState.ts": "5a1d343d92c441e1302dab129be7256dd9a287c6a60fb0e17c6f9fa13fe20900",++ "frontend-modern/src/utils/aiFindingPresentation.ts": "c716d8b61501acec2bfde253febd4ddce6e9dfee9eef77a3230a2512326dfd7c",+ "frontend-modern/src/utils/localStorage.ts": "182ed45685228781fd32725db50611b1115f9ee4fb1af23aeedcf41ca707bdbc"},+ "backend_content_sha256": {- "internal/ai/adapters/adapters.go": "487245a52e1ae85ffecd38c6e4f006bfd6c8efff6568c92c19688a8db56d7ecc",- "internal/ai/chat/service.go": "4f130864717c5141ce974b8a367aeca19d49baa02a4906ecb65591d8b4c02bd6",- "internal/ai/tools/executor.go": "3a30f7720d30be6fdd75f3224d2da937881e77fee76fb819347f83e247fccb65",- "internal/ai/tools/tools_knowledge.go": "12c16ed7893dd49c18a7db1dd3fe3224c266102e9a23c37bc6b86fe5b33b9e4c",- "internal/api/ai_handler.go": "a407a5e55320b8e5d41d121193dc654ef02f70bd7b4566948bf4cd0a5763470a",- "internal/api/ai_handlers.go": "e3963c5a564432e9ee590f3c3db4a2220abc435cd78f6b14213559423a0283f6",- "internal/api/ai_intelligence_handlers.go": "f3864f8a53a1adaa2f64983279c3349dfff1e3095fe2ee8843ea22afe3dab577",- "internal/api/router.go": "cb5a99f8d12a7b576bf606f76fb4dfe6d1db888305249879268e6464efcb7c3f",- "internal/metrics/incident_archive.go": "2843483fca0bbafa4c6ff14b419bd599f6aeac7e20025b604cadbf16bddeed7a"++ "internal/agentcapabilities/transcript.go": "356c4ca201470407988ff9b2c1fb848619ed38e9d8db844e7390adce0f93ec19",++ "internal/ai/chat/types.go": "1f624daf7e511eb971e2d81b787dcd72b2a82d0e0ecd775aa4e580c59d915382",++ "internal/ai/service.go": "25dca2a70a985e8ab07443444a9f05f01a569c62ff7bc068a0b587d500831de6",++ "internal/api/chat_service_adapter.go": "6d0ab14456b1901c5020a408de95796ece1aa8d1057dd58737ea2637777d6ccb",++ "internal/ai/cost/pricing.go": "7b64bc881311ee0a7c1c8a319fcd162974f5a307ced1679e614ff20ac1ac532c",++ "internal/ai/tools/tools_query.go": "3e074b204a8c8c4f8b66eaf147c269a2e57739bfc69d03ea36ee8c47cf8b908a",++ "internal/ai/tools/tools_propose.go": "43d720c78a010b72f53f7e4e9e1b7b2a763e7f1ac555edb921b7cdca3e82fd51"+ },- "removed_backend_paths": [- "internal/ai/incident_coordinator.go",- "internal/metrics/incident_recorder.go"- ],- "binary_sha256": "bd29e6f27be7b3ad4cfbc37842f4da90f08c6a48c9fc23b12c9c597b67346c9b",- "rendering_content_sha256": {- "frontend-modern/src/components/AI/Chat/ChatMessages.tsx": "9672f7608d1e3a531c73cba20fd4a78752316783212afd0c292ddfd11d2bf371",- "frontend-modern/src/components/AI/Chat/ToolExecutionBlock.tsx": "cc7bd548a418c3863486f0fe987c5c3110c2f6cdfa70b630b2ec05fb794d60d6",- "frontend-modern/src/components/AI/Chat/hooks/useChat.ts": "0b56b7a56e35d51ca96f0e126dd493b3164aa9e0ad4d8ae24bcf3af7a574b97c",- "frontend-modern/src/features/alerts/deliveryDiagnosisPresentation.ts": "bc3eadf8f790517b377430a42eb67e8fdfcadb53bb13b87cd971d6a9ab91d607"++ "enterprise_base_sha": "3d9f4e3051d38027355a2a1f36b8c7f672a09b65",++ "enterprise_content_sha256": {++ "internal/investigation/orchestrator.go": "d56fd512dc47f8a2453559e89863da5d24dffc0a5977abb8f1ea7a82655cd9e8"+ },++ "binary_sha256": "24de8c9ea0020067d298c489f0d99a272b5ec4b00afab7a40dff55aabb244061","routes": [+ "/patrol",- "http://127.0.0.1:5198/qualification (isolated real OverviewTab)"++ "/settings/pulse-intelligence/patrol",++ "/settings/pulse-intelligence/provider",+ "/"],"viewports": [{@@@ -50,13 -27,18 +60,15 @@@}],"states": [- "Five captured registered-tool archive cases: saved observation with historical status and nanosecond duration disclosure, unavailable archive, malformed archive, wrong resource and missing window. Failed reads remain failed.",- "Incoming Overview dispatch wording: ready/cooldown records show Dispatch requested, cooldown identifies next eligibility, and missing dispatch timestamp stays Notification pending. No delivery success is inferred.",- "Live canonical and legacy homelab timeline queries retain the same seven records and preserve the exact original alert fired/resolved records. The incidents endpoint returns active_count=null and active_count_status=not_measured. Provider refusal remains enforced."- "demo-mode login page with the \"Signing you in to the demo\u2026\" status while the automatic sign-in is in flight",- "application shell after the automatic demo sign-in (Demo instance banner, Proxmox overview)",- "login form with printed demo credentials after an explicit Logout, session marker \"suppressed\"",- "login form still shown after a reload following the Logout",- "login form with the \"Invalid username or password\" error after a rejected automatic sign-in (401 stub), Sign in button enabled"++ "Live successful dependency diagnosis renders sanitized headings once, with distinct summaries retained. Paused history remains interactive and narrow finding controls wrap. Resolution does not infer manual review from an attention outcome.",++ "Live broker refusal appears once alongside original diagnosis, needs_attention and no action. Historical successful query and failed ACTION_NOT_ALLOWED/NO_AGENT results retain actual input, output and status.",++ "Controlled GET transcript fixture retains output with absent success status without inventing completion or failure. This proves rendering only.",++ "Selected exact Gemini 3.8 Flash route, known $0.75/$3.75 rates, readiness for Watch only/Ask first and unassessed autonomous modes survive reload. Provider card read only. Browser interception blocks automatic preflight POST, so provider health was verified separately through the live API.",++ "Incoming unchanged demo login source rechecked at 1440/390: loading, automatic demo payload, authenticated shell, logout/reload suppression, manual re-entry and rejected-login fallback. GET demo-presentation fixture with authorized local login exchange, no runtime demo configuration mutation."],"interactions": [- "At /patrol, hover/focus and Enter expansion, exact input/output comparison, deepest output scrolling, Space collapse, Escape, full reload, controlled session selection and reopening each result. Actual pixels inspected for successful and failed outcomes at desktop, intermediate and narrow widths.",- "The incoming real Overview component was exercised through scripts/check-alert-dispatch-copy.mjs at all three widths. Status text stays within the viewport and no page errors occurred. Actual pixels inspected. No delivery action invoked.",- "Final worker Pro build installed locally and managed restart recovered healthy. Private source/binary binding and receipts: tmp/patrol-archive-retirement/runtime-binding.json, browser/receipt.json and live-history-proof.json. Zero provider calls or faults in this proof. Controlled tool/session replay proves rendering only, not model diagnosis or server persistence."- "load / in a fresh browser context at 1280x800 and at 390x844; automatic POST /api/login with demo/demo, no typing",- "click the Logout control in the app header at both widths",- "reload the page after Logout",- "type demo/demo into the form and submit after Logout",- "open / in a second fresh context: automatic sign-in again",- "stub /api/login with 401 and load /: form fallback"++ "Activity, Finding options and history, All while Patrol paused. Review via hover/focus and Enter, unique aria-controls target, close returns focus, reopen, nested investigation disclosure open/closed, keyboard Enter/Space tool expansion/collapse and deep output scrolling. Actual desktop/intermediate/mobile pixels inspected after final source changes.",++ "Patrol model settings and rates/readiness scrolled into view and reloaded at all three widths. No model setting change, action execution or approval request during browser proof.",++ "Private receipts and interaction matrix under tmp/patrol-gemini-38/browser. Real run q-20260906-182952-6acfb739 remains failed: broker refused disconnected command agent, exact diagnosis retained and cleanup passed. No successful approval or recovery claim."]}diff --cc frontend-modern/src/api/__tests__/patrol.branchcov0718.test.tsindex 48740b4cf6,48740b4cf6..299d82ea16--- a/frontend-modern/src/api/__tests__/patrol.branchcov0718.test.ts+++ b/frontend-modern/src/api/__tests__/patrol.branchcov0718.test.ts@@@ -285,6 -285,6 +285,16 @@@ describe('patrol api — uncovered branrole: 'assistant',content: 'logs in /var/log grew 40GB',reasoning_content: 'checked du output',++ tool_calls: [++ {++ id: 'read-1',++ name: 'pulse_read',++ input: { resource_id: 'container-1' },++ output: 'NO_AGENT',++ success: false,++ },++ { id: 'query-1', name: 'pulse_query', input: { action: 'metrics' } },++ ],timestamp: '2026-07-18T00:00:05Z',},],@@@ -299,6 -299,6 +309,9 @@@expect(result).toEqual(envelope);expect(result.messages).toHaveLength(2);expect(result.messages[1]?.reasoning_content).toBe('checked du output');++ expect(result.messages[1]?.tool_calls?.[0]?.output).toBe('NO_AGENT');++ expect(result.messages[1]?.tool_calls?.[0]?.success).toBe(false);++ expect(result.messages[1]?.tool_calls?.[1]?.success).toBeUndefined();});it('URL-encodes the finding id segment (separate from the messages suffix)', async () => {diff --cc frontend-modern/src/api/patrol.tsindex e45416d2f8,e45416d2f8..5354edf4d0--- a/frontend-modern/src/api/patrol.ts+++ b/frontend-modern/src/api/patrol.ts@@@ -6,6 -6,6 +6,7 @@@import { apiFetchJSON } from '@/utils/apiClient';import { arrayOrEmpty, promoteLegacyAlertIdentifier } from './responseUtils';import type { InvestigationRecord } from './ai';++import type { ToolCall } from './aiChat';import type { ResourceCriticality } from './resourceOperatorState';import type { PatrolActionReference } from '@/types/actionAudit';import type { PatrolModelReadinessSnapshot } from '@/types/ai';@@@ -304,9 -304,9 +305,8 @@@ export interface ChatMessagetimestamp: string;}--export interface ChatToolCall {++export interface ChatToolCall extends ToolCall {id: string;-- name: string;input: Record<string, unknown>;}diff --cc frontend-modern/src/components/AI/FindingsPanel.tsxindex 7c939f4ec6,7c939f4ec6..fc49a6150f--- a/frontend-modern/src/components/AI/FindingsPanel.tsx+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx@@@ -194,6 -194,6 +194,21 @@@ export const FindingsPanel: Component<Fconst [filter, setFilter] = createSignal<FindingsPanelFilter>(props.filterOverride ?? 'active');const [sortBy, setSortBy] = createSignal<'severity' | 'time'>('severity');const [expandedId, setExpandedId] = createSignal<string | null>(null);++ let panelRoot: HTMLDivElement | undefined;++ const closeReviewPanel = () => {++ const findingId = expandedId();++ setExpandedId(null);++ setManageOpenId(null);++ if (findingId) {++ queueMicrotask(() => {++ panelRoot++ ?.querySelector<HTMLButtonElement>(++ `button[aria-controls="${CSS.escape(`finding-${findingId}-details`)}"]`,++ )++ ?.focus();++ });++ }++ };const [manageOpenId, setManageOpenId] = createSignal<string | null>(null);const [actionLoading, setActionLoading] = createSignal<string | null>(null);const [lastHashScrolled, setLastHashScrolled] = createSignal<string | null>(null);@@@ -1467,7 -1467,7 +1482,10 @@@manualControls.dismiss;return (-- <div id={`finding-${finding.id}-details`} class="mt-3 pt-3 border-t border-border-subtle">++ <div++ id={isPatrolFindingsSource() ? undefined : `finding-${finding.id}-details`}++ class="mt-3 pt-3 border-t border-border-subtle"++ ><Show when={hasTriggeringAlert(finding)}><div class="text-xs text-amber-700 dark:text-amber-300 mb-2">Triggered by alert{finding.alertType ? ` (${finding.alertType})` : ''} • Identifier{' '}@@@ -2108,10 -2108,10 +2126,10 @@@};return (-- <div class="space-y-4">++ <div ref={panelRoot} class="space-y-4">{/* Controls */}<Show when={showFilterControls()}>-- <div class="flex items-center justify-between">++ <div class="flex flex-wrap items-center justify-between gap-2"><FilterSegmentedControlaria-label="Filter findings"value={filter()}@@@ -2298,10 -2298,10 +2316,7 @@@<buttontype="button"aria-label={`Close review panel for ${title().label}`}-- onClick={() => {-- setExpandedId(null);-- setManageOpenId(null);-- }}++ onClick={closeReviewPanel}class="rounded p-1.5 text-muted transition-colors hover:bg-surface-hover hover:text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"><XIcon class="h-4 w-4" />diff --cc frontend-modern/src/components/patrol/InvestigationMessages.tsxindex 6b941d689d,6b941d689d..f5ede3cb54--- a/frontend-modern/src/components/patrol/InvestigationMessages.tsx+++ b/frontend-modern/src/components/patrol/InvestigationMessages.tsx@@@ -10,6 -10,6 +10,7 @@@ import { getInvestigationMessages, formimport { LoadingSpinner } from '@/components/shared/LoadingSpinner';import { getInvestigationMessagesState } from '@/utils/patrolEmptyStatePresentation';import { renderMarkdown } from '@/components/AI/aiChatUtils';++import { ToolExecutionBlock } from '@/components/AI/Chat/ToolExecutionBlock';// Compact variant of the Assistant chat's markdown styling, scaled for the// investigation thread's text-xs bubbles.@@@ -110,16 -110,16 +111,35 @@@ export const InvestigationMessages: Com<div class="space-y-1"><For each={msg.tool_calls}>{(tc) => (-- <div class="text-xs rounded border border-indigo-200 dark:border-indigo-800 bg-indigo-50 dark:bg-indigo-900 px-2 py-1">-- <span class="font-semibold text-indigo-700 dark:text-indigo-300">-- {tc.name}-- </span>-- <Show when={tc.input && Object.keys(tc.input).length > 0}>-- <pre class="mt-1 text-[10px] text-muted overflow-x-auto max-h-24 overflow-y-auto">-- {JSON.stringify(tc.input, null, 2)}-- </pre>-- </Show>-- </div>++ <Show++ when={typeof tc.success === 'boolean'}++ fallback={++ <div class="text-xs rounded border border-indigo-200 dark:border-indigo-800 bg-indigo-50 dark:bg-indigo-900 px-2 py-1">++ <span class="font-semibold text-indigo-700 dark:text-indigo-300">++ {tc.name}++ </span>++ <Show when={tc.input && Object.keys(tc.input).length > 0}>++ <pre class="mt-1 text-[10px] text-muted overflow-x-auto max-h-24 overflow-y-auto">++ {JSON.stringify(tc.input, null, 2)}++ </pre>++ </Show>++ <Show when={tc.output}>++ <pre class="mt-1 text-[10px] text-muted overflow-x-auto max-h-32 overflow-y-auto whitespace-pre-wrap break-words">++ {tc.output}++ </pre>++ </Show>++ </div>++ }++ >++ <ToolExecutionBlock++ tool={{++ name: tc.name,++ input: JSON.stringify(tc.input),++ output: tc.output ?? '',++ success: tc.success!,++ }}++ />++ </Show>)}</For></div>diff --cc frontend-modern/src/components/patrol/InvestigationSection.tsxindex 65b8257bd1,65b8257bd1..d3d3e8f906--- a/frontend-modern/src/components/patrol/InvestigationSection.tsx+++ b/frontend-modern/src/components/patrol/InvestigationSection.tsx@@@ -29,6 -29,6 +29,7 @@@ import { buildPatrolInvestigationRecordimport { LoadingSpinner } from '@/components/shared/LoadingSpinner';import { MetadataBadge } from '@/components/shared/MetadataBadge';import { InvestigationMessages } from './InvestigationMessages';++import { renderMarkdown } from '@/components/AI/aiChatUtils';import { notificationStore } from '@/stores/notifications';import { aiIntelligenceStore } from '@/stores/aiIntelligence';import type { InvestigationRecord } from '@/api/ai';@@@ -40,6 -40,6 +41,9 @@@ const INVESTIGATION_BADGE_PROPS =shape: 'rounded',} as const;++const summaryClass =++ 'text-sm prose prose-slate prose-sm dark:prose-invert max-w-none break-words prose-headings:my-2 prose-p:my-2 prose-pre:overflow-x-auto prose-code:break-all prose-code:before:content-none prose-code:after:content-none';++interface InvestigationSectionProps {findingId: string;investigationStatus?: string;@@@ -210,7 -210,7 +214,11 @@@ export const InvestigationSection: Comp</div><Show when={investigationRecord().conclusion}>-- <p class="mt-2 text-sm text-base-content">{investigationRecord().conclusion}</p>++ <div++ class={`mt-2 ${summaryClass}`}++ // eslint-disable-next-line solid/no-innerhtml++ innerHTML={renderMarkdown(investigationRecord().conclusion!)}++ /></Show><Show when={investigationRecord().recommendedAction}><p class="mt-1 text-xs text-muted">@@@ -325,6 -325,6 +333,7 @@@<Showwhen={inv().error &&++ inv().error?.trim() !== investigationRecord().error &&(inv().status === 'failed' ||inv().outcome === 'timed_out' ||inv().outcome === 'fix_failed' ||@@@ -341,8 -341,8 +350,16 @@@</Show>{/* Summary */}-- <Show when={inv().summary}>-- <div class="text-sm text-muted bg-surface-alt rounded p-2">{inv().summary}</div>++ <Show++ when={++ inv().summary?.trim() && inv().summary?.trim() !== investigationRecord().conclusion++ }++ >++ <div++ class={`bg-surface-alt rounded p-2 ${summaryClass}`}++ // eslint-disable-next-line solid/no-innerhtml++ innerHTML={renderMarkdown(inv().summary!)}++ /></Show>{/* Tools used + turn count */}diff --cc frontend-modern/src/components/patrol/__tests__/InvestigationMessages.test.tsxindex 0000000000,0000000000..b1b8c6d3a6new file mode 100644--- /dev/null+++ b/frontend-modern/src/components/patrol/__tests__/InvestigationMessages.test.tsx@@@ -1,0 -1,0 +1,68 @@@++import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';++import { afterEach, describe, expect, it, vi } from 'vitest';++import InvestigationMessages from '../InvestigationMessages';++++const getMessages = vi.hoisted(() => vi.fn());++vi.mock('@/api/patrol', () => ({++ getInvestigationMessages: getMessages,++ formatTimestamp: (value: string) => value,++}));++++afterEach(cleanup);++++describe('InvestigationMessages', () => {++ it('retains merged failed tool evidence and exposes it through the shared disclosure', async () => {++ getMessages.mockResolvedValue({++ messages: [++ {++ id: 'turn-1',++ role: 'assistant',++ content: '',++ timestamp: '2026-09-06',++ tool_calls: [++ {++ id: 'read-1',++ name: 'pulse_read',++ input: { resource_id: 'app-container-1' },++ output: '{"error":"NO_AGENT","message":"Command agent is not connected"}',++ success: false,++ },++ ],++ },++ ],++ });++ render(() => <InvestigationMessages findingId="finding-1" />);++ const disclosure = await screen.findByRole('button', { name: /failed/i });++ expect(disclosure).toHaveAttribute('aria-expanded', 'false');++ fireEvent.keyDown(disclosure, { key: 'Enter' });++ expect(disclosure).toHaveAttribute('aria-expanded', 'true');++ expect(screen.getByText(/"error":\s*"NO_AGENT"/)).toBeVisible();++ fireEvent.keyDown(disclosure, { key: ' ' });++ expect(disclosure).toHaveAttribute('aria-expanded', 'false');++ });++++ it('does not infer completion from historical calls that have no recorded result status', async () => {++ getMessages.mockResolvedValue({++ messages: [++ {++ id: 'turn-2',++ role: 'assistant',++ content: '',++ timestamp: '2026-09-06',++ tool_calls: [++ {++ id: 'query-1',++ name: 'pulse_query',++ input: { action: 'metrics' },++ output: 'Historical output',++ },++ ],++ },++ ],++ });++ render(() => <InvestigationMessages findingId="finding-2" />);++ expect(await screen.findByText('Historical output')).toBeVisible();++ expect(screen.queryByText('completed')).not.toBeInTheDocument();++ expect(screen.queryByText('failed')).not.toBeInTheDocument();++ });++});diff --cc frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsxindex b0a9ac023f,b0a9ac023f..2db7384f4d--- a/frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsx+++ b/frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsx@@@ -133,4 -133,4 +133,46 @@@ describe('InvestigationSection', () =>expect(screen.queryByText(/No investigation data available/)).not.toBeInTheDocument();expect(screen.queryByText('systemctl restart workload.service')).not.toBeInTheDocument();});++++ it.each([false, true])(++ 'preserves readable evidence and distinct summaries (different: %s)',++ async (different) => {++ const conclusion =++ '### Root cause\n\nThe cause is **unknown**.\n\n- The health check failed.\n- Logs are unavailable.';++ getInvestigationMock.mockResolvedValue({++ id: 'inv-markdown',++ finding_id: 'finding-markdown',++ session_id: 'session-markdown',++ status: 'completed',++ started_at: '2026-09-06T17:00:00Z',++ turn_count: 2,++ summary: different++ ? '### Follow-up\n\nAdditional evidence remains unavailable.'++ : conclusion,++ } satisfies Investigation);++ render(() => (++ <InvestigationSection++ findingId="finding-markdown"++ investigationRecord={{++ id: 'record-markdown',++ finding_id: 'finding-markdown',++ subject: { resource_id: 'container-1' },++ trigger: { title: 'Health check failed', detected_at: '2026-09-06T17:00:00Z' },++ status: 'completed',++ conclusion,++ started_at: '2026-09-06T17:00:00Z',++ evidence: [],++ verification: [],++ rollback: [],++ tools_used: [],++ }}++ />++ ));++ await screen.findByRole('button', { name: 'Show investigation thread' });++ expect(screen.getAllByRole('heading', { name: 'Root cause' })).toHaveLength(1);++ expect(screen.getByText('unknown').tagName).toBe('STRONG');++ expect(screen.getAllByRole('listitem')).toHaveLength(2);++ expect(screen.queryByRole('heading', { name: 'Follow-up' }) !== null).toBe(different);++ },++ );});diff --cc frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsxindex 92c5ee61be,92c5ee61be..6edec6a1e8--- a/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx@@@ -225,9 -225,9 +225,7 @@@ export function PatrolIntelligenceSurfaonToggle={(event) => setFindingsOpen(event.currentTarget.open)}><summary class="sr-only">Finding options and history</summary>-- <div-- class={`space-y-4 border-t border-border p-4 sm:p-5 ${!state.patrolEnabledLocal() ? 'opacity-50 pointer-events-none' : ''}`}-- >++ <div class="space-y-4 border-t border-border p-4 sm:p-5"><div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between"><p class="text-xs leading-5 text-muted"><Showdiff --cc frontend-modern/src/utils/__tests__/aiFindingPresentation.coverage2.test.tsindex 625b8ffa5b,625b8ffa5b..d9663ce542--- a/frontend-modern/src/utils/__tests__/aiFindingPresentation.coverage2.test.ts+++ b/frontend-modern/src/utils/__tests__/aiFindingPresentation.coverage2.test.ts@@@ -995,19 -995,19 +995,19 @@@ describe('getFindingResolutionReason',).toBe('Resolved after investigation timeout now');});-- it('returns "Resolved manually" for cannot_fix', () => {++ it('does not infer manual resolution from cannot_fix', () => {expect(getFindingResolutionReason({ ...patrolBase, investigationOutcome: 'cannot_fix' }, 'now'),-- ).toBe('Resolved manually now');++ ).toBe('Resolved now');});-- it('returns "Resolved after manual review" for needs_attention', () => {++ it('does not infer manual review from needs_attention', () => {expect(getFindingResolutionReason({ ...patrolBase, investigationOutcome: 'needs_attention' },'now',),-- ).toBe('Resolved after manual review now');++ ).toBe('Resolved now');});it('returns "Fix applied by Patrol" for fix_executed even when autoResolved is false', () => {diff --cc frontend-modern/src/utils/aiFindingPresentation.tsindex da2cfe6c59,da2cfe6c59..00b4aae7f9--- a/frontend-modern/src/utils/aiFindingPresentation.ts+++ b/frontend-modern/src/utils/aiFindingPresentation.ts@@@ -1287,9 -1287,9 +1287,10 @@@ export const getFindingResolutionReasocase 'timed_out':return `Resolved after investigation timeout ${resolvedTime}`;case 'cannot_fix':-- return `Resolved manually ${resolvedTime}`;case 'needs_attention':-- return `Resolved after manual review ${resolvedTime}`;++ // An investigation outcome does not identify who later resolved the++ // finding. Explicit operator resolution is handled above.++ return `Resolved ${resolvedTime}`;default:return `Issue no longer detected ${resolvedTime}`;}diff --cc internal/agentcapabilities/transcript.goindex 0000000000,0000000000..4ccd48a474new file mode 100644--- /dev/null+++ b/internal/agentcapabilities/transcript.go@@@ -1,0 -1,0 +1,45 @@@++package agentcapabilities++++import "encoding/json"++++// TranscriptToolCall preserves a stored invocation and its observed result.++// Provider requests use ProviderToolCall instead of the product history shape.++type TranscriptToolCall struct {++ ID string `json:"id"`++ Name string `json:"name"`++ Input map[string]interface{} `json:"input"`++ Output string `json:"output,omitempty"`++ Success *bool `json:"success,omitempty"`++ ThoughtSignature json.RawMessage `json:"thought_signature,omitempty"`++}++++func (t TranscriptToolCall) NormalizeCollections() TranscriptToolCall {++ providerCall := ProviderToolCall{++ ID: t.ID,++ Name: t.Name,++ Input: t.Input,++ ThoughtSignature: t.ThoughtSignature,++ }.NormalizeCollections()++ t.ID = providerCall.ID++ t.Name = providerCall.Name++ t.Input = providerCall.Input++ t.ThoughtSignature = providerCall.ThoughtSignature++ if t.Success != nil {++ success := *t.Success++ t.Success = &success++ }++ return t++}++++// ProviderToolCall projects a stored Assistant transcript call back to the++// shared provider-facing shape, deliberately excluding in-app output/success++// display fields.++func (t TranscriptToolCall) ProviderToolCall() ProviderToolCall {++ t = t.NormalizeCollections()++ return ProviderToolCall{++ ID: t.ID,++ Name: t.Name,++ Input: t.Input,++ ThoughtSignature: t.ThoughtSignature,++ }.NormalizeCollections()++}diff --cc internal/agentcapabilities/types_test.goindex c5938ea3eb,c5938ea3eb..5b9371f2fa--- a/internal/agentcapabilities/types_test.go+++ b/internal/agentcapabilities/types_test.go@@@ -1,6 -1,6 +1,7 @@@package agentcapabilitiesimport (++ "encoding/json""net/http""slices""strings"@@@ -203,3 -203,3 +204,46 @@@ func TestNewToolGovernanceDescriptorAppt.Fatalf("descriptor approval summary = %q", descriptor.ApprovalSummary)}}++++// Stored result evidence and provider request arguments are different wire++// contracts. In particular, explicit failure cannot disappear through omitempty.++func TestTranscriptToolCallPreservesResultOutsideProviderRequests(t *testing.T) {++ failed := false++ call := TranscriptToolCall{ID: "read-1", Name: PulseReadToolName, Output: "NO_AGENT", Success: &failed}.NormalizeCollections()++ failed = true++ body, err := json.Marshal(call)++ if err != nil {++ t.Fatal(err)++ }++ var stored map[string]interface{}++ if err := json.Unmarshal(body, &stored); err != nil {++ t.Fatal(err)++ }++ if stored["output"] != "NO_AGENT" || stored["success"] != false || stored["input"] == nil {++ t.Fatalf("stored result lost explicit failure or normalized input: %s", body)++ }++ requestBody, err := json.Marshal(call.ProviderToolCall())++ if err != nil {++ t.Fatal(err)++ }++ var request map[string]interface{}++ if err := json.Unmarshal(requestBody, &request); err != nil {++ t.Fatal(err)++ }++ for _, key := range []string{"output", "success"} {++ if _, exists := request[key]; exists {++ t.Fatalf("provider request retained display-only %s: %s", key, requestBody)++ }++ }++ unknownBody, err := json.Marshal(TranscriptToolCall{Name: PulseQueryToolName}.NormalizeCollections())++ if err != nil {++ t.Fatal(err)++ }++ var unknown map[string]interface{}++ if err := json.Unmarshal(unknownBody, &unknown); err != nil {++ t.Fatal(err)++ }++ if _, exists := unknown["success"]; exists {++ t.Fatalf("unknown historical status became a result: %s", unknownBody)++ }++}diff --cc internal/ai/chat/types.goindex 2f307942c0,2f307942c0..4cc102d3fa--- a/internal/ai/chat/types.go+++ b/internal/ai/chat/types.go@@@ -135,38 -135,38 +135,13 @@@ func (m Message) ClientSafe() Messagereturn m}--// ToolCall represents a tool invocation--type ToolCall struct {-- ID string `json:"id"`-- Name string `json:"name"`-- Input map[string]interface{} `json:"input"`-- Output string `json:"output,omitempty"`-- Success *bool `json:"success,omitempty"`-- ThoughtSignature json.RawMessage `json:"thought_signature,omitempty"`--}++// ToolCall is the canonical result-bearing product transcript call.++type ToolCall = agentcapabilities.TranscriptToolCallfunc EmptyToolCall() ToolCall {return ToolCall{}.NormalizeCollections()}--func (t ToolCall) NormalizeCollections() ToolCall {-- providerCall := agentcapabilities.ProviderToolCall{-- ID: t.ID,-- Name: t.Name,-- Input: t.Input,-- ThoughtSignature: t.ThoughtSignature,-- }.NormalizeCollections()-- t.ID = providerCall.ID-- t.Name = providerCall.Name-- t.Input = providerCall.Input-- t.ThoughtSignature = providerCall.ThoughtSignature-- if t.Success != nil {-- success := *t.Success-- t.Success = &success-- }-- return t--}--// ToolCallFromProvider stores a provider-facing tool call in the richer// Assistant transcript shape used for in-app history.func ToolCallFromProvider(tc agentcapabilities.ProviderToolCall) ToolCall {@@@ -183,19 -183,19 +158,6 @@@}.NormalizeCollections()}--// ProviderToolCall projects a stored Assistant transcript call back to the--// shared provider-facing shape, deliberately excluding in-app output/success--// display fields.--func (t ToolCall) ProviderToolCall() agentcapabilities.ProviderToolCall {-- t = t.NormalizeCollections()-- return agentcapabilities.ProviderToolCall{-- ID: t.ID,-- Name: t.Name,-- Input: t.Input,-- ThoughtSignature: t.ThoughtSignature,-- }.NormalizeCollections()--}--// ToolResult represents the result of a tool execution. It aliases the shared// Pulse Intelligence provider-result shape so stored Assistant transcripts and// provider turns do not drift on tool result JSON.diff --cc internal/ai/cost/pricing.goindex 7ac56bbe27,7ac56bbe27..2f43d6b059--- a/internal/ai/cost/pricing.go+++ b/internal/ai/cost/pricing.go@@@ -82,11 -82,11 +82,17 @@@ var providerPrices = map[string][]modelflatPriceAsOf("anthropic/claude-opus-4.8", 5.00, 25.00, "2026-07-14"),flatPriceAsOf("anthropic/claude-sonnet-5", 2.00, 10.00, "2026-07-14"),flatPriceAsOf("deepseek/deepseek-v4-flash", 0.09, 0.18, "2026-07-14"),++ // Introductory standard rates through 2026-12-31. Recheck when the++ // published standard price changes on 2027-01-01. Batch/alias routes++ // are deliberately not covered by this exact model ID.++ flatPriceAsOf("google/gemini-3.8-flash", 0.75, 3.75, "2026-09-06"),flatPriceAsOf("nvidia/nemotron-3.5-lightning:free", 0, 0, "2026-08-14"),flatPriceAsOf("nvidia/nemotron-3-super-120b-a12b:free", 0, 0, "2026-08-14"),flatPriceAsOf("nvidia/nemotron-3-ultra-550b-a55b:free", 0, 0, "2026-08-15"),},"gemini": {++ // Standard introductory rates, verified 2026-09-06. Recheck 2027-01-01.++ flatPriceAsOf("gemini-3.8-flash", 0.75, 3.75, "2026-09-06"),// Gemini Developer API standard paid-tier pricing, checked from// https://ai.google.dev/gemini-api/docs/pricing on 2026-06-04.flatPrice("gemini-3.5-flash*", 1.50, 9.00),diff --cc internal/ai/cost/pricing_gemini_test.goindex 0000000000,0000000000..6ea1ee23dfnew file mode 100644--- /dev/null+++ b/internal/ai/cost/pricing_gemini_test.go@@@ -1,0 -1,0 +1,46 @@@++package cost++++import (++ "math"++ "testing"++)++++func TestGemini38FlashReviewedRoutePricing(t *testing.T) {++ for _, route := range []struct{ provider, model string }{++ {"gemini", "gemini-3.8-flash"},++ {"openrouter", "google/gemini-3.8-flash"},++ } {++ t.Run(route.provider, func(t *testing.T) {++ provider, model := ResolveProviderAndModel(route.provider, route.provider+":"+route.model, "gemini-3.8-flash")++ if provider != route.provider || model != route.model {++ t.Fatalf("usage lost the requested billing route: %s:%s", provider, model)++ }++ // Token counts from the live unhealthy-container qualification.++ usd, known, price := EstimateUSD(provider, model, 16068, 778)++ if !known || math.Abs(usd-0.0149685) > 1e-10 {++ t.Fatalf("live usage estimate = %f, known=%t", usd, known)++ }++ if price.InputUSDPerMTok != 0.75 || price.OutputUSDPerMTok != 3.75 || price.AsOf != "2026-09-06" {++ t.Fatalf("reviewed standard rates/date missing: %+v", price)++ }++ usd, known, _ = EstimateUSD(provider, model, 0, 0)++ if !known || usd != 0 {++ t.Fatalf("zero observed usage = %f, known=%t", usd, known)++ }++ })++ }++}++++func TestGemini38OpenRouterPricingDoesNotGuessVariantRates(t *testing.T) {++ for _, model := range []string{++ "google/gemini-3.8-flash:batch",++ "google/gemini-3.8-flash:free",++ "google/gemini-3.8-flash-preview",++ "google/gemini-3.8-flash-cyber",++ "google/gemini-3.9-flash",++ } {++ if usd, known, _ := EstimateUSD("openrouter", model, 16068, 778); known || usd != 0 {++ t.Errorf("unreviewed route %q received an estimate: %f, known=%t", model, usd, known)++ }++ }++}diff --cc internal/ai/service.goindex 96f27f4c6e,96f27f4c6e..d3e0e8c6ef--- a/internal/ai/service.go+++ b/internal/ai/service.go@@@ -184,13 -184,13 +184,12 @@@ func (m ChatMessage) NormalizeCollectioreturn m}--// ChatToolCall represents a provider-facing tool invocation in an API-facing--// chat message. It aliases the shared Pulse Intelligence provider-call shape so--// API chat history and provider turns do not drift on tool-call JSON.--type ChatToolCall = agentcapabilities.ProviderToolCall++// ChatToolCall retains observed output and result status in product history.++// Provider turns use the explicit ProviderToolCall projection.++type ChatToolCall = agentcapabilities.TranscriptToolCallfunc EmptyChatToolCall() ChatToolCall {-- return agentcapabilities.EmptyProviderToolCall()++ return ChatToolCall{}.NormalizeCollections()}// ChatToolResult represents the result of a tool invocation. It aliases thediff --cc internal/ai/service_test.goindex 33d78b474d,33d78b474d..4acb88ec43--- a/internal/ai/service_test.go+++ b/internal/ai/service_test.go@@@ -168,7 -168,7 +168,7 @@@ func TestChatMessage_UsesCanonicalEmptyName: "diagnose",ThoughtSignature: json.RawMessage(`{"provider":"gemini"}`),}-- var sharedProviderCall agentcapabilities.ProviderToolCall = sharedCall.NormalizeCollections()++ var sharedProviderCall agentcapabilities.TranscriptToolCall = sharedCall.NormalizeCollections()if sharedProviderCall.ID != "call-1" || sharedProviderCall.Input == nil {t.Fatalf("shared chat tool call = %+v", sharedProviderCall)}diff --cc internal/ai/tools/tools_propose.goindex 07dfcc6267,07dfcc6267..7588b14e13--- a/internal/ai/tools/tools_propose.go+++ b/internal/ai/tools/tools_propose.go@@@ -178,7 -178,7 +178,7 @@@ func (e *PulseToolExecutor) executePropreturn NewErrorResult(err), nil}return NewTextResult(fmt.Sprintf(-- "Proposal recorded: capability %q on resource %q. It will be planned and routed for governed approval; nothing has executed. Conclude the investigation with your diagnosis.",++ "Proposal recorded: capability %q on resource %q. The action broker still needs to validate it after this investigation. No action has been created or executed.",capabilityName, resourceID)), nil}diff --cc internal/ai/tools/tools_query.goindex 53e63b5046,7654a9f8e4..2fbe1bc4d7--- a/internal/ai/tools/tools_query.go+++ b/internal/ai/tools/tools_query.go@@@ -2166,7 -2166,7 +2166,7 @@@ func (e *PulseToolExecutor) registerQue},"resource_type": {Type: "string",-- Description: "Resource type. For get/search, prefer canonical values: 'agent', 'vm', 'system-container', 'app-container', 'storage', 'physical-disk', and 'docker-host'. For get, 'node' resolves to 'agent'. For search, 'node' filters Proxmox nodes. Compatibility aliases 'system' and 'storage-pool' are still accepted. For config: 'vm', 'system-container', or supported API-backed 'app-container'.",++ Description: "Resource type. For get/search, prefer canonical values: 'agent', 'vm', 'system-container', 'app-container', 'storage', 'physical-disk', and 'docker-host'. For get, 'node' resolves to 'agent'. For search, 'node' filters Proxmox nodes. Compatibility aliases 'system' and 'storage-pool' are still accepted. For config: 'vm', 'system-container', or TrueNAS 'app-container'. Docker and Podman app-container configuration reads are not supported. Their collected health, mounts, ports, and networks are available through get.",Enum: []string{"agent", "system", "vm", "system-container", "app-container", "node", "docker-host", "storage", "storage-pool", "physical-disk"},},"resource_id": {diff --cc internal/api/ai_handlers_test.goindex 3eb28535dd,3eb28535dd..9fa31ac087--- a/internal/api/ai_handlers_test.go+++ b/internal/api/ai_handlers_test.go@@@ -3754,14 -3754,14 +3754,10 @@@ func TestPatrolModelReadinessBudgetScalassert.Equal(t, 4*600*time.Second+time.Minute, patrolModelReadinessBudget(&config.AIConfig{RequestTimeoutSeconds: 600}))}--// TestOrchestratorAndChatAdaptersMapTheSameMessageFields keeps the deliberate--// GetMessages mirror between orchestratorChatAdapter (ai_handlers.go) and--// chatServiceAdapter (chat_service_adapter.go) honest: both convert the same--// chat-service messages onto separate output contracts, and a field mapped by--// one must be mapped by the other. chatServiceAdapter routes through--// adaptChatMessage so its API-facing tool calls stay on the shared provider--// shape instead of hand-copying a local duplicate.--func TestOrchestratorAndChatAdaptersMapTheSameMessageFields(t *testing.T) {++// The adapters share base message fields but have distinct tool-call contracts.++// Orchestrator turns project provider arguments. Product history retains the++// observed result through the canonical result-bearing transcript type.++func TestOrchestratorAndChatAdaptersMapTheirMessageContracts(t *testing.T) {for _, tc := range []struct {file stringfn string@@@ -3793,7 -3793,7 +3789,7 @@@"Content:","ReasoningContent:","Timestamp:",-- "tc.ProviderToolCall()",++ "tc.NormalizeCollections()","toolResult := *m.ToolResult",".NormalizeCollections()",},diff --cc internal/api/chat_service_adapter.goindex 2e48a8f57a,2e48a8f57a..e84b647df5--- a/internal/api/chat_service_adapter.go+++ b/internal/api/chat_service_adapter.go@@@ -86,7 -86,7 +86,7 @@@ func adaptChatMessage(m chat.Message) aTimestamp: m.Timestamp,}for _, tc := range m.ToolCalls {-- msg.ToolCalls = append(msg.ToolCalls, tc.ProviderToolCall())++ msg.ToolCalls = append(msg.ToolCalls, tc.NormalizeCollections())}if m.ToolResult != nil {toolResult := *m.ToolResultdiff --cc internal/api/chat_service_adapter_test.goindex 7effa9df5e,7effa9df5e..60ae6ac67a--- a/internal/api/chat_service_adapter_test.go+++ b/internal/api/chat_service_adapter_test.go@@@ -3,7 -3,7 +3,6 @@@ package apimport ("context""encoding/json"-- "strings""testing""time"@@@ -99,8 -99,8 +98,8 @@@ func TestChatServiceAdapter_GetMessagesrequire.NoError(t, err)}--func TestAdaptChatMessageUsesSharedProviderToolCallShape(t *testing.T) {-- success := true++func TestAdaptChatMessagePreservesObservedToolResult(t *testing.T) {++ success := falsemsg := adaptChatMessage(chat.Message{ID: "msg-1",Role: "assistant",@@@ -109,7 -109,7 +108,7 @@@ToolCalls: []chat.ToolCall{{ID: "call-1",Name: "diagnose",-- Output: "in-app only",++ Output: "NO_AGENT: command agent unavailable",Success: &success,ThoughtSignature: json.RawMessage(`{"provider":"gemini"}`),}},@@@ -121,7 -121,7 +120,7 @@@})require.Len(t, msg.ToolCalls, 1)-- var shared agentcapabilities.ProviderToolCall = msg.ToolCalls[0]++ var shared agentcapabilities.TranscriptToolCall = msg.ToolCalls[0]assert.Equal(t, "call-1", shared.ID)assert.Equal(t, "diagnose", shared.Name)assert.NotNil(t, shared.Input)@@@ -131,8 -131,8 +130,8 @@@text := string(payload)assert.Contains(t, text, `"input":{}`)assert.Contains(t, text, `"thought_signature":{"provider":"gemini"}`)-- assert.False(t, strings.Contains(text, `"output"`), text)-- assert.False(t, strings.Contains(text, `"success"`), text)++ assert.Contains(t, text, `"output":"NO_AGENT: command agent unavailable"`)++ assert.Contains(t, text, `"success":false`)require.NotNil(t, msg.ToolResult)var sharedResult agentcapabilities.ProviderToolResult = *msg.ToolResultdiff --cc internal/api/contract_test.goindex b04e578293,bbeb5fb288..1577893111--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@@ -19839,7 -19841,7 +19839,7 @@@ func TestContract_PulseMCPAdapterProjecchatTypesSrc := string(chatTypesSource)for _, fragment := range []string{`func ToolCallFromProvider(tc agentcapabilities.ProviderToolCall) ToolCall`,-- `func (t ToolCall) ProviderToolCall() agentcapabilities.ProviderToolCall`,++ `type ToolCall = agentcapabilities.TranscriptToolCall`,`type ToolResult = agentcapabilities.ProviderToolResult`,} {if !strings.Contains(chatTypesSrc, fragment) {@@@ -19853,8 -19855,8 +19853,8 @@@}aiServiceSrc := string(aiServiceSource)for _, fragment := range []string{-- `type ChatToolCall = agentcapabilities.ProviderToolCall`,-- `return agentcapabilities.EmptyProviderToolCall()`,++ `type ChatToolCall = agentcapabilities.TranscriptToolCall`,++ `return ChatToolCall{}.NormalizeCollections()`,`type ChatToolResult = agentcapabilities.ProviderToolResult`,`return agentcapabilities.ApprovalRequiredToolMarker(`,`return agentcapabilities.PolicyBlockedToolMarker(command, reason)`,@@@ -20087,11 -20089,11 +20087,11 @@@chatServiceAdapterSrc := string(chatServiceAdapterSource)for _, fragment := range []string{`func adaptChatMessage(m chat.Message) ai.ChatMessage`,-- `msg.ToolCalls = append(msg.ToolCalls, tc.ProviderToolCall())`,++ `msg.ToolCalls = append(msg.ToolCalls, tc.NormalizeCollections())`,`toolResult := *m.ToolResult`,} {if !strings.Contains(chatServiceAdapterSrc, fragment) {-- t.Errorf("chat service adapter must bridge messages through shared provider tool shapes; missing %s", fragment)++ t.Errorf("chat service adapter must retain result-bearing transcript calls; missing %s", fragment)}}