Repository navigation
fix: preserve external plugin data during update rehearsal - #196301
Conversation
Materialize eligible inventoried data aliases at their logical package filenames using the guarded copier. Retain complete inventory for missing dependency repair without overwriting existing private data. Add an exact 416-line functional-test allocation for producer and real Doctor regressions, guarded-copy mutation and isolation, native identity and missing-file repair. Keep shared baselines and runtime budgets unchanged. Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR copies eligible external plugin data aliases into independent private files during update rehearsal. Example: A plugin reads config.txt through a symlink to an external asset package.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a current plugin rehearsal defect, and no actionable production findings were identified; it remains draft. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe updater inventories installed plugin trees and projects them into disposable state consumed by candidate Doctor and plugin generation loading. flowchart LR
A[Installed plugins and assets] --> B[Plugin tree inventory]
B --> C[Eligible asset selection]
C --> D[Guarded private copier]
D --> E[Candidate Doctor]
D --> F[Plugin generation loading]
Technical reviewBest possible solution: Normalize eligible data aliases through the existing guarded producer copier while preserving missing-only repair and source isolation. Do we have a high-confidence way to reproduce the issue? Current-main source preserves external data aliases as links, and the added Doctor regressions exercise the reported reads; the author reports base ENOENT failures, but no target code was run during this review. Is this the best way to solve the issue? The patch fixes representation at its producer, reuses guarded copying, and shares selection across accounting and repair without adding consumer exceptions or persistent state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 54e0bc0c2132. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +97, Tests +416, Docs +34, Other +4. Total +551 across 10 files. Added test files: 3. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 9, 2026, 8:49 PM ET / November 10, 2026, 01:49 UTC (Revision 2). |
Avoid filesystem discovery-order dependence in the data normalization eligibility matrix while retaining dangling and unowned asset coverage. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Proof and current review statusMarked ready for review at the maintainer’s request. This is not a claim of green CI or merge readiness. Passed
Still red / unresolved
No merge or release action is authorized or performed by marking this PR ready for review. |
…196301) * fix: preserve external plugin data during update rehearsal Materialize eligible inventoried data aliases at their logical package filenames using the guarded copier. Retain complete inventory for missing dependency repair without overwriting existing private data. Add an exact 416-line functional-test allocation for producer and real Doctor regressions, guarded-copy mutation and isolation, native identity and missing-file repair. Keep shared baselines and runtime budgets unchanged. Co-authored-by: RomneyDa <[email protected]> * test: select acquired asset owner explicitly Avoid filesystem discovery-order dependence in the data normalization eligibility matrix while retaining dangling and unowned asset coverage. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit a15f737) Backport to beta3: retain the existing synchronous source inspector and Doctor registry owner. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit bfe8603e32a75bee9421b9c2568da83de4ba170b)
Adapt upstream source 625945b to the beta3 runtime owners. Keep synchronous SDK compatibility while deferring tool, model, plugin, process and state-handler initialization. Integrate on 67cc5d9, preserving #195398, #196301, #196386, #196387, #189991 and #196448. Three automatically merged overlaps retain canonical assertion/mock baseline removals and worker-turn input gating; no new behavioral adaptation. Original source reviews and focused build/test evidence are retained. Fresh integration-only independent review found no actionable issues. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…aw#194058) Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from openclaw#134490 and keeps the launch confirmation from openclaw#143139. Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base 18bee8e reports no agent found; published 2026.11.1 upgrades to the fix with settings intact. Co-authored-by: TorstenW <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: steipete <[email protected]> (cherry picked from commit 7c702c3) Release adaptation: Capture invoking operator env before candidate admission, forward to interactive triage only; preserve latest target selectors, confirmation and lease cleanup ordering. Exact three authorized production paths plus real lifecycle regression. Follow-up dispositions: ad4863d fix: preserve the running installation when an agent updates its Gateway (openclaw#201570); dc73ec0 fix: let updates finish when another tool briefly reads OpenClaw's databases (openclaw#202541); d07b530 fix: clarify PostgreSQL schema upgrades for Git installs (openclaw#202098); e60ea9f test(update): add a Git release upgrade-survivor scenario (openclaw#201956); 2ef6f7b fix(update): build and serve Git releases outside node_modules (openclaw#201917); dbc1aa0 fix: keep the openclaw command and Gateway working after updating a pnpm install (openclaw#201735); f5e7641 fix: Git checkout updates across a schema change no longer end as post-update-failed after the new release starts (openclaw#201600); 2183caf fix: Git checkout updates no longer fail before the new release starts on a schema change or a busy database (openclaw#201463); 47e8649 fix: explain why Doctor cannot restore a scheduled job’s account (openclaw#201550); 8f2cfd4 fix: remove updater-only restrictions from agent maintenance guidance; cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 24cb734 fix: keep carried-over scheduled jobs running after updates (openclaw#200653); d1276e1 feat(doctor): check OpenClaw ID member roles and honor an optional roles default (openclaw#197785); 0a39956 fix: finish updates when another tool reads OpenClaw's databases during the update (openclaw#201330); ea1c9d5 fix(update): settle remounted package publications before admission (openclaw#201336); 66b5212 fix(update): isolate malformed retained-install markers (openclaw#201199); 7e79c83 fix: let the next update finish a killed source checkout update (openclaw#201009); d905d8a fix: let the next update finish a killed update after the machine restarted (openclaw#200994); fdf0c95 fix: let the next update finish a killed update that had already installed the new version (openclaw#200866); 0c19bcd chore(release): close out 2026.11.5 on main (openclaw#200577); a1940e0 fix(matrix): keep explicit recovery available during deferred migration (openclaw#200805); 18b4776 improve: explain package baseline drift during updates (openclaw#200802); 1ad4cad fix(doctor): reclaim macOS updater runtimes blocked by non-updater processes (openclaw#200732); 427c857 fix: keep one missing archived transcript from blocking every update (openclaw#200733); 802e3f7 fix(update): keep valid cold archives from blocking updates (openclaw#200659); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); 3afe212 fix: let Doctor publish unchanged plugin migrations in any order (openclaw#200658); f65e4db fix(doctor): reclaim runtimes blocked by unrelated Linux processes (openclaw#200657); dab086c fix(update): let candidate Doctor read plugin dependencies from the staged package (openclaw#200595); 3447bee fix(update): keep updates going when the predecessor writes during its stop (openclaw#200569); 0ce9c77 fix: let the next update settle a package publication that a killed update left behind (openclaw#200550); ae31ea3 fix(update): repair handoffs in the journal-pinned lease store (openclaw#200532); 74020ea fix: continue updates when initial SQLite capture is stale (openclaw#200328); 6747b1e feat(update): run Git checkout installs from releases behind the release link (openclaw#199706); e3f8a67 fix(state): keep completed retained agent stores out of startup upgrade (openclaw#200284); 3c512c5 fix(gateway): move managed update lease operations off the main thread (openclaw#200169); ea69fcb chore(release): close out 2026.11.4 on main (openclaw#199956); 618bf31 fix(state): bound startup upgrade copies and pruning to owned state (openclaw#199929); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); 5dbf569 fix(update): plugin failures never fail an update or Gateway health; 764761e fix(update): refuse missing host prerequisites in one line and record a cause per attempt; 4c4fef4 fix(ui): update dialog claims installation before progress is confirmed (openclaw#199254); 136e1f6 fix(update): retrying an update from a dev checkout is refused after a killed update (openclaw#198673); 3bd03da fix(update): avoid duplicate database copies while the Gateway is stopped (openclaw#198148); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); e333f7e chore(ci): drop retired test-lines allocation records (3/3) (openclaw#197657); fd6fa47 fix: converge Gateway updates with environment-only service overrides (openclaw#196371); 7cf5e75 fix: clarify split-install updates and blocked Doctor repairs (openclaw#196342); 6ff8c86 fix(update): retain lazy sqlite catalog generation (openclaw#197095); 930e1f7 fix: keep stable updates and recovery free of premature migrations (openclaw#196474); a15f737 fix: preserve external plugin data during update rehearsal (openclaw#196301); 92798ae fix: updates survive interrupted heartbeat runs (openclaw#195656); c1e55e2 fix(update): restore LaunchAgent registration after repair contention (openclaw#195406); 715c610 fix(doctor): repair retained ISO session end timestamps (openclaw#194685); 689cfc8 fix(update): reclaim dead closing triage repair leases (openclaw#194503); 86bc89e fix(doctor): keep standing Codex parameter advice out of retirement blockers (openclaw#193650); 691bc8d fix(backup): read the backup engine without copying the live database (openclaw#194234); 000542f fix(backup): backups and updates fail on slow storage when a header probe batch misses its deadline (openclaw#194239); 31a65d5 fix(update): skip --no-lazy-fetch on Git versions without it (openclaw#194198); e45e99d fix(update): preserve dev update sources in tag-only Git clones (openclaw#193109) Validation: Baseline2 intended operator-agent failures/32 controls passed; candidate34/34passed (194058-green.log). Accept launches synthetic operator-only CLI with expected env, decline starts nothing. Isolated updater flow, not live systemd/upgrade qualification. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 6689fd575ada8fe40a9593784deac18ec73041cd) (cherry picked from commit 92e7a9fa223b0dc35801f25f70be90b472d9a6b7)
What Problem This Solves
Fixes update rehearsal failing to load an installed plugin when it reads ordinary data through a symlink to an already-acquired external package.
User Impact
Eligible plugin data stays available at its in-package filename during candidate Doctor and generation loading, without a settings migration or new environment variable. The updater performing projection must contain the fix; a newer target cannot repair an older projector.
Why This Change Was Made
Normalize data at the producer using its guarded copier instead of transporting exceptions through Doctor and runtime consumers. Missing-dependency repair keeps the full inventory without overwriting existing private bytes.
Eligibility is path/mode-based, not content classification: allowed data suffixes on alias and target, a non-executable regular target, and the nearest regular inventoried package manifest. Native/code suffixes, metadata, relocation-owned paths and other unsupported links retain existing handling. Symlink identity, shared writes and canonical-parent sibling lookup are not promised; mislabeled binary contents are not sniffed.
Review status
Ready for maintainer review, not green CI or merge approval. Marked ready for review at the maintainer's request on November 10, 2026, 03:09 UTC. Exact-head review covers
41ab12d31f05395cdc8eedb67b3954f5b959a293: no actionable findings, no before-merge contributor items, proof sufficient. No merge or release action is authorized by this status.Evidence
Hosted installed-updater proof
c0103664d08ba2dd2f4b957dcabb9e5b8d2dce8d.updater-installed-cq-42731653475-1, ID13726239863; summary SHA-256c7621a394cb5a798eb81fd64c772634d489032f05995fc4160d2f70ce99f0b35. Bounded export excludes private installations, databases and configs.package-under-test-42717541806-1, SHA-2568af1ea0fa5901638538863c602ae28674849322bd759ea80d936fe3c9824ac69, sourcedd6c99776b161d441cb827f78d2b031addce6648. Reused unchanged-behavior proof, not an exact-current-head package execution:dd6c997..41ab12dchanges only one fixture-root line insrc/infra/update-candidate-plugin-file-assets.test.ts. Production files and package/build inputs are identical.Current-head compatibility and baseline attribution
41ab12d31f05395cdc8eedb67b3954f5b959a293; current ten-file patch SHA-256f4ebb79bcdd7477c9f145b74e13df29f547dc7f29d21196701c24fe34fac5277; source manifest SHA-2568d0d7afb213570a936e4a041ab83af25ab1966a1017b374ae87c25a73477af24.874b4af7c81dbf6558b6628b271e687b522f238eaadd29da337a0d457551e42e. Package integrity, upgrade-survivor, and migrations from2026.10.8and published2026.11.2passed; npm12 tree budget and partial-previous recovery failed.bdce9c84ea551c28a89bfb6bddfd4edb31e58add, reproduces 50,622 entries against unchanged 47,500 acceptance / 50,000 runtime bounds, and unfinished recovery after completed activation-helper repair/retirement. Base job129547082482, current job129550967159; preservation checks passed beforehand. This is baseline attribution, not green acceptance. Exported records do not identify the precise unfinished checkpoint field.Bounded hosted replay results — November 10
Five individual jobs were replayed, without a whole-run rerun or cancellation request; source and PR head remained unchanged. CI's workflow merge head is
0662b75196ad036abe75b0caf959923d7b715f1e; the base run's workflow head iscdcef6c25f75fd7e2e2ddea93636a0ff629ce45a(source targets above are separate identities).history-29timeoutcompact.foreground-resources.test.ts:297. Base passed.Infra19, Security2, and the unreplayed tooling5 Bun timeout remain unresolved. Passing replay is non-reproduction, not a proven fix or blanket flakiness attribution. Original final Infra17 job passed. The containing run is now completed/cancelled as observed from GitHub; no cancellation was requested by this validation work, and aggregate green is not claimed.
Repository test-failure policy permits documented uncertainty under normal review/CI gates; no blanket CI-success waiver is inferred. No caps, unrelated production behavior, release tags or published artifacts changed.