A Bash capacity remediation report can convert reserve into a direct hold, shift, or shed action.

Program

Play the script to choose reserve and inspect the operational action.

capacity_shift_report.sh
#!/usr/bin/env bash

reserve=
if (( reserve >= 12 )); then
    action="hold"
elif (( reserve >= 6 )); then
    action="shift"
else
    action="shed"
fi
echo "reserve=$reserve $action"
#!/usr/bin/env bash

reserve=
if (( reserve >= 12 )); then
    action="hold"
elif (( reserve >= 6 )); then
    action="shift"
else
    action="shed"
fi
echo "reserve=$reserve $action"
#!/usr/bin/env bash

reserve=
if (( reserve >= 12 )); then
    action="hold"
elif (( reserve >= 6 )); then
    action="shift"
else
    action="shed"
fi
echo "reserve=$reserve $action"
reserve The reserve value is a deterministic selector, not a live capacity read.
action mapping Threshold branches map reserve to hold, shift, or shed.
report line The final line keeps the input and remediation action together.