Skip to content

fix(tests): worker recovery checks fail after input refresh - #185673

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/worker-recovery-ci-184495
Oct 27, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/worker-recovery-ci-184495

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Worker launcher recovery checks fail before reaching their intended failure scenarios after #185424 introduced pre-turn input refresh.

User Impact

No production behavior change. Restores CI coverage of launch failure diagnostics, unresolved journals, and post-execution workspace recovery.

Why This Change Was Made

Model successful input refresh before injecting post-turn failures. The journal fixture uses the real local reconciliation recovery owner and checks the retained pending-result/turn fence. The paired-device fixture disconnects during execution rather than before preparation.

Co-developed with @jalehman and @vincentkoc.

Work sessions

Evidence

  • Clean main 2ce2164: 8 failed / 8 passed and one unhandled error, 233.69 seconds. Matching main CI failures.
  • Repaired suite: all 16 passed after refreshing onto current main, 63.50 seconds wall. No new tests or timing exceptions. Existing 16-case file exercises real placement/session persistence; approximately 20 seconds is test work, with compiler setup dominating the remainder.
  • Owning Gateway-other test typecheck: passed, 2.27 seconds.
  • Scoped typed lint: passed, 2.32 seconds; format and diff checks passed.
  • Independent GPT-6.1 Sol P0–P2 review: scoped-clean. Fixtures preserve the real recovery journal and pending ownership rather than weakening production assertions.
  • One test file only; no production changes.

The authorized direct fast-forward repair was refused by the repository ruleset: changes must be made through a pull request. This is the required fallback; no CI rerun or bypass was attempted.

…efresh

Aligns recovery fixtures with pre-turn input refresh introduced by #185424.

Co-authored-by: jalehman <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 27, 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: S labels Oct 27, 2026
@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. P2 Normal backlog priority with limited blast radius. 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 Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates worker-launcher recovery fixtures to complete input refresh before exercising their intended failure scenarios.

Example: A paired-device execution disconnects during run-paired-device-disconnected.

  • Before: The fixture starts disconnected and fails during input preparation before execution.
  • After: Preparation succeeds, execution disconnects, and the test verifies placement reuse after reconnection.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, correct fixture repair with successful CI and reported before/after suite results; evidence is confined to the test harness.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no shipped behavior; source inspection and successful exact-head test checks support the fixture correction.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Recovery checks fail during preparation instead of testing launch diagnostics and workspace recovery.
Reason: The maintainer-authored repair restores distinct existing coverage without adding product policy, production machinery, or timing exceptions.

Regression provenance

Regression provenance — verified: source commit e7dd028cd805 by Peter Steinberger; canonical PR #185424 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs recovery fixtures left incompatible with pre-turn input refresh, preserves meaningful assertions, and has successful exact-head CI; no actionable code defects were found.

Priority: P2
Reviewed head: 1b9ffbbd2e832aa2212dfee16434af732877e262

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway launcher coordinates placement claims, workspace refresh, worker execution, and recovery; these tests supply transport faults and inspect persisted placement outcomes.

flowchart TD
  A[Recovery test fixtures] --> B[Gateway turn launcher]
  B --> C[Pre-turn workspace refresh]
  C --> D[Worker or remote execution]
  D --> E[Workspace recovery]
  E --> F[Placement and pending-result store]
Loading

Technical review

Best possible solution:

Merge the focused fixture repair while preserving the existing recovery, diagnostics, and reconnect assertions.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms that current-main fixtures reject or omit reconciliation now required before execution; the PR reports baseline failures, but no tests were executed during this read-only review.

Is this the best way to solve the issue?

This is a focused repair using existing owners: successful refresh precedes post-turn fault injection, while conflicted journal recovery exercises the real local recovery implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 279739bbd9e1.

Provenance checked

  • Recovery fixture consolidation keeps the original intent (8318dc3: Consolidate fixture setup while retaining distinct lifecycle, recovery, and error-path checks.)
  • Strict fixture and journal preparation keeps the original intent (1f24921: Reduce redundant test scaffolding without changing production behavior.)
  • Pre-turn refresh and recovery custody keeps the original intent (e7dd028: Reconcile staged inputs before tools execute and retain pending-result custody when refresh fails.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2e33b81 adds src/gateway/worker-environments/worker-turn-launcher-failure-recovery.test.ts:244 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2e33b81f2efa; files: src/gateway/worker-environments/worker-turn-launcher-failure-recovery.test.ts)

PR surface

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

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 52 20 +32
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 52 20 +32

Labels

Label changes:

  • add P2: Restores meaningful Gateway recovery coverage 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:

  • P2: Restores meaningful Gateway recovery coverage 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 October 27, 2026, 4:31 AM ET / 08:31 UTC.

@roboclaw-bot
roboclaw-bot merged commit dfdc696 into main Oct 27, 2026
121 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/worker-recovery-ci-184495 branch October 27, 2026 08:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…efresh (openclaw#185673)

Aligns recovery fixtures with pre-turn input refresh introduced by openclaw#185424.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: jalehman <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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