Skip to content

fix(openclaw): restore tracing for offline plugin installs - #12620

Closed
hunglp6d wants to merge 5 commits into
mainfrom
codex/12144-export-observability
Closed

hunglp6d wants to merge 5 commits into
mainfrom
codex/12144-export-observability

Conversation

@hunglp6d

@hunglp6d hunglp6d commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

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 as origin-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

  • Add install-reviewed-openclaw-plugin.mts for 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.
  • Preserve RUN --network=none, pinned archive inputs and the neutral image's opt-in configuration. Add the helper to optimized build-context staging.
  • Cover modified archives, mismatched package identities, foreign registries, rejected native provenance, cache cleanup and build-context wiring. The separate messaging installer remains unchanged because its consumers are channel-manifest-selected plugins.
  • Bind the two helper COPY instructions and the offline plugin RUN to the existing remote-dashboard guard by their normalized SHA256 values. Keep rejection of appended configuration rewrites. Update the surrounding ordering, lifecycle and shell-fixture tests for the new installer boundary.

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 from 14eca97890e33473c21d8257735ca3d1a8d6996d. 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.

  • The initial installer/staging validation passed 103 distinct cases, JS/CLI typechecks and targeted lint. CI later exposed surrounding test and guard consumers that this initial selection missed.
  • After the repair, 124 integration cases passed across ten files, with one pre-existing conditional case skipped; the adjacent CLI staging suite passed another 16 cases. This includes every failed test owner from CI run37325796082, the shared integrity groups, and the remote-dashboard refusal cases.
  • npm run typecheck:cli, targeted Oxfmt/Oxlint, 14 selected repository checks, growth guardrails (7/7), source-shape, environment documentation and diff checks passed.
  • The contributor's complete terminal output reports normal commit hooks passing for a2d92b7, including gitleaks and commitlint. The diff contains no secrets, API keys or credentials.
Repair validation commands
npx vitest run --project integration test/agents/openclaw/openclaw-npm12-pack-json.test.ts test/agents/openclaw/openclaw-lifecycle-policy.test.ts test/agents/openclaw/openclaw-integrity-pin-plugin-install.test.ts test/agents/openclaw/openclaw-integrity-pin-base.test.ts test/agents/openclaw/openclaw-integrity-pin-contract.test.ts test/runtime/sandbox/sandbox-provisioning-tavily.test.ts test/networking/dashboard-remote-bind-lifecycle.test.ts test/install/install-reviewed-openclaw-plugin.test.ts test/agents/openclaw/openclaw-optional-plugin-build.test.ts test/runtime/sandbox/sandbox-build-context.test.ts
npx vitest run --project cli src/lib/onboard/build-context-stage.test.ts
npm run typecheck:cli

CI repair

On abec41cf42ad0033bed67bc69a839250062fba94, five CLI shards failed and the cli-tests/checks aggregates 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.

a2d92b7 repairs these consumers without changing Dockerfile or installer bytes, weakening refusal assertions, or bypassing CI. The local tests above passed. On 39f2976511317fb17b8baf3327d7c0e6a0ecd173, all 12 CLI shards and build/typecheck passed. Current CI remains blocked by inherited proxy-addr@2.0.7 audit failures; no CI waiver is claimed. Image and rootless workflows for the preceding abec41cf completed 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.sh at release v0.0.130 (a73099c7735889a78950b6a22ca9ba30c0cf49f5) created otel12144-fixed, using hosted NVIDIA inference and OTLP service nc12144-fixed with sample rate 1.

Published source image:

ghcr.io/nvidia/nemoclaw/openclaw-sandbox@sha256:57ca4c1ca68b68d14b1ca8bd82e069842dfdb576c3190207a593fd80034f7654

The unmodified source reported origin-path; the baseline failed with internal diagnostics capability unavailable. The committed helper was applied through normal sandbox execution, using the image-build npm prefix /usr/local. It produced trusted-official provenance at the same package version and SRI. Helper SHA256:

f696499eaf95a0e72544dcf584d3cbf82574766861adc5778b8a5b7e1cc811ed

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!:

NEMOCLAW_GATEWAY_PORT=18144 node bin/nemoclaw.js sandbox gateway restart otel12144-fixed

The collector received 15 OTLP/protobuf requests containing 149 decoded spans, all with service.name=nc12144-fixed. They include openclaw.model.call, openclaw.model.usage, openclaw.run and openclaw.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 remains 23d032ad600ccd46da60017635e02f904cf4685d3466199abeee7507fe116aa4.

The existing compatibility fixture calls Document::parse and compile::targets directly. It was copied to crates/nemoclaw-sdk/tests/config_export_compatibility.rs in the consumer archive. From that archive, the command used the retained YAML and a separate settings-output path (paths represented by variables below):

NEMOCLAW_V1_CONFIG_INPUT="$RAW_EXPORT_YAML" \
NEMOCLAW_V1_SETTINGS_OUTPUT="$COMPILED_SETTINGS_JSON" \
cargo test --locked --offline -p nemoclaw-sdk --test config_export_compatibility

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 42a26d9 native-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
apiVersion: nemoclaw.nvidia.com/v1alpha1
kind: NemoClawConfig
metadata:
  name: otel12144-fixed
  uid: 1f029eae-919d-48ab-aedf-206b250daa69
spec:
  gateway:
    endpoint: http://127.0.0.1:18144
    management: managed
  inferenceProviders:
    - api: openai-completions
      credential:
        env: COMPATIBLE_API_KEY
      endpoint: https://integrate.api.nvidia.com/v1
      name: hosted-compatible-endpoint
      provider: openai
  sandboxes:
    - agent:
        inference:
          routes:
            - name: primary
              overrides:
                contextWindow: 131072
                model: nvidia/nemotron-3-super-120b-a12b
              providerRef: hosted-compatible-endpoint
        name: primary
      harness:
        interfaces:
          dashboard:
            port: 18789
        kind: openclaw
        observability:
          otlp:
            enabled: true
            endpoint: http://host.openshell.internal:4318
            sampleRate: 1
            serviceName: nc12144-fixed
      name: otel12144-fixed
      network:
        policy:
          explicit:
            filesystem_policy:
              include_workdir: true
              read_only:
                - /usr
                - /lib
                - /proc
                - /dev/urandom
                - /app
                - /etc
                - /var/log
                - /var/lib/dpkg
                - /opt/fabric
                - /opt/nemoclaw
              read_write:
                - /tmp
                - /dev/null
                - /dev/pts
                - /sandbox/.openclaw
                - /sandbox/.nemoclaw
                - /home/linuxbrew
            landlock:
              compatibility: best_effort
            network_policies:
              brew-balanced:
                binaries:
                  - path: /usr/bin/curl
                  - path: /usr/local/bin/brew
                  - path: /home/linuxbrew/.linuxbrew/bin/brew
                  - path: /home/linuxbrew/.linuxbrew/bin/*
                  - path: /home/linuxbrew/.linuxbrew/Homebrew/bin/*
                endpoints:
                  - access: full
                    host: formulae.brew.sh
                    port: 443
                    tls: skip
                  - access: full
                    host: github.com
                    port: 443
                  - access: full
                    host: ghcr.io
                    port: 443
                    tls: skip
                  - access: full
                    host: pkg-containers.githubusercontent.com
                    port: 443
                    tls: skip
                  - access: full
                    host: objects.githubusercontent.com
                    port: 443
                    tls: skip
                  - enforcement: enforce
                    host: raw.githubusercontent.com
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: HEAD
                          path: /**
                name: brew-balanced
              clawhub:
                binaries:
                  - path: /usr/local/bin/openclaw
                  - path: /usr/local/bin/node
                endpoints:
                  - allow_encoded_slash: true
                    enforcement: enforce
                    host: clawhub.ai
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: POST
                          path: /**
                name: clawhub
              huggingface:
                binaries:
                  - path: /usr/local/bin/python3
                  - path: /usr/local/bin/node
                endpoints:
                  - enforcement: enforce
                    host: huggingface.co
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                  - enforcement: enforce
                    host: cdn-lfs.huggingface.co
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                  - enforcement: enforce
                    host: router.huggingface.co
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: POST
                          path: /**
                name: huggingface
              managed_inference:
                binaries:
                  - path: /usr/local/bin/openclaw
                  - path: /usr/local/bin/node
                  - path: /usr/bin/node
                  - path: /usr/bin/curl
                  - path: /usr/bin/python3
                endpoints:
                  - enforcement: enforce
                    host: inference.local
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: POST
                          path: /**
                name: managed_inference
              npm_registry:
                binaries:
                  - path: /usr/local/bin/openclaw
                endpoints:
                  - access: full
                    host: registry.npmjs.org
                    port: 443
                    tls: skip
                name: npm_registry
              npm_yarn:
                binaries:
                  - path: /usr/local/bin/npm*
                  - path: /usr/local/bin/npx*
                  - path: /usr/local/bin/node*
                  - path: /usr/local/bin/yarn*
                  - path: /usr/bin/npm*
                  - path: /usr/bin/node*
                endpoints:
                  - access: full
                    host: registry.npmjs.org
                    port: 443
                    tls: skip
                  - access: full
                    host: registry.yarnpkg.com
                    port: 443
                    tls: skip
                name: npm_yarn
              nvidia:
                binaries:
                  - path: /usr/local/bin/openclaw
                endpoints:
                  - enforcement: enforce
                    host: integrate.api.nvidia.com
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: POST
                          path: /v1/chat/completions
                      - allow:
                          method: POST
                          path: /v1/completions
                      - allow:
                          method: POST
                          path: /v1/embeddings
                      - allow:
                          method: GET
                          path: /v1/models
                      - allow:
                          method: GET
                          path: /v1/models/**
                name: nvidia
              openclaw-diagnostics-otel-local:
                binaries:
                  - path: /usr/local/bin/openclaw
                  - path: /usr/local/bin/node
                  - path: /usr/bin/node
                endpoints:
                  - allowed_ips:
                      - 10.0.0.0/8
                      - 172.16.0.0/12
                      - 192.168.0.0/16
                    enforcement: enforce
                    host: host.openshell.internal
                    port: 4318
                    protocol: rest
                    rules:
                      - allow:
                          method: POST
                          path: /v1/traces
                      - allow:
                          method: POST
                          path: /v1/traces/**
                name: openclaw-diagnostics-otel-local
              openclaw-pricing:
                binaries:
                  - path: /usr/local/bin/node
                  - path: /usr/bin/node
                endpoints:
                  - enforcement: enforce
                    host: raw.githubusercontent.com
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /BerriAI/litellm/main/model_prices_and_context_window.json
                  - enforcement: enforce
                    host: openrouter.ai
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /api/v1/models
                name: openclaw-pricing
              openclaw_api:
                binaries:
                  - path: /usr/local/bin/openclaw
                  - path: /usr/local/bin/node
                endpoints:
                  - enforcement: enforce
                    host: openclaw.ai
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: POST
                          path: /**
                  - enforcement: enforce
                    host: catalog.openclaw.ai
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                name: openclaw_api
              openclaw_docs:
                binaries:
                  - path: /usr/local/bin/openclaw
                endpoints:
                  - enforcement: enforce
                    host: docs.openclaw.ai
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                name: openclaw_docs
              pypi:
                binaries:
                  - path: /usr/bin/curl
                  - path: /usr/bin/python3*
                  - path: /usr/bin/pip*
                  - path: /usr/local/bin/curl
                  - path: /usr/local/bin/python3*
                  - path: /usr/local/bin/pip*
                  - path: /usr/local/bin/uv
                  - path: /sandbox/.venv/bin/python*
                  - path: /sandbox/.venv/bin/pip*
                  - path: /sandbox/.uv/python/**/python*
                  - path: /sandbox/.local/bin/pip*
                endpoints:
                  - enforcement: enforce
                    host: pypi.org
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: HEAD
                          path: /**
                  - enforcement: enforce
                    host: files.pythonhosted.org
                    port: 443
                    protocol: rest
                    rules:
                      - allow:
                          method: GET
                          path: /**
                      - allow:
                          method: HEAD
                          path: /**
                name: pypi
            process:
              run_as_group: "1000"
              run_as_user: "1000"
            version: 1
      runtime:
        provider: docker

Review notes

Pre-publication self-review covered the complete 13-file diff in NVIDIA/NemoClaw at a2d92b7f905d6a268679de95af1af9b37f5dde6f, including the five-file repair from abec41cf. 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

  • Reliability & Security
    • Optional OpenClaw plugins are now installed from reviewed archives with package identity and integrity checks.
    • Installation runs offline with package scripts disabled, and verifies the installed plugin’s identity and provenance.
    • Installation stops if the archive, package details, or registry source do not match expectations.

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>
@hunglp6d hunglp6d self-assigned this Oct 5, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 68bacd9b-1542-43bf-9d49-30c8253e17eb
📥 Commits

Reviewing files that changed from the base of the PR and between 39f2976 and 7d0b9d2.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 267b7446-daf5-46a6-9b74-410ca01fd161
📥 Commits

Reviewing files that changed from the base of the PR and between e3e5a06 and 39f2976.

📒 Files selected for processing (13)
  • Dockerfile
  • scripts/lib/install-reviewed-openclaw-plugin.mts
  • src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts
  • src/lib/sandbox/build-context.ts
  • test/agents/openclaw/openclaw-dependency-review.test.ts
  • test/agents/openclaw/openclaw-integrity-pin-suite.ts
  • test/agents/openclaw/openclaw-lifecycle-policy.test.ts
  • test/agents/openclaw/openclaw-npm12-pack-json.test.ts
  • test/agents/openclaw/openclaw-optional-plugin-build.test.ts
  • test/install/install-reviewed-openclaw-plugin.test.ts
  • test/platform/images/node-tar-dockerfile-contract.test.ts
  • test/runtime/sandbox/sandbox-build-context.test.ts
  • test/runtime/sandbox/sandbox-provisioning-tavily.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.


📝 Walkthrough

Walkthrough

Optional 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.

Changes

OpenClaw Plugin Installation

Layer / File(s) Summary
Validate and install reviewed plugin archives
scripts/lib/install-reviewed-openclaw-plugin.mts, test/install/install-reviewed-openclaw-plugin.test.ts
The installer validates the archive, package identity, and plugin ID. It seeds a temporary npm cache, invokes OpenClaw offline with scripts disabled, checks installed provenance, and removes temporary files. Tests cover validation, cleanup, and provenance failures.
Wire the installer into the Docker plugin build
Dockerfile, src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts, test/agents/openclaw/*, test/platform/images/node-tar-dockerfile-contract.test.ts
The Docker build stages and invokes the installer with the archive, package specification, integrity, and tarball URL. Contract and build tests check the invocation, arguments, environment, and failure cases.
Stage and exercise the installer in sandbox builds
src/lib/sandbox/build-context.ts, test/runtime/sandbox/*
The optimized sandbox build context stages the installer. Provisioning tests check its arguments and verify that installation failure prevents the doctor call.

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
Loading

Suggested reviewers: cv, prekshivyas

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning [#12144] The change restores diagnostics installation through native npm provenance. export-document.ts preserves source.observability for OpenClaw, and verify-export-source.ts rejects Deep Agen… Validate the raw exporter output with the parser at #12144's target revision, 88c6600c06b0937907290362eef86912052c4ad0, and provide the revision-matched result.
Docstring Coverage ⚠️ Warning 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: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The Dockerfile uses one reviewed installer for the existing non-messaging optional-plugin selections. Updating diagnostics, Brave, and Tavily to use that shared installer, and updating their fixtures …
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the OpenClaw change and its purpose: restoring tracing for offline plugin installs.
Full details: Linked Issues check

Explanation

[#12144] The change restores diagnostics installation through native npm provenance. export-document.ts preserves source.observability for OpenClaw, and verify-export-source.ts rejects Deep Agents export unless observability is explicitly disabled. The PR reports trace delivery, preserved endpoint/service name/sample rate, and secret-free export evidence. However, #12144 names v1 revision 88c6600c06b0937907290362eef86912052c4ad0 as its parser target. The PR reports parser validation against 42a26d90f1f6207cc35b5053556db67c86ce759f, so the required revision-matched compatibility is not established.

Full details: Docstring Coverage

Explanation

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 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 7d0b9d2 in the codex/12144-export-o... branch is 97%. The line coverage in commit 63002cd in the main branch is 96%.

Show a line coverage summary of the most impacted files.
File main 63002cd codex/12144-export-o... 7d0b9d2 +/-
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/index.ts 94% 93% -1%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/co.../config-show.ts 100% 100% 0%
nemoclaw/src/commands/slash.ts 100% 100% 0%
nemoclaw/src/on...native-route.ts 0% 100% +100%

TypeScript / code-coverage/cli

The overall line coverage in commit 7d0b9d2 in the codex/12144-export-o... branch is 85%. The line coverage in commit 63002cd in the main branch is 84%.

Show a line coverage summary of the most impacted files.
File main 63002cd codex/12144-export-o... 7d0b9d2 +/-
src/lib/state/s...tory-restore.ts 86% 0% -86%
src/lib/actions.../status-text.ts 84% 46% -38%
src/lib/state/sandbox.ts 92% 83% -9%
src/lib/onboard...al-inference.ts 84% 90% +6%
src/lib/policy/index.ts 71% 79% +8%
src/lib/state/p...l-retirement.ts 79% 92% +13%
src/lib/onboard.../application.ts 55% 72% +17%
src/lib/adapter...gnostics-cli.ts 0% 87% +87%
src/lib/onboard...ternal-image.ts 0% 94% +94%
src/lib/securit...ig-structure.ts 0% 98% +98%

Updated October 06, 2026 12:34 UTC

hunglp6d and others added 2 commits October 5, 2026 21:34
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>
@hunglp6d
hunglp6d marked this pull request as ready for review October 6, 2026 02:47
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 7d0b9d2. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@wscurran wscurran added area: observability Logging, metrics, tracing, diagnostics, or debug output area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression integration: brave Brave integration behavior integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images labels Oct 6, 2026
@hunglp6d

hunglp6d commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@hunglp6d
hunglp6d marked this pull request as draft October 6, 2026 21:05
@hunglp6d hunglp6d closed this Oct 26, 2026
@cv
cv deleted the codex/12144-export-observability branch November 21, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: observability Logging, metrics, tracing, diagnostics, or debug output area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression integration: brave Brave integration behavior integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export observability settings and collector requirements

2 participants