fix(monitoring): drop unbound LADDER_RANGES in GOA ladder

This commit is contained in:
Hernâni Marques 2026-07-16 19:40:45 +02:00
parent 01900bab9a
commit 66815f81c2
No known key found for this signature in database
3 changed files with 34 additions and 14 deletions

View file

@ -207,8 +207,10 @@ LADDER_LIST=$(build_ladder)
# shellcheck disable=SC2086
set -- $LADDER_LIST
if [ "$#" -gt "$LADDER_MAX_RUNGS" ]; then
# shellcheck disable=SC2046
set -- $(printf '%s\n' "$@" | head -n "$LADDER_MAX_RUNGS")
fi
LADDER_N=$#
info "ladder plan" "$*"
printf '%s\n' "$@" >"$SCRATCH/ladder-plan.txt"
@ -229,7 +231,14 @@ for AMT in "$@"; do
section "ladder · rung $rung $AMT"
tag=$(printf '%s' "$AMT" | tr '.:' '__')
range_note=$(printf '%s' "$LADDER_RANGES" | awk -v n="$rung" '{print $n}')
# TSV "range" column: fixed pins at ends, random mids (no legacy LADDER_RANGES)
if [ "$rung" -eq 1 ]; then
range_note="pin:0"
elif [ "$rung" -eq "$LADDER_N" ]; then
range_note="pin:max"
else
range_note="random"
fi
t_rung=$(now_ms)
ms_mint=0 ms_accept=0 ms_confirm=0 ms_settle=0
note=""