Skip to content

perf(worktrees): overlap prompt preparation with index finalization - #184372

Merged
steipete merged 2 commits into
mainfrom
steipete/perf-turn-start-subphases-20261026
Oct 26, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/perf-turn-start-subphases-20261026

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fresh turns using accelerated managed-worktree clones waited for Git index finalization even after all prompt files were available.

User Impact

Prompt preparation can now overlap index finalization. Workspace tools, completion, setup scripts, bootstrap hooks, and other existing full-readiness requirements retain their gates. No configuration, schema, or user action changes.

Why This Change Was Made

The current-main breakdown identified APFS index copying, timestamp safety waits, and metadata reads as the largest checkout component. Same-session warm turns already skip managed preparation; individual Git commands were substantially smaller. The accelerated clone owner now uses the existing prompt-readiness boundary after cloning all files and restoring the worktree marker. Once that boundary is published, errors cancel preparation through the existing cleanup instead of replacing files with a fallback checkout.

This is overlap, not caching or reduced Git work. Production delta is +22 lines: the existing readiness callback, its necessary no-fallback-after-publication state, three diagnostic phase timers, and a three-line session-owner comparison repair. Tests add 143 lines; measurement tooling adds 486 net lines. The simplification pass retained one checkout owner and no new cache or parallel preparation policy.

Evidence

CI-discovered correctness repair: retained session facts and SQL hydration can place the separately stored owner field at different top-level positions. The old CAS equality treated that order difference as a conflict despite identical values. Earlier prompt release exposed it during final workspace publication; the unchanged main parent also failed later callback patches. Compare the complete owner value separately, as with the existing hydrated cold fields. No CAS or live-authority check is skipped. The production-path regression is red with the original equality owner, green with the repair, and still rejects a real owner reassignment before commit. All 11 session-patch operation tests pass, and the archived-child Gateway flow now passes with the combined repair.

Native owner proof: five counterbalanced base/candidate pairs, real Git/APFS/index operations on a synthetic 3,001-file repository. Candidate prompt readiness preceded its own full checkout by 543.73 ms mean (88.73–1026.48 ms); baseline had no early release. Every arm produced identical prompt bytes and clean Git status. Cross-arm readiness was 1923.06→854.52 ms, but the direct within-operation lead is the defensible overlap measurement. Full completion also varied 1922.72→1398.25 ms; that entire difference is not attributed to this patch. Host load was 29.87–32.23.

The native fixture pre-prepares a template, ages its file timestamps, and replaces template acquisition/validation and sizing/admission callbacks; hydration and reservations are covered by the Gateway runs below. Native CPU excludes subprocesses. Baseline completion is recorded just before its prompt hash and candidate completion includes it, so completion timing is not exactly symmetric.

Owner CPU/allocation: five counterbalanced pairs per mode, 2,000 operations per arm, actual checkout orchestration with immediate synthetic I/O and the same prompt consumer. CPU 53.497→57.611 µs/op (+4.113 µs, +7.69%; mixed-sign pairs); sampled allocation 54,477→55,294 B/op (+817 B, +1.50%). Git/clone/index/admission/consumer counts stayed 10/1/1/3/1 per operation. This measures the small orchestration cost, not native I/O or latency savings. Timing and allocation were separate passes.

Correctness: the callback/publication and rejection regressions fail on the original owner and pass with the change. Three service cases cover early readiness, callback rejection, and index failure after publication, including cleanup and no fallback success. Eighty-six focused tests passed across acceleration, prompt checkout, service readiness, hooks, preparation timing, Gateway readiness, harness tool/capability readiness, and all 13 prompt-prefix stability cases. The prefix file passed after the patch-identical rebase. Core typecheck, scoped lint/format, export-collision guard, 25 closure tests, and two selected CI test-plan checks passed. Broad gates run in PR CI.

Review: independent subagent review (autoreview route unavailable). The configured autoreview preflight refused the provider route; configuration was not changed. Fresh independent review of runtime, docs, regression tests, and both measurement scripts found no actionable findings. A separate fresh review of the CI repair found a synthetic actor-ID omission in the new test; it was corrected, then re-reviewed clean. The new readiness mock also now preserves real module exports; its three tests and the failed mock-export ratchet pass.

Measurements use main f85717fb9736a9bb2a6c6d5304ba7bdc2f8c831a plus phase-only instrumentation for baseline and this patch for candidate. Built checkout bundles were pinned: base SHA-256 cbb6b9a1f946b4753096b296e1f19486dd8b9f0122d0d911ea61f553fb797e41, candidate 68a9dcaee386b3c2170b737ed563dc737b428daf72f1d1aaf8e771db59561d84. APFS helper bundle hash was identical. The final two-commit patch rebased identically onto 6b72c79119382fc4ae82d547db6efbcb888d0f50; checkout/equality owners were unchanged upstream. These are pre-rebase measurement results, not a claim that every later main change was benchmarked.

Gateway phase and resource comparison, including limitations

Untraced built-Gateway arms, 20 fresh origin-advancing and 20 same-session warm turns per arm, 10,800 seeded sessions, 40 bundled plugins, 65 WebSocket clients, four concurrent mock turns with tool calls, sidebar/list/search churn. First-token delay is 200 ms. All turns, tool calls/results, and fanout checks completed. p95 below 200 samples is descriptive. The initial Trace2 diagnostic is separate from this timing comparison.

Phase n per arm Base p50 / p95 ms Candidate p50 / p95 ms
cold-session first provider 20 / 20 5143.22 / 8423.38 3693.80 / 5281.77
warm-session first provider 20 / 20 996.23 / 1490.80 1104.60 / 3934.83
fresh/startup/chat.send.worktree 20 / 20 3953.49 / 7203.52 1737.89 / 2695.19
fresh/worktree/worktree.preparation 20 / 20 3578.00 / 6823.00 2734.00 / 3158.00
fresh/worktree/checkout 20 / 20 2440.00 / 5124.00 1666.00 / 2108.00
fresh/worktree/indexCopy 20 / 20 1208.00 / 1661.00 500.00 / 1353.00
fresh/worktree/indexCloneWait 20 / 20 487.00 / 897.00 192.00 / 669.00
fresh/worktree/indexMetadata 20 / 20 439.00 / 1137.00 287.00 / 720.00
fresh/worktree/templateApply 20 / 20 378.00 / 1841.00 254.00 / 347.00
fresh/worktree/templatePrepare 20 / 20 289.00 / 441.00 259.00 / 612.00
fresh/worktree/baseWait 20 / 20 531.00 / 1298.00 346.00 / 936.00
fresh/worktree/baseHydration 5 / 5 245.00 / 1063.00 189.00 / 680.00
fresh/worktree/baseRefresh 5 / 5 217.00 / 380.00 221.00 / 250.00
fresh/worktree/registration 20 / 20 159.00 / 790.00 119.00 / 200.00
fresh/worktree/repository 20 / 20 155.00 / 225.00 115.00 / 157.00
fresh/worktree/mutationWait 20 / 20 123.00 / 278.00 124.00 / 344.00
fresh/worktree/allocationWait 20 / 20 115.00 / 297.00 79.00 / 301.00
fresh/worktree/reservation 20 / 20 40.00 / 77.00 25.00 / 58.00
fresh/worktree/diskAdmission 20 / 20 40.00 / 62.00 40.00 / 70.00
fresh/worktree/indexRefresh 20 / 20 34.00 / 158.00 29.00 / 49.00
fresh/worktree/provision 20 / 20 8.00 / 23.00 9.00 / 38.00
fresh/startup/chat.send.preparation 20 / 20 785.58 / 1035.86 1407.34 / 2041.96
warm/startup/chat.send.preparation 20 / 20 581.16 / 799.35 775.09 / 887.56

Index wait/metadata percentile samples include zero when an APFS index-copy operation emitted no wait/metadata phase. Neither arm emitted managed-worktree preparation during the 20 warm same-session turns. Inclusive phases overlap and must not be summed.

All 20 candidate starts demonstrably released prompt preparation before full worktree completion: in every four-turn burst, the smallest full managed duration exceeded the largest prompt-blocking duration (conservative per-burst lower bounds 453, 235, 891, 216, and 1190 ms). This does not require pairing identities. Chat phase diagnostics carry whole-stage report timestamps, so they cannot establish exact per-turn callback timestamps. Provider requests all followed every full completion in four bursts; one burst overlaps, leaving a conservative 0–4 provider-before-own-completion bound. No claim is made that all provider requests began before finalization.

Resource/context Base Candidate
Full measured duration s 228.08 218.85
Active-window main CPU % 50.96 49.86
Active-window duration s 71.89 63.19
Active-window main CPU s 36.64 31.51
Full-run GC ms/min 342.84 356.29
Warm-ready to release s 62.55 94.06
GC collections / major 459 / 12 476 / 13
Maximum GC pause ms 33.78 50.96
GC minor / incremental / major total ms 995.67 / 17.82 / 289.80 928.04 / 20.69 / 350.81
Loop p99 ms (n) 38.70 (10461) 38.50 (10007)
Loop maximum ms 136.05 282.59
Server sessions.list p50 / p99 ms (n) 8.03 / 1228.80 (919) 9.02 / 835.58 (756)
Client sessions.list p99 ms (n) 1240.76 (919) 839.64 (756)
Heap spaces used before / after MiB 637.80 / 830.48 661.44 / 878.55
Observed RSS first / last / peak MiB 2809.30 / 2755.36 / 2938.62 3031.61 / 2730.75 / 3031.78
Host load at release (1 / 5 / 15 min) 44.93 / 43.87 / 41.54 31.09 / 30.52 / 35.86
Host 1-min load range during measurement 31.82–45.34 18.40–32.34
Dropped diagnostic events / collection errors 0 / 0 0 / 0

The Gateway before/after numbers are descriptive: the host load differed materially and the candidate warm-idle hold was longer while required checks finished. The controlled, counterbalanced native-owner benchmark is the causal latency evidence. Main-thread utilization uses active turn windows; GC, loop, handler, and heap metrics span the full run including fresh-burst gaps. Poll counts differ because the windows differ. RSS polling began after round 0 identified the Gateway PID, so values are observed samples, not a whole-run peak guarantee. Allocation was not sampled in the Gateway timing arms; use the separate owner allocation pass. Warm first-provider p95 rose from 1491 to 3935 ms in 20 samples on an unchanged warm worktree path; it is disclosed as uncontrolled context, not attributed or rejected without matched controls. The GC change is +13.45 ms/min; maximum pause 50.96 ms remains below 2× base maximum 67.56 ms, and major GC counts are below 50. Client/handler p99 counts are below 1000 per side.

This was the requested bounded FAST PATH phase proof, not the canonical multi-pair ten-minute stress campaign. No production load or restart occurred. Recent production journal lines were read only; their deployment identity was not securely attributed, so they are not presented as current-build measurements.

Separate Git argv-class diagnostic

Trace2 baseline, fresh windows. Times are subprocess-local wall time, excluding spawn and worker queues. Concurrent sidebar work is included; nested operations cannot be summed into critical-path duration. All raw commands retain argv, session identity, and elapsed wall time in the harness output.

Git argv class n p50 / p95 ms
worktree add --no-checkout -b 20 65.27 / 134.84
worktree list --porcelain -z 60 16.04 / 70.51
fetch --no-auto-maintenance --no-recurse-submodules --no-tags 5 149.14 / 278.57
rev-list --objects --missing --no-object-names --max-count 5 97.82 / 275.03
template status --porcelain --branch -z --untracked-files --ignored 5 84.11 / 141.78
update-index --refresh 20 13.48 / 24.73
rev-parse --symbolic-full-name 80 3.79 / 10.75
rev-parse --git-common-dir 50 4.77 / 17.87
rev-parse --git-path 60 2.93 / 9.96

The untraced Gateway arms above add dedicated index-copy/wait/metadata phases. Benchmark usage is in each script's header; the shared perf README is unchanged.

CI attribution

Initial head 7e4abfcd811435bcdfec1de32b322412628e5634, run 40288770408: repaired the new mock-export violation and the false owner-order CAS conflict described above; no CI reruns were requested. The subsequent run validates the repaired head.

One separate failure is inherited: src/gateway/server.required-worker-profile.test.ts, “required workspace commit fences runtime authority after preparation,” expects Session changed during worker admission but receives SQLite session state changed while preparing session-entry.patch. The complete file reproduces on unchanged main parent f5eb9570aac03eccd09bf38d8a155d4039fc768f: 16 passed, 1 failed with that exact expected/received error. The failing empty-workspace path does not enter accelerated checkout; a real external execution-node mutation is rejected by the preimage check before the custom admission error. This patch does not relax either check.

Focused CI-attribution/repair commands (single-worker runs, no suites):

# Unchanged main parent f5eb9570aac03eccd09bf38d8a155d4039fc768f: exact inherited failure
node scripts/run-vitest.mjs src/gateway/server.required-worker-profile.test.ts --maxWorkers=1
# Repaired candidate: 11 passed, including real owner reassignment rejection
node scripts/run-vitest.mjs src/config/sessions/session-entry-patch.operations.test.ts --maxWorkers=1
# Repaired candidate: archived-child flow passed
node scripts/run-vitest.mjs src/gateway/server.sessions.create-worktree-spawn.test.ts --maxWorkers=1 -t 'deferred worktree preparation follows its child owner after archive'

Final CI on b09deb226f061e5b354767b307f3845c539ae00c: run 40293467171 completed with 49 passing jobs, including all three PostgreSQL conformance shards. The sole non-aggregate failure is the exact inherited worker-admission case above (job 121474385958: 16 passed, 1 failed). Dependency and security-sensitive review gates passed on this exact head. Landing uses the maintainer-authorized inherited-failure exception; no failed run was retried.

@clawsweeper

clawsweeper Bot commented Oct 26, 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.

@steipete
steipete marked this pull request as ready for review October 26, 2026 07:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-26T08:36:51.119081Z b09deb2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: L labels Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR releases accelerated worktree prompt preparation before index finalization and fixes false session conflicts caused by hydrated owner field ordering.

Example: Start a fresh managed-worktree turn in the measured 3,001-file APFS repository.

  • Before: Prompt preparation waits for index finalization.
  • After: Prompt readiness precedes full checkout completion by a reported mean of 543.73 ms, while workspace tools retain their readiness gate.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused production change with supplied Gateway and native-owner proof, distinct regressions, and no remaining findings; pending CI remains a landing gate.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied built-Gateway runs exercise fresh accelerated sessions, early prompt release, tools, and completion; native Git/APFS pairs independently show readiness preceding index finalization with identical prompt bytes and clean status. The repaired archived-child Gateway case passes, and the session regression rejects actual owner reassignment before commit. Timing limitations and the patch-identical rebase are disclosed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Fresh accelerated worktree turns wait for index preparation after their prompt files are already available.
Reason: The maintainer-authored direction delivers measured overlap through an existing boundary with little production growth and no new setting or state owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a useful worktree startup optimization, and no actionable findings remain on the reviewed head. The earlier mock-export finding is fixed and the reported Gateway failures have been attributed; current-head CI is still pending.

Priority: P2
Reviewed head: b09deb226f061e5b354767b307f3845c539ae00c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Managed worktree creation turns a selected Git commit into a session checkout; prompt readiness permits inference, while complete preparation admits workspace tools and turn completion.

flowchart TD
  A[New session turn] --> B[Managed worktree service]
  B --> C[Clone committed files]
  C --> D[Publish prompt readiness]
  C --> E[Finalize Git index]
  D --> F[Prepare prompt and inference]
  E --> G[Complete workspace readiness]
  G --> H[Workspace tools and completion]
Loading

Technical review

Best possible solution:

Retain the existing checkout and readiness owners, publish cloned prompt files early, and preserve complete-readiness and ownership checks.

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

Current-main source shows accelerated clones completing index work before prompt release; the supplied counterbalanced native measurements exercise that delay, although this review ran no target code.

Is this the best way to solve the issue?

This is a focused extension of the existing readiness contract; the publication flag prevents unsafe file replacement, and the equality repair preserves complete owner comparisons.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0dc12b926cf8.

Provenance checked

  • Accelerated checkout readiness and fallback changes intended behavior with a stated reason (23fb1c0: Preserve allocation ownership, exact selected commits, cancellation cleanup, and recovery during failed creation.)
  • Prompt and workspace readiness keeps the original intent (325c56d: Allow inference when committed prompt inputs are ready while workspace effects await full preparation and live-authority validation.)
  • APFS index timestamp and metadata validation keeps the original intent (7e17935: Avoid redundant timestamp delay while retaining clone provenance and edit detection.)
  • Hydrated session equality keeps the original intent (ae6a884: Compare separately hydrated values without mistaking their top-level insertion order for session identity.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 325c56d adds src/agents/worktrees/checkout.ts:505 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 325c56d230bc; files: src/agents/worktrees/checkout.ts)

PR surface

Source +22, Tests +143, Docs +2, Other +486. Total +653 across 10 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 35 13 +22
Tests 2 143 0 +143
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 3 489 3 +486
Total 10 670 17 +653

Review metrics

Metric Value Why it matters
Production versus regression tests Production +22 net lines; tests +143 lines The small runtime change reuses existing owners; tests cover early readiness, consumer rejection, post-publication index failure, and owner-order conflict handling.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Reduces fresh managed-worktree prompt preparation latency without changing configuration or requiring operator action.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-26T08:11:48.219Z sha 7e4abfc :: needs changes before merge. :: [P2] Preserve real exports in the new filesystem backend mock

Reviewed October 26, 2026, 4:51 AM ET / 08:51 UTC (Revision 2).

@steipete
steipete force-pushed the steipete/perf-turn-start-subphases-20261026 branch from 7e4abfc to b09deb2 Compare October 26, 2026 08:36
@steipete

Copy link
Copy Markdown
Contributor Author

Fixed on b09deb226f061e5b354767b307f3845c539ae00c: the backend mock now preserves real exports; the mock-export ratchet and all three readiness cases pass.

The archive failure exposed a real owner-hydration ordering bug: expected/current session values were identical, but owner appeared at a different top-level position. The owner comparison now ignores that position while comparing its complete value. The new callback regression is red before the repair, green after it, and still rejects a real owner reassignment. All 11 session-patch operation tests and the archived-child Gateway case pass. Fresh independent review of the repair is clean.

The separate server.required-worker-profile.test.ts runtime-authority error-message failure reproduces identically on unchanged main parent f5eb9570aac03eccd09bf38d8a155d4039fc768f (16 passed, 1 failed): expected Session changed during worker admission, received SQLite session state changed while preparing session-entry.patch. Both reject the externally changed execution-node state; the empty-workspace case never enters accelerated checkout. Commands and attribution are in the updated PR body. CI is validating the repaired head in run 40293467171; no CI rerun was requested.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 26, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor

Independently reproduced the deferred-workspace completion failure on unchanged main (0eb245aedb568f8579bb9c0c4f537051fb155c2a): the final session-entry.patch conflicts even though all field values match, because the projected owner moves to a different top-level position.

The two-file correction in b09deb226f061e5b354767b307f3845c539ae00c is independently useful and does not need the prompt/index overlap change. I’m reusing that commit, preserving its authorship, in a narrowly scoped correctness PR so it can be reviewed and landed separately. I’ll reference this PR from it; the performance work can then consume the landed correction without carrying a duplicate repair.

@steipete
steipete merged commit 505264e into main Oct 26, 2026
158 of 161 checks passed
@steipete
steipete deleted the steipete/perf-turn-start-subphases-20261026 branch October 26, 2026 09:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged as 505264e85d5472efd69104ee42ef9d96ad21cb61 from reviewed head b09deb226f061e5b354767b307f3845c539ae00c under the maintainer-authorized inherited-failure exception.

Final CI run 40293467171 completed with 49 passing jobs, including all PostgreSQL conformance shards. The only non-aggregate failure was server.required-worker-profile.test.ts → “required workspace commit fences runtime authority after preparation”: the same expected/received error-message mismatch reproduced on unchanged main parent f5eb9570aac03eccd09bf38d8a155d4039fc768f (16 passed, 1 failed). No CI run was retried. Exact-head dependency/security gates passed, independent review was clean, and ClawSweeper's final review had no findings.

The introduced mock-export violation and owner-field-order conflict were repaired and verified before landing. Phase tables, native overlap evidence (543.73 ms mean readiness lead), resource measurements, and host-load limitations remain in the PR body.

@shakkernerd

Copy link
Copy Markdown
Contributor

The correction is now on main in 505264e. The separate extraction is no longer needed; we’ll use and verify the landed fix.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…penclaw#184372)

* perf(worktrees): overlap prompt preparation with index finalization

* fix(sessions): compare hydrated owner independently of field order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: L 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.

2 participants