Skip to content

fix(linux): preserve update delivery across core releases - #146052

Merged
vincentkoc merged 3 commits into
mainfrom
fix/linux-audit-stack-08-publication-20260912
Sep 14, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/linux-audit-stack-08-publication-20260912

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Related: #145355

Stack 8/8; previous layer: #146051 (merged). This same-repository branch is writable by maintainers with push access.

What Problem This Solves

Fixes Linux update metadata disappearing or being replaced incorrectly when core and Linux releases finish in different orders, including interrupted publication and metadata-only retries.

User Impact

Release operators can preserve the legacy update route while publishing independently verified Linux metadata. Partial publication remains visible and recoverable rather than being mistaken for completion.

No client cutover or public release is performed here. The shipped updater endpoint and download URLs remain unchanged. Canonical-channel initialization, release-body link activation, and an actual signed installed-client upgrade require a separately qualified release operation. Existing clients do not acquire new updater code without upgrading.

Why This Change Was Made

The current automatic Linux release request, prepared finalizer, Windows publication, carried metadata, and approval boundaries are retained. One post-native publisher verifies or reuses signed public assets, writes immutable metadata, advances the canonical feed only forward, then mirrors to the actual latest core release. Core finalization does not depend on canonical-feed availability; detached mirror failure is visibly non-core-blocking.

The earlier review's stale-authority finding is repaired: the writer receives complete parent/tooling identities and revalidates active-or-success authority after preparatory reads immediately before each mutation, including after DELETE and before upload or notes changes. REST metadata supplies numeric release/asset identities. Missing or older legacy metadata is still detected when the selected source is itself the latest core release.

A Linux version newer than core latest cannot overwrite that older core's legacy carrier. Immutable/canonical work remains retained; once core latest advances, metadata-only recovery can converge without rebuilding. Ambiguous missing canonical state fails closed for documented owner reconciliation.

Evidence

  • The current main composition preserves all 18 accepted original file deltas. Fifteen complete files are unchanged from the reviewed candidate; only surrounding docs and inherited workflow-test context differ. Three additional test fixtures were corrected after exact-head CI exposed their old finalizer and test-routing expectations. Production bytes did not change in those follow-ups. Formatting and git diff --check pass.
  • Focused CLI tests exercise the real publisher with controlled external-command responses: valid authority, cancellation/rerun/tooling revocation, selected release/asset changes, interruptions between DELETE and upload, public-asset reuse, and finalizer routing. These are final-effect boundary tests, not live GitHub publication or cryptographic-execution proof.
  • The Linux-first regression failed before the repair by replacing the older carrier's bytes and asset ID. All 14 selected ordering, convergence, authority, and partial-state controls pass afterward. Four intended status/identity regressions were reproduced; the subsequent status/closeout group passed 142 cases.
  • The initial combined owner run had 944 passes and two failures. The packaging guard's missing-input case was corrected and its focused check passed. The other failure was an installed dependency-donor mismatch in fs-safe; that local run remains unpassed, with no shared-install reconciliation. Clean exact-head hosted validation passed as recorded below.
  • The first composed-head CI exposed two omitted caller-fixture updates: an inline-release-edit assertion and missing real-helper staging/API responses. The repaired existing workflow and activation tests passed 26 focused cases, including parent prerelease mismatch with zero writes; 675 unrelated cases were unselected. Matching root-test lint, formatting, diff checks and a fresh scoped P2 review passed. No release operation or dependency install was used.
  • Those two repaired CI shards passed on f1e2ca596415. A subsequent routing-table failure correctly discovered the new Linux publication test but lacked its expected entry; the one-line expectation repair preserves exact-set equality and passed its selected routing case plus lint/format/diff checks. All three repaired shards also passed on the final head. The previously unassigned runner jobs subsequently acquired runners and passed.
  • Scoped independent reviews accepted the final authority, status/identity, and mirror-ordering repairs. Final head 4e18df7c09f57c7a7fdba8b46a4c2a882b78f4d4 passed core CI and its required gate, Linux/macOS companion CI, and workflow sanity. Core attempt 1 had a Windows checkout-only timeout before source execution; one targeted job retry and its dependent gate passed in attempt 2, preserving the other successful jobs. Packaging, AppImage, and packaged first-run proof are not claimed.

Review disposition: revision 4 reviewed exact 4e18df7c09f57c7a7fdba8b46a4c2a882b78f4d4 and confirms the earlier authority finding is fixed, with no new concrete code finding. CLI fixtures are not live publication/revocation proof. Canonical absence intentionally fails closed and requires documented release-owner reconciliation. Live bootstrap, interruption recovery, writer revocation, and release-artifact/metadata compatibility qualification remain required before relying on a release operation; they are deferred under this PR's explicit no-release/no-asset-mutation scope, not claimed as completed here. These operational qualifications are not runtime database or installed-client migration proof.

No runtime database/schema, supported-platform floor, dependency/version change, release dispatch, live asset mutation, or installed-client migration is included. Historical native desktop proofs from earlier layers are not presented as publication or upgrade evidence.

@vincentkoc vincentkoc self-assigned this Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 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 docs Improvements or additions to documentation scripts Repository scripts app: linux plugin: linux-node size: XL maintainer Maintainer-authored PR labels Sep 12, 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 14, 2026, 9:02 AM ET / 13:02 UTC (Revision 4).

ClawSweeper review

What this changes

The PR adds a canonical Linux update feed, immutable publication metadata, and detached mirroring that preserves the existing updater URL across independently completed core and Linux releases.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open: meaningful publication-recovery work remains beyond current main. The earlier authority finding stays fixed, and this review found no new blocking code defect; release-authority qualification remains incomplete.

Priority: P2
Reviewed head: 4e18df7c09f57c7a7fdba8b46a4c2a882b78f4d4

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has substantial regression coverage and no identified blocking defect, but material authority and recovery qualification remains fixture-only.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: the publisher and detached mirror now revalidate authority before mutations, but supplied CLI tests replace gh, curl, and minisign. They do not establish real allowed writes or rejection before the next mutation after parent cancellation, superseded attempts, or tooling revocation; the MEMBER exemption from unrelated contributor proof remains intact. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: the publisher and detached mirror now revalidate authority before mutations, but supplied CLI tests replace gh, curl, and minisign. They do not establish real allowed writes or rejection before the next mutation after parent cancellation, superseded attempts, or tooling revocation; the MEMBER exemption from unrelated contributor proof remains intact. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 11 items Pinned review continuity: The complete comparison against the previous reviewed head contains only the added Linux publication test-routing expectation; production code is unchanged.
Current-main implementation boundary: Current main implements carry-forward and direct latest-manifest publication, but lacks the new canonical-channel publisher. The merged foundation at #147113 therefore overlaps without superseding the remaining work.
Merged foundation verified: GitHub confirms the related Linux release-publication foundation merged on 2026-09-13; it is not a merged replacement for this PR.
Findings None None.
Security None None.

How this fits together

Linux release tooling receives signed native bundles and approved release identities, then publishes the metadata used by installed apps to discover updates. Core release activation carries the previous manifest forward while Linux publication catches up.

flowchart TD
  A[Approved release identity] --> C[Publication authority checks]
  B[Signed Linux bundles] --> C
  C --> D[Immutable release metadata]
  D --> E[Canonical Linux feed]
  F[Core release activation] --> G[Legacy updater mirror]
  E --> G
  G --> H[Installed Linux apps]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: the publisher and detached mirror now revalidate authority before mutations, but supplied CLI tests replace gh, curl, and minisign. They do not establish real allowed writes or rejection before the next mutation after parent cancellation, superseded attempts, or tooling revocation; the MEMBER exemption from unrelated contributor proof remains intact. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The detached writer can outlive its original publication attempt; real final-effect rejection after cancellation, superseded attempts, or tooling revocation remains unqualified.
  • Resolve merge risk (P1) - Interrupted canonical replacement intentionally stops subsequent normal publication until release-owner reconciliation; recovery and legacy updater continuity have only fixture coverage for this implementation.
  • Complete next step (P2) - Add separately authorized publication/revocation and recovery evidence before merge, preserving the no-release scope until approved. Redact secrets, private endpoints, IP addresses, and personal data from terminal output or logs. Update the PR body for automatic re-review; if it does not trigger, ask a maintainer to comment @clawsweeper re-review.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +1817, Docs +103, Config +160, Other +1468. Total +3548 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 2106 289 +1817
Docs 4 109 6 +103
Config 3 257 97 +160
Generated 0 0 0 0
Other 5 1598 130 +1468
Total 21 4070 522 +3548

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net +1,628 lines; tests net +1,817 lines The stated production-growth justification is consolidation of immutable publication, canonical ordering, identity checks, and legacy mirroring into one owner.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/release-publish-children.sh, serialized state: scripts/linux-app-channel.mjs, serialized state: scripts/render-github-release-notes.mts, unknown-data-model-change: scripts/lib/release-publish-children.sh, unknown-data-model-change: scripts/linux-app-channel.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Qualify the publication boundary (recommended)
    Obtain separately authorized final-effect evidence for allowed publication, revoked writers, canonical bootstrap, and interrupted replacement while preserving existing signed assets.
  2. Keep the release wiring paused
    Keep this PR open until a release owner can qualify the changed publication path without exceeding the stated no-publication scope.

Technical review

Best possible solution:

Retain one Linux publication owner and the shipped updater endpoint, with qualified bootstrap, interruption recovery, and authority revocation before relying on the new release path.

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

Yes at the controlled CLI boundary: supplied regressions cover publication ordering and interrupted metadata writes. No real concurrent release operation was executed in this read-only review.

Is this the best way to solve the issue?

Yes in structure: a single publisher preserves immutable assets and the existing client endpoint while separating asset completion from metadata completion. Real publication and recovery qualification remains necessary.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Linux release-delivery improvement without evidence of an urgent new user-facing outage.
  • merge-risk: 🚨 compatibility: Canonical initialization and interrupted replacement affect whether existing Linux clients continue receiving updates.
  • merge-risk: 🚨 security-boundary: Detached release writes consume retained parent authority whose revocation behavior remains unqualified at real final effects.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the publisher and detached mirror now revalidate authority before mutations, but supplied CLI tests replace gh, curl, and minisign. They do not establish real allowed writes or rejection before the next mutation after parent cancellation, superseded attempts, or tooling revocation; the MEMBER exemption from unrelated contributor proof remains intact. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Pinned review continuity: The complete comparison against the previous reviewed head contains only the added Linux publication test-routing expectation; production code is unchanged. (test/scripts/test-projects.test.ts:1364, 4e18df7c09f5)
  • Current-main implementation boundary: Current main implements carry-forward and direct latest-manifest publication, but lacks the new canonical-channel publisher. The merged foundation at fix: publish Linux apps with stable releases #147113 therefore overlaps without superseding the remaining work. (scripts/linux-updater-manifest.mjs:358, 876d6097d282)
  • Merged foundation verified: GitHub confirms the related Linux release-publication foundation merged on 2026-09-13; it is not a merged replacement for this PR. (149648a3d073)
  • Latest release inventory: The current latest release is v2026.9.4 and contains the AppImage, Debian package, checksums, and latest.json; its inventory does not contain the proposed immutable Linux publication manifest. Existing published assets do not qualify the new writer.
  • Authority fix retained: The production publisher validates tooling, the original parent/request attempt, and the executing writer. Upload replacement rechecks authority after preparatory reads and again after deletion; mirror and notes writes also use these checks. (scripts/linux-app-channel.mjs:73, 4e18df7c09f5)
  • Proof boundary inspected: The tests execute the production CLI but substitute all three external commands: gh, curl, and minisign. They meaningfully cover cancellation, superseded attempts, interrupted replacement, and ordering, but cannot establish real GitHub mutation or cryptographic behavior. (test/scripts/linux-app-channel.test.ts:450, 4e18df7c09f5)

Likely related people:

  • Peter Steinberger: Raw commit 149648a adds scripts/linux-updater-manifest.mjs:335 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 149648a3d073; files: scripts/linux-updater-manifest.mjs)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide redacted final-effect evidence showing authorized publication and rejection before the next write after cancellation, superseded attempts, or tooling revocation.
  • Qualify canonical bootstrap and interrupted replacement while preserving signed bundle identities and legacy updater delivery.

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 (3 earlier review cycles)
  • reviewed 2026-09-12T14:52:33.090Z sha 8d60b50 :: needs real behavior proof before merge. :: [P2] [P2] Revalidate parent authority at mirror write boundaries
  • reviewed 2026-09-14T11:31:26.392Z sha 38871b3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-14T12:21:42.972Z sha f1e2ca5 :: needs real behavior proof before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/linux-audit-stack-07-support-docs-20260912 branch 2 times, most recently from 574e99f to 83509c1 Compare September 14, 2026 10:17
Base automatically changed from fix/linux-audit-stack-07-support-docs-20260912 to main September 14, 2026 11:06
@vincentkoc
vincentkoc force-pushed the fix/linux-audit-stack-08-publication-20260912 branch from 8d60b50 to 38871b3 Compare September 14, 2026 11:14
@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 11:17
@vincentkoc
vincentkoc requested a review from a team as a code owner September 14, 2026 11:17
@vincentkoc
vincentkoc merged commit 10d67c8 into main Sep 14, 2026
242 of 246 checks passed
@vincentkoc
vincentkoc deleted the fix/linux-audit-stack-08-publication-20260912 branch September 14, 2026 14:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: linux-node rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant