Skip to content

refactor(update): remove unused plugin assessment policy - #188168

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

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

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The updater maintains an unused plugin classifier alongside the result that actually controls completion.

User Impact

Update status, warnings, consent and integrity diagnostics, Doctor, and restart decisions stay unchanged. The undocumented postUpdate.plugins.assessment JSON diagnostic is removed; it shipped in v2026.10.1 but has no documented schema, SDK surface, or in-repository consumer. No configuration or migration action is required.

Why This Change Was Made

Maintainer-requested updater duplication audit, continuing the narrow cleanup campaign in #188081. Return the existing canonical plugin result and delete the unused classifier, its duplicate result type, and classifier-only fixtures. Production: 4 lines added / 79 removed; tests and support: 47 added / 57 removed. Release-note context: internal updater simplification with the JSON diagnostic removal disclosed above.

Evidence

Reviewed head: b423e228352e4bf1015cdee3796074012e39c88a; frozen base: d67aa608643f6583a6c6102c522043794aafe064.

  • Blacksmith Testbox: 143 tests passed across five files/three shards covering real failed repair, consent/integrity diagnostics, convergence authority, process lease and lifecycle. Run.
  • Core types, updater CLI test types and targeted production/test lint passed. Targeted oxfmt and git diff --check passed.
  • Local autoreview completed with no P0–P3 findings. The exact-head ClawSweeper review found no actionable code defect; its rank-up request for focused tests/types/lint is completed above.
  • Dead-code aggregate checks remain red outside this diff: unused files scripts/perf/doctor-sqlite-inspection.mjs and scripts/perf/update-state-io-measure.ts; exports in reply-tool-authority-inbound, artifact-download-grants, session-html-preview, session-progress-card, participant-colors and chat-composer-width-ref. Those paths/symbols are unchanged from the frozen base; no runnable baseline comparison was performed. No owned updater path appears in those reports.
  • No shipped-CLI/published-driver update or live service restart was performed; focused owner/lifecycle tests cover the preserved behavior. Broad proof is delegated to exact-head PR CI.

@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.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S labels Oct 30, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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 the plugin assessment classifier and its JSON diagnostic while retaining the canonical update result.

Example: Plugin fixture reports capability consent is required during an update.

  • Before: The result contains status warning, the consent error outcome, and assessment unsafe with reason capability-consent-required.
  • After: The warning and consent error outcome remain; the assessment field is omitted.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Source supports a useful, correct reduction, but focused execution remains pending and current checks have not exercised the updater.
Proof confidence 🦪 silver shellfish (2/6) This maintainer-authored refactor is outside the ordinary contributor proof gate; the body supplies source-review and formatting evidence but explicitly leaves focused execution pending.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: The updater maintains a second diagnostic classification that its completion paths do not consume.
Reason: The maintainer-authored direction removes redundant policy machinery, explicitly discloses the diagnostic removal, and preserves actionable outcome fields.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open. The cleanup removes an unused classifier without changing completion policy, and no actionable code defect was found.

Priority: P3
Reviewed head: b423e228352e4bf1015cdee3796074012e39c88a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped-CLI or published-driver × candidate execution is supplied for the preserved update behavior.
Agent review details

How this fits together

Post-core plugin convergence consumes configuration and plugin repair outcomes, then returns diagnostics and status to update finalization and resume.

flowchart TD
  A[Update CLI] --> B[Plugin update owner]
  B --> C[Release cohort convergence]
  B --> D[Doctor plugin convergence]
  C --> E[Canonical plugin result]
  D --> E
  E --> F[Finalization and resume]
Loading

Technical review

Best possible solution:

Use the existing canonical plugin result and remove the redundant classifier while preserving diagnostic and completion contracts.

Do we have a high-confidence way to reproduce the issue?

This is a refactor rather than a reported runtime bug; source inspection establishes that the removed classifier has no production decision consumer.

Is this the best way to solve the issue?

The diff is the smallest complete reduction: delete the unused derived assessment and duplicate type, adapt fixtures, and retain the existing result owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c32556b0cea7.

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 31cd888 adds src/cli/update-cli/update-command-plugins-internals.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 31cd8887392d; files: src/cli/update-cli/update-command-plugins-internals.ts)
  • Vincent Koc: Raw commit d9123f8 adds src/cli/update-cli/update-command-plugins.ts:439 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d9123f864a4e; files: src/cli/update-cli/update-command-plugins.ts)

PR surface

Source -75, Tests -10. Total -85 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 4 79 -75
Tests 9 47 57 -10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 51 136 -85

Labels

Label changes:

  • add P3: This is a focused maintenance reduction with unchanged update completion behavior.
  • add merge-risk: 🚨 compatibility: The PR removes a shipped JSON diagnostic; its maintainer author explicitly accepts and discloses that output change, and the released internal reader does not require it.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused maintenance reduction with unchanged update completion behavior.
  • merge-risk: 🚨 compatibility: The PR removes a shipped JSON diagnostic; its maintainer author explicitly accepts and discloses that output change, and the released internal reader does not require it.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete focused updater regression tests and targeted type and lint checks on the reviewed head.

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, 4:05 AM ET / 08:05 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review October 30, 2026 08:14
@vincentkoc
vincentkoc enabled auto-merge (squash) October 30, 2026 08:21
@vincentkoc vincentkoc self-assigned this Oct 30, 2026
@vincentkoc
vincentkoc merged commit 4c6ae7f into main Oct 30, 2026
223 checks passed
@vincentkoc
vincentkoc deleted the refactor/update-plugin-policy-20261030 branch October 30, 2026 08:38
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S 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