speakeasy-api / speakeasy-api/kit
Headless ACP subagents cannot request permission
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 40
- Forks
- 4
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 148
Description
Kit handles nested ACP RequestPermissionRequest values with a fail-closed profile policy so a headless child cannot wait indefinitely for a human response. The default deny policy selects only a rejection option when available, while cancel returns Cancelled. As a result, ACP harnesses that require approval for protected actions must be configured in a noninteractive or pretrusted mode, or those actions fail.
A future design could route permission requests through the parent interaction surface while preserving cancellation, attribution, and noninteractive safety. Until then this limitation should remain explicit in harness setup guidance.
Relevant implementation: src/acp_child.rs request handler.
Current status
Profiles now have a fail-closed permissions = "deny" | "cancel" policy. deny selects only ACP rejection options and never approval; cancel preserves the previous behavior. Interactive routing to a parent user remains unresolved.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the request handler in src/acp_child.rs and trace how nested RequestPermissionRequest values use the profiles' permissions = "deny" | "cancel" policy. Define the parent-routing design and its cancellation, attribution, and noninteractive-safety behavior before implementing; done means the agreed behavior is covered without allowing headless children to wait indefinitely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- authorization, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100