Skip to content

fix(skills): warn when a Workshop-applied skill is hidden by the agent allowlist - #164969

Closed
xydigitLybnnnn wants to merge 5 commits into
openclaw:mainfrom
xydigitLybnnnn:fix/163824-workshop-apply-allowlist-hint
Closed

xydigitLybnnnn wants to merge 5 commits into
openclaw:mainfrom
xydigitLybnnnn:fix/163824-workshop-apply-allowlist-hint

Conversation

@xydigitLybnnnn

@xydigitLybnnnn xydigitLybnnnn commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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.*.skills allowlist. 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 gets Unknown 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>.skills or agents.defaults.skills). The hint respects skill-allowlist inheritance: removing a per-agent list falls back to agents.defaults.skills (which may still exclude), and only removing the shared defaults list leaves skills unrestricted. Operators get the same warning from openclaw skills workshop apply. No config is mutated, so an explicit allowlist or skills: [] lockdown keeps its meaning.

Why This Change Was Made

Workshop apply writes the skill into the agent-scoped <state-dir>/agents/<id>/agent/workshop-skills directory but never consults the operator-owned agents.*.skills allowlist, 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_workshop apply result text (model-facing) and openclaw skills workshop apply human output (operator-facing; JSON output unchanged).

openclaw skills info already 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_workshop apply, model-facing):

Applied skill proposal auto-authored-tool-20261004-669b8b1b80. Note: the skill allowlist at "agents.entries.probe.skills" does not include "Auto Authored Tool", so this agent cannot see or use it. Add "Auto Authored Tool" to it. Removing it falls back to agents.defaults.skills, which may still exclude this skill.

CLI (openclaw skills workshop apply <id> --agent probe):

Applied auto-authored-20261004-07d6cf14dc -> /tmp/oc-163824-evidence/state/agents/probe/agent/workshop-skills/auto-authored/SKILL.md
Note: the skill allowlist at "agents.entries.probe.skills" does not include "Auto Authored", so this agent cannot see or use it. Add "Auto Authored" to it. Removing it falls back to agents.defaults.skills, which may still exclude this skill.

openclaw skills info auto-authored --agent probe (the exclusion the warning explains):

auto-authored Excluded by agent allowlist
...
  Source: openclaw-workshop
  Visible to model: no
  Agent allowlist: excludes this skill

Config after apply is unchanged — agents.entries.probe.skills is 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).
  • oxlint on changed files — 0 warnings / 0 errors; oxfmt --check clean.
  • tsgo:core, plus test shards services and agents-tools — passed.
  • pnpm openclaw --version — built and ran the fixed CLI (2026.9.8, head 3411fc1).

Note: this branch was rebased onto current main to resolve the earlier conflict; main had removed resolveSkillsWorkspaceForCommand, and the rebase now uses resolveSkillsWorkspace({ agentId: resolveAgentOption(...) }).

Authored with AI assistance (OpenClaw agent); the command output above was produced by running the fixed build locally.

@clawsweeper

clawsweeper Bot commented Oct 4, 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 cli CLI command changes agents Agent runtime and tooling size: S labels Oct 4, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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
Relationship: superseded
Canonical: #161057
Summary: The merged Workshop redesign resolves the visibility failure addressed by this warning.

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 details

Best 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.
@openclaw-barnacle openclaw-barnacle Bot closed this Oct 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 4, 2026
@xydigitLybnnnn
xydigitLybnnnn force-pushed the fix/163824-workshop-apply-allowlist-hint branch from d4d1d39 to 3411fc1 Compare October 4, 2026 15:57
@xydigitLybnnnn

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 4, 2026
@holgergruenhagen

Copy link
Copy Markdown
Contributor

Reporter of #163824 here. Two data points from the installation where this happened:

  1. Warning instead of editing the allowlist works for us. The issue listed both options as acceptable. Our allowlists are deliberate per-agent positive lists, so leaving the config to the operator and naming the exact path at apply time covers what we were missing. In both incidents (Sep 30 and Oct 2) the agent only found out through Unknown skill on claude-cli.

  2. The canonical-name finding from the review matters in practice. Our allowlists list skills by their canonical key, never by a display label. For example, agents.entries.digiwunder-internetagentur.skills contains holger-digiwunder-internetagentur-kundenabgang-loeschung, the Workshop skill from the Oct 2 incident, which we added to the allowlist by hand afterwards. An operator copies the name from the warning into that list. If the warning shows the display label (Auto Authored) instead of the installed key (auto-authored), the copied entry does not match and the skill stays hidden.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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.

@holgergruenhagen

Copy link
Copy Markdown
Contributor

@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 agents.entries.*.skills lists, sizes 0–19. Several skills are shared by a subset of agents, not by all and not by one:

Skill Agents that list it
browser-automation 5 of 6
github, summarize, holger-openclaw (custom, managed) 4 of 6
gh-issues 3 of 6
discord, skill-creator 2 of 6

One agent (a customer-facing support bot) deliberately has skills: [].

This is the documented pattern

  • docs/help/faq/skills-and-automation.md: "To install globally but limit visibility to some agents, keep the shared copy in ~/.openclaw/skills and control visibility with agents.defaults.skills / agents.entries.*.skills."
  • docs/tools/skills.md, section "Agent allowlists": "Skill location (precedence) and skill visibility (which agent can use it) are separate controls. Use allowlists to restrict which skills an agent sees, regardless of where they are loaded from." The same section documents skills: [] for agents that should see no skills.

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

  1. Copy it into each <workspace>/skills: identical copies that drift apart, and every edit has to be repeated.
  2. Put it in the shared managed dir: every agent sees it, including agents that should not. That costs prompt context and raises the chance an agent triggers a skill meant for another domain (e.g. our ops skill showing up for the customer-facing agent).
  3. Symlink into each workspace plus skills.load.allowSymlinkTargets: works, but it moves a visible config list into scattered filesystem state.

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 Unknown skill on claude-cli. That is a failure in how allowlists interact with Workshop, not a reason to drop the visibility control.

Questions

  1. After the change, how does an operator make one shared skill visible to some agents but not others, without copies?
  2. How does an agent opt out of skills entirely, the current skills: [] case?
  3. Would the "individual skill disables" that stay be per agent, or only global (skills.entries.<key>.enabled)?
  4. What happens to existing agents.entries.*.skills lists on upgrade? Are they ignored, migrated, or flagged by openclaw doctor?
  5. Was a narrower fix considered? For example: skills an agent creates through Workshop are always visible to that agent, plus a warning or doctor finding when an allowlist hides an installed skill. That would remove the failure mode from [Bug]: Applied Workshop skill stays invisible to its own agent when the agent has a skills allowlist #163824 and keep the documented model.

@holgergruenhagen

holgergruenhagen commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

#161057 removed the failure itself (learned Workshop skills stay discoverable for an agent with a skills allowlist, with regression coverage), so this warning is probably no longer needed. I'm closing #163824 as completed.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 30, 2026
@clawsweeper clawsweeper Bot removed P2 Normal backlog priority with limited blast radius. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper recorded closeout evidence for this proposed close.

@clawsweeper clawsweeper Bot closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Applied Workshop skill stays invisible to its own agent when the agent has a skills allowlist

3 participants