Skip to content

fix: stop native resource admission when the broker disconnects - #201106

Merged
vincentkoc merged 1 commit into
mainfrom
fix-broker-failed-admission-20261118
Nov 18, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-broker-failed-admission-20261118

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

A disconnected native-resource broker can briefly accept new resource claims while its asynchronous failure diagnosis is still pending. A new retained-worker source can therefore reuse an already retired broker.

User Impact

New resource claims are rejected immediately after broker transport failure. Existing native-resource custody, close receipts, and detailed failure diagnosis are preserved.

Why This Change Was Made

The resource-claim owner now closes admission synchronously using its existing sealed state. Error publication still follows the existing asynchronous diagnosis path. The regression extends the existing transport-retirement fixture and checks both the public admission state and an actual capture attempt before awaiting failure notification.

This gap was found while investigating the retained-broker failure in scheduled CI. The full Linux lifecycle file also passed unchanged, so this PR does not claim to establish the cause of that complete CI failure.

Evidence

  • The new disconnect regression fails on the base because a new claim is accepted, then passes with the fix.
  • Full transport-retirement matrix: 19 passed. Four broker sibling files: 31 passed, 12 platform skips. Retained-worker lifecycle file: 16 passed.
  • Targeted type-aware lint, services test-type check, formatting, and diff checks passed.
  • Local proof used Node 24.22.1 and the repository-pinned Bun fork in a qualified native checkout with exact changed-file overlays and matching broker, lifecycle, configuration, and dependency inputs; all borrowed source bytes were restored. This is bounded owner proof, not a full-repository replay.
  • Fresh local ClawSweeper review of 1fc5296c → f2aab327: no actionable findings (0.94 confidence).

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

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

@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 09:33
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 09:34
@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. labels Nov 18, 2026
@vincentkoc
vincentkoc merged commit adbb158 into main Nov 18, 2026
200 checks passed
@vincentkoc
vincentkoc deleted the fix-broker-failed-admission-20261118 branch November 18, 2026 09:45
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
RomneyDa added a commit that referenced this pull request Nov 19, 2026
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
…claw#201106)

(cherry picked from commit adbb158)

Release adaptation: Add immediate resource admission seal at existing host failure boundary; adapt regression to baseline matrix and observe synchronous disconnect admission. Omit unrelated upstream request binding cleanup absent from baseline.

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

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. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant