Skip to content

Commit 7d6c701

Browse files
Alex Holmbergclaude
authored andcommitted
fix(11.3-01): enforce human-in-the-loop for deployment changes
When user requests a change (e.g., "make it public", "use GCP"), the agent was deploying immediately instead of showing a new preview. Updated tool description to be explicit: - A change request is NOT a deployment confirmation - Must show NEW preview with updated settings - Only deploy after explicit "yes", "deploy", "confirm" Flow: request → preview → change request → NEW preview → confirm → deploy Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1b451fa commit 7d6c701

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/agent/tools/platform/deploy_service.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,16 @@ Uses provided overrides or recommendation defaults to deploy immediately.
127127
128128
**Example flow:**
129129
User: "deploy this service"
130-
1. Tool returns analysis + recommendation + confirmation prompt
131-
2. User: "yes, deploy it" or "use GCP instead"
132-
3. Call tool again with confirmed settings and preview_only=false
130+
1. Call with preview_only=true → Shows recommendation
131+
2. User: "yes, deploy it" → Call with preview_only=false to deploy
132+
3. User: "make it public" → Call with preview_only=true AND is_public=true to show NEW preview
133+
4. User: "yes" → NOW call with preview_only=false to deploy
134+
135+
**CRITICAL - Human in the loop:**
136+
- NEVER deploy (preview_only=false) immediately after user requests a CHANGE
137+
- If user says "make it public", "use GCP", "change region", etc. → show NEW preview first
138+
- Only deploy after user explicitly confirms the final settings with "yes", "deploy", "confirm"
139+
- A change request is NOT a deployment confirmation
133140
134141
**Prerequisites:**
135142
- User must be authenticated (sync-ctl auth login)

0 commit comments

Comments
 (0)