Repository navigation
fix(plugins): reject unknown targeted update owners - #117333
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 5:55 AM ET / 09:55 UTC. ClawSweeper reviewWhat this changesThe PR makes targeted Merge readinessKeep this PR open for protected maintainer handling and exact-head CI completion. The patch correctly moves explicit-target validation into the CLI owner-selection boundary, so untracked or ambiguous targets fail instead of reaching the generic updater’s intentional advisory-skip path. Priority: P2 Review scores
Verification
How this fits togetherThe plugin-update CLI reads tracked plugin install records and hook-pack records, resolves an explicitly requested target, then invokes the appropriate updater and persists any resulting changes. This PR changes only the ownership-resolution decision before either updater is called. flowchart LR
A[CLI update request] --> B[Tracked plugin records]
A --> C[Tracked hook-pack records]
B --> D[Plugin target selection]
C --> E[Hook target selection]
D --> F{Known owner?}
E --> F
F -->|yes| G[Plugin or hook updater]
F -->|no| H[Actionable error and exit 1]
G --> I[Config and registry refresh]
Decision needed
Why: The patch is source-backed and proof-positive, but the Before merge
Agent review detailsSecurityNone. PR surfaceSource -4, Tests +78. Total +74 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep a single explicit-target owner-selection rule: accept tracked plugin IDs or one uniquely mapped tracked npm package, let hook selection own hook packs, and retain the generic updater’s advisory missing-record behavior for its broader internal callers. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a high-confidence current-main reproduction: an unknown explicit target is returned by Is this the best way to solve the issue? Yes. The selector is the owner of explicit CLI target resolution, while the generic updater intentionally supports advisory skips for wider internal callers; rejecting unresolved owners there is the narrowest maintainable repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aa2a5c96f69a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: refactor(doctor): unify legacy auth migration ownership (openclaw#117361) fix(plugins): surface actionable doctor warnings (openclaw#117357) fix(ci): use corrected Kova release evaluator (openclaw#116920) fix(ci): stabilize release validation assertions (openclaw#117377) refactor(memory): use sqlite transcript identities (openclaw#117334) fix(plugins): require tracked owners for targeted updates (openclaw#117333)
…17333) Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: refactor(doctor): unify legacy auth migration ownership (openclaw#117361) fix(plugins): surface actionable doctor warnings (openclaw#117357) fix(ci): use corrected Kova release evaluator (openclaw#116920) fix(ci): stabilize release validation assertions (openclaw#117377) refactor(memory): use sqlite transcript identities (openclaw#117334) fix(plugins): require tracked owners for targeted updates (openclaw#117333)
What Problem This Solves
openclaw plugins update missing-pluginreturned exit code 0 after reporting that no install record existed. Scoped missing packages, inherited prototype names, ambiguous npm package owners, and--dry-runall shared the false-success path. Updating a valid hook pack also dispatched the plugin updater for a nonexistent plugin owner.Why This Change Was Made
The plugin update selector synthesized an owner from an arbitrary requested string when no unique tracked plugin matched. The existing generic updater correctly treats missing records as an advisory skip for its broader internal callers, so the fix belongs at CLI target ownership selection. Select only tracked plugin ids or uniquely mapped npm packages; let the separate hook selector own hook targets; emit a specific actionable CLI error when an explicitly supplied target resolves to neither owner.
User Impact
--allwith no tracked packages, and intentionally skipped linked plugins keep existing behavior.Evidence
main3edbe19fbd84ba58fdbf8e83042da9efd1d06f81retains all 17 reviewed owner/caller/docs/root blobs unchanged; synthetic merge is clean.