The calculation of residency obligation is prospective, i.e. if you are less than five years since first landing, you are given 'credit' for days to the five year anniversary.
I.e. someone who arrives on day 1 and remains in Canada is in compliance, even though only one day in country. A different way of looking at this is the reverse - 1095 days or more out of country looking back either five years or from the day of arrival - whichever is more recent - means out of compliance. (I think this restatement is correct, corrections welcome if not).
Note: I haven't followed in detail this thread but understand you are not exactly in Canada or only part-time in Canada, comments above only about the RO calc. As a PR, you must be resident in Canada to sponsor. Compliance with RO doesn't matter if you are adjudged to not be resident in Canada.