Repository navigation
perf(doctor): parallel I/O for repair sequence and plugin dep cleanup (A1) - #85670
samson1357924 wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 24, 2026, 7:46 AM ET / 11:46 UTC. Summary PR surface: Source +7. Total +7 across 1 file. Reproducibility: yes. for the PR-introduced defect from source inspection: stale-shadow cleanup skips legacy sidecar refs, and sidecar migration removes those refs. I did not live-reproduce the original VPS doctor timing regression. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep dependent OAuth repairs serial, parallelize only repair steps that do not read or write the same auth profile stores, add focused sequencing coverage, and require redacted patched-run doctor timing proof before merge. Do we have a high-confidence way to reproduce the issue? Yes for the PR-introduced defect from source inspection: stale-shadow cleanup skips legacy sidecar refs, and sidecar migration removes those refs. I did not live-reproduce the original VPS doctor timing regression. Is this the best way to solve the issue? No; this is not the best merge shape because it parallelizes auth repairs that share persisted auth profile state. The safer fix is to keep the auth dependency ordered and parallelize only independent cleanup work. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1069c60e1e25. Label changesLabel justifications:
Evidence reviewedPR surface: Source +7. Total +7 across 1 file. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
Phase 1A optimizations for openclaw#85333: repair-sequencing.ts: - Run cleanupLegacyPluginDependencyState, maybeRepairLegacyOAuthSidecarProfiles, and repairStaleOAuthProfileShadows in parallel via Promise.all - These are filesystem-only operations with no config dependencies, so concurrent execution is safe - openAIAuthProviderRepair kept sequential (depends on sidecar results) All existing tests pass (repair-sequencing)
|
This pull request has been automatically marked as stale due to inactivity. |
|
@samson1357924 thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
Closing per ClawSweeper review verdict |
Performance optimization for doctor repair sequence (Phase 1A — adapted)
Issue: #85333
Changes
Parallelize 3 I/O-only repair steps in
epair-sequencing.ts:
epairStaleOAuthProfileShadows\ now run concurrently via \Promise.all\ instead of sequentially
Note: The \plugin-dependency-cleanup.ts\ per-plugin parallelization from the original A1 branch was already integrated upstream in a later refactor. This version includes only the remaining repair-sequencing optimization, adapted for the current upstream code structure.
Behavior or issue addressed
\openclaw doctor --fix\ runs 3 filesystem-only repair steps in parallel instead of serial, reducing wall-clock time from sum to max.
Safety
What was not tested (delegated per commander instruction)