Skip to content

fix(crabbox): preserve Boat source and retained lease ownership - #191845

Merged
vincentkoc merged 5 commits into
mainfrom
fix/boat-source-capsule-20261103
Nov 10, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
fix/boat-source-capsule-20261103

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Ordinary Boat runs bypass the wrapper's verified source capsule and can leave retained claims tied to temporary checkouts. Applying the capsule also replaces native transport Git state, losing sync metadata needed for warm reuse.

Boat now uses the existing capsule, hydration, timing and eligible claim-restoration paths. Payloads see the verified source carrier. After the payload process group stops, the receiver restores the original native Git directory without resetting source files, modes, caches or artifacts. Claims with bound cleanup receipts retain their original checkout for recovery.

The joined payload path is Boat-only. Scripts and stdin preserve exact bytes, shebangs, arguments and exit status. Signals reach the owned process group; unverified shutdown or restoration retains recovery state.

Exact candidate: eabdc29c50764bf54f5486ca03a89995b6b788e6. It includes the landed CI hook-preparation fix from #192138. The latest correction adds a four-line, Boat-only stderr handler: SSH can close its output readers before receiver cleanup; ignoring only EPIPE lets Git restoration finish. Other stderr errors are rethrown. The separate unpublished-source change in #192164 still needs its own parent integration.

Validation

  • Exact candidate with released Crabbox 0.82.0: one bounded, default-size, environment attachment disabled Boat run passed seeded source transfer (1 file, 11,121 bytes), verified source/base/carrier identity, payload cancellation, and workspace-owner release. An independent reader then proved the named child was gone, the original native Git state was restored, and the temporary Git backup was gone. A subsequent real wrapper command returned exit code 37 and preserved both stdout and stderr. The exact VM was deleted, all-state absence and no extra VMs were verified, and all local test child processes exited. The native stop reported hydration-stop and egress-client shutdown warnings; it returned0, and independent deletion verification passed. The managed 0.82.0 floor landed in fix(crabbox): require the published 0.82.0 distribution #194681.
  • The actual receiver fixture reproduces the closed-output failure on unchanged 2e771: closed stdout/stderr readers plus SIGTERM cause an observed receiver EPIPE and leave the native Git backup retained. With the fix, both open/closed-reader cases exit143 and prove named-child absence, exact native Git inode/HEAD/index/sync metadata, and no backup before recovery cleanup. The monitor observes errors without suppressing them.
  • Full-file validation recorded 304 passed, 6 failed, 1 skipped in 774.085 seconds. All six failures reproduced with unchanged 2e771: an obsolete whole-payload alias assertion and a copied dynamic Node missing its prefix library directory in five dependency fixtures. Narrow test repairs preserve the provider-argument contract, fixture-owned executable and existing dependency/lifecycle assertions. Those exact six cases then passed; no second full-file green run is claimed.
  • The new receiver regression, six transport siblings, scoped lint/types/format/diff checks and final independent source/local review passed. Existing regressions cover dirty/deleted source, carrier identity, exit code 37, termination, installer failure and exact 140 KiB script/stdin bytes.
  • Prior-head 2e771 with the matching complete 4ddf563c package passed cold/warm source, bytes/mode/deletion, output, same-VM reuse, claims and cleanup. Both artifact payloads were reread after exact VM deletion and all-state absence. This remains prior-head evidence; historical incomplete attempts and their exact cleanup results remain retained in the native review record.

Remaining Gates

The missing exact-candidate cancellation, independent Git-restoration and exit code 37 behavior is now proved with the released client. The exact-head correction review is validated and native preparation records pending GitHub gates. This PR is ready for review and awaits current-head CI admission. Provider defaults and wider CI routing remain tracked separately in #190941.

Related migration: #190941

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

clawsweeper Bot commented Nov 3, 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 docs Improvements or additions to documentation scripts Repository scripts size: M labels Nov 3, 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. labels Nov 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 0210f6b2f152c7d99ee79f683af92fe6609a6a96, but the PR head is now eabdc29c50764bf54f5486ca03a89995b6b788e6. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T11:37:31.830Z sha 0210f6b :: needs real behavior proof before merge. :: [P1] Preserve caller ownership before implicitly reclaiming Boat leases

* fix: keep CI preparation from changing Git hooks

* chore: format CI preparation regression

(cherry picked from commit 3bbbcd4)
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 9, 2026 17:02
@vincentkoc
vincentkoc merged commit 5669d5d into main Nov 10, 2026
182 checks passed
@vincentkoc
vincentkoc deleted the fix/boat-source-capsule-20261103 branch November 10, 2026 00:02
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…claw#191845)

* fix(crabbox): preserve Boat source and retained claim ownership

* test(crabbox): avoid map spreads in source fixtures

* fix(crabbox): restore Boat transport Git after source execution

* fix: keep CI preparation from changing Git hooks (openclaw#192138)

* fix: keep CI preparation from changing Git hooks

* chore: format CI preparation regression

(cherry picked from commit 8c449fe)

* fix(crabbox): restore source Git when SSH output closes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant