Repository navigation
fix(release): recover failed receipts without rerunning workloads - #168266
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR targets failed release receipt jobs without repeating passing workloads and shares the existing release-evidence reader. Example: normalCi run 101 has passing workloads and one failed receipt job on attempt 1.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides useful receipt-specific recovery that current main lacks; no introduced correctness or security defect was found, and exact-head CI is green. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe FRV CLI reads immutable release plans and GitHub Actions attempt inventories, selects bounded recovery operations, and requires strict verification before accepting qualification. flowchart TD
A[Release operator] --> B[FRV CLI]
B --> C[Canonical recovery planner]
C --> D[Exact receipt job retry]
D --> E[Child receipt writer]
F[Shared evidence reader] --> E
E --> G[Parent reseal and strict verification]
Technical reviewBest possible solution: Keep receipt selection in the canonical planner and retain exact-attempt evidence composition and strict parent verification. Do we have a high-confidence way to reproduce the issue? Current-main source returns failed-jobs when the receipt publisher alone fails; the added controller regression exercises that input, and the body reports its pre-fix failure. No target code was executed during this read-only review. Is this the best way to solve the issue? The focused planner change reuses existing exact-job dispatch rather than adding another recovery owner, and the reader consolidation preserves receipt identity checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8832904b171a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +72, Docs +7, Other -28. Total +51 across 8 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 10, 2026, 3:41 AM ET / 07:41 UTC (Revision 5). |
…enclaw#168266) * fix: recover failed release receipts without rerunning workloads * test(release): materialize publication harness preload closure
…68266) Backport of 4485101 (#168266) adapted for 2026.10.3. Kept the release line's bounded 25-job-page receipt writer instead of main's switch to the shared evidence client (dedup refactor, not needed for receipt-only recovery); its existing pagination test stays. Planner, frv, docs, and the publication fixture repair port as-is. (cherry picked from commit 4485101)
…8170) * fix: ClawHub release verification fails while publication is pending (#168153) * fix(release): verify ClawHub only after public finalization * fix: align ClawHub recovery with authoritative publication state (cherry picked from commit 7985ac2) Co-authored-by: RomneyDa <[email protected]> * fix: Linux feed publication tolerates stale public downloads (#168179) (cherry picked from commit 18f2006) Co-authored-by: RomneyDa <[email protected]> * feat(pr): scope worktree cleanup to one PR (#168152) (cherry picked from commit 51c0f56) Co-authored-by: RomneyDa <[email protected]> * feat(release): reconcile exact owned validation cancellation trees (#168267) * feat(release): reconcile exact owned FRV cancellation trees * fix(release): parse cancellation provenance with fixed patterns * fix(release): normalize rerun copies before cancellation discovery (cherry picked from commit 02a2bd2) Co-authored-by: RomneyDa <[email protected]> * fix(release): recover failed receipts without rerunning workloads (#168266) * fix: recover failed release receipts without rerunning workloads * test(release): materialize publication harness preload closure (cherry picked from commit 4485101) Co-authored-by: RomneyDa <[email protected]> * fix(qa): restore Telegram progress E2E delivery (#168675) (cherry picked from commit 1fbfd4a) Co-authored-by: RomneyDa <[email protected]> * docs(release): generate release notes once after validation-recovery backports (#169495) (cherry picked from commit 696fb2f) Co-authored-by: RomneyDa <[email protected]> * fix(release): explain why release:candidate --workflow-sha must be trusted main (#169496) (cherry picked from commit 513d0e7) Co-authored-by: RomneyDa <[email protected]> * fix(release): full release validation helper fails when main advances before admission dispatch (#169500) (cherry picked from commit 992410c) Co-authored-by: RomneyDa <[email protected]> * fix(release): derive attested publish tooling in npm postpublish verification (#169497) (cherry picked from commit 1f8307f) Co-authored-by: RomneyDa <[email protected]> * fix(release): report candidate supersession and resume watchers (#168271) * fix(release): report candidate supersession and resume watchers * fix(release): keep invalid candidate metadata advisory to watchers (cherry picked from commit cdb57ac) Co-authored-by: RomneyDa <[email protected]> * fix(pr): stop waiting for advisory ClawSweeper reviews (#169739) (cherry picked from commit c2d1513) Co-authored-by: RomneyDa <[email protected]> * ci: let PR checks finish and classify inherited failures (#169647) * ci: finish PR jobs and classify failures against main * ci: distinguish signature and job-name failure attribution * test(ci): avoid object spread in failure fixtures * ci: classify differing validation scopes as unknown (cherry picked from commit 7c4ff5a) Co-authored-by: RomneyDa <[email protected]> * fix(pr): scripts/pr keeps a lock after a failed command that fully drained (#169595) * fix(pr): release drained failed-operation locks instead of requiring manual recovery * test(pr): drop unused lock owner initializer * docs(pr): drop obsolete blanket failure-retention claim (cherry picked from commit a939a9d) Co-authored-by: RomneyDa <[email protected]> * fix(update): success headline hides post-swap steps that did not run (#170490) (cherry picked from commit f26cdca) Co-authored-by: RomneyDa <[email protected]> * fix(release): require current website downloads at closeout (#170704) * fix(release): require current website downloads at closeout * fix(release): verify request-time downloads before closeout receipts * style(release): use braces for dispatch validation (cherry picked from commit 0c51cc6) Co-authored-by: RomneyDa <[email protected]> * fix(ci): prevent avoidable FRV retries and cold setup failures (#170964) * fix(ci): preserve FRV work through transient GitHub reads * fix(ci): retain cache reads for frozen workflow targets * fix(ci): count contributing packed release timing samples * fix(ci): avoid stalled iOS simulator diagnostics * test(ci): correct FRV regression assertions and output capture (cherry picked from commit 5cd688d) Co-authored-by: RomneyDa <[email protected]> * fix(update): stabilize stalled recovery cleanup validation (#171507) * test(update): await recovery descendant before fixture expiry Expire the generated helper recovery timeout callback after the isolated command has persisted a live descendant PID and emitted readiness. Keep process-group termination and close joins native, retain the durable failed sentinel and dead-descendant assertions, and bound missing readiness with a fixture watchdog. Refs #170803 (stalled-recovery fixture race only). * test(update): load recovery clock from fixture module Replace the added hand-written preload source template with a test-owned ESM fixture and per-case JSON configuration. Preserve exact helper and recovery command scoping, native timeout callback and watchdog cleanup, persisted descendant readiness and existing deadline, close-order, sentinel and process-death assertions. Production behavior and deadlines are unchanged. Refs #170803 (stalled-recovery fixture race only). * test(update): join state workers before handoff cleanup Await the maintained state-database test cleanup owner before removing managed-handoff fixture directories. Synchronous native-handle close only starts worker retirement and can race the final WAL cleanup, observed as ENOTEMPTY in the retained-notification triage case. Reuse closeStateDatabaseForTest without retries, timing seams, triage behavior changes or production changes. Refs #170803 (managed-handoff test fixtures only). (cherry picked from commit 4a25358) Co-authored-by: RomneyDa <[email protected]> * test(agents): retire session MCP managers left by earlier test files (#172515) (cherry picked from commit d4be691) Co-authored-by: RomneyDa <[email protected]> * fix(release): show publication release and Windows source identities (#170274) (cherry picked from commit 35fffec) Co-authored-by: RomneyDa <[email protected]> * fix: distinguish workflow approval and exception capabilities (#172661) (cherry picked from commit aade2f8) Co-authored-by: RomneyDa <[email protected]> * fix(release): expose Linux builder admission and retain failed bundles (#170297) * fix(release): expose Linux builder admission and retain failed bundles * fix(release): preserve unconfirmed Linux dispatch status * fix(ci): make Linux build event admission explicit * fix(ci): separate Linux mirror dispatch from release builds * fix(ci): budget cold Linux source package builds (cherry picked from commit 614f559) Co-authored-by: RomneyDa <[email protected]> * fix(ui): let locale refresh workers bootstrap new locale memory (#172689) (cherry picked from commit 17bea1c) Co-authored-by: RomneyDa <[email protected]> * test(gateway): prewarm history worker before composed SDK request budgets (#172745) (cherry picked from commit 2051055) Co-authored-by: RomneyDa <[email protected]> * fix(release): packed package check refuses a root dist above 10,000 JavaScript files (#172954) (cherry picked from commit 244cd79) Co-authored-by: RomneyDa <[email protected]> * test(agents): Bun agents-support shard fails after the question authority test leaks sharing reads (#172974) (cherry picked from commit 54f0b41) Co-authored-by: RomneyDa <[email protected]> * test(plugins): IRC direct import smoke times out on loaded runners during its cold compile (#173105) * test(plugins): IRC direct import smoke times out on loaded runners during its cold compile * test(googlechat): keep the direct smoke test deadline above its child budget (cherry picked from commit 8bc4915) Co-authored-by: RomneyDa <[email protected]> * fix(test): interrupted test wrappers miss their signal exit verifying a generation (#173068) * fix(test): interrupted test runs miss their signal exit verifying a generation they will delete * fix(test): keep borrower disposal verification; skip it only for interrupted wrappers * fix(test): return the shim interruption result on every path (cherry picked from commit b66e0fc) Co-authored-by: RomneyDa <[email protected]> * test(openshell): registration lifecycle test fails when registry retirement outlasts its 1s poll (#173205) (cherry picked from commit 7cd0f47) Co-authored-by: RomneyDa <[email protected]> * fix(android): prepare focused proof before running Gradle (#172668) * fix(android): prepare focused proof before running Gradle * test(android): reach proof prerequisites on Linux ARM * test: remove duplicated Android job structure assertion * fix: seed stored inference account for Docker cron cleanup (cherry picked from commit 404b708) Co-authored-by: RomneyDa <[email protected]> * fix: preserve bound Codex history after app-server restart (#172705) (cherry picked from commit 9fe4372) Co-authored-by: RomneyDa <[email protected]> * fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615) (cherry picked from commit c58afa2) Co-authored-by: RomneyDa <[email protected]> * ci(release): temporarily disable Windows companion publication (#173656) (cherry picked from commit 99ce3ea) Co-authored-by: RomneyDa <[email protected]> * fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465) * fix(qa): retry Telegram stale-update drain through transient Bot API failures * fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget * test(qa): prove the Telegram drain abandons a stalled attempt at its deadline * test(qa): drop timing-dependent upstream count from Telegram drain deadline test (cherry picked from commit 387ebd6) Co-authored-by: RomneyDa <[email protected]> * test(scripts): give relocated worker facade and image tests the archive budget (#174556) (cherry picked from commit 746a52a) Co-authored-by: RomneyDa <[email protected]> * test(ui): settle lazy preference reader before profile identity waits (#174614) (cherry picked from commit d6ea634) Co-authored-by: RomneyDa <[email protected]> * test(plugins): collect Bun recovery retention from a timer phase (#174924) Bun's JavaScriptCore scans native stacks conservatively. Under load, the immediate dispatcher can keep a stale pointer to the completed recovery fixture graph across every immediate-phase collection, so the retired PluginInstance stayed reachable only through GC-internal roots. A collection from a timer callback releases it. When the expected references are still live after the existing immediate passes, run up to four timer-phase collections; a strong retainer still fails. (cherry picked from commit 8919729) Co-authored-by: RomneyDa <[email protected]> * test(scripts): adapt worker archive timeout backport Keep the release branch test inventory while granting the two relocated archive cases the intended three-minute budget. Co-authored-by: RomneyDa <[email protected]> * fix(codex): adapt unloaded-thread recovery to release params Use the release branch request parameter directly when deciding whether an ordinary bound thread may be resumed. Co-authored-by: RomneyDa <[email protected]> * test(codex): adapt recovery fixture to release helper Use the release branch thread-result helper signature so the recovery regression validates the intended thread identity. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: roboclaw-bot <[email protected]>
…enclaw#168266) Backport of 4485101 (openclaw#168266) adapted for 2026.10.3. Kept the release line's bounded 25-job-page receipt writer instead of main's switch to the shared evidence client (dedup refactor, not needed for receipt-only recovery); its existing pagination test stays. Planner, frv, docs, and the publication fixture repair port as-is. (cherry picked from commit 4485101) (cherry picked from commit 3a5aba8) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: Full Release Validation lacks explicit receipt-only recovery when workloads pass but their evidence receipt fails.
Related: #168249 (Batch 3 F07).
User Impact
Operators can preview and explicitly retry only the failed receipt job with the existing
frv rerun --childcommand. Passing workloads retain their exact-attempt evidence. Final qualification is still blocked until refreshed receipts and the parent seal pass strict verification. No configuration, persistence, publication, or release permission changes.Why This Change Was Made
The receipt publisher intentionally runs best-effort, so a workflow can finish green while the required receipt job fails. Previously, child recovery selected the generic failed-jobs route. The canonical planner now selects receipt-only recovery only when the publisher is the sole failed job; real workload failures keep their existing producer/failed-jobs route and bounded retry budget.
The receipt writer now uses the same bounded, attempt-scoped evidence client as verification instead of its duplicate pagination/slurp implementation. This also makes large job sets use one completeness contract.
Evidence
failed-jobsinstead ofreceipt. After the fix, it selects only the exact failed receipt job, does not rerun passing workloads, preserves carried attempt provenance, then requires resealed parent acceptance.node scripts/run-vitest.mjs test/scripts/frv.test.ts test/scripts/full-release-child-evidence.test.ts test/scripts/release-evidence-retry.test.ts: 117 tests passed. Includes receipt-only recovery, workload-failure siblings, and more-than-100-job receipt sealing.child normalCi is passed; nothing to rerun, expected exit 1).git diff --checkpassed. Fresh complete-candidate Codex autoreview supplied full verifier/composition/transport/workflow closure source and passed P0–P2 with source-integrity checks. All applicable format, guards, core graph, script/test typechecks and remaining canonical lint commands passed. Whole changed gate remains blocked by an unchanged main production dead export,src/gateway/control-ui-public-session-render.ts:22(PUBLIC_SESSION_ENTRY_SCRIPT), also still present at server main0a55cbe057e0e0f4d7a2013e01e925b0fcfbca93. Live inspection after merged PR168241 confirmed it registers a different SQLite-fence entry. Separate gateway export/baseline gate repair owns the unchanged main exports; the whole local gate remains honestly blocked until that repair is integrated; no dead-code skip was used. The supplied stale dependency install was reconciled using the exact frozen lock, then focused 117 tests were rerun successfully.Proof gap: actual recovery against an isolated protected Full Release Validation proof run requires the protected-main FRV Proof Broker after merge. This task explicitly forbids merges and production release mutations; real receipt-rerun mutation proof therefore remains a named post-merge acceptance check, not a claimed result. The local controller boundary exercises the exact production flow with injected failed-receipt metadata.
Owner and history evidence
Entry point:
scripts/frv.mjschild recovery. Owner:scripts/full-release-validation-policy.mjscanonical rerun planner. Receipt producer:scripts/full-release-child-evidence.mjs; evidence callee:scripts/release-ci-summary.mjs; composition and strict acceptance sharescripts/lib/full-release-evidence.mjsandscripts/lib/full-release-child-reuse.mjs. Workflow sibling:.github/workflows/full-release-child-evidence.ymlbest-effort metadata job. Existing exact-attempt controller budget/reconciliation and ordinary workload/producer recovery are retained.Current-main baseline:
ff06ae699514bb49bb81485b27574a55bcd6c627. Receipt writer introduced byebdab59f91db7db65b2bb14220f3a84159793c58; child recovery planner by53ccbd1b7b1fd9f1e7a869447389a7308d59df18. GitHub's current job-rerun contract reruns the exact job and its dependents. Receipt workflow jobs are terminal leaves; graph inspection found no workload dependents, so exact receipt selection does not repeat passing workloads. The controller already owns bounded reconciliation.Autoreview CLI protocol inspected directly in sibling Codex:
codex-rs/exec/src/cli.rs:44,codex-rs/exec/src/lib.rs:970,codex-rs/cli/src/main.rs:1144, andcodex-rs/exec/src/event_processor_with_human_output.rs:376(schema forwarding and final report persistence).CI repair and fresh verification
The first exact-head CI run 38029729536 exposed an inherited publication fixture omission: eight renderer scenarios failed because the native harness preload was absent. The same eight failures reproduced locally before this repair. The fixture now copies the real preload/shim/runtime closure and reproduces publication's harness dependency layout; it does not mock or bypass rendering.
node scripts/run-vitest.mjs test/scripts/release-publish-draft.test.tsnow passes all 15 cases. Fresh P0–P2 autoreview is scoped-clean with source integrity; native test-root types and focused type-aware lint pass. The native fixture changed gate completed with every preceding guard/type step passing, then failed only the known inherited public-reader dead export; no passing whole-local-gate claim is made. Production remains -28; added fixture code is test support only.ClawSweeper's fresh exact-head result, reviewed 2026-10-10 07:17 UTC at
82eb6f238e497a0e34f825c92f86c676f05dae6f, has zero findings, no before-merge requirements, and is ready for maintainer review. The protected-main Proof Broker targeted-mutation acceptance gap remains explicitly documented; no real FRV retry or production release mutation was performed. The validation fixture repair does not change receipt recovery behavior. Exact repaired head82eb6f238e497a0e34f825c92f86c676f05dae6f: CI38030662540 completed successfully; all three aggregate contexts are SUCCESS. No passing full-local-gate claim: the separately tracked main export repair remains open. No merges or production release mutations.