Repository navigation
fix(release): preserve validation plan across reruns - #127343
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 10:03 PM ET / August 22, 2026, 02:03 UTC. ClawSweeper reviewWhat this changesThe 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 readinessKeep 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 Review scores
Verification
How this fits togetherFull 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]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +7, Docs +8, Config +2. Total +17 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
1a3aa6a to
922296b
Compare
* 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
Summary
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:
Restore immutable release execution plan: https://github.com/openclaw/openclaw/actions/runs/32502046941/job/96834858649Why this owner
The repository already pins official
actions/cachev5. 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:
fail-on-cache-missis an explicit input and the save post-step is gated bysuccess(): https://github.com/actions/cache/blob/27d5ce7f107fe9357f9df03efb73ab90386fccae/action.yml#L21-L44restore-keysis supplied, and throws on a required miss: https://github.com/actions/cache/blob/27d5ce7f107fe9357f9df03efb73ab90386fccae/src/restoreImpl.ts#L32-L76Verification
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
[email protected]packagefull-release-execution-plan-v1-325446553245af98eba5a581bf55b1bd8ff09313a66f9064a574fdeebef5f8100845a92820e32544680489, attempt oneExact-head PR CI is green with no failed or active checks. The workflow regression asserts:
Diff audit
+7/-5+9/-2+19/-11+0/-0The workflow growth is the explicit cross-attempt custody boundary. No child dispatch, release policy, or product behavior changes.