Repository navigation
fix(status): route error recovery by runtime provider #11945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rsliter
merged 64 commits into
main
from
codex/fix-portable-launch-recovery-35141841066
Sep 23, 2026
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
f3e22e1
test(e2e): recover native gateway through sandbox start
rsliter 3a362d5
fix(status): recommend start for error-phase sandboxes
rsliter de0125a
test(e2e): cover portable gateway recovery guidance
rsliter 90b7690
fix(status): clarify rebuild fallback guidance
rsliter db50b45
Merge remote-tracking branch 'origin/main' into codex/fix-portable-la…
rsliter ef33e6d
Merge remote-tracking branch 'origin/main' into codex/fix-portable-la…
rsliter 92a7d1c
merge: update PR branch with main
rsliter d520dd8
test(e2e): assert rebuild recovery guidance
rsliter 8df2490
fix(e2e): prove native gateway recovery
rsliter aa7710f
test(e2e): cover native gateway recovery sequence
rsliter 36c895a
merge: resolve conflicts with main
github-actions[bot] 0243dde
fix(sandbox): normalize error recovery guidance
rsliter 3549cec
fix(sandbox): correct missing-container recovery guidance
rsliter b2926c8
fix(sandbox): preserve recovery identity ownership
rsliter c5930a4
fix(sandbox): protect recovery during Docker outages
rsliter 9a001ef
fix(sandbox): make stale registry cleanup actionable
rsliter 9d16130
fix(sandbox): preserve outage recovery evidence
rsliter 130334b
fix(status): align JSON registry authority
rsliter fe8479f
Merge remote-tracking branch 'origin/main' into codex/fix-portable-la…
rsliter d55bd87
Merge remote-tracking branch 'origin/main' into codex/fix-portable-la…
rsliter a0ac82c
Merge remote-tracking branch 'origin/codex/fix-portable-launch-recove…
rsliter 75ac8e6
fix(status): preserve cross-root Docker ownership
rsliter 77252b5
Merge remote-tracking branch 'origin/codex/fix-portable-launch-recove…
rsliter 438eda0
fix(status): preserve cross-root recovery authority
rsliter 0238b61
fix(status): complete cross-root runtime classification
rsliter fd3541a
Merge branch 'main' into codex/fix-portable-launch-recovery-35141841066
rsliter f07c22f
fix(status): preserve cross-root mutation authority
rsliter 43259c6
test(connect): mock cross-root route inventory
rsliter 85f3b0e
Merge branch 'main' into codex/fix-portable-launch-recovery-35141841066
rsliter ff19945
fix(status): route lifecycle through owning registry
rsliter 131070d
fix(status): preserve owning registry through recovery
rsliter f41f6fe
test(status): align fixtures with owning registry
rsliter 91fcc72
fix(status): pin rebuild to owning registry
rsliter 3c06368
fix(rebuild): route recovery retirement by state root
rsliter 10dde7b
fix(rebuild): preserve delegated failure diagnostics
rsliter 117fd30
fix(rebuild): bound owning-registry worker waits
rsliter 444eea4
fix(rebuild): close delegated worker recovery gaps
rsliter 522e25b
test(rebuild): make delegated worker proof portable
rsliter 5b1b558
test(rebuild): accept host-boundary routing failures
rsliter 7403223
fix(rebuild): report unreaped delegated workers
rsliter e9e9c71
test(rebuild): avoid conditional worker stub
rsliter 4b323cf
fix(rebuild): close delegated worker review gaps
rsliter f923eae
merge: refresh portable launch recovery with main
rsliter e1fc2d3
fix(lifecycle): preserve cross-root authority
rsliter f1659ac
merge: resolve conflicts with main
github-actions[bot] e016370
fix(rebuild): bind recovery marker to gateway name
rsliter 7964ded
merge: refresh PR 11945 with main
rsliter 5d5f490
merge: refresh PR 11945 with latest main
rsliter cf17e04
merge: refresh PR 11945 for staging QA
rsliter eb20e4b
fix: harden cross-root rebuild follow-up
rsliter 116a6a3
Merge remote-tracking branch 'origin/main' into codex/pr11945-takeover
rsliter e4fb626
Merge remote-tracking branch 'origin/main' into codex/pr11945-takeover
rsliter 48427b3
fix(rebuild): install signal handlers before worker spawn
rsliter e0ed737
fix(rebuild): scope delegated worker credentials
rsliter 57982f4
fix(rebuild): confirm delegated work in parent
rsliter 338695f
fix(rebuild): guard delegated confirmation without tty
rsliter ccd0f68
fix(rebuild): reject delegated prompts in ci
rsliter cdb5eca
fix(rebuild): preserve delegated retirement boundaries
rsliter 1a4edd9
Merge remote-tracking branch 'origin/main' into codex/pr11945-takeover
rsliter 9e02e3e
fix(rebuild): check owning recovery authority
rsliter 0e78935
Merge remote-tracking branch 'origin/main' into codex/pr11945-takeover
rsliter e12aba1
fix(sandbox): require confirmed container absence
rsliter c7c8bb1
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/pr…
rsliter aefb8d1
test(sandbox): preserve outage recovery contract
rsliter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import fs from "node:fs"; | ||
| import os from "node:os"; | ||
| import path from "node:path"; | ||
|
|
||
| import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; | ||
|
|
||
| import { GatewayRouteConflictError } from "../../inference/gateway-route-compatibility"; | ||
| import { resolveGatewayName } from "../../onboard/gateway-binding"; | ||
| import type { SandboxEntry } from "../../state/registry"; | ||
| import { assertSandboxGatewayRouteCompatible } from "./connect-inference-gateway"; | ||
|
|
||
| let home: string; | ||
|
|
||
| function writeRegistry(relDir: string, sandboxes: Record<string, SandboxEntry>): void { | ||
| const dir = path.join(home, ".nemoclaw", relDir); | ||
| fs.mkdirSync(dir, { recursive: true }); | ||
| fs.writeFileSync( | ||
| path.join(dir, "sandboxes.json"), | ||
| JSON.stringify({ defaultSandbox: null, defaultSelectionRevision: 1, sandboxes }), | ||
| ); | ||
| } | ||
|
|
||
| beforeEach(() => { | ||
| home = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-connect-route-cross-root-")); | ||
| vi.stubEnv("HOME", home); | ||
| }); | ||
|
|
||
| afterEach(() => { | ||
| vi.unstubAllEnvs(); | ||
| fs.rmSync(home, { recursive: true, force: true }); | ||
| }); | ||
|
|
||
| describe("assertSandboxGatewayRouteCompatible", () => { | ||
| it("rejects a conflicting same-gateway route recorded in another registry root", () => { | ||
| const target: SandboxEntry = { | ||
| name: "target", | ||
| agent: "openclaw", | ||
| gatewayPort: 8245, | ||
| provider: "compatible-endpoint", | ||
| model: "shared-model", | ||
| endpointUrl: "https://target.example/v1", | ||
| preferredInferenceApi: "openai-completions", | ||
| credentialEnv: "COMPATIBLE_API_KEY", | ||
| }; | ||
| const peer: SandboxEntry = { | ||
| name: "peer", | ||
| agent: "openclaw", | ||
| gatewayPort: 8245, | ||
| provider: "compatible-endpoint", | ||
| model: "shared-model", | ||
| endpointUrl: "https://peer.example/v1", | ||
| preferredInferenceApi: "openai-completions", | ||
| credentialEnv: "COMPATIBLE_API_KEY", | ||
| }; | ||
| writeRegistry("", { peer }); | ||
| writeRegistry(path.join("gateways", "8245"), { target }); | ||
|
|
||
| expect(() => | ||
| assertSandboxGatewayRouteCompatible("target", target, resolveGatewayName(8245)), | ||
| ).toThrow(GatewayRouteConflictError); | ||
| }); | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.