Repository navigation
fix: preserve the workspace in Talk approval tests - #201787
Conversation
Keep synthetic workspace content independent of the effect marker and fail fast when a direct consult settles before model start. Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 2302aa5e-6197-429a-8b48-133acdbca953
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesPreserves synthetic workspace content between Talk approval scenarios and reports direct consultation failures before model start. Example: A successful consultation creates node-parity-effects, which the next scenario removes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, useful fixture repair with no actionable correctness findings; maintainer authorship also requires keeping it open. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared Gateway test helper sends text and Talk consultations through production admission and native node execution, then checks approval decisions, cancellation, revocation, and filesystem effects. flowchart TD
A[Talk history tests] --> B[Shared parity fixture]
B --> C[Text and Talk admission]
C --> D[Fixed model action]
D --> E[Native node execution]
E --> F[Workspace effect marker]
B --> G[Persistent fixture README]
Technical reviewBest possible solution: Keep independent fixture content and the direct-callback settlement diagnostic in the existing helper while preserving production safeguards and approval assertions. Do we have a high-confidence way to reproduce the issue? Source confirms that marker cleanup can remove the workspace's remaining content and that workspace preparation then rejects recent attestation without content; the PR reports a failing timeout and passing repaired variants, which this read-only review did not rerun. Is this the best way to solve the issue? The patch repairs fixture-owned state at its producer and adds a targeted diagnostic for the observed failure without weakening production validation, adding timeouts, or changing RPC completion semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7af6c4fc31b6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +13. Total +13 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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, 6:51 AM ET / 11:51 UTC. |
* fix: preserve the workspace in Talk approval tests Keep synthetic workspace content independent of the effect marker and fail fast when a direct consult settles before model start. Co-authored-by: RomneyDa <[email protected]> * fix: preserve the workspace in Talk approval tests OpenClaw-Publication: 2302aa5e-6197-429a-8b48-133acdbca953 --------- Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The Talk node-approval parity test can time out after a successful consultation because cleanup removes the only file in its workspace. The next consultation then correctly treats the empty, previously attested workspace as data loss, but the test waits for a model start that never happens.
User Impact
No user-visible behavior changes. This repairs the test fixture so developers can validate Talk approval, device revocation, and Stop behavior without the fixture triggering an unrelated workspace-loss safeguard. No migrations or user actions are required.
Why This Change Was Made
Keep a synthetic README in the fixture workspace independently of the native-action effect marker. Removing that marker between scenarios no longer empties the workspace.
For direct provider callbacks only, race model start against consultation settlement so an early failure is reported immediately. RPC dispatch still waits for model start: its acknowledgment is not execution completion. Production safeguards and approval assertions are unchanged. The change is limited to one test helper (+14/-1 lines), with no new helpers, dependencies, retries, or timeouts.
Evidence
WorkspaceVanishedError; retaining independent workspace content then made both existing parity variants pass.openclaw, effective modelopenai/gpt-6.1-sol, P0–P3 coverage, exit 0, a produced report, and no findings (scoped-clean). Reviewed basedbf41b9173f6c3eb128221387533a1096ab1c43athrough headcb45454708cab45b48c2d61d912e414d41b5414a. This review was limited to the supplied diff: surrounding fixture setup and callers were unavailable, and it did not execute project code. It supplements the prior full-context independent review and passing focused tests. Local ClawSweeper was unavailable; hosted review and exact-head CI remain pending.git diff --checkand reverse-apply integrity checks pass.