broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(samples):
    state = 'idle'
    trips = []
    start_at = None
    soft_until = None
    out = []
    for minute, (call, hp_ok, lp_ok) in enumerate(samples):
        if call == 'reset':
            state = 'idle'
            trips = []
            out.append(state)
            continue
        if state == 'soft' and minute >= soft_until:
            state = 'idle'
        if state == 'run':
            lp_fault = not lp_ok and minute - start_at >= 2
            if not hp_ok or lp_fault:
                trips = [t for t in trips if minute - t < 60] + [minute]
                if len(trips) >= 3:
                    state = 'hard'
                else:
                    state = 'soft'
                    soft_until = start_at + 5
            elif not call:
                state = 'idle'
        if state == 'idle' and call:
            state = 'run'
            start_at = minute
        out.append(state)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(samples):
    state = 'idle'
    trips = []
    start_at = None
    soft_until = None
    out = []
    for minute, (call, hp_ok, lp_ok) in enumerate(samples):
        if call == 'reset':
            state = 'idle'
            trips = []
            out.append(state)
            continue
        if state == 'soft' and minute >= soft_until:
            state = 'idle'
        if state == 'run':
            lp_fault = not lp_ok and minute - start_at >= 2
            if not hp_ok or lp_fault:
                trips = [t for t in trips if minute - t < 60] + [minute]
                if len(trips) >= 3:
                    state = 'hard'
                else:
                    state = 'soft'
                    soft_until = max(start_at + 5, minute + 1)
            elif not call:
                state = 'idle'
        if state == 'idle' and call:
            state = 'run'
            start_at = minute
        out.append(state)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]],
 [['regression: trip exactly an hour old',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft']],
  ['regression: old trips expire',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft']],
  ['regression: low pressure bypass and retry',
   [[[True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, False],
     [True, True, False],
     [True, True, False],
     [True, True, True]]],
   ['run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft']],
  ['regression: three trips hard lockout',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'hard',
    'idle',
    'run',
    'soft',
    'soft']],
  ['regression: high pressure during suction dip',
   [[[True, True, True],
     [True, False, False],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run', 'run']],
  ['regression: high pressure at start',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run', 'soft', 'soft', 'soft', 'soft', 'soft', 'run', 'run']],
  ['regression: trip late in long run',
   [[[True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True]]],
   ['run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'run']],
  ['regression: reset during hard with recent trips',
   [[[True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     ['reset', True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, True, True],
     [True, False, True],
     [True, True, True]]],
   ['run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'hard',
    'idle',
    'run',
    'soft',
    'soft',
    'soft',
    'soft',
    'soft',
    'run',
    'run',
    'soft',
    'soft']]]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
After a trip late in a long run the unit restarts on the next minute with no lockout.

Compressor pressure-switch lockout per minute; samples are [call, hp_ok, lp_ok] where call may also be "reset". While running, an open high-pressure switch trips at once; the low-pressure switch is ignored for the first 2 minutes after start. A trip enters a 5-minute soft lockout, after which the unit retries automatically if still called. The third trip within a sliding 60-minute window (trips older than 60 minutes are forgotten) causes a hard lockout that only reset clears; reset also clears the trip history. Return run, idle, soft or hard per minute.

split: open-access