Skip to content

fix: publish Linux apps with stable releases - #147113

Merged
steipete merged 2 commits into
mainfrom
codex/linux-release-process
Sep 13, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/linux-release-process

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes regular stable releases leaving Linux desktop downloads and the updater behind after the core release becomes available.

User Impact

Stable core releases automatically request Linux app publication. Existing Linux installations retain a usable signed update feed while the app build finishes, and retries reuse verified published binaries. Partial uploads require targeted release-owner recovery that preserves existing bytes.

Why This Change Was Made

Connect both release activation paths to the existing Linux request workflow and include Linux in release inventory and source admission. Keep approvals outside the publication queue, carry the previous signed updater manifest forward, and advance it when the Linux build completes. Revalidate the selected source and current writer before writes, and preserve historical closeout receipts while validating the updater selector separately from immutable assets.

A dispatched request remains pending until Linux assets verify. The release runbook also requires rebuilding the website and checking its deployed version and download links before closeout. Windows and prerelease publication behavior stays unchanged.

Related: #146878.

Evidence

Independent P2 review and the complete integrated changed-file gate pass, including script/test typechecking, lint, formatting, and export guards. Workflow validation passes. The routing follow-up reproduced the stale expected-list failure and then passed all three targeted cases; its separate P2 review is clean.

Linux CI 34764509145 passed all 81 publication-admission tests, 77 Linux updater tests, and 108 release-plan producer tests with no skips in those files. These cover stable/prerelease selection, overlapping activation, immutable asset reuse, lost writer authority, partial publication, updater continuity, and preserved closeout receipts. The routing expectation is corrected, and the branch now includes main’s separately landed UI startup baseline repair (#147116). The reviewed release patch is unchanged after that rebase. Exact-head CI 34767197253 is fully green, including the required openclaw/ci-gate; native preparation verified the same head.

The 2026.9.4 Linux assets, signed updater, and website downloads are published and verified. The release exercised targeted recovery of the original signed CI artifacts after upload failure, without rebuilding; the recovery and compatibility resolution records its proof and limits. The post-merge registered Linux workflow also passed: build, signing, and bundle attachment skipped; the updater reported unchanged. All four Linux asset IDs, sizes, digests, and timestamps, plus the exact updater manifest bytes, matched the pre-run snapshot.

@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@steipete
steipete marked this pull request as ready for review September 13, 2026 15:04
@steipete
steipete requested a review from a team as a code owner September 13, 2026 15:04
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts app: linux plugin: linux-node size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 12:10 PM ET / 16:10 UTC (Revision 3).

ClawSweeper review

What this changes

Automatically requests Linux desktop bundles after stable release activation and preserves the signed updater feed while builds finish, adding published-asset reuse and closeout validation.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, unsuperseded release fix. No actionable patch defect was found; the release-owner recovery decision and receipt-preservation coverage address the prior compatibility concern.

Priority: P2
Reviewed head: bcb30e5f8b74606170f123d7b6d2ef6ad1f8ae63

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent release fix with meaningful boundary coverage and an explicitly resolved recovery contract.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from ordinary contributor proof. The release-owner account and public asset metadata support v2026.9.4 recovery; the new dispatch, carry, and reuse automation has boundary-test coverage but has not run live.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from ordinary contributor proof. The release-owner account and public asset metadata support v2026.9.4 recovery; the new dispatch, carry, and reuse automation has boundary-test coverage but has not run live.
Evidence reviewed 9 items Current main still needs this integration: The fetched main release-button workflow activates GitHub releases and dispatches Windows publication, but lacks this branch's Linux dispatch and updater carry path. The related merged Linux request fix addresses admission, not automatic stable publication.
Updater compatibility and write authority: The manifest owner preserves candidate bytes, rejects version regression and changed destinations, revalidates source and executing workflow authority immediately before upload, and reconciles uncertain uploads without repeating them.
Existing client contract: Current main configures the Linux updater to use releases/latest/download/latest.json. This PR does not change that endpoint, the configured public key, or the application updater implementation.
Findings None None.
Security None None.

How this fits together

The release publisher makes verified OpenClaw releases public and requests independent native app publication. Linux publication attaches desktop packages and updates the manifest consumed by installed Linux apps.

flowchart TD
  A[Verified stable release] --> B[Approval and activation]
  C[Previous signed Linux manifest] --> B
  B --> D[Linux release request]
  D --> E[Reuse assets or build and sign]
  E --> F[Serialized asset publication]
  F --> G[Linux downloads and updater]
  B --> G
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +1508, Docs +74, Config +300, Other +792. Total +2674 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 10 1526 18 +1508
Docs 4 75 1 +74
Config 4 322 22 +300
Generated 0 0 0 0
Other 8 810 18 +792
Total 26 2733 59 +2674

Review metrics

Metric Value Why it matters
Production and test growth Production/tooling +1,092 net lines; tests +1,508 net lines Production growth implements shared updater publication, authority checks, and recovery rather than adding a second Linux builder.

Stored data model

Persistent data-model change detected: serialized state: scripts/linux-updater-manifest.mjs, serialized state: scripts/verify-stable-main-closeout.mjs, unknown-data-model-change: scripts/linux-updater-manifest.mjs, unknown-data-model-change: scripts/verify-stable-main-closeout.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Stable releases should retain a working Linux updater throughout independent app publication, with immutable downloads and accurate completion and recovery reporting.

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

Yes, at source level: current main's activation paths omit Linux publication, while installed clients select the latest release's manifest. No live release was executed during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the existing Linux request and builder, serializing manifest publication, and preserving historical receipts addresses the release gap without changing installed-client configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ca0746ad8c56.

Labels

Label justifications:

  • P2: Repairs a bounded Linux release-publication gap while keeping core npm and GitHub activation independent.
  • 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: The maintainer-authored PR is exempt from ordinary contributor proof. The release-owner account and public asset metadata support v2026.9.4 recovery; the new dispatch, carry, and reuse automation has boundary-test coverage but has not run live.

Evidence

What I checked:

  • Current main still needs this integration: The fetched main release-button workflow activates GitHub releases and dispatches Windows publication, but lacks this branch's Linux dispatch and updater carry path. The related merged Linux request fix addresses admission, not automatic stable publication. (.github/workflows/openclaw-release-promote.yml:121, ca0746ad8c56)
  • Updater compatibility and write authority: The manifest owner preserves candidate bytes, rejects version regression and changed destinations, revalidates source and executing workflow authority immediately before upload, and reconciles uncertain uploads without repeating them. (scripts/linux-updater-manifest.mjs:250, bcb30e5f8b74)
  • Existing client contract: Current main configures the Linux updater to use releases/latest/download/latest.json. This PR does not change that endpoint, the configured public key, or the application updater implementation. (apps/linux/src-tauri/tauri.conf.json:15, ca0746ad8c56)
  • Prior compatibility concern resolved: The release-owner comment explicitly accepts targeted recovery of partial uploads without replacing published binaries and describes recovery of the original signed v2026.9.4 artifacts. It also distinguishes that recovery evidence from the new automation, which has not run live: fix: publish Linux apps with stable releases #147113 (comment).
  • Historical receipts remain immutable: Closeout preserves recorded asset and app-platform fields; changed updater selectors require a separate digest-bound observation. Added CLI coverage checks byte-identical receipt replay and rejects changed recorded binaries. (scripts/lib/stable-release-closeout.mjs:311, bcb30e5f8b74)
  • Boundary regression coverage: The tests exercise both publication orders, immutable reuse, partial uploads, uncertain writes, mismatched requests, cancelled writers, and superseded attempts through production scripts and registered shell steps with a mocked GitHub client. These are supplemental tests, not live publication proof. (test/scripts/linux-updater-manifest.test.ts:690, bcb30e5f8b74)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • 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 (2 earlier review cycles)
  • reviewed 2026-09-13T15:14:28.249Z sha 300b35b6de6aaaecfb074cf96c42e50be3caf56b :: blocked before merge. :: none
  • reviewed 2026-09-13T15:29:17.280Z sha dcca919d22ff6f78b5084aadd92af5730aa03cf3 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

The release-owner recovery requirement is intentional and accepted for this workflow: partial uploads and later optional desktop-test additions must recover only missing artifacts, preserving already published Linux bytes. The Linux 2026.9.4 release exercised that recovery path after the upload job failed: the exact signed AppImage and Debian artifacts from run 34749148773 were recovered without rebuilding, and both public downloads were verified against the original artifact hashes. The AppImage signature, checksums, and updater manifest were also verified. The release notes record that upload recovery. Optional macOS/Windows test-bundle recovery was not exercised and is outside this Linux-only release scope.

There is no new application database or state schema to migrate. The new JSON files are retained Actions evidence and the existing external updater manifest. Historical closeout receipt bytes and appPlatforms are preserved; only a changed latest.json selector receives a separate validated observation. Existing Linux clients retain the same endpoint, version/signature format, and original signed asset URLs.

The exact PR commit has now passed all 81 publication-admission tests, 77 Linux updater tests, and 108 release-plan producer tests in CI 34764509145. Those boundary tests establish compatibility and failure handling; they are not a claim that the new GitHub publication workflow has run live. I will verify completed-asset reuse through the registered workflow after landing, without republishing the released binaries.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 13, 2026
@steipete
steipete force-pushed the codex/linux-release-process branch from dcca919 to bcb30e5 Compare September 13, 2026 15:58
@steipete
steipete merged commit 149648a into main Sep 13, 2026
147 checks passed
@steipete
steipete deleted the codex/linux-release-process branch September 13, 2026 16:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

Copy link
Copy Markdown
Contributor Author

Post-merge live reuse passed: Linux App Release 34769398360 followed request 34769389241 on main commit 290613f, which contains the merged change.

The workflow reused the completed v2026.9.4 publication. Linux, macOS, and Windows build jobs and all signing jobs skipped; bundle download, assembly, and release attachment skipped. The updater reported state=unchanged. All four Linux asset IDs, sizes, digests, and timestamps remained identical, and latest.json was byte-for-byte unchanged at SHA-256 d1592d9639b55352bb80e89f97a160fd80b985819ee2e4039ce7502836c4fbdc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: linux docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: linux-node rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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