Skip to content

fix(release): support nonblocking FRV job reruns - #188020

Merged
vincentkoc merged 3 commits into
mainfrom
openclaw/batch6-rri-396
Oct 31, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
openclaw/batch6-rri-396

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Problem

Job-scoped FRV reruns synchronously follow the replacement attempt and parent reseal, blocking an agent turn for 6–10 minutes.

RRI-396

Solution

  • add frv rerun --job <child>:<job> --no-follow
  • preserve the existing follow-and-reseal behavior by default
  • return a typed accepted receipt only after mutation reconciliation and replacement-attempt job materialization
  • print exact frv watch and frv continue --failed commands
  • reject --no-follow outside job-scoped reruns and expose it in help

The change reuses the existing rerun reconciliation/materialization owner; it adds no new mutation path or state.

Impact

Operators and agents can dispatch a precise job rerun, receive stable run/attempt/job identity immediately, and continue the FRV later without holding the initiating turn open.

Production delta: +45/-1 lines. Test delta: +62 lines, recorded in the test-line allocation.

Evidence

  • node scripts/run-vitest.mjs test/scripts/frv.test.ts test/scripts/frv-cli.test.ts --maxWorkers=1 (136 tests across 2 shards, 1.88s latest local run)
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental
  • node scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test.root.tooling.json scripts/frv.mjs scripts/frv.d.mts test/scripts/frv.test.ts test/scripts/frv-cli.test.ts
  • pnpm check:script-erasability
  • pnpm format:check
  • git diff --check
  • independent P0–P2 review: clean; no live GitHub API exercise

roboclaw-bot and others added 2 commits October 30, 2026 01:28
OpenClaw-Publication: cf45f54b-799d-4a3d-ba11-36ba3eb8d603
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 30, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds an opt-in --no-follow flag that returns an accepted job-rerun receipt before following completion and resealing the FRV parent.

Example: Rerun normalCi:selected for parent 77 and child run 101 using --no-follow.

  • Before: The command follows the replacement attempt and subsequent parent recovery.
  • After: After observing attempt 2 and materialized jobs, it returns rerun-accepted with the source job identity and commands to watch or continue parent 77.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, useful implementation with no identified defects; confidence in actual GitHub receipt behavior remains limited to source and automated validation.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises the controller with mocked GitHub clients and CLI argument handling, while the body explicitly reports no live GitHub API exercise.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Release operators and agents must keep the initiating command open while a targeted rerun completes and its parent reseals.
Reason: Maintainer authorship supplies direction approval, and the opt-in capability removes unnecessary waiting while retaining the established recovery contract.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it adds a useful, maintainer-approved operator capability absent from current main, and review found no actionable correctness or security defects.

Priority: P3
Reviewed head: 7adaa55c9ba3fa08c887934ef7b1e8f08ab59760

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not show the shipped rerun CLI returning its accepted receipt against GitHub, and red-on-base execution is not recorded.
Agent review details

How this fits together

The FRV CLI translates release-operator commands into the existing recovery controller, which validates immutable execution plans, requests GitHub Actions reruns, reconciles attempts, and verifies parent seals.

flowchart TD
  A[Operator command] --> B[FRV CLI validation]
  B --> C[Existing recovery controller]
  C --> D[GitHub Actions job rerun]
  D --> E[Reconcile and inspect new attempt]
  E --> F[Return accepted receipt]
  E --> G[Default follow and parent reseal]
Loading

Technical review

Best possible solution:

Keep the optional early return in the existing controller after reconciliation and materialization, preserving default following and explicit later resealing.

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

Current-main source shows targeted job reruns continuing through replacement completion and parent resealing; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change is a small extension of the existing owner: acceptance still follows reconciliation and materialization, and no new state, wrapper, or mutation path is necessary.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Targeted job following and resealing changes intended behavior with a stated reason (5ed1f2d: Exact-job recovery uses the existing controller and reseals only after complete selected evidence passes.)
  • Mutation reconciliation, materialization, and audit ownership keeps the original intent (53ccbd1: Bounded child recovery must observe a replacement attempt, reject duplicate or missing jobs, and record the request before returning.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Tests +62, Other +46. Total +108 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 62 0 +62
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 47 1 +46
Total 5 109 1 +108

Review metrics

Metric Value Why it matters
Operator options 1 opt-in CLI flag --no-follow applies only to job-scoped reruns and preserves existing behavior when omitted.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves an advanced release-operator workflow without changing the default recovery behavior.
  • 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.

Reviewed October 29, 2026, 9:34 PM ET / October 30, 2026, 01:34 UTC.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@vincentkoc
vincentkoc merged commit 03c9066 into main Oct 31, 2026
103 checks passed
@vincentkoc
vincentkoc deleted the openclaw/batch6-rri-396 branch October 31, 2026 06:26
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* fix(release): support nonblocking FRV job reruns

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

* fix(release): support nonblocking FRV job reruns

OpenClaw-Publication: cf45f54b-799d-4a3d-ba11-36ba3eb8d603

* chore(release): retain FRV change attribution

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

---------

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 6, 2026
* fix(release): shorten branch push preflight (#188743)

* fix(release): shorten branch push preflight

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

* fix(release): shorten branch push preflight

OpenClaw-Publication: c44888a1-979b-4d99-8ae5-cbd42b006db0

---------

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

* fix(release): pin stable OpenCode Go smoke to reachable model (#188814)

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

* fix(release): install WebKit for repo UI E2E (#188985)

FRV repo UI shards run WebKit-owned suites, so provision WebKit alongside the cached Chromium install.

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

* fix(release): prevent ghost FRV reruns (#187996)

* fix(release): prevent ghost FRV reruns

Refuse multi-job retries, bind recovery to one exact failed job, and keep ambiguous mutations write-once. Treat duplicate-contaminated attempts as unsealable evidence.

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

* fix(release): preserve cancellation of ghost reruns

Keep authenticated cancellation possible for runnerless ghost copies and update the producer recovery fixture for exact-job reruns.

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

* docs(release): align exact-job recovery contract

Declare the single-job planner result and update operator guidance for conservative FRV recovery.

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

* fix(release): retire stale FRV client method

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

---------

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

* fix(release): normalize recovery run flags (#188019)

* fix(release): normalize recovery run flags

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

* fix(release): preserve candidate help ordering

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

---------

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

* fix(release): support nonblocking FRV job reruns (#188020)

* fix(release): support nonblocking FRV job reruns

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

* fix(release): support nonblocking FRV job reruns

OpenClaw-Publication: cf45f54b-799d-4a3d-ba11-36ba3eb8d603

* chore(release): retain FRV change attribution

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

---------

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

* fix(release): retry transient plugin readbacks (#188016)

* fix(release): retry transient plugin readbacks

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

* fix(release): retry transient plugin readbacks

OpenClaw-Publication: 86d82eb3-6bef-4dee-9b68-4772e0e4d9b5

* chore: preserve release fix attribution

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

* test(release): type retry delay callback

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

* fix(release): preserve readback rate-limit headers

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

---------

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

* ci(ios): explain screenshot Xcode mismatch (#190754)

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

* fix: keep release tooling fixtures runnable in module worktrees (#192456)

* fix: keep release tooling fixtures runnable in module worktrees

Use explicit CommonJS payloads for Crabbox command shims and ESM for extensionless release-tooling fixtures. Preserve current main source ownership and relocated build hooks.

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

* fix: keep relocated Crabbox fixtures with archive assets

Resolve fs-safe fixture imports to their package-owned file URLs so the TAR parser retains its WASM asset after bundling and fixture relocation.

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

* fix: execute managed Crabbox fixture launchers directly

Keep candidate and managed binary fixtures on the explicit CommonJS launcher boundary rather than passing shell shims to Node.

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

* test: allocate exact release fixture repair growth

Allocate the measured 16 test lines required by explicit CommonJS launchers, ESM fixture imports, and package-owned archive assets. Keep shared baseline and test coverage unchanged.

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

---------

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

* fix: keep remaining release fixtures runnable in module workspaces (#192475)

* fix: keep remaining release fixture executables module-safe

Adapt executable and onboarding repairs to current main without reverting its fixture refactors or weakening assertions.

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

* test: isolate ClawHub loopback requests from host proxies

Keep the current-main fetch implementation unchanged and allocate the exact 21 added fixture lines without adding or weakening test cases.

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

---------

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

* fix: keep release fixture proofs valid in deep workspaces (#192494)

Adapt approved native-update and socket fixture repairs to current main owners. Preserve exact 500-code-point diagnostics, real ingress, actual socket inodes, and existing timeouts.

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

* fix(test): contain SDK revision compiler fixtures (#192499)

Materialize the native compiler API, libraries, and platform binary inside each synthetic revision before fake pnpm installation settles. Adapt reviewed release repair 4e64bf37aff5835061047dfcd887b579b29d43a9 to current main fixture helpers without weakening declaration containment or assertions.

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

* fix(test): isolate release fixtures from enclosing checkout state (#192487)

* fix(test): isolate fixture package and Git scopes

Bound runner fixtures with a neutral package scope and require exact worktree roots before trusting Git inventory and grep results. Preserve filesystem archive discovery and authoritative empty indexes.

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

* test(tooling): isolate standalone checkout artifact ownership

Mark synthetic updater and source-runner checkouts as independent repositories so temporary roots nested in another checkout cannot acquire its retained artifact lock. Cover the actual updater transaction against a retained enclosing owner while preserving production discovery and fail-closed cleanup.

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

---------

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

* fix: explain release-note verification failure in shallow clones (#192389)

(cherry picked from commit 8510643)

* fix(ci): prevent hosted release workers exhausting disk (#192408)

(cherry picked from commit 993ad40)

* fix: stabilize prompt snapshots and retry incomplete installer indexes (#192596)

* fix: stabilize release snapshot and install qualification

Keep canonical JSON snapshots independent of formatter ignore discovery. Treat partial APT index failures as failures before the non-root installer smoke attempts package installation.

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

* fix: stabilize prompt snapshots and retry incomplete installer indexes

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 437273d5-8294-476c-9403-ca27c07588b6

---------

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

* fix(test): report HTTP status when cache probes fail (#192684)

* fix(test): report redacted HTTP status for cache probe failures

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

* fix(test): report HTTP status when cache probes fail

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: e59e6dda-7953-4ddf-b1d6-3c5a9f7815f4

---------

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

* ci(release): add qualified package smoke (#191654)

* ci(release): add qualified package smoke

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

* ci(release): add qualified package smoke

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 913f7aab-a831-4aa3-879e-1d180b08173e

* fix(release): route qualified package validation

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

* Publish openclaw/sharp-claw

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 1a30bf9a-d42d-47bd-af61-718d5260b8a2

* test(release): satisfy test-line ratchet

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

* Publish openclaw/sharp-claw

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: cd639c2e-7eca-491e-9d13-53df324e5f61

* test(release): consolidate resource matrix

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

* Publish openclaw/sharp-claw

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 2984f449-f70b-40d8-b869-55a0804343ab

---------

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

* fix(release): wait for npm replication before Windows Gateway notify (#192584)

(cherry picked from commit 592a02f)

* fix(release): read waiver aggregate logs with escape sequences allowed (#193071)

(cherry picked from commit 84097d6)

* feat(release): add read-only release:watch for any publish parent (#192607)

(cherry picked from commit 4671dd4)

* docs: minimize downtime between full release validation cycles (#193095)

* docs: minimize downtime between full release validation cycles

* docs: frame FRV wall-time advice as scheduling guidance

(cherry picked from commit 4d36c4b)

* fix(release): print core npm resume and report required candidate flags together (#192590)

* fix(release): print core npm resume and report required candidate flags together

* test(release): consolidate resume and flag regressions within the test-line budget

* test(release): explain preflight mock isolation

(cherry picked from commit b4a70ce)

* fix(release): retry EPIPE readbacks and reject gated ClawHub children on cleanup (#192589)

* fix(release): retry EPIPE readbacks and reject gated ClawHub children on cleanup

* fix(release): keep transient codes inline for fixed tooling closures

* test(release): fit transient recovery regressions in test-line budget

(cherry picked from commit 658e3db)

* docs(release): keep blocked release work moving (#192829)

* docs(release): keep blocked release work moving

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

* docs(release): keep blocked release work moving

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 763d7e84-fb24-47a4-a223-d1f7af1015dc

---------

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

* fix(release): scan plugin npm packs with publisher tooling early in FRV (#192591)

* fix(release): review Codex stdio worker exec in plugin npm scan inventory

#192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex.

* ci: scan main-built plugin npm packs for reviewed-finding drift

Release publication repacks plugins with its own tooling and scans the exact tarballs, but CI never scanned main-built packs, so a bundler bump (#188576) that moved a reviewed content hash only failed at publish. Add a check-additional row that packs selected publishable npm plugins and runs the release scanner; PRs select it from lockfile, bundler, packer, scanner, or plugin changes, and hourly/manual runs scan every package.

* fix(release): scan plugin npm packs with publisher tooling in FRV

Move the reviewed-finding drift scan out of PR/main CI and into Full Release
Validation's Prepare exact plugin npm artifacts job. While the C-tooling
preflight child runs, the job packs selected plugins that carry reviewed
findings with the admitted publisher tooling P and scans them with P's
inventory, exactly as Plugin NPM Release's normal route will.

* test(release): compact publisher-tooling scan proofs

Fold the drifted-bytes driver test and FRV wiring test into fewer lines and
drop the iMessage reviewed-hash case it now covers.

(cherry picked from commit bca996c)

* fix(release): exit FRV continue on repeat child failure and flag ghost jobs (#192587)

* fix(release): exit FRV continue on repeat child failure and flag ghost jobs

* fix(frv): advise a fresh FRV only for duplicates that persist

* test: allocate FRV repeat-failure regression lines

(cherry picked from commit 2270152)

* fix: reject unbridgeable update compatibility inventories (#192392)

(cherry picked from commit b42ae21)

* fix(release): adapt backported fixtures to 11.5 owners

Release adaptation: retain branch-specific exact-cut and carried-failure contracts. Replace obsolete inline publication inventories with the upstream per-workflow watcher fixture. Exact-job child reruns are write-once, so remove the retired retry expectation while retaining parent retry live-authority proof. Drop the allocation-only delta for already-covered #192389.

* docs(release): align 11.5 proof guidance with fast prepush

* test(agents): regenerate canonical 11.5 snapshot layout

Companion to #192596 and backport adaptation of #192628. Regenerated through pnpm prompt:snapshots:gen; parsed JSON remains unchanged.

(cherry picked from commit 4ffe5d5)

* fix(ci): keep qualified smoke owner export private

Apply the release-planner companion hunk from #192850; unrelated UI repairs are not part of this backport.

(cherry picked from commit e81ab22)

* fix(release): observe extended-stable and Docker-only publication

Address local review of #192607 backport: recognize authenticated publisher channel titles and use exact-attempt parent job evidence for the Docker-only route. Keep missing-plugin refusal without positive Docker-only evidence. Reproduced both failures at the runReleaseWatch boundary; watcher and stable suites now pass.

* fix(release): pin calibrated Kova evaluator (#188918)

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

* fix: use live plugin registry inspection in performance CI (#190782)

Use the corrected live plugin registry inspection in Performance CI while preserving the calibrated Kova dependencies and benchmark limits.

(cherry picked from commit be17538)

* fix: stop stale diagnostics failures in Performance CI (#190830)

Use the calibrated Kova diagnostics correction in Performance CI and keep historical timeline metadata separate from scenario work.

(cherry picked from commit eb48819)

* fix(test): repair release branch CI fixtures

* fix(agents): continue output-limited fallback turns (#188765)

Keep committed-input acknowledgment from suppressing an owner-selected format fallback for the current run. Preserve ordinary retry and other-run no-redelivery boundaries.

(cherry picked from commit cf83a69)

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Tideclaw Bot <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

3 participants