Repository navigation
fix(onboard): reject inference route on HTTP 404 from /v1/models - #12339
Conversation
Onboarding verified the inference route by treating every HTTP status below 500 as healthy, so a sandbox whose `GET /v1/models` answered 404 was reported as a verified deployment and exited 0. `status` was hardened to reject that same route in #10228, so the two readiness paths disagreed about the same route at the same moment, and automation gating on the onboarding exit code saw success. Fail a 404 closed in the onboarding path and name the unvalidated model catalog as the reason. A credential-gated 401 or 403 stays healthy here: that route did answer, it just wants a key (#2342). An ordinary 404 keeps the startup retry budget, because a route can answer before its catalog is registered and the probe already recovers a late route (#6849). Deep Agents Code on `openrouter-api` is the one models route that answers 404 by design (#9834). Reuse the shared `isDcodeOpenRouterModelsRoute404` predicate rather than restating the rule, accept that 404 only after a bounded inference request succeeds, and settle it without retrying a budget it can never satisfy. When that request fails, point the user at the request rather than at the catalog, which that agent and provider never serve. Move the host-port probe closure out of the onboarding entry point into `onboard/dashboard.ts` and cover it, keeping the entry point from growing. Fixes #10543 Signed-off-by: harjoth <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The models-route probe read its HTTP status with `parseInt`, which accepts trailing garbage such as `200junk`, and it ignored a nonzero sandbox-command result. Either case could hand a trusted status to the health branches and let onboarding report the route healthy when nothing answered it. Accept a status only when the command succeeded and stdout is exactly three digits, matching what curl writes and the `000` the script echoes on failure. Anything else keeps the existing unreachable result, so the probe still retries and fails closed with no trusted HTTP code. The 404, 5xx, and accepted-status branches are unchanged. Signed-off-by: Harjoth Khara <[email protected]>
The invocation probe fails closed when either the model or the provider was not recorded for the sandbox. The suite only exercised the missing model. A regression that dropped the provider guard passed every test. Add the case with a valid model and a null provider. Under a mutation that removes the provider guard, this test fails and no other does. Refs #10543 Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: harjoth <[email protected]>
Keep the dedicated two-second reachability probe from #8046. An ordinary 404 fails closed within the existing startup retry budget (#6849). Accept the Deep Agents Code OpenRouter expected 404 (#9834) only after a successful invocation probe, awaited through main's async invocation probe. HTTP 401 and 403 handling remains unchanged (#2342).
Signed-off-by: Aaron Erickson <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughOnboarding now checks inference-route HTTP responses and applies route-specific 404 handling. For the matching Deep Agents Code/OpenRouter case, it uses an inference invocation probe to determine health. Documentation describes repeated 404 failures and recovery steps. ChangesInference Route Verification
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Ordinary models-route failures remain unhealthy through retries and prevent onboarding completion; the matching Deep Agents Code/OpenRouter status exception requires a successful inference request. No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 5 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit fe9978a in the TypeScript / code-coverage/cliThe overall line coverage in commit fe9978a in the Show a line coverage summary of the most impacted files.
Updated |
|
Reviewed all nine Advisor reports for
The inherited behavior and terminal-path evidence are in the unchanged files |
Signed-off-by: Aaron Erickson <[email protected]>
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Final review disposition for All nine Advisor specialists completed in run 36174519840. Seven report no blocker, including documentation, customer behavior, migration, and security. CodeRabbit also completed review of the documentation correction without actionable comments. The two repeated recommendations are not accepted as blockers for this scoped fix:
The Advisor's derived blocker job therefore remains red because it counts these recommendations; this is a maintainer disposition of the recommendations, not a claim that the job passed. Manual E2E recommendations remain advisory and no full PR E2E run is claimed. Required CI is green on the final commit. The ShellCheck report job was retried once after GitHub's analysis-ingestion service returned |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
Merge decision for The local checker flags the latest metadata-only Applying the maintainer-authorized admin merge because this account authored the replacement and cannot submit a self-approval. The repository requires a squash merge. The contributor's signed commits remain intact in the PR history, and the squash commit will credit Harjoth as co-author. |
## Outcome PR description edits no longer make the maintainer checker reject successful code CI as `changes: SKIPPED`. The checker recognizes the current metadata-only workflow while retaining rejection of unknown or incomplete job evidence. ## Reason The current PR workflow defines 14 jobs. The checker still expects 11 names: it omits four current jobs and includes the retired `wechat-runtime-audit` job. This mismatch reproduced during review of #12339. ## Changes - Match the current workflow by adding `compile-artifacts`, `hugging-face-models`, `openshell-sdk-package`, and `real-openclaw-dist-harness`, and removing `wechat-runtime-audit`. - Update the synthetic workflow fixture and cover metadata edits before and after a successful code run, plus rejection of an unknown job. - Preserve existing repository, PR, head/base commit, branch, workflow, event, run, attempt, job, and status validation. - Include current main so the branch consumes the already-merged onboarding lock repair in #10465. The net PR remains three files: the checker job list and its tests. ## Verification - 125 focused tests passed across `check-gates-actions-evidence`, `check-gates-final-snapshot`, `check-gates-compliance`, `triage-runtime`, and `onboard-session-cross-process-lock`. - Replayed the 14-job shape from actual metadata run [36175699914](https://github.com/NVIDIA/NemoClaw/actions/runs/36175699914) through the checker with synthetic, authenticated run identities. Current main rejected valid code evidence as `changes: SKIPPED`; the candidate accepted it. Both rejected an added unknown job. The replay used fake GitHub responses and a temporary home without host credential environment variables. - Confirmed the candidate's 14 names match both current `.github/workflows/pr.yaml` and that actual metadata run, with no missing or retired names. - `git diff --check` passed. The diff contains no secrets, API keys, or credentials. ## Review notes This changes the protected maintainer checker at `.agents/skills/nemoclaw-maintainer-day/scripts/check-gates.ts`. Manual review of the five-line production diff and its tests found no weakened identity or required-check control. Nine-category security review found no blocker. The candidate checker is exercised as the subject of isolated tests; it is not its own approval authority. Approval validation uses the unchanged checker from canonical main plus direct review of this correction. This internal correction changes no end-user runtime or sandbox behavior, so no live E2E or public documentation change is needed. Fresh CI and scheduled review results are collected on this PR's published commit. --- Signed-off-by: Apurv Kumaria <[email protected]> Signed-off-by: Aaron Erickson <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated CI handling for pull request metadata edits so results remain passing when edits occur before or after a successful workflow run. * CI now flags edited workflows that contain an unrecognized skipped job, helping surface incomplete or unexpected check results. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Apurv Kumaria <[email protected]> Signed-off-by: Prekshi Vyas <[email protected]> Signed-off-by: Rebecca Sliter <[email protected]> Signed-off-by: Aaron Erickson <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prekshi Vyas <[email protected]> Co-authored-by: Prekshi Vyas <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]> Co-authored-by: Aaron Erickson <[email protected]>
Outcome
Onboarding now fails verification when an ordinary inference route returns HTTP 404 from
/v1/models, instead of reporting a healthy deployment that immediately appears unhealthy innemoclaw status.Reason
The reported mismatch still exists on current main. This carries forward Harjoth Khara’s contribution in #10609 with the contributor commits preserved. A branch in NVIDIA/NemoClaw is needed because required CI restricts the reviewed OpenShell SDK package to same-repository PRs.
Related issues
Fixes #10543.
Supersedes #10609 after this replacement merges.
Changes
Verification
7d02fef631c6fd04a8a69e9c096a4da40246d1d1: it reported both deployment and inference route healthy. The same check fails health verification with this change. Command and host-port boundaries were stubbed; this was not a live sandbox reproduction.npm run docspassed with zero errors and two existing warnings.git diff --checkpassed. The diff contains no secrets, API keys, or credentials.fe9978aed03a234025613677d0c053aa7fe02ce4: required CI, Docker and rootless Podman all-agent activation, and security scanning passed. The final documentation correction also passednpm run docsin all three guide variants.Review notes
Manual source and caller review covered the integrated change, including sensitive onboarding and dashboard paths. The review found no candidate-owned correctness or security blocker after the owning inference-route guide was corrected.
CodeRabbit completed review through the final commit without actionable comments. All nine Advisor specialist reports were read: seven were clear; the remaining architecture and test recommendations were classified as non-blocking for this scoped fix with source and test evidence. The Advisor's derived blocker job remains red because it counts those recommendations; it is not represented as a passed check.
The maintainer authorized admin merge after green CI and review disposition because this account opened the replacement and cannot approve its own PR. This does not claim an independent human approval. Manual full PR E2E was not required or run.
Signed-off-by: Aaron Erickson [email protected]
Summary by CodeRabbit
Bug Fixes
Documentation