Operational Reliability Reports
Service Window Reliability Report
Label a service window from failed checks and available open minutes.
Service Window Reliability Report
service_window_reliability_report.swift
Replay: real traced execution (multi-file project)
let failedChecks = 1
let openMinutes = 45
let status: String
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
} else {
status = "blocked"
}
let line = "failed=\(failedChecks) open=\(openMinutes) status=\(status)"
print(line)
let failedChecks = 0
let openMinutes = 45
let status: String
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
} else {
status = "blocked"
}
let line = "failed=\(failedChecks) open=\(openMinutes) status=\(status)"
print(line)
let failedChecks = 3
let openMinutes = 45
let status: String
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
} else {
status = "blocked"
}
let line = "failed=\(failedChecks) open=\(openMinutes) status=\(status)"
print(line)
failedChecks ← 1, openMinutes ← 45
1let failedChecks→ 1 = 1 //@failedChecks=0, 32let openMinutes→ 45 = 453let status: Stringif failedChecks <= 1
6 status = "ready"7} else if failedChecks1 <= 1 {8 status = "watch"9} else {line ← failed=1 open=45 status=watch
13let line→ failed=1 open=45 status=watch = "failed=\(failedChecks1) open=\(openMinutes45) status=\(statuswatch)"1415print(linefailed=1 open=45 status=watch)outputfailed=1 open=45 status=watch
failedChecks ← 0, openMinutes ← 45
1let failedChecks→ 0 = 02let openMinutes→ 45 = 453let status: Stringif failedChecks == 0 && openMinutes >= 30
5if failedChecks0 == 0 && openMinutes45 >= 30 {6 status = "ready"7} else if failedChecks <= 1 {line ← failed=0 open=45 status=ready
13let line→ failed=0 open=45 status=ready = "failed=\(failedChecks0) open=\(openMinutes45) status=\(statusready)"1415print(linefailed=0 open=45 status=ready)outputfailed=0 open=45 status=ready
failedChecks ← 3, openMinutes ← 45
1let failedChecks→ 3 = 32let openMinutes→ 45 = 453let status: Stringline ← failed=3 open=45 status=blocked
13let line→ failed=3 open=45 status=blocked = "failed=\(failedChecks3) open=\(openMinutes45) status=\(statusblocked)"1415print(linefailed=3 open=45 status=blocked)outputfailed=3 open=45 status=blocked
readiness label
A reliability report turns a small check summary into a label that an operator can scan before a service window opens.