Repository navigation
refactor(plugins): remove unused update disable policy - #188196
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused plugin-update disabling logic and records typed failures directly in the installed-update owner. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes a verified unused internal policy, preserves supported update behavior, and introduces no actionable defect found in this review. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCore updates, manual plugin updates, and Doctor repairs call the shared installed-plugin updater, which returns configuration and typed outcomes for persistence and user-facing reporting. flowchart TD
A[Core update cohort] --> D[Installed plugin updater]
B[Manual plugin update] --> D
C[Doctor repair] --> D
D --> E[Installer and retention checks]
E --> F[Typed outcomes and configuration]
F --> G[CLI warnings and persistence]
Technical reviewBest possible solution: Remove the unreachable disabling branch while keeping failure reporting, compatible-payload retention, and lifecycle settlement with their existing owners. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a bug report; source inspection confirms that production callers do not enable the removed policy. Is this the best way to solve the issue? The diff is the smallest complete cleanup: it deletes the unused branch and helper, keeps typed failure production local, and preserves the existing retention contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5f6f15fed0d6. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -89, Tests -22. Total -111 across 8 files. Added test files: 0. View PR surface stats
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 Reviewed October 30, 2026, 5:02 AM ET / 09:02 UTC. |
|
Merged via squash auto-merge.
|
Summary
Remove the unused
disableOnFailurebranch from plugin updates. The core cohort, manual plugin update, and Doctor repair entry points never opt into it; ordinary failures already preserve activation. The installed-update owner now records its existing typed error outcome directly.Delete the disabling helper, activation/slot mutation plumbing, and warning classification based on English error text. Explicit
retainOnUnavailablestill requires a compatible runnable payload and handles metadata failures separately from unavailable targets. Transaction settlement, alias custody, consent/integrity failures, and ClawHub trust skips remain intact.Production: 15 additions, 104 removals (net -89). Tests: 62 additions, 84 removals (net -22). This PR is based on the landed failure-code fix in #188187 and excludes the assessment removal already landed in #188168.
Validation
Scope
No config/default additions, public SDK changes, storage migration, or live service mutation. Pure removal of unused internal policy; no changelog entry required.