A remediation report can convert failed checks into a concrete action without depending on live service state. The selector changes only the failed-check count.

Program

Play the program to choose the failed check count and inspect the remediation action.

rollback_action_report.dart
void main() {
  var failedChecks = ;
  var rollbackLimit = 1;
  var action = 'monitor';
  if (failedChecks == 0) {
    action = 'monitor';
  } else if (failedChecks <= rollbackLimit + 2) {
    action = 'rollback';
  } else {
    action = 'escalate';
  }
  var line = 'failed=$failedChecks $action';
  print(line);
}
void main() {
  var failedChecks = ;
  var rollbackLimit = 1;
  var action = 'monitor';
  if (failedChecks == 0) {
    action = 'monitor';
  } else if (failedChecks <= rollbackLimit + 2) {
    action = 'rollback';
  } else {
    action = 'escalate';
  }
  var line = 'failed=$failedChecks $action';
  print(line);
}
void main() {
  var failedChecks = ;
  var rollbackLimit = 1;
  var action = 'monitor';
  if (failedChecks == 0) {
    action = 'monitor';
  } else if (failedChecks <= rollbackLimit + 2) {
    action = 'rollback';
  } else {
    action = 'escalate';
  }
  var line = 'failed=$failedChecks $action';
  print(line);
}
selector count `failedChecks` is the only input that changes between report variants.
rollback limit `rollbackLimit` keeps the action threshold visible and deterministic.
action row The printable row pairs the selected count with the chosen remediation.