Four targets (MWBCore, MWBNet, MWBMac, mwb) with a layering test that keeps MWBCore free of AppKit/CoreGraphics/Network; tools/gates.sh as the definition of done; tools/bundle.sh producing a signed dist/mwb.app; tools/lane.sh for lane worktrees; smoke binary with --version and --check-permissions. docs/loop.md records the Dev -> QA -> lead loop with the literal dispatch prompts, the wave schedule and escalations. Co-Authored-By: Claude Fable 5.1 <[email protected]>
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Lane worktrees for the Dev → QA → lead loop (docs/loop.md).
|
|
#
|
|
# tools/lane.sh new <feature> create ../mwb-lanes/<feature> on branch lane/<feature> from main
|
|
# tools/lane.sh list show live lanes
|
|
# tools/lane.sh done <feature> remove the worktree (branch is kept until the lead deletes it)
|
|
#
|
|
# One worktree per lane, never two agents in one tree (CLAUDE.md,
|
|
# Parallel lanes). The lead merges lane/<feature> into main with --no-ff
|
|
# after QA verdict and review, then runs `done`.
|
|
set -euo pipefail
|
|
root=$(cd "$(dirname "$0")/.." && pwd)
|
|
lanes="$(dirname "$root")/mwb-lanes"
|
|
cmd="${1:-}"; name="${2:-}"
|
|
|
|
case "$cmd" in
|
|
new)
|
|
[ -n "$name" ] || { echo "usage: $0 new <feature>" >&2; exit 2; }
|
|
[ -d "$root/docs/features/$name" ] || { echo "no docs/features/$name — write the brief first (docs/loop.md §2)" >&2; exit 2; }
|
|
mkdir -p "$lanes"
|
|
git -C "$root" worktree add -b "lane/$name" "$lanes/$name" main
|
|
echo "lane ready: $lanes/$name (branch lane/$name)"
|
|
;;
|
|
list)
|
|
git -C "$root" worktree list
|
|
;;
|
|
done)
|
|
[ -n "$name" ] || { echo "usage: $0 done <feature>" >&2; exit 2; }
|
|
git -C "$root" worktree remove "$lanes/$name"
|
|
echo "removed $lanes/$name; branch lane/$name kept"
|
|
;;
|
|
*)
|
|
echo "usage: $0 new <feature> | list | done <feature>" >&2; exit 2 ;;
|
|
esac
|