Skip to content

fix(plugins): preserve live ClawHub package metadata - #148118

Merged
steipete merged 7 commits into
openclaw:mainfrom
onlyysaurabh:fix/clawhub-fixture-assertion
Sep 14, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
onlyysaurabh:fix/clawhub-fixture-assertion

Conversation

@onlyysaurabh

@onlyysaurabh onlyysaurabh commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Related: #148074

What Problem This Solves

Resolves two live ClawHub validation defects left after the Docker fixture was isolated:

  1. Live-mode plugin sweeps inherited the synthetic fixture package, so the public lane did not exercise the published @openclaw/kitchen-sink plugin.
  2. The public artifact resolver returned npm-pack size metadata, but the top-level adapter dropped it. Installation succeeded, then lifecycle validation rejected the incomplete install record.

#148129 separately landed the stale Docker helper assertion repair. That assertion is preserved on main and is not part of this PR's remaining diff.

Why This Change Was Made

The ClawHub sweep now selects its default package after choosing live or fixture mode, while explicit package and runtime-ID overrides still win. Executable coverage verifies fixture default, live default, and explicit override routing.

The live artifact adapter now carries the registry-owned size fact into the existing metadata normalizer. Missing or malformed sizes remain optional; no downstream recomputation or fallback was added.

The weaker static fixture-literal assertion is removed because the executable routing matrix now protects the actual behavior.

User Impact

Full release validation now exercises the published ClawHub plugin in live mode. ClawHub npm-pack installs also retain the advertised artifact size in their canonical install metadata.

Evidence

Retained live proof head: 9ce5c455e0e37ec8962575bbfe02ed7e43fc0f7e.

  • Sanitized AWS Crabbox run: run_0644d3db144a
  • Focused regression: 1 passed, 91 skipped.
  • Routing matrix: 3 passed, covering fixture default, live default, and explicit overrides.
  • ClawHub fixture server: 7 passed.
  • check-changed: passed for all five remaining files.
  • Public artifact contract: kind=npm-pack, size=985548.
  • Fixture Docker lifecycle: Using ClawHub package @openclaw/plugin-e2e-fixture (code-plugin). then OK.
  • Live Docker lifecycle: Using ClawHub package @openclaw/kitchen-sink (code-plugin). then OK.
  • Before the metadata repair, the live lifecycle installed the official package and failed because clawpackSize was absent.
  • Fresh P0-P2 autoreview of the reconciled five-file diff: no actionable findings.
  • At the retained proof revision, the main merge check was mergeable with no touched-file conflict.

Diff classification: production +2, E2E tooling +4, tests +65, docs +1. CHANGELOG.md is release-owned; no release-note file was changed.

Maintainer regression proof

Repeated against the production delta at b901d0625f3a279ff9c12b357c8a2a988eadd20b in a scratch copy. Only the two production hunks were reversed and restored; the regression assertions were retained. For the lifecycle boundary, the existing synthetic resolver/archive fixture supplied the installer result to buildClawHubPluginInstallRecordFields, the existing SQLite E2E writer, and the unmodified assertions.mjs clawhub-installed entry point. This is synthetic boundary proof, not a new live-network or published-driver upgrade run.

Commands, run from the scratch copy:

node scripts/run-vitest.mjs src/plugins/clawhub.test.ts -t 'accepts the live ClawHub artifact resolver shape'
node .local/lifecycle-proof.mjs
node scripts/run-vitest.mjs test/scripts/package-compat.test.ts -t 'selects the ClawHub identity'

Before restoring the production hunks:

Metadata regression: expected undefined to be 4096
Tests: 1 failed | 91 skipped
installer: ok=true; install record clawpackSize=undefined
lifecycle validator exit=1
Error: missing ClawHub ClawPack metadata for demo

Live default routing:
Expected: "clawhub:@openclaw/kitchen-sink"
Received: "clawhub:@openclaw/plugin-e2e-fixture"
Tests: 1 failed | 2 passed | 23 skipped

After restoring the production hunks:

Metadata regression: 1 passed | 91 skipped
installer: ok=true; install record clawpackSize=4096
lifecycle validator exit=0
clawhub-installed: PASS
Routing: 3 passed | 23 skipped (fixture default, live default, explicit override)

ClawSweeper review

The review of b901d0625f3a279ff9c12b357c8a2a988eadd20b found no actionable findings. No items required applying or skipping.

Documentation and CI handoff

Commit 987100cb3937807a242bf486524d2f48f24d9322 adds one line documenting OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB=1 beside the existing plugin E2E environment flags. The production patch and contributor commit ancestry are unchanged. node scripts/check-changed.mjs -- docs/help/testing/docker.md and independent P0–P2 review passed.

The authorized single rerun of CI 34852596312 on b901d0625f3a279ff9c12b357c8a2a988eadd20b failed again in checks-node-compact-large-24, attempt 2:

src/wizard/setup.inference-recovery.integration.test.ts:274
Expected: "promotion refused"
Received: "Shared-state admission requires the host broker"

This file is unchanged by the PR. Main now contains the wizard database-fork routing repair at 6fd4d0d52a9f161f3eaaf6b2ca473101315069b3. Refreshed PR head fe7326f32d443c73089bcf6d69e260e55de403a9 preserves the production patch and documentation addition; its GitHub merge ref includes that main fix. Exact-head CI is running. No assertion, timeout, or retry policy was changed in this PR.

Thanks @onlyysaurabh for the original contribution and @vincentkoc for the live-mode and metadata repairs.

@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. size: XS labels Sep 14, 2026
@vincentkoc vincentkoc self-assigned this Sep 14, 2026
@steipete steipete self-assigned this Sep 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 14, 2026
@onlyysaurabh

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@onlyysaurabh
onlyysaurabh force-pushed the fix/clawhub-fixture-assertion branch from 725020b to 880267d Compare September 14, 2026 09:37
@onlyysaurabh onlyysaurabh changed the title test(docker): sync plugin sweep assertion to plugin-e2e-fixture default test(docker): check the configurable ClawHub sweep spec Sep 14, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thanks for the fix and the main sync. Please hold this head stable now so exact-head CI and maintainer review can complete; the native landing workflow handles unrelated main drift without another branch merge.

@vincentkoc

vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Reviewed 880267d600e20cf89c58ddf6edb76d796663db89: no actionable findings. The revised assertion covers configurable spec wiring; exact default identity remains covered by the prerelease plan and fixture profile tests.

This also repairs the main-induced CI failure blocking #147988. I am handling native landing once the required checks pass. Please keep this head stable unless a new actionable finding requires a change, so the current CI can complete.

Update for ae601ef0779267fc47ef780065692afb92b44a2f: the new executable change restores the official package default in live mode while keeping the synthetic fixture default for isolated tests. Public package metadata currently returns 200 for @openclaw/kitchen-sink with the expected runtime ID, and 404 for the synthetic package; this verifies metadata, not installation. The PR body still describes the earlier test-only assertion change. Please update it to the current behavior and new exact-head proof before landing. The review above applies to 880267d6, not this expanded revision.

@fuller-stack-dev

fuller-stack-dev commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Current dependency after the split

@vincentkoc, I have adopted your canonical split. #144737 now depends on the narrow #148194 at 2276624b7d6f36a44efcc1a3cff5862102af571b, preserving @onlyysaurabh as author and your active landing ownership.

I compared its sole changed assertion with the retained source from failed UI test merge 3d391e047f87d971d0576a3d353046b2bfadc97f. The old package literal is absent from that scenario. The replacement configurable-spec assignment prefix is present, and the install, update and timeout assertions remain intact. This one-line fix is sufficient for our specific compact-small-19 failure. We do not need #148118's live-vs-fixture behavior or metadata changes to repair it.

I am leaving both branches and their existing checks untouched. After your live-verified #148194 merge, I will reconcile only the necessary prerequisite into #144737 and obtain green resulting-head checks before native landing. This is not a request to waive checks or transfer your active branch custody.

Our CI34827560601 has now finished with a separate desktop viewer/framebuffer failure, which I am tracking independently. It does not broaden #148194's scope or make #148118 a dependency again. #147903 still follows actual UI landing and landed-base reconciliation.

Earlier evidence, retained as history

Additional dependent-PR evidence for the existing landing owner, @vincentkoc: #144737 at b634a7f75b69b2e466c82a4f58b126ed6ca1e1e6 is blocked by the same stale assertion in CI34827560601 / compact-small-19. That shard passed 355 tests and failed only covers plugin CLI sources in the Docker plugin sweep on the obsolete clawhub:@openclaw/kitchen-sink literal.

The actual CI merge 3d391e047f87d971d0576a3d353046b2bfadc97f has the same test and ClawHub-scenario blobs as its main parent d99619cc4e68b6d0e84ed05f0c1276ef4eeaae18 and inspected main bb14ac241ee6016d0fda6215376e2339cc187dea. The scenario changed on main while the assertion retained the old literal. The UI PR diff touches neither file.

I am following your existing native landing of this canonical contributor PR. I observed its head advance from 880267d to ae601ef, so I will not touch its branch or replay its tests. After its verified merge, I will reconcile the dependent UI PR and continue #147903. This records the dependency; it is not a request to waive checks or relinquish your active landing.

Update for c2ffb9dc8af73f1b440651b14ea91489175c41c3: the completed dependency observer noticed this amendment. Both it and ae601ef share parent 880267d; exact commit blobs show only line wrapping and optional trailing commas in package-compat.test.ts. The production shell and other two test blobs are identical. Vincent is author and committer of both revisions, so active native landing custody is unchanged.

The added isolated/live/override cases exercise recorded CLI arguments, not live package installation. The PR body still described the earlier test-only assertion fix when inspected; the current-behavior/evidence update requested above remains with the landing owner. I have not rerun your tests or touched the branch. #144737 retains existing CI34827560601 and awaits this canonical merge; #147903's new runtime proof still follows actual UI landing. No additional observer or CI dispatch was started.

@vincentkoc

Copy link
Copy Markdown
Member

I split the original one-line assertion repair into #148194 and preserved @onlyysaurabh as the commit author. That narrow PR fixes the current-main checks-node-compact-small-19 failure blocking #147936.

Keeping this PR open for its separate live-vs-fixture package behavior and metadata work, which now has distinct proof and CI requirements.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc vincentkoc closed this Sep 14, 2026
@vincentkoc vincentkoc reopened this Sep 14, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Refresh the PR projection and checks against main with the wizard recovery test routing fix.
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Sep 14, 2026
@steipete
steipete merged commit 98ab09c into openclaw:main Sep 14, 2026
226 of 228 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* test(docker): check the configurable ClawHub sweep spec

* fix(e2e): preserve live ClawHub package default

* fix(plugins): preserve live ClawHub package metadata

* docs(testing): document live ClawHub plugin opt-in

* chore: refresh ClawHub PR CI

Refresh the PR projection and checks against main with the wizard recovery test routing fix.

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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.

4 participants