Skip to content

Companion can skip a security release on an extended-stable Gateway when a newer ordinary release exists #2420

Backlog

Description

@MertBasar0

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.

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:security
    issue-rating: 🦞 diamond lobster
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    clawsweeper:intake:needs-repro
    on Nov 30, 2026
  2. clawsweeper commented on Nov 30, 2026

    @clawsweeper

    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

    • Question: Should security fallback include bounded release-history discovery for stable checks, despite this issue's already-fetched-candidates constraint?
    • Recommendation: Cover stable and alpha checks: Approve bounded history discovery when needed and select the newest compatible security release newer than the installed version.
    • Why: Stable checks currently fetch a singleton release, and the linked collaborator discussion explicitly leaves policy unresolved.

    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:

    • The issue's stable-channel expectation cannot be met by examining only the metadata currently fetched.
    • The linked discussion has not settled extended-stable versus explicit alpha opt-in policy.

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

    Label changes

    Label changes:

    • add P2: A source-established update-selection gap affects extended-stable users, without evidence of an actively missed vulnerability fix or urgent regression.
    • add impact:security: Ordinary-release suppression can prevent discovery of an older security-marked update newer than the installed Companion.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-product-decision: Current issue advisory state selects this label.
    • add 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:

    • [medium] Ordinary suppression hides security-update discovery — src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs:159
      The 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:

    • Current default branch verified: GitHub main and the review checkout both resolve to 29f0553; the checkout remained clean. (29f0553fbed0)
    • Suppression ends the check: After selecting an ordinary release, UpdateCoordinator queries Gateway policy, publishes Skipped for extended-stable, and returns without considering another release. (src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs:159, 29f0553fbed0)
    • Selection and existing coverage: CheckAsync immediately returns the backend winner when one exists. Existing tests explicitly verify that this path does not enumerate fallbacks; suppression tests cover individual classifications but not an ordinary winner hiding an older security release. (tests/OpenClaw.Tray.Tests/UpdateCheckPipelineTests.cs:198, 29f0553fbed0)
    • Stable discovery limits the proposed repair: UpdatumUpdateBackend sets FetchOnlyLatestRelease=true and exposes only Updatum's fetched Releases collection. The project executes Updatum 1.3.4, establishing the affirmative dependency-contract signal for inspecting its fetch behavior. (src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:14, 29f0553fbed0)
    • Pinned dependency confirms singleton stable feed: At tag 1.3.4, FetchOnlyLatestRelease calls GitHub GetLatest and assigns Releases=[release]; GetAll runs only when that option is false. Consequently, searching the already-fetched stable candidates cannot discover an earlier security release. (Updatum/UpdatumManager.cs:627, b052f3878414)
    • Documented security visibility contract: Release guidance permits deferring explicitly ordinary releases while security-critical releases remain visible; missing or ambiguous classifications must also remain visible. (docs/RELEASING.md:709, 29f0553fbed0)

    Likely related people:

    • Scott Hanselman: Raw commit b5115e0 adds src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b5115e0e69af; files: src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs)
    How this review workflow works
    • 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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 30, 2026, 5:43 PM ET / 22:43 UTC.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:securityissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions