Repository navigation
Conversation
|
🦞👀 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. |
|
@clawsweeper re-review Exact lifecycle backport with pre-fix reproduction in Plugin Prerelease run 33707894263 / Kitchen Sink job 100502023283. Please review the scoped uninstall write authorization and regression assertion. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 3:53 PM ET / 19:53 UTC. ClawSweeper reviewWhat this changesThe PR lets confirmed plugin uninstalls authorize their planned configuration size reduction and adds an assertion for the exact write options. Merge readiness✅ Ready for maintainer review This remains a useful extended-stable backport with no blocking findings. Main already contains the fix, but the pinned release-branch base does not. The previous checkout blocker is resolved: current-head preflight and security-fast passed. Priority: P2 Review scores
Verification
How this fits togetherThe plugin CLI previews and confirms removal, then commits configuration and installation records before removing managed files. The configuration writer normally rejects unexpectedly large size reductions. flowchart TD
A[Plugin uninstall command] --> B[Build removal plan]
B --> C[Preview and confirmation]
C --> D[Commit config and install records]
D --> E[Check remaining write guards]
E --> F[Remove managed files]
F --> G[Refresh plugin registry]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +13. Total +14 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the size-drop exception confined to confirmed uninstall commits while preserving all independent configuration guards. Do we have a high-confidence way to reproduce the issue? Yes, on the pinned release base: a planned uninstall shrinking a configuration of at least 512 bytes below half its size reaches the guard without the required exception. Current main already contains the fix; this review did not execute a reproduction. Is this the best way to solve the issue? Yes. Using the existing narrow write option at the confirmed uninstall owner is preferable to relaxing the shared writer or granting the exception to every plugin lifecycle operation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c688a95c34f1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review exact current head; please confirm only current actionable findings and rank-up moves. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
(cherry picked from commit 7fbfc2e)
8f9ea3b to
31f76d5
Compare
Summary
Backports
7fbfc2e8ad3(fix(plugins): allow intentional uninstall size drops (#110991)) to the frozen extended-stable candidate.The full validation Kitchen Sink Plugin scenario ran
openclaw plugins uninstall ... --force; its known removal plan legitimately contracts the config from 555 to 180 bytes, but the CLI omitted the write owner’sallowConfigSizeDropauthorization and rejected its own planned mutation. The repair attaches that authorization only to the uninstall lifecycle commit; suspicious writes elsewhere stay protected.Evidence
33707894263, Kitchen Sink Plugin job100502023283, errorConfig write rejected ... (size-drop:555->180).src/cli/plugins-uninstall-command.tscallscommitPluginInstallRecordsWithConfigafter generatingplanPluginUninstall; it is the authoritative, force-confirmed uninstall mutation.7fbfc2e8ad3is absent from frozen candidate659df810and applies cleanly as this PR commit8f9ea3b.allowConfigSizeDrop.Validation
OPENCLAW_FS_SAFE_NATIVE_MODE=off node scripts/run-vitest.mjs run src/cli/plugins-cli.uninstall.test.ts(10 passed)git diff --checkautoreview --mode branch --base origin/extended-stable/2026.6.33Scope
Production: +1 / -0. Tests: +13 / -0. The test proves the exact write contract. No config schema, plugin contract, release tag, npm state, or frozen-candidate mutation is included.