feat(skills): add global/agent policy scope for issue #543#550
feat(skills): add global/agent policy scope for issue #543#550srxly888-creator wants to merge 3 commits intoValueCell-ai:mainfrom
Conversation
|
Follow-up for #543 tracking: I re-verified the current branch ( Validation run:
No new review comments are currently pending on this PR thread. If maintainers want stricter runtime parity checks, I can add an explicit UI warning snapshot/assert around "policy persisted but runtime may not enforce yet". |
|
Thanks for the implementation work on #543 and for the detailed write-up. Could you share a quick demo of the new behavior, ideally a GIF (or short video), covering:
Also, please include functional validation results (test steps + outcomes), for example:
A visual walkthrough plus verification notes would make review much easier. |
wooo, it looks like an amazing function that's tooooo complicated to make all of users understanding how to use.. |
Summary
This PR completes the remaining ClawX-side scope for #543 after cron agent binding landed.
Included in this PR
skillPolicy.globalEnabledskillPolicy.agentOverrides[agentId]skillPolicyInitializedGET /api/skills/policyPUT /api/skills/policy/globalPUT /api/skills/policy/agents/:agentIdenabledSkills/disabledSkillsfields.GlobalAgent(with agent selector)skills.update) + policy baseline.README.md,README.zh-CN.md,README.ja-JP.md) with scope capability notes.tests/unit/skill-policy.test.tsfor:._*metadata noise files in repo paths touched by this work.Why
This keeps ClawX aligned with #543 by providing:
Global+Agent),Runtime semantic guarantees are tracked upstream in OpenClaw:
Validation
pnpm run typecheck✅pnpm run lint✅ (existing unrelated warning inelectron/api/routes/providers.ts)pnpm test -- tests/unit/skill-policy.test.ts tests/unit/skills-errors.test.ts✅Notes