Operational Reliability Reports
Incident Queue Reliability Report
Count incidents visible at a minimum severity and summarize high-severity work.
incident queue
A deterministic incident queue can be filtered into visible and high-severity counts without modeling live tickets.
Incident Queue Reliability Report
incident_queue.lua
Replay: real traced execution (multi-file project)
local min_severity = 2
local visible = 0
local high = 0
for _, severity in ipairs({1, 2, 3, 3}) do
if severity >= min_severity then
visible = visible + 1
end
if severity >= 3 then
high = high + 1
end
end
print("min=" .. min_severity .. " visible=" .. visible .. " high=" .. high)
local min_severity = 1
local visible = 0
local high = 0
for _, severity in ipairs({1, 2, 3, 3}) do
if severity >= min_severity then
visible = visible + 1
end
if severity >= 3 then
high = high + 1
end
end
print("min=" .. min_severity .. " visible=" .. visible .. " high=" .. high)
local min_severity = 3
local visible = 0
local high = 0
for _, severity in ipairs({1, 2, 3, 3}) do
if severity >= min_severity then
visible = visible + 1
end
if severity >= 3 then
high = high + 1
end
end
print("min=" .. min_severity .. " visible=" .. visible .. " high=" .. high)
min_severity ← 2, visible ← 0, high ← 0
1local min_severity→ 2 = 2 --@min_severity=1, 32local visible→ 0 = 03local high→ 0 = 0_, severity in ipairs({1, 2, 3, 3}) do
pass 1 of 45for _1, severity1 in ipairs({1, 2, 3, 3}) do6 if severity >= min_severity then7 visible = visible + 1All 4 passes — pass 1 is the card above pass _severityhigh1 1 1 — 2 2 2 — 3 3 3 0 → 1 4 4 3 1 → 2 visible ← 1
pass 1 of 35for _, severity in ipairs({1, 2, 3, 3}) do6 if severity2 >= min_severity2 then7 visible→ 1 = visible + 18 endAll 3 passes — pass 1 is the card above pass severityvisiblehigh1 2 0 → 1 — 2 3 1 → 2 0 → 1 3 3 2 → 3 1 → 2 high ← 1
pass 1 of 28end9if severity3 >= 3 then10 high→ 1 = high + 111endhigh ← 2
pass 2 of 28end9if severity3 >= 3 then10 high→ 2 = high + 111endprint("min=" .. min_severity .. " visible=" .. visible .. " high=" .. …
14print("min=" .. min_severity2 .. " visible=" .. visible3 .. " high=" .. high2)outputmin=2 visible=3 high=2
min_severity ← 1, visible ← 0, high ← 0
1local min_severity→ 1 = 12local visible→ 0 = 03local high→ 0 = 0_, severity in ipairs({1, 2, 3, 3}) do
pass 1 of 45for _1, severity1 in ipairs({1, 2, 3, 3}) do6 if severity >= min_severity then7 visible = visible + 1All 4 passes — pass 1 is the card above pass _severityhigh1 1 1 — 2 2 2 — 3 3 3 0 → 1 4 4 3 1 → 2 visible ← 1
pass 1 of 45for _, severity in ipairs({1, 2, 3, 3}) do6 if severity1 >= min_severity1 then7 visible→ 1 = visible + 18 endAll 4 passes — pass 1 is the card above pass severityvisiblehigh1 1 0 → 1 — 2 2 1 → 2 — 3 3 2 → 3 0 → 1 4 3 3 → 4 1 → 2 high ← 1
pass 1 of 28end9if severity3 >= 3 then10 high→ 1 = high + 111endhigh ← 2
pass 2 of 28end9if severity3 >= 3 then10 high→ 2 = high + 111endprint("min=" .. min_severity .. " visible=" .. visible .. " high=" .. …
14print("min=" .. min_severity1 .. " visible=" .. visible4 .. " high=" .. high2)outputmin=1 visible=4 high=2
min_severity ← 3, visible ← 0, high ← 0
1local min_severity→ 3 = 32local visible→ 0 = 03local high→ 0 = 0_, severity in ipairs({1, 2, 3, 3}) do
pass 1 of 45for _1, severity1 in ipairs({1, 2, 3, 3}) do6 if severity >= min_severity then7 visible = visible + 1All 4 passes — pass 1 is the card above pass _severitymin_severityvisiblehigh1 1 1 — — — 2 2 2 — — — 3 3 3 3 0 → 1 0 → 1 4 4 3 3 1 → 2 1 → 2 visible ← 1
pass 1 of 25for _, severity in ipairs({1, 2, 3, 3}) do6 if severity3 >= min_severity3 then7 visible→ 1 = visible + 18 endhigh ← 1
pass 1 of 28end9if severity3 >= 3 then10 high→ 1 = high + 111endvisible ← 2
pass 2 of 25for _, severity in ipairs({1, 2, 3, 3}) do6 if severity3 >= min_severity3 then7 visible→ 2 = visible + 18 endhigh ← 2
pass 2 of 28end9if severity3 >= 3 then10 high→ 2 = high + 111endprint("min=" .. min_severity .. " visible=" .. visible .. " high=" .. …
14print("min=" .. min_severity3 .. " visible=" .. visible2 .. " high=" .. high2)outputmin=3 visible=2 high=2