Skip to content

Commit c319ba7

Browse files
steipetePeter Steinberger
andauthored
fix: publish fresh Sol/xhigh OpenClaw root-cause repairs safely (#974)
* fix: preserve fresh root-cause repair builds through secure archive validation * fix: preserve fresh builds through changed-gate fallback --------- Co-authored-by: Peter Steinberger <[email protected]>
1 parent 60ad878 commit c319ba7

6 files changed

Lines changed: 1007 additions & 110 deletions

File tree

‎.github/workflows/sweep.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ jobs:
409409
event-review-apply:
410410
name: Review exact event item
411411
if: ${{ github.event_name == 'repository_dispatch' && github.event.action != 'clawsweeper_target_sweep' && github.event.client_payload.queue_lease_id != '' && github.event.client_payload.source_action != 'exact_review_artifact_publish' }}
412-
runs-on: ubuntu-latest
412+
runs-on: ${{ vars.CLAWSWEEPER_REVIEW_RUNNER || 'ubuntu-latest' }}
413413
timeout-minutes: 120
414414
concurrency:
415415
group: clawsweeper-event-review-${{ github.event.client_payload.queue_claim.item_key || github.event.client_payload.item_key || github.run_id }}

‎src/repair/fix-prompt-builder.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ test("fix prompt makes Codex own the validation loop", () => {
9797
/do not refetch, rebase, or rerun validation solely because origin\/main advances/,
9898
);
9999
assert.match(prompt, /ClawSweeper performs one deterministic final base sync/);
100+
assert.match(prompt, /place generated archives under TMPDIR/);
101+
assert.match(prompt, /remove checkout-local temporary archives or incremental validation caches/);
102+
assert.match(prompt, /independent validation must preserve the target checkout identity/);
100103
assert.match(prompt, /use one repair loop against the pinned base/);
101104
assert.match(prompt, /use the dependency toolchain ClawSweeper already prepared/);
102105
assert.match(prompt, /never run an unrestricted package-manager install/);

‎src/repair/fix-prompt-builder.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function buildFixPrompt({
4040
"- establish one base snapshot for this Codex edit pass: use the supplied deterministic pre-edit rebase when it already succeeded, otherwise fetch origin/main once and rebase or otherwise sync once;",
4141
"- pin that base SHA while editing and validating; do not refetch, rebase, or rerun validation solely because origin/main advances during this edit pass;",
4242
"- after validation passes against the pinned base, return the repair; ClawSweeper performs one deterministic final base sync, then exact-head review and GitHub checks provide the final proof;",
43+
"- keep built runtime outputs needed for validation, but place generated archives under TMPDIR and remove checkout-local temporary archives or incremental validation caches you created before returning; independent validation must preserve the target checkout identity;",
4344
"- run local git status/diff/log/rebase/merge commands needed to reconcile this branch with the pinned base;",
4445
"- use the dependency toolchain ClawSweeper already prepared; never run an unrestricted package-manager install, hook installer, git config, or git config write; if an installation is unavoidable, use --ignore-scripts and never change core.hooksPath or other Git callback settings;",
4546
"- when git conflicts exist, resolve every conflict marker and leave the checkout in a normal non-rebasing state;",

0 commit comments

Comments
 (0)