Skip to content

fix(runtime): refuse inventing managed terminal Stopped from cached shim zero - #409

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
honesty/managed-terminal-refuse-cached-shim-zero
Sep 15, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
honesty/managed-terminal-refuse-cached-shim-zero

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • finish_registered_terminal authenticates cached shim/provider exit via durable guest status (resolve_workload_exit_code / Windows guest-result collect) before projecting Stopped
  • Unauthenticated provider/shim 0 clears the inventable cache and returns Unavailable so a later durable status can complete
  • Non-overfit MicroVM tests: refuse cached shim-0 without durable guest exit; accept when durable exit exists; cold-resume Unavailable path updated

Test plan

  • cargo test -p a3s-box-runtime terminal_observation_refuses_cached
  • cargo test -p a3s-box-runtime terminal_observation_accepts_cached
  • cargo test -p a3s-box-runtime cold_resume_observation_preserves
  • CI green on Linux + Windows

Does not flip B2 or invent Live digests.

ZhiXiao-Lin and others added 2 commits September 16, 2026 04:18
…him zero

Authenticate finish_registered_terminal exits via durable guest status before
projecting Stopped; clear inventable shim/provider 0 and return Unavailable
until durable evidence exists.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit c6e8fbf into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the honesty/managed-terminal-refuse-cached-shim-zero branch September 15, 2026 21:03
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