carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1#!/usr/bin/env bash
2# The same builder session fixes review findings and redeploys.
3# builders/run-fix.sh <slug> <fix|security> <findings-file>
4set -euo pipefail
5slug=$1 phase=$2 findings=$3
6repo=$(cd "$(dirname "$0")/.." && pwd)
7session=$(cat "$repo/builders/logs/$slug.session")
8prompt="An independent reviewer read your app. Fix the findings below (still unattended: no questions), keep the shared suite passing locally, redeploy with make deploy, re-run scripts/test-app.sh against https://todo-$slug.bfj.oncarlos.com, commit, and update STATUS.md. Fix only what is listed. If you disagree with a finding, leave the code as it is and say why in STATUS.md under '## Review findings not fixed'.
9
10$(cat "$findings")"
11cd "$repo/.worktrees/$slug"
12timeout 2h "$repo/builders/claude.sh" -p --resume "$session" "$prompt" \
13 > "$repo/builders/logs/$slug.$phase.jsonl" 2> "$repo/builders/logs/$slug.$phase.stderr"
14echo "$slug $phase exited $?"
15