openclaw/scripts/pr-lib
Peter Steinberger 8c13f8c8f9
fix(pr): recover interrupted checkouts and isolate allocation state (#152069)
Fix PR worktree provisioning that could write allocation leases into the operator's Gateway database and leave unusable checkout directories after interruption.

Keep allocation leases and template records in repository-owned PR state. Scale checkout deadlines and bounded Git cleanup grace to measured tree size, and remove only unchanged, exclusively reserved partial checkouts while current allocation and PR-lock authority still hold. Preserve foreign or registered worktrees and uncertain cleanup; failed operations still require exact-lock recovery.

Tooling release note: interrupted native PR checkouts can recover without manual directory deletion, and allocation state stays separate from Gateway state. No Gateway restart, operator-state migration, schema change, dependency change, or new option.

Related sightings: #151459, #151470, #151385, #151370, #151568.

Validation: 359 focused Testbox tests passed with one APFS-only skip; check:changed passed. Exact-head CI run 35382721022 succeeded, and all 293 check runs for the reviewed head completed without failures. Codex autoreview and ClawSweeper found no actionable findings.
2026-09-18 12:49:15 -07:00
..
changelog.sh
ci-dispatch.mjs
clawsweeper-review-gate.mjs
common.sh fix(maintainer): validate reviews early and show CI job progress (#150987) 2026-09-18 01:36:34 +08:00
crabbox-gate-contract.mjs
crabbox-gate-plan.mts
crabbox-merge-bypass.mjs
crabbox-merge-bypass.sh
darwin-process-identity.py fix: PR review cannot initialize inside the macOS sandbox (#149776) 2026-09-16 14:13:48 -06:00
gates.sh fix(ci): require fresh checks after relevant main changes (#149143) 2026-09-15 10:47:53 -07:00
gh-api-preflight.mjs
materialize-dependencies.mjs fix(pr): give materialized wrappers their dependency context (#150504) 2026-09-17 00:07:47 -07:00
merge-body.mjs fix: omit automation service aliases from squash coauthors (#148883) 2026-09-15 01:06:34 -07:00
merge-legacy-refusal.mjs fix(pr): resume qualified legacy merge refusals without losing evidence (#149674) 2026-09-15 21:42:34 -07:00
merge-outcome.sh fix(scripts): explain merge aborts and invalid review fields (#151996) 2026-09-18 11:35:37 -07:00
merge.sh fix(scripts): explain merge aborts and invalid review fields (#151996) 2026-09-18 11:35:37 -07:00
operation-lock.sh fix: PR review cannot initialize inside the macOS sandbox (#149776) 2026-09-16 14:13:48 -06:00
prepare-core.sh fix(maintainer): validate reviews early and show CI job progress (#150987) 2026-09-18 01:36:34 +08:00
process-group-runner.mjs fix(pr): recover interrupted checkouts and isolate allocation state (#152069) 2026-09-18 12:49:15 -07:00
push.sh
review-artifacts.mjs fix(scripts): explain merge aborts and invalid review fields (#151996) 2026-09-18 11:35:37 -07:00
review-transition-state.mjs fix: recover PR preparation after committed merge conflicts (#148063) 2026-09-14 02:32:35 -06:00
review.sh fix(maintainer): validate reviews early and show CI job progress (#150987) 2026-09-18 01:36:34 +08:00
worktree-provision.mts fix(pr): recover interrupted checkouts and isolate allocation state (#152069) 2026-09-18 12:49:15 -07:00
worktree.sh fix(worktrees): avoid incomplete partial-clone fetches (#150909) 2026-09-17 07:06:39 -07:00
wrapper-components.txt fix(secrets): recover Gateway tokens corrupted by redacted saves (#151250) 2026-09-18 11:56:28 -07:00