Repository navigation
fix(claws): remove owner-qualified skills - #119606
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 9:08 AM ET / 13:08 UTC. ClawSweeper reviewWhat this changesThe branch lets Claw package cleanup remove an owner-qualified ClawHub skill by resolving its local slug and verifying the recorded publisher before deletion. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: current main rejects the persisted owner-qualified reference before it can find the local skill directory, and the branch repairs that lifecycle boundary while retaining deletion provenance checks. Priority: P2 Review scores
Verification
How this fits togetherClaw packages persist the registry identity of skills installed into an agent workspace. The ClawHub lifecycle translates that identity to the local directory, validates origin and lock provenance, then removes the verified skill. flowchart LR
A[Claw package record] --> B[Package removal planner]
B --> C[Qualified skill reference]
C --> D[ClawHub lifecycle]
D --> E[Origin and lock provenance]
E --> F[Verified local skill directory]
F --> G[Safe cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +23, Tests +199. Total +222 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Preserve the package layer's qualified registry identity, translate it only in the ClawHub lifecycle, and land the provenance-revalidated cleanup once the exact head completes required checks. Do we have a high-confidence way to reproduce the issue? Yes—current main passes an owner-qualified persisted reference into a slash-rejecting slug validator, which deterministically produces the failed removal path; this read-only review did not execute it. Is this the best way to solve the issue? Yes—the lifecycle is the correct owner for converting registry identity to a local slug, and apply-time replanning keeps a same-slug publisher change from retargeting deletion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 74014c286d36. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for head
Remote Testbox was unavailable because the Blacksmith CLI is absent on this host, and direct Crabbox broker authentication returned 401, so trusted-source live proof used the documented local fallback. |
|
Merged via squash.
|
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
* fix(claws): remove qualified skill refs * test(claws): update uninstall plan fixtures
Related: #117681
What Problem This Solves
Fixes an issue where removing a Claw that installed an owner-qualified skill such as
@owner/triagewould retain the skill instead of uninstalling it. The persisted package identity was passed directly to a local-slug validator, so the slash made removal look ambiguous.Why This Change Was Made
The Claw package layer continues to preserve the publisher-qualified registry identity. The ClawHub skill lifecycle now owns translation to the installed local slug, checks that the requested publisher/source matches the validated origin and lock provenance, and carries the requested identity through apply-time replanning so deletion cannot be retargeted to a same-slug skill from another publisher.
The same identity invariant is applied when a direct owner-qualified install records independent ownership. This change is intentionally separate from #117681, which covers publisher propagation through search, detail, install, gateway, and UI surfaces.
User Impact
Operators can remove Claws containing owner-qualified ClawHub skills and have unchanged, Claw-managed skills cleaned up correctly. Publisher mismatches remain fail-safe: the skill is retained rather than deleting a different publisher's same-slug installation.
AI-assisted implementation; the code and ownership boundary were reviewed directly.
Evidence
node scripts/run-vitest.mjs src/skills/lifecycle/clawhub-uninstall.test.ts— 7 tests passed.node scripts/run-vitest.mjs src/claws/package-remove.test.ts— 17 tests passed.node scripts/run-vitest.mjs src/skills/lifecycle/clawhub.test.ts— 101 tests passed.oxfmt,oxlint, andgit diff --checkpassed.gpt-5.6-sol, high reasoning) reported no accepted/actionable findings, including a fresh review after the CI fixture update.pnpm check:test-typespassed after updating remaining uninstall-plan fixtures;node scripts/run-vitest.mjs src/claws/export.test.ts src/claws/update-plan.test.tspassed 30 tests.extensions/signal/src/channel.ts; no touched-surface failure was reported before that gate stopped.openclaw claws addinstalled@steipete/[email protected], persisted the qualified package ref, and tracked the localskills/weatherdirectory withownerHandle: "steipete". The removal preview selectedskill:@steipete/[email protected]for uninstall; applying the integrity-bound plan removed the skill directory, emptied.clawhub/lock.json, and removed the Claw status record.