Repository navigation
fix(runtime): lifecycle evidence honesty + native live-session v2 (anti-overfit) - #294
Merged
Merged
Conversation
Parked before local branch cleanup; not for main until qualification evidence exists.
Prove keyed captured exec before/after Native Linux Host reopen, keep retained-stream and B2-closed flags false, Linux-gate the example so Windows builds stay honest stubs, and document that process_restart is fixture-only evidence.
Only derive 128+signal when KillOutcome::Killed lacks an observed status. Vanished-runtime AlreadyStopped/NotFound paths keep exit_code absent, aligning kill completion with owner-loss inspect honesty.
Filesystem-only pause must not invent a resume-ready Paused state over a crashed generation. Publish Failed with the authenticated exit instead. Lost-response kill reconciliation treats Failed as Terminal, not user stop.
Filesystem-only resume must not roll authenticated Stopped/Failed evidence back to retryable Paused (dropping exit). Publish Terminal instead; keep Created/Paused/NotFound as honest retryable rollbacks.
Refuse stuck Pausing/Resuming when inspect shows Stopped/Failed; keep authenticated exit instead of deferring honesty only to reconcile.
Only Killed outcomes use KillTerminal; AlreadyStopped/NotFound cleanup uses Terminal so vanished-runtime paths keep exit absent without fabricating user-stop attribution.
…VM default Default create isolation to MicroVM so pause/resume/kill/reconcile contracts execute on Windows hosts; keep Sandbox snapshot suites Linux-gated with explicit sandbox_request.
Treat Stopped+exit like Failed during filesystem-only pause: publish Terminal evidence instead of inventing Paused and dropping the authenticated exit. Clean Stopped without exit remains a successful cold pause.
drive_snapshot now mirrors create_snapshot backend gating: non-Sandbox Snapshotting aborts without inventing a published filesystem snapshot and restores the source state.
Vanished-runtime warm pause/resume must not leave stuck Pausing/Resuming; publish Failed with Terminal(None) immediately, matching recover NotFound honesty.
Non-Sandbox snapshot recover/reconcile must not treat MicroVM cold-pause NotFound (no live provider by design) as terminal Failed. Restore Paused and keep refusing Sandbox-only snapshot publish.
Recover/reconcile/inspect must return Ready/restored status after aborting a non-Sandbox Snapshotting claim, not fail callers with create-time Conflict once source state was already repaired without publishing a snapshot.
In-flight lifecycles map Stopped-without-exit to Failed via startup_terminal_state instead of inventing clean Stopped. Pending Killing with an authenticated exit uses KillTerminal for stopped_by_user. Stable Running/Paused owner-loss stays Stopped. Also fix clippy unnecessary_lazy_evaluations on snapshot abort restore.
Author
|
Pushed |
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
a3s.box.linux-native-live-session.v2) with keyed captured exec; anti-overfit flags keep B2/retained-stream claims false.128+signalonly forKilledwith missing reap;AlreadyStopped/NotFound leave exit absent and do not inventstopped_by_userviaKillTerminal.Pausedover terminalFailed/Stopped(+exit); cleanStoppedwithout exit remains successful cold pause.Failedon vanish) instead of leaving stuckPausing/Resuming.Paused; recover/reconcile/inspect return Ready/restored status (not create-time Conflict after repair).observe_recordusesstartup_terminal_state(Stopped-without-exit →Failed); pendingKillingwith authenticated exit usesKillTerminal; stable Running owner-loss Stopped-without-exit staysStopped.Why (first principles)
Refuse overfitting: no timeout/schema/pin games, no fixture-as-driver B2 close, no forged EXIT/hardware evidence. Align pause/resume/kill/snapshot/observe completion with authenticated backend evidence.
Test plan
feb86870