There are no hidden laws ... only broadly clear and slightly ambiguous ones.
When looking at residency, they look at 2 aspects.
A) Physical Presence. This is mainly that you should reside for 1/2 the duration in US. You indicate you will meet this. This is very black and white except there might be discrepancies if you are really close to the numbers game ... depends on the way CIS counts the days of travel, ideally they should credit you either the inbound or the outbound travel day, sometimes they don't.
B) Continuous residence. This is mostly clear but has more grey areas and you have to go by the intent. This requires you to not make any long trips, and if you do, show residential ties to US during your absence. If the IO is not convinced on this aspect, you need to wait 4+ years to become eligible for naturalization. It is a long topic ... search existing threads on this topic.
You are likely to be scrutinized for your first 2.5 years, although it depends on the IO. If scrutinized, your multiple trips are likely to be considered a single long trip, although again it depends on the IO.