summaryrefslogtreecommitdiff
path: root/tests/claude-code/test-subagent-driven-development.sh
diff options
context:
space:
mode:
authorCL Kao <clkao@datarecce.io>2026-01-29 15:12:50 -0800
committerCL Kao <clkao@datarecce.io>2026-01-29 15:12:50 -0800
commitc7816ee2a6ee81f8cdfb1b43fcf2f70612ea0f90 (patch)
tree0bf34153d582e27d7d67167742d7821d6ad778c5 /tests/claude-code/test-subagent-driven-development.sh
parentb323e3580535c969eb97c923fb1acddf8a7a2b35 (diff)
docs: change main branch red flag to require explicit user consent
Instead of prohibiting main branch work entirely, allow it with explicit user consent. This is more flexible while still ensuring users are aware of the implications. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/claude-code/test-subagent-driven-development.sh')
-rwxr-xr-xtests/claude-code/test-subagent-driven-development.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/claude-code/test-subagent-driven-development.sh b/tests/claude-code/test-subagent-driven-development.sh
index fe0c97c..20d8d4c 100755
--- a/tests/claude-code/test-subagent-driven-development.sh
+++ b/tests/claude-code/test-subagent-driven-development.sh
@@ -154,7 +154,7 @@ echo "Test 9: Main branch red flag..."
output=$(run_claude "In subagent-driven-development, is it okay to start implementation directly on the main branch?" 30)
-if assert_contains "$output" "worktree\|feature.*branch\|not.*main\|never.*main\|avoid.*main\|don't.*main" "Warns against main branch"; then
+if assert_contains "$output" "worktree\|feature.*branch\|not.*main\|never.*main\|avoid.*main\|don't.*main\|consent\|permission" "Warns against main branch"; then
: # pass
else
exit 1