Repository navigation
test(worktrees): accept additive gc result fields - #156127
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 11:58 PM ET / September 23, 2026, 03:58 UTC (Revision 2). ClawSweeper reviewWhat this changesUpdates the managed-worktree CLI lifecycle test to accept additional garbage-collection metadata while preserving its removal and counter assertions. Merge readiness✅ Ready for maintainer review The patch is correct and still needed on current main. The earlier test-cost follow-up is resolved, and no actionable findings remain. Priority: P3 Review scores
Verification
How this fits togetherManaged worktrees provide isolated Git checkouts with snapshot, restore, and cleanup operations. The lifecycle test drives the CLI and verifies that garbage collection preserves manually owned checkouts. flowchart LR
A[Temporary Git repository] --> B[CLI lifecycle test]
B --> C[Create and restore worktree]
C --> D[Garbage collection]
D --> E[JSON result assertions]
D --> F[Manual checkout survives]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep lifecycle assertions focused on observable retention behavior while allowing the GC owner to extend diagnostic metadata. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main compares the complete GC result against three fields despite the production result containing additional required metadata. Execution was not performed in this read-only review. Is this the best way to solve the issue? Yes. Partial object matching preserves every existing expected field and the subsequent checkout-retention checks without freezing diagnostic metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 85b8d7747892. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
* commit '3ab93b4ea59804b34d02a696382db16dc95189bb': (80 commits) fix(gateway): keep session refreshes moving during unrelated writes (openclaw#156286) chore(deps): update fs-safe to 0.18.2 (openclaw#156262) refactor(plugins): extract ClawHub plugin archives once (openclaw#156246) improve(llm-core): avoid unnecessary tool validation sets (openclaw#152066) fix(backup): verification accepts archives missing captured databases (openclaw#156211) fix: cancel Guest work when its original access is revoked (openclaw#156106) fix(test): classify drained legacy migration refusals fix(anthropic): finish Opus 5.5 defaults and thinking display (openclaw#156093) refactor(agents): share native harness tool execution (openclaw#154217) fix(ui): carry typed ownership through short-route resolution test(worktrees): accept additive gc result fields (openclaw#156127) test(tasks): close sqlite borrowers before registry reload (openclaw#156131) chore(autoreview): sync Astra high defaults (openclaw#156175) refactor(node-host): await prepared workspace storage (openclaw#149519) improve: speed up cold Node test planning (openclaw#156234) fix(doctor): avoid slow legacy ownership repair in source checkouts (openclaw#156238) improve: speed up native build artifact validation (openclaw#156219) fix(ui): preserve short-route resolution ownership fix(doctor): name retained session metadata conflicts (openclaw#156162) perf(tasks): bound creation selection to matching runs (openclaw#156183) ...
Summary
Validation
OPENCLAW_E2E_USE_PREBUILT_DIST=1 pnpm test test/e2e/qa-lab/runtime/managed-worktrees-cli-product-proof.e2e.test.ts --maxWorkers=1pnpm check:changedCloses the managed-worktree GC failure cluster from maturity scorecard run 35794246666.
Test cost