Skip to content

fix(status): keep configured routes per sandbox - #11437

Closed
sylvesterkaczmarek wants to merge 1 commit into
NVIDIA:mainfrom
sylvesterkaczmarek:fix-status-recorded-inference
Closed

sylvesterkaczmarek wants to merge 1 commit into
NVIDIA:mainfrom
sylvesterkaczmarek:fix-status-recorded-inference

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Global nemoclaw status now keeps each sandbox's recorded provider and model in its Inference (configured) line and JSON sandbox row. The shared gateway route remains available separately through the existing live inference field.

Reason

A route change for one sandbox could make another sandbox's status report the wrong configuration because the default row was overwritten with the gateway's current live route.

Related issues

Fixes #11412

Changes

  • keep per-sandbox status rows sourced from the durable registry
  • preserve the live default model in the text row header without relabeling it as configured
  • add text and JSON regressions for divergent recorded and live routes

Verification

  • npm run build:cli - passed
  • npm --prefix nemoclaw run build - passed
  • npm run typecheck - passed
  • focused inventory tests - 56 passed
  • focused CLI integration tests - 19 passed
  • npm run test:changed - passed
  • npm run lint - passed
  • npm run validate:pr - passed
  • git diff --check - passed

Signed-off-by: Sylvester Kaczmarek [email protected]

Summary by CodeRabbit

  • Bug Fixes

    • Sandbox status reports now consistently display each sandbox’s configured model and provider.
    • JSON status output preserves recorded sandbox routes and reports live gateway inference separately.
    • Text status output continues to show live inference for the default sandbox without replacing configured details.
  • Tests

    • Added coverage for configured-route status reporting in JSON and text formats.
    • Updated status expectations to reflect configured model and provider values.

@copy-pr-bot

copy-pr-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3dd778d0-2286-4418-9e52-4df95d12502e

📥 Commits

Reviewing files that changed from the base of the PR and between 27d53fd and 621136c.

📒 Files selected for processing (3)
  • src/lib/inventory/index.test.ts
  • src/lib/inventory/index.ts
  • src/lib/inventory/status-configured-route.test.ts
💤 Files with no reviewable changes (1)
  • src/lib/inventory/index.test.ts

Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Walkthrough

Walkthrough

Status reporting now uses stored sandbox inference for configured model and provider values. Live gateway inference remains available for the default sandbox’s live model display. Tests cover JSON and text output when stored and live routes differ.

Changes

Configured route status

Layer / File(s) Summary
Stored route status reporting
src/lib/inventory/index.ts
Status rows and configured inference text now use each sandbox’s stored model and provider. The status report no longer passes live inference into row construction.
Configured route validation
src/lib/inventory/status-configured-route.test.ts, test/cli/status-root-json.test.ts, src/lib/inventory/index.test.ts
Tests validate stored route values in JSON and text output when live gateway inference differs. The obsolete precedence test was removed.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: ericksoa, jyaunches, senthilr-nv

Merge Risk: ⚪ Minimal · up to 62113

Configured sandbox routes remain distinct from the shared live route in both text and JSON status output. No actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: preserving configured routes for each sandbox in status output.
Linked Issues check ✅ Passed The PR meets the coding requirements in issue #11412. src/lib/inventory/index.ts builds status rows from each sandbox's durable recorded inference route and keeps live inference separate. Text statu…
Out of Scope Changes check ✅ Passed The changes stay within issue #11412. The implementation changes status projection and rendering, and the added or updated tests verify the reported defect. No unrelated product behavior or unrelated …
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression labels Sep 10, 2026
@sylvesterkaczmarek
sylvesterkaczmarek force-pushed the fix-status-recorded-inference branch from 27d53fd to 621136c Compare September 12, 2026 12:40
@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Rebased this onto current main and resolved the inventory/status conflicts while preserving the newer async policy/portable-phase handling. I also updated the regression test for the upstream async getStatusReport API.

Validation after the rebase: npm run build:cli, npm run typecheck, focused inventory tests (56/56), status-root-json integration tests (3/3), repository checks, formatting, and lint all pass locally. The rebased commit is GitHub-verified and signed.

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

@ericksoa @jyaunches This PR is rebased onto current main, the conflicts are resolved, and the configured-route regressions pass with the newer async/status code. Build, typecheck, focused inventory tests, CLI JSON tests, and repository checks are green locally. The PR is mergeable now; could one of you review when convenient?

jyaunches pushed a commit to Sehastrajit-S/NemoClaw that referenced this pull request Sep 22, 2026
Carry the CLI JSON integration assertion from NVIDIA#11437 into the selected
NVIDIA#11962 implementation. The public command path now proves the per-sandbox
row does not substitute the shared live gateway route.

Signed-off-by: Sylvester <[email protected]>
Signed-off-by: Julie Yaunches <[email protected]>
@jyaunches

Copy link
Copy Markdown
Contributor

Thank you, @sylvesterkaczmarek — we carried your CLI JSON integration assertion into #12233 and preserved your authorship in the adopted history. #12233 now contains the selected implementation plus your end-to-end CLI coverage, so I’m closing this duplicate in favor of the consolidated PR.

@jyaunches jyaunches closed this Sep 22, 2026
@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor Author

Thanks for consolidating this into #12233 and preserving the authorship and CLI regression coverage. That works for me.

jyaunches added a commit that referenced this pull request Sep 22, 2026
)

## Outcome

`nemoclaw status` now keeps each sandbox's recorded inference route
separate from the shared gateway's live route. Text output labels both
values during route drift, and JSON adds a redacted
`configuredInference` object without changing the schema-version-1
meaning of existing fields.

This same-repository adoption preserves the selected implementation from
#11962 by @Sehastrajit-S and the CLI regression assertion from #11437 by
@sylvesterkaczmarek. Their commit authorship remains in the published
history.

## Reason

The gateway serves one shared inference route. Starting another sandbox
can realign that route, so the default sandbox previously displayed
another sandbox's provider and model as `Inference (configured)`. The
output needs both the recorded route and the live route so operators can
identify drift without breaking existing JSON consumers.

The fork PR cannot access the repository's reviewed OpenShell SDK
artifact, so its required CI stops at the trust boundary before tests
run. A branch in `NVIDIA/NemoClaw` is required for that CI and for any
maintainer E2E dispatch.

### Related issues

Fixes #11412
Supersedes #11437
Supersedes #11962

## Changes

- Render `Inference (configured):` from each sandbox's recorded provider
and model.
- Render `Inference (live):` for the default sandbox when either live
field differs.
- Add `sandboxes[].configuredInference` to JSON while preserving the
schema-version-1 `model` and `provider` behavior.
- Document the text and JSON contracts in the command reference.
- Consolidate status inference tests in `status-inference.test.ts`,
including the CLI JSON regression assertion contributed in #11437.

## Verification

- Focused inventory and CLI status tests — 68 tests passed.
- `npm run test:changed` — passed, including codebase growth guardrails.
- `NODE_OPTIONS=--max-old-space-size=8192 npm run typecheck:cli` —
passed.
- `npm run build:cli` — passed.
- `npm run docs` — passed, including generated variants, routes, links,
and Fern validation.
- Local PR Review Advisor — all nine specialists clear; no live E2E
recommended.
- Publication and commit hooks — passed, including repository checks,
secret scan, source-shape budget, growth guardrails, and commit message
validation.
- Reviewed the final diff for secrets, API keys, and credentials; none
are present.

## Review notes

The Advisor classified this as deterministic status projection and CLI
serialization. Every specialist returned an empty E2E recommendation
set, so no live E2E run applies.

---

Signed-off-by: Sehastrajit
<[email protected]>
Signed-off-by: Sylvester Kaczmarek
<[email protected]>
Signed-off-by: Julie Yaunches <[email protected]>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Status views now distinguish between each sandbox’s configured
inference provider/model and its currently active live route.
- Root status JSON includes configured inference details for every
sandbox.
- Text status output labels configured and live inference routes
separately when they differ.
  - Missing configured provider or model values are shown as `unknown`.
- **Documentation**
- Updated command reference documentation to explain configured and live
inference fields.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Sehastrajit <[email protected]>
Signed-off-by: Sylvester <[email protected]>
Signed-off-by: Julie Yaunches <[email protected]>
Co-authored-by: Sehastrajit <[email protected]>
Co-authored-by: Sylvester Kaczmarek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ubuntu 26.04][CLI&UX] nemoclaw status shows another sandbox's model on that sandbox's Inference (configured) line

3 participants