Repository navigation
fix: keep Doctor migration capture within plugin data - #163780
Conversation
Declare active Wiki cache files and bounded Teams delegated-token archive resources while leaving retired migration inventories empty. Preserve archive collision handling and refuse symlink sources before creating the archive directory. Extract the coherent migration resource declarations from Peter Steinberger's #144005, with current-source reconciliation and regressions fixed by Jason (Json). This does not complete or close the original recovery journey. Co-authored-by: Peter Steinberger <[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. Reviewed October 2, 2026, 5:03 PM ET / 21:03 UTC. ClawSweeper reviewWhat this changesThe PR declares Doctor’s plugin data inventory for Wiki, Teams, and retired Nostr migrations, and confines new Teams token archives to a dedicated directory. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, bounded extraction absent from inspected current main, and no introduced correctness defect was found. Member-authored work also requires explicit maintainer judgment before closure. Priority: P2 Review scores
Verification
How this fits togetherDoctor repairs legacy plugin state during maintenance and updates. Plugins declare the files needed for migration capture, while the shared archive helper records successful archival or preserves the source with a warning. flowchart TD
A[Plugin configuration and legacy files] --> B[Plugin migration inventory]
B --> C[Doctor capture and rehearsal]
C --> D[Plugin state repair]
D --> E[Verified canonical state]
E --> F[Archive legacy source]
F --> G[Archive or preserved source with warning]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +46, Tests +85. Total +131 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep migration inventories plugin-owned and precise, preserve existing archive callers and data, and deliver full rollback recovery through its separately tracked work. Do we have a high-confidence way to reproduce the issue? Yes, source establishes missing resource declarations on inspected main and the existing consumer’s treatment of undeclared resources. The PR reports failing-before/passing-after regressions; this review did not execute them. Is this the best way to solve the issue? Yes, the extraction uses existing plugin inventory contracts and a backward-compatible archive-helper parameter, while preserving retired migration behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d5c6cbfb4b8c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (#163780) fix(ui): gate system information at the shared reader (#160982) chore(db): reclassify worker inventory sites with caller evidence (#163754) refactor(channels): deslop Slack and Matrix (#163740) fix(agents): reject empty sessions_search queries in the tool schema (#129120) perf(nodes): load only what a worker turn needs (#160442) test(cli): assert concise Gateway failure copy in CLI process tests (#163649) refactor(discord): deslop discord (#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (#163761) test(gateway): add sustained heap retention diagnostics (#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718) feat(macos): add a --no-activate launch flag for background automation (#163758) fix(agents): preserve host authority across module reloads (#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690) fix: keep video widgets scrollable and preload initial frames (#163762) feat(memory): add a provider-neutral memory provider runtime (#162175) ...
Declare active Wiki cache files and bounded Teams delegated-token archive resources while leaving retired migration inventories empty. Preserve archive collision handling and refuse symlink sources before creating the archive directory. Extract the coherent migration resource declarations from Peter Steinberger's openclaw#144005, with current-source reconciliation and regressions fixed by Jason (Json). This does not complete or close the original recovery journey. Co-authored-by: Peter Steinberger <[email protected]>
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (openclaw#163780) fix(ui): gate system information at the shared reader (openclaw#160982) chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754) refactor(channels): deslop Slack and Matrix (openclaw#163740) fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120) perf(nodes): load only what a worker turn needs (openclaw#160442) test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649) refactor(discord): deslop discord (openclaw#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761) test(gateway): add sustained heap retention diagnostics (openclaw#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718) feat(macos): add a --no-activate launch flag for background automation (openclaw#163758) fix(agents): preserve host authority across module reloads (openclaw#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690) fix: keep video widgets scrollable and preload initial frames (openclaw#163762) feat(memory): add a provider-neutral memory provider runtime (openclaw#162175) ...
Related: #144005
What Problem This Solves
Fixes incomplete Doctor migration capture inventories and an overbroad Teams token footprint that can include plugin code links and fail strict candidate inspection.
User Impact
Doctor capture can identify the exact active Wiki cache files and Teams delegated-token data without treating the entire state directory as migration data. Retired Nostr and Teams importers stay retired. Teams archives now stay in a dedicated
<token-file>.archivesdirectory; no manual migration is required.Why This Change Was Made
Declare the resources each plugin actually changes. Teams includes its token file and bounded archive directory, including collision suffixes. The shared archive helper keeps existing callers unchanged and refuses symlink sources before creating an archive directory, preserving the source and reporting the archive failure truthfully.
This is an independently safe extraction of Peter Steinberger's work in #144005, with current-source reconciliation and regression fixes by Jason (Json). It does not complete the original capture/recovery or newer-write preservation journey, and leaves that original work unfinished with its existing owners.
Evidence
node scripts/check-changed.mjs --base aac001b30ba8d90e33aa4e7f8b1a8956f2b3c61f -- <eight PR paths>passed in 1,022.78 seconds, including declaration/closure, type, lint, dead-export and native-schema guards. No skip flags; source unchanged.