Operational Remediation Reports
Capacity Shift Report
Pick an Action
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
Replay: real traced execution (multi-file project)
#!/usr/bin/env bash
reserve=8
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=4
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=16
if (( reserve >= 12 )); then
action="hold"
elif (( reserve >= 6 )); then
action="shift"
else
action="shed"
fi
echo "reserve=$reserve $action"
reserve ← 8
3reserve=84if (( reserve >= 12 )); thenvalues this step8reserveif (( reserve >= 12 )); then
3reserve=84if (( reserve >= 12 )); then5 action="hold"values this step8reserveelif (( reserve >= 6 )); then
5 action="hold"6elif (( reserve >= 6 )); then7 action="shift"values this step8reserveaction ← shift
6elif (( reserve >= 6 )); then7 action="shift"8elsevalues this stepshiftactionecho "reserve=$reserve $action"
10fi11echo "reserve=$reserve $action"outputreserve=8 shiftvalues this step8reserveshiftaction
reserve ← 4
3reserve=44if (( reserve >= 12 )); thenvalues this step4reserveif (( reserve >= 12 )); then
3reserve=44if (( reserve >= 12 )); then5 action="hold"values this step4reserveelif (( reserve >= 6 )); then
5 action="hold"6elif (( reserve >= 6 )); then7 action="shift"values this step4reserveaction ← shed
8else9 action="shed"10fivalues this stepshedactionecho "reserve=$reserve $action"
10fi11echo "reserve=$reserve $action"outputreserve=4 shedvalues this step4reserveshedaction
reserve ← 16
3reserve=164if (( reserve >= 12 )); thenvalues this step16reserveif (( reserve >= 12 )); then
3reserve=164if (( reserve >= 12 )); then5 action="hold"values this step16reserveaction ← hold
4if (( reserve >= 12 )); then5 action="hold"6elif (( reserve >= 6 )); thenvalues this stepholdactionecho "reserve=$reserve $action"
10fi11echo "reserve=$reserve $action"outputreserve=16 holdvalues this step16reserveholdaction
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.