Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

AI proceeds with execution and attempts policy bypass without proper user clarification

Open KnightCoder27 opened this issue 1 year ago • 1 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.1.42

Bug Description

When encountering an error, a policy restriction, or an ambiguous situation, the AI does not stop to prompt the user for a clear next step. Example: While running a TypeScript script, the AI hit a PowerShell execution policy restriction. Instead of stopping, it attempted to bypass the policy using:

powershell -ExecutionPolicy Bypass -Command "npm run type-check"

Switching shells to avoid the restriction entirely by running:

cmd /c <command>

inside PowerShell, likely as a workaround to force execution despite the policy.

Even when it asks the user to run the command, the AI should either stop entirely or ask for explicit clarification — not attempt to bypass restrictions automatically.

Steps to Reproduce

  1. Trigger an AI task that involves running a TypeScript script under a restrictive PowerShell execution policy.
  2. Observe AI behavior when the policy restriction is hit.
  3. Notice it tries to bypass restrictions with ExecutionPolicy Bypass or cmd /c.

Expected Behavior

  1. Stop execution upon encountering a policy restriction or ambiguous step.
  2. Ask the user for explicit clarification or approval before continuing.
  3. Never attempt to bypass restrictions without user consent.

Conversation ID

93886587-a9aa-48bf-ae3d-6325ae8f1064 737c2fb8-f82d-4919-a631-e7e3de957912 532e2cbc-2a8c-4821-a0bf-963d1b88a1e7 3a7e2ec1-20c1-4966-99c7-ccc7306bfcde

Additional Context

No response

KnightCoder27 avatar Aug 12 '25 13:08 KnightCoder27

We're closing this issue due to inactivity. This issue hasn't received any community engagement or updates since it was reported.

If you're still experiencing this problem with the latest version of Kiro, please feel free to open a new issue with:

  • Current Kiro version
  • Steps to reproduce
  • Any relevant logs or screenshots

Thank you for your contribution to making Kiro better!

AnilMaktala avatar Jan 15 '26 16:01 AnilMaktala