Repository navigation
host: verify CLI launch liveness from its log and endpoint (SL3.3a) - #1436
Merged
Pedro Henrique Penna (ppenna) merged 2 commits intoNov 10, 2026
Conversation
Enrique Saurez (esaurez)
marked this pull request as ready for review
November 10, 2026 13:32
Enrique Saurez (esaurez)
marked this pull request as draft
November 10, 2026 13:32
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the CLI sandbox launch-liveness changes.
No open issues 🎉
What changed in this PR
This PR adds launch-liveness checks to the CLI-owned sandbox store for SL3.3a of #1108, building on the launch journaling in #1433. Recovery, termination, and command wiring remain outside this slice.
Changes:
- Record the prepared log’s identity and acquire its claim before publishing the launch journal.
- Add claim checks and endpoint-owner verification, holding the process before rechecking ownership and verifying its log on Linux.
- Add regression tests for claim inheritance, replaced logs, endpoint races, Windows handle fallback, and error propagation.
| File | Description |
|---|---|
nvx-rs/src/host/cli/store/tests/liveness.rs |
Adds launch-claim and endpoint-owner regression tests. |
nvx-rs/src/host/cli/store/tests/launch.rs |
Exposes the existing preparation helper to sibling tests. |
nvx-rs/src/host/cli/store/tests.rs |
Registers the liveness test module. |
nvx-rs/src/host/cli/store/record.rs |
Claims the prepared log and records its identity. |
nvx-rs/src/host/cli/store/mod.rs |
Registers the liveness module and documents its guarantees. |
nvx-rs/src/host/cli/store/liveness.rs |
Implements claim checks and held endpoint-owner verification. |
Review effort: Balanced
Enrique Saurez (esaurez)
marked this pull request as ready for review
November 10, 2026 15:07
Base automatically changed from
private/simple-1108-02e4-sl32b-20261110
to
feature/nvx-refactor
November 10, 2026 16:50
Port only SL3.3a onto coordinator-qualified SL3.2b 99d0045. Retain the prepared log claim and identity, hold and recheck the endpoint owner, and require the Linux log match. Preserve Windows job/handle fallback primitives and the donor fork-race fix without adding recovery or signaling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: eb3cc7e0-f51e-45ed-b911-c7b214740e05
Enrique Saurez (esaurez)
force-pushed
the
private/simple-1108-02e4-sl33a-20261110
branch
from
November 10, 2026 18:32
13bbbc8 to
b2dfce4
Compare
Preserve the optional held-process lookup by mapping the explicit Running and Exited outcomes, while propagating I/O errors unchanged. Require the running variant in the liveness test helper. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e6da1cb0-3a97-4e3b-9c60-8b7aa8257ff0
Pedro Henrique Penna (ppenna)
merged commit Nov 10, 2026
db39a5d
into
feature/nvx-refactor
46 checks passed
Pedro Henrique Penna (ppenna)
deleted the
private/simple-1108-02e4-sl33a-20261110
branch
November 10, 2026 20:34
This was referenced Nov 11, 2026
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.
Scope
Part of #1108: SL3.3a only, based on the qualified SL3.2b in #1433.
This does not complete or close issue #1108.
The CLI launch journal now identifies the prepared log claim. A released
claim proves exit; an error proves neither exit nor liveness. Endpoint lookup
holds the server before checking that the endpoint still names it. Linux
also checks that this process holds the claimed log as its standard output.
Windows retains the existing private per-log job identity checks and the
inherited-log-handle fallback.
The prepared log already passes through the existing library spawn. This
slice reuses those mechanics and adds no recovery, signaling, record removal,
process enumeration, schema framework or old-store compatibility.
Public
Error/Resultownership is unchanged.Only the preserved
cf485b72..8edda5a5SL3.3a donor interval was ported,including its supported-host helper gating and fork-race correction.
The actual selected parent is
99d004572b8ffad55c48bd7885278457297cbda6, not the historical donor parent.Size and test accounting
76 added core lines in 3 production files, excluding comments, documentation,
blank lines and tests; 6 total changed files.
Existing test bodies and assertions are kept. The shared
preparedhelperis made visible to the sibling liveness tests instead of duplicating its
configuration; its signature is reformatted only. The new tests cover claim
lifetime/inheritance, replaced logs, held endpoint rechecks, Linux log
matching, Windows fallback handles and errors that must not prove exit.
check_test_changes.py --base 99d004572b8ffad55c48bd7885278457297cbda6reports 0 existing-test changes, 0 relocations and 21 added parsed items.
Qualification status
Draft: locally qualified at
13bbbc81c983c0bdfc66ddd149b146c05165ec29. This is not a full-public-CI ormerge-readiness claim.
The new-head store/liveness regression passes on Linux and Windows:
22 passed, 0 failed on each. The single ignored item is
log_holder_helper,which the claim tests invoke as an owned subprocess, not an omitted behavior.
All 39 applicable Linux software gates and all 28 Windows gates exit zero,
including formatting, the Clippy/feature matrices, MSRV and runtime-adapter
checks; Linux also covers public API, macOS checking and guest binaries.
The actual current-source cold-spawn test boots a guest, accepts shell input
and exits cleanly on MSHV (8.72s) and WHP (1.95s), each 1 passed, 0 failed,
0 ignored. VM PIDs 3821943 and 4128 were independently confirmed absent.
The native revision is pinned to
14dc4116ec7e57567633c4b7b07892aca3a58522. Only compatible native/kernel/Alpinecomponents from the owned qualified parent were reused, after matching this
new head's complete effective-input dictionaries and checking copied hashes.
No parent's NVX/test/adapter binary or mutable Cargo target was reused.
Independent native Opus 5.5 review
209ebabe-0834-4e10-8bb2-aff25746de46found no blocking issue on this exacthead/base. It was source review only, separate from the new-head QA above.
Command/result ledgers and logs are retained under
/mnt/slim-data-2/i1108a02e4andE:\nvx-data\i1108a02e4.SL3.3b additionally waits for the actual qualified SL2.10b producer from
issue #1100; an old checkpoint is not a qualified input.