Operational Reliability Reports
Service Window Report
Gate Readiness
Operational reports turn a few observed numbers into a compact readiness line. This program gates a service window with fixed failure and duration thresholds.
Program
Play the program to choose the failed check count and watch the readiness report update.
service_window_report.rs
Replay: real traced execution (multi-file project)
fn main() {
let failed_checks = 1;
let allowed_failures = 1;
let open_minutes = 45;
let status = if failed_checks <= allowed_failures && open_minutes >= 30 {
"ready"
} else {
"blocked"
};
let line = format!("{failed_checks} {open_minutes} {status}");
println!("{line}");
}
fn main() {
let failed_checks = 0;
let allowed_failures = 1;
let open_minutes = 45;
let status = if failed_checks <= allowed_failures && open_minutes >= 30 {
"ready"
} else {
"blocked"
};
let line = format!("{failed_checks} {open_minutes} {status}");
println!("{line}");
}
fn main() {
let failed_checks = 3;
let allowed_failures = 1;
let open_minutes = 45;
let status = if failed_checks <= allowed_failures && open_minutes >= 30 {
"ready"
} else {
"blocked"
};
let line = format!("{failed_checks} {open_minutes} {status}");
println!("{line}");
}
failed_checks ← 1, allowed_failures ← 1, open_minutes ← 45, status ← "ready"
1fn main() {2 let failed_check→ 1s = 1; //@failed_checks=1, 0, 33 let allowed_failure→ 1s = 1;4 let open_minute→ 45s = 45;5 let statu→ "ready"s = if failed_check1s <= allowed_failure1s && open_minute45s >= 30 {6 "ready"7 } else {8 "blocked"9 };10 let lin→ "1 45 ready"e = format!("{failed_checks} {open_minutes} {status}");11 println!("{line}");12}output1 45 ready
failed_checks ← 0, allowed_failures ← 1, open_minutes ← 45, status ← "ready"
1fn main() {2 let failed_check→ 0s = 0;3 let allowed_failure→ 1s = 1;4 let open_minute→ 45s = 45;5 let statu→ "ready"s = if failed_check0s <= allowed_failure1s && open_minute45s >= 30 {6 "ready"7 } else {8 "blocked"9 };10 let lin→ "0 45 ready"e = format!("{failed_checks} {open_minutes} {status}");11 println!("{line}");12}output0 45 ready
failed_checks ← 3, allowed_failures ← 1, open_minutes ← 45, status ← "blocked"
1fn main() {2 let failed_check→ 3s = 3;3 let allowed_failure→ 1s = 1;4 let open_minute→ 45s = 45;5 let statu→ "blocked"s = if failed_check3s <= allowed_failure1s && open_minute45s >= 30 {6 "ready"7 } else {8 "blocked"9 };10 let lin→ "3 45 blocked"e = format!("{failed_checks} {open_minutes} {status}");11 println!("{line}");12}output3 45 blocked
threshold gate
The report compares observed failures with an allowed failure budget.
fixed window
`open_minutes` is a deterministic fixture, not a live clock measurement.
report line
The final string keeps the inputs and decision together for replay.