Skip to content

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

Merged
RomneyDa merged 2 commits into
mainfrom
fix/rri-116-preseal-status
Oct 20, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/rri-116-preseal-status

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • report authenticated not-yet-sealed and reseal-in-progress lifecycle states before an immutable FRV plan exists
  • keep status retryable while a newly uploaded plan artifact propagates, with stale terminal gaps remaining integrity failures
  • hard-refuse verify/continue/rerun until the immutable plan is authenticated

Fixes release retrospective ledger RRI-116.

Validation

  • node scripts/run-vitest.mjs run test/scripts/frv.test.ts (101 passed)
  • pnpm exec oxlint scripts/frv.mjs test/scripts/frv.test.ts
  • pnpm format:check -- scripts/frv.mjs test/scripts/frv.test.ts
  • git diff --check

Review note

Independent authority/race review identified GitHub artifact eventual consistency; addressed with a bounded artifact-propagating state while all mutation commands remain fail-closed.

@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: M labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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 reports FRV plan-sealing lifecycle states while preserving immutable-plan requirements for verification and recovery.

Example: An operator runs pnpm frv status --run 77 before the first plan seal finishes.

  • Before: Status fails with run has no authenticated immutable FRV plan.
  • After: Status reports not-yet-sealed and suggests pnpm frv watch --run 77.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused implementation with the prior finding resolved; confidence remains limited to source review and supplied unit-level validation.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence covers helper tests and static checks, and the change does not materially alter authority.
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 an integrity-style failure when requesting status during normal plan sealing.
Reason: The maintainer-authored direction makes normal lifecycle progress understandable while preserving recovery and verification requirements.

Merge readiness

✅ Ready for maintainer review

This PR addresses a current release-status problem, fixes the prior declaration finding, and has no remaining concrete introduced defect.

Priority: P2
Reviewed head: 74dd9eaab02f1b4ffaaa9f397ce3a1ff79f0580d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supplied validation does not demonstrate the real CLI reporting pre-seal and artifact-propagation states or show base-red/head-green execution.
Agent review details

How this fits together

The FRV CLI consumes GitHub Actions artifacts, parent runs, jobs, and upload-step observations to report validation progress and control recovery.

flowchart TD
 A[Release operator] --> B[FRV CLI]
 B --> C[Immutable plan loader]
 C --> D[GitHub Actions artifact]
 C --> E[Missing plan inspection]
 E --> F[Parent and seal job observations]
 F --> G[Lifecycle status output]
 D --> H[Plan dependent operations]
Loading

Technical review

Best possible solution:

Keep lifecycle reporting in the existing FRV owner while requiring the validated immutable plan for every plan-dependent operation.

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

Current-main source shows that status rejects an absent plan before examining active sealing work; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change reuses the plan loader, GitHub client, and watcher, distinguishes missing from invalid plans, and completes the prior TypeScript integration repair.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 5584b16 adds scripts/frv.mjs:1080 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5584b16af910; files: scripts/frv.mjs)
  • Vincent Koc: Raw commit c28cb02 adds scripts/frv.mjs:686 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)
  • Peter Steinberger: Raw commit 53ccbd1 adds scripts/frv.mjs:2614 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 53ccbd1b7b1f; files: scripts/frv.mjs)

PR surface

Tests +101, Other +153. Total +254 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 101 0 +101
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 156 3 +153
Total 3 257 3 +254

Labels

Label changes:

  • 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.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Normal release-operator status reporting mistakes expected plan-sealing progress for an integrity 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-20T06:46:24.812Z sha 28cc190 :: needs changes before merge. :: [P2] Declare the new FRV exports used by the TypeScript tests

Reviewed October 20, 2026, 3:24 AM ET / 07:24 UTC (Revision 2).

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

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

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa
RomneyDa merged commit 4b065f5 into main Oct 20, 2026
110 checks passed
@RomneyDa
RomneyDa deleted the fix/rri-116-preseal-status branch October 20, 2026 21:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* 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]>
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: 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.

2 participants