feat(skills): execute skill scripts behind the double-safety gate #163
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#160 Epic: Agent Skills — Full Resource Support and Safe Execution
cleveragents/cleveractors-core
#161 feat(skills): add skill-local safe_mode and resource classification
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feat(skills): execute skill scripts behind the double-safety gatefeature/m1-skill-script-executionBackground and context
ADR-2034 D-10 adds the execution action the Agent Skills format requires:
bundled scripts must be runnable. The current
skilltool can only return ascript's source. ADR-2034 D-9 requires a double-safety gate before any script
runs: global safety false AND skill safety false. This issue implements that
execution path without creating a second, uncontrolled subprocess surface.
Current behavior
scripts/entries are readable but there is no way to execute them.skill_name,resource,offset, andmax_chars.a script to
references/orassets/cannot resolve.Expected behavior
execute(boolean, default false),args(list of strings), andtimeout(number) to the synthesizedskilltool.execute: truerequiresresource; references, assets, and root-level filesare never executable.
scripts/and non-standard entries may be executed, and only when theD-9 gate is satisfied. The global safety state follows the existing effective
unsafe grant; the skill must declare
safe_mode: false.(
allow_shell: truefor the shell-backed path); the skill gate must notbypass it.
directory under the sandbox root, use the skill root as the working directory,
select the interpreter by extension or shebang, pass
args, honor theexisting timeout ceilings, return stdout/stderr in a
[SKILL_SCRIPT_EXECUTED]envelope, and clean up the temporary tree on everypath.
ExecutionErrorwith an actionable message naming the states and path.Acceptance criteria
execute: truewithoutresourcefails.execute: trueonreferences/,assets/, or a root file fails.succeeds only when both are false and
allow_shellis enabled.scripts/runs with positionalargs; relative readsof
references/andassets/work from the materialized skill root.ExecutionError; the temporarydirectory is removed in both cases.
pruning behaviour.
a Robot integration scenario executes a bundled script end to end.
nox -s coverage_report.Supporting information
ADR-2035 (sandbox/security precedent)
cleveractors.agents.llm_tools,cleveractors.agents.tool.ToolAgent._skill_tool,cleveractors.agents.llm.LLMAgentfeatures/agent_skills.feature,robot/agent_skills.robotSubtasks
skilltool schema withexecute,args, andtimeoutallow_shellcompositionnox -s coverage_reportnox(all default sessions), fix any errorsDefinition of Done
This issue is complete when:
Metadata exactly.
master, reviewed, and merged.