Skip to content

fix(update): preserve local package overrides - #89985

Merged
fuller-stack-dev merged 143 commits into
openclaw:mainfrom
fuller-stack-dev:codex/update-local-overrides
Sep 11, 2026
Merged

fuller-stack-dev merged 143 commits into
openclaw:mainfrom
fuller-stack-dev:codex/update-local-overrides

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

A packaged OpenClaw update replaces dist, losing operator-maintained local files and edits. A successful update then retires its previous-package backup. This also loses edits made while the replacement package is being installed.

Why This Change Was Made

Preserve local packaged overrides at the existing package-swap boundary, after service drain and the old-tree move. Save recovery material before retiring the old generation, and replay only into the private candidate when the operator explicitly passes --reapply-local-overrides.

The updated implementation follows the current retained-transaction owners rather than restoring the deleted global updater. It adds content hashes to the existing packaged inventory contract and validates them in the updater and tarball checker. No historical release allowlist, dependency patch, new state schema, or service-custody implementation is introduced.

User Impact

  • Default updates preserve local dist changes and report the named recovery bundle; they do not automatically execute local code.
  • Explicit replay requires matching upstream baselines and actual target bytes. Conflicts preserve the entire override set for manual recovery. Unsafe topology is refused; hardlinked replay targets are not modified.
  • Capture includes edits made during package staging. Unchanged, hash-inventoried packages do not create unnecessary override bundles.
  • Released packages without content hashes remain supported: regular dist payloads are preserved for manual inspection, without guessing which bytes are local. Inventory metadata and dependency trees are excluded.
  • Existing rollback, ownership, configuration, and schema checks remain authoritative. A changed retained fingerprint can still refuse rollback; the override bundle and retained package remain available.
  • The updater already running must contain this feature. Back up edits before the first upgrade from an older updater. Git checkout behavior is unchanged.

This is a refresh of the same PR. Container guidance and service-custody work remain with their separate owners.

Maintainer disposition: accepted. This refresh retains automatic preservation and explicit trusted-code replay. The documented legacy-copy disk cost/manual retention, unsupported-topology refusals, and absence of cross-release local-code compatibility guarantees are accepted parts of that scope. The first-hop manual backup requirement remains. No runtime database/configuration schema or new durable state owner is introduced.

Evidence

  • Independently reproduced on main f551ccc6fcf499e5d7711d91aa80cb053b6443d9: a real disposable npm update loses a modified executable, an existing local addition, and a late addition, then retires the backup.

  • Repaired real-npm matrix: 9/9 cases passed, covering late replay, preservation without replay, unchanged packages, filename-only legacy artifacts, upstream conflicts, unsafe topology, install failure, Doctor failure, and refusal to roll back over later edits.

  • Real pnpm 12.3.4 native-project update from a disposable 2026.9.3 package to 2026.9.4 replayed both early and late additions. Installed bytes were read back and the installed fixture CLI executed successfully.

  • Frozen CLI and existing package-update suites passed 570 tests, including the source-freshness check. Focused inventory, replay mode, mutation-boundary, retained-swap, and detached-handoff coverage also passed. Public CLI routing carries explicit consent and refuses the flag on unrelated update subcommands.

  • The current validator accepted the published [email protected] tarball, SHA-256 4f1f656770461d4677dea755b1899cba12b912b06798c89a59e2f0c18688b761, without a historical exception.

  • Fresh independent review of the frozen candidate reported no P0 findings. This is supporting review evidence, not a claim that lower-priority review or required CI is unnecessary.

  • Exact-head canonical artifact at 7f1860a452c73faa9f6fc6d8adfa7a2d6aae0779 passed the complete build, bootstrap/UI checks, bundled dependency validation and dist import-graph checks. Tarball SHA-256 46c190219d2e81c98d655f95786133477f66d8f0eb28b488ea27f9d4c8564a39. The actual tarball checker rejected both a tampered JavaScript payload and missing advertised content metadata. The packed build-info identifies this exact head.

  • Core, core-test, and packaging-script typechecks, typed lint, and staged size/environment ratchets passed.

  • Review follow-up: atomic publication/restoration now uses the pinned dependency's public rename-noreplace primitive. Real final-rename fault injection reproduced clobbering before repair; after repair, competing destinations survive both paths, and post-rename sync failures restore upstream bytes. Four committed regressions cover these cases. No dependency patch was needed.

  • Follow-up verification passed 101 targeted tests (including 9 real npm updates and 4 final-rename/sync-failure regressions), plus 63 packaging contract tests. Three Windows-only packaging cases were skipped locally and remain covered by required CI. Strict types and typed lint passed.

  • Static-contract and inventory fixture CI findings were repaired without changing any guard or baseline.

  • Refreshed head: 7f1860a452c73faa9f6fc6d8adfa7a2d6aae0779. Exact-head CI and the native preparation/merge gates remain required before landing. Local executable proof used isolated temporary packages and state on macOS; no operator fleet, installed service, or global configuration was changed.

  • Installed self-update follow-up: reproduced the helper import failure while the updater and actual fs-safe/native dependencies lived inside the package being renamed. Resolve module realpaths before service drain, then relocate only the dependency paths covered by the complete package/project move into the retained backup. External stores keep their original paths. Publication and restoration use those same prepared URLs.

  • Two committed installed-updater regressions now pass: late-edit replay and rollback after Doctor failure. The complete follow-up run passed 76 tests, including the nine real-npm scenarios, four atomic race/sync regressions, and native staging/transaction coverage. Core and core-test types, scoped typed lint, export/assertion checks, and size/environment ratchets passed.

  • Real pnpm 12.3.4 self-update also passed with the full update owner and fs-safe/native dependency loaded from inside the old installed package. Both early and late additions survived in the new native package group; installed bytes were read back and its fixture CLI executed successfully.

  • Current-main integration: independently reviewed the newly landed baseline-timeout recovery owner at f50d4ce71e3eee4005f297f05caa402f8a571fca. The clean combined tree passed 69 tests: 18 bounds/timeout cases (including replay after timeout and rollback afterward), 40 CLI reporting/admission cases, and 11 real-npm/installed-updater E2E cases.

  • The combined tree exceeded the swap file's line budget. Extracted only the PR-owned preparation/capture/replay sequence into package-update-local-overrides.ts, and moved the unchanged input type to the existing swap contract module. The exact extracted merge tree passed all 69 tests again, typed lint and the unchanged line/environment ratchets. No rebase or mainline policy changes were needed.

  • Release-closeout integration: main c677baebc93f4de4ed323580fda0f85895512a3d subsequently changed unconfigured-install finalization and absent-service admission. Reviewed those changes and ran the affected suites on the clean combined tree 6eba65e825b6d0fb22ee84060e50c1c0ab1c3ff6: 58/58 tests passed, including the source-freshness check. No PR-head change or sibling work was imported.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes scripts Repository scripts size: XL triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 3, 2026
@clawsweeper

clawsweeper Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 6:58 AM ET / 10:58 UTC (Revision 34).

ClawSweeper review

What this changes

Package updates preserve locally edited distribution files in recovery bundles and add an explicit option to replay them when upstream baselines match.

Merge readiness

⛔ Blocked before merge - 2 items remain

This PR remains useful: current main lacks the preservation behavior, both earlier code findings are repaired, and the latest maintainer disposition resolves the previous acceptance checklist. No new actionable defect was found.

Priority: P2
Reviewed head: 7f1860a452c73faa9f6fc6d8adfa7a2d6aae0779

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, well-supported implementation with repaired prior findings and explicitly accepted operational tradeoffs.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Recorded disposable macOS npm/pnpm updates exercise the production update/swap owners with dependencies inside the replaced installation, demonstrating late-edit preservation, installed-byte readback, executable output, and Doctor rollback; final-rename fault injection covers publication and restoration collisions.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Recorded disposable macOS npm/pnpm updates exercise the production update/swap owners with dependencies inside the replaced installation, demonstrating late-edit preservation, installed-byte readback, executable output, and Doctor rollback; final-rename fault injection covers publication and restoration collisions.
Evidence reviewed 8 items Current-main necessity: The current-main swap owner retains and retires package backups but has no local-override capture or replay integration. The PR adds that integration to the existing swap boundary.
Latest release boundary: The v2026.9.4 CLI option contract does not include the replay option. No merged replacement was established; the supplied related cherry-pick #94077 is closed unmerged.
Capture and replay ownership: Preparation validates topology and resolves replay dependencies before drain; the returned operation captures the retained package and applies only to the staged candidate after rollback registration.
Findings None None.
Security None None.

How this fits together

The package updater stages and validates a replacement installation before swapping it into service. This change captures local files from the retained old package and optionally restores trusted edits into the private candidate.

flowchart TD
  A[Installed package and local edits] --> B[Stage and validate replacement]
  B --> C[Drain service and retain old package]
  C --> D[Capture recovery bundle]
  D --> E{Replay requested and baselines match?}
  E -->|Yes| F[Replay into private candidate]
  E -->|No| G[Keep bundle for manual recovery]
  F --> H[Activate and verify package]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - Accepted operational tradeoffs remain installation-dependent: legacy recovery copies need extra disk space and manual cleanup, unsupported filesystem entries can stop updates, and explicitly replayed local code may be incompatible despite matching file baselines.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +1835, Tests +1648, Docs +44, Other +97. Total +3624 across 37 files.

View PR surface stats
Area Files Added Removed Net
Source 18 1855 20 +1835
Tests 14 1657 9 +1648
Docs 2 44 0 +44
Config 0 0 0 0
Generated 0 0 0 0
Other 3 99 2 +97
Total 37 3655 31 +3624

Review metrics

Metric Value Why it matters
Operator control 1 new opt-in CLI flag Automatic preservation and trusted-code execution remain separate operator choices.
Implementation and regression coverage Production/tooling net +1,932 lines; tests/support net +1,648 lines The stated growth supports capture, whole-set conflict checks, atomic publication, and installed-updater recovery coverage.

Stored data model

Persistent data-model change detected: serialized state: scripts/check-openclaw-package-tarball.mts, unknown-data-model-change: scripts/check-openclaw-package-tarball.mts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #89985
Summary: The related submission explicitly cherry-picked this work and closed without merging; it does not supersede this implementation.

Members:

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

Merge-risk options

Maintainer options:

  1. Retain the accepted operational contract (recommended)
    Proceed under the recorded acceptance of manual recovery retention, topology refusals, and explicit trusted-code replay without reopening those settled choices.

Technical review

Best possible solution:

Retain the accepted preserve-by-default, explicit-replay design within the existing package transaction, including its documented upgrade limits and recovery bundles.

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

Not applicable as a new preservation/replay capability; the supplied real npm/pnpm evidence demonstrates the motivating loss and repaired behavior, but this read-only review did not execute updates.

Is this the best way to solve the issue?

Yes. The patch extends the existing swap owner, preserves legacy artifacts without guessing baselines, and separates automatic preservation from explicitly consented replay.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded updater improvement for installations with locally modified package files.
  • merge-risk: 🚨 compatibility: Default recovery copying and filesystem refusals change update requirements, while opt-in replay retains operator-owned compatibility risk.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Recorded disposable macOS npm/pnpm updates exercise the production update/swap owners with dependencies inside the replaced installation, demonstrating late-edit preservation, installed-byte readback, executable output, and Doctor rollback; final-rename fault injection covers publication and restoration collisions.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded disposable macOS npm/pnpm updates exercise the production update/swap owners with dependencies inside the replaced installation, demonstrating late-edit preservation, installed-byte readback, executable output, and Doctor rollback; final-rename fault injection covers publication and restoration collisions.

Evidence

What I checked:

  • Current-main necessity: The current-main swap owner retains and retires package backups but has no local-override capture or replay integration. The PR adds that integration to the existing swap boundary. (src/infra/package-update-swap.ts, 227e7ae26af4)
  • Latest release boundary: The v2026.9.4 CLI option contract does not include the replay option. No merged replacement was established; the supplied related cherry-pick fix(update): preserve local package overrides #94077 is closed unmerged. (src/cli/update-option-specs.ts:1, 3a9d69db306c)
  • Capture and replay ownership: Preparation validates topology and resolves replay dependencies before drain; the returned operation captures the retained package and applies only to the staged candidate after rollback registration. (src/infra/package-update-local-overrides.ts:30, 7f1860a452c7)
  • Prior findings resolved: Publication and restoration use publishFileExclusive with rename-noreplace and register completed moves even after a subsequent sync failure. Dependency realpaths are prepared before the installed tree moves and relocated only within the retained package/project. The committed publication and installed-updater regressions exercise both earlier failures. (src/infra/package-local-overrides.ts:49, 7f1860a452c7)
  • Pinned dependency contract inspected: The PR directly imports fs-safe durability APIs, establishing the dependency signal. npm metadata identifies openclaw/fs-safe as the repository for version 0.8.5. Its published implementation uses native renameNoReplace, preserves the renamed target after post-publication failures, and exposes targetCreated in the failure receipt; this matches the repaired caller. No dependency source commit was supplied by npm metadata. (dist/publish-file.js)
  • Real update and artifact evidence: The captured body and fix(update): preserve local package overrides #89985 (comment) report real npm/pnpm updates with installed-byte readback, executed fixture CLI output, late-edit preservation, and Doctor rollback. The exact-head artifact disposition at fix(update): preserve local package overrides #89985 (comment) records tarball SHA-256 46c190219d2e81c98d655f95786133477f66d8f0eb28b488ea27f9d4c8564a39, tampered-payload and missing-metadata rejection, and acceptance of the published filename-only v2026.9.4 artifact. The inspected E2E source reaches the production package-update and swap owners. (src/infra/package-update-self-replay.e2e.test.ts:45, 7f1860a452c7)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (33 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-15T07:28:32.260Z sha 66944c1 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-15T08:44:22.168Z sha 66944c1 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T10:45:24.861Z sha 5071d5c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T22:28:57.866Z sha 5071d5c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T10:04:33.161Z sha 4b12865 :: blocked before merge. :: [P2] Use an atomic no-replace operation for replay publication
  • reviewed 2026-09-11T10:24:47.272Z sha 8e6a8b9 :: blocked before merge. :: [P2] Keep replay dependencies available after moving the installed package
  • reviewed 2026-09-11T10:39:15.660Z sha c771f2d :: blocked before merge. :: none
  • reviewed 2026-09-11T10:49:54.604Z sha 7f1860a :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. 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. labels Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label Jun 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. proof: supplied External PR includes structured after-fix real behavior proof. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 3, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the codex/update-local-overrides branch from 4f1fef0 to d694e2b Compare June 3, 2026 20:26
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 3, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the codex/update-local-overrides branch from d694e2b to ecaa970 Compare June 3, 2026 22:44
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 3, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 3, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the codex/update-local-overrides branch from 6717762 to b7c8cdd Compare June 3, 2026 23:13
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 3, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Maintenance repair is pushed at exact head 5071d5ccd83627ccab24184df391dcc4ef376b42.

The merge tree is clean against current main (2b405755b1bcb48bdecd713ecc16f0afb73291df). The automatic ClawSweeper review is already running for this exact head, so no duplicate re-review was requested.

@clawsweeper

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

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Repair published at 8e6a8b9c8629bc1b320bfc278f4a3ce378960b5e.

The final-rename finding was valid. I reproduced both failures against the prior head: a destination created immediately before publication was overwritten and replay reported success; restoration also overwrote a concurrently created destination.

The repair uses the pinned dependency's existing public publishFileExclusive({ strategy: "rename-noreplace" }) API, not Root.move. No dependency patch was needed. The child reports successful movement even when the dependency subsequently reports a verification/sync failure, so the parent registers rollback before propagating that failure. The committed package-local-overrides.publication.test.ts calls the real rename primitives with isolated fault injection:

  • Concurrent destinations survive publication and restoration.
  • A concurrent source that cannot be restored remains available for recovery.
  • Failures after retaining the original or publishing the replacement restore the original package bytes.

Verification: 101 targeted tests passed, including all nine real-npm update scenarios and four publication/recovery regressions; the four regressions passed again after the final callback lint fix. The packaging contract suite passed 63 tests with three Windows-only cases skipped locally. Core/core-test types, typed owner lint, export/assertion/deadcode guards passed. Inventory fixture expectations now reflect the advertised content metadata; frozen filename-only fixtures remain unchanged. Guards and baselines were not weakened.

Product direction: preservation plus explicit trusted-code replay is the accepted scope for this refresh. The documented refusals and manual recovery retention are intentional. Matching file baselines is not a promise that local code works with every new release. Legacy full-dist recovery copies need disk space and manual cleanup; unsupported entries must be repaired before retrying. The first upgrade from an updater without this feature still requires a manual backup.

Data compatibility: this extends package-artifact integrity metadata and named recovery backups, not a runtime database/configuration schema or a new durable state owner. The actual published [email protected] filename-only artifact was accepted without a historical exception; the real-npm legacy scenario preserves its regular dist payload without replay. Hash-enabled artifacts reject tampered bytes or missing advertised metadata.

The canonical package rebuild for this exact head is running. Earlier canonical tarball checks are supporting evidence, not an exact-head artifact stamp; I will add the new digest once the build and integrity checks finish.

Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/34588506381 . Native preparation and landing remain gated on current review and CI; no auto-merge is armed.

The automatic exact-head ClawSweeper review is already running: https://github.com/openclaw/clawsweeper/actions/runs/34588634221 . No duplicate re-review request is being made.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Installed-runtime repair is published at c771f2d16118a7781e6261efcd2514b0d6dacd2f.

The late dependency-lifetime finding was valid. A new regression executes the production swap owner from inside the package being replaced, with the actual fs-safe JavaScript and native dependency copied inside that installation. At the previous head, both cases failed after the live package moved: replay applied zero changes and retained the backup.

The repair resolves dependency realpaths before service drain and uses the existing runtime-relocation owner to map only paths inside the moved package/project to its retained backup. External dependency stores retain their original paths. The exact prepared URLs are used throughout publication and restoration; the helper does not resolve from the missing live tree or the new candidate.

Verification:

  • 76 follow-up tests passed: 65 replay/native-transaction tests plus 11 E2E cases, including all nine real-npm cases and the two new installed-updater cases (late replay and Doctor rollback).
  • A real pnpm 12.3.4 update ran the full update owner from the old installed package with fs-safe/native dependencies inside it. Both early and late additions survived into pnpm's new package group; installed bytes were read back and the fixture CLI executed successfully.
  • Core/core-test types, scoped typed lint, export/assertion checks and size/environment ratchets passed. No guard or baseline was changed.

Maintainer disposition: accepted. Preserve local packaged changes by default and retain explicit, operator-consented trusted-code replay. The documented legacy-copy disk cost/manual retention, unsupported-topology refusals, first-hop manual backup requirement, and lack of cross-release compatibility guarantees for local code are accepted parts of this scope. This is not an unresolved product decision for this refresh. The artifact-format compatibility evidence remains in the PR body; there is no new runtime database/configuration schema or durable state owner.

The exact-head canonical rebuild, automatic CI and fresh review remain landing gates. No auto-merge is armed, and no duplicate review or CI dispatch is being requested.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Final artifact and review disposition for 7f1860a452c73faa9f6fc6d8adfa7a2d6aae0779.

The canonical package build passed, including bootstrap/UI checks, bundled dependency validation and dist import-graph checks. The packed dist/build-info.json identifies this exact head. Tarball SHA-256: 46c190219d2e81c98d655f95786133477f66d8f0eb28b488ea27f9d4c8564a39.

Actual artifact controls passed:

  • The generated content-hash inventory validates successfully.
  • Appending bytes to an inventoried JavaScript payload is rejected as an invalid package dist content inventory.
  • Removing advertised content metadata is rejected.
  • The published [email protected] filename-only artifact remains accepted without a historical exception. Its SHA-256 is 4f1f656770461d4677dea755b1899cba12b912b06798c89a59e2f0c18688b761. The real npm legacy-update scenario preserves regular payloads for manual recovery without guessing a replay baseline.

Maintainer disposition for the three remaining checklist items in ClawSweeper revision 33:

  1. Accepted: legacy recovery copies consume disk and require manual retention; unsupported filesystem topology can refuse an update. The docs describe those limits.
  2. Accepted: matching upstream bytes are a replay precondition, not a guarantee that operator code works on another release. Replay remains explicit trusted-code execution via --reapply-local-overrides.
  3. Artifact upgrade compatibility is proved above. This PR does not add a runtime database/configuration migration or a new durable state owner. Older filename-only artifacts retain their manual-recovery contract; advertised new metadata is mandatory and validated.

Revision 33 reviewed this exact head, found no actionable code defects, and rated the real-update proof sufficient. The installed npm/pnpm, late-edit, unsafe-topology, atomic-race and Doctor-rollback proof remains recorded in the earlier evidence.

I also reviewed the newer release-closeout main c677baebc93f4de4ed323580fda0f85895512a3d. Its unconfigured-install finalization and absent-service admission changes passed all 58 affected tests on the clean combined tree 6eba65e825b6d0fb22ee84060e50c1c0ab1c3ff6, with source freshness verified. The earlier combined timeout/replay matrix passed 69 tests.

Exact-head CI is still running. Two failures outside the changed updater are under bounded retry diagnosis: iMessage self-chat and the shutdown fixture's ps timeout. Both exact tests passed on the prior head, and the iMessage suite independently passed all 43 cases locally. No unrelated source or guard changes are being made. Native preparation and merge will still verify the final CI result.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

2 participants