fix(k1): retire terminal control before read-only recovery

This commit is contained in:
DCCONSTRUCTIONS
2026-08-20 14:37:00 +03:00
parent d01be34cac
commit a3138f3d71
2 changed files with 30 additions and 1 deletions
@@ -17994,7 +17994,15 @@ class XgridsK1CompatibilityService:
raise RuntimeError(
"retained PREPARED STOP owner changed before topology commit"
)
self._retire_application_control_for_network_change()
# Verify owns a read-only replacement of the local control
# generation. A terminal device fault may leave that dead
# generation in ``failed`` even though its worker/socket are
# already gone. Retire only that local owner; the physical
# ledger remains unresolved until fresh DeviceInfo/Status
# evidence below classifies it.
self._retire_application_control_for_network_change(
allow_terminal_failure=True,
)
projected_intent_id = self._apply_read_only_device_topology(
transport_ref=actual_transport_ref,
connection_mode=requested_mode,