Skip to content

feat(plugin): recognize native OpenClaw manifests in the private plugin helpers - #391

Merged
rng1995 merged 3 commits into
mainfrom
naren/port-openclaw-plugin-manifests
Nov 9, 2026
Merged

rng1995 merged 3 commits into
mainfrom
naren/port-openclaw-plugin-manifests

Conversation

@rng1995

@rng1995 rng1995 commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Ports Patrick Erichsen's native OpenClaw plugin support from #243 to main. #243 merged into the #28 branch (naren/plugin-evaluation-all-tiers), which main does not contain. main has 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

#243 behavior Where it lives on main
openclaw.plugin.json located after the existing formats; id is the identity, name is display text, configSchema must be an object, unknown metadata is kept constants.py, plugin_manifest.py, plugin_formats.py (OPENCLAW_PROFILE, manifest_identity), plugin_format_schema.py (_validate_openclaw)
Only declared skills roots are members. Search is recursive and stops at each SKILL.md. Hidden and node_modules children are skipped, there is no implicit skills/, and reads are bounded and no-follow new plugin_skills.py, plugin_discovery.py (_explicit_skill_roots)
package.json#openclaw entrypoints (extensions, runtimeExtensions, setupEntry, runtimeSetupEntry) are boundary-checked without import. Paired or inferred built runtimes excuse missing sources. An unsupported OpenClaw runtime row is always kept plugin_discovery.py (openclaw_runtime)
MCP: canonical transport wins over type, the default is SSE, and stdio keeps its plugin-root working directory. Host-only options are recorded as unapplied, and enabled: false is not an operator switch plugin_mcp.py (_normalize_openclaw_server)
MCP URLs are used verbatim (HIGH mcp_url_env_not_expanded). Effective sslVerify: false (legacy alias included) is CRITICAL, and literal secrets in enterprise and auth blocks are blocking validators/mcp_static.py
Manifest conflicts compare the OpenClaw id with other manifests' name and say which field each declares; a version-only difference stays a version conflict validators/private_plugin_schema.py
Tier 2 profile identity is id with no folder fallback. Skill-only catalogs built from a declared root recognize the plugin's own skills by portable POSIX paths. A malformed id, configSchema or non-array skills is an incomplete comparison; links, special files and traversal limits stay security failures deduplication/plugin/profile.py, catalog_checks.py, plugin_discovery.py
Tier 3 never copies the plugin root as a member. Stdio servers are not started (incomplete), unapplied options make the run incomplete, invalid native manifests are refused, and host metadata stays out of staged manifests. A runtime-only plugin fails with its incomplete reasons. Blocking MCP findings refuse preparation through the caller's blocking_findings policy tier3/plugin_prepare.py, tier3/plugin_execution.py
Native Claude Code staging projects skill declarations per source client: Codex-ignored paths are dropped and undotted Cursor roots become ./ paths. This is the follow-up fix from review 5714371040 tier3/plugin_native.py (_skill_manifest_fields)
Repeatable real-plugin compatibility smoke scripts/ci/smoke_openclaw_plugins.py, rewritten against the private APIs

Kept from main

  • Public dispatch and docs. main does not advertise native plugin formats: no evaluate-plugin command and no plugin-evaluation.mdx. So feat(plugin): evaluate native OpenClaw plugin manifests #243's cli.py/cli_core.py help and dispatch changes and its docs page are not ported. The behavior is recorded in CHANGELOG.md under the private helpers.
  • Missing declared roots. On main a missing declared component makes the shared inventory incomplete for every format, so Tier 2 skips comparisons instead of continuing. OpenClaw follows that rule.
  • Cursor root skills. Cursor's root-SKILL.md staging on main is unchanged; the root-is-never-a-member rule applies to OpenClaw only.
  • CI. The ubuntu-24.04 pin for the HTML parser job is already on main.
  • Escaping declared roots. A declared root outside the plugin makes the inventory incomplete, as it does for every other format on main.

Differs from #243

  • Native Claude Code staging of OpenClaw plugins. feat(plugin): evaluate native OpenClaw plugin manifests #243 copied the whole plugin tree into the native Claude Code arm and projected OpenClaw roots to ./ paths. Claude Code then also loaded its default skills/, commands/, agents/, hooks/ and bin/ locations, plus the raw manifest with its configSchema defaults. That contradicts the explicit-skills-only rule. Here, OpenClaw sources stage only the declared member skills under skills/<name> (ClaudeCodeAdapter.stages_members_only), and bin/ is reported unsupported.

Testing

  • 218 new tests: 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.
  • Existing plugin, validator, deduplication, Tier 3 and private-report suites: 14,148 passed. The only failures also fail on clean main on this host. Thirteen generated-grader tests run the macOS system python3, which predates int | float. Two FIFO tests timed out only under full parallel load and pass when run alone.
  • ruff check src tests scripts passes. 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

…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]>
- 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]>
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.

1 participant