feat(runtime): add durable host-local inference lifecycle - #8069
feat(runtime): add durable host-local inference lifecycle#8069ericksoa wants to merge 15 commits into
Conversation
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
|
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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughHost-local inference setup now serializes receipts and stores them with reserved sandbox routes. Registry registration, normalization, loading, and saving validate and preserve canonical receipts. Route fingerprints exclude the receipt. Tests cover transport, preservation, clearing, and malformed values. ChangesHost-local inference receipt transport
Estimated code review effort: 3 (Moderate) | ~25 minutes Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant HostLocalSetup
participant RouteReservation
participant SandboxRegistry
participant RegistryPersistence
HostLocalSetup->>HostLocalSetup: prepare and serialize host-local route receipt
HostLocalSetup->>RouteReservation: submit route reservation with receipt
RouteReservation->>SandboxRegistry: store receipt on sandbox entry
SandboxRegistry->>RegistryPersistence: validate and serialize registry entry
RegistryPersistence-->>SandboxRegistry: load canonical receipt
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 4fa744c in the TypeScript / code-coverage/cliThe overall coverage in commit 4fa744c in the Show a code coverage summary of the most impacted files.
Updated |
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
PR Review Advisor — Blocking findings reportedAdvisor assessment: Blockers require maintainer review Model lanes
6 terminology differences from the second opinionAdvisory only. These are normalized differences from the primary terminology receipt.
Second-opinion terminology and E2E selections are advisory. They do not change the primary assessment or E2E / PR Gate. 3 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 1 optional E2E recommendation
Blockers
|
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/state/registry.ts`:
- Line 234: Update the same-name route reservation handling around
hostLocalInferenceReceipt so an omitted field is not converted to null; only
overwrite the existing receipt when the route provides a string or explicit
null, allowing the existing spread to retain prior values. Add a regression test
covering an existing receipt followed by a reservation without
hostLocalInferenceReceipt, and verify the receipt remains available to
registerCreatedSandbox().
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: a69a50a1-ff56-467c-b4fa-d114f9138c8e
📒 Files selected for processing (13)
src/lib/onboard/sandbox-recreate-transaction.test.tssrc/lib/onboard/sandbox-recreate-transaction.tssrc/lib/onboard/sandbox-registration.test.tssrc/lib/onboard/sandbox-registration.tssrc/lib/onboard/setup-inference.tssrc/lib/state/registry.tssrc/lib/state/registry/host-local-inference.test.tssrc/lib/state/registry/host-local-inference.tssrc/lib/state/registry/persistence.tssrc/lib/state/registry/types.tstest/helpers/host-local-inference-receipt.tstest/onboard-host-local-inference-routing.test.tstest/registry.test.ts
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
cv
left a comment
There was a problem hiding this comment.
Reviewed commit 990a5f5634 in bottom-up stack order. This PR depends on #8066, which is not approval-ready. This ownership layer is still a draft and therefore cannot serve as an accepted base for qualification work. Review remains blocked until the parent is reconstructed or repaired, this branch is restacked on the accepted parent commit, and current CI, security, and documentation evidence passes for the resulting commit. No approval is granted for the current branch.
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
cv
left a comment
There was a problem hiding this comment.
Clear stale host-local ownership when inference changes to a remote provider. The current route reservation omits hostLocalInferenceReceipt, while the registry preserves the existing field; later destroy, snapshot, or restore can then act on a runtime the sandbox no longer selects. Add a regression that switches from host-local to remote inference and proves the persisted receipt is removed. The stacked branch also has a failing E2E / PR Gate and cannot be approved until its parent and required checks pass.
Summary
This B4-E1 slice gives dormant provider-owned host-local inference durable lifecycle authority for OpenClaw, Hermes, and LangChain Deep Agents Code. It persists canonical ownership through onboarding and registry state, fences snapshot and restore mutations, and retires only the exact managed runtime after durable deletion.
Podman remains absent from the production provider registry. No supported workflow is activated, and the hidden, default-off
--temp-managed-runtimeexperiment gate remains intentionally undocumented.Changes
Quality Gates
Documentation Writer Review
no-docs-needed--temp-managed-runtimeflag remains intentionally undocumented.Verification
Exact head:
4fa744cffdbab8b3691df3a770dff5d09fd07333. Stable base-relative patch ID:3d43b8f38566a87126fdf265b748e561c37ab47b.Signed-off-by: Aaron Erickson aerickson@nvidia.com