Skip to content

fix(doctor): preserve explicitly configured profile workspaces - #145976

Merged
fuller-stack-dev merged 3 commits into
openclaw:mainfrom
ericcaiwx-star:codex/fix-doctor-profile-workspace
Sep 19, 2026
Merged

fuller-stack-dev merged 3 commits into
openclaw:mainfrom
ericcaiwx-star:codex/fix-doctor-profile-workspace

Conversation

@ericcaiwx-star

@ericcaiwx-star ericcaiwx-star commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Related: #134570

Follow-up to #122733. The broader upgrade-recovery issue remains open; this PR owns only profile workspace migration when configuration explicitly keeps the legacy path.

What Problem This Solves

Fixes an issue where openclaw doctor --fix under a named profile could move an explicitly configured workspace to the convention-derived profile state root. If both paths existed, Doctor instead emitted a blocking merge warning even though configuration already identified the live workspace.

Why This Change Was Made

Doctor now treats explicit workspace paths in agent defaults or entries as authoritative, including paths that resolve through a symlink alias. It removes those workspaces from migration authority and leaves their contents untouched. When the convention-derived target also exists, Doctor reports only that both paths were left unchanged; it does not infer whether either path is unused.

User Impact

Named-profile users can keep an explicitly configured workspace through upgrades and Doctor repairs. The profile workspace migration no longer moves that workspace or blocks later repairs because another workspace also exists at the convention-derived target.

Evidence

Data-model compatibility

  • This PR adds no config key, environment variable, schema version, database migration, or stored-data rewrite. It changes only whether the existing profile-workspace migration is authorized to rename a directory.
  • The published v2026.9.4 config and both existing workspace directories were consumed directly by the exact-head candidate through the public updater. Candidate migration rehearsal, config validation, migration continuation, and final Doctor all completed successfully while preserving both explicit paths and their contents.

Published updater to exact-head candidate

  • Built a release-format candidate tarball from exact head 4c9e46ab68df483b3094bd3a3491f9855ffa2875; packaged dist/build-info.json recorded the same commit. Tarball SHA-256: eb989f8f6aae0edb7c6447b85bb2185a4d103f1c99d34135c0451e23c9790870.
  • Installed the public [email protected] package in a one-time isolated home and npm prefix. openclaw --version reported OpenClaw 2026.9.4 (3a9d69d), and the isolated two-agent config passed the published CLI's config validate --json.
  • Ran the published updater with openclaw --profile work update --tag file:<candidate.tgz> --yes --no-restart --json. It completed with status: succeeded, moving from build 2026.9.4-release-3a9d69db306c-2026-09-10T22-53-16.719Z to 2026.9.4-4c9e46ab68df-2026-09-12T13-40-40.239Z.
  • Candidate migration rehearsal, Doctor lint, config validation, plugin resolution, migration continuation, gateway canary, global swap, and the final actual Doctor pass all exited 0. The updater reached its finished phase without a migration repair request.

Actual Doctor CLI behavior

The isolated config explicitly assigned one agent to the legacy source and a second agent to the convention-derived target. Running the installed candidate's actual doctor --fix --non-interactive --yes --no-workspace-suggestions command exited 0 and reported:

Profile workspace: keeping configured workspace at <legacy-source>; existing workspace at <profile-target> was left unchanged.
Doctor complete.

Both marker files remained at their original paths with unchanged hashes after the published update and a second direct Doctor pass:

legacy-source  4e16bef4a5b4626cdf6e0a7423ff12fd2aa0ee3da9dfa622c5ec2290de1bf293
profile-target 396f724d1bc5677822394c4ce93b98616852beabfac55e119d1cdd38ddd7e8cc

The two explicit workspace values also remained in the updated config. A separate fresh named profile ran the installed candidate Doctor to completion with exit 0; neither its legacy source nor its convention-derived workspace target was created.

All proof used synthetic files under a disposable temporary root. No production state, credentials, channel, database, or user identifiers were used.

Automated validation

  • Baseline 2e4391ac95ae2fb01be79378bbb4452345e8c9c3: the new regression moved the configured source, causing ENOENT at its original path; the two-directory case returned no preservation notice and blocked on the existing target.
  • Exact head 4c9e46ab68df483b3094bd3a3491f9855ffa2875: focused defaults, agent-entry, symlink, two-agent target ownership, and read-only-plan regressions pass (5 tests).
  • Full related regression suite: 158 tests passed across Doctor state migration and caller-mode suites.
  • node scripts/check-changed.mjs --base upstream/main -- src/infra/state-migrations.state-dir.ts src/infra/state-migrations.doctor.ts src/commands/doctor-state-migrations.test.ts src/infra/state-migrations.caller-mode.test.ts passed core/coreTests formatting, type checks, lint, import-cycle, and migration guards.
  • P2 uncommitted autoreview found no actionable issues (patch is correct, confidence 0.94).

Exact-head CI note

The exact-head GitHub matrix completed with two unrelated flaky test failures; neither failing file is in this PR's state-migration/Doctor surface:

  • src/agents/cli-runner/execute.executable-invocation.test.ts: a fixture process produced no output within its 1-second timeout under the full CI load. The same exact-head file passed locally (2/2 tests).
  • src/gateway/server-methods/models-auth-refresh.catalog.integration.test.ts: one learned-catalog assertion observed an empty transient result under the full CI load. The same exact-head test passed locally (1/1 test).

Their shards otherwise passed 3,204 and 2,547 tests respectively. openclaw/ci-gate failed only as their downstream aggregate. A failed-jobs rerun was attempted after both focused reproductions passed, but GitHub restricts workflow reruns to repository administrators; no code or proof SHA was changed merely to retrigger CI.

Current-candidate proof (September 19)

The evidence above remains the historical published-updater proof for 4c9e46ab68df483b3094bd3a3491f9855ffa2875; it is not represented as an updater run of the new revision.

The published signed head is ce7f2f12dbfb54c57ac9994a9320cb252119bac2, preserving the original contributor commits. Current-main runtime verification used build revision 4202b0e0448f647e8ab5e314b0a620c6e2379a23: both commits have the identical complete Git tree 0f01c793d76283657c5763d48e63df811b937695. The 3 changed files also match the independently API-reviewed source byte-for-byte. Current-main composition passed 131 tests across profile-workspace, caller-mode, and Doctor migration suites; changed-file checks and a fresh-cache production typecheck passed. The exact-head hosted matrix remains required; no CI failure is waived.

Actual current-tree Doctor, isolated macOS filesystem: built through the supported pnpm openclaw --profile workspace145976 doctor --help runner, then invoked the real public CLI:

node openclaw.mjs --profile workspace145976 doctor --fix --non-interactive --no-workspace-suggestions
  • Configured missing target via a two-link dangling alias: two consecutive invocations exited 0. The legacy source and marker stayed unchanged (SHA-256 97e11c92e1e8b74b2e55d537b0354c23a55e78402645bb6a8ee1f2c6f9bdf90a); the target remained absent. Both symlink texts and the explicit configured workspace value remained unchanged. Sanitized real output:
[state-migrations] Legacy state migration notes:
- Profile workspace: keeping configured workspace at <profile-target>; existing workspace at <legacy-source> was left unchanged.
Doctor complete.
  • Unconfigured migration control: exited 0; the source moved to the conventional target with identical marker SHA-256 06630bb3f33156ac9fb9e469534936010daa38c0da87c8913fdc4fec235ccf47. Explicit workspace values remained absent. This verifies the guard did not disable ordinary migration.
  • Fresh named profile: the same actual CLI exited 0 and printed Doctor complete.; both conventional workspace paths were absent before and after.
  • Before the current-main lifecycle integration, the identical 3 changed source files also passed 5 real-filesystem scenarios / 9 public Doctor invocations: dangling leaf, dangling chain, dangling ancestor, native case-equivalent absent target, and unconfigured control. The current-tree chain/control and fresh-profile runs above cover the integrated runtime, rather than claiming the earlier build was the published head.

Current-tree Doctor aggregate receipt SHA-256: 66ca49733cea150b9e7b1c917cedb6ef3e9785d82dfa8fa147b016a8d3d22c5f. Fresh-profile receipt SHA-256: 09742fdfe2ee054ec356bcf01c56484e2b2f2a21f4061682a49ad0451deadcae. These checks used synthetic isolated homes/state/config with plugins disabled and external service-repair policy; no live gateway was updated or restarted. The current-candidate published-updater check is now completed by the v2026.9.5 proof below; the separate v2026.9.4 timeout limitation is retained explicitly.

Published updater × current signed candidate: passed

Used the unmodified public [email protected] package (registry integrity verified; baseline build 2026.9.5-release-ec9c1a13db89-2026-09-18T18-51-37.323Z) in a fresh isolated npm prefix/home. Built the candidate from signed head ce7f2f12dbfb54c57ac9994a9320cb252119bac2 through the canonical self-contained package workflow; its tarball integrity/import-graph check passed, and packaged dist/build-info.json recorded that exact commit. Candidate tarball SHA-256: 0acbd0fd873601a84f4666b80e068fd42b274a3474fb5d98018fb59123a6b402.

Ran the actual published updater, without modifying its source or verification guards:

node <published-prefix>/lib/node_modules/openclaw/openclaw.mjs   --profile workspace145976-update update   --tag <candidate.tgz> --yes --no-restart --json --timeout 900

Sanitized terminal result:

status: ok
run.status: succeeded
before.buildId: 2026.9.5-release-ec9c1a13db89-2026-09-18T18-51-37.323Z
after.buildId: 2026.9.5-ce7f2f12dbfb-2026-09-19T17-43-17.294Z
global update: exit 0
Preparing update checks: exit 0
Checking data migrations: exit 0
Checking update health: exit 0
Checking configuration: exit 0
Checking plugins: exit 0
Checking update recovery: exit 0
Checking Gateway startup: exit 0
global install swap: exit 0
openclaw doctor: exit 0
finalize:plugins:0: exit 0
finalize:plugins:1: exit 0

The actual installed candidate's build metadata records ce7f2f12dbfb54c57ac9994a9320cb252119bac2. The fixture configured a two-link dangling alias pointing to the convention-derived missing target, with an existing legacy source. Before and after the full updater transaction:

legacy source exists: true
source marker SHA-256: 85a0d8f6d083c3236951c8c1c643ec02995f30c1f3f192aea900014003c0a258
configured target exists: false
configured workspace value: unchanged
both symlink texts: unchanged

A subsequent actual installed-candidate doctor --fix --non-interactive --no-workspace-suggestions also exited 0 and preserved these same invariants, with the neutral configured-workspace notice. Current-tree fresh-profile and ordinary unconfigured-migration behavior are documented above. These runs use synthetic isolated state/config and disabled plugins; the only gateway process was the updater's temporary loopback canary. No live service was updated or restarted.

Preserved limitation: an initial v2026.9.4-published-updater attempt on this same candidate passed migration rehearsal, Doctor lint, configuration, plugin resolution, migration continuation, and gateway canary, but failed at swap because that published binary hard-caps its integrity scan at 30 seconds. Its baseline remained installed and the fixture stayed unchanged. That failed attempt is not claimed as successful proof. Published v2026.9.5 already removes the hard clamp and honors the supplied timeout; the successful run above uses that public binary unchanged. The older successful v2026.9.4 → 4c9e46ab... evidence remains historical evidence only.

Updater result receipt SHA-256: f5bfb02a16dfbaa85ba7f5d5cdb7851bb9e64267ff0a96789c8ee6d4f30f7cb6. Exact-head hosted CI attempt 2 passed after the transient npm audit-service outage recovered: https://github.com/openclaw/openclaw/actions/runs/35458064583/attempts/2 . No source change or CI waiver was used for the retry.

@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 commands Command implementations size: S labels Sep 12, 2026
@ericcaiwx-star
ericcaiwx-star marked this pull request as ready for review September 12, 2026 13:16
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 19, 2026, 1:47 PM ET / 17:47 UTC (Revision 6).

ClawSweeper review

What this changes

Doctor now preserves explicitly configured profile workspaces, including filesystem aliases, and reports preservation without blocking subsequent repairs.

Merge readiness

⛔ Blocked before merge - 3 items remain

This remains a useful fix absent from current main and v2026.9.5. No actionable patch defect was found; updated Doctor evidence resolves the direct-CLI gap, while current-candidate published-updater proof remains outstanding.

Priority: P2
Reviewed head: ce7f2f12dbfb54c57ac9994a9320cb252119bac2

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation and improved real Doctor evidence are useful; the remaining upgrade-proof gap prevents merge readiness.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: Current-tree macOS Doctor output demonstrates dangling-target preservation, ordinary migration, and fresh-profile behavior, resolving the earlier direct-CLI gap. Historical v2026.9.4 updater evidence remains valid for 4c9e46a, but the changed prelude planning still lacks the explicitly pending published-updater × current-candidate result required by repository policy. 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 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Current-tree macOS Doctor output demonstrates dangling-target preservation, ordinary migration, and fresh-profile behavior, resolving the earlier direct-CLI gap. Historical v2026.9.4 updater evidence remains valid for 4c9e46a, but the changed prelude planning still lacks the explicitly pending published-updater × current-candidate result required by repository policy. 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 9 items Current main still needs the fix: The migration accepts environment and home-directory inputs but no configuration; it renames the legacy directory when the target is absent and warns when the target exists.
Latest release retains the same behavior: Inspection of the supplied v2026.9.5 release commit shows the same configuration-unaware profile workspace migration.
Configuration reaches both migration paths: The introduced prelude passes configuration to planning and execution, removes configured endpoints from the migration plan, and collects preservation notices. The execution guard returns before directory creation or rename.
Findings None None.
Security None None.

How this fits together

Doctor plans and executes migrations of older OpenClaw state. Profile configuration and filesystem paths determine whether it moves a legacy workspace or leaves existing directories intact.

flowchart TD
  A[Named profile] --> C[Doctor migration planning]
  B[Explicit workspace configuration] --> C
  C --> D[Resolve filesystem aliases]
  D --> E{Either endpoint configured?}
  E -->|Yes| F[Preserve paths and report notice]
  E -->|No| G[Existing workspace migration]
  F --> H[Continue remaining repairs]
  G --> H
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Current-tree macOS Doctor output demonstrates dangling-target preservation, ordinary migration, and fresh-profile behavior, resolving the earlier direct-CLI gap. Historical v2026.9.4 updater evidence remains valid for 4c9e46a, but the changed prelude planning still lacks the explicitly pending published-updater × current-candidate result required by repository policy. 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) - Compatibility between a published updater and the revised configuration-aware migration plan remains unverified on the current candidate; the successful historical updater run predates that planning change.
  • Complete next step (P2) - Add the pending published-updater × current-candidate proof to the PR body, showing successful continuation and preserved configured paths and contents. Redacted terminal output or logs suffice; terminal screenshots or recordings are welcome. Remove private paths, endpoints, credentials, and identifiers. Updating the body should trigger re-review; otherwise ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +75, Tests +281. Total +356 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 80 5 +75
Tests 1 281 0 +281
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 361 5 +356

Review metrics

Metric Value Why it matters
Production versus regression coverage production net +75 lines; tests +281 lines Production growth supports configuration-aware filesystem identity checks; regression coverage protects preservation and read-only planning.

Merge-risk options

Maintainer options:

  1. Complete current-candidate upgrade evidence (recommended)
    Demonstrate that a published updater completes with the revised migration plan while preserving configured workspace paths and contents.

Technical review

Best possible solution:

Keep explicit workspace choices authoritative in the existing Doctor migration owner, with published-updater compatibility demonstrated for the revised plan.

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

Yes, from source: current main's named-profile migration can rename an explicitly configured legacy workspace because it never receives configuration. No runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

Yes: teaching the existing planner and executor to honor configured filesystem identities is a focused repair that preserves ordinary migration behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 00f51a38e804.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The PR changes upgrade-time migration planning, and published-updater compatibility is demonstrated only for the earlier implementation.

Label justifications:

  • P2: This is a bounded repair for named-profile users whose explicit workspace choices conflict with conventional migration paths.
  • merge-risk: 🚨 compatibility: The PR changes upgrade-time migration planning, and published-updater compatibility is demonstrated only for the earlier implementation.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Current-tree macOS Doctor output demonstrates dangling-target preservation, ordinary migration, and fresh-profile behavior, resolving the earlier direct-CLI gap. Historical v2026.9.4 updater evidence remains valid for 4c9e46a, but the changed prelude planning still lacks the explicitly pending published-updater × current-candidate result required by repository policy. 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:

  • Current main still needs the fix: The migration accepts environment and home-directory inputs but no configuration; it renames the legacy directory when the target is absent and warns when the target exists. (src/infra/state-migrations.state-dir.ts:77, 00f51a38e804)
  • Latest release retains the same behavior: Inspection of the supplied v2026.9.5 release commit shows the same configuration-unaware profile workspace migration. (src/infra/state-migrations.state-dir.ts:77, ec9c1a13db89)
  • Configuration reaches both migration paths: The introduced prelude passes configuration to planning and execution, removes configured endpoints from the migration plan, and collects preservation notices. The execution guard returns before directory creation or rename. (src/infra/state-migrations.prelude.ts:200, ce7f2f12dbfb)
  • Meaningful preservation coverage: The new tests exercise defaults, current and legacy agent rosters, both endpoints, existing and dangling aliases, native case behavior, repeated execution, unchanged contents, and read-only planning. Existing sibling tests retain ordinary migration and occupied-target refusal coverage. Tests were inspected, not executed during this read-only review. (src/infra/state-migrations.profile-workspace.test.ts:67, ce7f2f12dbfb)
  • Updated real behavior evidence: The supplied body snapshot, sourceRevision f8de9e32add9488a5a1f9c2572317064e3be6287a135d18710362150014214b6, records real macOS Doctor runs preserving a configured missing target through a dangling chain, successful unconfigured migration, and a fresh-profile no-op. It identifies runtime revision 4202b0e0448f647e8ab5e314b0a620c6e2379a23 as tree-equivalent to the reviewed head. The reviewed head's tree matches the recorded 0f01c793d76283657c5763d48e63df811b937695; the runtime revision was unavailable locally and through the GitHub commit endpoint, so equivalence remains contributor-reported. This inspection limitation does not invalidate the supplied runtime observations. (ce7f2f12dbfb)
  • Specific remaining proof gap: The body preserves successful published v2026.9.4 updater evidence for 4c9e46a and explicitly states that the current-candidate published-updater check is pending. That older run predates the revised prelude planning and missing-target protection. Root policy requires a published-driver × candidate proof cell for Doctor and migration changes. (AGENTS.md, ce7f2f12dbfb)

Likely related people:

  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: 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.

  • Add the pending published-updater result for the current candidate, showing migration continuation and unchanged configured workspace paths and contents.

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 (5 earlier review cycles)
  • reviewed 2026-09-12T13:22:51.039Z sha ebb1b49 :: needs real behavior proof before merge. :: [P2] [P2] Avoid declaring an independently configured workspace unused
  • reviewed 2026-09-12T13:58:25.013Z sha 4c9e46a :: blocked before merge. :: none
  • reviewed 2026-09-12T14:20:16.230Z sha 4c9e46a :: blocked before merge. :: none
  • reviewed 2026-09-12T14:26:14.111Z sha 4c9e46a :: blocked before merge. :: none
  • reviewed 2026-09-19T17:34:27.193Z sha ce7f2f1 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🦪 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
@ericcaiwx-star

Copy link
Copy Markdown
Contributor Author

Addressed the needs-proof items on 4c9e46ab68df:

  • Replaced the unsupported “unused” diagnosis with a neutral preservation notice and added a two-agent regression.
  • Added exact-head real Doctor CLI, fresh-profile, and public v2026.9.4 updater-to-candidate evidence to the PR body.
  • Made the no-schema/no-stored-data-rewrite compatibility conclusion explicit.
  • Documented the two unrelated exact-head CI flakes and their passing focused reruns; the author account cannot rerun repository workflows.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 12, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@fuller-stack-dev fuller-stack-dev self-assigned this Sep 18, 2026
Carry the contributor fix into the extracted migration prelude. Protect both configured endpoints, dangling aliases and native case-equivalent missing targets. Consolidate preservation regressions without growing the existing oversized suites.

Co-authored-by: ericcaiwx-star <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed the commands Command implementations label Sep 19, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. labels Sep 19, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 1e8ba48 into openclaw:main Sep 19, 2026
405 of 409 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

RomneyDa pushed a commit that referenced this pull request Sep 19, 2026
* fix(doctor): preserve configured profile workspaces

* fix(doctor): avoid assuming workspace ownership

Co-authored-by: ericcaiwx-star <[email protected]>
(cherry picked from commit 1e8ba48)
RomneyDa added a commit that referenced this pull request Sep 19, 2026
* fix(update): restore Gateway after partial stop failure

Adapt the service-mutation recovery invariant to the 2026.8 updater owner.

(cherry picked from commit ad682b4)

* fix(update): replace unsupported service Node runtimes

Adapt the recorded-service runtime probe to the 2026.8 daemon install plan.

(cherry picked from commit fe79d36)

* fix(gateway): gateway stays offline after agent restart on Windows (#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: published Linux upgrades leave unchanged gateways stopped (#151049)

* 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)

* fix(doctor): preserve explicitly configured profile workspaces (#145976)

* fix(doctor): preserve configured profile workspaces

* fix(doctor): avoid assuming workspace ownership

Co-authored-by: ericcaiwx-star <[email protected]>
(cherry picked from commit 1e8ba48)

* fix(plugins): stop relocated install records from shadowing bundled plugins (#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)

* fix(plugins): archive updates fail on development-only dependencies (#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)

* fix(gateway): release agent leases when shutdown completes (#151435)

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 (#138781)

* fix: restore Gateway restarts after Git updates

* test: align update installer mock with eager import

(cherry picked from commit 24d8119)

---------

Co-authored-by: josh <[email protected]>
Co-authored-by: Josh <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Eric Cai <[email protected]>
Co-authored-by: Gio Della-Libera <[email protected]>
Co-authored-by: Gio Della-Libera <[email protected]>
Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: Jason O'Neal <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
…law#145976)

* fix(doctor): preserve configured profile workspaces

* fix(doctor): avoid assuming workspace ownership

Co-authored-by: ericcaiwx-star <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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.

2 participants