Positive Solutions
Problem: In my county small multi-family houses are nearly non-existent and short-term rentals and second-cooking-areas are illegal.
Solution: House-hack while renting MTR to traveling medical professionals
Problem: I didn’t know the many laws of the county
Solution: A hired attorney 1) informed me that the county calls a house-hack a boardinghouse and 2) drafted a very comprehensive agreement that includes answers to your list of questions.
Problem: Interpersonal problems can be a risk. Covering a significant portion of my mortgage has been a great reward.
Solution: My four levels of vetting have helped me find quality room-renters over the last 18 months.
I think you already have the answers to your situation. If you STR part of your house while living in it, please share what you have learned from the experience.
There's a valuable thread called "House hacking at 22 - What I regret..." by Jake Andronico that’s worth reading.