Repository navigation
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
November 7, 2026 14:27
Contributor
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
deleted the
steipete/perf-micro-idle-cleanup-overlimit-result-retry-loop-20260919
branch
November 7, 2026 14:39
steipete
added a commit
that referenced
this pull request
Nov 7, 2026
* fix: keep ignored build outputs out of worker results Apply standard Git exclusions at local and remote result capture while preserving tracked source, admitted paths, and accepted custody. Reuse the same capture owner during overflow recovery. Keep the result byte cap and recovery behavior from #194475 and #194642 unchanged. * fix(workspaces): retain ignored artifacts and break capture cycle * fix(workspaces): select capture scope at the caller * fix(workspaces): preserve staged-input capture eligibility
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 8, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 8, 2026
* fix: keep ignored build outputs out of worker results Apply standard Git exclusions at local and remote result capture while preserving tracked source, admitted paths, and accepted custody. Reuse the same capture owner during overflow recovery. Keep the result byte cap and recovery behavior from openclaw#194475 and openclaw#194642 unchanged. * fix(workspaces): retain ignored artifacts and break capture cycle * fix(workspaces): select capture scope at the caller * fix(workspaces): preserve staged-input capture eligibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #194475.
What Problem This Solves
Fixes repeated failed idle cleanup of the same oversized workspace result after the cleanup backoff expires.
User Impact
Operators get a durable cleanup deferral with the reserved result reference, retained guest-file location, and recovery instructions. Reduce and checkpoint the change, or recover it manually, then retry cleanup. The 768 MiB result cap, saved refs, and guest files remain intact. No configuration, schema, or retention change.
Why This Change Was Made
The existing checkpoint quarantine already prevents re-staging and applying a rejected result. Idle GC did not consume that terminal fact: it kept retrying removal, inspecting the checkout, and reporting a generic failure. GC now recognizes the rejection through recovery-error wrappers and records its existing cleanup disposition without a retry timer. The checkpoint owner remains authoritative; this adds no parallel rejection store or cache.
Evidence
A real managed-checkout/projection regression exceeds the actual aggregate cap, then checks one staging/removal attempt, durable rejection, visible recovery guidance, no retry timer, and retained files across three state reopenings. It fails on base
ae0739da8acc9d2f2d8630533f19688da7e00a15with a partial/failed cleanup and passes with the fix (4.14 seconds test time; 33.70 seconds including worker compilation). Eight existing GC-file tests also passed. Final focused run: all four GC/quarantine/aggregate-recovery tests passed in 38.39 seconds total across two shards. The aggregate-recovery test took 13.19 seconds because it exercises real oversized-file recovery. PR CI time: pending.pnpm check:changedcompleted with two test-style lint errors (corrected; targeted lint passes) and one inherited changelog-attribution failure. All other stages passed, including core/test/script types, format, unused exports, database and import-cycle guards. Exact-base reproduction produces the same 20 forbidden-attribution findings. Commit266a7aa0fe69e2b5fe6445c4ceb1e15b5360c957(#194364) introduced those signatures by expanding the validator policy; its parent has zero of the current signatures (and a different older failure). This is an unresolved main gate regression, not ignored noise. No changelog files are changed here.Codex autoreview of the complete staged change against that base is scoped-clean through P2, with no accepted/actionable findings. The review used the unchanged cleanup, checkpoint, and recovery owners as source context. Two subsequent mechanical test-lint corrections (variable name and braces) were verified with lint and the focused tests. Simplification kept only the existing-owner bridge: +23 runtime lines, justified by carrying the recorded rejection identity into GC's existing outcome; +64 regression lines have an exact scoped test-line allocation.
Synthetic workload, acceptance rule, A/A controls, and measurements
Acceptance written before measurement: one initial rejection, zero later removal/staging attempts, persistent actionable outcome and unchanged guest bytes/ref across process reopen. Advance only GC's selection clock by 25 hours per pass to exceed the previous maximum backoff; leave lease clocks and timers real. Compare wall time, main/process CPU, and exact main-thread V8 allocation, with no unexplained metric regression over 20%.
The existing committed benchmark now has a
gc-overlimitmode. Each arm contains a synthetic repository with 64,389 files / 1,142,855,822 bytes, including 62,000 provisioned dependency files. The projection contains 2,420 files / 1,073,813,620 bytes, including 32 new 32 MiB result files; dependencies are excluded from projection publication. Setup is outside timing. Two identical-code baseline controls precede five serial interleaved baseline/candidate process pairs, with one reopen and one warm sweep per process.Observed p95 is the maximum of five samples. Warm wall ranges: baseline 4,780.81–5,555.07 ms; candidate 6.26–8.96 ms. A/A warm controls were 4,642.18 / 6,274.95 ms (35% spread); reopen controls were 7,929.73 / 7,977.13 ms. Counts are the strongest evidence: all 10 baseline sweeps retried removal; all 10 candidate sweeps avoided removal and staging, retained the rejection/ref, and exposed recovery guidance without a retry timestamp. Neither arm restaged after quarantine.
Initial rejection was unchanged in shape (one sample/arm): wall 9,150.69→8,970.68 ms; main CPU 152.05→150.60 ms; process CPU 10,367.78→10,193.65 ms; allocation 132.11→137.80 MiB (+4.3%).
Reopen each arm with
--reuse-fixture --report <unique-name>.json. Baseline runs setOPENCLAW_BENCH_BASELINE_DIRto an overlay containing the two changed production files from the pinned base. Each arm retains its own fixture. Separate--cpu-profdiagnostic runs were excluded from aggregates.Qualification: Node 26.12.1 on macOS/APFS, warmed filesystem cache and real owner/SQLite/Git operations. No btrfs, 35 GiB agent transcript DB, full Gateway/model, or session-transport claim. This owner does not read transcript payloads. Process CPU includes workers but excludes Git children; allocation is main-thread V8 allocation, not retained heap. Profiles covered the main thread only. The changed modules have no Control UI imports.