Skip to content

fix(release): GitHub ghost rerun jobs block Full Release Validation from sealing - #161404

Merged
steipete merged 1 commit into
mainfrom
fix/frv-ghost-duplicate-jobs
Sep 30, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/frv-ghost-duplicate-jobs

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: Full Release Validation can't continue, verify or publish a run when GitHub leaves never-executed "ghost" copies of a rerun job in a child's earlier attempt.

User Impact

User impact: a GitHub-side glitch during a child rerun no longer poisons the whole release validation run. For 2026.9.7, FRV-E (run 36617008865) had every child green but couldn't seal, and the release needed a fresh FRV-F at the same SHA.

Why This Change Was Made

CI run 36618240551, attempt 2, lists checks-node-core-runtime-infra-process 18 times: one completed success (job 109609047384) and 17 copies with status queued, no runner, 0 steps and no completed_at. They were all created at 20:38:30Z by a single rerun-failed POST. composeReleaseAttemptJobs rejects duplicate job names in any attempt. Parent verify, continuation, the publisher and child reuse all go through it, so the run couldn't be recovered at the same tooling.

The function already drops completed skipped jobs before the duplicate check. This change adds the same treatment for a narrow ghost shape: status queued, no runner_name, an empty steps array, and a completed job with the same name in the same attempt, only in a superseded attempt (earlier than the effective one). Duplicates stay rejected in these cases:

  • in the effective attempt;
  • when the attempt has no completed sibling;
  • when a copy shows execution evidence (a runner or steps).

To keep production lines near neutral, compositeJobsDigestPayload is inlined into releaseCompositeJobsSha256. It builds the same object with the same key order, so the hash is unchanged.

Child reuse (scripts/lib/full-release-child-reuse.mjs) still requires every job in an inventory to be completed. So an attempt with ghost jobs still gets a fresh child dispatch instead of reuse. That's the conservative behavior, and this PR doesn't change it.

Evidence

  • New regression tests in test/scripts/full-release-validation-state.test.ts build the observed shape (ghosts beside a completed job in superseded attempt 2, effective attempt 3). The main case fails without the fix and passes with it. The negative cases (effective attempt, no completed sibling, copy with a runner) still reject.
  • full-release-validation-state, frv and full-release-artifact-contract tests: 440 passed.
  • Cost: node scripts/run-vitest.mjs test/scripts/full-release-validation-state.test.ts --maxWorkers=1 takes 9.9 s wall for 299 tests. The 4 new cases take milliseconds.
  • LOC: production +13/-12 (net +1); tests +84.
  • Autoreview (Codex, P0–P2) came back scoped-clean.

This is a follow-up for main. It doesn't need to land before the 2026.9.7 publish, which continues at tooling e89ae26 via FRV-F.

@clawsweeper

clawsweeper Bot commented Sep 29, 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 Sep 29, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 30, 2026, 4:57 AM ET / 08:57 UTC (Revision 5).

ClawSweeper review

What this changes

The branch filters certain queued duplicate GitHub jobs from earlier Full Release Validation child attempts and adds tests for attempt composition.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open. Current main still rejects the reported duplicate jobs, but the latest PR head does not handle the real job rows or unblock child receipt sealing. Both findings from the prior review remain.

Priority: P1
Reviewed head: f4fa2b37af7a508c9d40ab7ba86f0a127934b1cd

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused, but both release paths identified in earlier review remain broken for the cited run.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied Repository State identifies a MEMBER author, so the external-contributor setup proof gate does not apply. The composer tests use synthetic stepless rows; the cited real GitHub Actions attempt instead has copied steps and a failed seal job, leaving after-fix recovery unshown. No stored-data format changes.
Patch quality 🧂 unranked krab (1/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied Repository State identifies a MEMBER author, so the external-contributor setup proof gate does not apply. The composer tests use synthetic stepless rows; the cited real GitHub Actions attempt instead has copied steps and a failed seal job, leaving after-fix recovery unshown. No stored-data format changes.
Evidence reviewed 8 items Introduced filter: The new filter requires a queued row to have an empty steps array. Duplicate identity still throws for rows that fail that test.
Observed GitHub job rows: The cited attempt has one completed job and 17 queued duplicates with no runner. Every queued copy has 21 steps; the full steps arrays match the completed job's steps.
Publisher checks status first: The receipt publisher rejects any non-completed predecessor job before calling the attempt composer, so the new filter cannot help this entry point.
Findings 2 actionable findings [P1] Match the copied steps in GitHub's ghost rows
[P1] Apply ghost qualification before receipt sealing checks status
Security None None.

How this fits together

Full Release Validation reads GitHub Actions jobs from each child run attempt and combines them into evidence for release decisions. A separate child job seals that evidence into a receipt before publication can rely on it.

flowchart LR
 A[GitHub child reruns] --> B[Paginated job inventory]
 B --> C[Receipt publisher status check]
 C --> D[Attempt composition]
 D --> E[Sealed child receipt]
 D --> F[Parent continuation]
 E --> G[Release decision]
 F --> G
Loading

Before merge

  • Match the copied steps in GitHub's ghost rows (P1) - The cited attempt-list response has 17 queued, runnerless copies with 21 step records each, identical to the completed sibling's steps. This empty-steps predicate leaves every copy in the inventory, so duplicate identity still aborts the reported recovery. Base the qualification and regression fixture on that response.
  • Apply ghost qualification before receipt sealing checks status (P1) - The new composer filter cannot help the receipt publisher: scripts/full-release-child-evidence.mjs rejects every non-completed predecessor before calling it. The cited run's attempt-3 seal step failed, so this path still cannot produce the mandatory receipt. Share the narrow qualification with that status check and test the publisher entry point.
  • Resolve merge risk (P1) - Merging as-is would leave the cited release run unable to recover at the same tooling SHA: parent composition still rejects its copied-step rows, and mandatory receipt sealing rejects their queued status.
  • Complete next step (P2) - Repair the copied-step classifier and the receipt publisher's earlier status check, then validate both entry points before merge.
  • Improve patch quality - Cover the captured copied-step job rows in the attempt-composition regression.
  • Improve patch quality - Cover receipt sealing through its entry point with the same superseded-attempt rows.

Findings

  • [P1] Match the copied steps in GitHub's ghost rows — scripts/full-release-validation-policy.mjs:948
  • [P1] Apply ghost qualification before receipt sealing checks status — scripts/full-release-validation-policy.mjs:950
Agent review details

Security

None.

PR surface

Tests +94, Other +1. Total +95 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 94 0 +94
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 13 12 +1
Total 2 107 12 +95

Review metrics

Metric Value Why it matters
Observed duplicate rows 17 queued; 21 steps each The real incident shape is absent from the added regression fixture.

Merge-risk options

Maintainer options:

  1. Repair both evidence paths (recommended)
    Match the captured GitHub rows, apply the same narrow ghost qualification before receipt sealing checks job status, and verify both entry points.

Technical review

Best possible solution:

Use one narrow qualification for stale duplicate rows in the paginated job inventory, shared by attempt composition and receipt sealing, while preserving strict checks for current-attempt and executed jobs.

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

Yes. The cited GitHub attempt-list response supplies 17 queued duplicates, and current source shows where composition and receipt sealing reject them; this read-only review did not execute a replay.

Is this the best way to solve the issue?

No. The composer-only, empty-steps predicate misses the observed rows and cannot affect the publisher's earlier status check.

Full review comments:

  • [P1] Match the copied steps in GitHub's ghost rows — scripts/full-release-validation-policy.mjs:948
    The cited attempt-list response has 17 queued, runnerless copies with 21 step records each, identical to the completed sibling's steps. This empty-steps predicate leaves every copy in the inventory, so duplicate identity still aborts the reported recovery. Base the qualification and regression fixture on that response.
    Confidence: 0.99
  • [P1] Apply ghost qualification before receipt sealing checks status — scripts/full-release-validation-policy.mjs:950
    The new composer filter cannot help the receipt publisher: scripts/full-release-child-evidence.mjs rejects every non-completed predecessor before calling it. The cited run's attempt-3 seal step failed, so this path still cannot produce the mandatory receipt. Share the narrow qualification with that status check and test the publisher entry point.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The reported failure blocks a release validation workflow despite a completed child run.
  • merge-risk: 🚨 automation: The diff changes release evidence filtering, yet the reported GitHub rows and receipt publisher still block sealing.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied Repository State identifies a MEMBER author, so the external-contributor setup proof gate does not apply. The composer tests use synthetic stepless rows; the cited real GitHub Actions attempt instead has copied steps and a failed seal job, leaving after-fix recovery unshown. No stored-data format changes.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs test/scripts/full-release-validation-state.test.ts test/scripts/full-release-child-evidence.test.ts test/scripts/frv.test.ts --maxWorkers=1.
  • [P1] git diff --check.

What I checked:

  • Introduced filter: The new filter requires a queued row to have an empty steps array. Duplicate identity still throws for rows that fail that test. (scripts/full-release-validation-policy.mjs:948, f4fa2b37af7a)
  • Observed GitHub job rows: The cited attempt has one completed job and 17 queued duplicates with no runner. Every queued copy has 21 steps; the full steps arrays match the completed job's steps.
  • Publisher checks status first: The receipt publisher rejects any non-completed predecessor job before calling the attempt composer, so the new filter cannot help this entry point. (scripts/full-release-child-evidence.mjs:140, fa2cbc023e0b)
  • Observed seal failure: Attempt 3 completed its Seal child receipt job with failure at the Seal exact child attempt evidence step; artifact upload was skipped.
  • Regression fixture gap: The added ghost fixture uses steps: [], unlike the cited paginated GitHub response, and exercises the composer rather than the receipt publisher. (test/scripts/full-release-validation-state.test.ts:1151, f4fa2b37af7a)
  • Current main still needs the fix: The pinned main version drops completed skipped jobs but otherwise rejects duplicate job names; it has no ghost-row qualification. (scripts/full-release-validation-policy.mjs:945, fa2cbc023e0b)

Likely related people:

  • Peter Steinberger: Raw commit ebdab59 adds scripts/full-release-child-evidence.mjs:140 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ebdab59f91db; files: scripts/full-release-child-evidence.mjs)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (4 earlier review cycles)
  • reviewed 2026-09-29T21:57:02.563Z sha d7dd93c :: blocked before merge. :: [P1] Reconcile ghost steps from the attempt-list API
  • reviewed 2026-09-30T03:21:20.187Z sha 7028be9fe7ee89bbe2675f41d1123e780c5ea629 :: blocked before merge. :: [P1] Reconcile ghost steps from the attempt-list API
  • reviewed 2026-09-30T03:36:09.427Z sha 6eeed12 :: blocked before merge. :: [P1] Handle copied steps in the attempt-list ghost rows | [P1] Reconcile the receipt publisher before relying on this filter
  • reviewed 2026-09-30T05:44:25.951Z sha ba1eab2 :: blocked before merge. :: [P1] Handle the copied steps in GitHub's ghost job rows | [P1] Reconcile receipt sealing with the ghost filter

@steipete
steipete force-pushed the fix/frv-ghost-duplicate-jobs branch from d7dd93c to 7028be9 Compare September 30, 2026 03:14
@steipete
steipete enabled auto-merge (squash) September 30, 2026 03:14
@steipete
steipete force-pushed the fix/frv-ghost-duplicate-jobs branch 2 times, most recently from 6eeed12 to ba1eab2 Compare September 30, 2026 05:38
@steipete
steipete force-pushed the fix/frv-ghost-duplicate-jobs branch from ba1eab2 to f4fa2b3 Compare September 30, 2026 08:49
@steipete
steipete merged commit a1ecef6 into main Sep 30, 2026
143 checks passed
@steipete
steipete deleted the fix/frv-ghost-duplicate-jobs branch September 30, 2026 08:59
steipete added a commit that referenced this pull request Sep 30, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant