Skip to content

fix: wait for startup leases after container replacement - #160266

Merged
Kimiyu-186 merged 3 commits into
mainfrom
codex/startup-lease-cross-pod-wait
Sep 28, 2026
Merged

Kimiyu-186 merged 3 commits into
mainfrom
codex/startup-lease-cross-pod-wait

Conversation

@Kimiyu-186

@Kimiyu-186 Kimiyu-186 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes repeated Gateway startup failures after container replacement when the previous container leaves an unexpired startup migration lease.

User Impact

A replacement waits for the existing lease to be released or expire instead of immediately exiting and accumulating supervisor restart backoff. An abandoned lease can still require up to the existing five-minute lease lifetime; this does not make takeover immediate.

Why This Change Was Made

Use the existing bounded acquisition loop for foreign-host and unknown-owner conflicts too. Lease ownership, expiry, dead-owner checks, and storage remain unchanged; a live unexpired foreign lease cannot be reclaimed.

Evidence

  • Reproduced twice during real two-cluster deployment acceptance: replacement Gateway Pods repeatedly exited on the previous Pod's lease; one recovery exceeded the 420-second deployment test budget.
  • Three new regression cases fail before the change; 29 focused lease and integrity tests pass afterward. Tests cover release, bounded timeout with ownership preserved, natural expiry, and stale-owner release.
  • Changed-file cost at f9a43b733c9b: pnpm test src/infra/startup-migration-checkpoint.test.ts --maxWorkers=1 passed all 19 cases with 0 skips. Measured command wall time was 12.359 seconds on macOS with Node 24.19.0; Vitest reported 9.18 seconds including transform/setup. Hosted CI timing is unavailable because the test jobs were skipped for this draft.
  • Independent review found no actionable P0–P2 findings. Formatting, changed-file lint, production typecheck, and remaining selected guards pass.
  • Earlier full changed checks found two unrelated test type errors also reproduced on that unmodified base: assertReliabilityForcedExit is imported but not exported. No check is suppressed.
  • Installed candidate passed the real two-cluster PAT lifecycle test (556 seconds, 1 passed, 0 skipped): workspace RPC, replacement, Stop/Resume, credential rejection/recovery, real model shell execution with independently verified file contents, DP outage recovery, and cleanup in both clusters. All 7 observed Gateway Pods had zero restarts, with no observation errors.
  • The same run reproduced an abandoned lease from the previous Gateway Pod. Read-only SQLite observations confirmed the successor waited for the unchanged lease expiry, then became Ready about 7 seconds later without restarting. No lock deletion or clock adjustment was used.
  • An independent packaged-runtime check used two real container hostnames: the owner was killed, and the successor acquired after 299.4 seconds using the default five-minute lease. Temporary containers and their test volume were removed.
  • Further installed acceptance passed nine replacement cases: three cycles each of Harness-only, Gateway-only, and simultaneous replacement. Each used a fresh real model/tool file write, independent file verification, retained PVC identity, and an unchanged neighboring idle Agent. The first case completed its model call before the test log reader exceeded its 4 MiB buffer; that original result was independently reconciled without replay, then the remaining cases used streaming log scanning. Temporary Agent resources and test permissions were removed afterward.
  • Candidate provenance: OpenClaw ff8c752d plus this PR, OCE e06ff962 plus its deletion-retry fix, Codex 0.156.0, and the existing OCE read-only-paths bridge. This is selected PAT-path acceptance, not AWS or long-window qualification of this candidate.
  • Published-updater compatibility now also passed: the standard upgrade-survivor legacy-operator-state / auto-auth lane upgraded npm [email protected] to a package built from main 988be486 with the reviewed startup/catalog fixes and existing OCE read-only-paths bridge. The test seeded a real-clock, 120-second foreign-host startup lease immediately before candidate service start and invalidated only the derived plugin-index policy hash. Gateway configuration loading resumed after 122.013 seconds, 2.013 seconds after expiry; the original published updater returned success without a product timeout override. Authenticated Gateway probes, the mock-provider model turn, idempotent update, Doctor, and backup/rollback checks all passed (container exit 0). This is local published-package upgrade coverage, separate from AWS and natural 24-hour pairing acceptance.
  • The published v2026.9.4 updater already recognizes startup-lease waits and extends its normal restart watchdog. This compatibility result does not claim that every released updater has an unavoidable 60-second limit. The fixture's first attempt failed before update invocation because two mock-server source dependencies were missing; that failure was preserved, the exact-source dependencies were added, and the completed second attempt is the evidence above.

CI follow-up

The UI E2E run on 1e55e17e50b sampled the transcript before its ResizeObserver had committed the new scrollport size after a viewport change. 4bb3792d209 waits for the transcript dimensions to match its parent before measuring the footer. All original layout assertions and thresholds remain unchanged; production UI is unchanged. Changed-file lint, formatting, and independent review pass. Local browser replay was blocked by unavailable bundled Chromium and managed Chrome remote-debugging policy. Hosted CI on this exact head passed, including all UI and real-Gateway E2E shards and the required aggregate gate. The original failing native-plugin UI case ran in shard 4/9 this time and passed; all six tests in that file passed.

@clawsweeper

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

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 4:07 PM ET / 20:07 UTC (Revision 9).

ClawSweeper review

What this changes

Gateway startup retries lease conflicts from another host within the existing wait limit; the branch also expands lease regression tests and waits for transcript resizing in a Control UI end-to-end test helper.

Merge readiness

✅ Ready for maintainer review

Keep this PR open. Current main still exits on a foreign-host startup lease conflict, while the branch addresses that failure. The recorded deployment and upgrade runs support the fix, and this review found no concrete introduced defect.

Priority: P1
Reviewed head: 4bb3792d20960bd869e507c30087572d0c4001af

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The focused owner change has meaningful regression coverage and detailed deployment and upgrade observations, with no concrete patch defect found.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Gateway configuration preflight calls the changed SQLite lease owner. The captured PR body reports a real replacement Gateway waiting through prior-lease expiry and reaching Ready without restart, plus a successful published-updater upgrade with a seeded foreign-host lease. The UI helper changes test timing only; no stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Gateway configuration preflight calls the changed SQLite lease owner. The captured PR body reports a real replacement Gateway waiting through prior-lease expiry and reaching Ready without restart, plus a successful published-updater upgrade with a seeded foreign-host lease. The UI helper changes test timing only; no stored-data contract changes.
Evidence reviewed 9 items Introduced lease behavior: The pinned PR diff makes foreign-host conflicts eligible for the existing bounded acquisition retry; it leaves the lease key and ownership checks unchanged.
Current-main gap: Fetched main retries a lease conflict only when the recorded owner is on the same host, so it does not resolve the reported replacement-container case.
Production entry point: Gateway configuration preflight awaits lease acquisition before recovery or plugin-index persistence, then releases the lease in its finally block.
Findings None None.
Security None None.

How this fits together

Gateway configuration preflight acquires a lease in shared SQLite state before startup recovery and plugin-index writes. A replacement container must wait until the previous lease is released or expires before it can finish startup.

flowchart TD
  A[Gateway startup] --> B[Configuration preflight]
  B --> C[Shared SQLite lease]
  C --> D{Lease available?}
  D -- Yes --> E[Acquire lease and prepare state]
  D -- No --> F[Bounded wait and retry]
  F --> C
  E --> G[Gateway ready]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -7, Tests +61. Total +54 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 11 -7
Tests 2 112 51 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 116 62 +54

Review metrics

Metric Value Why it matters
Focused lease test cost 12.359 s wall; 19 cases; 0 skipped The PR records the changed suite's cost, which is below the repository's 30-second explanation threshold.

Technical review

Best possible solution:

Keep lease acquisition in the existing bounded startup path and preserve SQLite ownership fencing so replacement Gateways can proceed after the prior lease ends.

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

Yes. Current-main source excludes foreign-host conflicts from retry, and the PR records two real deployment failures; this read-only review did not rerun the containers.

Is this the best way to solve the issue?

Yes. Reusing the timed acquisition loop addresses the startup failure without changing lease storage, owner fencing, or configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3775359ab87d.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: A foreign-host startup lease caused repeated replacement Gateway exits in the reported real deployment.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Gateway configuration preflight calls the changed SQLite lease owner. The captured PR body reports a real replacement Gateway waiting through prior-lease expiry and reaching Ready without restart, plus a successful published-updater upgrade with a seeded foreign-host lease. The UI helper changes test timing only; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Gateway configuration preflight calls the changed SQLite lease owner. The captured PR body reports a real replacement Gateway waiting through prior-lease expiry and reaching Ready without restart, plus a successful published-updater upgrade with a seeded foreign-host lease. The UI helper changes test timing only; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: 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 (8 earlier review cycles)
  • reviewed 2026-09-28T07:58:47.186Z sha f9a43b7 :: blocked before merge. :: none
  • reviewed 2026-09-28T08:46:25.721Z sha f9a43b7 :: needs changes before merge. :: none
  • reviewed 2026-09-28T09:00:04.922Z sha f9a43b7 :: needs changes before merge. :: none
  • reviewed 2026-09-28T09:27:17.798Z sha f9a43b7 :: blocked before merge. :: none
  • reviewed 2026-09-28T13:38:51.720Z sha f9a43b7 :: needs changes before merge. :: none
  • reviewed 2026-09-28T18:08:57.527Z sha f9a43b7 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T18:37:46.698Z sha 1e55e17 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T19:21:01.289Z sha 4bb3792 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 28, 2026
@Kimiyu-186
Kimiyu-186 marked this pull request as ready for review September 28, 2026 18:03
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 28, 2026
@Kimiyu-186
Kimiyu-186 merged commit d64568e into main Sep 28, 2026
243 of 245 checks passed
@Kimiyu-186
Kimiyu-186 deleted the codex/startup-lease-cross-pod-wait branch September 28, 2026 20:12
steipete added a commit that referenced this pull request Sep 28, 2026
Use the exact helper postimage from d64568e (#160266). The canonical committed-size wait supersedes this branch's layout quiet-window variation while preserving every geometry assertion and viewport order.

Validation: canonical Linux native-plugin E2E six cases and exact-head CI pass; helper and layout-owner source bindings verified; formatting, diff checks, and independent P0-P2 review pass. Native cancellation production is unchanged.

Co-authored-by: Kimi Yu <[email protected]>
steipete added a commit that referenced this pull request Sep 29, 2026
* fix(subagents): await native Stop persistence

Move native cancellation reads and writes through the existing worker owners while retaining exact run, session, queue and source authority. Join claim publication, terminal settlement and cleanup, preserve earlier completion, and fence uncertain writes without replay.

Validated registered Stop with real SQLite, public Gateway create/turn/Stop/describe, native lifecycle and scheduler controls, all changed checks, archive E2E and the full build.

* fix(subagents): preserve optional snapshot owner shape

* test(subagents): await finite lifecycle settlement

* ci: consume canonical UI component type shard

Take the exact landed shard repair so the native Stop branch retains all compiler roots under the unchanged budget. No native cancellation source changes.

Receiving proof passes 35 routing cases, both UI type graphs, selected changed checks, and independent review. The original 721-root baseline failure remains attributed to main.

(cherry picked from commit 52ae7e3)

* test(agents): register native cancellation fixtures through real owner

Replace resident-only run seeding and no-op persistence with awaited canonical registration. Preserve owner, foreign-run, generation-replacement, and real ACP interrupt assertions.

* test(subagents): preserve canonical controller and abort fixtures

Keep real controller resolution in tool tests and register the orphaned child through real session and registry persistence. Preserve all original cancellation assertions and isolate the running-child wait transport.

* test(agents): match restored requester batch wake messages

Update the held model fixture to recognize the batch-scoped completion prompt introduced by #158642. Preserve the two-active, third-queued, ordinary-probe, runtime-budget, and cleanup assertions.

Verified on the exact native cancellation CI merge: the original four-case order reproduced three passes and the stale-marker failure, then all four passed with this single-line correction. Owning changed checks and independent review passed.

* test(gateway): keep abort append faults connection-local

* fix(subagents): retire superseded timing reads without false warnings

* fix(subagents): retain finite completion reconciliation work

* test(gateway): preserve real descendant abort fixture custody

* test(ui): await settled native composer layout

Wait for the existing layout-settled contract after viewport changes before measuring native composer footer clearance. ResizeObserver updates transcript width asynchronously while the footer follows its container immediately. Preserve every geometry formula, threshold, and variant order.

Validation: six native-plugin UI cases, UI E2E types, scoped lint, formatting, and isolated review passed. Linux baseline passed; candidate remote attempts stopped during source synchronization before test execution.

* test(subagents): use real abort persistence and publication barriers

* fix(agents): fence collector adoption during cancellation

Pending Swarm collectors can receive an aborted Gateway response while Stop is
still persisting cancellation. Begin the existing kill claim immediately after
native admission drains, then refuse launch adoption while its write is pending.
This preserves cancellation publication before provisional-session cleanup and
retains the current caller, session, generation, and database authority checks.

Cover queued and already-started collectors whose acknowledgment races a pending
kill write. Preserve the original three Gateway preaccept Stop cases and their
publication, rollback, and timeout assertions.

Validation: causal regression RED/GREEN; 273 focused and sibling tests; original
18-file shard with 264 tests; full check-changed including all 26 core test type
graphs; independent P2 review with no actionable findings.

* test(subagents): join canonical registry completion before assertions

Reuse existing finite lifecycle/root-work settlement in collector-yield and completion-before-kill fixtures. Preserve their original assertions, order, and timeouts.

Validation: original-order regression diagnosis; twenty standalone and two original 33-file replays passed; unchanged completion siblings reuse the qualified timing shard receipt; owning changed checks and independent component/combined P2 reviews passed. A third stress replay was interrupted by provider shutdown and is not counted as a test result. Current-head hosted CI remains required.

* fix(tooling): stop reporting lazy imports as duplicate exports (#160558)

Recognize transparent literal dynamic-import forwarders in the shared export-collision guard while preserving member, argument and body restrictions. Both variable and inline forwarding paths use the same predicate; runtime behavior is unchanged.

Validation: original guard reproduces nine repository false positives and fails all three new positive fixtures. Candidate passes the repository guard and all 54 fixtures, including six new rejection cases, under a 7 GiB process-tree limit with swap disabled. Script types and formatting pass. Independent and exact-head ClawSweeper reviews identify no actionable findings.
(cherry picked from commit f010fc0)

* fix(agents): join registry writes before follow-up adoption

A child follow-up can reach source replacement while its ended-hook stamp
is still in the registry worker. Join the existing write owner before the
exact durable comparison, retaining uncertain-write errors and rechecking
the selected source and admitted caller after every await.

Carry sessions.send session authorization through the same boundary. Cover
held real writes, caller retirement, and source replacement.

* test(ui): consume canonical composer readiness check

Use the exact helper postimage from d64568e (#160266). The canonical committed-size wait supersedes this branch's layout quiet-window variation while preserving every geometry assertion and viewport order.

Validation: canonical Linux native-plugin E2E six cases and exact-head CI pass; helper and layout-owner source bindings verified; formatting, diff checks, and independent P0-P2 review pass. Native cancellation production is unchanged.

Co-authored-by: Kimi Yu <[email protected]>

* test(codex): separate protocol timing from startup cost

Keep protocol fixtures on their existing controlled deadline clock and measure unattended denial from the review-required hook to the actual decline. Preserve model, transport, history and approval assertions, the existing bounds, and all production clock and executable-integrity behavior.

Validation: identical latency controls change four failures to four passes; the original six-file envelope passes 34 tests, with eight deadline and three no-approval-request siblings. Selected changed checks and independent P0-P2 review pass. The original Unix 120-second stall was not independently reproduced; current-head CI remains required.

* refactor(config): align canonical worker result types

Take the private result-alias cleanup from b4d93d2
(#159588) without importing unrelated main changes. Keep the canonical
input declaration position while preserving the native selector, request
fields, and distributive prepared-input union.

The emitted runtime is unchanged. Core and worker-owner test types,
scoped lint, formatting, and independent review pass; the qualified native
runtime proof remains applicable.

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Kimi Yu <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…aw#160203)

* fix(subagents): await native Stop persistence

Move native cancellation reads and writes through the existing worker owners while retaining exact run, session, queue and source authority. Join claim publication, terminal settlement and cleanup, preserve earlier completion, and fence uncertain writes without replay.

Validated registered Stop with real SQLite, public Gateway create/turn/Stop/describe, native lifecycle and scheduler controls, all changed checks, archive E2E and the full build.

* fix(subagents): preserve optional snapshot owner shape

* test(subagents): await finite lifecycle settlement

* ci: consume canonical UI component type shard

Take the exact landed shard repair so the native Stop branch retains all compiler roots under the unchanged budget. No native cancellation source changes.

Receiving proof passes 35 routing cases, both UI type graphs, selected changed checks, and independent review. The original 721-root baseline failure remains attributed to main.

(cherry picked from commit e7f5a85)

* test(agents): register native cancellation fixtures through real owner

Replace resident-only run seeding and no-op persistence with awaited canonical registration. Preserve owner, foreign-run, generation-replacement, and real ACP interrupt assertions.

* test(subagents): preserve canonical controller and abort fixtures

Keep real controller resolution in tool tests and register the orphaned child through real session and registry persistence. Preserve all original cancellation assertions and isolate the running-child wait transport.

* test(agents): match restored requester batch wake messages

Update the held model fixture to recognize the batch-scoped completion prompt introduced by openclaw#158642. Preserve the two-active, third-queued, ordinary-probe, runtime-budget, and cleanup assertions.

Verified on the exact native cancellation CI merge: the original four-case order reproduced three passes and the stale-marker failure, then all four passed with this single-line correction. Owning changed checks and independent review passed.

* test(gateway): keep abort append faults connection-local

* fix(subagents): retire superseded timing reads without false warnings

* fix(subagents): retain finite completion reconciliation work

* test(gateway): preserve real descendant abort fixture custody

* test(ui): await settled native composer layout

Wait for the existing layout-settled contract after viewport changes before measuring native composer footer clearance. ResizeObserver updates transcript width asynchronously while the footer follows its container immediately. Preserve every geometry formula, threshold, and variant order.

Validation: six native-plugin UI cases, UI E2E types, scoped lint, formatting, and isolated review passed. Linux baseline passed; candidate remote attempts stopped during source synchronization before test execution.

* test(subagents): use real abort persistence and publication barriers

* fix(agents): fence collector adoption during cancellation

Pending Swarm collectors can receive an aborted Gateway response while Stop is
still persisting cancellation. Begin the existing kill claim immediately after
native admission drains, then refuse launch adoption while its write is pending.
This preserves cancellation publication before provisional-session cleanup and
retains the current caller, session, generation, and database authority checks.

Cover queued and already-started collectors whose acknowledgment races a pending
kill write. Preserve the original three Gateway preaccept Stop cases and their
publication, rollback, and timeout assertions.

Validation: causal regression RED/GREEN; 273 focused and sibling tests; original
18-file shard with 264 tests; full check-changed including all 26 core test type
graphs; independent P2 review with no actionable findings.

* test(subagents): join canonical registry completion before assertions

Reuse existing finite lifecycle/root-work settlement in collector-yield and completion-before-kill fixtures. Preserve their original assertions, order, and timeouts.

Validation: original-order regression diagnosis; twenty standalone and two original 33-file replays passed; unchanged completion siblings reuse the qualified timing shard receipt; owning changed checks and independent component/combined P2 reviews passed. A third stress replay was interrupted by provider shutdown and is not counted as a test result. Current-head hosted CI remains required.

* fix(tooling): stop reporting lazy imports as duplicate exports (openclaw#160558)

Recognize transparent literal dynamic-import forwarders in the shared export-collision guard while preserving member, argument and body restrictions. Both variable and inline forwarding paths use the same predicate; runtime behavior is unchanged.

Validation: original guard reproduces nine repository false positives and fails all three new positive fixtures. Candidate passes the repository guard and all 54 fixtures, including six new rejection cases, under a 7 GiB process-tree limit with swap disabled. Script types and formatting pass. Independent and exact-head ClawSweeper reviews identify no actionable findings.
(cherry picked from commit 34f3dab)

* fix(agents): join registry writes before follow-up adoption

A child follow-up can reach source replacement while its ended-hook stamp
is still in the registry worker. Join the existing write owner before the
exact durable comparison, retaining uncertain-write errors and rechecking
the selected source and admitted caller after every await.

Carry sessions.send session authorization through the same boundary. Cover
held real writes, caller retirement, and source replacement.

* test(ui): consume canonical composer readiness check

Use the exact helper postimage from 47c33fe (openclaw#160266). The canonical committed-size wait supersedes this branch's layout quiet-window variation while preserving every geometry assertion and viewport order.

Validation: canonical Linux native-plugin E2E six cases and exact-head CI pass; helper and layout-owner source bindings verified; formatting, diff checks, and independent P0-P2 review pass. Native cancellation production is unchanged.

Co-authored-by: Kimi Yu <[email protected]>

* test(codex): separate protocol timing from startup cost

Keep protocol fixtures on their existing controlled deadline clock and measure unattended denial from the review-required hook to the actual decline. Preserve model, transport, history and approval assertions, the existing bounds, and all production clock and executable-integrity behavior.

Validation: identical latency controls change four failures to four passes; the original six-file envelope passes 34 tests, with eight deadline and three no-approval-request siblings. Selected changed checks and independent P0-P2 review pass. The original Unix 120-second stall was not independently reproduced; current-head CI remains required.

* refactor(config): align canonical worker result types

Take the private result-alias cleanup from 886db07
(openclaw#159588) without importing unrelated main changes. Keep the canonical
input declaration position while preserving the native selector, request
fields, and distributive prepared-input union.

The emitted runtime is unchanged. Core and worker-owner test types,
scoped lint, formatting, and independent review pass; the qualified native
runtime proof remains applicable.

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Kimi Yu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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.

1 participant