Skip to content

fix(e2e): load kitchen-sink fixtures with captured dependencies - #150347

Merged
RomneyDa merged 1 commit into
mainfrom
fix/docker-fixture-transport-dependency-boundaries
Sep 17, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/docker-fixture-transport-dependency-boundaries

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #145370. Narrowed at the maintainer's request; the independent Doctor-switch repair is now the focused companion PR #150698.

What Problem This Solves

Fixes the generated kitchen-sink package failing to load when the plugin runtime captures its dependencies into linked package copies.

User Impact

No production runtime change. The fixture recognizes its valid captured dependency instead of falsely failing release validation. Installation assertions and containment behavior remain exactly as on Main; this PR introduces no mandatory-sentinel or live-mode policy.

Why This Change Was Made

Compare the resolved dependency and the pinned fixture dependency's expected index.js as canonical files, rather than comparing a canonical resolution against a lexical URL prefix. The real loader already owns dependency capture and links.

Only the generator and its real-loader regression are changed. The unnecessary assertion-policy addition and its follow-up were removed, not moved into another PR. Previous work is retained in private recovery evidence.

Evidence

  • On pinned Main c4987966826340590b00b6fa973684172d12300e, the new real-loader positive case failed with the original package-1/node_modules/is-number/index.js error. The poisoned parent-dependency negative control passed.
  • With the generator-only repair, both cases pass, including mutation of installed dependency bytes after capture. All 9 fixture-server tests pass; the unchanged Main installation-assertion suite passes all 57 tests.
  • The earlier unrelated CI error in Slack's WebSocket Buffer.from overload is corrected by the pinned Main base. An extracted exact-expression typecheck reproduced TS2769 on CI's old Main input and passed with the pinned Main expression; no Slack files are changed here.

Proof is local and synthetic: real generated package and PluginInstance loader, an inert minimal SDK factory, and no registry downloads. It is not full Docker, packaged CLI, live-registry, or release-qualification proof. The complete normal changed-check plan on this pinned base passed, including root test types, all script lint, changed-test lint, Docker boundaries, formatting, and dead-export scans. Independent scoped review accepted this exact two-file change with no findings before commit. The normal commit hook preserved the reviewed bytes. Exact-head CI run 35192481797 (attempt 1) completed successfully, including openclaw/ci-gate. This is PR CI proof, not a merge or release-qualification claim.

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 16, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 16, 2026 22:39
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 3:11 AM ET / 07:11 UTC (Revision 4).

ClawSweeper review

What this changes

Updates the generated kitchen-sink test plugin to recognize captured dependency files and adds regression coverage through the real plugin loader.

Merge readiness

✅ Ready for maintainer review

The narrowed repair remains useful: current main retains the failing comparison, and the patch matches the loader’s dependency-linking behavior. No blocking findings remain; the earlier sentinel-policy and migration concerns do not apply to this diff.

Priority: P2
Reviewed head: 74bca5474f5775bae2b22de064ae1bee161b0fca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful loader-boundary regression coverage and no blocking correctness findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this bot-authored repair. Supplied evidence exercises the generated artifact through the real plugin loader with synthetic dependencies and an inert SDK factory; it does not establish full Docker or release qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this bot-authored repair. Supplied evidence exercises the generated artifact through the real plugin loader with synthetic dependencies and an inert SDK factory; it does not establish full Docker or release qualification.
Evidence reviewed 7 items Verified introduced scope: The merge-base-to-head diff changes only the fixture generator and its tests. The host-verified test merge preserves that same scope. Final diff whitespace validation passed and the checkout remained clean.
Loader contract supports the repair: Dependency capture copies packages into separate package directories and links them into the importing package’s node_modules. Comparing real paths therefore accommodates the existing layout without changing the loader, plugin API, or installation policy.
Current main still needs the repair: The fetched main revision still compares the resolved dependency URL against a lexical node_modules prefix, which differs from the canonical captured package location.
Findings None None.
Security None None.

How this fits together

The local ClawHub fixture server generates plugin packages for installation validation. The plugin loader captures those packages and their dependencies before the validation checks their registrations.

flowchart LR
  A[Fixture package generator] --> B[Local artifact download]
  B --> C[Plugin loader]
  C --> D[Captured dependency copies]
  D --> E[Canonical file comparison]
  E --> F[Plugin registrations]
  F --> G[Validation assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +104, Other +2. Total +106 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 104 0 +104
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 2 +2
Total 2 108 2 +106

Review metrics

None.

Technical review

Best possible solution:

Keep dependency capture owned by the existing loader and make the generated fixture validate canonical dependency identity.

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

Yes, from source: captured dependencies resolve through links to separate package copies, while current main requires a lexical prefix match. The PR reports a failing baseline regression; this review did not execute it.

Is this the best way to solve the issue?

Yes. Canonical comparison repairs the generated fixture at its owner without altering dependency capture or introducing another installation policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7f2637f18d79.

Labels

Label justifications:

  • P2: Repairs a false failure in plugin installation validation with a bounded fixture-only change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this bot-authored repair. Supplied evidence exercises the generated artifact through the real plugin loader with synthetic dependencies and an inert SDK factory; it does not establish full Docker or release qualification.

Evidence

What I checked:

  • Verified introduced scope: The merge-base-to-head diff changes only the fixture generator and its tests. The host-verified test merge preserves that same scope. Final diff whitespace validation passed and the checkout remained clean. (scripts/e2e/lib/clawhub-fixture-server.cjs:369, 74bca5474f57)
  • Loader contract supports the repair: Dependency capture copies packages into separate package directories and links them into the importing package’s node_modules. Comparing real paths therefore accommodates the existing layout without changing the loader, plugin API, or installation policy. (src/plugins/plugin-generation-artifact.ts:229, 74bca5474f57)
  • Current main still needs the repair: The fetched main revision still compares the resolved dependency URL against a lexical node_modules prefix, which differs from the canonical captured package location. (scripts/e2e/lib/clawhub-fixture-server.cjs:373, 7f2637f18d79)
  • Latest release comparison: The v2026.9.4 fixture generator also retains the lexical-prefix comparison. Its source was retrieved through GitHub after local historical blob retrieval failed. (scripts/e2e/lib/clawhub-fixture-server.cjs:371, 3a9d69db306c)
  • Regression coverage and proof limits: The added cases download the generated artifact and use PluginInstance’s real loader. The positive case changes installed dependency bytes after capture and checks provider, context-engine, and channel registration. The poisoned-parent case detects accidental borrowing; it is not proof of rejection before dependency execution. The captured PR body reports before/after results and nine passing fixture-server tests, explicitly describing synthetic proof with an inert SDK factory. Tests were not executed during this read-only review. (test/scripts/clawhub-fixture-server.test.ts:193, 74bca5474f57)
  • Prior review concerns resolved by narrowing: Installation assertions have no introduced diff, including their existing conditional dependency-containment check. The Doctor transport repair is separately tracked at fix(e2e): select the synthetic Doctor user bus #150698. The earlier reviewed SHA could not be retrieved locally, so continuity was established from the supplied review projection and the verified current introduced diff. (scripts/e2e/lib/kitchen-sink-plugin/assertions.mjs:403, 74bca5474f57)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-16T22:38:51.094Z sha 30708ef :: blocked before merge. :: [P2] Scope the required sentinel dependency to hermetic fixture mode
  • reviewed 2026-09-16T22:45:53.939Z sha 30708ef :: blocked before merge. :: [P2] Scope the required sentinel dependency to hermetic fixture mode
  • reviewed 2026-09-17T06:05:15.392Z sha 1e7f89a :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
Compare the pinned fixture dependency entry by canonical file identity. Keep Main installation policy unchanged and cover the real captured loader with local and poisoned-parent dependencies.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/docker-fixture-transport-dependency-boundaries branch from 1e7f89a to 74bca54 Compare September 17, 2026 07:01
@roboclaw-bot roboclaw-bot changed the title fix(e2e): avoid false Doctor and kitchen-sink fixture failures fix(e2e): load kitchen-sink fixtures with captured dependencies Sep 17, 2026
@RomneyDa
RomneyDa merged commit 943eeaa into main Sep 17, 2026
94 checks passed
@RomneyDa
RomneyDa deleted the fix/docker-fixture-transport-dependency-boundaries branch September 17, 2026 07:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…claw#150347)

Compare the pinned fixture dependency entry by canonical file identity. Keep Main installation policy unchanged and cover the real captured loader with local and poisoned-parent dependencies.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

2 participants