Fix legacy retirement after listener handoff

Merged
LA
4mo ago
+662-8

Fixes the production continuity gate after a successful listener handoff.

  • quiesces an active legacy socket without stopping the service that owns held sessions
  • removes a stale legacy supervisor socket only after legacy units are inactive and disabled
  • keeps successful retirement runtime-masked and retry-safe
  • waits through normal systemd transition states
  • ignores normal shutdown timeout metadata while retaining real timeout detection

Regression history:

  • f2a6e69 adds the failing tests
  • 09ca5fa implements the fix

Verification:

  • go test ./...
  • exact-head local review clean on 09ca5fa