Repository navigation
fix(e2e): load kitchen-sink fixtures with captured dependencies - #150347
Conversation
|
🦞👀 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. Reviewed September 17, 2026, 3:11 AM ET / 07:11 UTC (Revision 4). ClawSweeper reviewWhat this changesUpdates 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +104, Other +2. Total +106 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
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]>
1e7f89a to
74bca54
Compare
…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]>
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.jsas 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
c4987966826340590b00b6fa973684172d12300e, the new real-loader positive case failed with the originalpackage-1/node_modules/is-number/index.jserror. The poisoned parent-dependency negative control passed.Buffer.fromoverload 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
PluginInstanceloader, 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, includingopenclaw/ci-gate. This is PR CI proof, not a merge or release-qualification claim.