Repository navigation
fix(release): harden 2026.8.33 update paths - #153171
Conversation
Adapt the service-mutation recovery invariant to the 2026.8 updater owner. (cherry picked from commit ad682b4)
Adapt the recorded-service runtime probe to the 2026.8 daemon install plan. (cherry picked from commit fe79d36)
…134549) * fix(gateway): keep agent restart alive on Windows * docs(gateway): clarify Windows agent restart routing --------- Co-authored-by: Josh <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 3a0a623)
* fix(update): preserve service fingerprints across published upgrades Keep known-empty systemd override metadata out of the fingerprint retained by published updaters through 2026.9.4. Preserve full command metadata for runtime pinning and reject actual protected service changes. * test: group silence failures with error payload coverage Keep the required sealed-answer fixture field while moving its related failure-policy cases into the existing error payload test module. Preserve every case and assertion without growing the over-cap payload test file. (cherry picked from commit 4475640)
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 19, 2026, 5:52 PM ET / 21:52 UTC (Revision 3). ClawSweeper reviewWhat this changesBackports nine update repairs to 2026.8.33 covering service recovery, runtime selection, workspace preservation, plugin installation, and Gateway shutdown. Merge readiness⛔ Blocked before merge - 5 items remain Both prior code findings are resolved; no new blocking defect was established. This remains useful work for the frozen release branch, even though its upstream fixes are merged on main. Candidate release acceptance remains unresolved. Likely related people: RomneyDa and Peter Steinberger, as medium-confidence routing candidates. Priority: P1 Review scores
Verification
How this fits togetherThe updater coordinates installed packages, Doctor migrations, plugins, and the operating system’s Gateway service. These changes affect whether an upgrade preserves operator settings and returns the Gateway to service. flowchart TD
A[Update or service command] --> B[Inspect service ownership]
B --> C[Stop and retain recovery state]
C --> D[Replace installed package]
D --> E[Doctor and plugin maintenance]
E --> F[Restart Gateway]
C --> G[Recover after failure]
D --> G
G --> F
Decision needed
Why: The maintainer has explained the branch-specific adaptations, but the remaining acceptance request has neither candidate results nor an explicit infeasibility and release-owner disposition. Before merge
Agent review detailsSecurityNone. PR surfaceSource +233, Tests +856, Docs +4, Other 0. Total +1093 across 40 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the existing frozen-line owners and validate the packaged candidate on fresh installation and extended-stable upgrade paths, preserving settings and demonstrating successful Gateway recovery. Do we have a high-confidence way to reproduce the issue? No current-main reproduction was executed; these are release-branch backports with source-supported failure mechanisms and upstream regression evidence. Is this the best way to solve the issue? Yes, the repairs generally belong in the existing service, migration, package-install, and lifecycle owners; importing the broader updater redesign would unnecessarily expand this release backport. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd22b275d548. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
2deae4b to
95eff0f
Compare
|
Addressed the exact-head P1 from ClawSweeper:
The missing-runtime and configured-workspace changes remain intentionally scoped to the approved upstream root repairs; the PR body now states the exact frozen-line contracts and upgrade impact. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* fix(doctor): preserve configured profile workspaces * fix(doctor): avoid assuming workspace ownership Co-authored-by: ericcaiwx-star <[email protected]> (cherry picked from commit 1e8ba48)
…lugins (#144843) * fix(plugins): stop relocated install records from shadowing bundled plugins A `path` install record stores an absolute directory. When that directory is another OpenClaw installation's bundled plugin tree, the record survives the installation move and is rediscovered as an `origin: "global"` candidate. `global` outranks `bundled`, so the stale pin won the duplicate-id contest and the plugin resolved from the old installation. `resolvePluginTrust` then saw `record.source === "path"` and downgraded it to `origin-path`, which revokes trusted plugin state and fails trusted-only APIs mid-turn. `isIntentionalInstalledBundledDuplicate` also suppressed the duplicate warning, because installed-shadows-bundled is normally deliberate, so the swap was silent. Treat a plugin directory inside a *different* installation's bundled roots as stale: it no longer outranks the current bundled copy, and it no longer counts as an intentional shadow, so the existing duplicate warning reports it. * fix(plugins): name the stale install record instead of a generic duplicate The duplicate-id warning reported "global plugin will be overridden by bundled plugin", which describes the mechanism but gives an operator nothing to act on. A pin into another installation's bundled tree is a stale record rather than a deliberate override, so report it as one and name the remedy. * docs(agents): record that a stored absolute path is not provenance The stale-pin defect this branch fixes came from a persisted absolute path that kept conferring bundled status after the installation it named was replaced. Record the invariant so the next record type does not repeat it. * fix(plugins): narrow the stale-pin gate to relocated compiled trees Review of the preceding guard found two ways it misfired. It answered "foreign" by negating a membership test against the running package roots, so an install whose root resolves from neither argv nor the module URL saw every bundled tree as foreign, including its own. Compiled sibling trees and the module walk-up fallback resolve exactly that way, so the gate now fails open when the running root is unknown. It also accepted `<root>/extensions/<id>`, the documented `plugins install --link` development target, which made a deliberate local override report as a stale record and told the developer to delete it. Only compiled `dist`/`dist-runtime` trees travel with an installation, so the shape check is limited to those, and a plugin inside the configured dev source root is excluded at the call site, where importing it raises no cycle. * test(auth): pin external credential refresh timing (#152771) --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 5ec3614)
…143350) * fix(plugins): isolate npm manifest resolution * fix(plugins): preserve hook host dependencies * test(plugins): align npm isolation coverage with CI limits * fix(plugins): link optional-only OpenClaw host dependencies * test(gateway): settle companion databases before fixture cleanup * test(plugins): cover optional hosts in native import preparation * test(skills): close status watchers before retiring fixture roots --------- Co-authored-by: Gio Della-Libera <[email protected]> Co-authored-by: Jason (Json) <[email protected]> (cherry picked from commit cbf935b)
Drain the existing agent database lifecycle during final Gateway retirement before shared state closes. Preserve sibling ownership and surface native-close failures without dropping their lease. Four new regressions fail on the original code. The repair passes 92 focused cases and an isolated four-case rerun, changed checks, and independent P0-P2 review. (cherry picked from commit 3381de9)
* fix: restore Gateway restarts after Git updates * test: align update installer mock with eager import (cherry picked from commit 24d8119)
95eff0f to
74c0846
Compare
|
Addressed the exact-head P2:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
A second update-specific audit found nine root-cause repairs missing from the frozen
2026.8.33line. Without them, upgrades from older extended-stable installs can leave the Gateway stopped, retain an unsupported service runtime, migrate an explicitly configured workspace, shadow bundled plugins with relocated install records, fail package extraction on development-only dependencies, retain agent-database leases through Doctor, or fail restart after replacing lazy-loaded chunks.This deliberately excludes Jason/full-stack's atomic/two-phase updater architecture. It backports only independent root-cause repairs.
Why This Change Was Made
Backports, in dependency order:
Frozen-line adaptations keep the existing 8.33 owners and contracts: synchronous final-owner agent-DB closure, the branch's existing identity-path resolver, and the branch's current plugin install-record shape.
The pending
2026.7.34delta was crosschecked along with the earlier2026.7.33fixes. Its only additional production runtime repair is the Windows restart fix above; the remaining commits are release/validation or artifact-shrinkwrap work. No tenth 8.33 backport was identified.User Impact
Operators upgrading from
2026.7.33/2026.7.34to2026.8.33retain a running, restartable Gateway and preserve configured workspaces and plugin/runtime state across the update. Plugin and hook archive updates no longer inherit development-only dependency failures.No config keys, database schemas, updater architecture, or release versions are added. Rollback is the removal of these nine independent commits.
Evidence
Focused owner suites pass across update CLI, daemon/service lifecycle, Doctor migrations, Gateway shutdown, hook/package installs, plugin discovery, lazy module loading, and package runtime builds. The configured-workspace two-directory case now verifies the preservation notice reaches Doctor output. The final-owner correction is covered with real durable and incognito agent database handles: the first of two retained Gateway owners preserves both handles, and the final owner closes them. Gateway shutdown and minimal-startup coverage also pass (65 focused tests).
Validation:
node scripts/run-vitest.mjs <touched suites>node scripts/check-changed.mjs -- <changed files>pnpm build.agents/skills/autoreview/scripts/autoreview --mode branch --base upstream/extended-stable/2026.8.33Diff classification: production/tooling
+300/-67(net+233), test/support+1087/-231, docs+6/-2. The production growth is the combined canonical implementation for nine distinct update/lifecycle invariants; no parallel updater path or compatibility shim is added.