From your third link:
System Integrity Protection needs to be (partially) disabled
for yabai to inject a scripting addition into Dock.app for
controlling windows with functions that require elevated
privileges. This enables control of the window server, which
is the sole owner of all window connections, and enables
additional features of yabai.
The risk Apple kills yabai after you're adjusted to it is real.