Skip to content

feat: retry individual release validation jobs without waiting for siblings - #156395

Merged
steipete merged 1 commit into
mainfrom
codex/frv-targeted-jobs
Sep 23, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-targeted-jobs

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156253.

What Problem This Solves

FRV continuation waits for the entire validation graph before retrying a failed child, and operators cannot select a single job to retry.

User Impact

pnpm frv rerun --run <parent> --job "<child>:<job name>" reruns an explicitly selected executed, terminal job as soon as its child completes. continue --failed likewise retries each failed child when it becomes terminal, while sibling children continue. The controller reseals the original parent after the complete selected evidence passes; unresolved failures remain visible instead of triggering unrelated retries.

Why This Change Was Made

The existing controller owns scheduling and validates the immutable plan, exact child tuple, accepted source job ID, and current attempt immediately before each one-shot mutation. It records requested reruns, reconciles uncertain responses through reads, and never attributes another operator's attempt to its own request. Final verification retains green jobs from older attempts and validates the performance report guard at its effective successful attempt.

The fixed no-op proof broker now exercises GitHub's job-specific rerun endpoint. It handles an empty successful HTTP 201 and observes an uncertain response without sending the mutation again. It cannot publish a package, release candidate, repository ref, or real release validation graph.

Evidence

  • 439 owner tests pass: controller 76, proof broker 55, publication CLI 106, and strict evidence verifier 202. Cases include early per-child dispatch, exact job selection, drift before mutation, uncertain responses, final sealing, and bounded publication output.

  • Measured costs: controller 3.08 seconds wrapper; broker 4.32 seconds wrapper; existing full publication CLI file 108.428 seconds and strict-verifier file 18.160 seconds (129.83 seconds combined wrapper). The existing CLI suite pays subprocess/auth-boundary costs; new scheduling cases use deterministic fixtures.

  • Script/root-test types, lint, workflow/zizmor checks, formatting, line-cap and diff checks pass. Native independent P2 review is scoped-clean.

  • Hosted mutation proof passed after landing: broker 35852804061 reran exact fixture job 107154896747; fixture 35853018712 intentionally failed with exit 42 at attempt 1 and succeeded at attempt 2. The receipt binds this PR, merge 5ed1f2d0a1725040331350eba379ead6b1da8058, trusted workflow 0c7d77cd47ab1523182c77970e9ae8c377876d9c, noop, and refs/heads/main. One earlier broker run refused before fixture dispatch when main advanced while queued; no correlated fixture was created.

  • On the integrated base containing the landed materialization and exclusion repairs, the 278 controller/strict-verifier cases pass in 32.66 seconds. Target implementation/test/workflow bytes remain identical to the independently reviewed change.

  • CI 35842325927 passed at reviewed head cb6e8f078b9a52e17b2dbf5a1e6ebc0472f4c393, attempt 2, after restoring only the canceled/failed jobs from the canceled first attempt.

Rerun one executed job as soon as its child finishes, and recover failed children without waiting for siblings. Preserve immutable plan and attempt bindings, carry valid performance guards, and prove the targeted GitHub API with the isolated broker. Related #156253.
@clawsweeper

clawsweeper Bot commented Sep 23, 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.

@steipete
steipete marked this pull request as ready for review September 23, 2026 09:20
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Sep 23, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 6:09 AM ET / 10:09 UTC.

ClawSweeper review

What this changes

Adds an exact-job retry command, retries completed failed validation children while siblings continue, and updates evidence verification, the proof broker, tests, and operator documentation.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: the capability remains absent from current main and the latest release. The focused implementation preserves the existing recovery owner, and no blocking introduced defect was found.

Priority: P2
Reviewed head: cb6e8f078b9a52e17b2dbf5a1e6ebc0472f4c393

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Recorded reviewer rating: A focused, maintainable implementation with meaningful boundary coverage and no identified blocking defect; hosted proof follows the existing post-merge contract. Real behavior proof remains required by host policy.
Proof confidence 🌊 off-meta tidepool Recorded reviewer rating; Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is a verified repository admin. Controller and broker tests are supplemental; current-main policy places real GitHub mutation proof after landing through the fixed no-op fixture, and that proof is not yet claimed. No persisted application-state schema or migration changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Required by policy Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is a verified repository admin. Controller and broker tests are supplemental; current-main policy places real GitHub mutation proof after landing through the fixed no-op fixture, and that proof is not yet claimed. No persisted application-state schema or migration changes.
Evidence reviewed 10 items Introduced scope: Reviewed the pinned merge-base-to-head delta. Unrelated base-branch changes were excluded from PR ownership.
Still necessary on main: Current main waits for the original parent and active children before retrying failures; it lacks the targeted job selector and job-rerun client operation.
Latest-release check: The GitHub-fetched v2026.9.5 controller also retains the parent-first wait and has no targeted job selector or rerunJob operation.
Findings None None.
Security None None.

How this fits together

Full Release Validation coordinates GitHub Actions workflows that qualify release candidates. Its continuation controller consumes an immutable execution plan and job results, requests bounded retries, and verifies the final parent evidence.

flowchart TD
  A[Immutable validation plan] --> C[Continuation controller]
  B[Current child and job results] --> C
  C --> D[Exact job or failed child retry]
  D --> E[Combined attempt evidence]
  B --> E
  E --> F[Parent collection and strict verification]
Loading

Before merge

  • Add real behavior proof - Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is a verified repository admin. Controller and broker tests are supplemental; current-main policy places real GitHub mutation proof after landing through the fixed no-op fixture, and that proof is not yet claimed. No persisted application-state schema or migration changes.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +504, Docs +31, Config 0, Other +189. Total +724 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 531 27 +504
Docs 3 64 33 +31
Config 2 2 2 0
Generated 0 0 0 0
Other 5 298 109 +189
Total 14 895 171 +724

Review metrics

Metric Value Why it matters
Operator interface 1 new subcommand and 1 new selector flag The rerun command uses --job to select one exact child job without adding a retry-policy setting.
Production versus test growth Production/tooling net +189 lines; tests net +504 lines Production growth supports targeted scheduling and guarded mutations within the existing owner; most added coverage exercises recovery boundaries.

Stored data model

Persistent data-model change detected: unknown-data-model-change: scripts/frv-proof-broker.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #156253
Summary: This PR is the candidate implementation for the targeted-recovery portion of the broader request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep targeted recovery in the existing controller and complete the documented no-op broker proof after landing, preserving exact plan, job, and attempt provenance.

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

Not applicable as a feature request; source inspection confirms the missing targeted command and current parent-first wait ordering.

Is this the best way to solve the issue?

Yes. Extending the existing continuation owner avoids competing scheduling state while retaining one-shot mutations and strict final verification.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded release-operator improvement that reduces recovery delays without changing end-user runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is a verified repository admin. Controller and broker tests are supplemental; current-main policy places real GitHub mutation proof after landing through the fixed no-op fixture, and that proof is not yet claimed. No persisted application-state schema or migration changes.

Label justifications:

  • P2: This is a bounded release-operator improvement that reduces recovery delays without changing end-user runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author is a verified repository admin. Controller and broker tests are supplemental; current-main policy places real GitHub mutation proof after landing through the fixed no-op fixture, and that proof is not yet claimed. No persisted application-state schema or migration changes.

Evidence

What I checked:

  • Introduced scope: Reviewed the pinned merge-base-to-head delta. Unrelated base-branch changes were excluded from PR ownership. (cb6e8f078b9a)
  • Still necessary on main: Current main waits for the original parent and active children before retrying failures; it lacks the targeted job selector and job-rerun client operation. (scripts/frv.mjs:1011, c05b74fbe153)
  • Latest-release check: The GitHub-fetched v2026.9.5 controller also retains the parent-first wait and has no targeted job selector or rerunJob operation. (scripts/frv.mjs:921, ec9c1a13db89)
  • Mutation and completion safeguards: The controller checks accepted job evidence, rereads the terminal run immediately before POST, reconciles uncertain mutations without replay, and requires complete green evidence plus strict parent verification before reporting recovery. (scripts/frv.mjs:1167, cb6e8f078b9a)
  • Performance evidence remains authenticated: Strict verification validates the composed attempt evidence before accepting a carried successful artifact-only guard. Tests cover a newer guard failure and an earlier executed publisher remaining disqualifying. (scripts/release-ci-summary.mjs:2544, cb6e8f078b9a)
  • Existing post-merge proof contract: Current main already requires controller mutation proof through the protected-main no-op broker after landing. The PR retains that sequencing and changes the exercised endpoint to targeted-job rerun; no hosted success is claimed. (.agents/skills/release-openclaw-ci/SKILL.md:102, c05b74fbe153)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper's completed review of cb6e8f078b9a52e17b2dbf5a1e6ebc0472f4c393 found no actionable code or security defect. The two generated proof requests do not require a source change:

  • Hosted mutation proof follows the existing release CI skill's protected-main contract. The fixed FRV Proof Broker requires a merged PR and exact merge commit, so it runs after native landing. I will verify its no-op fixture's intentional attempt-one failure and targeted attempt-two success before closing the tracking issue. The current PR body already records this requirement and does not claim hosted success.
  • scripts/frv-proof-broker.mjs changes the selected GitHub rerun endpoint and response handling; it does not add a persisted application-state schema or migration. The broker emits proof artifacts under its existing contract. The 55 broker cases and 278 integrated controller/strict-verifier cases cover the changed behavior and attempt compatibility.

CI run 35842325927 was canceled at this exact head without a reported test failure. One failed/canceled-job rerun request was sent and GitHub confirms attempt 2; earlier successful jobs remain preserved. Native landing will continue to honor the enforced CI gate.

@steipete
steipete enabled auto-merge (squash) September 23, 2026 10:53
@steipete
steipete merged commit 5ed1f2d into main Sep 23, 2026
263 of 326 checks passed
@steipete
steipete deleted the codex/frv-targeted-jobs branch September 23, 2026 10:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
Rerun one executed job as soon as its child finishes, and recover failed children without waiting for siblings. Preserve immutable plan and attempt bindings, carry valid performance guards, and prove the targeted GitHub API with the isolated broker. Related openclaw#156253.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
Rerun one executed job as soon as its child finishes, and recover failed children without waiting for siblings. Preserve immutable plan and attempt bindings, carry valid performance guards, and prove the targeted GitHub API with the isolated broker. Related openclaw#156253.

(cherry picked from commit 5ed1f2d)
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
The FRV job-recovery cases retargeted from main's frv.release.test.ts
(openclaw#156395) onto this branch's frv.test.ts declared a 'child' parameter
that shadows the file-level child() fixture helper (oxlint no-shadow).
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant