docs: OpenClaw 3.7 → 4.12 upgrade risk assessment#1098
Open
docs: OpenClaw 3.7 → 4.12 upgrade risk assessment#1098
Conversation
Research memo for upgrading the bundled OpenClaw runtime from v2026.3.7 to v2026.4.12 with the goal of enabling pluggable agent harness (Codex replacing built-in PI). Covers interface-layer risks (config schema, plugin SDK), runtime-layer risks (WS RPC, process lifecycle, skill install, BYOK), a staged 3.7 → 3.22 → 4.12 rollout plan, and a required code-change checklist.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a research memo assessing the risks, costs, and path for upgrading Nexu's bundled OpenClaw runtime from
v2026.3.7tov2026.4.12.File:
openclaw-upgrade-risk-assessment.mdWhy
The goal is to make Nexu's embedded agent runtime pluggable (replace the built-in PI with Codex-style harnesses). The
AgentHarnessplugin API first shipped inv2026.4.10, which Nexu's currentv2026.3.7does not have.This memo exists so the team can align on risk, scope, and rollout plan before we start the upgrade work, rather than discovering surprises mid-flight.
How
Traced every coupling point between Nexu and OpenClaw across all 13,667 commits between 3.7 and 4.12. Document layout:
Affected areas
Checklist
pnpm typecheckpasses (N/A, docs-only)pnpm lintpasses (N/A, docs-only)pnpm testpasses (N/A, docs-only)pnpm generate-typesrun (if API routes/schemas changed) (N/A)anytypes introducedNotes for reviewers
Please sanity-check the following conclusions, since they directly drive the upgrade scope and effort estimate:
extensions/whatsapp/bundled since v2026.1.22, so Nexu's in-tree copy can simply be deleted.@tencent-weixin/openclaw-weixin@2.1.8(Nexu is on 1.0.2, 13 versions behind) — Tencent has already done the new-SDK migration work for us.nexu-runtime-model/nexu-credit-guard/nexu-platform-bootstrap/langfuse-traceruse the duck-typedregister(api)API and don't importopenclaw/plugin-sdk.spawned pid N" to "exit(0)+ launchd respawn". Nexu's successor-PID regex won't match anymore — needs extension plus a check thatRUNTIME_MANAGE_OPENCLAW_PROCESS=falseactually takes effect at runtime.embeddedHarness.runtime: "auto"+fallback: "pi"; ship the harness pilot as a separate follow-up PR once upstream stabilizes.Effort estimate: ~1.5 weeks for code changes + verification.