Skip to content

fix: stop Gateway scenarios when readiness fails - #276

Merged
vincentkoc merged 3 commits into
mainfrom
fix/gateway-cold-turn-proof
Nov 21, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/gateway-cold-turn-proof

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

A scenario could send a cold turn after its Gateway failed the readiness check. The resulting socket error hid the earlier startup failure.

User Impact

Kova ends a scenario at a failed product readiness checkpoint and keeps the probe result available for diagnosis.

Why This Change Was Made

The service command can succeed before the Gateway accepts traffic. Use the collected /readyz result to decide whether to proceed. Harness checkpoints still collect their upgrade evidence, and ordinary teardown runs after the failed product checkpoint.

Evidence

  • On unpatched Kova, the Linux regression's fixture answered /health with 200 and /readyz with 503. The runner still executed the dependent turn. AWS Crabbox repro
  • The new test checks that an unready harness phase can proceed to the product checkpoint, and that failed product readiness skips the turn and destroys the disposable environment once. All 34 focused tests passed on Linux with Node 24.22.1. The runner verified the five changed file hashes for bd5c3b95d87. AWS Crabbox test output
  • A separate packaged OpenClaw 2026.11.6 run reproduced startup shutting down after temporary-directory validation. With the readiness fix, Kova recorded the failed checkpoint, skipped the cold turn, and destroyed the environment. Packaged Gateway receipt

@clawsweeper

clawsweeper Bot commented Nov 21, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 21, 2026 16:13
@vincentkoc
vincentkoc merged commit 788ae4c into main Nov 21, 2026
12 checks passed
@vincentkoc
vincentkoc deleted the fix/gateway-cold-turn-proof branch November 21, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant