Skip to content

fix(pr): scripts/pr keeps a lock after a failed command that fully drained - #169595

Merged
RomneyDa merged 3 commits into
mainfrom
fix/pr-stale-lock-recovery
Oct 12, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/pr-stale-lock-recovery

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

When a scripts/pr command fails after its first side effect (exit 1–127, no signal), the supervisor always retains the per-PR operation lock, even when the whole operation provably finished: its process group is dead and every holder of the inherited notification pipe has exited. The next command then stops with "the prior operation lock is orphaned" and needs scripts/pr lock-recover <PR> <OID> --confirmed-no-running-tools. During the 2026.10.5-beta.1 release that manual step was needed about 16 times, every time with the sole reason child exited with code 1.

User Impact

Maintainers and agents running scripts/pr no longer need manual lock recovery after an ordinary failed command that fully drained. The supervisor releases the lock and prints Released the operation lock for PR #N after exit code X; its process group and every notification-pipe holder exited. The failed command keeps its exit status. Everything that could hide still-running tools keeps today's sticky lock and exact lock-recover guidance: signals and interruptions, lingering same-group work, a notification pipe still open after the drain deadline, controller loss (supervisor killed), and indeterminate process-group state.

Why This Change Was Made

The supervisor already releases a clean exit on exactly this drain evidence (group dead and notification pipe closed by every holder, plus the leader's completion marker). The only remaining blind spot is an escaped descendant that also closes fd 3, a residual a clean exit already accepts (#124583). A self-ended failure after side effects leaves the same evidence, so retaining it only added a recovery step without ruling out anything more. Partial-state custody belongs to the existing owners and does not change: merge dispatch uncertainty stays in refs/openclaw/pr-merge-outcomes/<PR> (process-lock recovery never cleared it), baseline-refresh transitions stay in their journal, and publication receipts stay in place.

I deliberately did not add acquire-time auto-recovery based on a dead supervisor PID: after controller loss there is no drain observation. macOS does not expose other processes' environments (ps -E and KERN_PROCARGS2 return no env here), so a dead supervisor cannot rule out detached tools. Those locks keep the manual path.

Changes:

  • scripts/pr-lib/process-group-runner.mjs: failedOperationDrainAllowsLockRelease() admits release only when drainResult === "drained", the leader completion marker arrived, exit is 1–127, there is no signal or notification failure, and there is no lingering group.
  • scripts/pr-lib/merge-outcome.sh: pre-dispatch abort guidance now says to rerun merge-run, recovering the lock first only if it was retained.
  • scripts/AGENTS.md: lock policy updated.
  • Tests: new regression for the drained failed side-effects case. The forged phase re-entry check moved into the open-pipe retention test, where phase still decides release. Tests that asserted retention after a drained failure now assert release, keeping their state-custody assertions; signal and crash cases still assert retention.

Evidence

  • New regression releases a failed side-effects lock once its group and notification pipe drain: passes in 0.8s and fails against origin/main's runner (negative control run locally).

  • Full local runs (macOS, heavily loaded host, load average 30–90 from other sessions):

    • pr-operation-lock 57/57, pr-merge-auto-recovery 14/14, pr-merge-admin-completion 9/9, pr-merge-outcome 54/54, pr-merge-prior-ci-auto-replacement 43/43, pr-merge-prior-ci-recovery 21/21, pr-merge-prior-ci-main-drift 48/48, pr-merge-rest 109/109, pr-merge-admission 75/75, pr-merge-receipt 43/43, pr-worktree-interruption 8/8, pr-main-refresh 84/84, pr-git-maintenance 4/4, pr-worktree-provision-error 15/15.
    • Unaffected suites, all passing: crabbox-staging, pr-baseline-refresh, pr-correction-publication, pr-cross-checkout, pr-merge-body-provenance, pr-merge-completion, pr-merge-correction, pr-merge-head-drift, pr-merge-legacy-recovery, pr-merge-qualified-refusal, pr-merge-recovery, pr-prepare-preflight, pr-worktree-evidence, pr-worktree-state, upgrade-survivor-pending-delivery.
    • pr-worktree-provision: 15 passed, 1 skipped, 1 failed in the final run: materializes full cold/warm PR siblings, then preserves native sparse transitions. This is a success-path test that passed in the previous run of the same suite with this runner change. I classify it as host-load timing, not this change; CI is the next check.
    • pr-merge-admission dispatches ordinary squash once ... failed once in a loaded batch and passed on an isolated rerun (success path, exit 0, unaffected).
  • pnpm tsgo:test:root, oxlint, and oxfmt pass.

  • CI attribution (head 75dcf14b): the failing build-artifacts and check-additional-extension-package-boundary jobs, and the aggregate openclaw/ci-gate, are inherited from main. This PR doesn't cause them.

  • Both jobs fail in the TypeScript declaration build with the same errors:

    • src/state/openclaw-state-db-schema-additive.ts@4912: error TS2304: Cannot find name 'getAdmittedSqliteSchemaFacts'
    • @5005: error TS2304: Cannot find name 'parseSqliteTableDefinition'
    • Logs: build-artifacts job 114658045704 (run 38202273297) and boundary job 114658282513 (run 38202273603).
  • This PR touches only scripts/AGENTS.md, scripts/pr-lib/{process-group-runner.mjs,merge-outcome.sh} and test/scripts/*. It changes nothing under src/.

  • Current origin/main (e03a56d9423) has the same defect. src/state/openclaw-state-db-schema-additive.ts:118-119 calls getAdmittedSqliteSchemaFacts(...) and parseSqliteTableDefinition(...), but the file doesn't import either name.

  • main's recent CI runs report success, so the job they skip is the likely gap: the declaration build only runs on a dist cache miss ("Build dist on cache miss"). That's an inference I haven't confirmed. The fix belongs on main, not in this PR.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 scripts Repository scripts size: S labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Release operation locks after ordinary failed commands affirmatively complete and fully drain, while preserving their exit status and recovery records.

Example: A supervised operation for PR 42 exits 1 after side effects, emits its completion marker, and fully drains.

  • Before: The operation lock remains and the next command requires exact-owner manual recovery.
  • After: The supervisor releases the lock, reports why, and preserves exit status 1.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, coherent patch with useful production-owner fixture coverage; supplied proof remains harness-based, and the previous finding is resolved.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence exercises the production supervisor through subprocess fixtures, including reported base-negative control and retained recovery-state assertions.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers must manually recover orphaned locks after ordinary failed commands even when their supervised work has affirmatively finished.
Reason: The reported repeated recovery burden warrants the narrow change, and maintainer authorship supplies the direction decision.

Merge readiness

✅ Ready for maintainer review

This PR addresses a concrete maintainer workflow problem that remains on main. The previous documentation finding is fixed, and no actionable patch defects remain.

Priority: P2
Reviewed head: 39435c9c44b56f3b55c0329debc0f460bb216591

Before merge

None.

Findings

None.

Agent review details

How this fits together

The scripts/pr supervisor serializes maintainer operations using per-PR Git refs, observes child completion and process drainage, and releases eligible locks independently of retained merge outcomes.

flowchart TD
  A[PR command] --> B[Process supervisor]
  B --> C[Operation shell]
  C --> D[Completion and pipe notifications]
  D --> B
  B --> E[Exact owner lock release]
  C --> F[Retained merge outcomes]
Loading

Technical review

Best possible solution:

Use the existing supervisor to release affirmatively completed, fully drained failures while preserving independent recovery custody.

Do we have a high-confidence way to reproduce the issue?

Main's release predicate demonstrably excludes fully drained post-side-effect failures; the author reports a passing regression and failing base control, and this review executed no target code.

Is this the best way to solve the issue?

The change belongs in the existing lifecycle owner and preserves exact-owner release, uncertain-operation retention, and separate merge reconciliation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e8b8942affda.

Provenance checked

  • Operation-lock release eligibility changes intended behavior with a stated reason (63bae0d: Require affirmative leader completion and retain non-validation failures and uncertain process lifetimes.)
  • Pre-dispatch recovery guidance keeps the original intent (513f948: Distinguish confirmed pre-dispatch aborts from uncertain dispatches using retained outcomes and captures.)
  • Recovery-state assertions keeps the original intent (cb5d89b: Prevent duplicate merges after ambiguous responses independently of process-lock recovery.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 63bae0d adds scripts/pr-lib/process-group-runner.mjs:352 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 63bae0d69f2f; files: scripts/pr-lib/process-group-runner.mjs)
  • Vincent Koc: Raw commit dab8c15 adds scripts/pr-lib/process-group-runner.mjs:777 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: dab8c1513dbc; files: scripts/pr-lib/process-group-runner.mjs)

PR surface

Tests +3, Docs 0, Other +30. Total +33 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 15 83 80 +3
Docs 2 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 32 2 +30
Total 19 117 84 +33

Review metrics

Metric Value Why it matters
Production versus test growth Production +30 lines net; tests +3 lines net The guarded release predicate and diagnostic justify production growth; existing recovery coverage is adapted rather than duplicated.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Unnecessary manual lock recovery repeatedly interrupts maintainer workflows, with an existing recovery command available.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-12T04:09:06.964Z sha 75dcf14 :: needs changes before merge. :: none
  • reviewed 2026-10-12T04:17:20.011Z sha 75dcf14 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T22:10:26.504Z sha 25d553a :: needs changes before merge. :: none
  • reviewed 2026-10-12T22:26:39.201Z sha b010060 :: needs changes before merge. :: [P3] Remove the obsolete blanket failure-retention claim

Reviewed October 12, 2026, 6:48 PM ET / 22:48 UTC (Revision 5).

@RomneyDa

Copy link
Copy Markdown
Member Author

CI attribution for head 75dcf14b: the failing build-artifacts and check-additional-extension-package-boundary jobs, and the aggregate openclaw/ci-gate, are inherited from main. This PR doesn't cause them.

  • Both jobs fail in the TypeScript declaration build with the same errors:
    • src/state/openclaw-state-db-schema-additive.ts@4912: error TS2304: Cannot find name 'getAdmittedSqliteSchemaFacts'
    • @5005: error TS2304: Cannot find name 'parseSqliteTableDefinition'
    • Logs: build-artifacts job 114658045704 (run 38202273297) and boundary job 114658282513 (run 38202273603).
  • This PR touches only scripts/AGENTS.md, scripts/pr-lib/{process-group-runner.mjs,merge-outcome.sh} and test/scripts/*. It changes nothing under src/.
  • Current origin/main (e03a56d9423) has the same defect. src/state/openclaw-state-db-schema-additive.ts:118-119 calls getAdmittedSqliteSchemaFacts(...) and parseSqliteTableDefinition(...), but the file doesn't import either name.
  • main's recent CI runs report success, so the job they skip is the likely gap: the declaration build only runs on a dist cache miss ("Build dist on cache miss"). That's an inference I haven't confirmed. The fix belongs on main, not in this PR.

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@RomneyDa
RomneyDa force-pushed the fix/pr-stale-lock-recovery branch from 75dcf14 to 25d553a Compare October 12, 2026 22:03
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 12, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@RomneyDa
RomneyDa merged commit a939a9d into main Oct 12, 2026
109 checks passed
@RomneyDa
RomneyDa deleted the fix/pr-stale-lock-recovery branch October 12, 2026 22:53
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…ained (openclaw#169595)

* fix(pr): release drained failed-operation locks instead of requiring manual recovery

* test(pr): drop unused lock owner initializer

* docs(pr): drop obsolete blanket failure-retention claim
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…8170)

* fix: ClawHub release verification fails while publication is pending (#168153)

* fix(release): verify ClawHub only after public finalization

* fix: align ClawHub recovery with authoritative publication state

(cherry picked from commit 7985ac2)
Co-authored-by: RomneyDa <[email protected]>

* fix: Linux feed publication tolerates stale public downloads (#168179)

(cherry picked from commit 18f2006)
Co-authored-by: RomneyDa <[email protected]>

* feat(pr): scope worktree cleanup to one PR (#168152)

(cherry picked from commit 51c0f56)
Co-authored-by: RomneyDa <[email protected]>

* feat(release): reconcile exact owned validation cancellation trees (#168267)

* feat(release): reconcile exact owned FRV cancellation trees

* fix(release): parse cancellation provenance with fixed patterns

* fix(release): normalize rerun copies before cancellation discovery

(cherry picked from commit 02a2bd2)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): recover failed receipts without rerunning workloads (#168266)

* fix: recover failed release receipts without rerunning workloads

* test(release): materialize publication harness preload closure

(cherry picked from commit 4485101)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): restore Telegram progress E2E delivery (#168675)

(cherry picked from commit 1fbfd4a)
Co-authored-by: RomneyDa <[email protected]>

* docs(release): generate release notes once after validation-recovery backports (#169495)

(cherry picked from commit 696fb2f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): explain why release:candidate --workflow-sha must be trusted main (#169496)

(cherry picked from commit 513d0e7)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): full release validation helper fails when main advances before admission dispatch (#169500)

(cherry picked from commit 992410c)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): derive attested publish tooling in npm postpublish verification (#169497)

(cherry picked from commit 1f8307f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): report candidate supersession and resume watchers (#168271)

* fix(release): report candidate supersession and resume watchers

* fix(release): keep invalid candidate metadata advisory to watchers

(cherry picked from commit cdb57ac)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): stop waiting for advisory ClawSweeper reviews (#169739)

(cherry picked from commit c2d1513)
Co-authored-by: RomneyDa <[email protected]>

* ci: let PR checks finish and classify inherited failures (#169647)

* ci: finish PR jobs and classify failures against main

* ci: distinguish signature and job-name failure attribution

* test(ci): avoid object spread in failure fixtures

* ci: classify differing validation scopes as unknown

(cherry picked from commit 7c4ff5a)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): scripts/pr keeps a lock after a failed command that fully drained (#169595)

* fix(pr): release drained failed-operation locks instead of requiring manual recovery

* test(pr): drop unused lock owner initializer

* docs(pr): drop obsolete blanket failure-retention claim

(cherry picked from commit a939a9d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): success headline hides post-swap steps that did not run (#170490)

(cherry picked from commit f26cdca)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): require current website downloads at closeout (#170704)

* fix(release): require current website downloads at closeout

* fix(release): verify request-time downloads before closeout receipts

* style(release): use braces for dispatch validation

(cherry picked from commit 0c51cc6)
Co-authored-by: RomneyDa <[email protected]>

* fix(ci): prevent avoidable FRV retries and cold setup failures (#170964)

* fix(ci): preserve FRV work through transient GitHub reads

* fix(ci): retain cache reads for frozen workflow targets

* fix(ci): count contributing packed release timing samples

* fix(ci): avoid stalled iOS simulator diagnostics

* test(ci): correct FRV regression assertions and output capture

(cherry picked from commit 5cd688d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): stabilize stalled recovery cleanup validation (#171507)

* test(update): await recovery descendant before fixture expiry

Expire the generated helper recovery timeout callback after the isolated command has persisted a live descendant PID and emitted readiness. Keep process-group termination and close joins native, retain the durable failed sentinel and dead-descendant assertions, and bound missing readiness with a fixture watchdog.

Refs #170803 (stalled-recovery fixture race only).

* test(update): load recovery clock from fixture module

Replace the added hand-written preload source template with a test-owned ESM fixture and per-case JSON configuration. Preserve exact helper and recovery command scoping, native timeout callback and watchdog cleanup, persisted descendant readiness and existing deadline, close-order, sentinel and process-death assertions.

Production behavior and deadlines are unchanged. Refs #170803 (stalled-recovery fixture race only).

* test(update): join state workers before handoff cleanup

Await the maintained state-database test cleanup owner before removing managed-handoff fixture directories. Synchronous native-handle close only starts worker retirement and can race the final WAL cleanup, observed as ENOTEMPTY in the retained-notification triage case.

Reuse closeStateDatabaseForTest without retries, timing seams, triage behavior changes or production changes. Refs #170803 (managed-handoff test fixtures only).

(cherry picked from commit 4a25358)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): retire session MCP managers left by earlier test files (#172515)

(cherry picked from commit d4be691)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): show publication release and Windows source identities (#170274)

(cherry picked from commit 35fffec)
Co-authored-by: RomneyDa <[email protected]>

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): packed package check refuses a root dist above 10,000 JavaScript files (#172954)

(cherry picked from commit 244cd79)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): Bun agents-support shard fails after the question authority test leaks sharing reads (#172974)

(cherry picked from commit 54f0b41)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile (#173105)

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile

* test(googlechat): keep the direct smoke test deadline above its child budget

(cherry picked from commit 8bc4915)
Co-authored-by: RomneyDa <[email protected]>

* fix(test): interrupted test wrappers miss their signal exit verifying a generation (#173068)

* fix(test): interrupted test runs miss their signal exit verifying a generation they will delete

* fix(test): keep borrower disposal verification; skip it only for interrupted wrappers

* fix(test): return the shim interruption result on every path

(cherry picked from commit b66e0fc)
Co-authored-by: RomneyDa <[email protected]>

* test(openshell): registration lifecycle test fails when registry retirement outlasts its 1s poll (#173205)

(cherry picked from commit 7cd0f47)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): give relocated worker facade and image tests the archive budget (#174556)

(cherry picked from commit 746a52a)
Co-authored-by: RomneyDa <[email protected]>

* test(ui): settle lazy preference reader before profile identity waits (#174614)

(cherry picked from commit d6ea634)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): collect Bun recovery retention from a timer phase (#174924)

Bun's JavaScriptCore scans native stacks conservatively. Under load, the
immediate dispatcher can keep a stale pointer to the completed recovery
fixture graph across every immediate-phase collection, so the retired
PluginInstance stayed reachable only through GC-internal roots. A
collection from a timer callback releases it. When the expected
references are still live after the existing immediate passes, run up to
four timer-phase collections; a strong retainer still fails.

(cherry picked from commit 8919729)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): adapt worker archive timeout backport

Keep the release branch test inventory while granting the two relocated archive cases the intended three-minute budget.

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): adapt unloaded-thread recovery to release params

Use the release branch request parameter directly when deciding whether an ordinary bound thread may be resumed.

Co-authored-by: RomneyDa <[email protected]>

* test(codex): adapt recovery fixture to release helper

Use the release branch thread-result helper signature so the recovery regression validates the intended thread identity.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
RomneyDa pushed a commit that referenced this pull request Oct 20, 2026
Allow explicitly confirmed recovery of an accepted, terminally failed direct REST merge only after an authoritative result reread and fresh ordinary admission. Retain the exact async failure and prior outcome through existing CAS ancestry; keep pending, expired, SHA-bearing, and changed-head outcomes fenced.

Backport note: #178170 carried this change's async-failure admission
check and tests (through #169595/#169739 conflict context) without the
async_failure declaration, recovery selection, intent recording, and
outcome validation, so every merge-run under set -u exited with
"async_failure: unbound variable". The merge.sh conflict keeps the
release form without the retired ClawSweeper review gate; the test
file keeps the post-#169595 expectations already on the branch.

(cherry picked from commit 1a6709e)
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant