Skip to content

Pipeline Plan 191

Seth Ford edited this page Mar 1, 2026 · 1 revision

Plan is ready for review. Here's the summary:

Scope: Single file change to scripts/sw-daemon-test.sh

What it does:

  1. Adds test_setup_dirs_self_healing_worktree — extracts the real setup_dirs() from sw-daemon.sh, runs it in a controlled temp directory with no .claude/worktrees/ present, then asserts the directory gets created and .gitignore gets updated
  2. Registers the test in the existing tests=() array

Why this approach:

  • Tests the real production function (not a redefinition) — catches actual regressions
  • Uses sed extraction + subshell isolation — safe, no side effects on test env
  • Follows existing test harness patterns (PASS/FAIL, assertion helpers, run_test)

Clone this wiki locally