Repository navigation
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. |
|
@clawsweeper re-review: both real inbound worktree variants pass with peer writes completed before allocation release. All original state/order assertions remain, and timeout/cancellation still unwinds through the existing withinTest cleanup guard. Focused gateway test types and lint passed; inherited dead-export failure is documented. |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. Reviewed October 7, 2026, 8:57 PM ET / October 8, 2026, 00:57 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Gateway concurrency test awaits an unrelated session update before releasing worktree allocation, using the existing test-lifetime cancellation guard instead of one-second polling. ProductKind: Test only · Worth it: Yes Merge readiness⛔ Blocked before merge - 2 items remain This PR remains useful: current main retains the timing-sensitive assertion, and no introduced code defect was found. The recorded validation does not yet establish the repository’s required flake qualification, a gap the earlier review overlooked. Priority: P2 Review scores
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherInbound messages can restore an archived conversation’s working directory before reply dispatch. This test checks that waiting for restoration capacity leaves unrelated conversation updates free to finish. flowchart TD
A[Archived conversation resumes] --> B[Prepare working directory]
B --> C[Allocation held by test]
D[Unrelated conversation update] --> E[Await update completion]
E --> F[Release allocation]
C --> F
F --> G[Verify restored files and transcript]
Technical reviewBest possible solution: Preserve the completion-before-allocation-release contract through the shared cancellation guard and satisfy the existing fixture qualification requirements. Do we have a high-confidence way to reproduce the issue? Yes: the original fixture and reported loaded-runner failure identify the independent one-second polling deadline. Source confirms that mechanism; no failing run was executed during this review. Is this the best way to solve the issue? Yes: awaiting the existing request removes the incidental speed requirement while retaining allocation-held ordering, failure propagation, and cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ffec9b0ad85. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -5. Total -5 across 1 file. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
|
Closing as superseded by the current-main inbound writer test repair. The test now awaits the actual independent session RPC through withinTest(independent, signal) while allocation remains held, then releases allocation in finally. This preserves the requested ordering invariant without the old one-second polling race. Canonical change: 2f6273f |
Problem
The inbound worktree concurrency fixture failed beta FRV https://github.com/openclaw/openclaw/actions/runs/37694779482/job/113044095960 because a peer session write exceeded
vi.waitFor's implicit one-second deadline. The contract is that the peer completes while allocation remains blocked, not that a loaded runner completes it within a second.Change
Await the real
sessions.patchrequest through the existingwithinTestlifetime guard before releasing the held allocation lease. Use Vitest's context-bearingtest.for. Remove the boolean polling projection. Keep the blocked admission, active lifecycle fence, archived row, missing checkout, peer label, restored draft, and transcript preservation assertions.finallystill releases and joins owned work if the test aborts. No production lock, timeout, worker policy, or assertion is relaxed.Proof
pnpm test src/gateway/server.sessions.inbound-worktree-writer.test.ts --maxWorkers=1: 2 passed, 85.77 s wrapper, 80.68 s Vitest (existing real worktree/Gateway setup). No new process boot or timer is added. Hosted CI seconds pending.scripts/publish-model-catalog.mts:readRecommendedModels, unchanged from main. Focused lint is run separately; no exclusion or baseline change is added.Backports
The same polling fixture and
withinTesthelper exist onrelease/2026.10.2,release/2026.10.1(b882e76384748485669517a8b28a866acabbf718), andrelease/2026.9.9(76cfa7f7734ce80e4d9046651c04c6a60e5f4002). The main patch also contains a previously migrated method spy; older branches need only the await/context delta, preserving their existing spy. Older applicability is source assessment, not executed older-line qualification.