Skip to content

fix(release): stop reporting FRV no-ops as failures - #178149

Merged
RomneyDa merged 1 commit into
mainfrom
fix/rri-348-frv-exit-semantics
Oct 20, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/rri-348-frv-exit-semantics

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Related: https://github.com/openclaw/maintainers/blob/main/release/retrospectives/issue-ledger.md#rri-348

What Problem This Solves

Fixes: pnpm frv --help and a targeted rerun of an already-passing child exit as failures even though neither condition requires recovery.

User Impact

User impact: release automation can distinguish successful help/no-op outcomes from failed FRV mutations without generating false failure notifications.

Why This Change Was Made

The CLI now has an explicit successful help path, and targeted reruns return a visible nothing-to-rerun action when the selected child already passed. Invalid selectors, active children, and unsafe mutation states remain errors.

Evidence

  • node scripts/run-vitest.mjs test/scripts/frv-cli.test.ts test/scripts/frv.test.ts --maxWorkers=1 — 99 tests passed across 2 shards.
  • node scripts/run-oxlint.mjs --tsconfig tsconfig.json scripts/frv.mjs test/scripts/frv.test.ts test/scripts/frv-cli.test.ts — 0 warnings/errors.
  • pnpm exec oxfmt --check scripts/frv.mjs test/scripts/frv.test.ts test/scripts/frv-cli.test.ts — clean.
  • Independent native review (P0/P1): no findings; the canonical Auto Review helper is unavailable because this host has no codex executable.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes FRV help and targeted reruns of already-passing children return successfully.

Example: Run pnpm frv --help.

  • Before: FRV prints usage as an error and exits with status 1.
  • After: FRV prints usage and exits with status 0 before creating its GitHub client.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch appears correct and useful; confidence in exercised behavior rests on reported tests rather than supplied standalone runtime evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence consists of reported checks, a CLI subprocess test, and mocked-client controller coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators receive failure exits for help and an already-satisfied child retry request.
Reason: The maintainer-authored direction removes false failures while retaining the existing prohibition on retrying green child work.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is maintainer-authored and provides a focused correction to FRV exit semantics that current main still needs; no introduced correctness or security defect was found.

Priority: P2
Reviewed head: c4cf40e91ce6724ce4701b916a9f758f2e98a272

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No standalone CLI capture of help or a real passed-child no-op, or executed red-on-base comparison, is supplied.
Agent review details

How this fits together

The FRV operator CLI reads immutable release plans and GitHub workflow evidence, then reports status or requests validated recovery operations.

flowchart TD
  A[Operator command] --> B[FRV argument parser]
  B --> C[Successful help output]
  B --> D[Existing recovery controller]
  D --> E[Plan and workflow evidence]
  E --> F[Passed child no-op]
  E --> G[Validated retry operation]
Loading

Technical review

Best possible solution:

Keep successful help and passed-child no-ops in the existing CLI and recovery controller while preserving all mutation admission checks.

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

Current-main source deterministically rejects standalone help and throws for a passed selected child; no runtime reproduction was performed under the read-only review constraints.

Is this the best way to solve the issue?

The patch is the smallest complete correction: it reuses the parser, usage text, controller, and output formatter without adding state or weakening retry safeguards.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • FRV help parsing and usage keeps the original intent (c28cb02: The original continuation CLI rejected unsupported commands with usage; the patch separates an explicit help request from invalid input.)
  • Passed-child targeted rerun outcome changes intended behavior with a stated reason (53ccbd1: feat(release): watch FRV children and rerun one child with a bounded budget #161516 explicitly refused passed children; this PR explains that avoiding a retry should remain visible while returning success.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff adds successful help handling and a passed-child return within the existing controller, without adding another recovery owner. (scripts/frv.mjs:1712, c4cf40e91ce6)
  • Current-main behavior: Fetched main and the PR merge base have identical FRV implementation and controller tests; main still rejects help and treats a passed selected child as an error. (scripts/frv.mjs:1709, f4484758021a)
  • Existing validation boundary preserved: The no-op follows continuation preflight and policy-based child classification, returns before retry dispatch, and does not claim parent verification or resealing. (scripts/frv.mjs:1681, c4cf40e91ce6)
  • Original targeted-rerun intent: feat(release): watch FRV children and rerun one child with a bounded budget #161516 explicitly refused passed children to avoid retrying green work; this PR preserves that non-mutation invariant while explaining the successful exit change. (scripts/frv.mjs:1712, 53ccbd1b7b1f)
  • Tests and discussion: The PR reports 99 passing tests and focused lint/format checks; its tests exercise help through a subprocess and the passed-child result through the real controller with a mocked client. All three discussion comments were read and contain no additional behavior capture. (test/scripts/frv-cli.test.ts:6, c4cf40e91ce6)
  • Repository review policy: Applied the complete root, scripts, and test guidance plus simplification and test-value rules; the maintainer-notes directory is absent. The checkout remained clean, and no target code or second reviewer was run. (AGENTS.md, c4cf40e91ce6)

Likely related people:

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

PR surface

Tests +15, Other +10. Total +25 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 16 1 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 13 3 +10
Total 3 29 4 +25

Review metrics

Metric Value Why it matters
Help invocation forms 3: --help, -h, help All three standalone forms share one successful help path without introducing persisted settings.

Labels

Label changes:

  • add P2: False failure exits affect release-operator automation, with a limited blast radius and no demonstrated publication or runtime failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: False failure exits affect release-operator automation, with a limited blast radius and no demonstrated publication or runtime failure.
  • 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 20, 2026, 2:24 AM ET / 06:24 UTC.

@RomneyDa
RomneyDa merged commit 29587f5 into main Oct 20, 2026
112 checks passed
@RomneyDa
RomneyDa deleted the fix/rri-348-frv-exit-semantics branch October 20, 2026 07:15
RomneyDa added a commit that referenced this pull request Oct 20, 2026
* fix(release): retain postpublish failure causes (#178147)

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

* fix(release): make FRV no-op commands succeed (#178149)

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

* fix(release): reuse admitted changelog descendants

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

* fix(release): show readable SDK acknowledgement diff

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

* fix(release): retry unstarted FRV reruns after 5xx (#178160)

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

* fix(release): report FRV plan sealing state

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

* fix(release): declare FRV plan lifecycle APIs

Declare the plan lifecycle helpers consumed by the TypeScript tests so NodeNext resolution checks the new exports.

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

* fix(release): recover every failed artifact producer

Account for npm, Docker, and candidate producer jobs during failed release continuation, binding each recovery to the authenticated workflow and exact dispatch evidence.

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

* fix(release): retain discovered artifact producers

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

* fix(release): audit backport companion closure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

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

* fix(release): satisfy companion scanner lint

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

* fix(release): gate integrated branch pushes

Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass.

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

* fix(release): gate stable branch pushes

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

* fix(release): recover FRV before plan seal

Checkpoint exact attempt-one preparation inputs before execution-plan sealing so a retry can recover pre-seal failures without rebuilding authority from live state. Bind the eventual sealer attempt into the immutable plan and authenticate it at publication and cancellation boundaries.

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

* fix(release): keep plan cache writes attempt-scoped

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

* test(release): complete batch backport fixtures

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

* fix(release): validate admitted descendant reuse at seal

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

* fix(release): accept backport companion separator

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

* fix(release): accept orchestrated stable push shape

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

* fix(release): retain legacy npm recovery

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

* fix(release): authenticate preseal checkpoint layout

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

* fix(release): adopt recovered artifact attempts

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

* fix(release): recheck producers before rerun retries

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

* test(release): type cached plan fixture explicitly

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

* fix(release): keep candidate recovery fail closed

* fix(release): adopt retried Docker architectures

* test(release): cover Docker producer jobs

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 21, 2026
* fix(release): retain postpublish failure causes (#178147)

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

* fix(release): make FRV no-op commands succeed (#178149)

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

* fix(release): reuse admitted changelog descendants

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

* fix(release): show readable SDK acknowledgement diff

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

* fix(release): retry unstarted FRV reruns after 5xx (#178160)

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

* fix(release): report FRV plan sealing state

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

* fix(release): declare FRV plan lifecycle APIs

Declare the plan lifecycle helpers consumed by the TypeScript tests so NodeNext resolution checks the new exports.

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

* fix(release): recover every failed artifact producer

Account for npm, Docker, and candidate producer jobs during failed release continuation, binding each recovery to the authenticated workflow and exact dispatch evidence.

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

* fix(release): retain discovered artifact producers

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

* fix(release): audit backport companion closure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

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

* fix(release): satisfy companion scanner lint

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

* fix(release): gate integrated branch pushes

Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass.

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

* fix(release): gate stable branch pushes

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

* fix(release): recover FRV before plan seal

Checkpoint exact attempt-one preparation inputs before execution-plan sealing so a retry can recover pre-seal failures without rebuilding authority from live state. Bind the eventual sealer attempt into the immutable plan and authenticate it at publication and cancellation boundaries.

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

* fix(release): keep plan cache writes attempt-scoped

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

* fix(release): adapt batch backport to stable train

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

* fix(release): validate admitted descendant reuse at seal

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

* fix(release): accept backport companion separator

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

* fix(release): accept orchestrated stable push shape

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

* fix(release): retain legacy npm recovery

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

* fix(release): authenticate preseal checkpoint layout

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

* fix(release): adopt recovered artifact attempts

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

* fix(release): recheck producers before rerun retries

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

* test(release): type cached plan fixture explicitly

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

* fix(release): keep candidate recovery fail closed

* fix(release): adopt retried Docker architectures

* test(release): cover Docker producer jobs

* test(release): align 2026.10.6 CI contracts

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
RomneyDa added a commit that referenced this pull request Oct 23, 2026
* fix(release): retain postpublish failure causes (#178147)

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

* fix(release): make FRV no-op commands succeed (#178149)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 29587f5)

* fix(release): retry unstarted FRV reruns after 5xx (#178160)

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

* fix(release): show readable SDK acknowledgement diff (#178158)

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

* fix(release): report FRV plan sealing state (#178172)

* fix(release): report FRV plan sealing state

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

* fix(release): declare FRV plan lifecycle APIs

Declare the plan lifecycle helpers consumed by the TypeScript tests so NodeNext resolution checks the new exports.

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

---------

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

* fix(release): gate integrated branch pushes (#178202)

* fix(release): gate integrated branch pushes

Validate a captured release SHA from an immutable detached checkout, then push that exact SHA only after static, type, dead-code, and changed-test gates pass.

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

* fix(release): gate stable branch pushes

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

* fix(release): accept orchestrated stable push shape

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 2afc8db)

* fix(release): audit backport companion closure (#178188)

* fix(release): audit backport companion closure

Add a bounded, evidence-only audit for later same-path commits, PR companions, neighbor tests, reference candidates, and candidate file/content differences.

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

* fix(release): satisfy companion scanner lint

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

* fix(release): accept backport companion separator

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

---------

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

* ci(release): retain live failure diagnostics (#179097)

* ci(release): retain live failure diagnostics

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

* test(release): isolate live cache shell replay

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 89ee777)

* feat(release): add fast backport conflict probe (#179104)

* feat(release): add fast backport conflict probe

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

* fix(release): parse backport probe separator

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

---------

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

* fix(release): print release note verifier errors (#179077)

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

* fix(release): verify extended stable notes context (#179083)

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

* feat(release): fetch compatibility inputs from registry (#179093)

* feat(release): fetch compatibility inputs from registry

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

* docs(release): clarify offline inventory checks

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

---------

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

* fix(release): close extended-stable FRV retry helper

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS 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.

2 participants