Repository navigation
fix(providers): verify owned extra profiles before sandbox creation - #13356
Conversation
Signed-off-by: Deepak Jain <[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 10 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 |
Signed-off-by: Deepak Jain <[email protected]>
Signed-off-by: Deepak Jain <[email protected]>
Signed-off-by: Deepak Jain <[email protected]>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
rsliter
left a comment
There was a problem hiding this comment.
Reviewed commit 2177410d1369ad84aa0871bf576fcbb0e5f616df against base f1dcab784d273a56f1adc6292c7336b81fb41767.
No blocking correctness or security defect found. The change verifies NemoClaw-owned Langfuse and NVIDIA provider profiles before provider publication or sandbox creation. It uses checked-in profile paths, rejects verification failures before mutation, preserves cleanup behavior, and does not expose adapter error text. The focused tests cover profile selection, incompatible and missing profiles, typed failure classes, credential redaction, cleanup aggregation, and retry.
Security review: PASS for credentials, input validation, authorization boundaries, dependencies, error handling, cryptography and data handling, configuration, security tests, and system isolation.
Scope is accepted by #12940 and tracked by #13345. Required CI and commit verification pass. The PR Review Advisor is clear for this commit and recommends no additional E2E selectors: https://github.com/NVIDIA/NemoClaw/actions/runs/38958110222
The focused risk-plan E2E selectors passed on this commit: channels-add-remove, channels-stop-start, hermes-discord, messaging-providers, onboard-repair, onboard-resume, openclaw-discord-pairing, and openclaw-slack-pairing. messaging-providers passed a bounded second attempt after the first attempt reported pairing-incompatible: https://github.com/NVIDIA/NemoClaw/actions/runs/38955777748
Image and runtime qualification also passed for AMD64, ARM64, and rootless Podman: https://github.com/NVIDIA/NemoClaw/actions/runs/38955638585
…3558) ## Outcome Maintainers can now trace each provider profile to its definition, import point, creation or attachment path, and tests. The inventory identifies retained gateway-catalog dependencies and a reproduced native-local warning gap, so an empty-catalog qualification cannot be mistaken for complete provider coverage. ## Reason The earlier #12940 inventory predates the merged native-local paths and several focused repairs. This inventory is pinned to main commit `42d2ae6938a5a22a307644168aa888506d69f96a` and distinguishes shipped behavior from pending work. ### Related issues Fixes #13345. Refs #12940, #12558, and #13346. Focused warning repair: #13557. Model Router profile disposition: #13560. ## Changes - Add the provider-profile inventory to the development references and link it from the development guide. - Map owned and operator-supplied profiles, classify every production `upsertProvider` create caller, and record repeat, collision, and advisory-warning behavior. - Reconcile the merged native paths and #13356. Keep pending #13528 and #13556 outside the source baseline. - Record the remaining create paths: `inference set` outside the shared helper, the Hermes rebuild preflight, and the legacy `nvidia-nim` catalog type `nvidia`. Record Model Router as having no owner, and the selected path's missing caller-level warning evidence. - Record the maintainer decision: Deepak Jain selects native NVIDIA hosted inference for #13346 because it has a checked-in profile and lifecycle tests. The inventory records the selection; #13346 owns the disposable empty-catalog run, matching-profile reuse, collision refusal, and terminal cleanup. Runtime behavior and the OpenShell pin are unchanged. The warning repair belongs in its own PR under #13557. ## Verification - `npm run docs`: passed, with 0 errors and 2 Fern warnings. - Inventory source and test audit: every local link resolves, and the caller table covers all production `upsertProvider` calls found in the baseline. - `npx vitest run --project cli src/lib/inference/native-nvidia.test.ts src/lib/inference/native-local.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/adapters/openshell/provider-adapter-cli-profile-warning.test.ts src/lib/messaging/applier/provider-application.test.ts src/lib/hermes-tool-gateway-provider-profile.test.ts`: 269 passed; one Hermes profile test timed out. - `npx vitest run --project cli src/lib/hermes-tool-gateway-provider-profile.test.ts`: isolated rerun passed all 22 tests. - Disposable warning regression: both drift and timeout cases failed because no warning was emitted after successful inspection and attachment. #13557 records the reproduction; the temporary tests were removed and are not committed coverage. - Normal commit and pre-push hooks passed, including publication validation and CLI/plugin type checks. - Required checks passed on `e74fea0f6cb6849001d368391fb4cc4e5a85023d`, including [PR CI](https://github.com/NVIDIA/NemoClaw/actions/runs/39461234352). - [Advisor review](https://github.com/NVIDIA/NemoClaw/actions/runs/39461524444): all nine specialists returned clear results, and the no-blockers gate passed. - No runtime tests were added because this PR changes only the inventory and its discovery link. - Selected-release execution and cleanup were not run; #13346 owns that evidence. - The diff contains no secrets, API keys, or credentials. ## Review notes Both changed references fall under the `.agents/**` sensitive-path policy. Independent source and documentation review of commit `e74fea0f6cb6849001d368391fb4cc4e5a85023d` found no blocking issues. CodeRabbit skipped automatic review because this is a draft. Maintainer review remains required. DGX Station validation is not applicable: this PR changes no Station behavior. --- 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 - **Documentation** - Added development guidance covering provider profile ownership, import points, and retained catalog dependencies. - Added a comprehensive provider-profile inventory for inference, messaging, MCP, runtime identity, credentials, and related routes. - Documented profile creation, ownership, verification, reuse, collision handling, identity and credential binding, warnings, known gaps, and release validation requirements. - No exported or public entity declarations were changed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Deepak Jain <[email protected]>
## 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
Sandbox creation and rebuild now verify the NemoClaw-owned profile before attaching a registered Langfuse or separately named native NVIDIA extra provider. Conflicting or unreadable profiles stop preparation with the failure class, operation and safe recovery guidance. Successful creation includes both profiles in the existing advisory verification afterward.
Reason
credentials addimports these bundled profiles, but later sandbox creation only recognized messaging, search and channel-bridge profiles. The documented Hermes Langfuse rebuild path therefore skipped profile verification. An extranemoclaw-nvidia-inference-v1provider had the same omission.Related issues
Part of #13345 and #12940. This repairs two inventory findings; it does not close either issue.
Changes
endpointlessProviderProfilePathand NVIDIA through its native lifecycle resolver.Verification
npx vitest run --project cli src/lib/onboard/sandbox-create/provider-publication.test.ts src/lib/adapters/openshell/provider-adapter-cli-profile-warning.test.ts src/lib/actions/credentials-provider-adapter.test.ts --reporter=default: 3 files, 108 tests passed on the diagnostic repair.2177410d1369ad84aa0871bf576fcbb0e5f616df, including publication validation, growth guardrails and CLI typecheck. Unchanged plugin/JS typechecks were skipped. All published commits are GitHub Verified. The diff contains no secrets, API keys or credentials.27e34d1932passed core CI and all eight deterministic E2E job sets (ten workload rows) in run 38949834584, with authenticated receipts and no registered cleanup failures. The exact CLI is separate from its authenticated ancestor image cohort4bbfd114/ghrun-38940694610-1. This focused run is not full-release qualification. All three automatic image activations also passed for that prior head, including rootless Podman with Docker unavailable. Prior-head results do not qualify diagnostic head2177410d13.2177410d13: core CI passed. Fresh Advisor has nine authenticated clear specialist reports and a passed blocker gate, with no additional E2E recommendations.Messaging providers (docker)passed the one permitted failed-job retry (attempt 2), including all nine phases, M-WA4 rebuild, installed fake messaging runtime proofs and cleanup. The exact CLI is2177410d13; both attempts use authenticated ancestor image cohort27e34d1932/ghrun-38949698980-1. Consumer restoration authenticates the retained attempt-1 CLI and catalog; the attempt-2 aggregate's generated dispatch label refers to a nonexistent attempt-2 receipt, so provenance is bound to the actual retained attempt-1 dispatch instead.pairing-incompatibleafter native final start; phases 4–8 were unreached. The unchanged-test comparison and complete failed-log audit justified one bounded retry under repository policy. Its pass does not establish which device/token/scope predicate failed or prove a flake. No assertion, timeout, input or production code changed for the retry. Optional real Telegram/Discord sends were skipped; installed fake runtime/credential-rewrite paths passed. The optional S2 Slack guard-catch log was not observed. All 23 registered cleanup tasks passed; ten fake containers and five private networks have successful removal receipts, and sandbox deletion confirms it was absent. Five provider-detach warnings remain; residual provider absence is unknown on the isolated hosted runner's preserved gateway.2177410d13images: each authenticated receipt covers 13 phases, three agents, 28 backend chat requests, zero image builds, external-image rebuild/retention checks and no registered cleanup failures. Podman additionally proves Docker remained unavailable before and after activation, with zero Docker guard invocations. Final owned sandbox and container absence is recorded for all five names on each platform. These neighboring passes do not explain the original Messaging failure.Review notes
Self-review and a separate agent inspection covered the complete two-file change in NVIDIA/NemoClaw under sensitive path
src/lib/onboard/sandbox-create/. The diagnostic follow-up was inspected as patch3f39ee51472dc10565eceed27dc6e40665e00c5ee2bce6062462d6723e7ead61against published27e34d1932, with no additional findings. Independent human review is pending.Advisor on
27e34d1932cleared eight specialists and retained the inherited generic diagnostic finding. This follow-up addresses it at the owning boundary using finite failure kind/reason/operation and fixed recovery text, with no raw error message or cause. Conflict guidance does not replace or remove an existing profile;not_founddoes not imply the local bundled file is missing. Fresh Advisor on2177410d13now clears all nine specialists and its blocker gate. The one bounded Messaging retry passed with the original failure and causal uncertainty retained above. Current scoped automated qualification is complete; independent human review is pending.Existing same-ID profiles are exported and compared before import; conflicts stop without replacement. The NVIDIA profile is static and checked in. Unknown operator profiles are not imported as owned profiles. General managed activation is neighboring coverage; exact extra-provider selected-release qualification remains with #13346.
Signed-off-by: Deepak Jain [email protected]
Summary by CodeRabbit