Repository navigation
fix(skills): warn when a Workshop-applied skill is hidden by the agent allowlist - #164969
xydigitLybnnnn wants to merge 5 commits into
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. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close this PR as superseded: the merged Workshop redesign prevents the allowlist exclusion that this warning addresses. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Retain the released learned-skill visibility exemption and close the superseded warning proposal. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Retain the released learned-skill visibility exemption and close the superseded warning proposal. Do we have a high-confidence way to reproduce the issue? Current runtime selection, status output, and discovery regression coverage contradict the original allowlist exclusion; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The released redesign fixes visibility directly and retires the proposal lifecycle, so repairing or porting this warning would add no remaining user value. Security review: Security review cleared: The introduced diff adds diagnostics without changing write authority, operator configuration, dependencies, or execution permissions. AGENTS.md: found and applied where relevant. What I checked:
Codex review notes: model internal, reasoning medium; reviewed against 1d2e0b28b60b; fix evidence: release v2026.10.5-beta.1, commit cfee851150c5. |
…t allowlist Workshop apply writes the skill into the agent's own directory, but never checks the operator-owned agents.*.skills allowlist. A non-empty allowlist therefore silently hid the just-applied skill, and the agent only found out via "Unknown skill" on the CLI runtime. Surface the conflict at apply time in the agent tool and the CLI, naming the config path to change, without mutating operator config. Closes openclaw#163824
…ance Removing a per-agent agents.entries.<id>.skills list does not leave skills unrestricted: it inherits agents.defaults.skills, which may still exclude the applied skill. Only removing the shared defaults list is unrestricted, so the hint now says which of the two applies.
d4d1d39 to
3411fc1
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Reporter of #163824 here. Two data points from the installation where this happened:
|
|
Heads-up @xydigitLybnnnn: @obviyus has requested a PR removing the per-agent skill-name allowlists, with thorough tests and an explicit upgrade/migration story. That overlaps the Workshop visibility symptom addressed here, but changes the selection model rather than adding an apply-time warning. The requested scope preserves individual skill disables, per-session selection, bundled-skill selection, and tool/security controls. I have read this PR and am leaving its branch, authorship, and lifecycle untouched. The implementation will assess useful existing evidence and credit any reused work. Please flag any active overlapping removal/migration work so we can coordinate rather than duplicate it. |
|
@obviyus Reporter of #163824 here. I saw the heads-up above about removing the per-agent skill allowlists. Before that lands, I'd like to share how we use them, because removal would break a setup the current docs recommend. Our setup (OpenClaw 2026.9.8, 6 agents, more planned) Per-agent
One agent (a customer-facing support bot) deliberately has This is the documented pattern
Removing the allowlists removes the visibility control those docs tell operators to use. What would be left for a skill shared by 3–4 of 6 agents
Agreed on the underlying problem The silent hiding is real. It hit us twice (Sep 30 and Oct 2): a Workshop-applied skill was invisible to the agent that created it, and it only surfaced as Questions
|
|
ClawSweeper recorded closeout evidence for this proposed close.
|
Closes #163824
What Problem This Solves
Fixes: a skill created and applied through Skill Workshop stays hidden from the agent that authored it when that agent has a non-empty
agents.*.skillsallowlist. Apply reports success, but the skill is filtered out (Excluded by agent allowlist,Visible to model: no), and on the CLI runtime the agent only finds out when it getsUnknown skill.User Impact
Applying a Workshop proposal now warns, at apply time, that the agent's own skill allowlist hides the new skill, and names the exact config path to change (
agents.entries.<id>.skillsoragents.defaults.skills). The hint respects skill-allowlist inheritance: removing a per-agent list falls back toagents.defaults.skills(which may still exclude), and only removing the shared defaults list leaves skills unrestricted. Operators get the same warning fromopenclaw skills workshop apply. No config is mutated, so an explicit allowlist orskills: []lockdown keeps its meaning.Why This Change Was Made
Workshop apply writes the skill into the agent-scoped
<state-dir>/agents/<id>/agent/workshop-skillsdirectory but never consults the operator-ownedagents.*.skillsallowlist, which is the single source of truth for per-agent skill visibility. Auto-editing that config from the apply path would break config ownership and lockdown intent, so the existing allowlist owner now exposes the conflict and the apply surfaces it:resolveAgentSkillAllowlistBlockPath(...)/formatAgentSkillAllowlistBlockHint(...)in the agent-skill filter owner, reusing the same effective-filter resolution the runtime uses.skill_workshopapply result text (model-facing) andopenclaw skills workshop applyhuman output (operator-facing; JSON output unchanged).openclaw skills infoalready reports the exclusion, so it is left as-is.Evidence
Real apply output after the fix, in an isolated state dir with
agents.entries.probe.skills = ["github"].Agent tool (
skill_workshopapply, model-facing):CLI (
openclaw skills workshop apply <id> --agent probe):openclaw skills info auto-authored --agent probe(the exclusion the warning explains):Config after apply is unchanged —
agents.entries.probe.skillsis still["github"], so no operator config was mutated.Local validation on this branch (measured with
--maxWorkers=1):src/agents/tools/skill-workshop-tool.test.ts— 20 passed, 54.5s test wall (99.1s shard).src/skills/discovery/chat-commands.discovery.test.ts— 11 passed, 54.1s test wall (59.1s shard).oxlinton changed files — 0 warnings / 0 errors;oxfmt --checkclean.tsgo:core, plus test shardsservicesandagents-tools— passed.pnpm openclaw --version— built and ran the fixed CLI (2026.9.8, head3411fc1).Note: this branch was rebased onto current
mainto resolve the earlier conflict;mainhad removedresolveSkillsWorkspaceForCommand, and the rebase now usesresolveSkillsWorkspace({ agentId: resolveAgentOption(...) }).Authored with AI assistance (OpenClaw agent); the command output above was produced by running the fixed build locally.