Repository navigation
fix(qa): keep Crabline crypto available in bundled builds - #136166
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 4:36 AM ET / 08:36 UTC. ClawSweeper reviewWhat this changesThe PR upgrades Crabline to 0.1.20 and removes its temporary exclusion from OpenClaw’s bundled QA runtime build. Merge readinessKeep this PR open for normal maintainer review: current main still externally resolves Crabline, while this branch removes that exception and adds a matching bundling assertion. No introduced functional defect is evident, but the temporary release-age bypass for a crypto-bearing dependency needs independent dependency/supply-chain verification before merge. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s tsdown configuration decides which dependencies are embedded in generated QA runtime artifacts versus resolved from an installed package tree. QA Lab imports Crabline to run local channel-provider adapters, so its bundled output must retain Crabline’s crypto support after relocation. flowchart LR
A[QA Lab transport] --> B[Crabline dependency]
B --> C[tsdown dependency rules]
C --> D[Bundled QA runtime]
D --> E[Relocated runtime execution]
E --> F[Local channel-provider tests]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The diff adds a short-lived exception to the dependency release-age guard for code that will be bundled into QA runtime artifacts, requiring independent package verification before merge. PR surfaceTests +8, Config +3, Other +3. Total +14 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Crabline on the normal bundled path once a dependency/security owner has verified the published 0.1.20 package and the narrowly time-bounded cooldown exception. Do we have a high-confidence way to reproduce the issue? No: current source proves the existing externalization and the new fixture’s intended bundled boundary, but this read-only environment could not independently execute the relocated real-package scenario. Is this the best way to solve the issue? Unclear: deleting the consumer workaround is the right ownership direction if Crabline 0.1.20 no longer relies on package-relative crypto resolution, but that upstream contract could not be inspected directly here. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cc6769b89216. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Dependency-owner verification for the reviewed head
The two exact-version exceptions are accepted for this explicitly requested release update; the seven-day policy remains enabled and the September 10 removal note remains. No broad scope exemption or dependency override is introduced. Runtime evidence is now explicit in the body: macOS/Linux private builds and the full Matrix gateway-restart scenario pass. A synthetic linked WhatsApp account reaches the normal inbound-listening state through the compiled crypto path. Stock WhatsApp message scenarios have pre-existing credential/JID fixture gaps and are not represented as passing. The initial hosted run's one unrelated UI popover timeout is rerunning on the unchanged commit; no test or timeout was weakened. |
|
Merged via squash.
|
Related: #135728
What Problem This Solves
Resolves the Crabline bundling limitation exposed by the isolated-pnpm migration. The prior PR preserved Crabline as an external package because its package-relative crypto loader could not survive bundling. The owner repair is now in Crabline 0.1.20.
Why This Change Was Made
Update the root tooling and QA Lab's exact Crabline dependency to 0.1.20, then remove the now-obsolete Crabline-specific
neverBundlerule. Keep the existing dependency-boundary fixture and assert that Crabline is bundled in runtime, declaration, and worker outputs. No new root crypto dependency, loader fallback, public API, runtime configuration, or protocol change is needed.Best-fix verdict: repair dependency loading in the package that owns it, then return the consumer to the normal bundling path. Keeping the externalization exception would retain a workaround after its cause is fixed; adding curve25519-js to OpenClaw's root would hide dependency ownership again.
User Impact
Private QA builds use the released bundle-safe Crabline package without requiring its installation directory at runtime. The source linker stays isolated. The dependency update also includes Crabline's previously released recorder-shutdown improvements.
Evidence
Cannot find module 'curve25519-js'; the fix passes, including native and JavaScript X25519 paths.latest, version, publication time, tarball bytes/SHA-512, static-import payload, and GitHub release notes were verified. Release run 33606567051 completed successfully after an unchanged stress-test retry and npm processing/read-back delay.pnpm install --frozen-lockfilepasses under pnpm 12.1.0. The lockfile changes only Crabline plus its required Zod 4.5.2 snapshot; all existing patch/peer identities remain unchanged.test/scripts/tsdown-config.test.ts,extensions/qa-lab/src/crabline-transport.test.ts,extensions/qa-lab/src/crabline-transport-readiness.test.ts, andextensions/qa-lab/src/suite.test.ts.matrix-restart-resumepasses: 1 passed, 0 failed, 0 skipped, including the gateway restart. Blacksmith Testboxtbx_01m1gk34mxhahv3ggfy38sedba, run 33607908381, completed with wrapper exit 0 and was stopped. Production files matched the candidate; the later sync also included the test-only brace cleanup.Listening for WhatsApp inbound messagesstate on the compiled candidate. The stock whoami/restart fixtures then fail their native-JID input contracts before delivery; they are not counted as end-to-end passes. No production linkage check is weakened.new-session-page.places-live.e2e.test.ts; the failed-job retry passed and the full run completed SUCCESS on exact heada9b37f3a49188984752637548358cdd9b14d3c30. No timeout or test is weakened.Scope and upgrade considerations
The seven-day cooldown remains enabled. Two exact-version exceptions admit this explicitly requested new release and its required
[email protected]; the comment specifies removal after September 10. No broad package/scope exemption or dependency override is added.Crabline's public exports and adapter shapes are unchanged from 0.1.17. Its prior recorder fixes now drain admitted persistence during server close and initialize process/machine identity before readiness. The independent owner-boundary review found those contracts compatible with OpenClaw's synchronous observer and awaited adapter cleanup; Matrix restart proof passes; the stock WhatsApp harness setup gap is documented above.
Production build configuration removes two lines. Test coverage adds one expectation condition in the existing executable fixture; four existing single-line control statements in that fixture receive the braces required by its current lint gate. All 21 tooling tests and targeted type-aware lint pass after that formatting-only cleanup. The remaining changes are exact dependency pins, scoped cooldown entries, and lockfile metadata, not new production logic. The global changed-check classifier selects all lanes for root package/lock inputs; focused local proof and the exact-head hosted CI gates provide the proportional validation without running duplicate whole-repository local gates.
Published dependency verification
Both downloaded registry tarballs match their exact SHA-512 lockfile integrity. Zod 4.5.2 has no runtime dependencies or install lifecycle hooks. Both npm registry signatures verify against the registry signing key; its provenance subject matches the downloaded bytes and records the official
colinhacks/zodrelease workflow at9a193aa24b4efa3b315b91d4c56c8bc385b8513f, matching upstreamv4.5.2. The package lists Colin McDonnell as maintainer and GitHub Actions as publisher. This is artifact/ownership verification, not a claim of an exhaustive dependency security audit.The ordinary WhatsApp QA harness needs a separate synthetic-auth/native-JID fixture repair. That is recorded as a follow-up, not silently fixed by changing production authentication or relabeled as a passing scenario. The standalone package crypto/bundle regression, normal encrypted WhatsApp connection, and full Matrix gateway restart exercise the changed dependency-loading boundary.