Skip to content

fix(cli): refuse inventing Windows reconcile exit when guest result absent - #402

Merged
ZhiXiao-Lin merged 3 commits into
mainfrom
fix/windows-reconcile-no-invent-exit
Sep 15, 2026
Merged

ZhiXiao-Lin merged 3 commits into
mainfrom
fix/windows-reconcile-no-invent-exit

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Windows StateFile reconcile no longer invents exit 1 (via unwrap_or(0) then rewrite) when guest-result collection fails and both durable and persisted exit evidence are absent.
  • Keep authenticated durable/persisted exits; successful guest-marker collection unchanged.
  • Unit-tested resolve_windows_reconcile_exit contract (runs on Linux CI); CHANGELOG/ROADMAP honesty notes.

Test plan

  • Linux CI Test: test_resolve_windows_reconcile_exit_does_not_invent_on_collect_failure
  • Format / Clippy / Build Windows WHPX green
  • Confirm no B2 / Live-digest / prune widening

ZhiXiao-Lin and others added 3 commits September 15, 2026 18:44
…bsent

On collect failure keep durable/persisted exit only; do not substitute 1 (or 0) when both are missing. Matches Linux resolve_workload_exit_code honesty.

Co-authored-by: Cursor <[email protected]>
Keep the helper available under test and Windows so Linux lib builds do not trip dead_code.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit d406cff into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/windows-reconcile-no-invent-exit branch September 15, 2026 11:36
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