Simplify Galaxy permissions and preserve explicit user authorization

This commit is contained in:
2026-10-02 01:58:37 -05:00
parent 5a70995502
commit 2796fdd114
37 changed files with 1818 additions and 3530 deletions
+22
View File
@@ -46,6 +46,28 @@ fn shell_calls_become_domain_actions_without_a_proto_round_trip() {
));
}
#[test]
fn shell_permission_rationale_is_separate_from_executable_command() {
let action = action_from_tool_call(
"task-1",
&call(
"run_shell_command",
serde_json::json!({
"command": "git push origin master",
"rationale": "The user requested a normal push to origin/master."
}),
),
&SkillPathOrigin::Local,
&HashMap::new(),
)
.unwrap();
assert!(matches!(action.action,
AIAgentActionType::RequestCommandOutput { command, rationale: Some(rationale), .. }
if command == "git push origin master"
&& rationale == "The user requested a normal push to origin/master."
));
}
#[test]
fn transfer_control_calls_become_domain_actions() {
let action = action_from_tool_call(