Skip to content

fix(release): package Windows helper for managed recovery - #187470

Merged
RomneyDa merged 2 commits into
release/2026.10.10from
beta5/windows-helper-20261029
Oct 29, 2026
Merged

RomneyDa merged 2 commits into
release/2026.10.10from
beta5/windows-helper-20261029

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Include the pinned fs-safe Windows helper in both production recovery bundles; preserve metadata-only transforms and compiler input/output capture.
  • Stage the helper privately for managed Windows handoff, retain missing-asset package checks, and select the existing managed-handoff regression for Windows CI.
  • Narrow release adaptation of the upstream repair (fix(update): keep Windows recovery helpers self-contained #174463), preserving the current Zod security/dependency and filesystem fixes.

Review and validation

  • Independent scoped review completed. Its planner finding is fixed with the minimal exclusive <430 bound for the observed 428→429-second prediction; no timeout, planner budget or waiver changes.
  • Current-base full owner suites: 237 passed, 5 existing platform-conditioned skips across 9 files. Duplicate reporter summaries are excluded.
  • Applicable typechecks, scoped lint/format, package-patch/security regressions and Git integrity checks passed.
  • Both recovery bundles emit the exact fs-safe 0.26.5 helper (43,832 bytes); metadata/input capture, missing-asset negatives, tar roundtrip and npm inventory checks passed.
  • Parent independently verified 268,181 custody entries and 2,811 auxiliary records with zero errors; seven implementation paths are byte-identical to the reviewed repair, with only the requested planner correction changed.

Scope and limits

Linux-local evidence, not native Windows or FreeBSD execution. The package inventory is a lifecycle-disabled dry-run; full combined candidate CI and exact Q=C release qualification remain required. This PR excludes the SQLite repair #187467 and the separately owned #181927. No release publication or qualification is claimed.

Follow-up CI repairs (5ea9858)

  • Complete worker helper emission, generator input, archive/manifest/hash and relocation closure using main fix(workers): ship Windows permission helper in portable archives #174362 plus the shared fix(update): keep Windows recovery helpers self-contained #174463 helper.
  • Align Feishu HTTP cancellation, Codex policy-handshake/config expectations, and Memory selected-store fixtures without removing assertions or policy-denial cases. Independent narrative P0–P2 reviews found no introduced source defects.
  • Fixture evidence: 213 case executions across 16 files per Node and pinned Bun. Worker evidence: 271 passed / 1 failed; recovery 154 passed / 5 platform skips; downstream 15 passed / 1 opt-in skip.
  • Remaining local P1: relocated SQLite authorization aborts on Linux Node 26.12.1 (status 134), also reproduced before this repair. It is under diagnosis, NOT waived and NOT counted as a pass. No native Windows execution or final release qualification claimed.
  • Fresh hosted validation is required on this new exact head. Historical failures and seals retained.

Backport the reviewed helper emission and private staging repair. Tighten the planner guard to its demonstrated 429-second maximum without changing CI timeouts.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review October 29, 2026 07:38
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Oct 29, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR packages fs-safe’s Windows executable with recovery bundles and privately stages it for managed Windows handoffs.

Example: A Windows managed update replaces the original installation.

  • Before: The relocated recovery runtime lacks its adjacent windows-security-helper.exe.
  • After: The runtime retains the pinned executable in its private staging directory.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful canonical repair, but the incomplete checker cutover causes a confirmed packaging regression.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored backport is outside the external-contributor proof gate; its reported Linux packaging checks support asset emission, while linked upstream Windows lease and published-driver runs provide historical context rather than current-candidate qualification.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Managed Windows recovery loses a required executable when the original installation is replaced.
Reason: The maintainer-authored backport restores an existing recovery contract using the already merged implementation.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this useful maintainer-authored release backport open, but fix the shared package-checker regression that rejects the release branch’s worker bundles.

Priority: P2
Reviewed head: 9a78e35c624536861cad0f5339fda188a104b22c

Before merge

  • Account for worker bundles before validating executable URL edges (P1) - Adding exe here changes validation for every packaged graph, including the unchanged release worker build. That build bundles references to windows-security-helper.exe but neither emits the executable nor includes it in its archive inventory. Current-head CI confirms four new missing-file errors in worker-deploy-build-plugin.test.ts:423, including the GitHub launcher and SQLite worker. The recovery emitter writes dist/windows-security-helper.exe, which cannot satisfy references under dist/worker/. Keep the new checks scoped to the repaired recovery outputs, or include the complete worker asset prerequisite before enabling them globally.

Findings

  • [P1] Account for worker bundles before validating executable URL edges — scripts/lib/package-dist-imports.mjs:14-15

Tests

  • Missing end-to-end proof: No native Windows handoff or latest-stable upgrade run is supplied for this release candidate; upstream runs exercise different candidates, and the added regression’s base failure is not demonstrated.
Agent review details

How this fits together

The build produces sealed recovery bundles from OpenClaw and fs-safe; managed handoff stages their runtime assets before installation replacement and registers them for existing cleanup.

flowchart LR
  A[Pinned fs-safe package] --> B[Recovery build]
  B --> C[Packaged recovery bundles]
  C --> D[Private handoff staging]
  D --> E[Windows ACL helper]
  D --> F[Existing sensitive file cleanup]
Loading

Technical review

Best possible solution:

Preserve the recovery asset repair while limiting new executable checks to the repaired recovery outputs until worker asset custody is backported separately.

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

Source shows the release branch omits the recovery executable, and current-head CI independently demonstrates the introduced worker-validation failure; no target code was executed during this review.

Is this the best way to solve the issue?

The canonical asset producer and existing staging owner are appropriate, but widening the shared checker requires accounting for worker graphs that this backport leaves unchanged.

Full review comments:

  • [P1] Account for worker bundles before validating executable URL edges — scripts/lib/package-dist-imports.mjs:14-15
    Adding exe here changes validation for every packaged graph, including the unchanged release worker build. That build bundles references to windows-security-helper.exe but neither emits the executable nor includes it in its archive inventory. Current-head CI confirms four new missing-file errors in worker-deploy-build-plugin.test.ts:423, including the GitHub launcher and SQLite worker. The recovery emitter writes dist/windows-security-helper.exe, which cannot satisfy references under dist/worker/. Keep the new checks scoped to the repaired recovery outputs, or include the complete worker asset prerequisite before enabling them globally.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Recovery build and private staging keeps the original intent (e07af71: Keep the installation-owned recovery runtime available after package replacement, with cleanup owned by the handoff caller.)
  • Package import scanning changes intended behavior with a stated reason (a127183: Track JavaScript dependencies expressed through import.meta.url while excluding other asset extensions.)
  • Invocation compiler keeps the original intent (b107d4a: Compile sealed recovery runtimes with invocation-owned loader boundaries and captured build inputs and outputs.)
  • Windows planner assertion keeps the original intent (041e65b: Permit the demonstrated small inventory-driven prediction increase without changing execution timeouts or scheduling.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/worker-deploy-build-plugin.test.ts --maxWorkers=1
  • pnpm test test/scripts/managed-handoff-build-config.test.ts --maxWorkers=1
  • pnpm test test/scripts/ci-windows-test-plan.test.ts --maxWorkers=1
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b107d4a adds scripts/lib/managed-handoff-build-config.mts:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b107d4af14d7; files: scripts/lib/managed-handoff-build-config.mts)

PR surface

Source +11, Tests +106, Config 0, Other +66. Total +183 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 12 1 +11
Tests 2 112 6 +106
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 4 70 4 +66
Total 8 195 12 +183

Root-cause cluster

Relationship: same_root_cause
Canonical: #174463
Summary: This is a release-branch adaptation of the merged main repair, so the upstream merge does not make the backport redundant.

Members:

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

Labels

Label changes:

  • add P2: This is a focused release-branch recovery repair with a concrete packaging-validation blocker.
  • add merge-risk: 🚨 automation: The shared checker change demonstrably turns the existing worker package-closure regression red on the reviewed head.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a focused release-branch recovery repair with a concrete packaging-validation blocker.
  • merge-risk: 🚨 automation: The shared checker change demonstrably turns the existing worker package-closure regression red on the reviewed head.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 29, 2026, 3:55 AM ET / 07:55 UTC.

Preserve executable archive closure and exact policy and visibility assertions. Local relocated authorization still aborts on Node 26; retained as an unresolved validation failure, not waived.

Co-authored-by: RomneyDa <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime extensions: memory-core Extension: memory-core channel: feishu Channel integration: feishu extensions: codex size: L and removed size: M labels Oct 29, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Release-owner CI classification for head 5ea9858 (2026.10.10-beta.5):

  • checks-node-changed-13 (qa-lab agent-session-dedup-reconnect e2e, 120s timeout): flake. Passed on rerun (attempt 2, job 123339182711). This PR doesn't touch that file.
  • checks-node-changed-extensions-bundle-10: run-attempt-one-shot-cleanup.test.ts › "uses host-owned tools for strict one-shot Codex runs". Its first waitForHarnessRequest("thread/start") has a 5s budget, and only initialize/initialized arrived in time. The test took 13.2s in CI, versus 4.0s on the prior head 9a78e35 where it passed in the same shard. The file and the code under test are unchanged by this PR. The only difference: sibling run-attempt-thread-cleanup now passes and runs alongside it in shard 48, adding load. Local runs on this exact head: 10/10 on Node 24.22.1 and on Node 26.12.1 (3 runs each), and the full shard-48 six-file set 78/78 on both Nodes. Classified as a load-sensitive test timeout, not a regression from this PR. Attempt-2 rerun hit a GitHub ghost job (queued with no runner after the run completed). Attempt 3 reproduced the timeout.
  • openclaw/ci-gate: aggregate of the above.

Merging for the beta.5 candidate. The hosted FRV on the merged candidate is the qualifying evidence.

@RomneyDa
RomneyDa merged commit f488276 into release/2026.10.10 Oct 29, 2026
655 of 663 checks passed
@RomneyDa
RomneyDa deleted the beta5/windows-helper-20261029 branch October 29, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu extensions: codex extensions: memory-core Extension: memory-core gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants