Repository navigation
fix(tests): stop waiting on removed workspace preparation - #202068
Conversation
Replace the workspace mkdir barrier left stale by #201333 with the real transcript-target preparation boundary. Preserve both admission closure and replacement checks before routing publication and backend dispatch.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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. |
|
@clawsweeper review Please review the test-only preparation barrier repair at c58cc73. Both admission close/replacement cases must continue to reject before routing audit work and backend dispatch. The old mkdir barrier was removed by #201333; the current barrier holds the real transcript-target preparation result. Local before/after controls and check:changed pass as recorded in the PR body. The separate #201790 diagnostic regression was already repaired by #202049 and is unchanged here. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces the removed workspace-directory barrier with a pause after real transcript-target preparation in two admission tests. Example: Admission for route-preparation-close closes while transcript-target preparation is paused.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this PR narrowly repairs two stale preparation barriers while preserving rejection, zero-routing, and zero-backend assertions; no actionable defects found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe embedded runner prepares a transcript target, checks active admission, records routing, and dispatches the backend; these tests invalidate admission before those effects. flowchart TD
A[Test starts embedded run] --> B[Real transcript target preparation]
B --> C[Test barrier closes or replaces admission]
C --> D[Active admission check]
D --> E[Reject run]
D --> F[Routing audit and backend dispatch]
Technical reviewBest possible solution: Retain the real transcript-preparation barrier and all existing negative-effect assertions without restoring redundant production directory creation. Do we have a high-confidence way to reproduce the issue? Source confirms the old checkpoint was removed, and the PR records repeated base failures and repaired passes; this read-only review ran no tests. Is this the best way to solve the issue? The replacement is the smallest complete repair: it pauses an existing production preparation operation while preserving its result and every admission assertion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5119f2798052. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +4. Total +4 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 Reviewed November 19, 2026, 4:21 PM ET / 21:21 UTC. |
|
Merged via squash.
|
…2068) Replace the workspace mkdir barrier left stale by openclaw#201333 with the real transcript-target preparation boundary. Preserve both admission closure and replacement checks before routing publication and backend dispatch.
Replace the workspace mkdir barrier left stale by #201333 with the real transcript-target preparation boundary. Preserve both admission closure and replacement checks before routing publication and backend dispatch. (cherry picked from commit 200bd90) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 1b9ddd1bd4ffe007a47407815e69118759b4fad6)
* fix(worktrees): retain recently used session checkouts * test(agents): decouple admission proof from workspace creation (cherry picked from commit f5d35bc) Release adaptation: reuse the beta.3 adaptation aef0b19dc08b for the stable workspace owner: add existing reader/error imports and the minimal #200691 removed-checkout preflight so activity marking never recreates a removed checkout. Omit only the changed assertion in the Gateway test file absent on this branch; retain existing Gateway readiness and owner coverage. Companions: #202074 is selected next. #202068 is present-equivalent (5631d96); #202204 changes later main-only GC owner-census behavior; #203057 is an independent probe optimization. Other later overlap concerns unrelated worktree refresh/reclamation, policy, restore UX, or the later absent removed-checkout fixture; not prerequisites (enumerated in lane audit). Release adaptation: reuse the sibling path-specific realpath spy and no-recreation regression (abce9babd5cab). The original one-shot spy closed authority at the preflight read instead of the target workspace boundary. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit e3495dac6afc80bd3fe36110008dec96013d2514)
What Problem This Solves
Two embedded-runner admission tests fail before exercising their lifecycle checks because #201333 removed the redundant workspace directory creation they used as a barrier.
The second reported main failure, an inactive-run diagnostic expectation left by #201790, is already repaired by #202049. Its unchanged steering-custody suite passes all 28 cases on this base.
User Impact
No user-visible behavior changes. The tests again verify that closing or replacing admission during preparation prevents both routing audit work and backend dispatch.
Why This Change Was Made
Hold the real transcript-target preparation result before dispatch checks admission. Workspace creation now belongs inside the backend path, after routing, so waiting there would lose the no-routing contract. All existing rejection, routing, backend, cleanup, and deadline assertions remain intact. No production hook, timeout increase, retry, or duplicate coverage is added.
Production delta: 0 lines. Test delta: +11 / -7 lines.
Evidence
On base
f9553398b8e5de2d24d46ea53a899eda5dd1db17, both preparation cases fail twice withembedded run settled before attempt preparation; the other 13 cases pass. The repaired full suite passes 15/15 twice through the repository E2E runner. Initial E2E build preparation also passed. Vitest duration was 93.51/37.48 seconds before (cold/warm) and 26.06/47.83 seconds after; these are correctness controls under shared-host load, not a performance claim. Exact-head CI ran all 15 cases under pinned Bun in 47.76 seconds (49.04 seconds for the test shard); both admission cases passed.Codex autoreview of the local change against that base, including dispatch and transcript-preparation owner context, is scoped-clean through P2 with no actionable findings.
git diff --checkand focused formatting pass.pnpm check:changedpassed, including the affected test typecheck, lint, boundary guards, and all dead-export scans. Exact-head CI run 44617085124 passed: 17 successful jobs, 32 intentional skips, zero failures. ClawSweeper final-head review has zero findings and zero open items atc58cc735586d3f21728e20d0b733f45115963534. No CI rerun or inherited-failure exception was used.