Operational Reliability Reports
Capacity Reserve Reliability
Label Margins
A Bash report can derive a capacity reserve number and classify it with fixed thresholds.
Program
Play the script to choose demand and inspect the reserve status line.
capacity_reserve_reliability_report.sh
Replay: real traced execution (multi-file project)
#!/usr/bin/env bash
demand=72
capacity=100
reserve=$((capacity - demand))
if (( reserve >= 25 )); then
status="stable"
elif (( reserve >= 10 )); then
status="watch"
else
status="tight"
fi
echo "demand=$demand reserve=$reserve status=$status"
#!/usr/bin/env bash
demand=88
capacity=100
reserve=$((capacity - demand))
if (( reserve >= 25 )); then
status="stable"
elif (( reserve >= 10 )); then
status="watch"
else
status="tight"
fi
echo "demand=$demand reserve=$reserve status=$status"
#!/usr/bin/env bash
demand=95
capacity=100
reserve=$((capacity - demand))
if (( reserve >= 25 )); then
status="stable"
elif (( reserve >= 10 )); then
status="watch"
else
status="tight"
fi
echo "demand=$demand reserve=$reserve status=$status"
demand ← 72
3demand=724capacity=100values this step72demandcapacity ← 100
3demand=724capacity=1005reserve=$((capacity - demand))values this step100capacityreserve ← 28
4capacity=1005reserve=$((capacity - demand))6if (( reserve >= 25 )); thenvalues this step28reserve100capacity72demandif (( reserve >= 25 )); then
5reserve=$((capacity - demand))6if (( reserve >= 25 )); then7 status="stable"values this step28reservestatus ← stable
6if (( reserve >= 25 )); then7 status="stable"8elif (( reserve >= 10 )); thenvalues this stepstablestatusecho "demand=$demand reserve=$reserve status=$status"
12fi13echo "demand=$demand reserve=$reserve status=$status"outputdemand=72 reserve=28 status=stablevalues this step72demand28reservestablestatus
demand ← 88
3demand=884capacity=100values this step88demandcapacity ← 100
3demand=884capacity=1005reserve=$((capacity - demand))values this step100capacityreserve ← 12
4capacity=1005reserve=$((capacity - demand))6if (( reserve >= 25 )); thenvalues this step12reserve100capacity88demandif (( reserve >= 25 )); then
5reserve=$((capacity - demand))6if (( reserve >= 25 )); then7 status="stable"values this step12reserveelif (( reserve >= 10 )); then
7 status="stable"8elif (( reserve >= 10 )); then9 status="watch"values this step12reservestatus ← watch
8elif (( reserve >= 10 )); then9 status="watch"10elsevalues this stepwatchstatusecho "demand=$demand reserve=$reserve status=$status"
12fi13echo "demand=$demand reserve=$reserve status=$status"outputdemand=88 reserve=12 status=watchvalues this step88demand12reservewatchstatus
demand ← 95
3demand=954capacity=100values this step95demandcapacity ← 100
3demand=954capacity=1005reserve=$((capacity - demand))values this step100capacityreserve ← 5
4capacity=1005reserve=$((capacity - demand))6if (( reserve >= 25 )); thenvalues this step5reserve100capacity95demandif (( reserve >= 25 )); then
5reserve=$((capacity - demand))6if (( reserve >= 25 )); then7 status="stable"values this step5reserveelif (( reserve >= 10 )); then
7 status="stable"8elif (( reserve >= 10 )); then9 status="watch"values this step5reservestatus ← tight
10else11 status="tight"12fivalues this steptightstatusecho "demand=$demand reserve=$reserve status=$status"
12fi13echo "demand=$demand reserve=$reserve status=$status"outputdemand=95 reserve=5 status=tightvalues this step95demand5reservetightstatus
reserve
The script derives reserve from fixed capacity minus selected demand.
classification
The branch labels the margin as stable, watch, or tight.
deterministic input
Demand is the only selector; no host capacity data is read.