Repository navigation
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. |
|
Overlap coordination with #162464: that PR fixes cold-checkout typed lint and currently closes this same package import failure by shipping the generator and its direct-run helper. Its actual npm tarball/import-closure check and source-less packaged execution passed; this is focused package proof, not a full build. The coordinated macOS packaging owner also reported the exact missing-generator diagnostic at I inspected this PR at We will recheck this PR before #162464's next publication. If your change has landed, we will remove our two obsolete package entries and the added shipped-generator packaging case, preserving the existing generator regressions. Until then, #162464 retains its proved closure. We are not starting another packaging repair or changing this PR's ownership. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 2:53 AM ET / 06:53 UTC. ClawSweeper reviewWhat this changesThe PR separates source-only declaration generation from published install preparation and updates Docker, cache inputs, and regression coverage to preserve package import closure. Merge readiness✅ Ready for maintainer review Keep open: current main still contains the package-import failure, and this PR provides a focused repair with no actionable correctness findings. The overlapping packaging work is explicitly coordinated. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw packages its Gateway runtime for published installs and cloud workers. Package validation checks that shipped scripts reference available files before the runtime can be distributed. flowchart TD
A[Source checkout] --> B[Source preparation]
B --> C[Generated declarations]
A --> D[Package manifest preparation]
D --> E[Shipped hooks script]
E --> F[Import closure validation]
F --> G[Published runtime and cloud workers]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +113, Docs +2, Config +20, Other +19. Total +154 across 17 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep source code generation outside the shipped runtime and let the existing package-manifest owner select the self-contained install command. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main ships a hooks script that imports an omitted generator, and the production package validator rejects that edge. The body reports the matching baseline regression; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Separating source preparation and using the existing manifest owner removes the invalid shipped dependency without weakening validation or publishing unnecessary source tooling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10cf91f150e2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Closing as superseded.
The only coverage this PR would have added beyond that is the root For context, the |
Related: #162288
What Problem This Solves
Fixes cloud worker dispatches failing before enrollment because a package-shipped prepare script imports a source-only Kysely generator.
User Impact
Cloud workers can package the Gateway runtime again while source installs continue generating Kysely declarations. Published installs retain their existing lifecycle behavior. No configuration, schema, protocol, or SDK changes are required; operators need a build containing this fix to replace the affected runtime.
Why This Change Was Made
The static package validator correctly rejected a literal import even though a source-schema guard made it unreachable in published installs. Source preparation now lives in an unshipped entry point, and the existing package-manifest owner selects the self-contained hooks command when preparing a package. The hooks script remains shipped for its cross-platform install contract (introduced in d21abb8).
A cheap PR test reads the actual package allowlist and uses the same import-closure validator as node bootstrap and release packaging. It covers shipped source scripts and launchers without a build; built dist edges remain covered by the full package check. Existing CI policy watches select the test for manifest, launcher, and script changes. Docker dependency-stage copies and install-cache fingerprints follow the new preparation entry point.
Evidence
The reported live evidence was three dispatches on main, through GCP, Hetzner, and AWS, each failing about five seconds after the request:
Locally, the new regression failed on base 34a0d30 with that exact missing-import diagnostic, then passed after the fix. The validator was not weakened, and no computed import specifiers were added.
pnpm test test/scripts/package-source-import-closure.test.ts --maxWorkers=1: 1 passed, 64 ms test time, 2.02 s Vitest wall, 5.97 s runner wall. CI timing is pending.git diff --checkpassed. Default-threshold zizmor also reported six existing low-severity local-action syntax suggestions, outside the configured gate.The pack fixture initially exposed a missing copied source entry and an incorrect expectation about pnpm's manifest stripping; both were corrected. One later attempt was interrupted by a concurrent lint temporary-file mutation invalidating the compiler snapshot; the final checks ran sequentially and passed. No product failure was hidden by retries.
No full build or test suite was run under the loaded-host constraint. This proves the shipped source import closure directly and the bootstrap artifact behavior with its existing fixtures; it does not claim a fresh live cloud dispatch. No Gateway was started, stopped, or restarted.