Skip to content

fix(release): report stale Linux release requests - #138450

Merged
steipete merged 2 commits into
mainfrom
codex/r3-linux-request
Sep 4, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/r3-linux-request

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where operators requesting Linux companion bundles would see the downstream release silently skip when main advanced after the request workflow completed.

Why This Change Was Made

Move the existing exact request/workflow SHA comparison from the validation job condition into its first shell step. Stale requests now fail with a diagnostic to dispatch a new Linux App Release Request. The check still runs before selected code is checked out; repository, event, workflow name, branch and successful-request filters remain at job admission.

The release request owns this validation. No signing, publication, tag-selection or trust policy changes are included. Workflow delta: +8/-1 (net +7); test delta: +65/-3 (net +62). The added workflow lines provide the missing operator-visible rejection and bind the existing SHA facts at the validation owner. Moving the equality back into the job condition would restore the silent skip; relaxing it would weaken policy. There is no clearer net-neutral form that preserves both requirements.

User Impact

An operator gets a clear failure and recovery action when a release request becomes stale. Matching requests retain their existing outputs and release path.

Evidence

  • The parsed-workflow reproduction fails on the original job-level SHA condition.
  • Actual checked-in Bash validation: matching SHA emits the expected tag/desktop outputs; stale SHA exits 1 with the redispatch diagnostic and no outputs. Other admission restrictions remain enforced.
  • Two focused workflow guard tests passed on the patch-identical candidate before the mechanical rebase. Local validation is reused for that identical patch; fresh hosted CI is bound to the rebased head.
  • Full changed-file checks and workflow checks passed, including actionlint and zizmor. The workflow checker required the already-installed Python 3.12; the default Python 3.9 could not install its pinned pre-commit version.
  • Independent managed Codex review through P2: no actionable findings.

CI retry and base refresh

The initial CI run 33902926191 exposed two failures. A stale local oxfmt 0.60 donor introduced one unrelated YAML wrap; the declared 0.65 formatter removed it, and pinned formatting plus workflow checks pass. The Control UI startup bundle also exceeded its inherited budget by 271 bytes. The exact synthetic-merge/base tree diff contained only this workflow and its tests, so the PR added no UI build inputs.

The branch was mechanically rebased onto 0062f2b127bbbdc9fd7db65c679066a11101b6c3, which includes the canonical lazy settings-copy repair from #137342 (f804e08cba8f). No budget, allowance or assertion changed. The canonical base's performance job passed; the rebased head 69fe4c52a2a08120d09e3ef093cbcca371e4b7b1 now also passes Control UI performance and check-lint. All exact-head checks are now complete: 112 successful, 28 intentionally skipped and one neutral; the aggregate CI gate passes. Native preparation verifies hosted CI/Testbox evidence before merge.

No release dispatch or publication was performed; the changed admission boundary was executed locally using synthetic event data. This directly exercises the real Bash guard without triggering release side effects; it is not a live GitHub release run.

Closes #138446.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 4, 2026
@steipete
steipete marked this pull request as ready for review September 4, 2026 17:52
@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: 🐚 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. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 2:48 PM ET / 18:48 UTC.

ClawSweeper review

What this changes

The PR moves the Linux release request SHA comparison from job admission into the first validation step so stale requests report a redispatch instruction instead of silently skipping the release workflow.

Merge readiness

⛔ Blocked before merge - 1 item remains

No blocking correctness findings. This focused maintainer-authored release-workflow repair preserves the exact SHA admission requirement while turning its prior silent skip into an actionable failure; it should remain open for normal maintainer handling and exact-head workflow checks.

Priority: P1
Reviewed head: 69fe4c52a2a08120d09e3ef093cbcca371e4b7b1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed workflow repair with direct boundary coverage and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI/workflow-metadata repair is exempt from the external-contributor proof gate; the PR supplies focused synthetic execution evidence, while this read-only review did not execute repository code.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI/workflow-metadata repair is exempt from the external-contributor proof gate; the PR supplies focused synthetic execution evidence, while this read-only review did not execute repository code.
Evidence reviewed 6 items Current-main silent-skip mechanism: The fetched current-main workflow keeps the request/workflow SHA comparison in the job-level condition, so a stale request prevents the validation job from starting and cannot emit a diagnostic.
Introduced visible validation: The proposed first step receives both authoritative SHAs, exits before any checkout on mismatch, and retains the existing title validation and outputs for matching requests.
Boundary regression coverage: The added test evaluates the retained admission filters, executes the checked-in Bash with matching and stale SHA values, and asserts stale requests produce no outputs plus the redispatch diagnostic.
Findings None None.
Security None None.

How this fits together

A manually dispatched Linux release request triggers a downstream workflow that validates the request before selecting a release tag and building companion bundles. The changed validation step decides whether the downstream release proceeds or reports that main advanced.

flowchart LR
A[Manual Linux release request] --> B[Workflow-run admission]
B --> C[Request validation]
C --> D{Request SHA matches workflow SHA}
D -->|Yes| E[Tag and ancestry validation]
E --> F[Build and publish bundles]
D -->|No| G[Visible redispatch error]
Loading

Before merge

  • Resolve merge risk (P1) - A stale request now consumes the read-only validation job and records a failed run rather than being silently skipped; exact-head GitHub Actions checks remain the appropriate confirmation that the live workflow_run context preserves matching-request behavior.
Agent review details

Security

None.

PR surface

Tests +62, Config +7. Total +69 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 65 3 +62
Docs 0 0 0 0
Config 1 8 1 +7
Generated 0 0 0 0
Other 0 0 0 0
Total 2 73 4 +69

Review metrics

Metric Value Why it matters
Production versus test LOC workflow +8/-1 (net +7); tests +65/-3 (net +62) The production growth is the two SHA inputs and visible rejection path; it replaces a silent job-level skip and no net-neutral absorbing refactor is evident.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #138446
Summary: This PR is the focused candidate repair for the linked report of stale Linux release requests being silently skipped.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Confirm the live workflow admission path (recommended)
    Allow exact-head workflow checks to confirm that matching requests retain the release path while stale requests produce the intended validation failure.

Technical review

Best possible solution:

Keep one exact SHA admission rule at the request-to-release boundary, with stale requests failing before selected-tag checkout and telling the operator to dispatch a fresh request.

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

Yes—current main's job-level SHA predicate rejects request SHA A versus workflow SHA B before any validation step can run, and the proposed focused test exercises that exact stale/matching split against the checked-in Bash.

Is this the best way to solve the issue?

Yes—the change preserves the existing exact-SHA restriction and relocates its outcome to the first owner validation step, which is the narrowest place that can provide an operator-visible failure before selected code runs.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: The defect can silently prevent an operator-requested Linux companion-bundle release from running.
  • merge-risk: 🚨 automation: The PR changes the admission behavior of a GitHub Actions workflow that controls automated Linux release preparation and publication.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer-authored CI/workflow-metadata repair is exempt from the external-contributor proof gate; the PR supplies focused synthetic execution evidence, while this read-only review did not execute repository code.

Evidence

What I checked:

  • Current-main silent-skip mechanism: The fetched current-main workflow keeps the request/workflow SHA comparison in the job-level condition, so a stale request prevents the validation job from starting and cannot emit a diagnostic. (.github/workflows/linux-app-release.yml:33, 26f87a37009b)
  • Introduced visible validation: The proposed first step receives both authoritative SHAs, exits before any checkout on mismatch, and retains the existing title validation and outputs for matching requests. (.github/workflows/linux-app-release.yml:50, 69fe4c52a2a0)
  • Boundary regression coverage: The added test evaluates the retained admission filters, executes the checked-in Bash with matching and stale SHA values, and asserts stale requests produce no outputs plus the redispatch diagnostic. (test/scripts/ci-workflow-guards.test.ts:15971, 69fe4c52a2a0)
  • Caller and downstream owner boundary: The request workflow is a direct manual dispatch with tag and desktop-test inputs, while the downstream release workflow makes build and publication depend on validation; the new rejection is therefore at the owner of the request-to-release transition. (.github/workflows/linux-app-release-request.yml:1, 69fe4c52a2a0)
  • Sibling release surface is distinct: The macOS release workflow is independently dispatched and validates its own tag input, so it does not share the Linux workflow_run admission condition changed here. (.github/workflows/macos-release.yml:3, 69fe4c52a2a0)
  • PR parentage and introduced commit: The fix commit directly parents the verified merge base, and the formatter-only follow-up directly parents that fix commit. (a338af19fdcb)

Likely related people:

  • Peter Steinberger: 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 (1 earlier review cycle)
  • reviewed 2026-09-04T18:00:40.491Z sha 4279621 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/r3-linux-request branch from 4279621 to 69fe4c5 Compare September 4, 2026 18:40
@steipete steipete self-assigned this Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the latest review’s remaining before-merge condition: all checks for 69fe4c52a2a08120d09e3ef093cbcca371e4b7b1 are complete—112 successful, 28 intentionally skipped, one neutral, none pending or failing. The aggregate CI gate, Control UI performance, check-lint, and macOS companion test pass.

The first validation step still enforces exact SHA equality before outputs or selected checkout, and all six trust filters remain at job admission. The actual Bash matching/stale regression and filter checks passed before the patch-identical mechanical rebase; fresh hosted checks cover the rebased head. Fresh independent review of this exact diff found no actionable P0–P2 findings. Workflow growth is +7 net lines for explicit SHA bindings and the previously missing visible outcome; tests are +62 net. The PR body records both initial CI failures and their resolution without increasing any performance budget.

No release was dispatched or published. Proceeding through the native Testbox-backed prepare and merge gates.

@steipete
steipete merged commit 10a86ff into main Sep 4, 2026
147 checks passed
@steipete
steipete deleted the codex/r3-linux-request branch September 4, 2026 19:09
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged as 10a86ffb58e196105d709dbefb7fc8b129d3afeb from the reviewed and prepared head 69fe4c52a2a08120d09e3ef093cbcca371e4b7b1. The linked issue #138446 is closed.

Exact-head CI and native hosted CI/Testbox preparation passed. GitHub accepted the native squash merge, then returned HTTP 503 during receipt verification. The retained attempt was reconciled against the authoritative merged state and reconstructed landed tree; no second merge request was sent. No bypass, release dispatch or publication occurred.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
* fix(release): report stale Linux release requests

* style(release): use the pinned workflow formatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Bug]: Linux release requests silently skip when main advances

1 participant