Skip to content

fix(release): wait for FRV plan sealing - #181909

Merged
RomneyDa merged 2 commits into
mainfrom
tideclaw/rri-535-frv-wait-for-seal
Oct 26, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
tideclaw/rri-535-frv-wait-for-seal

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • add bounded frv continue --failed --wait-for-seal recovery
  • wait for an in-flight execution plan seal before deciding no continuation exists
  • exit safely when sealing does not complete within the configured deadline

Why

A continuation request can race the plan-sealing job and incorrectly conclude there is no resumable work.

Testing

  • focused FRV control suites: 135 passed
  • broader dispatch suite: 94 passed
  • typecheck, lint, formatting, erasability, and git diff --check

Closes RRI-535.

@clawsweeper

clawsweeper Bot commented Oct 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 23, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@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: ⏳ 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds an optional bounded wait for plan sealing before continuing failed Full Release Validation.

Example: Run 77 has a failed child while its immutable execution plan is still sealing.

  • Before: Continuation immediately refuses because the plan is unavailable.
  • After: pnpm frv continue --failed --wait-for-seal --run 77 waits up to 15 minutes by default, then enters existing recovery or exits on timeout.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, useful repair with the prior deadline defect resolved; behavioral confidence rests on source inspection and reported unit coverage.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied tests exercise plan availability and deadline expiration with fixtures, without a recorded changed-CLI execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A release operator requesting continuation during plan sealing must retry manually before recovery can begin.
Reason: The maintainer-authored direction provides an explicit bounded wait while retaining immutable-plan validation and existing recovery safeguards.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the bounded seal wait is useful, the earlier deadline finding is addressed, and no actionable correctness or security finding remains.

Priority: P2
Reviewed head: d1295bdf010a45c0d23419b63c854f9ab56a46fa

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied CLI trace demonstrates pending-to-sealed recovery or timeout refusal, and base-red/head-green test execution is not recorded.
Agent review details

How this fits together

The FRV CLI reads GitHub run, job, and execution-plan evidence, then passes validated plans to the existing controller for child retries and final verification.

flowchart TD
  A[Release operator] --> B[FRV CLI]
  B --> C[Plan loader and bounded wait]
  C --> D[GitHub artifacts and lifecycle]
  C --> E[Existing recovery preflight]
  E --> F[Child retries]
  F --> G[Final verification]
Loading

Technical review

Best possible solution:

Keep bounded waiting in the existing plan loader and preserve the existing authenticated recovery controller.

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

Current-main source deterministically refuses continuation when an authenticated parent is still sealing and its plan is unavailable; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change uses the existing lifecycle and recovery owners, adds no competing state, and enforces one deadline across polling, reads, and plan acceptance.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Pre-seal lifecycle and mutation eligibility keeps the original intent (4b065f5: Expose authenticated pending lifecycle states without allowing plan-dependent mutations before authentication.)
  • Plan loading and same-parent recovery keeps the original intent (c28cb02: Reuse the original immutable execution plan and recover failed exact child jobs without repeating green work or reconstructing another parent.)
  • Continuation command restrictions keeps the original intent (5ed1f2d: Keep failed-child continuation and targeted job recovery in the attempt-aware controller with current-state checks before mutations.)
  • CLI usage and successful outcomes keeps the original intent (29587f5: Make help and successful no-op outcomes succeed while preserving errors for unsafe recovery states.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduction adds the wait flag and configurable seal budget inside the existing loader, propagating the deadline through artifact downloads and lifecycle reads. (scripts/frv.mjs:2324, d1295bdf010a)
  • Earlier deadline finding addressed: The loader now checks expiration before another load and before accepting a plan; GitHub reads receive the same deadline. A regression test covers expiration before a subsequent download. The earlier reviewed SHA was unavailable locally, so a direct historical comparison could not run; the repair was independently inspected in the pinned introduction and current source. (scripts/frv.mjs:2337, d1295bdf010a)
  • Current main still requires manual retry: Fetched main reports authenticated pending states but refuses continuation until an immutable plan exists; it does not provide the proposed bounded wait. (scripts/frv.mjs:2310, 05bc4bf5c9fc)
  • Existing recovery boundary retained: After loading, main invokes the existing continuation controller, which performs recovery preflight and checks current parent and child state before rerun effects. (scripts/frv.mjs:3566, d1295bdf010a)
  • Original sealing intent: fix(release): report FRV plan sealing state #178172 intentionally exposed pending lifecycle states while keeping mutations unavailable before plan authentication; this PR preserves that invariant. (scripts/frv.mjs:2240, 4b065f50d724)
  • Related recovery and backport ownership: fix(release): recover FRV before plan seal #178218 handles checkpoint-backed recovery after pre-seal failures, a distinct workflow repair; fix(release): backport retrospective batch 5 to 2026.9.33 #181920 explicitly backports this PR's bounded waiting.

Likely related people:

  • Dallin Romney: Raw commit 4b065f5 adds scripts/frv.mjs:2097 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4b065f50d724; files: scripts/frv.mjs)
  • Vincent Koc: Raw commit c28cb02 adds scripts/frv.mjs:690 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 5ed1f2d adds scripts/frv.mjs:135 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5ed1f2d0a172; files: scripts/frv.mjs)

PR surface

Tests +67, Other +57. Total +124 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 67 0 +67
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 85 28 +57
Total 3 152 28 +124

Review metrics

Metric Value Why it matters
New operator controls 1 CLI flag and 1 environment variable --wait-for-seal enables waiting; OPENCLAW_FRV_PLAN_SEAL_WAIT_MS configures the default 15-minute budget.

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: This improves a release-operator recovery workflow with a limited blast radius.
  • 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.

Rank-up moves

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

  • Optionally record the real CLI waiting through sealing and refusing recovery when its seal budget expires.

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-23T20:41:46.549Z sha 236a892 :: needs changes before merge. :: [P2] Enforce the seal deadline before loading or accepting a plan

Reviewed October 23, 2026, 9:50 PM ET / October 24, 2026, 01:50 UTC (Revision 2).

@RomneyDa
RomneyDa force-pushed the tideclaw/rri-535-frv-wait-for-seal branch from 236a892 to d1295bd Compare October 24, 2026 01:29
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@RomneyDa
RomneyDa merged commit 1403d1d into main Oct 26, 2026
111 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/rri-535-frv-wait-for-seal branch October 26, 2026 03:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* fix(release): wait for FRV plan sealing

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

* fix(release): enforce FRV seal wait deadline

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: 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.

2 participants