Skip to content

perf(cli): wait in sandbox for Hermes readiness - #10987

Closed
jyaunches wants to merge 1 commit into
perf/hermes-podman-executable-checksfrom
perf/hermes-podman-cost-split
Closed

jyaunches wants to merge 1 commit into
perf/hermes-podman-executable-checksfrom
perf/hermes-podman-cost-split

Conversation

@jyaunches

@jyaunches jyaunches commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Hermes stopped-container recovery now waits for readiness inside one sandbox command instead of repeating host-side authenticated probes during startup. Recovery still requires one final credential-bearing authenticated health check and full final qualification before success.

Reason

Live Portable evidence on the original candidate df4578a517 showed successful stopped recovery while repeated host-to-sandbox readiness probes added Podman and OpenShell round trips. Moving the bounded readiness wait into the sandbox removes those repeated host crossings without changing lifecycle authority.

Related issues

Relates to #10423
Relates to #10822
Stacked on #10983

Changes

  • Run one isolated Python readiness waiter inside the sandbox after the receipt-owned startup launch.
  • Parse one bounded numeric readiness receipt and reject malformed, inconsistent, over-budget, or command-status-inconsistent output.
  • Keep the existing exact-container currentness checks before and after the waiter.
  • Perform the existing credential-bearing authenticated health probe after the waiter reports ready.
  • Preserve final receipt, registry, socket, executable, container, and OpenShell qualification before recovery succeeds.
  • Reduce the OpenShell exec-readiness polling interval from one second to 100 ms within the existing 90-second bound.

Verification

  • npx vitest run --project cli src/lib/onboard/experimental/hermes-portable-lifecycle.test.ts src/lib/onboard/experimental/hermes-portable-operating-authority.test.ts src/lib/onboard/experimental/hermes-portable-container.test.ts src/lib/onboard/experimental/hermes-currentness-timing.test.ts src/lib/onboard/experimental/hermes-container-inspection-timing.test.ts — 89 tests passed.
  • npm run typecheck:cli — passed.
  • npm run build:cli — passed.
  • Normal pre-commit hooks — formatting, lint, secret scan, test-size guardrail, and commitlint passed. The repository check reports a stale PR-base architecture budget: mcp-lifecycle-lock-acquisition.ts fan-in is 21 while the base limit is 20. This change does not import or modify that file.
  • Pre-push CLI TypeScript check — passed.
  • git verify-commit HEAD — valid SSH signature.
  • GitHub commit verification — df09cc12f0b343addb3452e4aa38e2db6ead054b is Verified with reason valid.
  • Live Portable stopped recovery — the original readiness-wait candidate df4578a517 completed one successful seat recovery. The rebased commit preserves that readiness algorithm but also repairs compatibility with perf(cli): reduce Hermes Podman executable checks #10983 current-observation freshness. The rebased commit has not received a separate live run.
  • Diff and gitleaks checks — no bearer value, API key, credential, environment value, endpoint, command output, stdout, or stderr enters the readiness receipt.

Review notes

This draft intentionally excludes four later debug-seat experiments from the requested five-commit stack. Those commits disabled socket, executable, transaction-currentness, and final-qualification checks; the cumulative stack failed four focused lifecycle tests and had no successful live stopped recovery. Their rebased form is preserved locally on perf/hermes-gfn-authority-experiments and is not published as production-ready.

The sandbox waiter probes loopback /health without credentials and is only an availability hint. It cannot establish recovery success. The existing credential-bearing authenticated health probe remains mandatory afterward, and its credential stays inside the sandbox.


Signed-off-by: Julie Yaunches jyaunches@nvidia.com

Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
@jyaunches jyaunches self-assigned this Sep 3, 2026
@copy-pr-bot

copy-pr-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit df09cc1 in the perf/hermes-podman-c... branch remains at 96%, unchanged from commit f7c1d83 in the perf/hermes-podman-e... branch.

@jyaunches

Copy link
Copy Markdown
Contributor Author

Replaced by #10988, which applies the same narrowed readiness-wait change to the current #10983 commit without rewriting this protected branch.

@jyaunches jyaunches closed this Sep 3, 2026
@wscurran wscurran added area: performance Latency, throughput, resource use, benchmarks, or scaling area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery integration: hermes Hermes integration behavior labels Nov 16, 2026
@cv
cv deleted the perf/hermes-podman-cost-split branch November 21, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: performance Latency, throughput, resource use, benchmarks, or scaling area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery integration: hermes Hermes integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants