Approval Request
Approval Request explains why an Agent needs additional authority and collects one bounded permission decision. The host application owns policy evaluation, expiration, persistence, and execution after approval.
Allow a command outside the project?
The Agent wants to inspect the installed Node.js runtime.
- Command
node --version- Working directory
C:\Program Files\nodejs
Usage
Parameters
States and variants
Render only scopes that policy actually permits. Finished states should replace decision controls with immutable outcome text, actor, and time. If approval expires while focused, retain the explanation, disable stale controls, and announce that a fresh request is required.
The component emits no policy events. Use native submit for the selected scope and ordinary button events for denial or cancellation. Applications may cancel Submit to perform an asynchronous decision.
Accessibility
Use a heading referenced by aria-labelledby. Explain the concrete resource and consequence before the controls. Scope options use native radio inputs in a Fieldset. Move focus to the request heading only when the request blocks the current task; otherwise announce its arrival without stealing focus. Never use color as the only distinction between pending, approved, and denied states.
