Skip to content

host: verify CLI launch liveness from its log and endpoint (SL3.3a) - #1436

Merged
Pedro Henrique Penna (ppenna) merged 2 commits into
feature/nvx-refactorfrom
private/simple-1108-02e4-sl33a-20261110
Nov 10, 2026
Merged

Pedro Henrique Penna (ppenna) merged 2 commits into
feature/nvx-refactorfrom
private/simple-1108-02e4-sl33a-20261110

Conversation

@esaurez

@esaurez Enrique Saurez (esaurez) commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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/Result ownership is unchanged.

Only the preserved cf485b72..8edda5a5 SL3.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 prepared helper
is 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 99d004572b8ffad55c48bd7885278457297cbda6
reports 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 or
merge-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/Alpine
components 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-aff25746de46 found no blocking issue on this exact
head/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/i1108a02e4 and E:\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.

@esaurez Enrique Saurez (esaurez) added the tests-modified Changes existing tests, test data, or test wiring label Nov 10, 2026
@github-actions github-actions Bot removed the tests-modified Changes existing tests, test data, or test wiring label Nov 10, 2026
@esaurez
Enrique Saurez (esaurez) marked this pull request as ready for review November 10, 2026 13:32
@esaurez
Enrique Saurez (esaurez) marked this pull request as draft November 10, 2026 13:32
@esaurez
Enrique Saurez (esaurez) requested a balanced review from Copilot November 10, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@esaurez
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
@esaurez
Enrique Saurez (esaurez) force-pushed the private/simple-1108-02e4-sl33a-20261110 branch from 13bbbc8 to b2dfce4 Compare November 10, 2026 18:32
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants