Skip to content

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

Merged
RomneyDa merged 2 commits into
mainfrom
fix/release-f09-20261009
Oct 12, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/release-f09-20261009

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Batch 3 F09: native FRV watchers omit candidate supersession and repeat their terminal notification on restart. Related issue: #168243.

Why This Change Was Made

The watcher also collects the independently dispatched candidate and plugin-npm producer lanes through the existing dispatch parser; both had fail-before proofs for premature completion. One candidate projection now serves status and watch. It uses the authenticated immutable execution plan's candidate/context, never the parent's tooling SHA. Mutable Git refs bypass the watcher relay cache and validate their exact identity. Missing/unsealed or SHA-only contexts remain explicitly unknown.

Candidate events deduplicate only the last observation, so returning to an earlier tip is reported. Terminal notification joins the existing attempt-bound deduplication. Restarting an absent/exited watcher uses the same native command and state; it performs reads only. The watcher client type explicitly requires the capabilities supplied by its canonical production caller; no optional-method fallback path was added.

User Impact

Watchers keep observing the exact old parent after a context tip advances, label its candidate superseded, and say that it does not qualify the current tip. NDJSON exposes candidate SHA, context ref, observed tip, and current/superseded/unknown separately from qualification. Candidate metadata remains advisory: a missing artifact or ref produces unknown without blocking independently verified terminal completion. No dispatch, retry, publication, cancellation, configuration, database, or permission changes.

Evidence

  • Fail-before boundary regressions cover supersession, missing artifact/ref observations, plan validation/binding, and independent producer completion. Final focused owner run: node scripts/run-vitest.mjs test/scripts/frv.test.ts test/scripts/frv.release.test.ts — 204 passed. Includes tip rebound, unknown observations, rate-limit restart, terminal deduplication, and a subprocess transport proof requiring fresh ref reads.
  • Fresh full-candidate P0–P2 autoreview: scoped-clean, no actionable findings. Root directly inspected the complete runtime diff and candidate/status/watch owner paths; review's static context limitations do not substitute for executed proof.
  • Read-only native CLI on real parent 37736976027: frozen candidate bcfc88812a35243893585dbeca87ca41b48272ca observed current on release/2026.9.9, independently of tooling identity. Repeating the same native command and state emitted zero NDJSON events, exit0. Prior real parent38021080676 with SHA-only context emitted unknown.
  • Tip advancement/rebound remains fault-injected at the native observer boundary. No production release branch was changed. This is not a supplied live current-to-superseded transition transcript.
  • Rebased once onto green main d54483901779f1acf9cd84f2c902d205d7ae1e5a (main CI). The only conflict was continuation documentation: retained main's retry/receipt guidance and this PR's observer/restart guidance. Runtime/test patches are unchanged; exact local merge-tree is clean.

Ownership and scope

Entry/caller: native frv watch -> createClient -> watchRelease; canonical candidate owner shared with inspectQualificationStatus. Callee: native authenticated artifact loader and execution-plan validator; sibling: unchanged continuation, strict seal verification, and child observation. Current-main controller blob was compared live and remains identical to the baseline. Prior F01 throttle/restart and F03 qualification/Decision/Drain behavior are preserved.

Production LOC: scripts/frv.mjs +94 net, declaration +16 net; tests +220 net, docs +15, skill guidance +8. Growth adds the previously missing read-only candidate observation and typed NDJSON capability; existing status projection is consolidated rather than duplicated. Tests and docs are separate.

Proof gaps / named follow-ups

No live tip mutation or new validation/publication was authorized. Existing watcher JSON is legacy notification storage debt; this PR adds no durable fields. Database-first notification migration requires its own approved owner design. Completion retains the existing dispatch-log collection contract and never grants qualification authority; a sealed-child inventory fallback when historical logs are unavailable is a separate owner follow-up. F02 owns canonical artifact-reader outage retention/deadline behavior; no second transport/cache was introduced here.

Release-note context: release watchers report frozen-candidate supersession accurately and resume without duplicate settled notifications.

Docs: https://docs.openclaw.ai/reference/full-release-validation/continuation.

Current review handoff

Current head: fa256aea23f5cefe1a290d89f7d0dc7755941a01, rebased onto main db6449d3f6091740dbddcf02fdc0e34dc94ca424 for its newly landed migration-witness Kysely guard repair. Both PR commits remain patch-identical by range-diff; no conflicts. Fresh full-candidate P0–P2 autoreview is scoped-clean; all 204 focused tests pass again; pnpm lint:kysely passes. Prior relevant formatting, script/test types, scripts/test lint, coercion, Docker boundary and raw-http2 guards passed; script export scan passed. Earlier full changed-gate dead-export failures are retained as historical non-passing proof, not current green claims (isPollVoteEchoText has since been fixed on main; the other exports remain separate work).

Previous exact-head CI run38039307003 failed the unchanged-main Kysely guard. This new base includes its owner repair; no store design or guard weakening is added by this PR. Exact-head CI run 38041518551 completed success on fa256aea23f5cefe1a290d89f7d0dc7755941a01. Its architecture guard passes. Final openclaw/ci-gate, openclaw/security-sensitive-review, and openclaw/dependency-review statuses are all success, reconciled by security run 38041894971. PR is OPEN, non-draft and MERGEABLE. Ready for review; no merges.

Latest ClawSweeper review: zero findings and no before-merge requirements; patch quality platinum hermit, overall/proof gold shrimp. Optional Rank-up move: native same-parent current-to-superseded transition transcript. Not claimed here: no production tip mutation authorized; current/unknown/restart are real reads, transition/rebound are boundary fault coverage. The user's zero-code-findings rating exception applies; no rating label was manually changed. No merges.

@clawsweeper

clawsweeper Bot commented Oct 10, 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 docs Improvements or additions to documentation scripts Repository scripts size: M labels Oct 10, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 10, 2026 06:05
@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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds candidate supersession reporting and producer tracking to FRV watchers and suppresses duplicate terminal notifications after restarts.

Example: Restart the completed watcher for parent 37736976027 with the same notification state.

  • Before: The watcher repeats its terminal notification.
  • After: The reported native CLI replay emits zero NDJSON events and exits successfully.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused, correct on inspection, and supported by successful exact-head gates; the central supersession transition has boundary coverage rather than a supplied native transition transcript.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the external-contributor proof gate; supplied native CLI evidence exercises current and unknown candidate states and same-state restart deduplication, while supersession and rebound remain fault-injected owner-boundary coverage.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot see when the observed frozen candidate is superseded, may see premature producer completion, and receive repeated settled notifications after watcher restarts.
Reason: The patch restores established observer behavior, and its maintainer author also owns prior merged candidate-status and watcher repairs.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs current release-watcher bugs, has no actionable findings, and passes the required checks on the reviewed head.

Priority: P2
Reviewed head: fa256aea23f5cefe1a290d89f7d0dc7755941a01

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A native same-parent current-to-superseded transition transcript remains optional; the supplied transition and rebound coverage uses injected boundary fixtures.
Agent review details

How this fits together

The FRV CLI reads GitHub parent and child runs, dispatch logs, authenticated execution-plan artifacts, and fresh candidate refs, then emits progress observations using the existing notification checkpoint.

flowchart TD
  A[FRV watch CLI] --> B[GitHub read client]
  B --> C[Parent and child observations]
  B --> D[Authenticated execution plan]
  B --> E[Fresh candidate ref]
  C --> F[Watcher projection]
  D --> F
  E --> F
  F --> G[Checkpoint and progress events]
Loading

Technical review

Best possible solution:

Land the focused watcher repair while keeping artifact-retention design in its separate owner follow-up.

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

Current-main source shows the missing candidate observation and unconditional terminal notification; the linked report records baseline-failing owner-boundary regressions, which this read-only review did not execute.

Is this the best way to solve the issue?

The patch repairs the existing observer, consolidates candidate projection with status, reads mutable refs freshly, and preserves separate qualification and mutation owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Watcher notifications and completion keeps the original intent (53ccbd1: The native watcher was designed to observe every dispatched child and retain transition notifications across restarts.)
  • Candidate status projection keeps the original intent (1cf6c01: Read-only status distinguishes frozen-candidate qualification from a newer context tip.)
  • Rate-limit scheduling keeps the original intent (f8239ea: Watcher retries retain GitHub's retry boundary and avoid duplicate warnings across restarts.)
  • Release-only subprocess coverage keeps the original intent (f8b7dba: Expensive FRV CLI process tours moved to the release-only tier while focused owner contracts stayed in the controller suite.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 1cf6c01 adds scripts/frv.mjs:897 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1cf6c01239d8; files: scripts/frv.mjs)
  • Vincent Koc: Raw commit c28cb02 adds scripts/frv.mjs:276 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: c28cb0238475; files: scripts/frv.mjs)

PR surface

Tests +220, Docs +23, Other +110. Total +353 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 223 3 +220
Docs 2 23 0 +23
Config 0 0 0 0
Generated 0 0 0 0
Other 2 140 30 +110
Total 6 386 33 +353

Review metrics

Metric Value Why it matters
Production versus test LOC Production/tooling +140/-30; tests +223/-3. Growth supplies the missing candidate observation and producer inventory within existing owners; tests cover distinct notification, completion, identity, and transport contracts.

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: Incorrect candidate observations and repeated notifications affect release operators without changing release authorization or ordinary agent workflows.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Optionally provide a sanitized native CLI transcript showing the same parent transition from current to superseded without changing a production release branch.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-10T06:10:30.386Z sha 4944dffea4154bdcc83a61414ac2178450f36622 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T06:24:10.224Z sha 4944dffea4154bdcc83a61414ac2178450f36622 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T07:21:31.545Z sha 942d392f6f0f7078fc8e220fcbeb5aed78ce2c54 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T07:32:57.487Z sha 942d392f6f0f7078fc8e220fcbeb5aed78ce2c54 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T08:57:02.346Z sha f359d30 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T09:04:54.461Z sha f359d30 :: needs changes before merge. :: none

Reviewed October 10, 2026, 5:47 AM ET / 09:47 UTC (Revision 7).

@RomneyDa
RomneyDa force-pushed the fix/release-f09-20261009 branch from 4944dff to 942d392 Compare October 10, 2026 07:03
@RomneyDa
RomneyDa force-pushed the fix/release-f09-20261009 branch from 942d392 to f359d30 Compare October 10, 2026 08:50
@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 10, 2026
@RomneyDa
RomneyDa force-pushed the fix/release-f09-20261009 branch from f359d30 to fa256ae Compare October 10, 2026 09:28
@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 10, 2026
@RomneyDa
RomneyDa merged commit cdb57ac into main Oct 12, 2026
115 checks passed
@RomneyDa
RomneyDa deleted the fix/release-f09-20261009 branch October 12, 2026 07:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…claw#168271)

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

* fix(release): keep invalid candidate metadata advisory to watchers
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]>
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: M 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