Repository navigation
perf(worktrees): run GC in background and enforce capacity - #164758
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 real behavior proof before merge. Reviewed October 4, 2026, 4:34 AM ET / 08:34 UTC (Revision 8). ClawSweeper reviewWhat this changesManaged worktrees gain background cleanup receipts, a configurable global capacity limit with eviction, worker-based inspection and snapshot persistence, and updated CLI, UI, and test integration. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 12 items remain The performance work remains useful, but all three prior P1 blockers persist. The latest Android test correction leaves the affected production paths unchanged. Priority: P1 Review scores
Verification
How this fits togetherManaged worktrees provide isolated Git checkouts for agents and operators. Creation, restoration, and Gateway maintenance consume registry and ownership facts before allocating or removing checkout files. flowchart TD
A[Agent and operator requests] --> B[Worktree service]
C[Registry and live ownership] --> B
D[Configured capacity] --> B
B --> E[Capacity and cleanup decisions]
E --> F[Git and snapshot workers]
F --> G[Allocated or removed checkouts]
E --> H[Background progress receipts]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The new capacity path lets write-scoped creation reach administrator-only destructive effects. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one background maintenance owner while preserving deletion authorization, session custody, negotiated RPC behavior, and a proven upgrade path for existing fleets. Do we have a high-confidence way to reproduce the issue? Yes, source establishes focused triggers: write-only creation at capacity, cleanup during session admission before run-lease acquisition, and a legacy GC request expecting completion. These paths were inspected but not executed in this read-only review. Is this the best way to solve the issue? No, the background owner is a useful direction, but it must retain the existing authorization and session owners and negotiate the changed RPC semantics. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9c66d4c9a39b. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
Replace the soft 100-tree cleanup target with a configurable global limit of 4096. Evict merged and squashed branches first, then idle trees by age including unsaved data, while retaining live leases and source storage custody. Return GC receipts through one maintenance owner, move filesystem inspection and snapshot work to workers, and skip unchanged protected trees. Document the eviction policy and CLI progress contract. Validated on Blacksmith Testbox and a synthetic Linux rig with 800 and 4096 worktrees; focused tests, affected native checks, and independent review pass. Cold source-runner activity and the inherited UI startup budget remain documented limitations.
Keep synthetic inventory and worker-free timer fixtures isolated under the new mock-export policy, and prune the superseded exact factory allowance. Validated on Blacksmith Testbox with 14 focused cases and the complete 39-check changed gate. Independent review found no actionable P0/P1 issues.
Include the new worker/runtime modules in the native PR wrapper inventory so provisioning can load its full dependency closure. Exercise queued cleanup, progress readback, partial outcomes, and lost replies through the CLI owner fixture. Use the existing SQLite bound-set helper for current removal claims. The 109 focused tests and Kysely guard pass on Blacksmith Testbox. Independent review found no actionable issues.
Join the private input recorder's persistence before inspecting its durable timeout receipt, while keeping raw execution and terminal projection pending. Use the harness's retained listener allocation instead of selecting and releasing an OS port before reserving it again. Preserve the existing safety assertions.
548e65b to
1672207
Compare
This comment has been minimized.
This comment has been minimized.
Make Room-backed branch fixture startup participate in the existing Compose idling owner instead of racing a one-second wall-clock poll. Preserve the branch count, outbox restoration, loading, and pending-run requirements. Report controller and ViewModel readiness if setup cannot settle. The original CI failure occurred before the queued-refresh ABA action; its artifact did not identify which readiness predicate remained false.
128 upstream commits, including background worktree GC with a capacity limit (openclaw#164758), which adds a core config field, so the core count goes from 2501 to 2502 and the core hash changes. Upstream also changed six Feishu files, none of them files this branch changes. Two generated conflicts, docs/.generated/config-baseline.counts.json and config-baseline.sha256, regenerated from this merge rather than hand-merged. build:docker ran in a separate detached checkout of this commit. Counts core 2502, channel 3788 and plugin 4468. The core and plugin hashes match upstream/main and the channel hash stays this branch's, as predicted. The three generated-file checks pass there. Feishu: 102 files and 1521 tests in the extension project, 17 files and 241 tests in the database-workers project, all passing. The forwarder test and the routing guards pass, 499 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
Integrate main background GC and capacity work (#164758), retaining Git-worker snapshot capture and the existing provisioned-snapshot command. Reuse the run-end transaction, lease, receipt, and unknown-outcome owner; await eviction claims and settlement with whole-batch custody checks. Preserve busy-run details, rollback ownership, and accepted shutdown work. Stored formats, retention, and released worktree SDK signatures remain unchanged.
…164758) * perf(worktrees): run bounded cleanup in background and enforce capacity Replace the soft 100-tree cleanup target with a configurable global limit of 4096. Evict merged and squashed branches first, then idle trees by age including unsaved data, while retaining live leases and source storage custody. Return GC receipts through one maintenance owner, move filesystem inspection and snapshot work to workers, and skip unchanged protected trees. Document the eviction policy and CLI progress contract. Validated on Blacksmith Testbox and a synthetic Linux rig with 800 and 4096 worktrees; focused tests, affected native checks, and independent review pass. Cold source-runner activity and the inherited UI startup budget remain documented limitations. * test(worktrees): document isolated maintenance mocks Keep synthetic inventory and worker-free timer fixtures isolated under the new mock-export policy, and prune the superseded exact factory allowance. Validated on Blacksmith Testbox with 14 focused cases and the complete 39-check changed gate. Independent review found no actionable P0/P1 issues. * fix(worktrees): complete GC CLI and wrapper integration Include the new worker/runtime modules in the native PR wrapper inventory so provisioning can load its full dependency closure. Exercise queued cleanup, progress readback, partial outcomes, and lost replies through the CLI owner fixture. Use the existing SQLite bound-set helper for current removal claims. The 109 focused tests and Kysely guard pass on Blacksmith Testbox. Independent review found no actionable issues. * test(gateway): await receipts and retain listener ownership Join the private input recorder's persistence before inspecting its durable timeout receipt, while keeping raw execution and terminal projection pending. Use the harness's retained listener allocation instead of selecting and releasing an OS port before reserving it again. Preserve the existing safety assertions. * test(android): join branch fixture readiness with Compose idling Make Room-backed branch fixture startup participate in the existing Compose idling owner instead of racing a one-second wall-clock poll. Preserve the branch count, outbox restoration, loading, and pending-run requirements. Report controller and ViewModel readiness if setup cannot settle. The original CI failure occurred before the queued-refresh ABA action; its artifact did not identify which readiness predicate remained false.
What Problem This Solves
Large managed-worktree fleets repeatedly rescan protected checkouts, block GC requests for an entire sweep, and exceed the old 100-worktree cleanup target indefinitely.
User Impact
One global
worktreeMaxCountnow applies across agents and repositories, defaulting to 4096. Eviction prefers merged branches, then detected squashes, then idle worktrees by age including unsaved data. Snapshots are best effort: snapshot failure does not prevent cap eviction. Live run leases refuse eviction and creation with a message naming the cap, live owners, and setting. Measured disk-space admission remains an independent guard.worktrees.gcnow returns an immediate background receipt. RPC clients must polljobIdand inspectstate;openclaw worktrees gc --job <id>and the bundled Control UI use the same owner. Only the latest receipt is retained; restarting the Gateway discards it.--retry-deferredforces fresh inspection of remembered deferrals. Offline CLI cleanup still runs to completion under exclusive local ownership.Recommended operator setting for the larger fleet: top-level
worktreeMaxCount: 4096, also the default. No live deployment or configuration was changed. Lowering this setting can purge existing idle checkouts and unsaved data.Why This Change Was Made
Creation, restoration, and background eviction share the existing allocation lease and atomic removal claims. The maintenance owner schedules eight-tree/five-second work batches, yields between them, exposes progress, and drains on shutdown. Filesystem inspection, hashing, and Git-result processing run in the Git worker; provisioned snapshot persistence runs in the SQLite worker. The host retains Git process launches, cancellation, and live authority, which remain part of measured main-thread activity. Registry revisions and checkout fingerprints invalidate remembered deferrals without rescanning unchanged trees after unrelated ref repacks.
The old operator-visible limit was
WORKTREE_CLEANUP_TARGET = 100, returned byresolveWorktreeCleanupLimits()inservice.ts. This removes that soft target, the unused aggregate byte limit, blocking RPC/health paths, and duplicate host-thread snapshot implementation. Native repository/HEAD inventory is prepared once per repository instead of spawning Git for every checkout.Destructive eviction preserves source repositories and storage used by other managed checkouts, including borrowed objects from
git clone --shared. Incoming creation/restoration holds source custody. A fresh, bounded worker census covers checkout files, native worktree administration directories, private/common metadata, and recursive object alternates; it repeats after awaited admission. It preserves both canonical storage and the lookup symlinks Git needs to reach it. Incomplete source object inspection refuses purge. Physical deletion targets are revalidated before purge.The requested non-test/docs stat is +2856 / -666, net +2190, across 59 files. The requested path filter includes the Android Kotlin test correction (+14 net), six wrapper source-inventory entries, and one obsolete test-baseline deletion; runtime production growth remains +2171 lines. Growth is required by the newly requested hard-cap eviction policy, live/source custody during destructive operations, background receipt lifecycle, and worker snapshot persistence. Superseded synchronous implementations are removed.
Evidence
Current head is
5f4657b266acdf01111fab8db52d3d29e10ce710, treed1dd5c047368d1c9082984a00e8c848f855b52c3. The worktree commits were rebased onto5f5125bcb6a975351b6e2369e56397265582ceceto resolve an upstream test conflict;git range-diffconfirmed the first three commits stayed patch-identical. Main independently supplied the private-receipt settlement fix in #164490, so the duplicate was dropped while retaining the listener correction. The latest commit changes only Android test-fixture synchronization after the preceding head's independent CI failure. No upstream fix was copied into this lane. Final scope is 95 files; runtime production scope and LOC are unchanged. All changes have independent review and remote proof on their recorded revisions; all Testbox leases are stopped. Exact-head CI run 37188985875 passed: 121 successful jobs, 12 skipped, no failures, including Android Play and the aggregate gate. Merged as3b16db73c0b5209aad2ee7c3fb5ddfb12fb208f9after this successful run. Worktree/startup integration passed 118 cases on preceding head16722076with identical production bytes; the Android fixed replay and staged gate verified the current tree. CI run 37187319720 on16722076completed with 121 successful jobs, 12 skipped, one Android Play failure, and its aggregate-gate failure. The preceding CI run 37181792034 completed with 119 successful jobs and two failing Gateway tests (plus the aggregate gate):test-helpers.listener.test.tshitEADDRINUSE, and the abandoned-timeout case inserver.private-completion.test.tsread an absent completion row. The reviewed test-only corrections addressed those ordering assumptions without changing production code or weakening assertions; only the listener correction remains in this PR after the rebase.The Android failure in that run was
ChatComposerLayoutTest.branchOpeningRejectsQueuedRefreshAcrossAuthoritativeAbaatshowBranchChat:3009: a default 1000 ms readiness wait expired before request interception or the queued-refresh/ABA action. The tested merge was441c4589aaa482fa7187e22b689eea5a767deef6(mainc071d238plus lane16722076). Its Android test/controller/ViewModel/runtime/screenshot-fixture inputs are unchanged by the worktree lane, and the fixture handles requests in-process. The original artifact reports 112/113 passing class cases but does not expose which readiness condition stayed false. This is attributed to the independent Android fixture; the exact original timing cause remains unknown.The test-only follow-up makes the same three readiness conditions participate in Compose's existing
IdlingResourcemechanism, matching the class's branch-switch helpers. It preserves every branch/ABA assertion, unregisters infinally, and adds controller/ViewModel readiness diagnostics. It adds no timeout, retry, production seam, or production behavior. Independent review completed with no P0/P1 findings.Blacksmith Testbox
tbx_01m42zqy5jawv4d7apajvc4ryv(blacksmith-testbox,openclaw-check) executed the complete 113-case class once on unchanged source and once with only the reviewed Kotlin helper edit. Both passed: baseline class 27.403 s / command 57.144 s; fixed class 26.839 s / command 59.335 s. Baseline passing is a non-reproduction, not causal proof. The pinned toolchain matches CI's Temurin 21.0.12.1+1, Android platform 37.0, and build tools 36.0.0. The native policy selected four forks on Testbox versus two in CI, with one active processor per test JVM; this single class stays in one worker. No worker override was introduced. A first secondary replay omittedCI_RUNNER_BACKEND=blacksmith; it passed but is excluded from this comparison. A later source-identity preflight stopped before tests because Git abbreviated blob IDs differently (12 local / 8 remote); complete file/blob hashes proved identical source before continuing with canonical checks. Both authoritative XML case orders exactly match the original CI class. The native staged gate,node scripts/check-changed.mjs --staged, passed in 33.996 s total, including Android app/benchmark/Wear/shared Kotlin lint (40 Gradle tasks, 21 s). Final staged treed1dd5c047368d1c9082984a00e8c848f855b52c3and complete fixture blob were verified unchanged.Fresh rebased-head proof on Blacksmith Testbox
tbx_01m42yp0q1w3gqsvf88vbtmbk3(blacksmith-testbox,openclaw-check, Node 24.19.0 / pnpm 12.5.1) passed 118 tests across 12 files, 239.99 s runner / 244.355 s Crabbox total. This covers current shared-state schema admission, allocation/capacity/eviction, cached deferrals, maintenance shutdown, and real Gateway agent-database startup/lifetime. All 108 pinned source hashes matched before and after; the complete tracked tree stayed clean. The lease is stopped. The unchanged protected-tree pass still performs zero repeat Git scans; 16 live leases cause zero writes or checkout inspections. No new static gate was duplicated for the patch-identical rebase; current-head CI owns that check.The first complete CI run, 37178977398, tested head
976f8e0bmerged with main217efe0a. It exposed missing wrapper source-inventory entries, stale CLI GC fixtures, and an inline typed SQL expression rejected by the architecture guard. The correction uses the existingsqliteStringSetboundary, includes all six new transitive modules in the wrapper inventory, and proves queued receipts, completion polling, partial failures, and lost-reply custody through the CLI fixture. Its independent review is clean, with no findings.Correction proof on Blacksmith Testbox
tbx_01m42nj0anvkgrewd6ytdgs7ge(blacksmith-testbox,openclaw-check) passed 109 tests across six files, with one existing skip, in 206.83 s runner / 216.053 s total. All 16 native provisioning cases and 20 other wrapper closure/bootstrap cases passed, confirming that the missing inventory caused the private-store preload failures. Both formerly failing CLI files and the removal-claim registry regression passed.pnpm lint:kyselypassed in 32.781 s total. All 93 candidate file hashes match tree5f221061. The native changed-file gate against976f8e0bpassed all 35 checks in 1387.367 s (23m7s), including all 27 test type graphs, core types, lint, mock exports, and storage guards. The one-time frozen-lockfile install also passed (11.7 s pnpm / 15.947 s total).The historical two-test follow-up awaited the real private input recorder's settlement before reading its receipt and removed the listener fixture's released-port override in favor of the existing retained reservation owner. All producer, terminal-write, listener, and claim assertions remain. Independent review of tree
2e7ba9dfis clean. On Blacksmith Testboxtbx_01m42x6gpx4x1wqk204pbjtzgq(blacksmith-testbox,openclaw-check, Node 24.19.0, pnpm 12.5.1), the fixed 147 cases passed once in their original 8-file and 11-file CI orders. The unchanged baseline also passed once: these are non-reproductions, not causal proof that the original failures were repaired. The source analysis, retained safety assertions, and original CI failures remain the evidence for the corrections. The precise listener contention phase and CI's whole-host pressure were not reproduced.Runtime proof used exact CI merge
6bb581b637fb35d039a35461e7033f2175fc8370(maind60b0950plus prior lane head5e72dd92), first unchanged and then with only the two reviewed test edits. This preserves CI's scheduler context, which differs from the branch base. It is distinct from the exact-branch static proof on tree2e7ba9df. All 120 source hashes, exact changed-file membership, and actual file execution orders were verified. Counts below overlap and are not 294 distinct tests; timing variation is not a performance comparison.An initial replay-harness attempt ran zero tests because Vitest 5 rejected a CLI sequencer path as a constructor. It was corrected using the repository's demonstrated temporary config-wrapper pattern, overriding only sequencing with the actual class. The same wrappers, one worker, and unchanged suite settings were used for all four replays. The first lease disappeared after roughly 71 minutes queued without running a command; its stop was reconciled before allocating the replacement. The replacement's frozen install passed once (7 s pnpm / 11.036 s total), final source verification passed, and its stop completed successfully.
After Testbox had queued for more than 20 minutes, the authorized Linux rig ran
node scripts/check-changed.mjs --stagedon exact branch candidate2e7ba9df(base5e72dd92plus only the two reviewed test edits), with Node 26.8.1, pnpm 12.5.1,nice -n 10,ionice -c3, and task-localTMPDIR. The native gate exited 0; its log spans 06:41–06:52 UTC, and the complete source tree was verified unchanged afterward. The supplied helper retains the last 80 output lines, so only its reported timings are listed here:exit=02e7ba9df, no unstaged diffThree earlier CI failures were inherited and present in fetched main
39b4bdbb:session-progress-refresh.e2e.test.tsexpected a retired animation name;mcp-app-bridge.cursor.test.tspassed a removed boolean argument; and the native declaration fixture importedformat-duration-internal.jswhile copying only the.tssource. The two UI mismatches were introduced by73149b26822a; the formatter import was introduced by4fa690195797. Those failures did not recur in the later CI merge with maind60b0950. The implicated source and test blobs are unchanged by this PR. No upstream fix was copied into the lane, and no baseline, assertion, or gate was relaxed.Independent Codex review completed with no actionable P0/P1 findings across both passes on tree
35629b2e. The branch was then rebased without conflicts onto8a0b0c458bbdac520a8f99b4735144722f698be7to include current allocation-failure recovery.git range-diffreports the patch unchanged (=), with the same 89-file scope. That reviewed head was976f8e0bff8bee191550c632de3bd83cdbe61177(tree099d05cb). Its test-only follow-up also received a clean independent review; production behavior and assertions were unchanged. The five-file CI correction above received another clean independent review on tree5f221061.Post-rebase proof on fresh Blacksmith Testbox
tbx_01m42hxy14n6e3ke50ry0ar0qjpassed 103 distinct tests: 89 capacity/acceleration/eviction/restoration cases, including all new-main allocation-recovery cases (142.41 s runner / 146.378 s total), plus 14 isolated-policy/telemetry cases (12.35 s runner). The complete native changed-file gate passed all 39 checks in 1450.457 s (24m10s): all 27 test type graphs, production/UI types, dead exports, lint, docs, configuration metadata, and ratchets. The new mock policy is satisfied by documented fixture isolation; its generated baseline shrank 10858 → 10857 with no additions. All listed Testbox leases used providerblacksmith-testbox, profileopenclaw-check, and native source sync. All 90 final source hashes were verified.The matched Linux rig uses 800 real linked worktrees on ext4: 168 nested repositories, 232 moved branches, 364 live leases, and 36 manual checkouts. Base:
2df2d8455db0bec1488ccfe8790b093f90362a4b. These are synthetic source-owner/RPC-handler measurements, not a live deployment or full dist-Gateway stress test. Main-thread active time is event-loop active wall time, not CPU time. The rig samples RSS every 10 ms and polls/clones background receipts every 20 ms; the cold pass includes first cleanup-worker/source-loader startup. Observer and shared-host scheduling costs were not separated.The zero-purge measurement above uses measured pre-rebase tree
35629b2e. Repeated background completion takes 102,312.143 ms. About 100 seconds of intentional batch pauses dominate completion. Repeated main-thread activity falls 85.2%; cold total activity and peak RSS increase, and maximum delay does not improve. Delay percentiles include the pauses. These are single-run/shared-host measurements.Measured pre-rebase tree
35629b2euses the real create/removal owners. Both caps hold and dirty snapshots survive:Source-loader startup was warmed on another repository. The cap fixtures share a source commit, and the 4096 cell reused an immutable classification pair from the 800 cell; a cold fleet of distinct unmerged branches was not measured. Before the inventory cutover this implementation took 23.053/114.663 s with 903/4610 launches. This compares two implementations of the new cap, which parent main did not enforce. Timings are single-run/shared-host evidence. No dependency-inspection budget refusal occurred.
Pre-rebase owner proof on tree
35629b2eran on Blacksmith Testbox (blacksmith-testbox, profileopenclaw-check), leasetbx_01m42ebr9h3etgwyyb64qq96hg: 94/94 tests across seven files, 92.56 s runner / 98.026 s total. This includes all 27 native reader cases plus eviction, source preservation/restoration, cap, and GC cache behavior. The fixture still uses five cleanup Git launches for a 17-tree admission, zero Git rescans on an unchanged cleanup, and zero writes/checkout inspections for 16 live leases.The four final source-completeness/alias regressions passed (23.02 s runner / 35.850 s total). Isolated prior-code substitutions failed at the intended assertions: both oversized-source purges wrongly succeeded (18.20 s / 22.173 s), and both alias cases lost required lookup paths (23.35 s / 28.146 s). Earlier controls independently reproduced native-administration deletion, moved source/deletion targets, shared-clone donor destruction, per-tree Git launch overhead, expired inspection budgets, and unnecessary rescans after unrelated ref packing. Candidate files and all 89 hashes were restored after negative controls.
Unchanged proof is reused with its original revision: the preceding 11-file retirement/exact-state/lifecycle suite passed 158/158 (173.15 s runner); the initial implementation passed 337 distinct cases across 21 files on lease
tbx_01m425svvf5cw8hrngv0803fsx. Later Git/parser and cap/restore/lifecycle runs passed 99 and 105 cases ontbx_01m429n7jhb31xg81wn18k7rcq. Counts overlap and are not additive. Runner seconds include compilation; independent per-file process startup and future GitHub CI seconds were not separately measured.The pre-correction complete changed gate ran on Testbox with its exact base and candidate source: core types 44.21 s, all 27 test type graphs 1009.22 s, UI types 35.71 s, dead exports 64.66 s, core lint 32.80 s, and script lint 22.92 s. All 39 checks passed; the later correction passed its 35 selected checks as recorded above. Earlier staged gates ran on the authorized Linux rig after prolonged admission queues. No tests, types, or builds ran on the constrained Mac.
Protocol checks passed against the measurement base, with the protocol inputs unchanged since that proof.
pnpm buildpassed on Testbox in 491.515 s before later internal worker fixes, including all 151 SDK subpaths and UI; it is not an exact-final-tree build.Earlier inherited UI-budget failure on base
2df2d845(the final native gate did not select the bundle-size check): the native UI startup budget check measured exact base 374,444 B, candidate 374,445 B, against an unchanged 373,454 B budget. Both use eight startup requests and 1,211,163 raw bytes; CSS remains 50,756 B. No threshold or baseline changed. UI changes preserve appearance and adapt GC polling behavior; eight focused polling tests pass.Ordered Gateway replay commands (same baseline and fixed sequences)
Temporary wrappers retain the original Gateway core/server configs and replace only the sequencer with a class that checks exact membership and imposes the following file order. Each command ran with
CI=1,NODE_OPTIONS=--max-old-space-size=8192, andtimeout --signal=TERM --kill-after=30s 600s.Other affected test and type commands
pnpm install --frozen-lockfile node scripts/run-vitest.mjs \ src/cli/worktrees-cli.test.ts \ src/cli/local-state-owner.process.test.ts \ src/agents/worktrees/registry.test.ts \ test/scripts/pr-worktree-provision.test.ts \ test/scripts/eager-import-closure.test.ts \ test/scripts/pr-wrapper-source-closure.test.ts \ --maxWorkers=1 pnpm lint:kysely env CI=1 node scripts/check-changed.mjs --base 976f8e0bff8bee191550c632de3bd83cdbe61177 --timed node scripts/run-vitest.mjs \ src/infra/git-root.test.ts \ src/agents/worktrees/eviction.runtime.test.ts \ src/agents/worktrees/service.eviction.test.ts \ src/agents/worktrees/service.eviction-nesting.test.ts \ src/agents/worktrees/service.gc-performance.test.ts \ src/agents/worktrees/service.gc-maintenance.test.ts \ src/agents/worktrees/service.restore-source.test.ts \ --maxWorkers=1 env CI=1 node scripts/check-changed.mjs --base 8a0b0c458bbdac520a8f99b4735144722f698be7 --timed pnpm tsgo:core node scripts/run-tsgo-core-test-shards.mjs --ci-graphs-json '["core-test-agents-tools","core-test-infra"]'Rebased-head integration command
Android fixture proof commands
Executed with the pinned CI toolchain and the native
CI_RUNNER_BACKEND=blacksmithpolicy, fromapps/android; the test task executed rather than reusing cached results:./gradlew --no-daemon --build-cache --init-script "$OPENCLAW_ROBOLECTRIC_INIT" \ :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.chat.ChatComposerLayoutTestFrom repository root, with only the reviewed Kotlin file staged: