R-528 red-proof red-other-layers: the check runs on every layer's apply (the docker-layer condition removed)
mutation: replace
---
        if self.layer == "docker" and self.mode == "apply":
            # R-528---
with
---
        if self.mode == "apply":
            # R-528---
$ OSAPPLY_UNDER_TEST=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/r528-mut/red-other-layers-felhom-os-apply python3 -W ignore /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py OOMCheck.test_never_on_guest_or_host_or_in_health_mode
rc=1
F
======================================================================
FAIL: test_never_on_guest_or_host_or_in_health_mode (__main__.OOMCheck.test_never_on_guest_or_host_or_in_health_mode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py", line 1301, in test_never_on_guest_or_host_or_in_health_mode
    self.assertNotIn("oom_check", r)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
AssertionError: 'oom_check' unexpectedly found in {'docker_restart_needed': False, 'health_after': {'containers': {'app': {'health': 'healthy', 'id': 'bbb222', 'state': 'running'}, 'felhom-controller': {'health': 'healthy', 'id': 'aaa111', 'state': 'running'}}, 'controller': 'healthy', 'controller_docker_ok': True, 'docker_ok': True, 'network_ok': True}, 'health_before': {'containers': {'app': {'health': 'healthy', 'id': 'bbb222', 'state': 'running'}, 'felhom-controller': {'health': 'healthy', 'id': 'aaa111', 'state': 'running'}}, 'controller': 'healthy', 'controller_docker_ok': True, 'docker_ok': True, 'network_ok': True}, 'installed': [{'name': 'bash', 'origin': 'Debian', 'version': '5.2.37-2+b9'}, {'name': 'libc6', 'origin': 'Debian', 'version': '2.41-12+deb13u4'}, {'name': 'openssl', 'origin': 'Debian', 'version': '3.5.7-1~deb13u3'}], 'layer': 'guest', 'mode': 'apply', 'oom_check': {'detail': 'the engine reported the memory kill: OOMKilled=true and the oom event', 'exit_code': 137, 'image': 'gitea.dooplex.hu/admin/felhom-controller:0.300.0', 'oom_event': True, 'oom_killed': True, 'result': 'pass'}, 'pass_seconds': 0.0, 'pending': [{'from': '5.2.37-2+b9', 'name': 'bash', 'origin': ['Debian'], 'to': '5.2.37-2+b10'}], 'plan': {'already': 0, 'from_snapshot': 0, 'not_installed': 0, 'upgrade': 2}, 'reboot_needed': False, 'reboot_scanned': True, 'refused': None, 'release_id': 'os-t1', 'repair': {'clean_after': True, 'fixed': 0, 'half_configured_before': 0, 'journal_before': 0}, 'restart_needed': [], 'seconds': 0.0, 'upgraded': [{'name': 'libc6', 'version': '2.41-12+deb13u4'}, {'name': 'openssl', 'version': '3.5.7-1~deb13u3'}], 'vmid': 9201}

----------------------------------------------------------------------
Ran 1 test in 0.020s

FAILED (failures=1)

=== control: the same test against the real wrapper ===
$ python3 -W ignore /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/da0e2df0-3072-4d3e-bf10-c475ac1e5ae4/scratchpad/agent-r528/configs/test_felhom_os_apply.py OOMCheck.test_never_on_guest_or_host_or_in_health_mode
rc=0
OK
VERDICT: RED as expected, GREEN on the real wrapper
