Repository navigation
fix(onboard): warn on direct create profile drift - #13189
Conversation
Signed-off-by: Rebecca Sliter <[email protected]>
|
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. |
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 8 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
Maintainer disposition for the PR Review Advisor reduction/simplification P1 on commit The broker and direct-create paths both use the shared credential-binding matcher. The finding identifies a risk of future contract drift; it does not show a current binding mismatch. Refactoring the broker is outside this PR's accepted post-attachment warning slice. #13196 owns the shared contract and regression tests. This waiver covers only that maintainability finding on this commit. The Advisor blocker gate remains failed. This comment records the maintainer decision; it does not change the gate result. Other CI and automated-review evidence must still settle before this PR is ready for review. |
|
PR Review Advisor E2E selection for commit |
## Outcome Native-local attachment now warns if a profile changes or cannot be checked after attachment, even with a fresh CLI adapter. Matching profiles stay quiet, and advisory warnings preserve the successful attachment. ## Reason Inspection validated the expected profile but discarded its verification state. Attachment therefore skipped its existing advisory check. The new tests reproduce that missing handoff through both the adapter and its native-local caller. ### Related issues Fixes #13557. Refs #12940 and #12558. Prior work: #12985 added imported-profile warnings, #13033 bounded the lookup, #13189 covered direct creation, #13353 retained operator-registration snapshots, and #13356 covered extra owned profiles. #13558 documents this gap; #13346 owns selected-release qualification. ## Changes Retain the expected contract in the existing gateway-scoped verification state only after every inspection check passes. Reuse the existing warning path and contract comparison. Add regressions for matching exports, drift, export failure, timeout, rejected prechecks, unverified inspections, gateway isolation, and credential-free warnings. The native-local caller tests confirm that warnings preserve attachment without rollback. Decision: Accept this focused repair. Deepak Jain is the accountable maintainer. The reason is to restore #12940's required warning after successful inspection. Placement is the existing CLI adapter. The validation plan is fresh-adapter regression coverage, native-local caller coverage, related provider suites, and normal publication hooks. The OpenShell pin and runtime qualification remain outside this repair. ## Verification - Historical regression evidence on `874e0d2`: before the fix, seven new cases failed because post-attachment verification never ran. With the fix, both changed suites passed all 126 tests. - `npx vitest run --project cli src/lib/adapters/openshell/provider-adapter-cli.test.ts src/lib/adapters/openshell/provider-adapter-cli-profile-warning.test.ts src/lib/inference/native-local.test.ts src/lib/inference/native-nvidia.test.ts src/lib/inference/native-provider/hosted.test.ts src/lib/inference/native-provider/custom.test.ts src/lib/onboard/sandbox-create/provider-publication.test.ts src/lib/hermes-tool-gateway-provider-profile.test.ts`: 8 files, 353 tests passed on `a6fde22103158324ddb35c5439b18dde0caa004c`. The CLI and plugin builds also passed. - `npx vitest run --project cli --project integration src/lib/adapters/openshell/provider-adapter-cli-profile-warning.test.ts src/lib/inference/native-local.test.ts test/automation/pull-requests/growth-guardrails.test.ts`: 3 files, 133 tests passed on `874e0d2`; this is historical evidence. - Normal pre-push hooks passed on `a6fde22`, including publication validation and CLI TypeScript. Publication validation ran the required repository checks and builds. Both PR commits are GitHub Verified. - The PR includes #13513 from `main`, with MCP SDK 1.32.0 in all four production lockfiles. [CI](https://github.com/NVIDIA/NemoClaw/actions/runs/39534237404) and [managed-image checks](https://github.com/NVIDIA/NemoClaw/actions/runs/39534237451) are queued or running on `a6fde22`. Automated review must also evaluate this commit; earlier hosted results do not validate it. - Live OpenShell and selected-release qualification were not run. #13346 retains that work. - The diff contains no secrets, API keys, or credentials. ## Review notes The native-local test changes match the sensitive-path policy for `src/lib/inference/**`. Self-review of commit `874e0d27673a308502178e9bf5a6e9058dc0e99e` covered the complete three-file NVIDIA/NemoClaw diff, including state ordering, gateway isolation, warning output, and successful attachment preservation. All nine Advisor specialists reported no findings on `874e0d2` in [run 39521169394](https://github.com/NVIDIA/NemoClaw/actions/runs/39521169394). That review is historical; automated review and independent human review of `a6fde22` remain pending. DGX Station validation is not applicable. --- Signed-off-by: Deepak Jain <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit - **Bug Fixes** - Improved provider attachment verification when an expected profile is configured. - Added detection for profile drift, credential mismatches, inspection failures, gateway mismatches, export failures, and timeouts. - Verification warnings now avoid exposing credential values. - Failed verification states are no longer incorrectly retained, while attachment operations continue to report changes accurately. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Deepak Jain <[email protected]>
Outcome
Direct sandbox creation now warns when a NemoClaw-owned provider profile cannot be confirmed unchanged after attachment. A successfully created sandbox remains successful, and resume does not claim knowledge of the original bind-time profile.
Reason
The profile verified before creation can change before or during provider attachment. The warning gives operators a credential-free signal that the definition used at bind time is uncertain.
Related issues
Refs #12940
Changes
genericreuse, collisions, and resume.Verification
NODE_OPTIONS=--max-old-space-size=8192 npm run typecheck:clipassed.npm run test:changedpassed its catalog and growth guardrail, then encountered two unrelated broad-run test timeouts. The isolated pairing case passed; the isolated Hermes debug bundle case passed with a 20-second test timeout.Review notes
NVIDIA/NemoClaw commit
9455d48baa00061eebec232ddcbf03588d660dbbchanges sensitive inference, messaging, and onboarding paths. I reviewed the eight changed files and focused tests before publication; no independent pre-publication review exists. Automated and maintainer review remain pending.Signed-off-by: Rebecca Sliter [email protected]
Summary by CodeRabbit