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. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 1:02 PM ET / 17:02 UTC. ClawSweeper reviewWhat this changesAdds the packaging launcher's missing shared module to the isolated test fixture so its startup check reaches argument validation. Merge readiness✅ Ready for maintainer review The fix remains necessary on fetched main and has no actionable review findings. This protected, maintainer-authored PR is suitable for normal merge review. Priority: P3 Review scores
Verification
How this fits togetherThe package-contract tests exercise OpenClaw's Docker packaging tooling. This fixture copies the launcher and its dependencies into an isolated directory, then checks that startup reaches the expected CLI error. flowchart LR
A[Repository scripts] --> B[Copy fixture dependencies]
B --> C[Isolated test directory]
C --> D[Launch packaging script]
E[Invalid CLI argument] --> D
D --> F[Assert expected argument error]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the isolated fixture aligned with the launcher's dependencies while preserving its existing startup assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: the existing isolated-launcher test omits a statically imported file on fetched main, preventing argument validation. Execution was not attempted during this read-only review. Is this the best way to solve the issue? Yes. Adding the required module to the existing fixture is the narrowest repair and leaves production code, assertions, and timeouts unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 234e9e0c3766. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landing reconciliation: GitHub's squash-merge request returned The landed commit is 5741b3c. Its parent tree matches the PR base for the touched file, and its resulting file blob exactly matches head Closing as landed to prevent a duplicate or empty second merge attempt. |
* origin/main: test(gateway): isolate session resolution channel fixtures (#151945) fix(clickclack): drain discussion opens before shutdown (#151978) fix(test): restore trusted packaging harness startup (#151967) improve(codex): batch session adoption binding reads (#151979) improve(cron): reduce allocations for busy stream sources (#151956) fix(file-transfer): avoid repeated directory record encoding (#151987) fix: avoid session-list rebuilds when authentication availability changes (#151920) fix(updates): explain externally managed update refusals (#151942) improve(heartbeat): avoid unused config work in membership checks (#151867) fix(android): keep status text readable and label accessibility actions (#151342) improve(ui): show OS and size in the environment selector (#151947) fix(android): keep tool errors visible in collapsed chat activity (#151332)
Include Diffs in the expected database-worker planner group while retaining exact coverage and duplicate checks. Carry the packaging fixture dependency from canonical main commit 5741b3c (PR #151967), whose one-line patch matches the original 8b58def. No production or build inputs change; compiled runtime and active-writer evidence retain their original commit bindings.
Include the worker pool completion, core, and owned-task modules in the existing PR wrapper component inventory so extracted wrappers reach their normal argument validation with a complete eager import closure. Carry the exact packaging fixture repair from canonical 5741b3c (#151967): copy the existing packed-openclaw-tarballs helper into the no-dependency harness.
* perf(fleet): run registry operations in SQLite workers * fix(state): preserve readonly admission error context * test(gateway): retain catalog root failure diagnostics * fix: preserve uncertain lease outcomes before caller recovery * fix(state): reject retired read scopes and retain wrapper imports Reject new admissions to closing or closed selected read scopes while keeping already-admitted readers owned through cleanup. Preserve typed invalidation at plugin discovery boundaries. Include the retained-read eager dependencies in the canonical PR wrapper inventory. * test(state): require rejection of retired read scopes Update the three existing disposable-scope variants to expect the canonical admission error while preserving active and unrelated source assertions. * fix(state): keep ordinary reads in the SQLite worker Use the existing independent readonly worker for ordinary fixed reads while retaining cached writer custody. Validate captured file identity around opens and acceptance, and bind previously missing paths when their first file appears. Keep selected snapshots and native preparation scopes with their existing owners. * fix: catalog refresh fails when previous discovery finishes Retain selected plugin registries through awaited preparation and hand construction claims to the completed generation. Preserve stale-publication cleanup and borrowed Gateway-root ownership. Related: #151588, #148290. * fix(test): retain Telegram suite output on subprocess errors * fix(ci): require full compact proof for worker policy guards (#151427) Fix compact CI policy guards that confused a two-worker budget with a parallel-to-serial transition. Preserve inherited job ceilings on already-serial recipients and reject redundant group-policy rewrites. Select the complete compact plan on Blacksmith and hybrid runs when the owning planner-policy test changes; keep GitHub targeting precise. Production admission-before-placement, worker limits, and measurements remain unchanged. Validation: focused host-profile and policy cases, serial-policy negative controls, and exact-head CI run 35343663468 passed. ClawSweeper and the retained scoped review found no actionable defects. No user-visible runtime change. * refactor(state): move fixed-read snapshot tokens off the main thread * perf(gateway): materialize archived session rows on demand (#151574) * fix: avoid host-speed failures in catalog performance checks (#151732) Replace the catalog benchmark's host-dependent 20 ms median limit with 20 times an independent in-process CPU reference. Check every composed list for exactly 20 SQLite reads, including three binding-authority reads, and zero plugin-state worker operations, while preserving the existing native-RPC, file-I/O, and session-payload guards. This is a test reliability repair with no runtime or update behavior change. Production changes: 0 lines; tests and test support: +61/-7 across two files. Validation: exact-head CI is green; the reviewed proof includes five passing local runs, two-CPU Testbox and hosted calibration, an extra-SELECT negative control, and a uniform CPU slowdown that fails the independent timing guard. Round-2 Codex autoreview and exact-head ClawSweeper review found no actionable defects. * test(gateway): match catalog read budget to binding owner * test(codex): synchronize agent-end context scenarios Own the fixture clock and wait for turn start and ten response progress events before selecting completion, cancellation, or refusal. Keep the five-second budget and require the expected terminal outcome. Restore real timers before cancelling and joining the run so a failed assertion cannot discard cleanup deadlines. Validation: 62 agent-end, deadline, and lifecycle tests; extension test types; scoped lint and format; independent P2 review. A temporary assertion failure also verified cancellation, unsubscribe, and joined cleanup. * test(state): intercept asynchronous snapshot preparation in lifecycle controls * fix(state): bound and reuse fixed-read workers Reuse healthy Node execution workers while each read retains its source pins through native cleanup. Preserve Bun per-task retirement and the public pool contract with an internal owned-task boundary, exact-slot settlement, and aggregation of independent cleanup failures. Carry snapshot reader leases and existing-schema context from the token foundation. Capture and charge both retained path fields before queueing. Keep best-effort quarantine admission with its existing owner. Validated with 83 focused tests, the full changed-file gate, a normal build, independent P0-P2 review, and five ordinary compiled Node/Bun proof runs. * fix(tooling): complete extracted wrapper dependencies Include the worker pool completion, core, and owned-task modules in the existing PR wrapper component inventory so extracted wrappers reach their normal argument validation with a complete eager import closure. Carry the exact packaging fixture repair from canonical 5741b3c (#151967): copy the existing packed-openclaw-tarballs helper into the no-dependency harness. * fix(test): preserve complete Git test inventories beyond one MiB Carry the exact two-file repair from canonical fd0c00b (#151991). Use the bounded 16 MiB Git inventory capture and reject child-process errors even with status zero. Preserve working-tree/untracked tests and the existing filesystem fallback, with the canonical boundary controls. No unrelated main ancestry or runtime source changes are included. * fix(sqlite): name scoped worker declaration return type
) * perf(fleet): run registry operations in SQLite workers * fix(state): preserve readonly admission error context * test(gateway): retain catalog root failure diagnostics * fix: preserve uncertain lease outcomes before caller recovery * fix(state): reject retired read scopes and retain wrapper imports Reject new admissions to closing or closed selected read scopes while keeping already-admitted readers owned through cleanup. Preserve typed invalidation at plugin discovery boundaries. Include the retained-read eager dependencies in the canonical PR wrapper inventory. * test(state): require rejection of retired read scopes Update the three existing disposable-scope variants to expect the canonical admission error while preserving active and unrelated source assertions. * fix(state): keep ordinary reads in the SQLite worker Use the existing independent readonly worker for ordinary fixed reads while retaining cached writer custody. Validate captured file identity around opens and acceptance, and bind previously missing paths when their first file appears. Keep selected snapshots and native preparation scopes with their existing owners. * fix: catalog refresh fails when previous discovery finishes Retain selected plugin registries through awaited preparation and hand construction claims to the completed generation. Preserve stale-publication cleanup and borrowed Gateway-root ownership. Related: openclaw#151588, openclaw#148290. * fix(test): retain Telegram suite output on subprocess errors * fix(ci): require full compact proof for worker policy guards (openclaw#151427) Fix compact CI policy guards that confused a two-worker budget with a parallel-to-serial transition. Preserve inherited job ceilings on already-serial recipients and reject redundant group-policy rewrites. Select the complete compact plan on Blacksmith and hybrid runs when the owning planner-policy test changes; keep GitHub targeting precise. Production admission-before-placement, worker limits, and measurements remain unchanged. Validation: focused host-profile and policy cases, serial-policy negative controls, and exact-head CI run 35343663468 passed. ClawSweeper and the retained scoped review found no actionable defects. No user-visible runtime change. * refactor(state): move fixed-read snapshot tokens off the main thread * perf(gateway): materialize archived session rows on demand (openclaw#151574) * fix: avoid host-speed failures in catalog performance checks (openclaw#151732) Replace the catalog benchmark's host-dependent 20 ms median limit with 20 times an independent in-process CPU reference. Check every composed list for exactly 20 SQLite reads, including three binding-authority reads, and zero plugin-state worker operations, while preserving the existing native-RPC, file-I/O, and session-payload guards. This is a test reliability repair with no runtime or update behavior change. Production changes: 0 lines; tests and test support: +61/-7 across two files. Validation: exact-head CI is green; the reviewed proof includes five passing local runs, two-CPU Testbox and hosted calibration, an extra-SELECT negative control, and a uniform CPU slowdown that fails the independent timing guard. Round-2 Codex autoreview and exact-head ClawSweeper review found no actionable defects. * test(gateway): match catalog read budget to binding owner * test(codex): synchronize agent-end context scenarios Own the fixture clock and wait for turn start and ten response progress events before selecting completion, cancellation, or refusal. Keep the five-second budget and require the expected terminal outcome. Restore real timers before cancelling and joining the run so a failed assertion cannot discard cleanup deadlines. Validation: 62 agent-end, deadline, and lifecycle tests; extension test types; scoped lint and format; independent P2 review. A temporary assertion failure also verified cancellation, unsubscribe, and joined cleanup. * test(state): intercept asynchronous snapshot preparation in lifecycle controls * fix(state): bound and reuse fixed-read workers Reuse healthy Node execution workers while each read retains its source pins through native cleanup. Preserve Bun per-task retirement and the public pool contract with an internal owned-task boundary, exact-slot settlement, and aggregation of independent cleanup failures. Carry snapshot reader leases and existing-schema context from the token foundation. Capture and charge both retained path fields before queueing. Keep best-effort quarantine admission with its existing owner. Validated with 83 focused tests, the full changed-file gate, a normal build, independent P0-P2 review, and five ordinary compiled Node/Bun proof runs. * fix(tooling): complete extracted wrapper dependencies Include the worker pool completion, core, and owned-task modules in the existing PR wrapper component inventory so extracted wrappers reach their normal argument validation with a complete eager import closure. Carry the exact packaging fixture repair from canonical e5772b6 (openclaw#151967): copy the existing packed-openclaw-tarballs helper into the no-dependency harness. * fix(test): preserve complete Git test inventories beyond one MiB Carry the exact two-file repair from canonical 78e1224 (openclaw#151991). Use the bounded 16 MiB Git inventory capture and reject child-process errors even with status zero. Preserve working-tree/untracked tests and the existing filesystem fallback, with the canonical boundary controls. No unrelated main ancestry or runtime source changes are included. * fix(sqlite): name scoped worker declaration return type
) * perf(fleet): run registry operations in SQLite workers * fix(state): preserve readonly admission error context * test(gateway): retain catalog root failure diagnostics * fix: preserve uncertain lease outcomes before caller recovery * fix(state): reject retired read scopes and retain wrapper imports Reject new admissions to closing or closed selected read scopes while keeping already-admitted readers owned through cleanup. Preserve typed invalidation at plugin discovery boundaries. Include the retained-read eager dependencies in the canonical PR wrapper inventory. * test(state): require rejection of retired read scopes Update the three existing disposable-scope variants to expect the canonical admission error while preserving active and unrelated source assertions. * refactor: move plugin blob storage into workers Move all eight asynchronous BlobStore methods onto the existing shared-state mutation and retained read owners. Preserve quotas, transactional accounting, read-source selection, and typed error and cleanup behavior. * fix(state): keep ordinary reads in the SQLite worker Use the existing independent readonly worker for ordinary fixed reads while retaining cached writer custody. Validate captured file identity around opens and acceptance, and bind previously missing paths when their first file appears. Keep selected snapshots and native preparation scopes with their existing owners. * fix: catalog refresh fails when previous discovery finishes Retain selected plugin registries through awaited preparation and hand construction claims to the completed generation. Preserve stale-publication cleanup and borrowed Gateway-root ownership. Related: #151588, #148290. * fix(test): retain Telegram suite output on subprocess errors * test: align Blob worker CI inventories Include Diffs in the expected database-worker planner group while retaining exact coverage and duplicate checks. Carry the packaging fixture dependency from canonical main commit 5741b3c (PR #151967), whose one-line patch matches the original 8b58def. No production or build inputs change; compiled runtime and active-writer evidence retain their original commit bindings. * fix(state): clarify blob preparation callback contracts * test(plugins): load Diffs lifecycle fixture through public facade
…claw#151175) * perf(fleet): run registry operations in SQLite workers * fix(state): preserve readonly admission error context * test(gateway): retain catalog root failure diagnostics * fix: preserve uncertain lease outcomes before caller recovery * fix(state): reject retired read scopes and retain wrapper imports Reject new admissions to closing or closed selected read scopes while keeping already-admitted readers owned through cleanup. Preserve typed invalidation at plugin discovery boundaries. Include the retained-read eager dependencies in the canonical PR wrapper inventory. * test(state): require rejection of retired read scopes Update the three existing disposable-scope variants to expect the canonical admission error while preserving active and unrelated source assertions. * refactor: move plugin blob storage into workers Move all eight asynchronous BlobStore methods onto the existing shared-state mutation and retained read owners. Preserve quotas, transactional accounting, read-source selection, and typed error and cleanup behavior. * fix(state): keep ordinary reads in the SQLite worker Use the existing independent readonly worker for ordinary fixed reads while retaining cached writer custody. Validate captured file identity around opens and acceptance, and bind previously missing paths when their first file appears. Keep selected snapshots and native preparation scopes with their existing owners. * fix: catalog refresh fails when previous discovery finishes Retain selected plugin registries through awaited preparation and hand construction claims to the completed generation. Preserve stale-publication cleanup and borrowed Gateway-root ownership. Related: openclaw#151588, openclaw#148290. * fix(test): retain Telegram suite output on subprocess errors * test: align Blob worker CI inventories Include Diffs in the expected database-worker planner group while retaining exact coverage and duplicate checks. Carry the packaging fixture dependency from canonical main commit e5772b6 (PR openclaw#151967), whose one-line patch matches the original 8b58def. No production or build inputs change; compiled runtime and active-writer evidence retain their original commit bindings. * fix(state): clarify blob preparation callback contracts * test(plugins): load Diffs lifecycle fixture through public facade
Related: #151930
What Problem This Solves
The trusted packaging-harness test checkout fails to load the package launcher after tarball cleanup moved into a shared module, before it reaches argument validation.
User Impact
Restores the existing package-contract CI check. No production behavior changes.
Why This Change Was Made
Include
scripts/lib/packed-openclaw-tarballs.mtsin the fixture's explicit copied dependency list. The real launcher can then reach its existing--invalidargument check. Assertions, copy behavior, and timeouts remain unchanged.Evidence