Skip to content

fix(update): Git updates overbuild and cannot repair interrupted conversion - #189463

Merged
vincentkoc merged 3 commits into
mainfrom
fix/windows-dev-update-budget-20261031
Oct 31, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/windows-dev-update-budget-20261031

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Closes #189456
Closes #189585

What Problem This Solves

Ordinary Git updates build unnecessary declarations, and an interrupted npm-to-Git conversion can leave openclaw update repair refusing its own retained plugin recovery.

User Impact

Git updates build runnable JavaScript, plugin assets, and the Control UI by default. Explicit OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=0 and immutable sealed releases still build declarations. Repair recognizes the original package path when it now links to the installed checkout, claims both paths, and settles recovery using the existing state and configuration.

Repair refuses changed links or occupied paths without changing retained recovery. Alias repair does not reclaim cancelled update custody. Explicit update deadlines keep their existing meaning. An older already-running updater still controls its initial hop.

Why This Change Was Made

Apply the existing build policy at the ordinary Git-update owner. Preserve the saved recovery identity and use the existing executor to hold both the historical package slot and its canonical destination; revalidate that binding before settlement. No new setting, state schema, cache, dependency, or timeout extension is introduced.

Evidence

  • Build default: red-on-base candidate integration; 119 focused tests pass, including explicit declaration opt-in and immutable release behavior. Five interleaved planner samples consistently select 13/0 total/declaration stages instead of 17/4; explicit full and immutable stay 17/4. This is deterministic work-count evidence, not a latency benchmark. Full host build passes in 8m 53.7s.
  • Recovery: registered CLI alias repair fails on the base and passes with the fix. All 54 focused repair/admission/native-custody tests pass. They cover ordinary and linked entry paths, real config rollback, a busy historical slot with a free destination, awaited link retargeting, unrelated installations/configuration, and committed candidate mismatch. Refusals preserve retained recovery and config bytes.
  • Targeted typechecks, lint, formatting, MDX, test-line allocations, environment inventory, and whitespace checks pass. The environment inventory accounts for the existing documented flag entering counted roots.
  • Fresh independent source reviews approve both changes. Parent and recovery local autoreviews are scoped-clean through P2, against frozen base bf56514c98ecb628b406889e6d573d0485bfd53e and recovery base 5bdf6a5674adab2f33d9420d00a3a102f9998a0f respectively. Local ClawSweeper was unavailable because its shared-owner fetch encountered an existing lock, which was preserved.
  • Windows 11 ARM64 installed-CLI source update at runtime commit 28dcc5a515d22ba1826aaa3e3b6a6329642ef96b built runtime artifacts in 7m 28s on the warm attempt. Candidate Doctor, lint, config, plugins, recovery, Gateway startup and runtime staging passed. Installed status reports exact Git/HEAD, dev channel and ready artifacts.
  • Both cold and warm installed-update attempts hit the outer fixture cap; the warm run ended during final Doctor. Neither is a completed full-update pass. Phase-budget accounting is tracked in Windows Parallels source-update phase caps can preempt the CLI timeout #189636.
  • Live recovery on exact combined commit c1ea8e1701b4e4e1509c73d0eb4dd3b830ceae4b passes: manual clean source fast-forward and canonical runtime build (13 steps, 5m 41.7s), then installed openclaw update repair --json --yes (4m 32s). Repair exits 0 with coreUpdate: completed, plugins OK, and Doctor lint exit 0. Its overall status is warning for fixture configuration and maintenance advisories.
  • Installed status verifies exact Git/dev revision, matching built revision, ready artifacts, qualified dependencies and no active run. Fresh-shell CLI, ref-mode onboarding, Gateway RPC (rpc.ok: true) and a real fresh-session openai/gpt-5.4 reply of exact OK all pass. The agent turn takes 32.5s; the six final verification phases take 2m 54s.
  • The packed baseline omitted the public installer's npm-prefix PATH setup. A guarded fixture-only User PATH handoff was applied before fresh-shell verification; Machine PATH was preserved. Automation follow-up: Parallels Windows packed install does not prepare fresh-shell CLI PATH #189635. Permanent pnpm is diagnostic only because the updater intentionally owns temporary pinned shims.
  • Combined-head CI passes on c1ea8e1701b4e4e1509c73d0eb4dd3b830ceae4b in 23m 29s: https://github.com/openclaw/openclaw/actions/runs/41225004235. Both exact-head CI and the scoped live recovery proof are complete.

The separate post-ready successor cohort identity branch is a source-audited follow-up: #189637. This campaign proves explicit interrupted-conversion repair; uninterrupted full-source-update completion remains uncovered by the capped attempts.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 31, 2026 14:49
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Ordinary Git updates skip declaration builds by default while preserving explicit declaration requests and immutable-release builds.

Example: Run an ordinary source update with OPENCLAW_RUN_NODE_SKIP_DTS_BUILD unset.

  • Before: The full build graph includes four declaration or SDK-only stages.
  • After: The runtime build graph omits those stages; setting the existing variable to 0 retains them.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation appears correct, but the explicitly required installed-CLI behavior proof remains pending.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Source updates perform unnecessary declaration work and can exhaust an explicit update budget.
Reason: The maintainer-authored change restores documented behavior using an existing option and preserves the separately justified immutable-release policy.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it restores the documented Git-update build default at the correct owner, remains necessary on current main, and introduces no concrete correctness finding.

Priority: P2
Reviewed head: 5bdf6a5674adab2f33d9420d00a3a102f9998a0f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply the pending Windows 11 ARM64 installed-CLI source-update replay from a baseline containing the fix, plus fresh-install and latest-stable upgrade coverage preserving settings and data.
Agent review details

How this fits together

The installed update CLI prepares a candidate checkout, passes its command environment into shared build preflight, validates the resulting runtime, and then activates it; immutable preparation calls shared preflight separately.

flowchart TD
  A[Installed update CLI] --> B[Ordinary Git update owner]
  B --> C[Candidate command environment]
  C --> D[Shared candidate preflight]
  E[Immutable build worker] --> D
  D --> F[Build planner]
  F --> G[Validated runtime activation]
Loading

Technical review

Best possible solution:

Keep the runtime-only default at the ordinary Git-update owner, preserving explicit overrides and the immutable build contract.

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

Current main's ordinary-update environment lacks the default required by the build planner, establishing the unwanted full-build selection; this read-only review ran no target code.

Is this the best way to solve the issue?

The scoped environment default is the smallest complete repair using existing owners, and avoids undoing the intentional immutable declaration requirement.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Ordinary Git-update environment keeps the original intent (b029a95: Avoid declaration-build timeouts during development updates through the existing update build environment.)
  • Shared preflight and immutable build selection keeps the original intent (fix: immutable update preparation fails without SDK declarations #175087: Immutable generation verification requires public SDK declarations, so the shared update marker must not implicitly select a runtime-only build.)
  • Candidate environment and integration regression keeps the original intent (e618faf: Bind build and exposure resolution to the admitted candidate rather than the serving checkout while preserving the parent environment.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b029a95 adds src/infra/update-runner-git-commands.ts:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b029a959dbf7; files: src/infra/update-runner-git-commands.ts)
  • Vincent Koc: Raw commit 6e5c355 adds src/infra/update-runner-git-commands.ts:47 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6e5c3555c2e3; files: src/infra/update-runner-git-commands.ts)
  • Vitor Cepeda Lopes: Raw commit e618faf adds src/infra/update-runner-git-commands.ts:96 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e618fafd4777; files: src/infra/update-runner-git-commands.ts)

PR surface

Source +8, Tests +6, Other +2. Total +16 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 10 2 +8
Tests 1 46 40 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 1 +2
Total 5 59 43 +16

Review metrics

Metric Value Why it matters
Build-stage selection Ordinary default: 17 → 13 stages; declaration/SDK-only stages: 4 → 0 The PR reports five interleaved planner samples; explicit full-build and immutable defaults retain all four stages, establishing reduced work without a latency claim.

Labels

Label changes:

  • add P2: Unnecessary declaration work affects the advanced source-update workflow and contributes to a reported bounded update failure.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Unnecessary declaration work affects the advanced source-update workflow and contributes to a reported bounded update failure.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach the redacted Windows installed-CLI acceptance results identified in the proof assessment.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 11:21 AM ET / 15:21 UTC.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: M and removed size: S labels Oct 31, 2026
@vincentkoc vincentkoc changed the title fix(update): source updates build unnecessary declarations fix(update): Git updates overbuild and cannot repair interrupted conversion Oct 31, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@vincentkoc
vincentkoc merged commit 6df00ff into main Oct 31, 2026
152 checks passed
@vincentkoc
vincentkoc deleted the fix/windows-dev-update-budget-20261031 branch October 31, 2026 18:24
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…ersion (openclaw#189463)

* fix(update): skip declaration builds for ordinary Git updates

* fix(update): reconcile existing build flag inventory

* fix(update): repair interrupted npm-to-Git plugin recovery

Fixes openclaw#189585
RomneyDa added a commit that referenced this pull request Nov 18, 2026
Default the existing build flag for Git updates while preserving explicit
values and immutable release build policy. Omit the unrelated interrupted
conversion recovery changes from the source commit.

(cherry picked from commit 6df00ff)

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

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M 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.

Interrupted package-to-Git updates cannot repair plugin cohort ownership Git updates run declaration builds despite runtime-only default

1 participant