fix(windows): hide console window, harden FilesystemWatcher junctions, and add live Defender/CodeIntegrity forensics #63
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.40) × (1 − Review Confidence (0.17)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 310 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 15% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.343
Real PR Conversation Timeline
1 comments
"Review active on #63"
general
weight: 0.35
github-actions[bot]
Summary
1. Zero Visible DOS / Console Windows on Windows:
- Added automatic Windows console window hiding and detachment (
GetConsoleWindow()->ShowWindow(hwnd, 0)+FreeConsole()) at the start ofmain()incrates/quorum-daemon/src/main.rswheneverquorumrag.exeis started as the Web UI / background daemon (SubCommand::ServeorNone) orSubCommand::WatchP2p.- Redirected
tracing_subscriberoutput to<data-dir>/logs/quorumrag-service.logwhenever the console is detached so background daemon logs are persisted without keeping any console window open.- Added
CREATE_NO_WINDOW (0x0800_0000)to all Windows subprocess spawns acrossquorum-daemon,quorum-coordinator, andquorum-ingest, and updatedpackaging/windows/quorumrag-launch.cmdto launch withstart "" /B.2. Resilient
FilesystemWatcher& NTFS Junction Filtering:- Updated
ReindexWorker::expand_drive_roots(crates/quorum-ingest/src/reindex.rs) andFilesystemWatcher::start_watching(crates/quorum-ingest/src/watcher.rs) to skip restricted Windows NTFS junction directories (C:\Documents and Settings,All Users,Default User,Default,$WinREAgent) and symlinks, and log per-path watch errors without aborting the entire watcher.- Normalized
\\?\extended-length paths inis_internal_noise(crates/quorum-daemon/src/main.rs) so internal storage writes (data/.metadata.json,data/p2p_known_peers.json,quorumrag-service.log,AppData\Local\Temp) never trigger recursive reindex loops.3. Live Windows Defender Antivirus & CodeIntegrity Blocked-Process Forensics (
"what was the last process blockes by antivirus"):- Enhanced
collect_live_os_forensics(crates/quorum-ingest/src/artemis.rs) to queryMicrosoft-Windows-Windows Defender/Operational(EventID=1116 or EventID=1117 or EventID=1121 or EventID=1122via/q:syntax) andMicrosoft-Windows-CodeIntegrity/Operational(EventID=3077 or EventID=3076 or EventID=3033 or EventID=3089) and format natural, sentence-structured event summaries with timestamps, threat names, and blocked command lines.- Added on-demand forensic event log synchronization (
ensure_live_forensics_for_queryincrates/quorum-daemon/src/handlers/chat.rs), localTier3Restrictedretrieval promotion (scatter_gather.rs,retrieve.rs), typo correction ("blockes" -> "blocked"), and fast deterministic forensic synthesis (offline_engine.rs,answer_orchestrator.rs).