Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 12:39 AM ET / 04:39 UTC. Summary PR surface: Source +156, Tests +304. Total +460 across 9 files. Reproducibility: yes. Source inspection shows Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use one bundle-aware payload classification path for both Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows Is this the best way to solve the issue? No. This is the right general boundary, but the fix is one-sided; the best fix must make both update-time payload gates bundle-aware while preserving package validation for true npm/code-plugin payloads. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 85ee71223f0d. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +156, Tests +304. Total +460 across 9 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
The canonical fix for #97985 has now landed in #98010 as 4391041. I’m closing this PR as superseded so we keep one implementation path for the bundle-plugin update payload fix and avoid overlapping update-smoke behavior changes. This branch was still needs-proof, so #98010 is the safer canonical path. |
What Problem This Solves
Fixes an issue where users running
openclaw update --yeson installs that includeformat=bundleplugins (Claude/Codex/Cursor plugin layout —.claude-plugin/plugin.json+skills/, no top-levelpackage.json) would see every bundle plugin false-fail the post-update payload smoke check withpackage.json is missing, exit 1, and leave the gateway unloaded/down until manual recovery.The post-core smoke check was npm-format-specific: it asked every tracked install record for an install directory containing
package.json, with no branch for bundle-format manifests. Valid bundle plugins that load fine at runtime were therefore reported as corrupt, and the failure aborted before the gateway restart path.Closes #97985.
Why This Change Was Made
Make the post-update payload smoke check format-aware: when
package.jsonis absent, look for a known bundle manifest (.claude-plugin/plugin.json, codex, or cursor) and validate that instead. Bundle manifests are loaded via the existingloadBundleManifestand rejected when missing or capability-less.The npm/code-plugin fail-closed path is preserved:
npmandclawhubFamily=code-pluginrecords skip the bundle branch, so a genuinely broken npm payload still fails withmissing-package-json. Marketplace/clawhub/git records opt into the bundle branch only when durable bundle metadata (recordedformat,bundleFormat, manifest marker on disk, or recordedclawhubFamily=bundle-plugin) is present, preventing ambient skill directories from masquerading as bundle plugins.Plugin install metadata now persists
format,bundleFormat, andclawhubFamilyso the smoke check can distinguish recorded bundle installs from native npm installs without re-probing.User Impact
Users running
openclaw update --yeswith first-partyformat=bundleplugins under~/.openclaw/extensions/no longer see false-positivepackage.json is missingfailures; the update completes and the gateway restarts on the new core version without manualopenclaw daemon startrecovery.Evidence
src/cli/update-cli/plugin-payload-validation.test.tscover:package.jsonwhen a valid.claude-plugin/plugin.jsonexists,invalid-bundle-manifest,clawhubFamily=code-pluginrecords still fail-closed on missingpackage.json.node scripts/run-vitest.mjs run src/cli/update-cli/plugin-payload-validation.test.ts src/plugins/installed-plugin-index.test.tspasses.format: "bundle", an existing install directory, and nopackage.jsonpreviously producedmissing-package-json; with this change it validates the bundle manifest instead.