← back to Homesonspec
build-loop: scope David Weekley sweep to its 7 served states (Cody-gated: avoid wasted sitemap GETs / WAF-bait)
7c8f49beb8a02240c8ebe45fd10a8e24ef99d601 · 2026-07-28 10:23:32 -0700 · Steve Abrams
Files touched
Diff
commit 7c8f49beb8a02240c8ebe45fd10a8e24ef99d601
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jul 28 10:23:32 2026 -0700
build-loop: scope David Weekley sweep to its 7 served states (Cody-gated: avoid wasted sitemap GETs / WAF-bait)
---
scripts/build-loop.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/scripts/build-loop.sh b/scripts/build-loop.sh
index 65397748..acdecfcf 100644
--- a/scripts/build-loop.sh
+++ b/scripts/build-loop.sh
@@ -50,7 +50,11 @@ slug() { fullname "$1" | tr '[:upper:] ' '[:lower:]-'; } # "North Carolina" ->
# 4x the inventory lands per wall-clock second. $0 (no LLM anywhere in ingestion).
sweep_adapter() {
local kind="$1"
- for S in $STATES; do
+ # optional $2 = a scoped state list; regional/limited-footprint builders pass their
+ # served states so we don't fire wasted sitemap GETs at states they don't build in
+ # (Cody-gated: David Weekley serves 7 states, not 42 — avoid the WAF-bait no-yield sweep).
+ local states="${2:-$STATES}"
+ for S in $states; do
[ -f "$STOP" ] && break
case "$kind" in
kb) KBHOME_STATE="$S" CLI kb-home-site | sed "s/^/ kb $S: /" ;;
@@ -86,7 +90,7 @@ while [ ! -f "$STOP" ] && [ "$sweep" -lt "$MAX_SWEEPS" ]; do
sweep_adapter plt &
sweep_adapter tri &
sweep_adapter len &
- sweep_adapter dw &
+ sweep_adapter dw "TX FL NC AZ GA SC IN" & # David Weekley: only its 7 served states
# Toll = communities-only (0 spec homes until wave-2 QMI); its data changes on the order of
# weeks, so refresh ~daily (every 8th ~2.5h sweep) not every sweep (DTD 4/5 throttle 2026-07-28).
if [ $((sweep % 8)) -eq 1 ]; then sweep_national & fi
← d4ba9f8e build-loop: add David Weekley (100% priced, 7 states) to rot
·
back to Homesonspec
·
build-loop: correct the misleading 'cheap no-op' comment (un 1a7632dd →