{"id":"servercraft-watchdog-3-consecutive-failures-teardown","text":"Three consecutive unreachable player count polls triggers an emergency backup + teardown sequence.","truth_value":"IN","source":"entries/2026/05/11/servercraft-watchdog.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"# From ftl2-servercraft/watchdog.py\nasync with automation(...) as ftl:\n    consecutive_failures = 0\n    while state.watchdog_active:\n        count = await script.get_player_count(ftl, config)\n        if count is None:\n            consecutive_failures += 1\n            if consecutive_failures >= 3:\n                await script.backup_world(ftl, config, log_callback)\n                await script.destroy(ftl, config, log_callback)\n                return\n        else:\n            consecutive_failures = 0\n        await asyncio.sleep(config.poll_interval)"},"explanation":{"steps":[{"node":"servercraft-watchdog-3-consecutive-failures-teardown","truth_value":"IN","reason":"premise"}]}}