Label a service window from failed checks and available open minutes.

readiness label A reliability report turns a small check summary into a label that an operator can scan before a service window opens.

Service Window Reliability Report

failedChecks
service_window_reliability_report.go
Replay: real traced execution (multi-file project)
package main

import "fmt"

func main() {
	var failedChecks = 1
	openMinutes := 45
	status := "blocked"

	if failedChecks == 0 && openMinutes >= 30 {
		status = "ready"
	} else if failedChecks <= 1 {
		status = "watch"
	}

	fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
package main

import "fmt"

func main() {
	var failedChecks = 0
	openMinutes := 45
	status := "blocked"

	if failedChecks == 0 && openMinutes >= 30 {
		status = "ready"
	} else if failedChecks <= 1 {
		status = "watch"
	}

	fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
package main

import "fmt"

func main() {
	var failedChecks = 3
	openMinutes := 45
	status := "blocked"

	if failedChecks == 0 && openMinutes >= 30 {
		status = "ready"
	} else if failedChecks <= 1 {
		status = "watch"
	}

	fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
  1. failedChecks ← 1, openMinutes ← 45, status ← "blocked"

    5func main() {6  var failedChecks→ 1 = 1 //@failedChecks=0, 37  openMinutes→ 45 := 458  status→ "blocked" := "blocked"
  2. status ← "watch"

    11  status = "ready"12} else if failedChecks1 <= 1 {13  status→ "watch" = "watch"14}
  3. fmt.Printf("failed=%d open=%d status=%s ", failedChecks, openMinutes, …

    16  fmt.Printf("failed=%d open=%d status=%s\n", failedChecks1, openMinutes45, status"watch")17}
    outputfailed=1 open=45 status=watch
  1. failedChecks ← 0, openMinutes ← 45, status ← "blocked"

    5func main() {6  var failedChecks→ 0 = 07  openMinutes→ 45 := 458  status→ "blocked" := "blocked"
  2. status ← "ready"

    10if failedChecks0 == 0 && openMinutes45 >= 30 {11  status→ "ready" = "ready"12} else if failedChecks <= 1 {
  3. fmt.Printf("failed=%d open=%d status=%s ", failedChecks, openMinutes, …

    16  fmt.Printf("failed=%d open=%d status=%s\n", failedChecks0, openMinutes45, status"ready")17}
    outputfailed=0 open=45 status=ready
  1. failedChecks ← 3, openMinutes ← 45, status ← "blocked"

    5func main() {6  var failedChecks→ 3 = 37  openMinutes→ 45 := 458  status→ "blocked" := "blocked"910  if failedChecks == 0 && openMinutes >= 30 {11    status = "ready"12  } else if failedChecks <= 1 {13    status = "watch"14  }1516  fmt.Printf("failed=%d open=%d status=%s\n", failedChecks3, openMinutes45, status"blocked")17}
    outputfailed=3 open=45 status=blocked