The short answer is that I am a UK tax resident for 2019-2020. I pass the so-called "sufficient ties" test, but oh boy, there are so many nuances to this that it makes my brain melt. Buckle up!
Tests
You figure out whether you're a tax resident or not by following this very specific algorithm:
1. The 183 days Rule
Did you stay more than 183 days in the UK? Then YES, you are a UK tax resident for that tax year. If not, go to the next step.
2. Automatic Overseas Tests
If you pass any of the automatic overseas tests, then NO, you're not a UK tax resident. Don't go to the next step. Otherwise, do it.
3. Automatic UK Tests
If you pass any of the automatic UK tests, then YES you are a UK tax resident. If not, go to the next step.
4. Sufficient Ties Test
Depending on how many days you spent in the UK, you will be a tax resident if you have more than some specific number of "ties":
Whether you have a tie or not depends on a lot of factors. Check out the above links to determine your status for each tie. Then, verify if you have at least the minimum number of ties corresponding to the number of days you stayed in the UK:

If you do, YES, you are tax resident. Otherwise, you are NOT.
My Own Status
Given that:
- I lived in the UK for 117 days (between 6 April 2019 and 1 August 2019)
- I have an accommodation tie (I rented an apartment for more than 90 continuous days)
- I have a work tie (I worked more than 40 days more than 3 hours on each day)
- I have a 90 day tie (I spent more than 90 days in the UK in either or
both of the previous 2 tax years)
I am indeed a UK tax resident for 2019-2020.
Split Year
If you really want to, you can declare a tax year as a "split year" if you lived abroad for a while. My understanding is that this would help you not get taxed twice on your foreign income. However, I don't think the hassle is worth it, unless you roll big money.
Update 16 April 2020
What I originally said in this section is not true. It is not an option that you have, you can't choose whether you want the split-year treatment or not, as per RDMR12010:
If they meet all the conditions of one of the cases of split year it will be applied to them. The individual does not have a choice whether split year treatment applies.
Sources
I excluded many details for the sake of brevity. If you seek a deep understanding of the subject, or your case is fantastically complicated, check out the official guidance provided by HMRC:
And these articles on litrg.org.uk:
YMMV
Don't assume that if this was the case for me, you'll also be tax resident if you lived for a similar number of days in the UK. Your mileage may vary, due to various factors:
- What type of job you had (did it involve cross-border trips, or not?)
- What kind of accommodation you had, were you a landlord, a tenant, etc.
- The official guidance set by HMRC might change in the future