Repository navigation
Description
What happens
On an extended-stable Gateway, Companion can skip a security release when a newer ordinary release exists.
UpdateCheckPipeline picks one winner, and CompanionUpdateSuppressionPolicy.ShouldSuppress checks only that winner. When the Gateway is on extended-stable and the winner is an ordinary release, the check ends as "Skipped". An older release marked as a security release, which is still newer than the installed version, is never considered.
This already happens on main on the stable channel. When the latest stable is ordinary and an earlier one is security-marked, the extended-stable Gateway skips both (UpdateCoordinator.cs, where the suppression result ends the check). #1960 (alpha channel opt-in) makes it more likely, because alphas are frequent, but it does not cause it.
Expected
The Gateway's extended-stable policy stays authoritative. If the newest release is suppressed, Companion offers the newest security-marked release that is newer than the installed version, if there is one. A security release is never hidden behind an ordinary one.
This is option B from the #1960 discussion. The reporter of #1642 agreed with it in #1960 (comment).
Scope
- Stable channel and alpha opt-in.
- The fallback only picks from releases the current check already lists. It adds no new release source.
- Tests: an ordinary newest release plus an older security release newer than the installed version should offer the security release. Without a security release, the check should still be "Skipped".
Follow-up to #1960.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Nov 30, 2026
Codex review: this still needs some work.
Summary
Current main has no security-release fallback, and stable checks fetch only the latest release, so the requested stable behavior also needs a release-discovery scope decision.
Reproducibility: Source establishes the terminal suppression path and absence of security fallback; pinned Updatum source additionally proves stable checks cannot see older releases, but no live reproduction or failing test ran.
Maintainer decision needed
Next step
Approve the stable release-history scope, then establish a failing ordinary-winner/security-fallback regression and preserve Skipped when no eligible security release exists.
Security
Needs attention: Security-update discovery needs owner review before changing release selection or fetch scope.
Review details
Best possible solution:
Offer the newest eligible trusted security release while preserving ordinary-release deferral and existing fail-open behavior, with an explicitly approved release-history scope.
Do we have a high-confidence way to reproduce the issue?
Source establishes the terminal suppression path and absence of security fallback; pinned Updatum source additionally proves stable checks cannot see older releases, but no live reproduction or failing test ran.
Is this the best way to solve the issue?
Security fallback fits the documented visibility intent, but a selector-only change cannot solve stable checks without addressing release-history discovery.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 29f0553fbed0.
Label changes
Label changes:
P2: A source-established update-selection gap affects extended-stable users, without evidence of an actively missed vulnerability fix or urgent regression.impact:security: Ordinary-release suppression can prevent discovery of an older security-marked update newer than the installed Companion.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.clawsweeper:needs-security-review: Current issue advisory state selects this label.Label justifications:
P2: A source-established update-selection gap affects extended-stable users, without evidence of an actively missed vulnerability fix or urgent regression.impact:security: Ordinary-release suppression can prevent discovery of an older security-marked update newer than the installed Companion.Evidence reviewed
Security concerns:
src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs:159The coordinator stops after suppressing the ordinary winner, while stable discovery provides no older candidates; no exploit or specific vulnerable installed release is established.
Confidence: 0.98
What I checked:
src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs:159, 29f0553fbed0)tests/OpenClaw.Tray.Tests/UpdateCheckPipelineTests.cs:198, 29f0553fbed0)src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:14, 29f0553fbed0)Updatum/UpdatumManager.cs:627, b052f3878414)docs/RELEASING.md:709, 29f0553fbed0)Likely related people:
src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 30, 2026, 5:43 PM ET / 22:43 UTC.