Repository navigation
feat(plugin): evaluate native OpenClaw plugin manifests - #243
Conversation
Signed-off-by: Patrick Erichsen <[email protected]>
|
@Patrick-Erichsen : Great! |
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
|
No problem @chrisknvidia ! This first pass is only evaluating skills. Working on expanding to rules, hooks, etc, right now. |
rng1995
left a comment
There was a problem hiding this comment.
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.
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
|
Addressed all 16 inline findings in 975db89, with focused regressions and per-thread explanations; all 16 threads are resolved. Full local 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 |
rng1995
left a comment
There was a problem hiding this comment.
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.
404ce54 to
27924cf
Compare
975db89 to
226cd36
Compare
Signed-off-by: Patrick Erichsen <[email protected]>
|
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 All 17 CI checks now pass on the exact follow-up head: CI, Security, DCO. The PR remains open and unmerged. |
|
Thanks @Patrick-Erichsen for your contribution. I am merging this PR now! |
0eb6715
into
NVIDIA:naren/plugin-evaluation-all-tiers
…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]>
Summary
Adds native OpenClaw plugin input support on top of #28. This PR targets
naren/plugin-evaluation-all-tiersat27924cf47468edb20f77249270dfdf2a999a1aa7, so the diff contains only the OpenClaw integration rather than duplicating #28.openclaw.plugin.jsonthrough the existing bounded, no-follow manifest locator and CLI workflows. Validate requiredidand objectconfigSchema; useid, not the optional displayname, for report/catalog/package identity. Existing manifest precedence is unchanged.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.package.json#openclawruntime/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.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:Verification:
make lint test buildon 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.Review fixes at
975db8991daeb29b98862141e967e155ab07aff4All 16 inline findings are addressed in this review-only follow-up. It does not publish the separate native OpenClaw runtime adapter work.
id, not displayname../form.Verification on this exact signed-off commit:
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.Earlier verification at
a9512a2Stress-test follow-up is published at
a9512a201202a7552ad8955a4b2deb248c447fd8.make lint build, changed-source Ruff checks, andgit diff --check: passed.fern check: 0 errors; the optional authenticated redirect check remains unavailable.str(Path(...)), without changing POSIX manifest identities or weakening extraction checks.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
52ff787c7100e490246e76aa4edfaab29666acddand pristine OpenClaw v2026.10.8 /dc2523e5a5c7a309517fd7fa834add938231d526source archives.discordblock-kit,slackdiffs300/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:runtimealso 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-miniprovider, installed Codex 0.157.0, and the supported macOS Seatbelt backend withSKILLEVALUATOR_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
CHANGELOG.mdand plugin evaluation documentation.