[object Object]

← back to Homesonspec

build-loop: West Coast first + deeper per-state cap (CAP=120)

168b21d8237a1eec859ce7f9bc45018f351b5e48 · 2026-07-28 07:16:23 -0700 · Steve

Reorder sweep to lead with CA/OR/WA/NV/AZ/ID/HI, then the rest by volume; raise
per-(adapter,state) community cap 40->120 so California actually fills in.

Files touched

Diff

commit 168b21d8237a1eec859ce7f9bc45018f351b5e48
Author: Steve <steve@designerwallcoverings.com>
Date:   Tue Jul 28 07:16:23 2026 -0700

    build-loop: West Coast first + deeper per-state cap (CAP=120)
    
    Reorder sweep to lead with CA/OR/WA/NV/AZ/ID/HI, then the rest by volume; raise
    per-(adapter,state) community cap 40->120 so California actually fills in.
---
 scripts/build-loop.sh | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/scripts/build-loop.sh b/scripts/build-loop.sh
index 9420d94..902213d 100644
--- a/scripts/build-loop.sh
+++ b/scripts/build-loop.sh
@@ -19,10 +19,11 @@ LOG() { echo "[$(date '+%m-%d %H:%M:%S')] $*"; }
 PSQL() { psql "$DATABASE_URL" -tAc "$1" 2>/dev/null; }
 CLI() { npx tsx src/cli.ts --adapter="$1" 2>&1 | grep -E '"published"|"pages"|Error|error|inactive|blocked|disallow' | head -3; }
 
-# NATIONWIDE — the top homebuilding states by new-home volume (covers ~99% of national
-# builder inventory). Adapters filter by state; a state a builder doesn't serve is a
-# cheap 0-published no-op, so listing broadly is safe.
-STATES="TX FL CA NC GA AZ SC TN CO WA OH PA VA NV UT ID OR IN MD MI MN MO AL OK KY LA NJ NM NY WI AR KS NE IA MS WV CT DE NH ME RI HI"
+# NATIONWIDE — WEST COAST FIRST (Steve 2026-07-28), then the rest by volume.
+# Adapters filter by state; a state a builder doesn't serve is a cheap 0-published no-op.
+# CAP = communities/homes per (adapter,state) per sweep — deep enough to actually fill CA.
+CAP="${CAP:-120}"
+STATES="CA OR WA NV AZ ID HI TX FL NC GA SC TN CO OH PA VA UT IN MD MI MN MO AL OK KY LA NJ NM NY WI AR KS NE IA MS WV CT DE NH ME RI"
 fullname() { case "$1" in
   AL) echo "Alabama";; AK) echo "Alaska";; AZ) echo "Arizona";; AR) echo "Arkansas";;
   CA) echo "California";; CO) echo "Colorado";; CT) echo "Connecticut";; DE) echo "Delaware";;
@@ -58,9 +59,9 @@ while [ ! -f "$STOP" ] && [ "$sweep" -lt "$MAX_SWEEPS" ]; do
     [ -f "$STOP" ] && break
     LOG "-- $S --"
     KBHOME_STATE="$S"                        CLI kb-home-site    | sed "s/^/  kb  $S: /"
-    DRHORTON_STATE="$(slug "$S")" DRHORTON_PAGE_LIMIT=40  CLI dr-horton-site | sed "s/^/  drh $S: /"
-    PULTE_STATE="$(fullname "$S")" PULTE_PAGE_LIMIT=40     CLI pultegroup-site | sed "s/^/  plt $S: /"
-    TRIPOINTE_STATE="$(lc "$S")" TRIPOINTE_PAGE_LIMIT=40   CLI tri-pointe-site | sed "s/^/  tri $S: /"
+    DRHORTON_STATE="$(slug "$S")" DRHORTON_PAGE_LIMIT=$CAP  CLI dr-horton-site | sed "s/^/  drh $S: /"
+    PULTE_STATE="$(fullname "$S")" PULTE_PAGE_LIMIT=$CAP     CLI pultegroup-site | sed "s/^/  plt $S: /"
+    TRIPOINTE_STATE="$(lc "$S")" TRIPOINTE_PAGE_LIMIT=$CAP   CLI tri-pointe-site | sed "s/^/  tri $S: /"
   done
   # drain enrichment queue
   for i in $(seq 1 40); do

← 53b1804 collectors: add Ashton Woods adapter (national; JSON-LD QMI,  ·  back to Homesonspec  ·  build-loop: max-it — fan out 4 adapters in parallel (per-dom e118a5b →