Skip to content

fix(release): resume failed validation without repeating green jobs - #128141

Merged
vincentkoc merged 22 commits into
mainfrom
fix/frv-canonical-continuation-20260822
Aug 28, 2026
Merged

vincentkoc merged 22 commits into
mainfrom
fix/frv-canonical-continuation-20260822

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

Related: #131726

What Problem This Solves

Resolves a release-operations problem where one late Full Release Validation child failure forces operators to repeat already-green, expensive work. A parent retry also needs to retain the original immutable execution plan instead of reconstructing or redispatching the release graph.

Why This Change Was Made

Continuation stays on the original FRV parent. The controller restores and validates the attempt-one execution plan, reruns only failed exact child jobs, composes child evidence across attempts, and reruns the parent whenever child evidence advances so Release Decision and Diagnostic Drain reseal against the current attempt set.

The path fails before mutation when the original parent used fail_fast=true, when immutable plan state is missing or mismatched, or when child identity cannot be proven. Historical manifests remain readable for verification, but historical plans cannot authorize continuation. This removes the prior temporary-ref, new-parent, and historical reconstruction machinery.

Final verification reads the original successful dispatch job and log during same-parent recovery only when every later parent attempt skipped that sealed dispatch slot. A later redispatch is a hard failure, preventing recovered evidence from being rebound to a different parent execution.

Candidate artifact reuse is intentionally not half-implemented here. Exact package, prerelease-plugin-registry, and image tuple sealing is tracked in #131726 and will build on this same-parent authority boundary.

User Impact

After a late release-validation failure, operators can continue the same parent and preserve valid green evidence instead of paying for the complete matrix again. Healthy first attempts are unchanged.

This change does not publish packages, create releases, tag commits, or alter release candidates. No real release or FRV run was dispatched while developing it.

Evidence

  • 803 focused tests passed across the FRV controller, state, release summary, continuation workflow, at-SHA helper, package acceptance, plugin prerelease plan, workflow routing, and proof broker.
  • 73 release-summary tests passed after the recovery verifier was tightened to accept skipped carry-forward slots and reject redispatch.
  • After autoreview findings were addressed, 213 focused controller/policy/summary tests passed.
  • Autoreview finding fixed: a successful parent is rerun when externally advanced child-attempt evidence must be resealed.
  • Independent audit finding fixed: attempt-two final verification now reads the attempt-one successful dispatch log while requiring the attempt-two parent slot to be skipped.
  • Autoreview finding removed: dormant candidate-binding plumbing had no canonical frozen candidate authority; the real sealed tuple design is deferred to FRV: reuse sealed release candidates and pipeline consumers #131726.
  • actionlint passed for both changed workflows.
  • Changed-file Oxfmt, targeted Oxlint, syntax checks, temp-path guardrails, script erasability, docs indexing, and git diff --check passed.
  • Fresh branch autoreview: clean, no accepted or actionable findings, overall 0.97.
  • The broad linked-worktree changed gate reached script typechecking and failed only on the shared-root pako declaration layout; the same known environment issue is outside this release-orchestration diff. Hosted exact-head CI is the canonical full-checkout proof.

Production/tooling LOC: +2136/-211 (net +1925) | Tests: +1548/-38 (net +1510)

AI-assisted: yes. The maintainer reviewed the implementation, tests, and accepted autoreview findings.

@clawsweeper

clawsweeper Bot commented Aug 23, 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 docs Improvements or additions to documentation scripts Repository scripts size: XL labels Aug 23, 2026
@vincentkoc vincentkoc self-assigned this Aug 23, 2026
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 23, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc marked this pull request as ready for review August 23, 2026 07:36
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 7:21 AM ET / 11:21 UTC.

ClawSweeper review

What this changes

The branch adds an FRV continuation command that reuses a sealed all-group validation plan, reruns failed child workflows, and refreshes parent evidence without redispatching successful child workflows.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 6 items remain

Keep open for a maintainer proof-sufficiency decision. The sealed-plan controller and focused tests cover same-parent recovery, but the reviewed head lacks hosted final-effect proof for its authenticated GitHub Actions rerun operations.

Priority: P2
Reviewed head: 4faca052ae274ebb8566c030a4452817094efee2
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is well-covered in focused tests, but the privileged release-controller behavior still lacks its required exact-head operational proof.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the current head has focused controller coverage but no hosted final-effect evidence for the privileged child and parent rerun operations. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the current head has focused controller coverage but no hosted final-effect evidence for the privileged child and parent rerun operations. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Parent and child identity preflight: The continuation path validates the original all-group, fail-fast-disabled parent and every selected child binding before any rerun mutation.
Rerun mutation boundary: Failed children are re-read for terminal identity before rerun, then the parent is rerun only when required and passed to the strict verifier.
Child provenance contract: Child runs must retain the expected workflow, SHA, repository, dispatch actor, and triggering actor; malformed attempt histories are rejected.
Findings None None.
Security Needs attention Prove rerun authorization at the final effect: The controller invokes GitHub Actions reruns after source checks, but no hosted reviewed-head receipt demonstrates that a drifted parent or child is rejected before the actual mutation.

How this fits together

Full Release Validation dispatches release-related child workflows and records their verified outcomes for a release decision. The continuation command reads the sealed parent plan, retries eligible failed GitHub Actions work, and then reseals the parent evidence.

flowchart LR
  A[Release operator] --> B[Continuation command]
  B --> C[Sealed parent plan]
  C --> D[Child workflow attempts]
  D --> E{Failed exact child?}
  E -->|Yes| F[GitHub Actions rerun]
  E -->|No| G[Parent evidence reseal]
  F --> G
  G --> H[Release decision evidence]
Loading

Decision needed

Question Recommendation
Which nonpublishing exact-head evidence route should authorize proof of the continuation controller's GitHub Actions rerun mutations? Authorize a synthetic all-group fixture: Run a disposable nonpublishing all-group FRV fixture from the reviewed head and attach successful and denied identity-drift receipts.

Why: The implementation has unit-level identity and recovery coverage, but exercising the final authenticated mutation requires a release-policy-approved fixture or explicit acceptance of reduced proof.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the current head has focused controller coverage but no hosted final-effect evidence for the privileged child and parent rerun operations. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Prove rerun authorization at the final effect - The controller invokes GitHub Actions reruns after source checks, but no hosted reviewed-head receipt demonstrates that a drifted parent or child is rejected before the actual mutation.
  • Resolve merge risk (P1) - The exact reviewed head has no hosted final-effect proof for the authenticated child and parent rerun path; earlier broker evidence was for an older head.
  • Resolve merge risk (P1) - A maintainer must choose an acceptable nonpublishing proof route before this release-controller mutation path is safe to land.
  • Complete next step (P2) - A maintainer must authorize the proof route for the authenticated rerun path; this is not suitable for an automated repair job.

Findings

  • [medium] Prove rerun authorization at the final effect — scripts/frv.mjs:621
Agent review details

Security

Needs attention: No concrete authorization bypass was found, but the new authenticated rerun boundary lacks exact-head final-effect evidence.

PR surface

Tests +1510, Docs +96, Config +47, Other +1782. Total +3435 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 1548 38 +1510
Docs 2 102 6 +96
Config 3 53 6 +47
Generated 0 0 0 0
Other 9 1981 199 +1782
Total 22 3684 249 +3435

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +2,136/-211; tests +1,548/-38 The substantial controller expansion is justified only if exact-head authenticated recovery proof establishes the new release-operation boundary.

Merge-risk options

Maintainer options:

  1. Prove the exact-head mutation path (recommended)
    Authorize a nonpublishing fixture and retain redacted receipts showing successful recovery and rejection before rerun on identity drift.
  2. Accept reduced proof
    Document an explicit maintainer decision to land with unit and workflow-contract coverage only.
  3. Pause until an eligible run exists
    Defer the controller until an organic all-group root can exercise the exact authenticated path.

Technical review

Best possible solution:

Use a maintainer-authorized, nonpublishing exact-head fixture that proves reruns occur only after exact parent and child identity checks and that identity drift is rejected before the GitHub mutation.

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

Yes in controller fixtures: they model failed children, newer attempts, same-parent resealing, and identity drift; no current-head hosted continuation was executed.

Is this the best way to solve the issue?

Potentially yes: preserving a sealed same-parent plan avoids rerunning whole successful child workflows, but the authenticated mutation path still needs exact-head final-effect proof.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 640d73e3d452.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This adds an operator-facing release-validation recovery capability with bounded release-process impact.
  • merge-risk: 🚨 automation: The branch changes GitHub Actions rerun behavior and FRV evidence recovery.
  • merge-risk: 🚨 security-boundary: Authenticated rerun mutations depend on preserving exact parent and child workflow identity.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the current head has focused controller coverage but no hosted final-effect evidence for the privileged child and parent rerun operations. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Prove rerun authorization at the final effect — scripts/frv.mjs:621
    The controller invokes GitHub Actions reruns after source checks, but no hosted reviewed-head receipt demonstrates that a drifted parent or child is rejected before the actual mutation.
    Confidence: 0.82

Acceptance criteria:

  • [P1] Run a nonpublishing exact-head all-group FRV fixture.
  • [P1] Capture successful recovery and identity-drift rejection before child or parent rerun.
  • [P1] Retain focused FRV controller and workflow-contract coverage.

What I checked:

Likely related people:

  • vincentkoc: Authored the same-parent recovery commit and several preceding FRV continuation hardening changes; also has prior merged FRV workflow-test work. (role: recent area contributor; confidence: high; commits: d48f259690dc, 4faca052ae27, 698886caf3e3; files: scripts/frv.mjs, scripts/full-release-validation-policy.mjs, scripts/full-release-validation-state.mjs)
  • steipete: Merged FRV recovery work on the SHA-pinned validation helper, an adjacent controller boundary used by this release-validation flow. (role: adjacent feature contributor; confidence: medium; commits: 72b06b00771a; files: scripts/full-release-validation-at-sha.mts)

Rank-up moves

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

  • Add final-effect proof for the nearest unauthorized principal and prove identity drift rejects before GitHub Actions I/O.
  • Attach redacted hosted receipts from a maintainer-approved nonpublishing fixture.

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.

History

Review history (28 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-27T16:31:18.331Z sha ffa79bd :: needs real behavior proof before merge. :: [P2] Fail the continuation when temporary-ref cleanup fails
  • reviewed 2026-08-27T16:49:26.287Z sha acab1eb :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-27T17:20:17.641Z sha 3ef94ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-27T17:53:54.969Z sha 3ef94ba :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-27T22:30:41.529Z sha 2758b00 :: needs real behavior proof before merge. :: [P2] Declare the documented temporary-ref method
  • reviewed 2026-08-27T23:08:34.986Z sha dcb1cb1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-27T23:32:30.819Z sha dcb1cb1 :: found issues before merge. :: [P2] Reject whitespace-only continuation input
  • reviewed 2026-08-28T00:15:48.049Z sha dcb1cb1 :: needs real behavior proof before merge. :: [P1] Bind continuation dispatch to an immutable workflow revision | [P1] Verify the push destination before deleting the temporary ref | [P2] Reject whitespace-only continuation input

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 23, 2026
@vincentkoc
vincentkoc force-pushed the fix/frv-canonical-continuation-20260822 branch from 1cb8dd8 to 2c350ee Compare August 24, 2026 23:06
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 2c350ee41cad53b5f4c87e10507c3060039e9d12

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/frv-canonical-continuation-20260822 branch from 2c350ee to dbcb517 Compare August 25, 2026 00:11
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: dbcb517606ec4da686b91a8fc6cda23ab7f71d89

This is the single reviewed restack after #128460 landed. Please review this exact head, including preservation of the sharded iOS screenshot topology and artifact contract.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/frv-canonical-continuation-20260822 branch from dcb1cb1 to 4faca05 Compare August 28, 2026 11:14
@vincentkoc
vincentkoc marked this pull request as ready for review August 28, 2026 11:14
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 28, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper review items dispositioned on the current architecture:

  • the mutable temporary-ref dispatch, push destination, and exact-ref deletion surfaces were removed entirely;
  • the workflow no longer accepts continuation_plan_json, so the whitespace-only ingress path no longer exists;
  • continuation stays on the original parent, restores the immutable attempt-one execution plan, reruns only failed exact child jobs, and rejects any parent dispatch-slot redispatch during final verification;
  • exact-head no-op/controller/verifier coverage passed 803 tests, including the attempt-one-success plus attempt-two-skipped carry-forward and redispatch rejection cases.

The old requested live proof targeted the deleted temporary-ref architecture. No real release or FRV dispatch is required for the replacement path, and none was started.

@vincentkoc
vincentkoc merged commit c28cb02 into main Aug 28, 2026
270 of 294 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-canonical-continuation-20260822 branch August 28, 2026 11:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…penclaw#128141)

* fix(release): resume failed FRV child attempts

* fix(release): harden FRV continuation controller

* fix(release): bind FRV continuation source evidence

* fix(release): support historical FRV source evidence

* fix(release): bind historical FRV source inputs

* fix(release): bind historical FRV source evidence

* fix(release): preserve historical FRV source identity

* fix(release): align FRV continuation CI checks

* fix(release): disable fail-fast for FRV continuations

* test(release): align FRV fail-fast expectation

* fix(release): classify missing FRV artifacts centrally

* fix(release): recover FRV state from workflow artifacts

* fix(release): overwrite recovered FRV plan artifact

* docs(release): clarify FRV plan recovery

* fix(release): harden FRV continuation recovery

* fix(release): revalidate FRV tooling ref before dispatch

* fix(release): authenticate historical FRV plans

* fix(release): fail FRV when temporary ref cleanup fails

* test(ci): update FRV workflow routing expectations

* fix(release): declare FRV workflow ref helper

* fix(release): keep FRV recovery on the same parent

* fix(release): verify original dispatch on parent recovery
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 maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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