Skip to content

fix(cli): refuse invented wait exit 0 after managed terminal retire - #397

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/wait-no-invent-exit-on-managed-terminal
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/wait-no-invent-exit-on-managed-terminal

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Managed a3s-box wait no longer prints invented exit 0 when inspect reports Stopped/Failed but durable exit_code is still absent (abandoned Starting/Killing retire).
  • Finish uses the same wait_poll_action gate as the legacy poll path; archive-backed wait after remove/NotFound also refuses unwrap_or(0).
  • Integration test that encoded inventing 0 for exit_code: null archives now expects recorded 0 or an explicit honesty error.

Test plan

  • cargo test -p a3s-box-cli --lib wait::
  • cargo test -p a3s-box-cli --test wait_integration
  • CI green on PR

Made with Cursor

Managed wait reused unwrap_or(0) after inspect Stopped/Failed, undoing
#385 honesty when exit_code is absent. Gate finish on wait_poll_action;
archive wait likewise refuses inventing success.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 03b7147 into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/wait-no-invent-exit-on-managed-terminal branch September 15, 2026 07:32
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