Repository navigation
fix(crabbox): preserve Boat source and retained lease ownership - #191845
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
5 tasks
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
* fix: keep CI preparation from changing Git hooks * chore: format CI preparation regression (cherry picked from commit 3bbbcd4)
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 onlyEPIPElets Git restoration finish. Other stderr errors are rethrown. The separate unpublished-source change in #192164 still needs its own parent integration.Validation
2e771: closed stdout/stderr readers plus SIGTERM cause an observed receiverEPIPEand 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.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.2e771with the matching complete4ddf563cpackage 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