Skip to content

fix(doctor): plan and execute plugin migrations from one inventory - #157479

Merged
steipete merged 2 commits into
mainfrom
upd/doctor-plugin-action-order-external
Sep 24, 2026
Merged

steipete merged 2 commits into
mainfrom
upd/doctor-plugin-action-order-external

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #157362
Related: #157415

What Problem This Solves

Fixes candidate Gateway startup refusing post-session plugin repairs when an external owner excluded during planning reappears during execution.

User Impact

Admitted plugin repairs finish while a deferred plugin and its retained inputs remain pending. Manifest declarations, immutable action order, and maintenance-authority checks remain enforced.

The direct Doctor report remains unproven: the tested global-npm shape completes on the pre-fix baseline as well as the candidate, including an earlier legacy-roster repair. This PR does not claim that report is fixed.

Why This Change Was Made

Startup prepares a live inventory inside the deferred-plugin scope, then leaves that scope before completing session repair. The old handoff retained only action IDs, so execution discovered owners again and reintroduced a loadable deferred codex owner beside the admitted acpx action.

The registry now retains its selected records in the prepared inventory. The migration graph, deferred handoff, and execution consume those records. Installation-driven replanning still selects the replacement generation. The action-order check is unchanged.

Direct Doctor uses the live resolver too, preserves its metadata/deferred scope through session health, and refreshes the plan after package repairs. Its added control covers both external owners after config repair, with global npm prefix paths and no OpenClaw-managed install records. Duplicate bundled copies remain untouched.

Production: +27/-12 lines (net +15); tests: +214 lines; docs: +2 lines.

Evidence

  • Fail/pass regression: on baseline 6e8d06876fd166064abbec4928fb3bb109ebe999, the startup case fails with the exact refusal below while the direct Doctor case passes. On the candidate both pass. The startup assertion verifies that only admitted external acpx executes, codex's obligation and inputs remain pending, and neither bundled copy executes.
  • Direct Doctor assertion: the real config/preflight → session-health flow migrates agents.list, then completes both external plugin actions. It passes before the production fix, so it is coverage rather than a claimed direct-Doctor regression.
  • Three focused repetitions: the expanded two-case file passed on Testbox in 27.22s, 23.90s, and 23.43s command wall. Test time was 5.864s, 4.442s, and 4.533s. Command: node scripts/run-vitest.mjs src/commands/doctor-config-preflight.plugin-action-inventory.test.ts --maxWorkers=1. Compiler preparation accounts for most wall time; hosted CI timing is pending.
  • Checks and review: node scripts/check-changed.mjs --base origin/upd/doctor-plugin-action-order-external passed for the follow-up, including Doctor test types, lint with zero warnings/errors, and unused-export guards. Fresh Codex autoreview at P0–P2 was scoped-clean. git diff --check passed.
  • Retained production proof: production code is unchanged from the earlier reviewed patch, whose full changed gate, 96 focused tests ×3, and 80 remaining importer files all passed. The importer run completed across ten Vitest groups in 639.17s.
  • Bounded live comparison: packed compiled acpx/codex with the repository's runtime/manifest builders and pnpm pack, then installed both using npm install -g into an isolated prefix. Explicit plugins.load.paths selected those roots as documented. Both baseline and candidate reported both plugins loaded from that prefix, with the Gateway stopped and isolated home/state/config paths. Each dist was rebuilt through OPENCLAW_FORCE_BUILD=1 pnpm openclaw --version; doctor --fix --non-interactive completed with exit 0 on both. The exercise, including setup correction and cleanup, stayed within the 30-minute limit.

Baseline startup regression:

Failing check plugin-doctor-post-session-state (step-refused): Refused plugin migrations that do not match the immutable action order: acpx:acpx-session-owner-resources, codex:codex-app-server-orphaned-session-bindings.

Sanitized live results:

npm install -g --prefix <prefix> --omit=dev --omit=peer --legacy-peer-deps --ignore-scripts <acpx.tgz> <codex.tgz>
# Supply the host peer from the checkout under test:
npm install -g --prefix <prefix> --install-links=false --ignore-scripts --legacy-peer-deps <checkout>

baseline:  acpx loaded  <prefix>/lib/node_modules/@openclaw/acpx/dist/index.js
baseline:  codex loaded <prefix>/lib/node_modules/@openclaw/codex/dist/index.js
baseline:  doctor --fix --non-interactive -> Doctor complete. exit 0
candidate: acpx loaded  <prefix>/lib/node_modules/@openclaw/acpx/dist/index.js
candidate: codex loaded <prefix>/lib/node_modules/@openclaw/codex/dist/index.js
candidate: doctor --fix --non-interactive -> Doctor complete. exit 0

The initial isolated prefix lacked the openclaw host peer: a native Codex migration chunk reported ERR_MODULE_NOT_FOUND. npm linked the host into the same prefix within the original time limit, after which the paired runs completed. The prior package-owner guard did not recur with explicit global-root selection. Advisory missing-credential/workspace diagnostics are expected for this empty, secretless fixture; no operator state or Gateway was touched.

Direct Doctor follow-up: additional inputs from the affected upgraded installation are needed to reproduce the reported divergence. The copied-state resolver is not used by the tested direct path. Auto-merge remains off for the lead to arm.

Carry the selected plugin records through deferred session repair so startup cannot rediscover an owner excluded during planning. Preserve declaration, action-order, and maintenance-authority checks. Live external-plugin proof is blocked by install ownership resolution; retain this as a draft pending that gate.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations size: M labels Sep 24, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 24, 2026, 3:20 PM ET / 19:20 UTC (Revision 2).

ClawSweeper review

What this changes

The branch carries one selected plugin migration inventory through Doctor planning, Gateway startup, and post-session repair, with regression coverage and a documentation clarification.

Merge readiness

⛔ Blocked before merge - 7 items remain

The startup action-order failure is still present on current main, and this PR has a focused repair. It remains blocked because the prepared inventory can carry an outdated plugin trust decision into the final repair.

Priority: P0
Reviewed head: 29fc070c86a32cb100d02928472184ea9df23167

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused regression and compact production change are useful, but final authority and upgraded-state behavior remain unproven.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the reported real global-npm Doctor command exits successfully on both baseline and candidate, so it does not show the changed startup handoff recovering. The synthetic startup test supports the order fix, but there is no final-effect demonstration that an allowed plugin completes while a changed same-ID untrusted owner is rejected before ingress I/O. The migration changes persisted-state outcomes; a published-updater run on retained upgraded state has not established compatibility. Redacted terminal output or logs showing these paths would suffice. 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 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the reported real global-npm Doctor command exits successfully on both baseline and candidate, so it does not show the changed startup handoff recovering. The synthetic startup test supports the order fix, but there is no final-effect demonstration that an allowed plugin completes while a changed same-ID untrusted owner is rejected before ingress I/O. The migration changes persisted-state outcomes; a published-updater run on retained upgraded state has not established compatibility. Redacted terminal output or logs showing these paths would suffice. 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 10 items Introduced record reuse: The branch makes execution use records retained in the prepared inventory, bypassing fresh plugin discovery when those records exist.
Trust reaches mutable ingress: The retained record's official-install flag determines durable-store trust; a trusted migration receives write-capable channel ingress access.
Final lease timing: The plugin lifecycle lease is acquired for post-session execution after the inventory was prepared; the lease checks ownership but does not refresh the retained record's artifact identity or trust.
Findings 1 actionable finding [P1] Revalidate plugin trust under the final writer lease
Security Needs attention Stale official trust can authorize ingress writes: Record reuse bypasses final-lease discovery, while the retained trust flag grants mutable channel-ingress access; a changed same-ID owner has no final identity rejection before that side effect.

How this fits together

Doctor and Gateway startup inspect installed plugin manifests, plan legacy-state repairs, and run eligible plugin actions after session repair. Those actions can change retained session state and, for channel plugins, durable ingress queues.

flowchart LR
A[Installed plugin manifests] --> C[Prepared inventory]
B[Deferred plugin list] --> C
C --> D[Migration plan]
D --> E[Session repair]
E --> F[Plugin repair under leases]
F --> G[State and repair receipts]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the reported real global-npm Doctor command exits successfully on both baseline and candidate, so it does not show the changed startup handoff recovering. The synthetic startup test supports the order fix, but there is no final-effect demonstration that an allowed plugin completes while a changed same-ID untrusted owner is rejected before ingress I/O. The migration changes persisted-state outcomes; a published-updater run on retained upgraded state has not established compatibility. Redacted terminal output or logs showing these paths would suffice. 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.
  • Revalidate plugin trust under the final writer lease (P1) - The new inventory path reuses a record selected before the final plugin lifecycle lease. An intervening install or replacement can change the selected artifact or its official-install status, yet this record's trust flag still controls whether its migration receives mutable channel-ingress access. Recheck identity and trust under that lease and reject a changed or untrusted owner before migration I/O.
  • Resolve security concern: Stale official trust can authorize ingress writes - Record reuse bypasses final-lease discovery, while the retained trust flag grants mutable channel-ingress access; a changed same-ID owner has no final identity rejection before that side effect.
  • Resolve merge risk (P1) - An intervening plugin replacement can leave a preflight official-trust flag attached to a different artifact when the final repair acquires its writer lease, potentially granting an untrusted channel plugin mutable ingress-queue access.
  • Resolve merge risk (P1) - The changed migration path has no published-updater-to-candidate result on retained upgraded state, so its upgrade and rollback behavior is not yet established.
  • Complete next step (P2) - Revalidate selected plugin identity and trust under the final writer lease, prove an untrusted same-ID replacement is rejected before ingress I/O, and provide an after-fix published-updater run on retained upgraded state.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] Revalidate plugin trust under the final writer lease — src/plugins/doctor-contract-registry.ts:411
  • [high] Stale official trust can authorize ingress writes — src/plugins/doctor-contract-registry.ts:411
Agent review details

Security

Needs attention: The inventory handoff can preserve an obsolete official-plugin trust decision through to a write-capable migration.

PR surface

Source +15, Tests +214, Docs +2. Total +231 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 6 27 12 +15
Tests 1 214 0 +214
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 243 12 +231

Review metrics

Metric Value Why it matters
Production and test growth production +15 net lines; tests +214 lines The small production handoff has a stated regression purpose; the new test file is the main maintenance and CI cost.
Focused test cost 2 cases; 23.43–27.22s command wall across 3 reported runs The PR reports a meaningful startup regression check, while hosted CI timing is still pending.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-session-transcripts.ts, migration/backfill/repair: src/infra/state-migrations.doctor.ts, migration/backfill/repair: src/infra/state-migrations.plugin-doctor.ts, migration/backfill/repair: src/infra/state-migrations.types.ts, migration/backfill/repair: src/plugins/doctor-contract-registry.ts, unknown-data-model-change: src/infra/state-migrations.plugin-doctor.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #157362
Summary: This PR is a candidate fix for the updater startup refusal; the direct Doctor report has a similar symptom but is not established as the same failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Bind authority at final repair (recommended)
    Recheck the selected artifact and official-install trust under the writer lease, reject changed identity before migration I/O, and verify both allowed and untrusted outcomes.
  2. Pause for upgrade evidence
    Hold the PR if a published-updater run against representative retained state cannot establish successful migration and safe rollback.

Technical review

Best possible solution:

Keep the planned action order and deferred-owner selection, bind artifact identity and trust again under the final lifecycle lease, then verify the published updater completes the retained-state migration safely.

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

No current-main execution was run in this read-only review. The PR reports an exact baseline startup failure, and current-main source still rediscovers plugin actions after planning; the separate direct Doctor report remains unconfirmed by the PR's live comparison.

Is this the best way to solve the issue?

No. Carrying the selected inventory addresses the action-order mismatch, but the final writer must revalidate artifact identity and official trust before granting mutable migration access.

Full review comments:

  • [P1] Revalidate plugin trust under the final writer lease — src/plugins/doctor-contract-registry.ts:411
    The new inventory path reuses a record selected before the final plugin lifecycle lease. An intervening install or replacement can change the selected artifact or its official-install status, yet this record's trust flag still controls whether its migration receives mutable channel-ingress access. Recheck identity and trust under that lease and reject a changed or untrusted owner before migration I/O.
    Confidence: 0.88

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 37783fcbcf78.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The updated migration handoff affects existing-state upgrades, and a published-driver upgrade result has not been shown.
  • add merge-risk: 🚨 session-state: The PR changes which plugin migrations run after session repair against retained operator state.

Label justifications:

  • P0: The linked report describes an update blocked at candidate Gateway startup with no successful in-product completion path.
  • merge-risk: 🚨 security-boundary: Retained plugin records can carry official trust across a lifecycle gap into write-capable channel ingress access.
  • merge-risk: 🚨 session-state: The PR changes which plugin migrations run after session repair against retained operator state.
  • merge-risk: 🚨 compatibility: The updated migration handoff affects existing-state upgrades, and a published-driver upgrade result has not been shown.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the reported real global-npm Doctor command exits successfully on both baseline and candidate, so it does not show the changed startup handoff recovering. The synthetic startup test supports the order fix, but there is no final-effect demonstration that an allowed plugin completes while a changed same-ID untrusted owner is rejected before ingress I/O. The migration changes persisted-state outcomes; a published-updater run on retained upgraded state has not established compatibility. Redacted terminal output or logs showing these paths would suffice. 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

Security concerns:

  • [high] Stale official trust can authorize ingress writes — src/plugins/doctor-contract-registry.ts:411
    Record reuse bypasses final-lease discovery, while the retained trust flag grants mutable channel-ingress access; a changed same-ID owner has no final identity rejection before that side effect.
    Confidence: 0.86

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

  • Revalidate artifact identity and official trust under the final lifecycle lease; show the allowed migration reaching its final writer and a changed same-ID untrusted owner rejected before ingress I/O.
  • Add redacted after-fix published-updater-to-candidate output on retained upgraded state; updating the PR body should trigger re-review, or a maintainer can request @clawsweeper re-review.

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 (1 earlier review cycle)
  • reviewed 2026-09-24T18:33:30.404Z sha 63cd7dc :: needs real behavior proof before merge. :: [P1] Revalidate plugin trust under the writer lease

Exercise the direct Doctor config and session-health flow after legacy roster repair, with both external plugin roots selected and no managed install records. This control passes before the production fix as well; only the startup case reproduces the immutable action-order refusal.
@steipete
steipete marked this pull request as ready for review September 24, 2026 19:12
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@steipete
steipete enabled auto-merge (squash) September 24, 2026 19:15
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Sep 24, 2026
@steipete
steipete merged commit 47a84c8 into main Sep 24, 2026
274 checks passed
@steipete
steipete deleted the upd/doctor-plugin-action-order-external branch September 24, 2026 19:28
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…penclaw#157479)

* fix(doctor): plan and execute plugin migrations from one inventory

Carry the selected plugin records through deferred session repair so startup cannot rediscover an owner excluded during planning. Preserve declaration, action-order, and maintenance-authority checks. Live external-plugin proof is blocked by install ownership resolution; retain this as a draft pending that gate.

* test(doctor): cover direct repair with global npm plugins

Exercise the direct Doctor config and session-health flow after legacy roster repair, with both external plugin roots selected and no managed install records. This control passes before the production fix as well; only the startup case reproduces the immutable action-order refusal.
tomorrowflow added a commit to tomorrowflow/openclaw that referenced this pull request Sep 25, 2026
…entory

2026.9.7 gateway startup refused its post-session plugin migrations
("do not match the immutable action order: acpx:..., codex:...") because
execution rediscovered plugin records that planning had excluded, leaving
the gateway down after the deploy. Backports upstream 47a84c8 (openclaw#157479),
adapted to the release's pre-refactor plan shape: the prepared inventory
rides alongside the planned actions instead of the upstream migration object.

(cherry picked from commit 47a84c8)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@jscd98

jscd98 commented Sep 27, 2026

Copy link
Copy Markdown

Closes #157362 Related: #157415

What Problem This Solves

Fixes candidate Gateway startup refusing post-session plugin repairs when an external owner excluded during planning reappears during execution.

User Impact

Admitted plugin repairs finish while a deferred plugin and its retained inputs remain pending. Manifest declarations, immutable action order, and maintenance-authority checks remain enforced.

The direct Doctor report remains unproven: the tested global-npm shape completes on the pre-fix baseline as well as the candidate, including an earlier legacy-roster repair. This PR does not claim that report is fixed.

Why This Change Was Made

Startup prepares a live inventory inside the deferred-plugin scope, then leaves that scope before completing session repair. The old handoff retained only action IDs, so execution discovered owners again and reintroduced a loadable deferred codex owner beside the admitted acpx action.

The registry now retains its selected records in the prepared inventory. The migration graph, deferred handoff, and execution consume those records. Installation-driven replanning still selects the replacement generation. The action-order check is unchanged.

Direct Doctor uses the live resolver too, preserves its metadata/deferred scope through session health, and refreshes the plan after package repairs. Its added control covers both external owners after config repair, with global npm prefix paths and no OpenClaw-managed install records. Duplicate bundled copies remain untouched.

Production: +27/-12 lines (net +15); tests: +214 lines; docs: +2 lines.

Evidence

  • Fail/pass regression: on baseline 6e8d06876fd166064abbec4928fb3bb109ebe999, the startup case fails with the exact refusal below while the direct Doctor case passes. On the candidate both pass. The startup assertion verifies that only admitted external acpx executes, codex's obligation and inputs remain pending, and neither bundled copy executes.
  • Direct Doctor assertion: the real config/preflight → session-health flow migrates agents.list, then completes both external plugin actions. It passes before the production fix, so it is coverage rather than a claimed direct-Doctor regression.
  • Three focused repetitions: the expanded two-case file passed on Testbox in 27.22s, 23.90s, and 23.43s command wall. Test time was 5.864s, 4.442s, and 4.533s. Command: node scripts/run-vitest.mjs src/commands/doctor-config-preflight.plugin-action-inventory.test.ts --maxWorkers=1. Compiler preparation accounts for most wall time; hosted CI timing is pending.
  • Checks and review: node scripts/check-changed.mjs --base origin/upd/doctor-plugin-action-order-external passed for the follow-up, including Doctor test types, lint with zero warnings/errors, and unused-export guards. Fresh Codex autoreview at P0–P2 was scoped-clean. git diff --check passed.
  • Retained production proof: production code is unchanged from the earlier reviewed patch, whose full changed gate, 96 focused tests ×3, and 80 remaining importer files all passed. The importer run completed across ten Vitest groups in 639.17s.
  • Bounded live comparison: packed compiled acpx/codex with the repository's runtime/manifest builders and pnpm pack, then installed both using npm install -g into an isolated prefix. Explicit plugins.load.paths selected those roots as documented. Both baseline and candidate reported both plugins loaded from that prefix, with the Gateway stopped and isolated home/state/config paths. Each dist was rebuilt through OPENCLAW_FORCE_BUILD=1 pnpm openclaw --version; doctor --fix --non-interactive completed with exit 0 on both. The exercise, including setup correction and cleanup, stayed within the 30-minute limit.

Baseline startup regression:

Failing check plugin-doctor-post-session-state (step-refused): Refused plugin migrations that do not match the immutable action order: acpx:acpx-session-owner-resources, codex:codex-app-server-orphaned-session-bindings.

Sanitized live results:

npm install -g --prefix <prefix> --omit=dev --omit=peer --legacy-peer-deps --ignore-scripts <acpx.tgz> <codex.tgz>
# Supply the host peer from the checkout under test:
npm install -g --prefix <prefix> --install-links=false --ignore-scripts --legacy-peer-deps <checkout>

baseline:  acpx loaded  <prefix>/lib/node_modules/@openclaw/acpx/dist/index.js
baseline:  codex loaded <prefix>/lib/node_modules/@openclaw/codex/dist/index.js
baseline:  doctor --fix --non-interactive -> Doctor complete. exit 0
candidate: acpx loaded  <prefix>/lib/node_modules/@openclaw/acpx/dist/index.js
candidate: codex loaded <prefix>/lib/node_modules/@openclaw/codex/dist/index.js
candidate: doctor --fix --non-interactive -> Doctor complete. exit 0

The initial isolated prefix lacked the openclaw host peer: a native Codex migration chunk reported ERR_MODULE_NOT_FOUND. npm linked the host into the same prefix within the original time limit, after which the paired runs completed. The prior package-owner guard did not recur with explicit global-root selection. Advisory missing-credential/workspace diagnostics are expected for this empty, secretless fixture; no operator state or Gateway was touched.

Direct Doctor follow-up: additional inputs from the affected upgraded installation are needed to reproduce the reported divergence. The copied-state resolver is not used by the tested direct path. Auto-merge remains off for the lead to arm.

Still blocked upgrading from 2026.9.3 on macOS, Git install, stable channel. Latest attempt again selected eb377ac and failed candidate Gateway readiness. Activation was skipped. The UI stayed on “Validating” after the attempt had failed; I subsequently recovered the unloaded LaunchAgent with openclaw gateway start. Which published stable version includes #157479, and is that expected to address this failure?

tomorrowflow added a commit to tomorrowflow/openclaw that referenced this pull request Sep 29, 2026
The sync agent resolved 35 conflicts but stopped before building. Its
resolutions left fork additions pointing at names upstream had renamed
or inlined:

- sandbox fs-paths: toHostSegments is gone upstream (inlined as
  split/filter), and the new MOUNT_SOURCE_PRIORITY table lacked the
  fork's managedState source (shared and media mounts, rank 0 as before).
- secret mounts: normalizeHostPath -> normalizeSandboxHostPath.
- cron job cap: resolveEffectiveJobAgentId -> resolveCronJobEffectiveAgentId.
- whisper-asr keyless auth: the LOCAL_KEYLESS_PROVIDERS declaration was
  dropped while its use survived.
- session file previews: getSessionRootFile takes upstream's new
  assertCurrent, and the mounted-file preview now passes it too.

The Ollama string-arguments fix was worse: its helpers stayed in
stream.runtime.ts with no caller, and the checklist entry matched the
helper, so it reported present while the fix was off. Move it next to
upstream's compat wrapper in stream-compat.ts, wire it for
openai-completions, assert the wiring call, and add a regression test
with object arguments (it fails with the wrapper unwired).

Also: drop the fork's openclaw#157479 backport (the re-cut ships 47a84c8),
retire the checklist entry for an upstream test file upstream deleted,
and teach the sync prompt to skip superseded cherry-picked backports.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tomorrowflow added a commit to tomorrowflow/openclaw that referenced this pull request Sep 29, 2026
The sync agent resolved 35 conflicts but stopped before building. Its
resolutions left fork additions pointing at names upstream had renamed
or inlined:

- sandbox fs-paths: toHostSegments is gone upstream (inlined as
  split/filter), and the new MOUNT_SOURCE_PRIORITY table lacked the
  fork's managedState source (shared and media mounts, rank 0 as before).
- secret mounts: normalizeHostPath -> normalizeSandboxHostPath.
- cron job cap: resolveEffectiveJobAgentId -> resolveCronJobEffectiveAgentId.
- whisper-asr keyless auth: the LOCAL_KEYLESS_PROVIDERS declaration was
  dropped while its use survived.
- session file previews: getSessionRootFile takes upstream's new
  assertCurrent, and the mounted-file preview now passes it too.

The Ollama string-arguments fix was worse: its helpers stayed in
stream.runtime.ts with no caller, and the checklist entry matched the
helper, so it reported present while the fix was off. Move it next to
upstream's compat wrapper in stream-compat.ts, wire it for
openai-completions, assert the wiring call, and add a regression test
with object arguments (it fails with the wrapper unwired).

Also: drop the fork's openclaw#157479 backport (the re-cut ships 47a84c8),
retire the checklist entry for an upstream test file upstream deleted,
and teach the sync prompt to skip superseded cherry-picked backports.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tomorrowflow added a commit to tomorrowflow/openclaw that referenced this pull request Oct 3, 2026
The sync agent resolved 35 conflicts but stopped before building. Its
resolutions left fork additions pointing at names upstream had renamed
or inlined:

- sandbox fs-paths: toHostSegments is gone upstream (inlined as
  split/filter), and the new MOUNT_SOURCE_PRIORITY table lacked the
  fork's managedState source (shared and media mounts, rank 0 as before).
- secret mounts: normalizeHostPath -> normalizeSandboxHostPath.
- cron job cap: resolveEffectiveJobAgentId -> resolveCronJobEffectiveAgentId.
- whisper-asr keyless auth: the LOCAL_KEYLESS_PROVIDERS declaration was
  dropped while its use survived.
- session file previews: getSessionRootFile takes upstream's new
  assertCurrent, and the mounted-file preview now passes it too.

The Ollama string-arguments fix was worse: its helpers stayed in
stream.runtime.ts with no caller, and the checklist entry matched the
helper, so it reported present while the fix was off. Move it next to
upstream's compat wrapper in stream-compat.ts, wire it for
openai-completions, assert the wiring call, and add a regression test
with object arguments (it fails with the wrapper unwired).

Also: drop the fork's openclaw#157479 backport (the re-cut ships 47a84c8),
retire the checklist entry for an upstream test file upstream deleted,
and teach the sync prompt to skip superseded cherry-picked backports.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tomorrowflow added a commit to tomorrowflow/openclaw that referenced this pull request Oct 5, 2026
The sync agent resolved 35 conflicts but stopped before building. Its
resolutions left fork additions pointing at names upstream had renamed
or inlined:

- sandbox fs-paths: toHostSegments is gone upstream (inlined as
  split/filter), and the new MOUNT_SOURCE_PRIORITY table lacked the
  fork's managedState source (shared and media mounts, rank 0 as before).
- secret mounts: normalizeHostPath -> normalizeSandboxHostPath.
- cron job cap: resolveEffectiveJobAgentId -> resolveCronJobEffectiveAgentId.
- whisper-asr keyless auth: the LOCAL_KEYLESS_PROVIDERS declaration was
  dropped while its use survived.
- session file previews: getSessionRootFile takes upstream's new
  assertCurrent, and the mounted-file preview now passes it too.

The Ollama string-arguments fix was worse: its helpers stayed in
stream.runtime.ts with no caller, and the checklist entry matched the
helper, so it reported present while the fix was off. Move it next to
upstream's compat wrapper in stream-compat.ts, wire it for
openai-completions, assert the wiring call, and add a regression test
with object arguments (it fails with the wrapper unwired).

Also: drop the fork's openclaw#157479 backport (the re-cut ships 47a84c8),
retire the checklist entry for an upstream test file upstream deleted,
and teach the sync prompt to skip superseded cherry-picked backports.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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.

Git update from 2026.9.3 to eb377ac5 fails canary: immutable plugin migration order (acpx/codex)

2 participants