You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows runtime cache and updater: cap generations, recover a declined UAC, retry during supervisor cooldown, show release notes #5981
lane:releaseLane: releases, packaging, CI policy and repository operationsstate:needs-deviceWaits on a physical device, VM, human pass or upstream producer
lane: release
state: needs-device
owner: unassigned
unit: —
blocked-by: —
clears-when: the named isolated acceptance VM is ready with sharing disabled
next: Verify the named isolated acceptance VM is ready with sharing disabled; exercise cache generations, declined UAC, cooldown Retry and forward-upgrade/release-note/browser behavior on pinned artifacts.
updated: 2026-11-12
Runtime cache: every update leaves a complete ~125 MB generation in %LOCALAPPDATA%\ai.opencoven.cave\sidecar-runtime until uninstall (src-tauri/src/sidecar_archive_cleanup.rs:199-253). Keep the current and one previous generation on startup cleanup.
Updater: update.install() runs after the cleanup guard stopped the sidecar (tauri_setup.rs:455-461); if msiexec is declined at UAC the window may stay dead because the supervisor treats SidecarState::None as unknown (sidecar_supervisor.rs:709-729) (verify). Restart the sidecar when install() returns an error.
Post-startup crash: revival emits sidecar-startup-progress to no listener in the Next app, and after four attempts a 15-minute cooldown follows with no Retry (sidecar_supervisor.rs:88-95, 808-849). Add an in-app listener with a banner and a Retry during cooldown.
Release notes: latest.json has no notes (scripts/generate-latest-json.mjs:87), so the update banner cannot show them. "Open installer in Browser" / "Open release page in Browser" open the in-app browser pane, not the system browser (src/lib/open-external.ts:4-17; src/components/update-available.tsx:192-194, 300-307).
Acceptance. After two updates only two runtime generations remain; declining UAC leaves a working app with the banner's failure state; a killed node.exe yields a visible recovery banner with Retry; the update banner shows notes and installer links open in Edge. Tests: src/lib/app-update.test.ts, src/components/update-available.test.ts, sidecar_archive_tests.
Owner: Val. Branch, worktree and verification are recorded in comments.
Primary blocker: Windows execution evidence is needed; declined-UAC failure remains a hypothesis to reproduce.
Next: Reproduce declined UAC on Windows, then implement bounded runtime retention and visible recovery through the existing supervisor.
Done when: Two retained generations after two updates; declined UAC restores a working app; killed sidecar shows Retry; release notes and external installer links work; original Windows tests and hardware checks pass.
The original issue acceptance, human-authored dependencies, decisions and approval gates remain binding. Resume the existing owner/branch/worktree recorded here; revalidate current state before execution. No ownership, implementation lease, merge or release authority is created by this goal. Actor: Val's backlog-triage session; no familiar identity. Coverage: repository issues, paginated comments, open PRs and Cave Project membership; private execution-store liveness is unknown. This is a durable goal definition, recorded-only, not an acknowledged handoff.
This replaces the 2026-10-14 goal, which had no follow-up goal. State re-checked against origin/main301ac7f19.
Where it stands. Nothing has landed, and two premises need correcting:
The cache cap conflicts with deliberate design. sidecar_archive_cleanup.rs:66-70 leaves reclaiming generations to uninstall, because nothing proves an old generation is unused. sidecar_archive_tests.rs:641-649 pins that behaviour.
Declined UAC: the updater runs ShellExecuteW and then always exits, so a declined prompt most likely leaves Cave closed with nothing relaunching it. It does not return an error.
No app listener shows the sidecar-startup-progress cooldown (4 attempts, then 900 s), and there is no Retry. latest.json carries no notes (generate-latest-json.mjs:87), and banner links open in the in-app browser (update-available.tsx).
Remaining
A crash-recovery banner with Retry during the supervisor cooldown
Release notes in latest.json, shown in the banner; links that open in the system browser
A generation retention rule (needs process leases or an approved rule)
Declined or failed msiexec recovery or relaunch, reproduced on Windows
Needs Val: The retention rule, and the per-user versus per-machine MSI mode from #5970, which may remove the UAC prompt entirely.
End-to-end goal
/goal #5981's cross-platform items are merged. The sidecar crash-recovery state from sidecar-startup-progress reaches the app as a banner with Retry during the supervisor cooldown. latest.json carries release notes (generate-latest-json.mjs) that the update banner shows. Banner links open in the system browser (openSystemBrowserUrl) instead of the in-app browser. app-update and update-available tests cover all three. A comment on #5981 corrects two premises without editing the body. First, the declined-UAC item becomes reproducing the problem on Windows and recovering or relaunching after a declined or failed msiexec, because the updater always exits after launching the installer. Second, the runtime-cache cap needs process leases or a retention rule Val approves, because sidecar_archive_cleanup.rs deliberately leaves reclamation to uninstall. The goal is met when the code is merged and #5981 lists those two decisions as Val's handoff: the retention rule, and per-user versus per-machine MSI from #5970. Method: load work-continuity, record owner, branch, worktree and starting OID on #5981 before editing, work in a fresh .worktrees/ worktree from origin/main with signed commits and no AI co-author trailer, land through a PR linked to #5981 merged with ~/.claude/scripts/gh-merge-when-green.sh after exact-head green checks, and never delete or modify anything under ~/.coven.
Follow-up goal (after the goal above is met)
/goal After Val's retention and install-mode decisions, implement the approved generation retention with tests in sidecar_archive_tests, and implement declined-UAC recovery. Then check on real Windows that two updates leave two generations, that declining UAC leaves a working or relaunched app, and that killing node.exe shows Retry. Post the results on #5981 and close it. Use the same worktree, PR and merge rules as the end-to-end goal on #5981, and never delete or modify anything under ~/.coven.
Starting one of these with /goal is Val's go-ahead for the in-repo steps it names: an issue-owned worktree, signed commits, a PR linked here, and a guarded merge once the exact head is green. It never covers the steps listed under Needs Val. A goal ends at a recorded handoff when only those steps remain. The original acceptance criteria and decisions on this issue still bind.
Disposition: retain open. Recovery/release-note work remains; generation deletion needs a safe retention decision, and declined-UAC behavior must be reproduced.
Next step: Implement the independent recovery banner/Retry and release-note/link improvements; obtain Val's retention/install-mode decisions.
/goal Finish #5981 through scoped PRs: project supervisor recovery/cooldown into an accessible Retry banner, include release notes and open installer/release links in the system browser. Reproduce declined/failed msiexec on Windows; account for updater exit rather than assuming install returns an error. Implement generation reclamation only with safe process leases or Val's approved retention rule, respecting per-user/per-machine MSI choice. Verify two-update retention and real Windows recovery before closing; keep device and policy blockers explicit.
Load work-continuity and reread this issue, all comments and linked PRs before execution. Preserve existing owners, human decisions and dependencies; resume the canonical PR/worktree or create an issue-owned worktree from fresh origin/main only after current continuity/budget checks. Verify scoped behavior and all current-head checks, read all review feedback, and use the protected exact-head squash-merge workflow for authorized delivery. Keep shared edits and ~/.coven untouched. Record exact evidence and worktree disposition. Do not close while original acceptance remains unmet; record a named blocker and imperative next step instead. Human/device, provider, signing and release permissions remain separate.
Audit basis: current repository issue/PR inventory, recorded acceptance and continuity; latest checkpoint: #5981 (comment). This is a continuation prompt, not an execution claim or acknowledged handoff. Original messages and ownership are unchanged. Project 9 access is unavailable to this session (missing read:project); no Project status change is claimed. Historical test receipts are not new test runs.
Continuing the independent update-information slice under the active backlog-resolution request. Actor: current terminal agent session; original owner Val and original issue scope remain unchanged.
Scope: release notes through latest.json and native/fallback update UI, plus system-browser release/installer handoff with visible failure instead of embedded-browser fallback. Preserve signed-update preparation, explicit install consent and canonical release-page recovery. Supervisor cooldown/Retry is a subsequent slice; retention policy, MSI mode and Windows UAC reproduction remain gated.
Continuity: same-work with #5981; all three existing comments read. Scoped open PR/file inventory and #5981 PR search found no implementation overlap. Coverage partial: Project 9 lacks read:project; private execution liveness not queried. This receipt is recorded-only, not a claim of owner acknowledgement.
Baseline on shared c094e1e: generator 7/7, app-update 14/14, open-external and update-available checks pass; repeat in isolated tree before changes. Next: add failing release-notes data-flow regressions, then implement the metadata path. #5981 stays open until its full original acceptance is verified.
Update-information progress on fix/issue-5981-update-information at base e6a8c7f; seven local files changed, not committed/published yet.
Three failing-first regressions confirmed notes were dropped by the manifest CLI, fallback classifier and real latest-release route. Metadata fixes now pass generator 14/14, app-update 15/15 and route integration/cache/error assertions. Existing signed-artifact refusal and fallback unavailable semantics remain covered. Test wiring (2119 files), clock guard, scoped ESLint and diff checks pass. Full suites/build/browser acceptance remain outstanding; this is not completion of the slice.
Next: preserve native updater body at the UI boundary, render accessible notes, and handle system-browser failures without embedded fallback. Supervisor recovery/Retry remains subsequent work; retention/MSI/UAC gates remain unchanged. Local checkpoint: ~/.local/state/coven-cave-investigations/issue-5981/update-information/checkpoint.md. Worktree intentionally retained by this session; no cleanup requested.
Update-information slice now implemented locally: escaped release notes in the banner and Settings; system-browser installer/release handoff with explicit warning, selectable URL and Retry; signed updater failure still uses the canonical release page. Notes, cache/error semantics and install consent remain covered.
Seven component cases pass, including native adapter/controlled IPC, blocked popup and native-shell failure/retry, version recheck and warning cleanup when leaving Settings. Independent review found the stale Retry lifecycle defect; a failing-first regression reproduced it, the fix passes, and reviewer recheck has no remaining blockers.
Production build/budgets and browser acceptance pass with retries disabled (6 cases including prerequisites). Final screenshot run: 6/6 in51.9s; six320/1100 screenshots across Coven dark/light and Tide dark retained; representative images inspected. Typecheck, full lint and final scoped lint,2120-file wiring, clock guard and diff checks pass. Full app/API suites are still running; no full-suite or native Windows acceptance claim yet.
Uncommitted issue-owned worktree intentionally preserved. Next: finish the live suites, repair any demonstrated failures, then publish a scoped PR. #5981 remains open for supervisor recovery and policy/device-gated retention/MSI/UAC work.
Published the update-information slice as PR #6155: #6155
Exact head70f734f4abd601ce1836b4be894049b4130a3bc8 on fix/issue-5981-update-information; signed-off commit, hooks passed, pushed, issue-owned worktree clean and intentionally preserved.
Full local app suite passed1,468 files and API suite537 files (both terminal exit0). Metadata and route regressions, seven component cases, production browser6cases with retries0, production build/budgets, typecheck/lint/wiring/clock gates and independent review are complete. Six screenshots and full logs retained at ~/.local/state/coven-cave-investigations/issue-5981/update-information/. Hosted checks are pending; no merge or release claimed.
Next: require complete exact-head hosted checks and feedback review before guarded merge. Continue supervisor cooldown/Retry separately through the existing Windows-only SidecarStartupControl/status/retry boundary; do not invent a portable command or duplicate lifecycle owner. Retention rule, MSI mode and real Windows declined-UAC/retention acceptance remain unresolved, so #5981 stays open.
Continuing the separate Windows sidecar recovery/Retry slice under the resumed backlog-resolution goal. Actor: current terminal agent session; original owner Val preserved. #6155 remains unchanged while hosted CI runs.
Scope: connect the loaded Next shell to the existing Windows-only sidecar-startup-progress/status/retry boundary, preserve single-worker native startup and readiness/auth/navigation ownership, and verify recovery/Retry lifecycle races. Source inspection confirms no src listener and no explicit cooldown publication. No cache reclamation, MSI/UAC policy, portable command expansion or real-Windows qualification claim.
Proposed issue-owned branch fix/issue-5981-sidecar-recovery, worktree .worktrees/issue-5981-sidecar-recovery, fresh origin/main e6a8c7f. Inventory22/28 before creation; shared checkout clean. Related #6119 owner is measuring Coven daemon controls, not this packaged Node sidecar boundary. Coverage partial: Project unavailable, private execution liveness not queried; no owner takeover or delivery acknowledgement claimed.
Next: reproduce absent shell recovery presentation with controlled native IPC, then implement and validate the bounded bridge while retaining Windows hardware acceptance as an explicit remaining gate.
Published the separate sidecar-recovery slice as PR #6158: #6158
Exact head9cf76ac502d741d19b4339780541a80a8d757864 on fix/issue-5981-sidecar-recovery. DCO commit/hooks passed; pushed; worktree clean and intentionally retained for CI/follow-up.
Windows shell now consumes native progress/status, retains native-authorized Retry through cooldown, prevents duplicate pending clicks, and clears stale state on readiness/disposal. Native ownership/backoff/authentication/navigation remain unchanged. Review caught healthy Windows dev mode's unused controller falsely reporting preparing; a native failing-first test drove explicit idle initialization. Unknown-platform warning and async unlisten rejection were also reproduced/repaired; independent recheck found no blockers.
Verified:17 component cases, full app1468files, full Rust274library tests plus binary/doc completion, cargo check,26release-runtime contracts, typecheck/full lint/wiring/clocks/docs, production build/budgets and final5browser cases with retries0. Settled960/1100screenshots across Coven dark/light/Tide inspected. Existing global Rust formatting drift retained and reproduced on unchanged build.rs; changed lifecycle formatting passes. Evidence/checkpoint: ~/.local/state/coven-cave-investigations/issue-5981/sidecar-recovery/.
Hosted checks pending; not merged or released. Controlled IPC/host tests do not qualify real Windows child termination/webview recovery. Next: require exact-head CI and feedback before guarded delivery, then perform the documented isolated Windows acceptance when available. #6155 remains separate. Keep #5981 open for native qualification and original retention/MSI/UAC decisions.
Resolved a real merge conflict in #6158 after #6152 landed. Rebased the owned clean sidecar-recovery branch onto current main; sole conflict was VITEST_TESTS in scripts/run-tests.mjs. Preserved both new self-report entries and the sidecar recovery entry. Range-diff shows only that registry context change; production patch unchanged.
New head 0598dbea3820804268027fee9d0c94cc34d2d23c, replacing 9cf76ac502d741d19b4339780541a80a8d757864 with an explicit exact-old-head force lease. Local revalidation: all34 cases across recovery/self-report client/admission pass; test wiring2122 files, conflict markers, typecheck,26 release-runtime contracts and diff checks pass. Browser acceptance5/5 passed with retries0 in local development-server mode; prior production evidence remains recorded, and fresh hosted production checks are required on this new head. No claim this new browser run used production mode.
Worktree .worktrees/issue-5981-sidecar-recovery remains clean/intentionally retained by this continuation. No release/deletion. Next: inspect new-head CI and all feedback, then protected delivery once complete. #6155 stays separate; #5979 uncommitted work preserved.
Resolved #6155's actual merge conflict after #6152 landed. Rebased the owned clean update-information branch onto main; only VITEST_TESTS conflicted. Preserved both self-report entries and updater behavior coverage. Range-diff confirms the production patch is unchanged.
New head e59f65da772a489b017807f72ab6af330c8a9b34 pushed with an exact-old-head lease against 70f734f4abd601ce1836b4be894049b4130a3bc8. Revalidation passed:24 focused cases,14 manifest cases,typecheck,test wiring2122,conflict/diff checks, and actual production browser6/6 with retries disabled (59.8s), including build/bundle/standalone budgets. Canonical scratch HOME and isolated fixture state used. Logs/checkpoint under ~/.local/state/coven-cave-investigations/issue-5981/update-information/.
Clean worktree .worktrees/issue-5981-update-information intentionally retained by this continuation. No release/deletion; #5979 unfinished edits preserved. Next: inspect new-head hosted checks and full feedback, then protected delivery when green. #6158 remains separate on its rebased head.
PR6155 had a real merge conflict after inbox preservation landed on main e294a05. Rebased its clean owned branch, preserving both inbox alias registrations and the updater route alias in scripts/run-tests.mjs. Range-diff confirms unchanged production patch. Seven focused files pass through canonical argument selection/Vitest with isolated synthetic homes; test wiring2124, conflict-marker and diff checks pass.
Newhead0fabaa3b71ede455e34864859cd87863f7856ea6 pushed with exact-old-head lease e59f65d; remote head/open/mergeable readback verified. Worktree clean and retained. New-head hosted CI must pass; old-head checks are not acceptance for this head. PR6158 remains at0598dbea3, current feedback empty and four selected checks still pending without observed failures. Next: complete exact-head checks and guarded delivery; original retention/MSI/hardware gates remain unchanged.
Archived goals block from 5 November 2026, replaced by the compact work block at the top of this issue
Current goals — 5 November 2026
Plan: Smaller Cave MVP #6396 and the 4 November path-forward Revision 3, reconciled with newer repository/owner evidence. This block supersedes earlier planning checkpoints and resumption prompts where stale; original scope, acceptance criteria, human decisions and ownership below remain in force. #6396 is not a blanket start dependency. GitHub Issues remain the queue; historical Bead wording is not current workflow.
Routing: Keep. Lane: release.
Responsible owner: Existing Windows acceptance owner; GitHub: unassigned.
Next step: Verify the named isolated acceptance VM is ready with sharing disabled; exercise cache generations, declined UAC, cooldown Retry and forward-upgrade/release-note/browser behavior on pinned artifacts.
Long-running goal prompt
Work toward completing OpenCoven/coven-cave#5981 — Windows runtime cache and updater: cap generations, recover a declined UAC, retry during supervisor cooldown, show release notes.
Finish packaged Windows cache/updater acceptance: bounded runtime generations, recovery after declined UAC, usable Retry during supervisor cooldown, and correct release-note/browser/forward-upgrade behavior. Continue the designated isolated acceptance VM only after its first-run/input/Tools blocker is resolved; keep host folders, clipboard, cloud and application sharing disabled.
Read this issue's full original criteria, newer comments, linked PRs and repository AGENTS/work-continuity first. Preserve current owners and their work; continue authorized ready slices and checkpoint exact source/artifact, evidence, remaining criteria, blocker and next action here. Honor existing human decisions and operation-specific authority; this saved prompt is not an execution lease. Complete required regression/acceptance gates, preserving first failures, retries, skips and unsupported rows.
Follow-up prompt
Continue OpenCoven/coven-cave#5981 from its latest durable checkpoint, refreshing current owner, decisions, PR head and artifact identities first.
Recheck the named VM's readiness and owner; do not substitute another VM. Once guest input and Tools actually work, pin the source/target artifacts and run the next missing updater/cache row. Preserve first failures, rollback state and distinction between dispatched installer actions and completed installs.
Advance the next unblocked authorized slice; if blocked, record the exact clearing condition, responsible actor and one imperative next step. Report delivered versus locally/hosted/package/device-verified evidence separately. Do not reset completed work or infer permission from an older prompt.
Maintenance scope: Codex for Val, issue-goal update only; no familiar identity, owner takeover or runtime claim. Preserve original priorities, dependencies and current authorizations. Private execution liveness and Project fields were not inspected or changed.
Work toward completing #5981. Read AGENTS.md, work-continuity, the complete original criteria and newest owner checkpoint first; refresh current main, ownership, linked PR heads and blockers. Complete all original Windows cache/updater acceptance on the exact isolated cave-5981-acceptance-20261027 VM. Preserve its configured no-sharing boundary, existing v0.5.16/v0.5.17/v0.5.18 artifact/signature receipts and manual-MSI versus in-app-updater distinctions. The installer reached first-run setup; Tools dispatch did not establish installed Tools or usable guest access. After readiness, verify installed Windows/profile/executable identities, two-generation retention, declined-UAC sidecar recovery, crash/cooldown Retry, release notes and system-browser links, plus related signature-gated forward-upgrade/rollback limits. Preserve first failures, retries, skips and unsupported rows. Use existing scope-specific authority; close only when every original criterion is proven or explicitly dispositioned by its responsible owner.
Follow-up prompt
Continue #5981 from the latest verified checkpoint without restarting completed work. Have Val complete first-run setup and install official Parallels Tools in that named disposable VM, leaving sharing disabled. Verify guest access and artifact identity before running the matrix; preserve the unconnected input-disc limitation until safely attached. Do not operate the unrelated existing Windows VM, replay real credentials, dispatch a new release or count host screenshots/fixtures as packaged acceptance. Record the exact source/artifact, new evidence, remaining gate, responsible actor and one imperative next step on this issue.
Planning scope: This is a suggested continuation of the canonical issue, not an execution claim or new approval. Existing owners, human decisions and acceptance criteria remain authoritative. GitHub issues, paginated comments/relations, open PRs and Cave Project 9 were checked against main 2d6fda4ed0c5; private execution liveness remains unverified.
Acceptance VM ready: guest input, Tools and a disposable profile established · 2026-11-16
Continuing the user-launched #5981 goal in a Claude Code session for Val. Owner and decisions A1/B1 are unchanged. Same target VM: cave-5981-acceptance-20261027 / caa43d7e-abcf-4dc4-ae15-ce373d50c436. No other VM was touched. main is ea2f41fbc; no open PR references #5981. The latest release is now v0.5.22, so the in-app updater will offer v0.5.22, not v0.5.18.
Found state (first observations retained)
The VM was suspended (since 2026-10-28). After resume its framebuffer was entirely black, and virtual-keyboard wake keys didn't light it. A clean ACPI shutdown followed by a start restored the display.
The VM log shows 15 auto-connect attempts for three host USB devices. Every one was refused (result: -1), so no host device was ever attached.
Isolation drift: automatic gamepad sharing read on, against off in the 10-27 readback. Setting it while suspended failed. Setting it while running reverted after shutdown. Setting it while stopped held, and it now reads off. All other sharing (folders, profile, apps both ways, clipboard, cloud, SmartMount, camera, smart card, Bluetooth, location, SSH keys, hostname) reads off, and is unchanged after Tools.
First-run setup had already been completed before the 10-28 suspend, under a personal account with cloud-synced content, not a disposable profile. It is not used for acceptance. Val decided in session: run everything under a new disposable local admin, caveacc, and leave that profile untouched. The prepared sysprep/answer-file bootstrap was not run.
What unblocked input: host GUI clicks never reached the guest. prlctl send-key-event (virtual USB keyboard, JSON press/release sequences) and prlctl capture (guest framebuffer) work. Single-call key taps sometimes autorepeated, and the JSON mode fixed that.
Readiness receipt
Tools: the official image prl-tools-win-arm.iso (SHA-256 0ee8cdae6046e3ba846b3f04f1fa47c6a5160c5c8f9265c9f9d57c0dc22fd884, 27.1.0.58756), run as PTAgent.exe /install_silent from an elevated prompt. The installer returned 3010; after the restart, Parallels reports GuestTools: installed 27.1.0-58756, and prlctl exec runs as SYSTEM. Two retained exec limits: an intermittent PrlJob_* Invalid argument (handled with idempotent retries and logged), and "Not enough space for cmd pass to guest" for commands of about 6 KB.
Guest: Windows 11 Pro 26H2, build 26300.9711, ARM64. The x64 MSIs run under emulation, so this is emulation coverage, not x64 hardware. WebView2 157.0.4341.57; Edge 157.0.4341.60. No prior Cave install or cache.
UAC: EnableLUA=1, ConsentPromptBehaviorAdmin=5, PromptOnSecureDesktop=0. The last is non-default, so consent prompts appear on the normal desktop. An elevated cmd opened without a consent prompt visible in the capture; that is unexplained and retained, not assumed.
Guest changes made: the local admin caveacc (random password kept only in local evidence); auto-sign-in moved to caveacc (the previous value, AutoAdminLogon=0, is saved in the guest at C:\cave-acceptance\winlogon-before.json); the DisablePrivacyExperience=1 policy; AC display/standby/hibernate timeouts set to 0. Discs: cdrom0 changed from the Windows ISO to the Tools image; cdrom1 is the preserved input ISO (b732c41a…95ef2, now connected, E:); cdrom2 is the new setup ISO (c37b4d31…a9d07, F:).
Not yet run: every Cave acceptance row. No Cave build is installed, and no product failure has been observed.
Next: pin the v0.5.22 artifact and signature receipt; install v0.5.16 under caveacc; take the manual MSI path through v0.5.17 and v0.5.18 with generation inventories; take the in-app updater to v0.5.22 for declined UAC, Retry and the successful install; then crash/cooldown Retry, release notes and browser links. Evidence: ~/.local/state/coven-cave-investigations/issue-5981/packaged-acceptance-20261116/. #5981 stays open.
Packaged acceptance checkpoint: first failure in the in-app update path, root cause found
This continues the readiness checkpoint (#issuecomment-6915791462). Every run used the isolated cave-5981-acceptance-20261027 VM, a disposable local profile, and Explorer-launched Cave. Each MSI was verified against its release receipt before installation.
Results so far
Row
Result
Installed identity, v0.5.16 → v0.5.17 → v0.5.18 → v0.5.22 (manual MSI), then downgrade → v0.5.21 and restore → v0.5.22
Proven. Each step recorded the ProductCode, app.exe hash and bundled node.exe hash.
Two-generation retention
Proven for manual MSI updates. After each of the six ready starts, exactly the current and the previous generation remained; older generations were removed once they were unleased. A same-payload restore reused its complete generation.
In-app update is offered and the download is signature-verified (v0.5.18 → v0.5.22, v0.5.21 → v0.5.22)
Proven. The banner reads "Update v0.5.22 is verified and ready".
Release notes in the banner
Fail. The notes show the placeholder "Release artifacts are still being assembled by the release workflow." This is a separate release-workflow defect: updater-manifest does not wait for the job that replaces the placeholder. A fix is pending.
Restart & install, decline UAC, relaunch with outcome
Blocked. The install is refused before msiexec starts: "Update failed (couldn't prepare install recovery: unknown error)". No UAC prompt, install watcher or outcome file appears, and Cave stays usable (fail-closed). Repeated 3/3: v0.5.18 twice, v0.5.21 once.
Killed sidecar node.exe
Automatic revival proven: a new node owned the port about 2.8 s later.
Revival exhausted (port held)
Visible banner proven: "Local services stopped. Retry to reconnect." with Retry.
Retry
Fail. Nothing restarts. Details shows Command retry_sidecar_startup not allowed by ACL. Reopening Cave recovers.
"Open release page in system browser"
Fail. The banner says "Couldn't open system browser…" and no browser process starts.
Startup monitoring
Fail. Every launch shows "Couldn't monitor local services. Reopen Cave to reconnect."
Root cause
The packaged UI is served from the sidecar's loopback origin (http://127.0.0.1:3020). These commands are granted only by the local-only default capability, so Tauri rejects them from the real UI. A CDP diagnostic on the VM (loopback-only remote debugging, enabled for that profile only and since removed) returned not allowed by ACL for:
Commands that are granted to loopback still succeeded in the same probe. The UI maps the string rejection to "unknown error".
The callers added in #6158 and #6183 run in the loopback UI, but their grants never reached it. Unit tests mock invoke, and dev builds treat devUrl as local, so only packaged builds fail. A static sweep found the same gap in every tag from v0.5.16 to v0.5.22 and on main ea2f41fbc.
Impact: no Windows client from v0.5.16 to v0.5.22 can install an in-app update. Even after a fix ships, existing Windows installs need one manual MSI install to pick it up.
Next
I'm opening a scoped fix PR from an issue-owned worktree:
The same sweep shows other loopback-UI commands outside #5981 with the same gap: shell_pick_directory, shell_open_path, pty_snapshot and open_tailscale_app. I'll file those separately.
The decline-UAC and post-fix retention rows can be proven in packaged form only after the fix ships in a release and a newer release exists to update to. Releasing needs separate authority.
New loopback-windows-recovery (Windows, main webview, exact grants): startup status, Retry, and install-recovery arm/disarm/outcome/clear.
Update links use a new open_update_release_url (via loopback-update-links). It accepts only this repo's GitHub release pages and assets; shell_open stays off loopback (fix(tauri): restrict loopback capabilities #197).
String rejections now reach the UI instead of "unknown error".
updater-manifest now also needs checksums and partial-release-notes. Its !cancelled() gate is unchanged, so notes stay best effort, and both waited-on jobs are bounded.
Matrix (isolated VM, disposable profile, Explorer launches)
Original criterion
Status
Two generations after two updates
Proven for manual MSI updates. Six ready starts across 16→17→18→22, ↓21 and ↑22. Not provable via in-app update until #6503 ships.
Declined UAC leaves a working app with the banner's failure state
Open. Today the install is refused before UAC (fail-closed, app usable). The watcher path can be exercised only after #6503 ships and a newer release exists.
Killed node.exe → visible recovery banner with Retry
Banner proven. Retry fails until #6503 ships. Automatic single-crash revival and Reopen recovery proven.
Update banner shows notes; installer links open in Edge
Release authority. Re-proving the remaining rows needs a release containing both PRs (release N), then a newer release (N+1) to update to in-app. Existing Windows installs (v0.5.16–v0.5.22) cannot update in-app to release N, so each needs one manual MSI install. Release N's notes should say so.
A disposition for the tampered-signature row (unsupported in packaged form).
VM state
The VM is on v0.5.22 in the disposable profile. Its sidecar-runtime cache holds two generations, and auto-logon is set to the disposable profile. Retained evidence covers VM changes, disc media (a second read-only ISO carries the verified v0.5.21/v0.5.22 MSIs), first failures, retries and probes. The personal profile and every host share setting are untouched.
Checkpoint: native decline drill finds a second recovery bug (#6505)
Follows #issuecomment-6917541202.
The UI cannot reach the declined-UAC and Retry paths until #6503 ships. I drove Cave's native half of both on the same isolated VM and disposable profile.
Method:
The main webview was moved over WebView2's debug port to Cave's bundled origin, http://tauri.localhost. That origin is granted the recovery commands.
From there, v0.5.21 (manual MSI downgrade, exit 0, app cd9f488b…) ran its own install sequence against the production v0.5.22 feed: arm, signature-verified download, install, disarm on a rejected install.
This is native/diagnostic evidence, not UI acceptance. The debug switch was removed afterwards.
Declined UAC: Cave stayed closed, because the watcher can't start
msiexec /i …CovenCave-0.5.22-installer.msi /passive /promptrestart AUTOLAUNCHAPP=… started, and v0.5.21 exited.
First failure (test input): the first Esc sent through the VM keyboard didn't reach the prompt. This VM has PromptOnSecureDesktop=0, and the prompt lacked focus. After Alt+Tab, Esc declined it.
Windows Installer reported status 1602. No watcher process ever appeared, nothing was recorded, and Cave stayed closed.
Run 2 (WMI process start/stop trace):
install-watch-9772.exe started and exited 3 ms later with 0xC000042C (STATUS_ELEVATION_REQUIRED).
consent.exe exited 1223 and msiexec exited 1602.
Reopening Cave from Start worked, and both cache generations survived.
A/B root-cause control (same app.exe bytes, profile user, a malformed watcher flag that should exit 2):
Cause: Windows UAC installer detection (EnableInstallerDetection=1, the default) refuses unmanifested executables whose names look like installers. Tauri's default manifest has no requestedExecutionLevel. The same naming is on main (windows_update_recovery.rs:346).
Run 3: the same bytes, started as cave-recovery-watch.exe with Cave's exact watcher arguments (one-shot interactive task as the profile user):
waited for Cave to exit;
found its msiexec, which exited 1602 after the decline;
wrote {"kind":"cancelled","exitCode":1602,…};
relaunched Cave, whose sidecar returned on 3020.
What the relaunched UI showed: only a fresh "Update available - v0.5.22" offer. Its loopback page gets update_install_outcome "not allowed by ACL", while the bundled origin returned the record. The record was then cleared.
#6503 alone would not fix this row; it needs #6505 as well.
Retry: the native path works
Holding 127.0.0.1:3020 after a kill gave the status "failed, canRetry: true" ("Port 3020 is held by another program…").
After the port was released, retry_sidecar_startup from the bundled origin restarted the sidecar within 4 s: a new gated child, with node owning 3020.
Fails natively. The watcher is blocked by installer detection; fix in #6505. With a neutral name, the watcher's decline handling, outcome record and relaunch are proven natively. The banner still needs #6503. End-to-end UI proof needs a release carrying #6503 and #6505, then a newer one.
#6505 CI: head 69b98cf49fb56b98f225562328426512e521ef9a passes everything, including the required Frontend build and the Windows startup native tests (Windows run 43882509798, CI run 43882510032).
The first head (26c2d9fe6) failed that Windows lane on "Unexpected test count". All 7 windows_update_recovery tests passed on Windows, including the new name test, but windows-startup.yml pinned the count at 6. The follow-up commit raises the pin and its contract to 7. There are no review comments on #6503, #6504 or #6505. All three wait on merge authority.
Checkpoint: fixes merged, owner dispositions recorded, re-proof plan
@BunsDev answered the open decisions in this session.
1. Merge: all three fix PRs are merged
Each was squash-merged over REST with an exact-head guard. The guard pinned the head SHA, required a successful Frontend build on that head with every check complete, confirmed no review activity, and refused any squash message that would close #5981.
Heads: GitHub deleted the remote branches on merge; the heads are retained at refs/pull/6503/head, refs/pull/6504/head and refs/pull/6505/head.
Local worktrees: the three issue-owned worktrees (.worktrees/issue-5981-loopback-acl, issue-5981-manifest-notes, issue-5981-watcher-name) are preserved. Retiring them needs separate authority. Note that the checkout is at the 28-worktree budget.
2. Releases: the owner cuts them
The agent re-runs the VM rows afterwards. Release N means the first release containing 510c8f437; N+1 is a later release to update to.
After N publishes:
From v0.5.22 on the VM, check that the offer for N shows N's real notes, not the placeholder (notes row). Also check N's latest.json.
Install N by manual MSI. Existing v0.5.16–v0.5.22 installs need this one manual step, so N's release notes should say so.
On N, check: no "Couldn't monitor local services" banner, crash/cooldown banner with a working Retry, and two-generation retention.
After N+1 publishes:
From N: in-app offer with notes, then Open release page opens Edge (links row).
Restart & install with a declined UAC must relaunch N with the "cancelled" banner (declined-UAC row).
Retry update and accept UAC, then confirm retention {N, N+1}.
3. Tampered-signature row: dispositioned by the owner
The owner accepts unit-test coverage. Exercising this row in packaged acceptance would need a forged feed, which this issue rules out.
Coverage:tauri-plugin-updater 2.14.1's own tests. Examples: install_rejects_bytes_that_do_not_match_the_signature, the wrong-public-key verify cases, and the signed-version mismatch cases.
Packaged evidence: every in-app download on the VM passed through signature verification ("verified and ready" for 0.5.18→0.5.22 and 0.5.21→0.5.22; a 114,069,504-byte verified download in the native drill).
4. Close bar: owner decision
#5981 stays open until the declined-UAC banner, Retry, release notes and system-browser link rows pass in-app on a release that carries these fixes. Native proof alone does not close it.
Still separate:#6502 (folder picker, open path, PTY snapshot and Tailscale grants on the packaged origin) awaits owner direction.
VM: v0.5.22 runs in the disposable profile, ready for the release-N rows. The personal profile and host share settings are untouched.
lane:releaseLane: releases, packaging, CI policy and repository operationsstate:needs-deviceWaits on a physical device, VM, human pass or upstream producer
Activity
BunsDev commentedon Oct 14, 2026
Long-running goal: cave-5981
The original issue acceptance, human-authored dependencies, decisions and approval gates remain binding. Resume the existing owner/branch/worktree recorded here; revalidate current state before execution. No ownership, implementation lease, merge or release authority is created by this goal. Actor: Val's backlog-triage session; no familiar identity. Coverage: repository issues, paginated comments, open PRs and Cave Project membership; private execution-store liveness is unknown. This is a durable goal definition, recorded-only, not an acknowledged handoff.
BunsDev commentedon Oct 18, 2026
Goals for #5981, refreshed 2026-10-17
This replaces the 2026-10-14 goal, which had no follow-up goal. State re-checked against
origin/main301ac7f19.Where it stands. Nothing has landed, and two premises need correcting:
sidecar_archive_cleanup.rs:66-70leaves reclaiming generations to uninstall, because nothing proves an old generation is unused.sidecar_archive_tests.rs:641-649pins that behaviour.ShellExecuteWand then always exits, so a declined prompt most likely leaves Cave closed with nothing relaunching it. It does not return an error.No app listener shows the
sidecar-startup-progresscooldown (4 attempts, then 900 s), and there is no Retry.latest.jsoncarries no notes (generate-latest-json.mjs:87), and banner links open in the in-app browser (update-available.tsx).Remaining
latest.json, shown in the banner; links that open in the system browsermsiexecrecovery or relaunch, reproduced on WindowsNeeds Val: The retention rule, and the per-user versus per-machine MSI mode from #5970, which may remove the UAC prompt entirely.
End-to-end goal
Follow-up goal (after the goal above is met)
Starting one of these with
/goalis Val's go-ahead for the in-repo steps it names: an issue-owned worktree, signed commits, a PR linked here, and a guarded merge once the exact head is green. It never covers the steps listed under Needs Val. A goal ends at a recorded handoff when only those steps remain. The original acceptance criteria and decisions on this issue still bind.Coven-Harness: claude-code / claude-opus-5-5
BunsDev commentedon Oct 20, 2026
Updated long-running goal — 2026-10-20
Disposition: retain open. Recovery/release-note work remains; generation deletion needs a safe retention decision, and declined-UAC behavior must be reproduced.
Next step: Implement the independent recovery banner/Retry and release-note/link improvements; obtain Val's retention/install-mode decisions.
Audit basis: current repository issue/PR inventory, recorded acceptance and continuity; latest checkpoint: #5981 (comment). This is a continuation prompt, not an execution claim or acknowledged handoff. Original messages and ownership are unchanged. Project 9 access is unavailable to this session (missing read:project); no Project status change is claimed. Historical test receipts are not new test runs.
BunsDev commentedon Oct 21, 2026
Continuing the independent update-information slice under the active backlog-resolution request. Actor: current terminal agent session; original owner Val and original issue scope remain unchanged.
Scope: release notes through latest.json and native/fallback update UI, plus system-browser release/installer handoff with visible failure instead of embedded-browser fallback. Preserve signed-update preparation, explicit install consent and canonical release-page recovery. Supervisor cooldown/Retry is a subsequent slice; retention policy, MSI mode and Windows UAC reproduction remain gated.
Branch: fix/issue-5981-update-information. Worktree: .worktrees/issue-5981-update-information. Starting origin/main: e6a8c7f. 21 existing registered worktrees before creation, below budget 28; foreign edits preserved.
Continuity: same-work with #5981; all three existing comments read. Scoped open PR/file inventory and #5981 PR search found no implementation overlap. Coverage partial: Project 9 lacks read:project; private execution liveness not queried. This receipt is recorded-only, not a claim of owner acknowledgement.
Baseline on shared c094e1e: generator 7/7, app-update 14/14, open-external and update-available checks pass; repeat in isolated tree before changes. Next: add failing release-notes data-flow regressions, then implement the metadata path. #5981 stays open until its full original acceptance is verified.
BunsDev commentedon Oct 21, 2026
Update-information progress on fix/issue-5981-update-information at base e6a8c7f; seven local files changed, not committed/published yet.
Three failing-first regressions confirmed notes were dropped by the manifest CLI, fallback classifier and real latest-release route. Metadata fixes now pass generator 14/14, app-update 15/15 and route integration/cache/error assertions. Existing signed-artifact refusal and fallback unavailable semantics remain covered. Test wiring (2119 files), clock guard, scoped ESLint and diff checks pass. Full suites/build/browser acceptance remain outstanding; this is not completion of the slice.
Next: preserve native updater body at the UI boundary, render accessible notes, and handle system-browser failures without embedded fallback. Supervisor recovery/Retry remains subsequent work; retention/MSI/UAC gates remain unchanged. Local checkpoint: ~/.local/state/coven-cave-investigations/issue-5981/update-information/checkpoint.md. Worktree intentionally retained by this session; no cleanup requested.
BunsDev commentedon Oct 21, 2026
Update-information slice now implemented locally: escaped release notes in the banner and Settings; system-browser installer/release handoff with explicit warning, selectable URL and Retry; signed updater failure still uses the canonical release page. Notes, cache/error semantics and install consent remain covered.
Seven component cases pass, including native adapter/controlled IPC, blocked popup and native-shell failure/retry, version recheck and warning cleanup when leaving Settings. Independent review found the stale Retry lifecycle defect; a failing-first regression reproduced it, the fix passes, and reviewer recheck has no remaining blockers.
Production build/budgets and browser acceptance pass with retries disabled (6 cases including prerequisites). Final screenshot run: 6/6 in51.9s; six320/1100 screenshots across Coven dark/light and Tide dark retained; representative images inspected. Typecheck, full lint and final scoped lint,2120-file wiring, clock guard and diff checks pass. Full app/API suites are still running; no full-suite or native Windows acceptance claim yet.
Uncommitted issue-owned worktree intentionally preserved. Next: finish the live suites, repair any demonstrated failures, then publish a scoped PR. #5981 remains open for supervisor recovery and policy/device-gated retention/MSI/UAC work.
BunsDev commentedon Oct 21, 2026
Published the update-information slice as PR #6155: #6155
Exact head70f734f4abd601ce1836b4be894049b4130a3bc8 on fix/issue-5981-update-information; signed-off commit, hooks passed, pushed, issue-owned worktree clean and intentionally preserved.
Full local app suite passed1,468 files and API suite537 files (both terminal exit0). Metadata and route regressions, seven component cases, production browser6cases with retries0, production build/budgets, typecheck/lint/wiring/clock gates and independent review are complete. Six screenshots and full logs retained at ~/.local/state/coven-cave-investigations/issue-5981/update-information/. Hosted checks are pending; no merge or release claimed.
Next: require complete exact-head hosted checks and feedback review before guarded merge. Continue supervisor cooldown/Retry separately through the existing Windows-only SidecarStartupControl/status/retry boundary; do not invent a portable command or duplicate lifecycle owner. Retention rule, MSI mode and real Windows declined-UAC/retention acceptance remain unresolved, so #5981 stays open.
BunsDev commentedon Oct 21, 2026
Continuing the separate Windows sidecar recovery/Retry slice under the resumed backlog-resolution goal. Actor: current terminal agent session; original owner Val preserved. #6155 remains unchanged while hosted CI runs.
Scope: connect the loaded Next shell to the existing Windows-only sidecar-startup-progress/status/retry boundary, preserve single-worker native startup and readiness/auth/navigation ownership, and verify recovery/Retry lifecycle races. Source inspection confirms no src listener and no explicit cooldown publication. No cache reclamation, MSI/UAC policy, portable command expansion or real-Windows qualification claim.
Proposed issue-owned branch fix/issue-5981-sidecar-recovery, worktree .worktrees/issue-5981-sidecar-recovery, fresh origin/main e6a8c7f. Inventory22/28 before creation; shared checkout clean. Related #6119 owner is measuring Coven daemon controls, not this packaged Node sidecar boundary. Coverage partial: Project unavailable, private execution liveness not queried; no owner takeover or delivery acknowledgement claimed.
Next: reproduce absent shell recovery presentation with controlled native IPC, then implement and validate the bounded bridge while retaining Windows hardware acceptance as an explicit remaining gate.
BunsDev commentedon Oct 21, 2026
Published the separate sidecar-recovery slice as PR #6158: #6158
Exact head9cf76ac502d741d19b4339780541a80a8d757864 on fix/issue-5981-sidecar-recovery. DCO commit/hooks passed; pushed; worktree clean and intentionally retained for CI/follow-up.
Windows shell now consumes native progress/status, retains native-authorized Retry through cooldown, prevents duplicate pending clicks, and clears stale state on readiness/disposal. Native ownership/backoff/authentication/navigation remain unchanged. Review caught healthy Windows dev mode's unused controller falsely reporting preparing; a native failing-first test drove explicit idle initialization. Unknown-platform warning and async unlisten rejection were also reproduced/repaired; independent recheck found no blockers.
Verified:17 component cases, full app1468files, full Rust274library tests plus binary/doc completion, cargo check,26release-runtime contracts, typecheck/full lint/wiring/clocks/docs, production build/budgets and final5browser cases with retries0. Settled960/1100screenshots across Coven dark/light/Tide inspected. Existing global Rust formatting drift retained and reproduced on unchanged build.rs; changed lifecycle formatting passes. Evidence/checkpoint: ~/.local/state/coven-cave-investigations/issue-5981/sidecar-recovery/.
Hosted checks pending; not merged or released. Controlled IPC/host tests do not qualify real Windows child termination/webview recovery. Next: require exact-head CI and feedback before guarded delivery, then perform the documented isolated Windows acceptance when available. #6155 remains separate. Keep #5981 open for native qualification and original retention/MSI/UAC decisions.
BunsDev commentedon Oct 21, 2026
Resolved a real merge conflict in #6158 after #6152 landed. Rebased the owned clean sidecar-recovery branch onto current main; sole conflict was VITEST_TESTS in scripts/run-tests.mjs. Preserved both new self-report entries and the sidecar recovery entry. Range-diff shows only that registry context change; production patch unchanged.
New head
0598dbea3820804268027fee9d0c94cc34d2d23c, replacing9cf76ac502d741d19b4339780541a80a8d757864with an explicit exact-old-head force lease. Local revalidation: all34 cases across recovery/self-report client/admission pass; test wiring2122 files, conflict markers, typecheck,26 release-runtime contracts and diff checks pass. Browser acceptance5/5 passed with retries0 in local development-server mode; prior production evidence remains recorded, and fresh hosted production checks are required on this new head. No claim this new browser run used production mode.Worktree .worktrees/issue-5981-sidecar-recovery remains clean/intentionally retained by this continuation. No release/deletion. Next: inspect new-head CI and all feedback, then protected delivery once complete. #6155 stays separate; #5979 uncommitted work preserved.
BunsDev commentedon Oct 21, 2026
Resolved #6155's actual merge conflict after #6152 landed. Rebased the owned clean update-information branch onto main; only VITEST_TESTS conflicted. Preserved both self-report entries and updater behavior coverage. Range-diff confirms the production patch is unchanged.
New head
e59f65da772a489b017807f72ab6af330c8a9b34pushed with an exact-old-head lease against70f734f4abd601ce1836b4be894049b4130a3bc8. Revalidation passed:24 focused cases,14 manifest cases,typecheck,test wiring2122,conflict/diff checks, and actual production browser6/6 with retries disabled (59.8s), including build/bundle/standalone budgets. Canonical scratch HOME and isolated fixture state used. Logs/checkpoint under ~/.local/state/coven-cave-investigations/issue-5981/update-information/.Clean worktree .worktrees/issue-5981-update-information intentionally retained by this continuation. No release/deletion; #5979 unfinished edits preserved. Next: inspect new-head hosted checks and full feedback, then protected delivery when green. #6158 remains separate on its rebased head.
BunsDev commentedon Oct 21, 2026
PR6155 had a real merge conflict after inbox preservation landed on main e294a05. Rebased its clean owned branch, preserving both inbox alias registrations and the updater route alias in scripts/run-tests.mjs. Range-diff confirms unchanged production patch. Seven focused files pass through canonical argument selection/Vitest with isolated synthetic homes; test wiring2124, conflict-marker and diff checks pass.
Newhead0fabaa3b71ede455e34864859cd87863f7856ea6 pushed with exact-old-head lease e59f65d; remote head/open/mergeable readback verified. Worktree clean and retained. New-head hosted CI must pass; old-head checks are not acceptance for this head. PR6158 remains at0598dbea3, current feedback empty and four selected checks still pending without observed failures. Next: complete exact-head checks and guarded delivery; original retention/MSI/hardware gates remain unchanged.
Show Windows sidecar recovery and native Retry in the shell
31 remaining items
BunsDev commentedon Nov 12, 2026
Archived goals block from 5 November 2026, replaced by the compact work block at the top of this issue
Current goals — 5 November 2026
Plan: Smaller Cave MVP #6396 and the 4 November path-forward Revision 3, reconciled with newer repository/owner evidence. This block supersedes earlier planning checkpoints and resumption prompts where stale; original scope, acceptance criteria, human decisions and ownership below remain in force. #6396 is not a blanket start dependency. GitHub Issues remain the queue; historical Bead wording is not current workflow.
Routing: Keep. Lane: release.
Responsible owner: Existing Windows acceptance owner; GitHub: unassigned.
Evidence to resume from: Latest issue checkpoint.
Next step: Verify the named isolated acceptance VM is ready with sharing disabled; exercise cache generations, declined UAC, cooldown Retry and forward-upgrade/release-note/browser behavior on pinned artifacts.
Long-running goal prompt
Follow-up prompt
Maintenance scope: Codex for Val, issue-goal update only; no familiar identity, owner takeover or runtime claim. Preserve original priorities, dependencies and current authorizations. Private execution liveness and Project fields were not inspected or changed.
chore(release): stamp v0.5.21
BunsDev commentedon Nov 16, 2026
Long-running goal prompt
Work toward completing #5981. Read AGENTS.md, work-continuity, the complete original criteria and newest owner checkpoint first; refresh current main, ownership, linked PR heads and blockers. Complete all original Windows cache/updater acceptance on the exact isolated cave-5981-acceptance-20261027 VM. Preserve its configured no-sharing boundary, existing v0.5.16/v0.5.17/v0.5.18 artifact/signature receipts and manual-MSI versus in-app-updater distinctions. The installer reached first-run setup; Tools dispatch did not establish installed Tools or usable guest access. After readiness, verify installed Windows/profile/executable identities, two-generation retention, declined-UAC sidecar recovery, crash/cooldown Retry, release notes and system-browser links, plus related signature-gated forward-upgrade/rollback limits. Preserve first failures, retries, skips and unsupported rows. Use existing scope-specific authority; close only when every original criterion is proven or explicitly dispositioned by its responsible owner.
Follow-up prompt
Continue #5981 from the latest verified checkpoint without restarting completed work. Have Val complete first-run setup and install official Parallels Tools in that named disposable VM, leaving sharing disabled. Verify guest access and artifact identity before running the matrix; preserve the unconnected input-disc limitation until safely attached. Do not operate the unrelated existing Windows VM, replay real credentials, dispatch a new release or count host screenshots/fixtures as packaged acceptance. Record the exact source/artifact, new evidence, remaining gate, responsible actor and one imperative next step on this issue.
Evidence to refresh: Issue and latest checkpoint.
Planning scope: This is a suggested continuation of the canonical issue, not an execution claim or new approval. Existing owners, human decisions and acceptance criteria remain authoritative. GitHub issues, paginated comments/relations, open PRs and Cave Project 9 were checked against main
2d6fda4ed0c5; private execution liveness remains unverified.BunsDev commentedon Nov 16, 2026
Acceptance VM ready: guest input, Tools and a disposable profile established · 2026-11-16
Continuing the user-launched #5981 goal in a Claude Code session for Val. Owner and decisions A1/B1 are unchanged. Same target VM:
cave-5981-acceptance-20261027/caa43d7e-abcf-4dc4-ae15-ce373d50c436. No other VM was touched.mainisea2f41fbc; no open PR references #5981. The latest release is now v0.5.22, so the in-app updater will offer v0.5.22, not v0.5.18.Found state (first observations retained)
result: -1), so no host device was ever attached.on, againstoffin the 10-27 readback. Setting it while suspended failed. Setting it while running reverted after shutdown. Setting it while stopped held, and it now readsoff. All other sharing (folders, profile, apps both ways, clipboard, cloud, SmartMount, camera, smart card, Bluetooth, location, SSH keys, hostname) reads off, and is unchanged after Tools.caveacc, and leave that profile untouched. The prepared sysprep/answer-file bootstrap was not run.What unblocked input: host GUI clicks never reached the guest.
prlctl send-key-event(virtual USB keyboard, JSON press/release sequences) andprlctl capture(guest framebuffer) work. Single-call key taps sometimes autorepeated, and the JSON mode fixed that.Readiness receipt
prl-tools-win-arm.iso(SHA-2560ee8cdae6046e3ba846b3f04f1fa47c6a5160c5c8f9265c9f9d57c0dc22fd884, 27.1.0.58756), run asPTAgent.exe /install_silentfrom an elevated prompt. The installer returned 3010; after the restart, Parallels reportsGuestTools: installed 27.1.0-58756, andprlctl execruns as SYSTEM. Two retained exec limits: an intermittentPrlJob_* Invalid argument(handled with idempotent retries and logged), and "Not enough space for cmd pass to guest" for commands of about 6 KB.EnableLUA=1,ConsentPromptBehaviorAdmin=5,PromptOnSecureDesktop=0. The last is non-default, so consent prompts appear on the normal desktop. An elevatedcmdopened without a consent prompt visible in the capture; that is unexplained and retained, not assumed.caveacc(random password kept only in local evidence); auto-sign-in moved tocaveacc(the previous value, AutoAdminLogon=0, is saved in the guest atC:\cave-acceptance\winlogon-before.json); theDisablePrivacyExperience=1policy; AC display/standby/hibernate timeouts set to 0. Discs: cdrom0 changed from the Windows ISO to the Tools image; cdrom1 is the preserved input ISO (b732c41a…95ef2, now connected, E:); cdrom2 is the new setup ISO (c37b4d31…a9d07, F:).Not yet run: every Cave acceptance row. No Cave build is installed, and no product failure has been observed.
Next: pin the v0.5.22 artifact and signature receipt; install v0.5.16 under
caveacc; take the manual MSI path through v0.5.17 and v0.5.18 with generation inventories; take the in-app updater to v0.5.22 for declined UAC, Retry and the successful install; then crash/cooldown Retry, release notes and browser links. Evidence:~/.local/state/coven-cave-investigations/issue-5981/packaged-acceptance-20261116/. #5981 stays open.BunsDev commentedon Nov 16, 2026
Packaged acceptance checkpoint: first failure in the in-app update path, root cause found
This continues the readiness checkpoint (#issuecomment-6915791462). Every run used the isolated
cave-5981-acceptance-20261027VM, a disposable local profile, and Explorer-launched Cave. Each MSI was verified against its release receipt before installation.Results so far
app.exehash and bundlednode.exehash.updater-manifestdoes not wait for the job that replaces the placeholder. A fix is pending.node.exeCommand retry_sidecar_startup not allowed by ACL. Reopening Cave recovers.Root cause
The packaged UI is served from the sidecar's loopback origin (
http://127.0.0.1:3020). These commands are granted only by the local-onlydefaultcapability, so Tauri rejects them from the real UI. A CDP diagnostic on the VM (loopback-only remote debugging, enabled for that profile only and since removed) returnednot allowed by ACLfor:sidecar_startup_status,retry_sidecar_startuparm_update_install_recovery,disarm_update_install_recoveryupdate_install_outcome,clear_update_install_outcomeshell_openCommands that are granted to loopback still succeeded in the same probe. The UI maps the string rejection to "unknown error".
The callers added in #6158 and #6183 run in the loopback UI, but their grants never reached it. Unit tests mock
invoke, and dev builds treatdevUrlas local, so only packaged builds fail. A static sweep found the same gap in every tag from v0.5.16 to v0.5.22 and on mainea2f41fbc.Impact: no Windows client from v0.5.16 to v0.5.22 can install an in-app update. Even after a fix ships, existing Windows installs need one manual MSI install to pick it up.
Next
I'm opening a scoped fix PR from an issue-owned worktree:
mainloopback webview, add a narrow update-link opener (following theopen_x_oauth_urlprecedent, not a loopbackshell_opengrant), surface string rejections, and add a contract test that the loopback-served UI's invokes are grantedfix/issue-5981-loopback-recovery-acl.worktrees/issue-5981-loopback-aclea2f41fbcf618cc80a1b6ab6ce03b912a347ea26The same sweep shows other loopback-UI commands outside #5981 with the same gap:
shell_pick_directory,shell_open_path,pty_snapshotandopen_tailscale_app. I'll file those separately.The decline-UAC and post-fix retention rows can be proven in packaged form only after the fix ships in a release and a newer release exists to update to. Releasing needs separate authority.
BunsDev commentedon Nov 16, 2026
Checkpoint: fix PRs open, remaining rows and owner decisions
Follows #issuecomment-6916909099.
Pull requests (both
Refs #5981; neither closes the issue)loopback-windows-recovery(Windows,mainwebview, exact grants): startup status, Retry, and install-recovery arm/disarm/outcome/clear.open_update_release_url(vialoopback-update-links). It accepts only this repo's GitHub release pages and assets;shell_openstays off loopback (fix(tauri): restrict loopback capabilities #197).maincapability grants. A negative control showed it names exactly the six Windows runtime cache and updater: cap generations, recover a declined UAC, retry during supervisor cooldown, show release notes #5981 commands..worktrees/issue-5981-loopback-acl, branchfix/issue-5981-loopback-recovery-acl, startea2f41fbc.updater-manifestnow also needschecksumsandpartial-release-notes. Its!cancelled()gate is unchanged, so notes stay best effort, and both waited-on jobs are bounded..worktrees/issue-5981-manifest-notes, branchfix/issue-5981-updater-manifest-notes, startea2f41fbc.shell_pick_directory,shell_open_path,pty_snapshot,open_tailscale_app), for owner direction.CI. All runs passed on attempt 1, and neither PR has review comments yet.
c75238985d546cfeb60df154a2b883fbb0a4a98b: CI 43871728618 and Windows startup native validation 43871728208. Frontend build, app/API/mobile tests, typecheck, lint, test wiring, all six E2E shards, agentic E2E, Windows startup native tests and CodeQL all passed. iOS was skipped by path.bbc4f89d393fbe4d88d731ad39f257ee2b09cb48: CI 43872221973. Frontend build, app/API/mobile tests, typecheck, lint, test wiring and CodeQL all passed. E2E and iOS were skipped by path.Matrix (isolated VM, disposable profile, Explorer launches)
Decisions needed from the owner
VM state
The VM is on v0.5.22 in the disposable profile. Its sidecar-runtime cache holds two generations, and auto-logon is set to the disposable profile. Retained evidence covers VM changes, disc media (a second read-only ISO carries the verified v0.5.21/v0.5.22 MSIs), first failures, retries and probes. The personal profile and every host share setting are untouched.
BunsDev commentedon Nov 16, 2026
Checkpoint: native decline drill finds a second recovery bug (#6505)
Follows #issuecomment-6917541202.
The UI cannot reach the declined-UAC and Retry paths until #6503 ships. I drove Cave's native half of both on the same isolated VM and disposable profile.
Method:
http://tauri.localhost. That origin is granted the recovery commands.cd9f488b…) ran its own install sequence against the production v0.5.22 feed: arm, signature-verified download, install, disarm on a rejected install.Declined UAC: Cave stayed closed, because the watcher can't start
msiexec /i …CovenCave-0.5.22-installer.msi /passive /promptrestart AUTOLAUNCHAPP=…started, and v0.5.21 exited.PromptOnSecureDesktop=0, and the prompt lacked focus. After Alt+Tab, Esc declined it.install-watch-9772.exestarted and exited 3 ms later with0xC000042C(STATUS_ELEVATION_REQUIRED).consent.exeexited 1223 andmsiexecexited 1602.app.exebytes, profile user, a malformed watcher flag that should exit 2):install-watch-probe.exe: error 740, "requires elevation"update-probe.exe: error 740cave-recovery-probe.exe: exit 2app-copy-probe.exe: exit 2EnableInstallerDetection=1, the default) refuses unmanifested executables whose names look like installers. Tauri's default manifest has norequestedExecutionLevel. The same naming is onmain(windows_update_recovery.rs:346).cave-recovery-watch.exewith Cave's exact watcher arguments (one-shot interactive task as the profile user):msiexec, which exited 1602 after the decline;{"kind":"cancelled","exitCode":1602,…};update_install_outcome"not allowed by ACL", while the bundled origin returned the record. The record was then cleared.#6503 alone would not fix this row; it needs #6505 as well.
Retry: the native path works
retry_sidecar_startupfrom the bundled origin restarted the sidecar within 4 s: a new gated child, withnodeowning 3020.New PR
cave-recovery-<pid>.exe..worktrees/issue-5981-watcher-name, branchfix/issue-5981-recovery-watcher-name, startea2f41fbcf618cc80a1b6ab6ce03b912a347ea26, owner: this Windows runtime cache and updater: cap generations, recover a declined UAC, retry during supervisor cooldown, show release notes #5981 session. That makes 28 of 28 registered worktrees.Matrix delta
VM state:
85b3c1db…), launched from Explorer, running G22.Owner decisions: unchanged from the previous checkpoint. #6505 joins #6503 and #6504 for merge authority.
Count the watcher name test in the Windows native lane
BunsDev commentedon Nov 16, 2026
#6505 CI: head
69b98cf49fb56b98f225562328426512e521ef9apasses everything, including the requiredFrontend buildand the Windows startup native tests (Windows run 43882509798, CI run 43882510032).The first head (
26c2d9fe6) failed that Windows lane on "Unexpected test count". All 7windows_update_recoverytests passed on Windows, including the new name test, butwindows-startup.ymlpinned the count at 6. The follow-up commit raises the pin and its contract to 7. There are no review comments on #6503, #6504 or #6505. All three wait on merge authority.Start the Windows update recovery watcher under a neutral file name
Publish real release notes in the updater manifest
Grant the packaged UI its Windows recovery and update-link commands
BunsDev commentedon Nov 17, 2026
Checkpoint: fixes merged, owner dispositions recorded, re-proof plan
@BunsDev answered the open decisions in this session.
1. Merge: all three fix PRs are merged
Each was squash-merged over REST with an exact-head guard. The guard pinned the head SHA, required a successful
Frontend buildon that head with every check complete, confirmed no review activity, and refused any squash message that would close #5981.69b98cf49fb56b98f225562328426512e521ef9aca7cfa0be959e78386d5172a59309c6563b07464latest.jsonbbc4f89d393fbe4d88d731ad39f257ee2b09cb489f4326f74951f52bf8426e48fef04a94a7189f9ac75238985d546cfeb60df154a2b883fbb0a4a98b510c8f4378bb5d1ec70f334fe0e6729002755d67mainhad gained only the other two merges, and neither touchedinvoke()or capabilities. The merge tree was conflict-free.main@510c8f437: all green. That covers CI push 43994270128, Main health 43996613981,Frontend build, all six E2E shards and agentic E2E.refs/pull/6503/head,refs/pull/6504/headandrefs/pull/6505/head..worktrees/issue-5981-loopback-acl,issue-5981-manifest-notes,issue-5981-watcher-name) are preserved. Retiring them needs separate authority. Note that the checkout is at the 28-worktree budget.2. Releases: the owner cuts them
The agent re-runs the VM rows afterwards. Release N means the first release containing
510c8f437; N+1 is a later release to update to.latest.json.3. Tampered-signature row: dispositioned by the owner
The owner accepts unit-test coverage. Exercising this row in packaged acceptance would need a forged feed, which this issue rules out.
tauri-plugin-updater2.14.1's own tests. Examples:install_rejects_bytes_that_do_not_match_the_signature, the wrong-public-keyverifycases, and the signed-version mismatch cases.4. Close bar: owner decision
#5981 stays open until the declined-UAC banner, Retry, release notes and system-browser link rows pass in-app on a release that carries these fixes. Native proof alone does not close it.
Still separate: #6502 (folder picker, open path, PTY snapshot and Tailscale grants on the packaged origin) awaits owner direction.
VM: v0.5.22 runs in the disposable profile, ready for the release-N rows. The personal profile and host share settings are untouched.