stage18-incident-response.py
TEXT FILE503 B · Public source code for developers, search crawlers and AI agents
1def next_action(frozen, state):
2 if state in ('submitted', 'unknown'):
3 return 'reconcile'
4 if state in ('confirmed', 'rejected'):
5 return 'archive'
6 if state == 'queued':
7 return 'hold' if frozen else 'review'
8 return 'hold'
9
10if __name__ == '__main__':
11 assert next_action(True, 'queued') == 'hold'
12 assert next_action(True, 'unknown') == 'reconcile'
13 assert next_action(False, 'submitted') == 'reconcile'
14 assert next_action(False, 'unexpected') == 'hold'Read-only source · Select a line number to link directly · Raw download above
