Skip to content

fix(core): skip exec approval for permissionless skill scripts#13791

Merged
celia-oai merged 1 commit intomainfrom
dev/cc/fix
Mar 7, 2026
Merged

fix(core): skip exec approval for permissionless skill scripts#13791
celia-oai merged 1 commit intomainfrom
dev/cc/fix

Conversation

@celia-oai
Copy link
Copy Markdown
Collaborator

Summary

  • Treat skill scripts with no permission profile, or an explicitly empty one, as permissionless and run them with the turn's existing sandbox instead of forcing an exec approval prompt.
  • Keep the approval flow unchanged for skills that do declare additional permissions.
  • Update the skill approval tests to assert that permissionless skill scripts do not prompt on either the initial run or a rerun.

Why

Permissionless skills should inherit the current turn sandbox directly. Prompting for exec approval in that case adds friction without granting any additional capability.

Comment on lines +585 to +587
return Ok(EscalationDecision::escalate(
EscalationExecution::TurnDefault,
));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to switch based on approval_policy is RejectAskForApproval, or is that enforced at some other layer?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i.e. if RejectAskForApproval's sandboxApproval is false, I actually do expect an approval prompt in that case.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be a follow-up PR!

@celia-oai celia-oai merged commit 8b81284 into main Mar 7, 2026
51 of 53 checks passed
@celia-oai celia-oai deleted the dev/cc/fix branch March 7, 2026 00:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants