Skip to content

refactor(plugins): remove unused update disable policy - #188196

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/plugin-update-failure-policy-20261030
Oct 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/plugin-update-failure-policy-20261030

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Remove the unused disableOnFailure branch 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 retainOnUnavailable still 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

  • Independent source review, full-owner local autoreview, and exact-head ClawSweeper review found no actionable defects.
  • Targeted formatting, diff checks, normal signed commit hooks, and added-line private-data checks passed.
  • Exact-head CI observed 104 passing focused cases in Bun shards: plugin updates: 86, context-engine uninstall: 6, and core-update plugin convergence: 12. No failed or skipped focused case lines were observed. Tests retain activation/allow/deny/slots, damaged/incompatible/unreadable payload refusal, metadata retention, trust diagnostics, and alias custody assertions.
  • No shipped-CLI upgrade execution or local dependency-backed test execution is claimed. Aggregate required CI remains a separate merge gate.

Scope

No config/default additions, public SDK changes, storage migration, or live service mutation. Pure removal of unused internal policy; no changelog entry required.

@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Oct 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 30, 2026 08:50
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: M labels Oct 30, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes unused plugin-update disabling logic and records typed failures directly in the installed-update owner.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-verified simplification with no actionable findings; execution confidence remains limited while exact-head checks finish.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored cleanup is outside the ordinary contributor proof gate; source verifies removal of an unused policy, while supplied validation is static and exact-head CI remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction removes test-only policy machinery while preserving the already-shipped production behavior.

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
Reviewed head: cd5b04f96a1863e48467976ae1cbb442ad785cfb

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped-CLI or latest-stable upgrade execution is supplied for this behavior-preserving refactor; no target code was executed during review.
Agent review details

How this fits together

Core 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]
Loading

Technical review

Best 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

  • Failure disabling and activation/slot mutation keeps the original intent (7c0f546: Originally isolated post-core plugin failures by disabling affected plugins; fix: recover managed plugin release pins during updates #133884 later removed production opt-in and preserved activation instead.)
  • Update lifecycle module ownership keeps the original intent (a2eb27c: Split the updater into focused lifecycle owners while preserving its facade, rollback, and policy contracts.)
  • Unavailable-target retention keeps the original intent (b607355: Separated retention from disabling and kept successful core updates independent of individual plugin failures.)
  • Typed failure diagnostics keeps the original intent (4f52fe9: Retain installer failure codes in canonical update outcomes without changing status or activation.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Pinned change and main comparison: Reviewed the introduced merge-base-to-head diff; fetched main changes none of the touched paths, and the verified synthetic merge preserves the separate base-only artifact test. (cd5b04f96a18)
  • Unused policy confirmed on main: Repository-wide main searches find disableOnFailure only in its implementation and tests; the core cohort, manual update command, and Doctor repair supply no enabling value. (src/plugins/update-source.ts:122, 5f6f15fed0d6)
  • Policy retirement precedes this PR: The merged release-pin repair replaced core-cohort disableOnFailure calls with retainOnUnavailable and explicitly preserved plugin activation after failed updates: fix: recover managed plugin release pins during updates #133884. (src/plugins/update-cohort.ts:180, b6073553b799)
  • Retention and typed diagnostics preserved: The simplified failure producer retains status, code, and message; retention still requires an unavailable source or metadata failure plus a compatible runnable installed payload. (src/plugins/update-installed.ts:366, cd5b04f96a18)
  • Supported failure contracts retained: Changed tests retain activation, allow/deny policy, slots, unreadable/damaged/incompatible payload refusal, ClawHub trust diagnostics, and duplicate-alias custody; obsolete disabling assertions are removed. (src/plugins/update.test.ts:2186, cd5b04f96a18)
  • Discussion and merge state: The full body and comments contain the maintainer's review request and no contrary direction; GitHub reports this head mergeable, while required CI remains pending. (cd5b04f96a18)

PR surface

Source -89, Tests -22. Total -111 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 15 104 -89
Tests 3 62 84 -22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 77 188 -111

Review metrics

Metric Value Why it matters
Production versus test LOC Production +15/-104; tests +62/-84 The reduction removes unused policy and its test-only consumers without adding another owner or compatibility path.

Labels

Label changes:

  • add P3: This is internal cleanup with no supported user-facing behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is internal cleanup with no supported user-facing behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 5:02 AM ET / 09:02 UTC.

@vincentkoc
vincentkoc enabled auto-merge (squash) October 30, 2026 09:15
@vincentkoc
vincentkoc merged commit 8c4b5c5 into main Oct 30, 2026
210 of 212 checks passed
@vincentkoc
vincentkoc deleted the refactor/plugin-update-failure-policy-20261030 branch October 30, 2026 09:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant