Skip to content

fix: configuration-only bundle plugins no longer get native package warnings - #4813

Merged
Patrick-Erichsen merged 1 commit into
openclaw:mainfrom
deepujain:fix/4754-configuration-only-bundle-gets-native
Nov 20, 2026
Merged

Patrick-Erichsen merged 1 commit into
openclaw:mainfrom
deepujain:fix/4754-configuration-only-bundle-gets-native

Conversation

@deepujain

@deepujain deepujain commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #4754

What Problem This Solves

Fixes: a bundle plugin that ships only a manifest, MCP configuration and skills is shown the native-plugin warnings package-json-missing or package-openclaw-entry-missing on the publisher dashboard after it is scanned.

User Impact

User impact: publishers of Codex, Claude and Cursor bundles stop seeing advice to add package.json or declare OpenClaw entrypoints, which the publishing contract reserves for code plugins. A bundle with nothing else to report is recorded as a clean scan. Code plugins keep both warnings.

Not covered here: the issue also asks why the reported Totem v0.3.2 release is not public yet. This change does not look at that and does not touch publication state. Nightly findings already stored for a release clear when that release is next scanned. A finding stored at publish time stays, so Totem v0.3.2 can keep a warning stored at publish until it is republished.

Why This Change Was Made

The pinned Plugin Inspector (0.4.6) has no notion of a package family. It emits those two findings whenever package.json is missing or declares no entrypoints. The worker uploads the findings as they come, and the ingest mutation stores them.

The ingest mutation already loads the package, so it drops the two codes there when the family is bundle-plugin, before anything is stored and before the scan outcome is decided. That keeps the fix in one place and needs no change to the worker's claim contract or to the Inspector. The worker test notes the filter can go once the Inspector takes the family itself.

I did not widen the list beyond the two codes in the report. Other native metadata findings, such as package-entrypoint-missing, only fire when a bundle ships its own package.json with OpenClaw metadata, and I have no evidence they are wrong for a bundle.

Evidence

  • Real Inspector run on a configuration-only Codex bundle (.codex-plugin/plugin.json, .mcp.json, one skill, no package.json) emits package-json-missing. That reproduces the report.
  • convex/packageInspectorFamilyFindings.runtime.test.ts posts a worker result to the shipped POST /api/v1/package-inspector/results route and reads back the stored rows. A bundle plugin stores no warnings and records a clean scan. A code plugin keeps both findings and records findings. With convex/packages.ts taken from main, the bundle case fails: it stores both findings and records findings. It runs in convex-test, not against a live deployment.
  • Unit tests in convex/packages.public.test.ts cover a bundle that drops both codes and keeps an unrelated finding, a bundle with only the two native findings recorded as clean, and a code plugin that keeps all three.
  • scripts/package-inspector-nightly-scan.test.ts runs the real pinned Inspector on that bundle, then checks that the filter removes package-json-missing for bundle-plugin and leaves the findings unchanged for code-plugin.
  • tsc --noEmit, oxlint on the touched files and the related vitest files (30 files, 663 tests) pass locally. The static, unit, packages, types-build, e2e-http, playwright-smoke and playwright-local-auth checks pass in CI on this head.
  • Not run: a live ClawHub deployment or a real Totem upload. The local ci:static and full ci:unit were not rerun on this head because the local environment has no bun.

Maintainer verification on a running local Convex backend (6362c63adc7e)

Inspector 0.4.6 scanned the same inert configuration-only artifact for both package families with OpenClaw 2026.10.5 as the target. Both scans emitted package-json-missing. Both results were submitted to the real authenticated POST /api/v1/package-inspector/results route. A separate database read returned:

Package family POST status Stored outcome Stored warnings
bundle-plugin 200 clean none
code-plugin 200 findings package-json-missing

This verifies the route and persistence, not the hosted nightly scheduler or an existing production release. The test used disposable credentials with owner notifications disabled.

@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@deepujain is attempting to deploy a commit to the OpenClaw Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@deepujain
deepujain marked this pull request as ready for review November 16, 2026 20:04
@deepujain
deepujain requested review from a team and Patrick-Erichsen as code owners November 16, 2026 20:04
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes two native-package Inspector warnings from bundle scans before storing findings and calculating the scan outcome.

Example: Inspector 0.4.6 scans a Codex bundle containing .codex-plugin/plugin.json, .mcp.json and a skill, without package.json.

  • Before: ClawHub stores package-json-missing and records findings.
  • After: ClawHub stores no warning and records clean; code plugins retain the warning.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The warning correction is focused, supported by real endpoint results and passing exact-head checks; overall scope remains partial against the linked report.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The updated body records Inspector 0.4.6 scanning an inert configuration-only artifact against OpenClaw 2026.10.5, followed by authenticated results-route submissions on head 6362c63 and independent database reads confirming bundle clean versus code-plugin findings; this covers the changed owner without requiring the hosted scheduler.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Bundle publishers receive advice to add native package metadata or entrypoints that their supported package family does not require.
Reason: The narrow correction restores the existing bundle contract; Related is appropriate because the linked report's publication discrepancy and historical publish-time warnings remain outside this patch.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: current main still has the warning defect, and this focused correction has no blocking findings.

Priority: P2
Reviewed head: 6362c63adc7e8c078c9ce7ac2dc536c2b2fa8f60

Before merge

None.

Findings

None.

Agent review details

How this fits together

The monitoring worker submits Inspector reports to an authenticated Convex HTTP endpoint; package ingestion persists warnings and scan outcomes consumed by publisher and validation views.

flowchart LR
  A[Plugin artifact] --> B[Inspector worker]
  B --> C[Authenticated results endpoint]
  C --> D[Family filtering in ingestion]
  D --> E[Warnings and scan state]
  E --> F[Publisher and validation views]
Loading

Technical review

Best possible solution:

Use the existing ingestion owner to filter these two inapplicable bundle findings before persistence and outcome calculation, while retaining the linked issue for its separate publication investigation.

Do we have a high-confidence way to reproduce the issue?

The documented bundle contract, pinned Inspector warning conditions and unfiltered current-main ingestion establish the defect; the PR also records a real local endpoint reproduction, but no target code was run during this review.

Is this the best way to solve the issue?

Best-fix verdict: best for the warning defect; ingestion already owns package identity, persisted findings and outcomes, whereas worker-only filtering duplicates family knowledge and dashboard-only suppression leaves stored results incorrect.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8b6588ed6a2e.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still needs the correction: Current main passes args.findings directly into persistence and determines clean versus findings from the unfiltered array. (convex/packages.ts:10847, 8b6588ed6a2e)
  • Pinned patch: The introduced diff filters only package-json-missing and package-openclaw-entry-missing for bundle-plugin, using the same filtered array for persistence and outcome calculation. (convex/packages.ts:10598, 6362c63adc7e)
  • Existing product contract: Bundle publishing requires a supported named bundle manifest, while native entrypoints require code-plugin; Inspector remains advisory under the reliability spec. (docs/http-api.md:1738, 6362c63adc7e)
  • Real behavior verification: The live PR body records verification on head 6362c63: real Inspector reports submitted to the authenticated results endpoint returned HTTP 200; independent database reads showed clean with no warnings for bundle-plugin and findings with package-json-missing for code-plugin. (6362c63adc7e)
  • Earlier review addressed: The changelog now explicitly preserves publish-time findings, resolving the earlier cleanup-promise concern; route-level regression coverage and the subsequently recorded live verification address the earlier proof request. (CHANGELOG.md:9, 6362c63adc7e)
  • Exact-head validation and external preview gate: Static, unit, packages, types-build, HTTP and browser checks passed on the reviewed head; the Vercel status says Authorization required to deploy, consistent with the deployment bot's explicit team-authorization request rather than a patch failure. (6362c63adc7e)

Likely related people:

  • Vincent Koc: Raw commit 219efc3 adds convex/lib/packageInspectorFinding.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 219efc34fa13; files: convex/lib/packageInspectorFinding.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Patch size Production +27/-2; tests +295; changelog +2 Production remains focused; tests cover the actual Inspector warning, registered HTTP ingestion, persisted outcome and preservation of unrelated findings.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Incorrect advisory warnings confuse supported bundle publishers; a publication-blocking effect has not been established.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-16T20:19:02.540Z sha e4d8180 :: needs real behavior proof before merge. :: [P3] Limit the rescan cleanup promise to nightly findings

Reviewed November 20, 2026, 11:42 AM ET / 16:42 UTC (Revision 2).

@deepujain
deepujain force-pushed the fix/4754-configuration-only-bundle-gets-native branch from e4d8180 to 1161194 Compare November 17, 2026 00:46
…arnings

Plugin Inspector checks every uploaded plugin as a native code plugin. A
Codex, Claude or Cursor bundle that ships only a manifest, MCP configuration
and skills has no package.json by design, so its scan stored
package-json-missing. A bundle with a package.json but no OpenClaw entrypoints
got package-openclaw-entry-missing. Neither applies to a bundle.

The inspector result ingest already loads the package, so it now drops those two
finding codes when the package family is bundle-plugin. The scan outcome is
decided from the findings that remain, so a bundle with nothing else to report
is recorded as clean. Code plugins keep both findings.

Related: openclaw#4754

Signed-off-by: Deepak Jain <deepujain@gmail.com>
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 20, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 6747067 into openclaw:main Nov 20, 2026
56 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants