Skip to content

fix: restore personal skill reads and release retired plugins - #160213

Merged
roboclaw-bot merged 7 commits into
mainfrom
openclaw/diagnosing-failure-and-pr-requirement
Sep 28, 2026
Merged

roboclaw-bot merged 7 commits into
mainfrom
openclaw/diagnosing-failure-and-pr-requirement

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #160259

What Problem This Solves

Fixes personal skills appearing unavailable in Code Mode and plugin disposal retaining replacement registries. The prerequisite CI owner-routing repair is now incorporated from main.

User Impact

Agents can read their authorized personal skills, and completed plugin disposal no longer keeps successor registries alive. No settings, permissions, stored-data, or public SDK migration is required. The deployed Gateway is not changed.

Why This Change Was Made

  • Personal-library results use the existing JSON-result helper, exposing the same bounded projection to Code Mode and text consumers. The 20-entry list, 32-file manifest, whole-text limit, binary omission, and authenticated capability are unchanged.
  • Disposal failure classification retains instance identity instead of a callback that captured the disposal scope and successor registry. The original current-instance/host-cleanup-token check remains.
  • Main now owns the CI routing repair in #160324. This branch incorporates it, with no remaining planner production delta. The retained regression also covers exact native-loader test selection without enabling the default plugin sweep.
  • The Gateway omission test now parses the visible JSON rather than requiring compact formatting. It retains the size/binary protections and additionally verifies the omission reason, absent content, and agreement with structured details.

Main’s native-task GC fixture correction is incorporated. The redundant Bun-specific production waiter workaround was removed; the real disposal-capture fix remains.

Evidence

  • Personal skills: five regressions fail on the original producer and pass after repair, including real Code Mode catalog-search → list → dependent read and disclosure limits. Prior sibling proof passed 31 cases; all five regressions passed again on the reviewed candidate.
  • Retention: the populated-registry regression fails on the original disposal owner under Node and passes with the repair. After incorporating main’s fixture correction, the complete compiled retention suite passes 10/10 under pinned CI Bun. Original assertions, eight collection passes, and child/test timeouts remain unchanged.
  • Planner: the complete canonical suite passes 219/219 after integrating main’s repair. Earlier combined planner proof passed 546 cases; the exact failed manifest changed from 135 jobs over the 130-job cap to 81 with the same 5,066 files. Current-head preflight and required CI gates pass.
  • Gateway omission: reproduced the exact hosted assertion failure locally, then 7/7 tests pass after repair. Replayed the failing job’s complete 11-file group through the native runner: 211 Node + 26 Bun tests pass, with no skipped tests or relaxed assertions/timeouts.
  • Type-aware lint, owning Gateway test types, formatting, and whitespace checks pass for the latest test repair. The earlier scripts/core/root-tooling type and static checks remain valid for unchanged inputs. Independent autoreview through P3 is scoped-clean for the eight-file candidate and the subsequent one-file assertion repair.
  • Verified head d4fbf46c896f9bc03550f9fdac888dda38feefea: CI passed, both required openclaw/ci-gate contexts are green, and ClawSweeper’s exact-head review has no actionable or security findings and no before-merge requests. CI attempt 1 completed with 122 successful jobs, 22 conditionally skipped jobs, zero failed/cancelled jobs, and none pending. No tests were disabled. The native observer returned GREEN; GitHub’s raw rollup still retains 11 superseded cancellations from obsolete contexts, not current-run failures.
Root causes, test audit, costs, and proof limitations
  • Filtered in-memory heap inspection identified the real chain: reachable oldest registry → instance → disposal-failure classifier → disposal scope’s beforeCleanup → cleanup parameters’ nextRegistry → successors. No raw heap or private runtime data is published.
  • The old planner routed 442 selected plugin files into generic per-file batches. Main now retains their canonical ownership without enabling the default sweep or changing configs, worker/preparation policies, cost floors, deferred inventories, or the 130-job cap.
  • Main’s existing cap handling and retention-helper mapping were already present in the failed run. Rebasing alone, or removing only the redundant waiter change, still emitted 135 jobs. The routing repair was independently necessary. After main landed 81a840ad3d12, integration of c3dc06d3738f retained main’s complete planner owner and our native-loader regression. Publication preserves the existing PR ancestry; its complete tree matches the verified local rebase exactly.
  • Test-audit/deslop: the planner regression covers exact real-file ownership, including a native-loader file, without enabling the default sweep. The retention regression reuses the independent GC-child harness. The omission assertion tests payload semantics instead of whitespace and strengthens the disclosure check without adding another fixture.
  • Planner owner: pnpm test test/scripts/ci-node-test-plan.test.ts --maxWorkers=1 — after main integration, 219 passed in 151.54s wall / 149.09s Vitest; retained case 699ms; hosted CI 0.849s. Prior changed-owner + integration proof: 328 passed, 743.98s wall. Interrupted runs are not counted.
  • Retention: OPENCLAW_VITEST_RUNTIME=bun pnpm test src/plugins/runtime.retention.test.ts --maxWorkers=1 with checksum-verified CI Bun 1.4.3-canary.1+6b9148b17 — 10 passed, 52.88s wall / 49.41s Vitest, including cold preparation. The added populated case passed in hosted CI in 0.489s. Prior head 5723f76ab07a passed 120 Node lifecycle cases across five files in 35.57s wall and a full build in 6m 49.3s. Its informational UI startup-JS budget report was not green; neither that budget nor that prior build is claimed as current-head proof.
  • Personal skill file: five passed, 55.84s wall / 50.50s Vitest on the reviewed candidate, dominated by cold preparation. Original warm pnpm test src/agents/tools/skill-workshop-tool-library.test.ts --maxWorkers=1 measurement: 7.36s wall / 5.71s Vitest, about 86ms test bodies. Hosted CI: 0.056s for the real worker case and 0.002s each for the other four regressions. The worker uses synthetic authorized data, not the deployed Gateway.
  • Gateway file benchmark: pnpm test src/gateway/skill-library-authoring.test.ts --maxWorkers=1 failed before repair (1 failed / 6 passed; 61.35s cold wall / 52.99s Vitest), then passed 7/7 (10.14s warm wall / 7.98s Vitest; changed case 129ms). Cold versus warm is not presented as a speedup. The prior hosted failing case took 161ms; the repaired case passed in current hosted CI in 0.225s.
  • Failing-group replay: native ci-run-node-test-shard.mts with the exact selected files/configs and Bun-compatible policy, locally bounded to two workers, passed 237/237 in 69.45s, then again with main integrated in 79.82s. Initial local replay encountered 16 loopback HTTP failures because this host’s environment proxy intercepted localhost. An isolated HTTP control proved inherited routing returned 502 without reaching the fixture; a process-local localhost-only NO_PROXY addition reached it with 200. Replaying with that routing correction passed all cases; no test was excluded or product code changed for the host proxy. Pinned Bun emitted a non-fatal directory-mismatch diagnostic at shutdown; both invocations exited zero and native settlement reported zero failed invocations.
  • The older five-plan replay is not claimed clean. Main owns the duplicate-export prerequisite; this PR contains no UI patch.
  • Named follow-up: workspace Workshop read/proposal-inspect use independent projection budgets and edit-read authority flows; they remain unchanged here.

Reported by @VACInc.

Worked on by

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 28, 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 agents Agent runtime and tooling size: M labels Sep 28, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 06:38
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 6:39 AM ET / 10:39 UTC (Revision 8).

ClawSweeper review

What this changes

The branch makes personal skill results usable in OpenClaw Code Mode, removes a plugin disposal retention path, and adds focused skill, Gateway, registry, and CI selection regressions.

Merge readiness

✅ Ready for maintainer review

Keep open: current main retains the reported failures, and the merged CI planner repair does not replace this PR. Review of the pinned head found no actionable defect or unresolved merge risk.

Priority: P1
Reviewed head: d4fbf46c896f9bc03550f9fdac888dda38feefea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused owner changes, relevant boundary regressions, reported exact-head validation, and no identified blocking defect support a good review rating.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The host identifies this bot-authored PR as MEMBER, so the external-contributor proof gate does not apply. Its evidence exercises the OpenClaw Code Mode catalog bridge with synthetic authorized data and the compiled registry GC child; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The host identifies this bot-authored PR as MEMBER, so the external-contributor proof gate does not apply. Its evidence exercises the OpenClaw Code Mode catalog bridge with synthetic authorized data and the compiled registry GC child; no stored-data contract changes.
Evidence reviewed 9 items Current main still has the skill result defect: Personal list and read results on the fetched main return visible JSON with empty structured details; Code Mode projects the details value.
Code Mode result contract: The existing runtime projects structured tool details into the Code Mode guest, explaining why visible JSON alone could not support dependent skill reads.
Introduced skill repair: The pinned PR returns the same bounded personal skill projection through the existing JSON result helper.
Findings None None.
Security None None.

How this fits together

The Gateway grants access to personal skills, and the agent tool projects authorized results into Code Mode or text responses. Separately, the plugin runtime disposes old registries during replacement and reports cleanup failures.

flowchart LR
A[Authorized session] --> B[Personal skill capability] --> C[Bounded skill result] --> D[Code Mode response]
E[Plugin replacement] --> F[Registry disposal] --> G[Failure classification] --> H[Successors collectible]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +228. Total +228 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 41 41 0
Tests 5 244 16 +228
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 285 57 +228

Review metrics

Metric Value Why it matters
Production versus regression growth production net 0 lines; tests and test support net +228 lines The branch adds boundary and retention coverage without growing production code overall; the PR body records measured test costs.

Technical review

Best possible solution:

Authorized Code Mode runs should receive bounded personal skill data, while completed plugin retirement leaves replacement registries collectible under the existing lifecycle contract.

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

Yes, source inspection gives a high-confidence path for the personal-skill failure: main returns empty details where Code Mode consumes details. The retention case has a specific GC-child regression and reported before-and-after results, but I did not execute it.

Is this the best way to solve the issue?

Yes. The patch changes the existing result and disposal owners, preserves the documented skill bounds and Gateway grant, and adds regressions at the affected boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a58d7709797a.

Labels

Label changes:

  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.

Label justifications:

  • P1: The branch addresses broken personal-skill reads in an active agent workflow and plugin registry retention during replacement.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host identifies this bot-authored PR as MEMBER, so the external-contributor proof gate does not apply. Its evidence exercises the OpenClaw Code Mode catalog bridge with synthetic authorized data and the compiled registry GC child; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-28T06:43:43.816Z sha ad570e6631e3fea90399cb820300375d646508cd :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T07:02:26.654Z sha 4bdbf5e40ac98e72c64bb1fd2db840a7b239a3ba :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T07:15:47.138Z sha 6a46435 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T07:47:48.176Z sha 6a46435 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T08:30:39.888Z sha 5723f76ab07a428d061b6f0680319664c54b66bc :: blocked before merge. :: none
  • reviewed 2026-09-28T09:31:20.548Z sha 339c09b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T10:13:56.018Z sha d4fbf46 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 28, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/diagnosing-failure-and-pr-requirement branch from 4bdbf5e to 6a46435 Compare September 28, 2026 07:07
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Sep 28, 2026
@roboclaw-bot roboclaw-bot changed the title fix: personal skills appear unavailable in Code Mode fix: restore personal skill reads and release retired plugins Sep 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: telegram Channel integration: telegram app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations extensions: codex extensions: lmstudio size: XL and removed size: M labels Sep 28, 2026
roboclaw-bot and others added 3 commits September 28, 2026 02:20
Return the bounded personal-library projection in structured tool details as well as text, preserving existing read and omission limits.

Co-authored-by: VACInc <[email protected]>
Preserve the original Bun GC assertion and cover disposed plugin instances. Forward retirement promises without retained await frames, and keep failure classification outside the cleanup callback scope.

Co-authored-by: VACInc <[email protected]>
Retain canonical ownership for explicitly selected plugin files without enabling the default plugin sweep. The failing manifest retains all 5,066 selected files while shrinking from 135 to 81 rows; the final candidate fits in 90 rows under the unchanged 130-row cap.

Use main’s native-task GC fixture correction instead of the redundant retirement waiter rewrite. Preserve the real disposal capture fix and both retention cases.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/diagnosing-failure-and-pr-requirement branch from fce3f09 to 339c09b Compare September 28, 2026 09:20
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Sep 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed channel: telegram Channel integration: telegram app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes commands Command implementations extensions: codex extensions: lmstudio size: XL labels Sep 28, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
roboclaw-bot and others added 2 commits September 28, 2026 09:53
Parse the visible JSON result instead of depending on compact formatting. Preserve the serialized size cap and persisted binary assertion, and verify omission fields and structured-result agreement.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 923aa12a-594c-4bcd-9256-5df6698e91b8
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 28, 2026
roboclaw-bot and others added 2 commits September 28, 2026 10:01
Retain the published PR ancestry and merge main c3dc06d after its canonical plugin-owner repair landed. Resolve the overlapping planner comments using the complete main owner, preserving the native-loader regression. The complete resulting tree exactly matches the locally verified rebased candidate adcfded744f7.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: f4ac0be8-d299-437f-a333-52ea928d325f
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 28, 2026
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@roboclaw-bot
roboclaw-bot merged commit 958de2c into main Sep 28, 2026
214 of 215 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/diagnosing-failure-and-pr-requirement branch September 28, 2026 10:58
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…aw#160213)

* fix: personal skills appear unavailable in Code Mode

Return the bounded personal-library projection in structured tool details as well as text, preserving existing read and omission limits.

Co-authored-by: VACInc <[email protected]>

* fix(plugins): stop retired registries retaining replacements

Preserve the original Bun GC assertion and cover disposed plugin instances. Forward retirement promises without retained await frames, and keep failure classification outside the cleanup callback scope.

Co-authored-by: VACInc <[email protected]>

* fix(ci): keep selected plugin tests in bounded owner jobs

Retain canonical ownership for explicitly selected plugin files without enabling the default plugin sweep. The failing manifest retains all 5,066 selected files while shrinking from 135 to 81 rows; the final candidate fits in 90 rows under the unchanged 130-row cap.

Use main’s native-task GC fixture correction instead of the redundant retirement waiter rewrite. Preserve the real disposal capture fix and both retention cases.

Co-authored-by: VACInc <[email protected]>

* fix: assert bounded skill omission payload semantics

Parse the visible JSON result instead of depending on compact formatting. Preserve the serialized size cap and persisted binary assertion, and verify omission fields and structured-result agreement.

Co-authored-by: VACInc <[email protected]>

* fix: restore personal skill reads and release retired plugins

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 923aa12a-594c-4bcd-9256-5df6698e91b8

* fix: restore personal skill reads and release retired plugins

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: f4ac0be8-d299-437f-a333-52ea928d325f

---------

Co-authored-by: VACInc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

2 participants