Skip to content

feat(plugin): evaluate native OpenClaw plugin manifests - #243

Merged
rng1995 merged 6 commits into
NVIDIA:naren/plugin-evaluation-all-tiersfrom
Patrick-Erichsen:feat/openclaw-plugin-evaluation
Nov 2, 2026
Merged

rng1995 merged 6 commits into
NVIDIA:naren/plugin-evaluation-all-tiersfrom
Patrick-Erichsen:feat/openclaw-plugin-evaluation

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds native OpenClaw plugin input support on top of #28. This PR targets naren/plugin-evaluation-all-tiers at 27924cf47468edb20f77249270dfdf2a999a1aa7, so the diff contains only the OpenClaw integration rather than duplicating #28.

  • Discover root openclaw.plugin.json through the existing bounded, no-follow manifest locator and CLI workflows. Validate required id and object configSchema; use id, not the optional display name, for report/catalog/package identity. Existing manifest precedence is unchanged.
  • Share terminal-aware discovery of explicitly declared skill roots across tiers: custom and root-level directories, recursive containers, no implicit skills/, native child exclusions, overlap deduplication, and bounded anchored reads. Tier 2 compares these members; Tier 3 stages non-root skill directories through the existing harnesses. A root SKILL.md remains inventoried-only so the whole plugin tree is never copied as a portable member.
  • Inventory and boundary-check package.json#openclaw runtime/setup entrypoints without importing or executing them. Published packages may omit TypeScript sources when valid paired or inferred built runtime files exist. Retain explicit unsupported OpenClaw runtime coverage, including runtime-only plugins, so portable-skill results do not certify native tools, hooks, channels, providers, or services.
  • Normalize OpenClaw MCP transport precedence and SSE defaults; preserve plugin-relative working-directory limitations and record unapplied host configuration. Manifest enabled:false is not an operator switch: portable URL servers are still staged. Operator enablement/overrides are not reproduced. Block effective TLS verification disablement and literal enterprise client secrets before staging. Do not forward unsupported host metadata/config defaults into the generated wrapper manifest.
  • Add focused regressions, usage documentation, and a changelog entry.

Scope

This does not add an OpenClaw Gateway/Harbor agent adapter. Tier 3 evaluates portable skills and compatible URL MCP declarations using existing agents, not native OpenClaw runtime behavior. Stdio MCP servers whose plugin-root working directory cannot be preserved remain explicitly unsupported. The manifest reader currently accepts bounded UTF-8 JSON, not JSON5. Real portable-agent evaluations were performed under the required macOS sandbox, as detailed below. No native OpenClaw Gateway runtime evaluation was performed.

Follow-up to review 5714371040

Addressed the three inline follow-ups and the new Codex-to-Claude projection finding in 16cf9ffc0378958b57bd77937620a1efadf926a1:

  • Compare catalog identities as portable POSIX paths, independently of the discovered filesystem path flavour. Windows-flavoured regression fixtures cover Python 3.13 semantics; actual Python 3.12/3.13 standard-library comparisons also reproduce the original difference.
  • Treat malformed OpenClaw manifests/skill declaration shapes as advisory C-intra profile skips and continue the remaining catalog checks. Secure reads, links and filesystem budgets remain fail-closed.
  • Add OpenClaw to both client-specific URL expansion documentation references. Native MCP URL strings remain verbatim and unexpanded.
  • Share source-client-aware skill projection between the Claude manifest and discovery. Codex-ignored paths remain ignored, all-rejected values preserve default skills/ fallback, and only OpenClaw/Cursor undotted paths are rewritten. Ignored extras cannot become enabled, uninventoried hook-bearing skills.

Verification:

  • 407 related offline checks passed, including actual package/native staging, ignored-hook/census controls, cross-format compatibility and real filesystem guards. Each code defect has a retained failing-base regression.
  • Full standard make lint test build on this exact follow-up head passed: 22,223 passed, 37 skipped, 9 default-marker deselected, with no test-file exclusions. Fresh wheel and sdist were built and all three changed production modules byte-matched HEAD inside both artifacts.
  • Independent read-only review verified all four repairs with 93 passing tests and eleven additional boundary probes; no new P0–P2 or actionable regression was found in the bounded diff.
  • Exact-head CI: all 17 checks passed on this follow-up head: CI, Security, DCO. Older CI results below remain historical.

Review fixes at 975db8991daeb29b98862141e967e155ab07aff4

All 16 inline findings are addressed in this review-only follow-up. It does not publish the separate native OpenClaw runtime adapter work.

  • Catalog round-trips use root-relative paths and exclude only the plugin’s own matching skills. C-intra uses declared members; missing roots and the discovery budget agree across tiers.
  • Selected inventory members retain blocking schema severity. OpenClaw identity conflicts identify id, not display name.
  • Root SKILL.md stays inventory-only; wrapper/native-copy regressions verify no duplicate whole-root member exposes environment/evaluation data, include aliases or default result-root hazards. Non-root members still stage.
  • Published source-absent layouts require valid paired/inferred runtime files with containment/type/regular-file checks. Foreign skill paths projected into Claude Code use valid ./ form.
  • MCP fixes cover cwd/default/alias semantics, verbatim URL references, verified-TLS defaults, honest stdio gaps and plugin versus operator enablement.
  • The smoke rejects optional native skips and records INCOMPLETE. Changelog wording reflects a new unreleased feature.

Verification on this exact signed-off commit:

  • Integrated review regressions and surrounding checks: 375 passed. New regressions also reproduced the original defects against the reviewed base.
  • Full standard make lint test build, no test-file exclusions: 22,130 passed, 37 skipped, 9 deselected by the existing default non-live/non-integration selection. Full lint and wheel/source-distribution builds passed; source stayed clean and unchanged.
  • Independent review verified the original 16 repairs. Its one root-smoke interaction finding was reproduced, fixed, and independently cleared on this exact head (28 follow-up checks passed).
  • Remote exact-head CI: all 17 checks passed on this head, including both full Python suites, Windows/macOS, packaging, DCO and security: CI, Security, DCO. Historical checks below remain separately identified.

Earlier verification at a9512a2

Stress-test follow-up is published at a9512a201202a7552ad8955a4b2deb248c447fd8.

  • Complete default local suite, with no test-file exclusions: 21,932 passed, 38 skipped. The earlier local failures were isolated to inherited service credentials/proxies, long temp paths, and an umask-dependent golden fixture. The test command used a clean process environment and short temporary root; the fixture now explicitly fixes the root mode included in digest recipe v2. No production environment or test policy was changed.
  • Independent review of the follow-up: 1,117 relevant tests passed, no blocking P1/P2 findings. Additional platform repair checks passed on the original Python 3.12.11/3.13.5 interpreters.
  • make lint build, changed-source Ruff checks, and git diff --check: passed.
  • fern check: 0 errors; the optional authenticated redirect check remains unavailable.
  • The HTML compatibility workflow now pins only that job to Ubuntu 24.04 while retaining the original Python patch versions. The Windows assertion now compares native filesystem paths with str(Path(...)), without changing POSIX manifest identities or weakening extraction checks.
  • Exact-head CI at a9512a201202a7552ad8955a4b2deb248c447fd8: all 17 checks passed, including both full Python suites, both old-patch HTML compatibility jobs, Windows/macOS, packaging, DCO and security. Verified from the PR check rollup: CI, Security. This validates the published scope; it is not a claim of native OpenClaw runtime parity.

Real-plugin corpus stress

Sources were kitchen-sink 52ff787c7100e490246e76aa4edfaab29666acdd and pristine OpenClaw v2026.10.8 / dc2523e5a5c7a309517fd7fa834add938231d526 source archives.

Plugin Portable skills inventoried/profiled/staged Repeated pipeline observations
kitchen-sink none; native runtime explicitly unsupported 50/50
Discord discord 50/50
Slack block-kit, slack 50/50
diffs diffs 50/50
memory-core none; native runtime explicitly unsupported 50/50
memory-lancedb none; native runtime explicitly unsupported 50/50

300/300 observations agreed on identity, member paths, findings and coverage. This is pipeline compatibility evidence, not a security approval or native runtime evaluation. The new repository smoke script reproduces these checks against local pristine source trees.

Kitchen-sink exposed a real reporting defect: before the fix, direct Tier 3 returned exit 0 and no requested report files despite evaluating nothing. After the fix it returns exit 1 / INCOMPLETE and writes JSON, HTML, Markdown and SARIF, retaining explicit unsupported runtime coverage without starting an agent. Two regressions were shown failing before the fix and passing afterward.

Kitchen-sink's upstream npm run check:runtime also passed with credentials removed and a disposable HOME/state/config. These separate native fixture probes cover bounded resource lifecycle, tool/hook decisions, channel envelopes, 60 registration-method contracts, middleware admission, and caller-state isolation. They are not claimed as SkillEvaluator native runtime coverage.

Real portable-agent execution

The live smoke used the real OpenAI gpt-5.4-mini provider, installed Codex 0.157.0, and the supported macOS Seatbelt backend with SKILLEVALUATOR_LOCAL_SANDBOX=require. Each of diffs, Slack and Discord had one offline planning/output-contract case, two attempts per case and both with/without-plugin arms: 12/12 scored trials, all custom JSON-contract grades 1.0.

The grader read the files actually written by each agent; reward files and representative positive-arm skill-read/output-write trajectories were inspected. No Slack/Discord API actions were performed. The completed artifacts contain no occurrence of the provider credential. The original Docker attempt failed before agent startup with a shared containerd metadata-store I/O error; the shared daemon was not restarted or pruned. Moving the same hash-verified trusted CLI into the supported task-local runtime directory allowed the unchanged required sandbox to run it without reading the host's credential directory.

The baseline also scored 1.0, so this small smoke does not demonstrate lift or broad behavioral reliability. It proves the real provider → agent → portable guidance/output → deterministic grader path, not native OpenClaw plugin tool execution.

Static scanner limitations retained

Full Tier 1 scans of all six pristine source archives were run with real SkillSpector 2.13.1, Semgrep and Gitleaks, and requested report formats were produced. These source inputs are not all clean: evaluator author/heading requirements, source test-fixture secret/injection patterns, supply-chain findings, Semgrep parser errors and partial scanner completeness remain visible. No severity override or scanner bypass was used to manufacture passing input verdicts. Passing framework tests must not be confused with approving every scanned plugin.

The OSS boundary script's previously documented unregistered test anchor on the base branch is unrelated and unchanged; no OSS-gate success is claimed for that command.

Release Impact

  • Updated CHANGELOG.md and plugin evaluation documentation.
  • Added focused tests and signed off the commit.
  • No credentials, private datasets, or proprietary benchmark material added.

@chrisknvidia

Copy link
Copy Markdown
Collaborator

@Patrick-Erichsen : Great!
Thanks for the PR, We will look into the changes and get back to you.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

No problem @chrisknvidia ! This first pass is only evaluating skills. Working on expanding to rules, hooks, etc, right now.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 16 findings (0 P1, 5 P2, 11 P3); 16 posted inline.

Each finding was reproduced at a9512a2 with fixture plugins and checked by a second reviewer who tried to refute it.

Note, not a defect in this PR: main already pins the HTML parser compatibility job to ubuntu-24.04 and has an equivalent workflow test (test_html_parser_compatibility_keeps_old_python_versions_on_a_supported_runner). The .github/workflows/ci.yml and tests/test_ci_workflows.py hunks here will duplicate or conflict with that when the base branch next syncs with main, so they could be dropped from this PR.

Comment thread src/skillevaluator/tier3/plugin_eval.py Resolved
Comment thread src/skillevaluator/plugin_components.py Resolved
Comment thread src/skillevaluator/plugin_formats.py Resolved
Comment thread src/skillevaluator/plugin_mcp.py Resolved
Comment thread src/skillevaluator/tier3/plugin_eval.py Resolved
Comment thread src/skillevaluator/tier3/plugin_eval.py Resolved
Comment thread scripts/ci/smoke_openclaw_plugins.py Resolved
@Patrick-Erichsen

Patrick-Erichsen commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Addressed all 16 inline findings in 975db89, with focused regressions and per-thread explanations; all 16 threads are resolved.

Full local make lint test build on that exact signed-off head passed: 22,130 passed, 37 skipped, 9 default-deselected, plus lint and wheel/sdist builds. Independent review verified the fixes and cleared its additional root-smoke interaction finding.

All 17 CI checks are now SUCCESS on the exact published head, including the final Python 3.12 job: CI, Security, DCO. The PR remains open and unmerged.

For the non-defect CI note: I retained the existing Ubuntu 24.04 compatibility pin because this PR still targets naren/plugin-evaluation-all-tiers at 404ce5476bab016ab579456a1d706836a0d4402d, whose workflow uses ubuntu-latest. Dropping the hunk before that base syncs with main would restore the old-Python runner problem. The equivalent main change should collapse naturally when the base syncs; these review fixes make no additional workflow changes.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thorough fixes and regression tests. Re-checked at 975db89: all five P2 findings and ten of the P3 findings are fixed. Three P3 threads have small follow-ups (replied inline), and one new comment covers the ./ rewrite reaching Codex manifests. None of these needs to block this PR into the plugin-evaluation branch; they can be fixed in a follow-up before that branch merges.

@chrisknvidia
chrisknvidia force-pushed the naren/plugin-evaluation-all-tiers branch from 404ce54 to 27924cf Compare October 30, 2026 22:25
@chrisknvidia
chrisknvidia force-pushed the feat/openclaw-plugin-evaluation branch from 975db89 to 226cd36 Compare October 30, 2026 22:25
@Patrick-Erichsen

Patrick-Erichsen commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Addressed all four follow-ups from review 5714371040 in 16cf9ff. Each thread has a specific explanation and is resolved.

The fixes cover portable Windows/Python 3.13 catalog identities, advisory malformed-declaration skips without weakening filesystem guards, both OpenClaw URL-policy references, and source-client-aware Codex-to-Claude skill projection.

Verification on the exact signed-off head: 407 related checks passed; full make lint test build passed with 22,223 passed, 37 skipped, 9 default-marker deselected, no test-file exclusions; all three changed production modules byte-matched the fresh wheel and sdist. Independent review verified all four repairs with 93 passing tests and eleven additional boundary probes.

All 17 CI checks now pass on the exact follow-up head: CI, Security, DCO. The PR remains open and unmerged.

@rng1995

rng1995 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks @Patrick-Erichsen for your contribution. I am merging this PR now!

@rng1995
rng1995 merged commit 0eb6715 into NVIDIA:naren/plugin-evaluation-all-tiers Nov 2, 2026
17 checks passed
rng1995 added a commit that referenced this pull request Nov 9, 2026
…in helpers (#391)

* feat(plugin): recognize native OpenClaw manifests in the private plugin helpers

Port the OpenClaw support from PR #243 (merged into the PR #28 branch) onto
main's private plugin pipeline, where one shared inventory feeds the private
schema checks, the local-catalog comparisons and runtime preparation.

- Locate openclaw.plugin.json after the existing manifest formats; its id is
  the plugin identity, configSchema must be an object, unknown metadata is
  kept.
- Only declared skill roots are members, searched recursively with the
  shared bounded, no-follow discovery (plugin_skills.py). Hidden and
  node_modules children are skipped; no implicit skills/ root.
- Inventory package.json#openclaw entrypoints as unsupported extension rows
  without importing them, and keep an unsupported OpenClaw runtime row.
- Normalize OpenClaw MCP servers (transport precedence, SSE default, stdio
  working directory, unapplied host options). URLs are used verbatim; TLS
  verification disablement and literal enterprise secrets are blocking.
- Runtime preparation never copies the plugin root as a member, refuses
  stdio servers whose working directory cannot be kept, records unapplied
  options as incomplete, refuses invalid native manifests and keeps host
  metadata out of staged manifests.
- Native Claude Code staging projects skill declarations per source client:
  Codex-ignored paths are dropped and undotted Cursor/OpenClaw roots become
  ./ paths.
- Add scripts/ci/smoke_openclaw_plugins.py and regression tests.

Co-authored-by: Patrick Erichsen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* fix(plugins): address OpenClaw port review findings

- Native Claude Code staging of an OpenClaw plugin copies only the declared
  member skills to skills/<name>, never the plugin tree, so Claude Code's
  default skills/, commands/, agents/, hooks/ and bin/ locations and the raw
  manifest stay unloaded; bin/ is reported unsupported.
- A non-array OpenClaw `skills` value is an invalid declaration that makes
  the inventory incomplete instead of being compared in Tier 2.
- Manifest conflict wording names the OpenClaw id only when both identities
  are present and differ; version-only mismatches stay version conflicts.
- Label an unnamed root skill with the plugin folder name.
- Scan OpenClaw MCP `auth` blocks for literal credentials, like `enterprise`.
- Make the smoke host-path assertions hold on Windows.

Co-authored-by: Patrick Erichsen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants