Repository navigation
Conversation
Install reviewed optional plugin archives through a private offline npm cache. Use the native pinned install path and require its official trust record, package identity, version, and integrity to match the reviewed inputs. This restores the diagnostics capability denied to npm-pack path-origin installs. Preserve archive verification, disabled install scripts, and network-isolated Docker builds. Stage the helper in optimized build contexts. Cover offline options, rejected provenance, tampered archives, foreign registries, and cache cleanup. Refs #12144 Signed-off-by: Hung Le <hple@nvidia.com>
|
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. |
|
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 (13)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughOptional OpenClaw plugin builds now pass reviewed archive metadata to a dedicated installer. The installer validates archive identity and integrity, seeds an offline npm cache, disables install scripts, checks installed provenance, and removes temporary files. Docker and sandbox build contexts stage the installer, and tests cover invocation and failure handling. ChangesOpenClaw Plugin Installation
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Dockerfile
participant Installer as install-reviewed-openclaw-plugin.mts
participant CacheSeeder as materialize-locked-npm-cache-seed.mts
participant OpenClaw as openclaw plugins
Dockerfile->>Installer: archive path, package spec, SRI, tarball URL
Installer->>CacheSeeder: seed offline npm cache from reviewed archive
Installer->>OpenClaw: install pinned plugin with scripts disabled
Installer->>OpenClaw: inspect installed plugin provenance
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation [ 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 12 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 7d0b9d2 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 7d0b9d2 in the Show a line coverage summary of the most impacted files.
Updated |
Bind the reviewed optional-plugin COPY and RUN instructions to the existing remote dashboard contract without accepting appended configuration rewrites. Update Dockerfile tests and shell fixtures for the native offline installer, including archive arguments, disabled scripts, and failures before doctor. Refs #12144 Signed-off-by: Hung Le <hple@nvidia.com>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
Putting this PR on hold until the v1 YAML schema is settled. We’ll then align this change with the shared exporter and validate it against the agreed schema before resuming review. |
Outcome
Restore OTLP trace delivery when OpenClaw diagnostics is installed from a reviewed offline archive. The shared optional-plugin installer now preserves native official provenance for diagnostics, Brave and Tavily.
Reason
OpenClaw 2026.9.2 classifies
npm-pack:installs asorigin-path, which denies the diagnostics plugin its internal event capability. This change follows the official messaging-plugin installation pattern merged in #12292: verify the archive, install the pinned npm spec offline, and inspect the native trust record.The OTLP exporter mapping and v1 conversion tests already exist, including #12468 and #12481. This PR repairs the source runtime defect found during qualification and supplies real trace-delivery and source-to-export evidence.
Related issues
Closes #12144.
Refs #12130 and #10904.
Changes
install-reviewed-openclaw-plugin.mtsfor the three optional plugins selected by existing Dockerfile pins. It reuses the reviewed archive verifier and npm cache writer, installs through OpenClaw with scripts disabled, verifies native trust and package/version/integrity, and removes its private cache on success or failure.RUN --network=none, pinned archive inputs and the neutral image's opt-in configuration. Add the helper to optimized build-context staging.An npm-spec substitution alone cannot consume only the pre-staged archive in an isolated build. The helper prepares a private cache from verified bytes before invoking the native installer. It does not edit OpenClaw's trust predicate or installation records.
Verification
Local validation below covers
a2d92b7f905d6a268679de95af1af9b37f5dde6f. Dockerfile and installer-helper bytes are unchanged from14eca97890e33473c21d8257735ca3d1a8d6996d. Compared with the live-tested snapshot, these two files differ only in a Dockerfile comment. Remote CI must be evaluated for the commit being published.npm run typecheck:cli, targeted Oxfmt/Oxlint, 14 selected repository checks, growth guardrails (7/7), source-shape, environment documentation and diff checks passed.a2d92b7, including gitleaks and commitlint. The diff contains no secrets, API keys or credentials.Repair validation commands
CI repair
On
abec41cf42ad0033bed67bc69a839250062fba94, five CLI shards failed and thecli-tests/checksaggregates failed with them. The npm12/lifecycle assertions still identified the old npm-pack command; integrity/Tavily shell fixtures did not intercept the new image-only helper. The remote-dashboard guard also lacked the exact identities of the new Dockerfile instructions.a2d92b7repairs these consumers without changing Dockerfile or installer bytes, weakening refusal assertions, or bypassing CI. The local tests above passed. On39f2976511317fb17b8baf3327d7c0e6a0ecd173, all 12 CLI shards and build/typecheck passed. Current CI remains blocked by inheritedproxy-addr@2.0.7audit failures; no CI waiver is claimed. Image and rootless workflows for the precedingabec41cfcompleted successfully (images, rootless); these remain evidence for that preceding commit.Manual OTLP and exporter proof
Tested on native Linux AMD64 with Docker 29.8.2, OpenShell 0.0.116 and OpenClaw/plugins 2026.9.2. A real local
install.shat release v0.0.130 (a73099c7735889a78950b6a22ca9ba30c0cf49f5) createdotel12144-fixed, using hosted NVIDIA inference and OTLP servicenc12144-fixedwith sample rate 1.Published source image:
The unmodified source reported
origin-path; the baseline failed withinternal diagnostics capability unavailable. The committed helper was applied through normal sandbox execution, using the image-build npm prefix/usr/local. It producedtrusted-officialprovenance at the same package version and SRI. Helper SHA256:The same helper separately installed the real diagnostics, Brave and Tavily archives in a disposable container with networking disabled. All three native trust/integrity inspections passed. This verifies installation; it does not claim Brave/Tavily search execution.
After the public restart command, a real gateway agent turn returned
Hello!:The collector received 15 OTLP/protobuf requests containing 149 decoded spans, all with
service.name=nc12144-fixed. They includeopenclaw.model.call,openclaw.model.usage,openclaw.runandopenclaw.harness.run, plus gateway RPC spans. This is a receiver snapshot, not a count attributed exclusively to the greeting.A bounded task-local receiver accepted OpenClaw's chunked requests; the original Deep Agents receiver required Content-Length. The existing protobuf decoder read the received bytes. No synthetic success spans were supplied, and repository E2E fixtures were not changed.
The exporter was built from
ea9ad4b797ef4b18a6a83ad85494ad2e98e2975a; exporter source is unchanged by this PR. The source and exporter package/lock blobs matched, and the exporter reused the source checkout's installed dependencies. This command exited 0:NEMOCLAW_GATEWAY_PORT=18144 node bin/nemoclaw.js config export otel12144-fixed --output -Its unchanged 12,185-byte YAML passed the actual Rust parser/compiler and native configuration conversion at v1
42a26d90f1f6207cc35b5053556db67c86ce759f. The native configuration retained the endpoint, service name, sample rate and enabled diagnostics plugin. The adapter check used contract import stubs; it did not start Fabric.{ "exportExit": 0, "rawBytes": 12185, "rawSha256": "23d032ad600ccd46da60017635e02f904cf4685d3466199abeee7507fe116aa4", "parserCompilerTestsPassed": 1, "nativeConfigurationPassed": true, "registryBeforeAndAfterSha256": "5d2db55d68f1764a13296328d575beda9dcd9e95c0b7235ad4ff7a72868cdf50", "usedCredentialAndCheckedEncodingsAbsent": true, "promptAndSessionSentinelsAbsent": true, "acceptedOtlpRequests": 15, "decodedSpans": 149 }Parser proof at the issue's target revision
On 2026-10-06, the same retained live-export YAML also passed the actual parser/compiler at v1
88c6600c06b0937907290362eef86912052c4ad0, the target recorded in #12144. All 545 archived consumer source files matched that Git revision before execution. The 12,185-byte input was not rewritten; its SHA256 remains23d032ad600ccd46da60017635e02f904cf4685d3466199abeee7507fe116aa4.The existing compatibility fixture calls
Document::parseandcompile::targetsdirectly. It was copied tocrates/nemoclaw-sdk/tests/config_export_compatibility.rsin the consumer archive. From that archive, the command used the retained YAML and a separate settings-output path (paths represented by variables below):Result:
1 passed; 0 failed. The compiler retained:{ "enabled": true, "endpoint": "http://host.openshell.internal:4318", "serviceName": "nc12144-fixed", "sampleRate": 1 }This additional check covers parser/compiler acceptance of the October 5 live export. It did not repeat the live source test, native-adapter check or trace-delivery run, and did not start a v1 destination. The earlier
42a26d9native-conversion evidence remains separate.The supported mapping is fixed OpenClaw OTLP with an externally operated collector. Existing Deep Agents tracing refusals remain. This PR does not add arbitrary OTLP endpoints, collector credentials, managed collector installation or Hermes tracing.
Test resources were removed through the normal CLI and owned-process cleanup. Final inventory had no running containers or listeners on the test ports; Docker storage/configuration was unchanged.
Raw exporter YAML — unchanged bytes used by the v1 checks
Review notes
Pre-publication self-review covered the complete 13-file diff in NVIDIA/NemoClaw at
a2d92b7f905d6a268679de95af1af9b37f5dde6f, including the five-file repair fromabec41cf. The canonical sensitive-path policy matches the installer, build-context code and remote-dashboard contract. Review covered archive verification, offline installation, native trust, cache cleanup and exact instruction matching. Independent writing and evidence review found no publication blockers. No maintainer security approval or CI waiver is claimed. Maintainer review of these paths remains pending.The original manual proof applied the committed helper to a published image; it was not a complete build of the candidate Dockerfile. A running v1 destination, ARM64 trace delivery and rebuild/restore qualification were not tested.
Signed-off-by: Hung Le hple@nvidia.com
Summary by CodeRabbit