Skip to content

feat(update): notify extended-stable availability - #100438

Merged
kevinslin merged 10 commits into
openclaw:mainfrom
kevinslin:dev/kevinlin/extended-stable-update-notifications
Jul 7, 2026
Merged

kevinslin merged 10 commits into
openclaw:mainfrom
kevinslin:dev/kevinlin/extended-stable-update-notifications

Conversation

@kevinslin

@kevinslin kevinslin commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Package-installed Gateways with stored update.channel: "extended-stable" do not currently receive the normal read-only update hint, so operators can remain on an older supported-month package until they manually run status.

Why This Change Was Made

This reuses the existing startup checker, exact public npm resolver, persisted deduplication, in-memory availability cache, Gateway event, and 24-hour hint timer. Automatic update eligibility remains closed to stable and beta, and extended-stable cache cleanup is scoped so it cannot erase stable rollout state or project package availability onto Git installs.

User Impact

Stored extended-stable package installs now receive the existing actionable openclaw update hint when update.checkOnStart is enabled and a newer exact package is verified. Extended-stable never auto-installs, hands off, restarts, inherits stable delay/jitter, or uses beta polling. Direct npm installs still do not persist update.channel.

Evidence

  • Added focused automated coverage for check-on-start enabled/disabled, auto.enabled=true without apply, exact resolver success/failure projection, channel-aware cached availability, Git/Nix guards, initial and 24-hour recurrence, cleanup, stable rollout-state preservation, and stable/beta regressions.
  • git diff --check origin/main...HEAD
  • Independent code, docs, and dead-code/deslop reviews completed with no remaining blocker/major findings.
  • Canonical Spec 25 implementation flow doc validates with the $specy flow-doc validator.
  • Current-head hosted CI for rebased head 18f6fb7cc8: 67 latest checks pass, 28 are intentionally skipped, and zero are pending or failing.
  • Redacted hosted terminal proof: src/infra/update-startup.test.ts passed 41/41 tests, src/infra/update-check.test.ts passed 31/31 tests, and src/infra/update-startup.integration.test.ts passed its loopback package-registry test inside a 27-file, 528-test green Vitest batch. The loopback test drives the real exact-selector resolver through startup discovery and asserts the existing hint while auto.enabled=true never reaches automatic execution; focused tests separately prove no handoff, restart, stable rollout mutation, beta polling, or lookup when check-on-start is false.
  • Fresh local Verdaccio package-Gateway proof against rebased head 18f6fb7cc8: the real CLI persisted extended-stable; installed 2099.4.33 emitted the exact 2099.4.34 patch hint and installed 2099.4.34 emitted the exact 2099.5.33 minor hint. Both 45-second probes had auto.enabled=true but observed no automatic-update child, apply, handoff, or restart; full installed-prefix and config SHA-256 digests were identical before/after, and SQLite auto first-seen/attempt/success fields stayed null. Proof manifest SHA-256: 76f932ef6da8e1fdeb7f96f757180c7177815488bcc793501a718dfe377a1dd5.
  • Verdaccio safety boundary: all OpenClaw canaries stayed on a private Docker network, official npm publication was not attempted, and GitHub Actions/OIDC/provenance were not claimed by this local proof.
  • Repository Real behavior proof gate passed on the current head.

Manual Testing

  • Run openclaw update --channel extended-stable on local package 2099.4.33, promote the Verdaccio selector to 2099.4.34, and observe the exact patch hint without automatic mutation.
  • Run openclaw update --channel extended-stable on local package 2099.4.34, promote the Verdaccio selector to 2099.5.33, and observe the exact minor hint without automatic mutation.
  • Start a package-installed Gateway with stored update.channel: "extended-stable" and a loopback registry whose verified selector is newer; confirm one existing update.available signal and actionable hint, with no package/config/service/process mutation.
  • Repeat with update.checkOnStart: false; confirm no registry request, positive signal, handoff, or restart.
  • Repeat with update.auto.enabled: true; confirm the read-only hint remains available and no automatic update command runs.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: L maintainer Maintainer-authored PR labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f59501ed55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/infra/update-startup.ts Resolved
@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 7:56 PM ET / 23:56 UTC.

Summary
This PR changes Gateway startup update checks, docs/config help, and update coverage so stored extended-stable package installs emit read-only availability hints without auto-applying updates.

PR surface: Source +80, Tests +516, Docs +8. Total +604 across 8 files.

Reproducibility: yes. from source for the behavior claim: current main returns before any extended-stable startup check, while the PR routes package installs through the existing resolver and hint path. This is a feature and contract change rather than a broken existing-behavior bug.

Review metrics: 1 noteworthy metric.

  • Existing channel startup behavior: 1 changed. The PR changes stored extended-stable configs from skipped startup/background work to read-only startup and recurring npm checks, so upgrade acceptance matters before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Get explicit maintainer acceptance for changing stored extended-stable configs to perform read-only startup npm checks.

Risk before merge

  • [P1] Existing stored extended-stable configs would change from foreground/status-only behavior to public npm read-only startup and 24-hour checks; this is operator-visible compatibility risk even though the PR does not auto-apply updates.

Maintainer options:

  1. Accept the stored-channel startup change (recommended)
    Maintainers can land the PR as-is if they explicitly accept read-only public npm startup checks for existing extended-stable configs.
  2. Gate hints behind opt-in
    Ask for a follow-up patch that preserves foreground/status-only behavior by default and enables startup hints only through explicit operator choice.
  3. Pause the direction
    Pause or close this PR if extended-stable should remain a foreground/status-only channel for this release train.

Next step before merge

  • [P2] Needs maintainer acceptance of a compatibility-sensitive stored-channel startup behavior change; there is no narrow ClawSweeper repair to queue.

Maintainer decision needed

  • Question: Should stored update.channel: "extended-stable" package installs receive read-only startup and 24-hour npm availability hints by default?
  • Rationale: Tests and proof validate the mechanics, but changing a stored-channel runtime contract from skipped startup/background resolution to startup network checks is a product and upgrade-policy decision.
  • Likely owner: kevinslin — Kevin owns the recent extended-stable feature history and authored both the predecessor support work and this follow-up.
  • Options:
    • Approve default read-only hints (recommended): Accept the compatibility change and land once normal merge gates pass, relying on the package-only and no-auto-apply safeguards.
    • Require explicit opt-in: Keep the implementation direction but gate extended-stable startup hints behind an operator-controlled setting or migration path.
    • Keep foreground/status only: Pause or close this PR and preserve the current extended-stable contract from the merged package-update support work.

Security
Cleared: No concrete security or supply-chain regression was found; the diff adds read-only update checks, docs, and tests without new dependencies, workflow permission changes, lockfile edits, or secret handling.

Review details

Best possible solution:

Land the read-only hint path if maintainers accept default startup checks for stored extended-stable configs; otherwise preserve foreground/status-only behavior or add an explicit opt-in path.

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

Yes, from source for the behavior claim: current main returns before any extended-stable startup check, while the PR routes package installs through the existing resolver and hint path. This is a feature and contract change rather than a broken existing-behavior bug.

Is this the best way to solve the issue?

Unclear until maintainer direction is explicit: the implementation uses the right startup checker and exact resolver layer, but the default stored-channel behavior change is a product and upgrade-contract choice.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6a62a04f5953.

Label changes

Label justifications:

  • P2: This is a normal-priority update-channel improvement with limited operator blast radius and no active outage shown.
  • merge-risk: 🚨 compatibility: The PR changes runtime startup behavior for existing stored extended-stable configs by adding public npm read-only checks where current main skips them.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes terminal/live-output proof for hosted tests and a local Verdaccio package-Gateway run, and the current-head Real behavior proof checks succeeded.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes terminal/live-output proof for hosted tests and a local Verdaccio package-Gateway run, and the current-head Real behavior proof checks succeeded.
Evidence reviewed

PR surface:

Source +80, Tests +516, Docs +8. Total +604 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 2 114 34 +80
Tests 2 548 32 +516
Docs 4 25 17 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 687 83 +604

What I checked:

  • Repository policy makes this compatibility-sensitive: Root policy treats persisted preferences, config/default behavior, setup, startup checks, and fallback behavior as compatibility- and upgrade-sensitive review surfaces. (AGENTS.md:31, 6a62a04f5953)
  • Scoped docs policy checked: The touched docs are under docs/, and the scoped docs guide was read; the changed docs did not introduce a concrete Mintlify link/content defect. Public docs: docs/AGENTS.md. (docs/AGENTS.md:1, 6a62a04f5953)
  • Current main skips extended-stable startup checks: Current main clears the in-memory update hint and returns immediately when the configured update channel is extended-stable, so this PR is not redundant with main. (src/infra/update-startup.ts:475, 6a62a04f5953)
  • PR head preflights extended-stable as package-only: The PR head resolves startup install status for extended-stable and exits before npm resolution when the install kind is not package. (src/infra/update-startup.ts:538, 18f6fb7cc80c)
  • PR head keeps automatic applies limited to stable and beta: The PR computes shouldRunAutoUpdate only for stable/beta and the auto-update branch remains guarded to stable or beta, so extended-stable hints do not auto-apply. (src/infra/update-startup.ts:525, 18f6fb7cc80c)
  • Loopback resolver coverage exists: The added integration test drives the real extended-stable registry resolver through a loopback package registry, asserts the update hint, and asserts runAutoUpdate is not called. (src/infra/update-startup.integration.test.ts:64, 18f6fb7cc80c)

Likely related people:

  • kevinslin: Kevin authored this PR and the merged predecessor extended-stable package update support that established the foreground/status contract this PR extends. (role: extended-stable feature history owner; confidence: high; commits: d2146223205e, 3a3e4bc49440, b3023f9c3651; files: src/infra/update-startup.ts, src/infra/update-check.ts, src/infra/update-channels.ts)
  • steipete: Git history shows Peter introduced the Gateway startup update check and core auto-updater work and has heavy history on the update startup/check/channel files. (role: update-area feature owner; confidence: medium; commits: 25d8043b9de6, f442a3539f19, bf156386aa5c; files: src/infra/update-startup.ts, src/infra/update-check.ts, src/infra/update-channels.ts)
  • vincentkoc: Recent history shows Vincent touching update/release state paths adjacent to the startup checker and update-check surfaces. (role: recent adjacent update-state contributor; confidence: medium; commits: e085fa1a3ffd, 15fd11032daf; files: src/infra/update-check.ts, src/infra/update-startup.ts, src/state/openclaw-state-db.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

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.
  • 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.
Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-05T19:58:32.659Z sha 7ddd50480181e9e18aa04be0d1b7f116bd154968 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-05T20:12:00.620Z sha adfc12585cc6e108d68d2805ce800bc570524aa4 :: needs real behavior proof before merge. :: [P2] Bypass throttle after empty prior channel checks
  • reviewed 2026-07-05T21:22:17.108Z sha 76781a63d8f47c6f37cd3ac9147a29eb5cd538c7 :: needs real behavior proof before merge. :: [P2] Preserve the throttle after no-update checks
  • reviewed 2026-07-05T21:28:20.813Z sha 76781a63d8f47c6f37cd3ac9147a29eb5cd538c7 :: needs real behavior proof before merge. :: [P2] Preserve the throttle after no-update checks
  • reviewed 2026-07-05T21:36:24.684Z sha 40fa7fbffc4336e4a81b34750ffea1b75c4d82f8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-05T21:47:27.623Z sha 40fa7fbffc4336e4a81b34750ffea1b75c4d82f8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-05T21:55:49.157Z sha 40fa7fbffc4336e4a81b34750ffea1b75c4d82f8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-05T23:36:13.404Z sha 18f6fb7 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 5, 2026
@kevinslin

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 5, 2026
@kevinslin

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@kevinslin

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 5, 2026
@kevinslin
kevinslin force-pushed the dev/kevinlin/extended-stable-update-notifications branch from 40fa7fb to 18f6fb7 Compare July 5, 2026 23:24
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jul 5, 2026
@kevinslin
kevinslin merged commit e3c40ef into openclaw:main Jul 7, 2026
111 checks passed
@kevinslin
kevinslin deleted the dev/kevinlin/extended-stable-update-notifications branch July 7, 2026 03:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
* docs(update): clarify extended-stable notifications

* feat(update): notify extended-stable availability

* fix(update): isolate notification state

* fix(docs): align update channel table

* fix(update): refresh after channel switch

* fix(update): satisfy notification checks

* test(update): prove loopback notification path

* test(update): fix loopback server lifecycle

* fix(update): refresh extended stable without cache

* fix(update): retain extended stable throttle marker
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Jul 15, 2026
* docs(update): clarify extended-stable notifications

* feat(update): notify extended-stable availability

* fix(update): isolate notification state

* fix(docs): align update channel table

* fix(update): refresh after channel switch

* fix(update): satisfy notification checks

* test(update): prove loopback notification path

* test(update): fix loopback server lifecycle

* fix(update): refresh extended stable without cache

* fix(update): retain extended stable throttle marker

(cherry picked from commit e3c40ef)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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