Skip to content

fix(v0.9.3): self-spawn quorumrag.exe Session-1 bridge, sign quorum-desktop.exe & bound drive probes - #102

Merged
oyesanyf merged 1 commit into
mainfrom
pr/solo-quorumrag-20261124-184405
Nov 25, 2026
Merged

oyesanyf merged 1 commit into
mainfrom
pr/solo-quorumrag-20261124-184405

Conversation

@oyesanyf

Copy link
Copy Markdown
Owner

Summary

Fixes the root cause behind Windows 11 Smart App Control (CreateProcessAsUserW failed (err=4551)) blocking the Session-1 Google Drive (G:\My Drive) bridge under installed LocalSystem (Session 0) services, and releases QuorumRAG v0.9.3:

  1. Fix quorum-desktop.exe Authenticode Signing Bug in scripts/package.ps1 & scripts/submit_to_microsoft.ps1:

    • Root cause: scripts/package.ps1 invoked powershell -File scripts\submit_to_microsoft.ps1 ... -Files $ReleaseExe, $DesktopExe. PowerShell's -File CLI parser splits comma-separated array arguments across positional parameters, silently dropping $DesktopExe so quorum-desktop.exe was embedded into the MSI completely unsigned (Status: NotSigned) and immediately blocked by Windows 11 Smart App Control (err=4551) when Session 0 spawned quorum-desktop.exe --session-fs-bridge.
    • Fix: Invoke & $SubmitScript -Files @($ReleaseExe, $DesktopExe) directly in-process in scripts/package.ps1, harden scripts/submit_to_microsoft.ps1 to also split comma-delimited entries, and add a fail-closed Authenticode parity check that fails packaging immediately if quorumrag.exe is signed while quorum-desktop.exe is NotSigned.
  2. Primary quorumrag.exe --session-fs-bridge Self-Spawn (Zero Smart App Control Popups):

    • Wired session_bridge_server::run_session_fs_bridge directly into crates/quorum-daemon/src/main.rs at fast-path startup (before Clap/Tokio/tracing/DB init) so quorumrag.exe --session-fs-bridge --parent-pid <pid> hosts the exact same silent loopback Session-1 bridge with zero console window (CREATE_NO_WINDOW).
    • Updated ensure_win_session_fs_bridge() to spawn std::env::current_exe() (quorumrag.exe) first (guaranteed permitted by Windows 11 Smart App Control with zero desktop popups because it is the exact binary already executing the service, while demand-paging keeps bridge RSS minimal), with quorum-desktop.exe as secondary fallback.
  3. Bounded Parallel Drive Enumeration & 10s Drive Cache (Anti-Dokan-Stall):

    • Upgraded session_bridge_server.rs:enumerate_session_drives() to perform instant (0 ms) kernel GetDriveTypeW + QueryDosDeviceW + HKCU Google Drive SyncTargets registry discovery, followed by parallel per-drive metadata enrichment capped at a strict 1.2 s deadline with a 10-second cache.
    • Prevents a transiently busy/reconnecting Dokan virtual mount (G:\) from stalling /bridge/drives or hiding mounted drives (C:\, D:\, G:\) behind client timeouts.
  4. Regression Tests & Version Bump (0.9.2 -> 0.9.3):

    • Added quorumrag_binary_fallback_hosts_session_fs_bridge in crates/quorum-daemon/tests/session_fs_bridge_tests.rs verifying both quorum-desktop and quorumrag binaries host the authenticated Session-1 bridge cleanly.
    • Added fail-closed signing parity assertions in crates/quorum-daemon/tests/packaging_invariants_tests.rs.
    • Bumped 0.9.2 -> 0.9.3 across Cargo.toml, Cargo.lock, wix/QuorumRAG.wxs, scripts/package.ps1, packaging/linux/build_packages.sh, packaging/macos/build_packages.sh, and .github/workflows/quorumrag-release.yml, and bumped WebUI cache-buster to ?v=20261124c.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[PASS] QuorumRAG Solo-Developer Invariant Gate & Review Bot: Verified repository owner (@oyesanyf, OWNER), commit 201625b (14 file(s)), Zero-Touch PATH compliance, zero private keys, and hermetic build scripts.

@oyesanyf
oyesanyf merged commit e2b9964 into main Nov 25, 2026
6 checks passed
@oyesanyf
oyesanyf deleted the pr/solo-quorumrag-20261124-184405 branch November 25, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant