Repository navigation
fix(config): export NVIDIA sources and clarify migration prerequisites - #12451
Conversation
Resolve the builtin NVIDIA profile at the provider's bound workspace. Accept empty or current-workspace bindings after verifying the builtin profile. Keep custom profiles, config overrides, and foreign bindings outside this derivation. Add provider, exporter, and generated-SDK regression coverage for both bindings. Refs #11421 Signed-off-by: Hung Le <[email protected]>
Carry verified CA omission to the CLI after a successful export. Write a fixed notice to stderr while preserving YAML and the JSON result contract. Do not emit the notice when observation or publication fails. Cover CA/no-CA sources, stable observations, and output failures in existing tests. Refs #12146 Signed-off-by: Hung Le <[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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughConfig exports now report when source corporate CA configuration is omitted, without changing exported YAML or version 1 JSON. Exported network policies omit ChangesCorporate CA export notice
Native NVIDIA profile workspace binding
Exported network policy
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Verify as completeVerifiedSource
participant Observe as observeStableExportSource
participant Export as runConfigExport
participant Command as config export command
Verify->>Observe: verified result with optional omission marker
Observe->>Export: successful observation with marker
Export->>Command: successful outcome with marker
Command->>Command: write omission notice to stderr after success
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change reports omitted CA configuration on export and drops a credential marker from exported network policies. No merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 13 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit ebd4d31 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit ebd4d31 in the Show a line coverage summary of the most impacted files.
Updated |
|
Follow-up on Advisor's native NVIDIA profile-binding recommendation: manual live validation passed for exporter The v0 source was created through local install/onboard at
The CA notice appeared once on stderr for both stdout and file/JSON export. The source registry hash remained unchanged, and the exported YAML contained neither the API key nor source CA material. The test sandbox and gateway were removed. This provides live evidence for the current-workspace binding and successful source export. Legacy empty binding and v1 parser/apply validation were not covered. |
sandl99
left a comment
There was a problem hiding this comment.
Reviewed commit ab9c93874f78681ef1a442e5e2b9d6ce5d689038.
No blocking code defects or vulnerabilities found. Approval remains pending the exporter compatibility evidence required by #11421 and #12146.
The CA omission notice follows successful publication and stays outside YAML and the version 1 JSON result. The PR does not export the CA bundle, path, or digest. NVIDIA profile lookup now accepts the current-workspace binding while retaining builtin provenance, scope, revision, endpoint, and override checks.
At v1 revision 7f3c4d922fe822dca746b242436d8f4eb5a6a096, sandbox and agent corporate CA trust still has no YAML contract. The existing spec.gateway.tls.ca.env references a local CA file for external gateway mTLS; it does not provision sandbox trust. See the v1 types, gateway transport, and CA qualification status.
| Category | Severity | Location | Finding | Recommendation |
|---|---|---|---|---|
| Security testing / compatibility | WARNING | PR description, Review notes | Raw exported YAML has not been validated with a pinned v1 parser, as required by the linked issues. | Attach validation of the unmodified real export artifact before approval. Identify the exporter commit, target v1 revision, command, and result. |
Collected all nine Advisor specialist reviews for this commit. None reported a code finding. The later live comparison substantiates the real-gateway export recommendation for the current-workspace NVIDIA binding. Record that disposition against the Advisor's unresolved recommendation. Legacy empty-binding live qualification remains absent, as disclosed in the PR.
Local verification: 227 focused tests passed. The optional SDK suite skipped 23 tests because its artifact was unavailable. The unchanged command-help test failed because the isolated checkout lacked the compiled help class; the other 16 command tests passed. This is not a full-suite or live-E2E claim.
| Security category | Verdict | Reason |
|---|---|---|
| Secrets and credentials | PASS | Only a boolean omission flag reaches the notice. |
| Input validation | PASS | Unsupported bindings and profile changes remain rejected. |
| Authentication and authorization | PASS | Existing gateway and identity checks remain. |
| Dependencies and third-party libraries | PASS | No dependency changes. |
| Error handling and logging | PASS | The fixed notice follows successful publication only. |
| Cryptography and data protection | PASS | CA validation and transport protections remain. |
| Configuration and security headers | PASS | Provider overrides remain ineligible. |
| Security testing | WARNING | Exporter compatibility evidence remains incomplete. |
| System security | PASS | Stable observation and publication checks remain. |
Changed files reviewed: 13
src/commands/config/export.tssrc/commands/config/export.test.tssrc/lib/actions/config/export.tssrc/lib/actions/config/observe-export-source.tssrc/lib/adapters/config/live-export-source.test.tssrc/lib/adapters/openshell/providers.tssrc/lib/adapters/openshell/providers.test.tssrc/lib/adapters/openshell/README.mdsrc/lib/domain/config/export-evidence.tssrc/lib/domain/config/verify-export-source.tssrc/lib/domain/config/verify-export-source-corporate-ca.test.tssrc/lib/domain/README.mdtest/onboarding/openshell-sdk-export-reads.test.ts
Also traced the adjacent workload authority, SDK validation, live observation, and CLI reporting paths.
sandl99
left a comment
There was a problem hiding this comment.
Approved after review of ab9c93874f78681ef1a442e5e2b9d6ce5d689038; no blocking code defects or vulnerabilities found.
At the user's explicit direction, the additional pinned v1 parser validation requested in my previous review is waived for this PR. This approval does not claim that validation was performed.
Corporate CA bundle, path, and digest remain omitted from exported YAML. Destination sandbox and agent trust must be provisioned separately.
Merge main fcce93c and preserve the native NVIDIA binding and CA omission fixes. Omit computed gateway credential markers from exported policy while preserving authored controls and source state. Add focused projection regression tests. Document destination credential, proxy, and CA prerequisites and the existing runtime identity exclusion. Manual source-export qualification used Linux AMD64, DGX Station ARM64, and macOS ARM64 with the pinned v1 parser at 88c6600. Validate the merged working tree with focused tests, CLI typecheck, growth guardrails, and the documentation build. Live evidence predates this main merge. Refs #12146, #11421 Signed-off-by: Hung Le <[email protected]>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Outcome
nemoclaw config exportverifies native NVIDIA provider bindings that previously failed live verification. When a successful export omits retained corporate CA state, the CLI reports that omission on stderr. Exported policy omits the gateway's computedprovider_credentialedmarker so the tested raw YAML passes the pinned v1 parser.Reason
Users need portable configuration and clear destination prerequisites. The YAML carries credential references, while destination credentials, CA trust, and proxy availability require separate preparation.
Related issues
Closes #12146.
Closes #11421.
Refs #12011 and #12130.
Changes
--json. Tests cover stdout separation, absent CA, retry stability, and publication failures.provider_credentialedfrom the cloned policy. Projection tests cover both boolean values, preserve authored credential controls, and confirm that the source policy stays unchanged.Verification
fcce93c721e87c124442d1b8079cbc3d71fc45df: CLI/plugin builds, CLI typecheck, 266 tests across six changed test files, and all seven growth guardrails passed.npm run docspassed with zero errors. Fern reported two warnings: deployed-redirect comparison requires authentication, and the existing light-theme accent contrast is below its recommendation. Local route validation passed.88c6600c06b0937907290362eef86912052c4ad0. Linux file output and macOS stdout were exercised; direct file output remains Linux-only, as established by feat(config): export verified sandbox configuration #11015.Focused test command
Additional completed commands:
npm run build:cli,npm --prefix nemoclaw run build,npm run typecheck:cli, andnpx --no-install vitest run --project integration test/automation/pull-requests/growth-guardrails.test.ts.Manual qualification revisions and results
Sources were created by the local installer from
3713edeebfca950df302eac428b845d06a5fcd5a, using OpenShell CLI/SDK 0.0.116 and OpenClaw 2026.9.1. The installer prepared and loaded the SDK without CI SDK staging. On macOS, the same pinned OpenShell helper ran first in an authenticated SSH session.The exporter used
node bin/nemoclaw.js config export <sandbox> --output -. Linux also exercised--output <path> --json; custom gateway runs setNEMOCLAW_GATEWAY_PORT.The installed-source CLI failed native NVIDIA metadata verification on Station and macOS. An untouched
ab9c93874f78681ef1a442e5e2b9d6ce5d689038exporter produced YAML, but the pinned parser rejected it. Adding the projection patch made raw parsing and compilation pass on the same sources. The patch SHA-256 is3012b63405bbd9d57715ac0522ed2b0d5da57c9b47fd588b52066fc395d9e3bc.Candidate raw YAML SHA-256 values:
c4e8aa60f9d3634f26184d4868aa99422237786bf2e110100b3616fc5f766154.48dad688035221a9297d0fdcbba8f3dc7d57ad1247319a1707e46c9e3d852363.5a57054fd58bc465f31acfaf2395ab2f10c8ef448cbd5f1abb779c80c593f1e0.d58b4c499799d034a7a2fd44af780ceec1aa15e856fb0a32532129771cda1803.Each candidate parsed and compiled successfully, with the input hash unchanged. CA cases emitted one notice on stderr; cases without CA emitted none. Linux file output had mode
0600and retained the version 1 JSON result. Source registry hashes stayed unchanged; Station and macOS checks also preserved sandbox identity, config/provider revisions, and policy hashes.These live runs tested
ab9c938plus the projection patch before the main merge. Local checks above cover the merged working tree. The consumer ran on the workstation; this is pinned parser/compiler evidence, not a v1 deployment or compatibility claim for the latest v1 branch. No v1 plan/apply/health/invoke or local full test suite was run for this publication checkpoint.Signed-off-by: Hung Le [email protected]