Repository navigation
fix(status): keep configured routes per sandbox - #11437
sylvesterkaczmarek wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughStatus 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. ChangesConfigured route status
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Sylvester Kaczmarek <[email protected]>
27d53fd to
621136c
Compare
|
Rebased this onto current Validation after the rebase: |
|
@ericksoa @jyaunches This PR is rebased onto current |
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]>
|
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. |
|
Thanks for consolidating this into #12233 and preserving the authorship and CLI regression coverage. That works for me. |
) ## 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]>
Outcome
Global
nemoclaw statusnow keeps each sandbox's recorded provider and model in itsInference (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
Verification
npm run build:cli- passednpm --prefix nemoclaw run build- passednpm run typecheck- passednpm run test:changed- passednpm run lint- passednpm run validate:pr- passedgit diff --check- passedSigned-off-by: Sylvester Kaczmarek [email protected]
Summary by CodeRabbit
Bug Fixes
Tests