Repository navigation
fix: configuration-only bundle plugins no longer get native package warnings - #4813
Conversation
|
@deepujain is attempting to deploy a commit to the OpenClaw Foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 20, 2026, 11:42 AM ET / 16:42 UTC (Revision 2). |
e4d8180 to
1161194
Compare
…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>
1161194 to
6362c63
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
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-missingorpackage-openclaw-entry-missingon the publisher dashboard after it is scanned.User Impact
User impact: publishers of Codex, Claude and Cursor bundles stop seeing advice to add
package.jsonor 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.jsonis 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 ownpackage.jsonwith OpenClaw metadata, and I have no evidence they are wrong for a bundle.Evidence
.codex-plugin/plugin.json,.mcp.json, one skill, nopackage.json) emitspackage-json-missing. That reproduces the report.convex/packageInspectorFamilyFindings.runtime.test.tsposts a worker result to the shippedPOST /api/v1/package-inspector/resultsroute and reads back the stored rows. A bundle plugin stores no warnings and records acleanscan. A code plugin keeps both findings and recordsfindings. Withconvex/packages.tstaken frommain, the bundle case fails: it stores both findings and recordsfindings. It runs inconvex-test, not against a live deployment.convex/packages.public.test.tscover a bundle that drops both codes and keeps an unrelated finding, a bundle with only the two native findings recorded asclean, and a code plugin that keeps all three.scripts/package-inspector-nightly-scan.test.tsruns the real pinned Inspector on that bundle, then checks that the filter removespackage-json-missingforbundle-pluginand leaves the findings unchanged forcode-plugin.tsc --noEmit,oxlinton the touched files and the related vitest files (30 files, 663 tests) pass locally. Thestatic,unit,packages,types-build,e2e-http,playwright-smokeandplaywright-local-authchecks pass in CI on this head.ci:staticand fullci:unitwere not rerun on this head because the local environment has nobun.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 authenticatedPOST /api/v1/package-inspector/resultsroute. A separate database read returned:bundle-plugincleancode-pluginfindingspackage-json-missingThis verifies the route and persistence, not the hosted nightly scheduler or an existing production release. The test used disposable credentials with owner notifications disabled.