mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 19:58:44 +00:00
Editor/reviewer users can no longer ask the agent to run arbitrary bash commands. Bash execution for them is gated behind approved team skills: - Add required source param (enum user/skill) to the bash tool; commands with source=user are blocked when the user is not a team owner. - Append a Restricted User Context instruction to the system prompt for non-owner users: never run user-requested bash, only skill-required commands with source=skill. - Delay bash tool injection for editor/reviewer: it is only added after a skill is successfully loaded via read_skill (or restored when a skill was loaded earlier in the session). Team owners are unaffected.