Skip to content

fix(release): preserve validation plan across reruns - #127343

Merged
RomneyDa merged 4 commits into
mainfrom
fix/full-release-plan-rerun
Aug 22, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/full-release-plan-rerun

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • preserve the attempt-one Full Release Validation execution plan under an exact run-ID cache key
  • restore and validate those immutable bytes on a parent rerun, then upload the normal plan artifact for that attempt
  • fail closed on a missing/evicted cache; never reconstruct child identity or dispatch a second child

Root cause

PR #127014 made parent reruns depend on full-release-execution-plan-<run-id> from attempt one. GitHub makes prior-attempt artifacts unavailable when the parent workflow is rerun, so the plan restore fails before Release Decision or Diagnostic Drain can adopt the original child.

The controlled post-merge proof reproduced this exactly:

Why this owner

The repository already pins official actions/cache v5. Its combined action restores before the plan is validated and saves in a success-only post-step after attempt one seals the plan. The parent run ID is unique, contains no secrets, and is stable across attempts. That makes the cache a narrow cross-attempt transport, while the validated artifact remains the per-attempt evidence surface consumed by Decision, Drain, summary, and external verification.

This avoids custom child discovery, log parsing, mutable repository state, and any second workflow-dispatch POST. Cache eviction remains explicit: the rerun fails closed and the operator starts a new validation.

Direct pinned-action inspection:

Verification

Not run locally. Per the validation constraint, GitHub owns formatting, workflow parsing, tests, and the controlled parent-rerun proof.

Exact-head controlled proof: https://github.com/openclaw/openclaw/actions/runs/32544655324

Exact-head PR CI is green with no failed or active checks. The workflow regression asserts:

  • the exact pinned combined cache action
  • the exact run-ID key with no prefix fallback
  • cache miss is fatal only on a parent rerun
  • the plan artifact uploads on every parent attempt
  • the canonical artifact-download count reflects the removed cross-attempt download

Diff audit

  • release workflow: +7/-5
  • tests: +9/-2
  • docs and operator skills: +19/-11
  • product runtime: +0/-0

The workflow growth is the explicit cross-attempt custody boundary. No child dispatch, release policy, or product behavior changes.

@clawsweeper

clawsweeper Bot commented Aug 21, 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 size: S maintainer Maintainer-authored PR labels Aug 21, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 10:03 PM ET / August 22, 2026, 02:03 UTC.

ClawSweeper review

What this changes

The PR replaces unavailable prior-attempt plan artifacts with an exact parent-run cache, validates the restored plan on reruns, and republishes the normal artifact for each attempt.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review. The patch follows the established immutable-plan ownership boundary and has no concrete correctness finding, but direct inspection of the new action’s pinned source, the exact hosted rerun, and current main was blocked by GitHub DNS failure.

Priority: P2
Reviewed head: 922296b847b4861c55358b06ec182fef001c6eb6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch and described hosted rerun are strong, while direct dependency and hosted-run corroboration remains unavailable to this review.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This MEMBER PR is exempt from the external-contributor proof gate; its body nevertheless records a controlled hosted rerun, pending independent access to the linked run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER PR is exempt from the external-contributor proof gate; its body nevertheless records a controlled hosted rerun, pending independent access to the linked run.
Evidence reviewed 8 items Cache transport: The changed release-plan job uses one exact run-ID cache key and makes a miss fatal only on retry attempts.
Restore validation: The plan owner reads the restored bytes, validates parent/run/workflow bindings and digest, then rewrites only the validated canonical plan.
Downstream invariant: Release Decision, Diagnostic Drain, and summary continue consuming the per-attempt artifact, so the cache is limited to recovery transport rather than becoming a new downstream authority.
Findings None None.
Security None None.

How this fits together

Full Release Validation dispatches child workflows and seals their exact identities into an execution plan used by release decision, diagnostics, and final verification. A parent rerun must reuse that plan without reconstructing it or dispatching another child.

flowchart LR
  A[Parent validation] --> B[Seal execution plan]
  B --> C[Exact run cache]
  B --> D[Attempt artifact]
  C --> E[Parent rerun]
  E --> F[Validate restored plan]
  F --> D
  D --> G[Decision and diagnostics]
  G --> H[Release result]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub DNS prevented direct verification of the new pinned action’s contract and the supplied hosted attempt-two recovery proof.
  • Resolve merge risk (P1) - The branch is behind current main, and this review could not materialize current main from the partial clone; refresh the merge/review state before landing.
  • Resolve merge risk (P1) - Production workflow code is net +2 lines; that growth appears to be the explicit cache custody boundary, but should remain conditional on the direct hosted verification.
  • Complete next step (P2) - A maintainer should refresh the exact hosted and dependency-contract evidence once GitHub access is available; no safe automated repair is indicated.
Agent review details

Security

None.

PR surface

Tests +7, Docs +8, Config +2. Total +17 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 2 +7
Docs 3 19 11 +8
Config 1 7 5 +2
Generated 0 0 0 0
Other 0 0 0 0
Total 5 35 18 +17

Review metrics

Metric Value Why it matters
Production versus test delta workflow +7/-5; tests +9/-2; docs and operator skills +19/-11 The net +2 workflow lines implement the explicit cross-attempt plan-custody boundary; test growth is a focused configuration guard.

Stored data model

Persistent data-model change detected: persistent cache schema: .agents/skills/openclaw-testing/SKILL.md, persistent cache schema: .agents/skills/release-openclaw-ci/SKILL.md, persistent cache schema: .github/workflows/full-release-validation.yml, persistent cache schema: docs/reference/full-release-validation.md, persistent cache schema: test/scripts/package-acceptance-workflow.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Pause for direct workflow verification (recommended)
    Before merging, recheck the pinned cache action and the exact hosted parent rerun once GitHub access is available.

Technical review

Best possible solution:

Keep one exact parent-run cache as the recovery transport, validate its bytes before use, republish the regular attempt artifact, and confirm the hosted rerun preserves child identity without a second dispatch.

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

Unclear: source establishes the retry path, and the PR supplies a controlled hosted rerun, but this review could not independently access that run because GitHub DNS failed.

Is this the best way to solve the issue?

Unclear: the exact-key cache is the narrowest apparent recovery transport and preserves existing validation, but its upstream contract and hosted behavior still need direct confirmation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 62ccf026ca8f.

Labels

Label justifications:

  • P2: This is a bounded reliability fix for release automation, not an end-user runtime emergency.
  • merge-risk: 🚨 automation: The PR changes the cross-attempt state transport used by Full Release Validation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER PR is exempt from the external-contributor proof gate; its body nevertheless records a controlled hosted rerun, pending independent access to the linked run.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the merged release-validation change whose artifact-based rerun contract this PR repairs. (role: introduced adjacent release-validation behavior; confidence: medium; commits: a2f0b84e8ada; files: .github/workflows/full-release-validation.yml, scripts/full-release-validation-state.mjs)

Rank-up moves

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

  • Recheck the pinned action source and exact attempt-two hosted run when GitHub access returns.

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 (2 earlier review cycles)
  • reviewed 2026-08-21T19:04:21.610Z sha 1a3aa6a :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T01:29:54.800Z sha 922296b :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/full-release-plan-rerun branch from 1a3aa6a to 922296b Compare August 22, 2026 01:23
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 22, 2026
@RomneyDa
RomneyDa merged commit 53fbe2e into main Aug 22, 2026
179 of 184 checks passed
@RomneyDa
RomneyDa deleted the fix/full-release-plan-rerun branch August 22, 2026 02:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 22, 2026
* fix(release): preserve validation plan across reruns

* test(release): align rerun plan assertions

* refactor(release): use canonical plan cache action

* style(test): format release plan cache assertion

This branch had an error being deployed

1 failed deployment
qa-live-shared — 922296b8 Deployed Aug 22, 2026 by github-actions[bot] via Run package Telegram E2E #751
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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant