Repository navigation
improve(skills): discover eligible skills automatically - #166166
roboclaw-bot wants to merge 2 commits into
Conversation
Retire persistent positive agent selections through warned Doctor migration and the normal private backup. Preserve independent eligibility, session focus, bundled controls and sender-bound X guest/helper resource authority. Co-authored-by: Kimiyu-186 <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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 real behavior proof before merge. What this changesThe PR replaces persistent per-agent skill lists with automatic eligible discovery, migrates old settings through Doctor, makes skill inventories read-only, and adds repository-only read restrictions for X guests and helpers. Review scores
Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 10 items remain The work remains necessary, but the prior guest-helper containment finding is still unresolved. Retiring existing skill-selection settings also needs explicit maintainer acceptance. Priority: P2 Decision needed
Before merge
Findings
Agent review detailsHow this fits togetherSkill discovery turns configured skill roots and eligibility rules into agent instructions, readable resources, and slash commands. Requester policy must independently keep X guests and their helpers confined to the repository. flowchart TD
A[Configured skill roots] --> B[Skill discovery]
C[Eligibility and session selections] --> B
B --> D[Agent skill snapshot]
E[X guest or persisted helper] --> F[Requester read policy]
D --> G[File and instruction reads]
F --> G
G --> H[Allowed contents or rejection]
Technical reviewBest possible solution: Make newly applied Workshop skills discoverable while preserving repository containment for every existing helper, and retain persistent curation unless maintainers explicitly approve its retirement. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a concrete upgrade path: create an X guest helper on the pinned base, upgrade, refresh its skill snapshot, and resume it without an external sender. This review did not execute that path. Is this the best way to solve the issue? No, the current branch leaves old helper containment unprotected and replaces existing preferences without recorded acceptance; the related warning-only repair is a narrower way to address Workshop visibility. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f0984df6685f. Merge-risk optionsMaintainer options:
SecurityNeeds attention: The automatic-discovery cutover can widen external resource reads for persisted X guest helpers that lack the new restriction. EvidenceSecurity concerns:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 6, 2026, 1:56 PM ET / 17:56 UTC (Revision 3). |
Preserve published ancestry while regenerating the two conflicting config documentation baselines and cutting over two new X fixtures. Keep current main runtime and fs-safe changes; preserve existing containment and sharing controls. Co-authored-by: Kimiyu-186 <[email protected]> Co-authored-by: steipete <[email protected]>
Related: #163824, #164969
What Problem This Solves
Applied Workshop skills should become discoverable without manually adding each new name to a persistent agent list.
User Impact
User impact: agents discover all otherwise-eligible skills in their configured roots, including newly applied Workshop skills; the agent Skills panel becomes a read-only eligibility inventory.
Intentional upgrade policy change: Doctor retires
agents.defaults.skills,agents.entries.<id>.skills, and their historicalagents.listforms, with visible warnings and the normal private pre-migration backup. Prior agent-specific restrictions over current and future skill names are not preserved. An old[]no longer disables all skills. Review this change before upgrading if you rely on that persistent curation. Global per-skill disables and session selections remain effective, but are not equivalent preservation of agent-specific restrictions. No agent exclusion becomes a global disable.skills.allowBundled, prerequisites/platform eligibility, publishing/scanning, source precedence and agent-owned Workshop isolation remain separate. Tool permissions, credentials, sandbox and exec-approval controls are not relaxed.X guest containment previously depended on the empty skill list suppressing outside-repository read exceptions. This PR preserves that shipped restriction through the existing sender-bound, closure-bound read authority and inherited helper lineage instead. Guests and their hidden helpers cannot gain external skill/resource reads from normal discovery. Older hosts refuse guest mode with actionable support guidance; normal maintainer behavior is unchanged.
Why This Change Was Made
Persistent positive lists have legitimate role-focus, token-efficiency and behavioral/security-guardrail uses. This deliberately trades that optional persistent catalog curation for automatic skill discovery and learning, rather than claiming the old selection model was pointless or a hard host/tool authorization boundary.
The cutover removes the competing agent-name filter across discovery, prompts, catalog/read/search/slash/status, snapshots, CLI, UI and native consumers. Existing eligibility, session focus and refresh owners remain authoritative. Doctor owns retirement and backup; restrictive X resource authority stays with the existing admission/read owners, using a compatible optional restrictive fact rather than new public configuration.
Requested by @obviyus.
Work sessions
Evidence
9da070d4): only two generated config-baseline conflicts, regenerated canonically; preserved published ancestry and current main callers plusfs-safe0.24.0. Current-base boundary matrix: 47 tests / seven files / 111.92s, plus six new X monitor-publication cases (28.77s). Production and test typing and scoped lint passed after cutting over two stale main-added fixtures. Full current typed build: 8m30s; package integrity passed. Exact staged ratchets against the actual PR base passed without exceptions. X cold-import screening completed at 105.4 MB RSS; dirty-source screening is not a clean-revision qualification.Before
After
Release-only composition qualification: An earlier isolated candidate run observed anonymous maintainer child HTTP read 404 instead of 200, after creation/public-sharing assertions and before guest/revoked cases (47.55s suite). This failure remains recorded. A narrow controlled comparison then ran the original assertion and exact case, on unchanged pinned main 9da070d and exact published candidate 834f58d, in the same owned Testbox with Node 24.19.0, pnpm 12.5.1 and frozen dependencies. Both clean source trees passed, including maintainer anonymous reachability and guest/revoked denial: baseline 7.347s case / 44.78s suite, candidate 13.266s case / 59.28s suite (cold wrapper/preparation: 1005.62s and 1068.96s). HTTP router, URL resolver and public-share owner source hashes matched across the two inputs; fixture differences are the reviewed removal of its retired skill list. Paired isolated proof. No code, permission, assertion or expectation changed during qualification. The original 404's cause remains unestablished: passing replay is not claimed as a demonstrated bug fix or evidence that the failure was inherited. Direct sender/hidden-descendant resource, native-handoff, X ingress and monitor-publication checks remain passing.
Known proof limits: native Android/iOS builds were not run on this Linux host; no external X account/API behavior is claimed from resource-admission tests. Earlier validation exposed and repaired a lost Doctor warning handoff and a bounded-warning truncation issue. One test compilation raced a concurrent runtime build; serialized proof passed after fixing orchestration, not by changing product behavior.
Tested/reviewed integrated source:
834f58d1b5c971e480cb6b951bd8aee5f01a119e, treebe3938f5643258a5507245d3a7860ffc245b3152; the merge commit exactly matches the reviewed/checked tree. This is a same-repository branch: maintainers retain existing repository write access; GitHub rejects the fork-collaboration checkbox as cross-repository-only. No permissions changed. CI and human review remain separate from local/isolated checks.View the OpenClaw team session