Repository navigation
fix: restore personal skill reads and release retired plugins - #160213
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 6:39 AM ET / 10:39 UTC (Revision 8). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +228. Total +228 across 8 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
4bdbf5e to
6a46435
Compare
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]>
fce3f09 to
339c09b
Compare
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
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
|
Merged via squash.
|
…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]>
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
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
d4fbf46c896f9bc03550f9fdac888dda38feefea: CI passed, both requiredopenclaw/ci-gatecontexts 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 returnedGREEN; GitHub’s raw rollup still retains 11 superseded cancellations from obsolete contexts, not current-run failures.Root causes, test audit, costs, and proof limitations
beforeCleanup→ cleanup parameters’nextRegistry→ successors. No raw heap or private runtime data is published.81a840ad3d12, integration ofc3dc06d3738fretained 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.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.OPENCLAW_VITEST_RUNTIME=bun pnpm test src/plugins/runtime.retention.test.ts --maxWorkers=1with checksum-verified CI Bun1.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 head5723f76ab07apassed 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.pnpm test src/agents/tools/skill-workshop-tool-library.test.ts --maxWorkers=1measurement: 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.pnpm test src/gateway/skill-library-authoring.test.ts --maxWorkers=1failed 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.ci-run-node-test-shard.mtswith 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-onlyNO_PROXYaddition 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.Reported by @VACInc.
Worked on by
Work sessions
View the OpenClaw team session