#3513·clawhub

bundle-plugin publication rejects a pure compatible bundle without a native manifest

Author: Zereo0317Created Aug 22, 2026Updated Sep 29, 2026
LabelsstaleP2clawsweeper:source-reproclawsweeper:no-new-fix-prclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewissue-rating: 🦞 diamond lobster

Summary

clawhub package publish recognizes a Codex/Claude compatible bundle as bundle-plugin, but then rejects the same bundle before planning/upload when no root openclaw.plugin.json exists.

This prevents publishing a whole compatible-bundle package without adding a native manifest. A native manifest is not a neutral workaround: OpenClaw's documented detection precedence selects the native plugin path when it exists.

Minimal reproduction

Using clawhub 0.23.3 (also confirmed against current main source), run from a folder containing only compatible-bundle content, for example:

compatible-bundle/
  .codex-plugin/plugin.json
  .claude-plugin/plugin.json
  .mcp.json
  skills/example/SKILL.md

The folder intentionally has no root openclaw.plugin.json, no native runtime, and no package.json.

bash
clawhub package publish ./compatible-bundle \
  --family bundle-plugin \
  --name @example/compatible-bundle \
  --display-name 'Compatible Bundle' \
  --version 0.0.1 \
  --dry-run --json

Actual result:

Error: openclaw.plugin.json required

No registry write is attempted; the CLI fails locally before the dry-run plan is produced.

Why this appears contradictory

Current packages/clawhub/src/cli/commands/packages.ts first recognizes these real bundle markers:

.codex-plugin/plugin.json
.claude-plugin/plugin.json
.cursor-plugin/plugin.json

and assigns bundle-plugin, but later applies the native-manifest guard to every family except claw:

typescript
if (family !== 'claw' && !fileSet.has('openclaw.plugin.json')) {
  fail('openclaw.plugin.json required');
}

The server-side publish path and HTTP API documentation also require openclaw.plugin.json for bundle-plugin releases. The exact requirement was introduced together with real bundle-marker recognition in commit e599d23f (fix(packages): use real bundle markers).

Related work checked

  • #1226 was a different resolved-CWD/workdir bug where a native manifest existed; #2235 fixed that path resolution.
  • #2931 refined family detection precedence.
  • #3288 / #3298 fixed bundle releases stuck after publication during security scanning.

None removes the admission requirement for a pure compatible bundle.

Requested clarification / proposed direction

Can maintainers confirm whether a bundle-only package (real Codex/Claude/Cursor marker, no native OpenClaw runtime/manifest) is a supported ClawHub artifact?

If yes, the contract needs a bundle-specific path across the CLI, publish API, Inspector/workflow, and tests: keep the root openclaw.plugin.json requirement for code-plugin, but validate bundle markers and derive bundle identity/metadata without requiring a native manifest.

If no, please document that bundle-plugin publication requires native OpenClaw metadata and explain the resulting native-precedence behavior, so compatible-bundle publishers do not treat the marker auto-detection as a publishable pure-bundle contract.

I am intentionally not opening a code PR before this product-contract decision is confirmed, because changing only the CLI guard would leave the API and inspection paths inconsistent.