Skip to content

fix(cli): trust OCI wait exit for DedicatedVm foreground runs - #646

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/oci-dedicatedvm-trust-exit-code
Sep 22, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/oci-dedicatedvm-trust-exit-code

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • OCI-routed DedicatedVm/MicroVM publishes an authenticated container wait status.
  • Foreground used RequireGuestProof for MicroVM isolation, which drops provider exit 0 without .a3s_exit_code, then invents CLI/metadata exit 1.
  • Trust provider exit when run_context_uses_oci; keep RequireGuestProof for legacy libkrun MicroVM.

Tip evidence (WSL2 /dev/kvm)

Test plan

  • cargo test -p a3s-box-cli --lib foreground_oci_routed
  • cargo test -p a3s-box-cli --lib foreground_workload_exit_code
  • WSL tip smoke exit_code 0
  • CI green

Closes part of #644 (exit parity). Does not claim gate 5 / Enterprise GA.

RequireGuestProof dropped authenticated provider exit 0 on OCI-routed
MicroVM, so run --rm invented exit_code 1 after successful guest exit 0.
Trust OCI wait when run_context_uses_oci; keep RequireGuestProof for
legacy libkrun MicroVM.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin

Copy link
Copy Markdown
Author

Tip-proven on WSL2 with OCI 7fc78e7: exit_code 0 + clean stop/delete. Depends on OCI-Runtime#348 for Host contract; this PR is the Box-side exit parity.

ZhiXiao-Lin added a commit that referenced this pull request Sep 22, 2026
Honest binder update: tip evidence with OCI #348 + Box #646/#647; gate 5
still blocked until tips land on main and OCI is pinned.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 715c76d into main Sep 22, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/oci-dedicatedvm-trust-exit-code branch September 22, 2026 22:26
ZhiXiao-Lin added a commit that referenced this pull request Sep 22, 2026
* fix(kvm): allow persistent in DedicatedVm OCI qualification

create and non-rm run set config.persistent to retain the writable layer;
the fixed DedicatedVm profile rejected that as unqualified and blocked gate 3
create/start/stop. Persistence alone is accepted; other custom mounts/controls
stay fail-closed.

Co-authored-by: Cursor <[email protected]>

* docs(kvm): record gate 3 tip-proven status for packaged DedicatedVm

Honest binder update: tip evidence with OCI #348 + Box #646/#647; gate 5
still blocked until tips land on main and OCI is pinned.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
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