You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(sandbox): publish remote skills atomically via staged rotation - #162445
Remote skills refresh currently clears the live skills directory before uploading its replacement. If the transfer is interrupted, the sandbox is left with a partial skills tree.
This change uploads into a same-parent staging directory, then rotates the completed tree over the live destination. If publication fails, the previous live tree is restored; failed staging cleanup cannot mask the original error.
Validation
Rebased onto current upstream main.
Added cancellation coverage for stage/upload/publish phases.
Added regressions proving failed upload leaves the live tree untouched.
Added direct execution tests for the shipped Python rotation helper, including missing staging and parent-escape cases.
Downstream CodeQL/OpenGrep/security lanes passed on the original leaf; fresh CI on the rebased head is running.
Opened as draft until the fresh rebased checks complete.
Summary
The latest durable ClawSweeper review was for head 9dd7b81be4051d896653e1e97fa256a6c2de55c5, but the PR head is now 107f8e21dd368598ef82f5a0b39e8854a846bab0. Its old verdict and PR readiness labels are no longer current.
Next step
Run or wait for a fresh ClawSweeper review on the current PR head.
Review history (3 earlier review cycles)
reviewed 2026-10-01T06:01:46.313Z sha f13f459 :: needs real behavior proof before merge. :: [P2] Validate the staging path before creating it | [P2] Keep the live skills path present during interrupted publication | [P2] Update the SSH workdir fixtures for the publish command | [P2] Restrict the Python rotation tests to supported host platforms
reviewed 2026-10-01T06:19:43.880Z sha cf68478 :: needs real behavior proof before merge. :: [P2] Validate the staging path before creating it | [P2] Keep the live skills path present during interrupted publication | [P2] Update the SSH workdir fixtures for the publish command | [P2] Restrict the Python rotation tests to supported host platforms
reviewed 2026-10-01T07:31:20.655Z sha 9dd7b81 :: needs real behavior proof before merge. :: [P2] Validate the staging path before creating it | [P2] Keep the live skills path present during interrupted publication | [P2] Update the SSH workdir fixtures for the publish command | [P2] Restrict the Python rotation tests to supported host platforms
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
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.
Summary
Remote skills refresh currently clears the live skills directory before uploading its replacement. If the transfer is interrupted, the sandbox is left with a partial skills tree.
This change uploads into a same-parent staging directory, then rotates the completed tree over the live destination. If publication fails, the previous live tree is restored; failed staging cleanup cannot mask the original error.
Validation
main.Opened as draft until the fresh rebased checks complete.