Skip to content

fix: preserve the workspace in Talk approval tests - #201787

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/ci-pr-talk-fixture-nov19
Nov 19, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/ci-pr-talk-fixture-nov19

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

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

  • The original public-callback variant reproduced a 120-second timeout. The early-settlement diagnostic exposed WorkspaceVanishedError; retaining independent workspace content then made both existing parity variants pass.
  • Reused the completed focused runtime proof, formatting, type-aware lint, and applicable production/Gateway test typechecks for this unchanged patch. No additional runtime rerun or dependency installation was performed while preparing this PR.
  • Canonical autoreview completed with engine openclaw, effective model openai/gpt-6.1-sol, P0–P3 coverage, exit 0, a produced report, and no findings (scoped-clean). Reviewed base dbf41b9173f6c3eb128221387533a1096ab1c43a through head cb45454708cab45b48c2d61d912e414d41b5414a. 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.
  • Verified the candidate is byte-for-byte the reviewed patch, and git diff --check and reverse-apply integrity checks pass.
  • The focused proof exercises real Gateway admission and node execution with a fixed model fixture; it does not claim live model-provider coverage. Exact-head PR CI remains required. Aggregate passing wall time and CI seconds are not available in the retained evidence summary.

RomneyDa and others added 2 commits November 19, 2026 11:30
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
@clawsweeper

clawsweeper Bot commented Nov 19, 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 19, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review November 19, 2026 11:36
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Preserves 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.

  • Before: The workspace can become empty, triggering WorkspaceVanishedError while the test waits for model start.
  • After: README.md remains in the workspace, allowing the next approval scenario to proceed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A small, source-supported repair with reported focused harness validation and successful relevant CI jobs; it makes no live-provider or shipped-product proof claim.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair needs no shipped-entry-point proof; the body reports both existing parity variants passing through real Gateway admission and node execution with fixed model input.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers validating Talk approvals can encounter an unrelated workspace-loss failure and a misleading model-start timeout.
Reason: Restores meaningful coverage through the existing fixture, and the maintainer-authored direction needs no additional product decision.

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
Reviewed head: cb45454708cab45b48c2d61d912e414d41b5414a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +13. Total +13 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 14 1 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 14 1 +13

Preflight source

Source 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 cluster

Relationship: canonical
Canonical: #201787
Summary: This PR carries the workspace-fixture repair previously submitted in a closed, unmerged PR.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P3: Repairs developer test fixtures without changing shipped runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Repairs developer test fixtures without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 19, 2026, 6:51 AM ET / 11:51 UTC.

@RomneyDa
RomneyDa merged commit a0cd494 into main Nov 19, 2026
215 of 216 checks passed
@RomneyDa
RomneyDa deleted the openclaw/ci-pr-talk-fixture-nov19 branch November 19, 2026 12:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

1 participant