Skip to content

fix(setup): avoid premature Gateway restart timeouts - #1539

Merged
bkudiess merged 3 commits into
mainfrom
karkarl-alpha-review
Sep 29, 2026
Merged

bkudiess merged 3 commits into
mainfrom
karkarl-alpha-review

Conversation

@karkarl

@karkarl karkarl commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #1498

What Problem This Solves

Fixes premature failure of WSL Gateway setup when the post-wizard restart exceeds Companion's old 30-second CLI cutoff. Timeout details were lost, and captured refusal text could invite another restart despite an unknown outcome.

Maintainer follow-up 86cc2f61b2dceec74c12b7c5806475fcfa205f9e fixes the reproduced diagnostic-truncation regression: recovery classification uses complete captured streams before display truncation, rather than searching the shortened message. Two internal init-only facts on existing StepResult carry classification without retaining raw output or adding a public/wire/config contract.

User Impact

Gateway restart gets 420 seconds and start gets 90 seconds. Post-wizard restoration shares a default 570-second lifecycle deadline across CLI attempts, guarded recovery, reachability and ownership checks. A timed-out command remains terminal and is not automatically repeated. Long diagnostic prefixes no longer suppress existing guarded recovery.

Accepted maintainer decision: retain the existing standalone three-attempt retry policy in this bounded PR. Completed non-timeout failures can consume nearly 1,260 seconds of restart CLI time, or 2,520 seconds when every attempt also takes the existing start-limit inner retry, plus reset/health/backoff. The first CLI timeout stops retries. No new standalone budget or retry mechanism is introduced.

Why This Change Was Made

Pinned Gateway 2026.9.6 permits 330 seconds for service stop and 60 seconds for replacement health. Companion adds preparation margin instead of killing the command at 30 seconds.

StartGatewayStep owns command execution; SetupWizardRunner owns restoration orchestration; GatewayWizardRestartRecoveryPolicy retains exact-marker policy. Ownership gates, reload-before-restart ordering, cancellation and sanitized/bounded diagnostics are preserved. No direct systemd restart fallback or ownership bypass.

Evidence

Four long-output regression cases failed on 32ea886e before repair and pass afterward: generic serving-owner and paired typed-contention refusal markers, each beyond a 3,000-character prefix in stdout or stderr. Four additional cases keep long-output timeouts terminal. Two negative cases require both exact contention markers. Final lifecycle suite: 37/37.

Independent app-native review used GPT-6 Astra (gpt-6-astra, high, long_context) and Claude Opus 5.5 (claude-opus-5.5, high) on the same frozen final-source diff. No accepted introduced source defects remain. Opus independently ran 148 affected tests successfully. Structured CLI autoreview was explicitly waived by the maintainer and was not run for this repair.

Both models agree: high consensus

Assessment Opus 5.5 GPT-6 Astra Fix confidence
Truncation classification repair No remaining defect No remaining defect 98%
Standalone retry wait Accepted policy tradeoff Accepted policy tradeoff No change
Exact-final-head strict MXC Unverified at review time Unverified at review time Subsequently passed on ARM64; see proof below

Only one model flagged: low consensus

Observation Opus 5.5 GPT-6 Astra Disposition / fix confidence
Local AI recovery rollback retains an approximately 165-second outer deadline MEDIUM, pre-existing Not flagged Out of scope; this PR does not claim to fix that caller. 70% for a separate policy change.
Guarded retry can receive a short remaining allowance LOW, design edge Not flagged Intentional shared-deadline policy; preserve tested remaining-budget behavior. 70% for a separate policy change.
Trailing diagnostic punctuation Cosmetic Not flagged No scope expansion. 99%.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-wsl-gateway-e2e: post-wizard restart, managed ownership and recovery. Exact-head hosted setup/connect proof passed.
  • windows-wsl-mxc: exact-head strict ARM64 proof passed on a fresh-build retry, 17/17 with zero skips and teardown exit 0. Initial fixture failure is recorded below, not discarded.

The earlier proof-scope waiver question is superseded by capable-host final-head validation. No MXC waiver or gate bypass is claimed or required.

Validation

Final source: 86cc2f61b2dceec74c12b7c5806475fcfa205f9e. Local validation used worktree OPENCLAW_REPO_ROOT and isolated tray data. The committed patch exactly matches the reviewed and validated diff; no subsequent source edits.

  • .\build.ps1: passed.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj: 4,143 passed, 36 skipped, 0 failed. Restore enabled for first-run worktree validation.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj: 3,180 passed, 0 skipped, 0 failed. Restore enabled for first-run worktree validation.
  • dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: 1,426 passed, 1 skipped, 0 failed.
  • Focused GatewayRestartLifecycleTests: 37 passed, 0 skipped, 0 failed.
  • Final-head hosted CI: passed, including CI Gate, Tray/setup/integration, and Setup and connect E2E. Run metadata confirms head SHA 86cc2f61b2dceec74c12b7c5806475fcfa205f9e.
  • Final-head hosted setup/connect TRX: 40 passed, 6 MXC cases NotExecuted, 0 failed, verified from downloaded e2e-test-results-setup-connect artifact. Hosted skips are not containment proof.
  • Strict final-head MXC on local Windows ARM64, Gateway 2026.9.6: 17 passed, 0 failed, 0 skipped, teardown exit 0. Fresh repository, tray and E2E builds; no -NoBuild or -AllowSkip. Exact-head proof and both attempts.
$env:OPENCLAW_REPO_ROOT=(Get-Location).Path
$env:OPENCLAW_E2E_GATEWAY_VERSION='2026.9.6'
.\scripts\validate-mxc-e2e.ps1 -ResultsDirectory .\TestResults\RestartClassificationFinalRetry\Mxc

Real behavior proof

Exact-head hosted E2E at 86cc2f61 passed these real Gateway cases:

  • FullSetup_WslAndGatewayConfiguration_FilesValidated
  • FullSetup_ForeignWslListener_IsRejectedBeforeGatewayStart
  • FullSetup_AlreadyRunningGateway_IsRecognizedAsServiceOwned
  • FullSetup_GatewayRestart_ReconnectsTrayAndNode
  • FullSetup_TrayConnects_OperatorAndNode
  • FullSetup_SafeNodeInvocation_RoutesThroughRealGateway

Evidence: Setup and connect E2E job, artifact e2e-test-results-setup-connect, OpenClaw.E2ETests.setup-connect.trx. Six MXC tests explicitly report hosted runners lack a working MXC/AppContainer runtime.

Current-head ARM64 MXC: all six MXC fixture cases and eleven port-lease cases passed. This exercised real Gateway -> Windows node -> MXC command execution, sandbox write rejection and executable allowlist behavior. Local TRX: TestResults\RestartClassificationFinalRetry\Mxc\OpenClaw.E2ETests.Mxc.trx; fixture TestResults\E2E\d011631d. Uninstall exited 0 at 18:44:14.690 UTC and teardown completed at 18:44:14.706 UTC on 2026-09-29. Full result.

Initial attempt retained: 11 passed, 6 failed, zero skips. All six failures came from shared fixture initialization at Windows-side operator pairing, before MXC assertions. Gateway startup returned HTTP 200 inside WSL; pairing then timed out and saw connection refusals. Rollback reported the test distro not running. Teardown exited 0. The logs do not establish why the distro stopped or whether forwarding contributed. This was not exhaustion of the 420-second restart CLI allowance. The unchanged fresh-fixture retry passed; intermittent setup reliability is not thereby proven fixed. Initial evidence remains in TestResults\RestartClassificationFinal\Mxc and fixture TestResults\E2E\97a2e49e.

Historical evidence: strict Gateway 2026.9.6/MXC validation at 32ea886efdef04798eca0f4dff0d13226f0e572b also passed 17/17 with zero skips and teardown exit 0. Earlier evidence. Final-head proof above supersedes the earlier coverage gap and satisfies Scott's rerun request.

Not verified / blocked: live typed-contention recovery; live successful CLI taking more than 30 seconds; live ownership-deadline fault injection; upstream watcher race determinism; root cause of the initial pairing/distro failure. Deterministic tests establish classification branches, not live fault injection. HTTP 200/401/403 means reachability, not authenticated readiness. No UI claims or screenshots.

Security Impact

  • New permissions or capabilities? No.
  • Secrets or tokens handling changed? Failure messages include both streams after existing SetupLogger sanitization and per-stream truncation to 2,048 characters. Internal recovery facts contain no raw output.
  • New or changed network calls? No.
  • Command or tool execution surface changed? Deadlines and timeout retry handling changed; commands, ownership admission, containment and command routing remain unchanged.
  • Data access scope changed? No.

Compatibility and Migration

  • Backward compatible? Existing CLI operations and reload ordering retained. Longer standalone wait explicitly accepted above.
  • Config or environment changes? No.
  • Migration needed? No.
  • Upgrade steps: N/A.

Review Conversations

  • The top-level truncation finding was reproduced and addressed; no inline review threads existed to resolve.
  • Remaining coverage limitations, both final-head MXC attempts and accepted retry-policy decision are recorded explicitly.

Bound post-wizard recovery with a shared deadline, preserve sanitized CLI diagnostics, and stop automatic retries after unknown timeout outcomes. Retain guarded ownership checks and existing reload ordering.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 06d057bc-5146-47e7-b299-c4a543244f9a
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge. Reviewed September 29, 2026, 2:21 PM ET / 18:21 UTC (Revision 9).

ClawSweeper review

What this changes

Extends WSL Gateway start and restart command limits, bounds post-wizard recovery, preserves guarded retry classification, and adds setup tests and documentation.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR open. Current main retains the premature Gateway command cutoff, and the earlier refusal-classification finding is repaired. No new code defect is established, but the maintainer-requested final-head MXC run and direct proof of the changed restart path remain outstanding.

Priority: P2
Reviewed head: 86cc2f61b2dceec74c12b7c5806475fcfa205f9e

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused coverage and no established source defect, while direct final-head native proof remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 11 items Current-main behavior: Fetched main still gives both Gateway commands a 30-second limit; the requested timeout repair is not implemented there.
Introduced command boundary: The PR gives restart 420 seconds and start 90 seconds, and makes a timed-out CLI result terminal.
Prior finding repaired: Recovery facts are classified from complete command streams before display truncation; timeout results do not carry retry authorization.
Findings None None.
Security None None.

How this fits together

The Windows Setup Engine runs the Gateway wizard in WSL, restores its reload setting, and restarts the Gateway. Command outcomes feed reachability and managed-ownership checks before setup reports success or failure.

flowchart LR
A[WSL setup wizard] --> B[Restore reload mode]
B --> C[Gateway command]
C --> D{Command outcome}
D -->|Timeout| E[Terminal setup failure]
D -->|Guarded refusal| F[Managed ownership check]
F -->|Trusted| C
D -->|Success| G[Reachability and final ownership]
G --> H[Setup result]
Loading

Before merge

  • Resolve merge risk (P1) - Final-head real WSL evidence covers normal setup and reconnection, but does not show a Gateway restart exceeding the former 30-second limit or guarded recovery on the changed command path.
  • Resolve merge risk (P1) - Strict MXC passed on an earlier head only. The final-head hosted run did not execute six MXC cases, leaving the maintainer-requested zero-skip run outstanding.
  • Complete next step (P2) - Provide redacted final-head WSL evidence of a restart beyond 30 seconds or guarded recovery, and complete strict Gateway 2026.9.6 MXC validation at that SHA with zero skips and teardown recorded. Updating the PR body should trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review. Redact IP addresses, keys, phone numbers, and private endpoints.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +147/-36; tests +487/-1 The production growth implements bounded orchestration and diagnostics, with substantial focused lifecycle coverage.

Merge-risk options

Maintainer options:

  1. Collect final-head WSL proof (recommended)
    Capture a redacted slow restart or guarded recovery trace and run strict Gateway 2026.9.6 MXC at the final SHA with zero skips and teardown recorded.

Technical review

Best possible solution:

Let an owned Gateway complete a slow restart within a bounded setup lifecycle, while preserving fail-closed ownership checks and useful redacted failure details.

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

Yes at the source boundary: current main passes a 30-second limit to Gateway restart although the pinned Gateway contract permits a longer stop and replacement window. A live current-main restart exceeding 30 seconds was not captured.

Is this the best way to solve the issue?

Yes for the Companion cutoff. The longer CLI allowance shares a restoration deadline, and uncertain timeouts and unverified ownership still fail closed; the changed path needs native proof.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against dd69815999ba.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded setup reliability repair whose changed slow-restart path still needs final-head native proof.
  • merge-risk: 🚨 compatibility: Existing standalone retries can wait substantially longer after merge; the maintainer explicitly accepted that operator wait-time tradeoff for this diff.
  • 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. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted final-head WSL output showing a successful restart beyond 30 seconds or guarded recovery.
  • Report the strict Gateway 2026.9.6 MXC command, final SHA, zero-skip TRX counts, and teardown result.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-29T00:50:48.786Z sha 42a761a :: blocked before merge. :: [P1] Preserve refusal markers before truncating CLI output
  • reviewed 2026-09-29T04:19:04.959Z sha 42a761a :: blocked before merge. :: [P1] Classify refusal markers before truncating command output
  • reviewed 2026-09-29T15:10:45.666Z sha 42a761a :: blocked before merge. :: [P1] Classify refusal markers before truncating command output
  • reviewed 2026-09-29T15:36:45.161Z sha 32ea886 :: blocked before merge. :: [P1] Classify refusal markers before truncating command output
  • reviewed 2026-09-29T16:01:08.261Z sha 32ea886 :: blocked before merge. :: [P1] Classify refusal markers before truncating command output
  • reviewed 2026-09-29T16:10:26.634Z sha 86cc2f6 :: needs changes before merge. :: none
  • reviewed 2026-09-29T16:24:15.756Z sha 86cc2f6 :: needs changes before merge. :: none
  • reviewed 2026-09-29T16:32:08.200Z sha 86cc2f6 :: blocked before merge. :: none

@karkarl
karkarl marked this pull request as ready for review September 29, 2026 04:15
@karkarl

karkarl commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Adversarial review verdict

Reviewed commit 42a761a7533c3df11e43a428fd9859f74ef287bf independently with Claude Opus 4.8 and GPT-5.3-Codex, then verified findings against the current code and its parent.

No confirmed introduced correctness or security defects. No shared defect findings. Both reviewers checked cancellation, terminal outcome propagation, guarded retries, and ownership preservation. Codex accepted no findings.

Observation Opus Codex Disposition / fix confidence
Final ownership verification deadline after successful CLI/reachability LOW Not flagged Fail-closed outcome is intentional. Improve diagnostic precision and coverage only; 95%.
Guarded retry failure drops the initial refusal from returned diagnostics LOW Not flagged Pre-existing observability limitation, not a regression. Preserve context; 95%.
Larger timeouts lengthen standalone retries LOW, intentional Not flagged Documented upstream-budget trade-off; no change recommended.

A reachable endpoint is not proof of authenticated readiness or managed ownership. We should not enlarge the budget or weaken final verification based on the first observation.

At the user's request, I am implementing the two diagnostic improvements with focused regression coverage. Ownership rules, deadlines, and restart ordering will remain unchanged. This successful dual-model review is separate from the previously failed external autoreview-helper attempts; it does not claim the helper passed.

@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
Distinguish completed CLI and HTTP reachability from final ownership-stage deadline exhaustion, and retain the first refusal when a guarded retry fails. Add eight deterministic diagnostic cases without changing deadlines, ordering, or ownership policy.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 06d057bc-5146-47e7-b299-c4a543244f9a
@karkarl

karkarl commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Implemented the diagnostic follow-up in 32ea886efdef04798eca0f4dff0d13226f0e572b:

  • Failed guarded retries retain the original refusal while preserving the final outcome.
  • Final ownership-stage deadline diagnostics acknowledge completed CLI restart and HTTP reachability without claiming authenticated readiness or successful ownership completion within budget.
  • Eight new deterministic cases cover both refusal types, retry timeout/non-timeout outcomes, and final probes that honor or ignore cancellation. Deadlines, ordering, and ownership protection are unchanged.

Final validation: full build passed; Shared 4,145 passed / 34 skipped; Tray 3,180 passed; SetupEngine 1,416 passed / 1 skipped; focused lifecycle suite 27 passed; strict pinned Gateway 2026.9.6/MXC 17 passed / 0 skipped, with successful teardown. Both Opus 4.8 and GPT-5.3-Codex reviewed the final follow-up and accepted no remaining findings. Separate autoreview-helper engine remains unavailable (exit 1), not claimed passed.

The PR body now contains current-head proof and limitations. Exact timeout diagnostic branches have deterministic coverage, not live fault-injection proof.

@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
Preserve exact guarded-recovery classification independently of bounded display text. Keep timeout outcomes terminal and retain existing ownership, ordering, and retry budgets. Cover long-output recovery and negative timeout/partial-marker cases.

Co-authored-by: Karen Lai <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: be3c6e86-d414-4bc9-b397-4d370a88f02c
@shanselman

Copy link
Copy Markdown
Collaborator

Addressed the confirmed truncation finding in 86cc2f61b2dceec74c12b7c5806475fcfa205f9e. Four long-output cases failed before repair and pass afterward; the full lifecycle suite is37/37. Recovery now consumes two internal classification facts, not truncated display text. Timeout outcomes, ownership checks,570s post-wizard budget and reload ordering are unchanged.

Independent app-native GPT-6 Astra and Claude Opus5.5 reviews found no accepted introduced source defects. Full build passed; Shared4143 passed/36 skipped, Tray3180 passed, Setup1426 passed/1 skipped. The body records the full review reconciliation and limitations.

Maintainer decision: keep the existing standalone retry policy in this PR, accepting up to roughly1260s of CLI work (2520s with every start-limit inner retry), plus reset/health/backoff. This is an explicit wait-time tradeoff, not a new retry mechanism.

@karkarl, please rerun strict MXC on your capable ARM64 host at 86cc2f6. Your17/17 proof at32ea886e remains useful historical evidence, but does not cover this final repair. In an isolated worktree at that SHA:

$env:OPENCLAW_REPO_ROOT=(Get-Location).Path
$env:OPENCLAW_E2E_GATEWAY_VERSION='2026.9.6'
.\scripts\validate-mxc-e2e.ps1 -ResultsDirectory .\TestResults\RestartClassificationFinal\Mxc

Please include exact SHA, command, TRX counters with zero skips, and teardown result. Do not use -AllowSkip or stale -NoBuild artifacts. This controller lacks BaseContainer and has no configured capable remote host. Final-head CI Gate and this proof remain merge gates; no bypass.

@shanselman shanselman added the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Sep 29, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 29, 2026
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
@karkarl

karkarl commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Strict final-head MXC proof: passed

Responding to Scott's exact-head rerun request: validated 86cc2f61b2dceec74c12b7c5806475fcfa205f9e on the local Windows ARM64 MXC-capable host, pinned to Gateway 2026.9.6 (eb377ac). Worktree remained clean at that SHA.

$env:OPENCLAW_REPO_ROOT=(Get-Location).Path
$env:OPENCLAW_E2E_GATEWAY_VERSION='2026.9.6'
.\scripts\validate-mxc-e2e.ps1 -ResultsDirectory .\TestResults\RestartClassificationFinalRetry\Mxc

No -NoBuild or -AllowSkip. The script rebuilt the repository, ARM64 tray app and E2E project.

TRX: total 17, executed 17, passed 17, failed 0, notExecuted 0, timeout 0, aborted 0. All six MXC fixture cases passed, including actual Gateway -> Windows node -> MXC execution, sandbox write rejection and executable allowlist cases. The strict validator explicitly passed its three required proof checks and exited 0.

Teardown: Uninstall completed with exit code 0 at 18:44:14.690 UTC; Teardown complete at 18:44:14.706 UTC on 2026-09-29.

Local evidence:

  • TestResults\RestartClassificationFinalRetry\Mxc\OpenClaw.E2ETests.Mxc.trx
  • TestResults\RestartClassificationFinalRetry\Mxc\OpenClaw.E2ETests.Mxc.console.log
  • TestResults\RestartClassificationFinalRetry-validation.log
  • Fixture artifacts: TestResults\E2E\d011631d

First attempt retained, not hidden

The preceding fresh-build run used TestResults\RestartClassificationFinal\Mxc: 11 passed, 6 failed, zero skipped. All six failures shared fixture initialization failure at operator pairing, before the MXC assertions. Gateway startup had returned HTTP 200 from inside WSL at 18:28:14 UTC; Windows-side pairing subsequently hit a 5-second HTTP request timeout, then connection refusals. At rollback, the test distro was reported not running. Teardown still exited 0.

This was not the restart CLI exhausting its 420-second allowance. The captured logs do not establish why the distro stopped or whether Windows/WSL forwarding also contributed. The unchanged, fresh-fixture retry passed; this does not prove the original failure's root cause or eliminate intermittent setup failures.

First-run artifacts remain in TestResults\RestartClassificationFinal\Mxc, TestResults\RestartClassificationFinal-validation.log, and TestResults\E2E\97a2e49e.

Final-head CI Gate is also green. No MXC waiver or gate bypass is needed. This proof does not claim live typed-contention fault injection, a successful CLI restart exceeding 30 seconds, or elimination of the broader reload/restart race.

@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(setup): avoid premature Gateway restart timeouts This is item 1/1 in the current shard. Shard 0/1.

This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@bkudiess
bkudiess merged commit 24263d3 into main Sep 29, 2026
33 checks passed
@bkudiess
bkudiess deleted the karkarl-alpha-review branch September 29, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants