Repository navigation
feat(plugin): recognize native OpenClaw manifests in the private plugin helpers - #391
Merged
Merged
Conversation
…in 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]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 7, 2026 16:35
- 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]>
rng1995
added a commit
that referenced
this pull request
Nov 9, 2026
…ock (#393) test_bedrock_converse_aborts_when_judge_deadline_exhausted_before_retry set a real 0.5 s judge deadline and expected the retry-backoff check to fire. Importing boto3 and building the first bedrock-runtime client happen after that deadline is set, and can take longer than 0.5 s on a loaded host (seen on PR #391's Python 3.14 job; every run on a busy macOS host). The pre-request check then fired first with "LLM judge time budget exhausted" and the assertion on "... before retry" failed. Replace the verifier's time module with a manual clock for this test, as tests/tier3/test_judge_policies.py already does, so setup cost never counts against the deadline. Removing the backoff deadline check still fails the test. Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Bring in #393, which runs the Bedrock judge-deadline retry test on a manual clock so the Python 3.14 job no longer fails on it. No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
This was referenced Nov 9, 2026
Merged
Merged
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports Patrick Erichsen's native OpenClaw plugin support from #243 to
main. #243 merged into the #28 branch (naren/plugin-evaluation-all-tiers), whichmaindoes not contain.mainhas its own private plugin pipeline (#250, #257, #264, #321, #345): one shared inventory feeds the private schema checks, the local-catalog comparisons and runtime preparation. This PR adds OpenClaw at that same private level. Public CLI dispatch is unchanged.What is ported
mainopenclaw.plugin.jsonlocated after the existing formats;idis the identity,nameis display text,configSchemamust be an object, unknown metadata is keptconstants.py,plugin_manifest.py,plugin_formats.py(OPENCLAW_PROFILE,manifest_identity),plugin_format_schema.py(_validate_openclaw)skillsroots are members. Search is recursive and stops at eachSKILL.md. Hidden andnode_moduleschildren are skipped, there is no implicitskills/, and reads are bounded and no-followplugin_skills.py,plugin_discovery.py(_explicit_skill_roots)package.json#openclawentrypoints (extensions,runtimeExtensions,setupEntry,runtimeSetupEntry) are boundary-checked without import. Paired or inferred built runtimes excuse missing sources. An unsupported OpenClaw runtime row is always keptplugin_discovery.py(openclaw_runtime)transportwins overtype, the default is SSE, and stdio keeps its plugin-root working directory. Host-only options are recorded as unapplied, andenabled: falseis not an operator switchplugin_mcp.py(_normalize_openclaw_server)mcp_url_env_not_expanded). EffectivesslVerify: false(legacy alias included) is CRITICAL, and literal secrets inenterpriseandauthblocks are blockingvalidators/mcp_static.pyidwith other manifests'nameand say which field each declares; a version-only difference stays a version conflictvalidators/private_plugin_schema.pyidwith no folder fallback. Skill-only catalogs built from a declared root recognize the plugin's own skills by portable POSIX paths. A malformedid,configSchemaor non-arrayskillsis an incomplete comparison; links, special files and traversal limits stay security failuresdeduplication/plugin/profile.py,catalog_checks.py,plugin_discovery.pyblocking_findingspolicytier3/plugin_prepare.py,tier3/plugin_execution.py./paths. This is the follow-up fix from review 5714371040tier3/plugin_native.py(_skill_manifest_fields)scripts/ci/smoke_openclaw_plugins.py, rewritten against the private APIsKept from
mainmaindoes not advertise native plugin formats: noevaluate-plugincommand and noplugin-evaluation.mdx. So feat(plugin): evaluate native OpenClaw plugin manifests #243'scli.py/cli_core.pyhelp and dispatch changes and its docs page are not ported. The behavior is recorded inCHANGELOG.mdunder the private helpers.maina missing declared component makes the shared inventory incomplete for every format, so Tier 2 skips comparisons instead of continuing. OpenClaw follows that rule.SKILL.mdstaging onmainis unchanged; the root-is-never-a-member rule applies to OpenClaw only.ubuntu-24.04pin for the HTML parser job is already onmain.main.Differs from #243
./paths. Claude Code then also loaded its defaultskills/,commands/,agents/,hooks/andbin/locations, plus the raw manifest with itsconfigSchemadefaults. That contradicts the explicit-skills-only rule. Here, OpenClaw sources stage only the declared member skills underskills/<name>(ClaudeCodeAdapter.stages_members_only), andbin/is reported unsupported.Testing
tests/test_openclaw_plugin_discovery.py,tests/validators/test_openclaw_mcp.py,tests/deduplication/plugin/test_openclaw_profile.py,tests/tier3/test_openclaw_prepare.py,tests/test_openclaw_plugin_smoke.py.mainon this host. Thirteen generated-grader tests run the macOS systempython3, which predatesint | float. Two FIFO tests timed out only under full parallel load and pass when run alone.ruff check src tests scriptspasses. Fixtures that look like credentials are assembled at run time, so the full-history Gitleaks scan never sees a literal.Co-authored-by trailer credits Patrick Erichsen; commits are DCO signed off.
🤖 Generated with Claude Code