Corners and connections are where insulation and air barriers can have trouble. Compressed or insufficient insulation can cause cold spots, which lead to condensation, mold, and rot. Air leaks at this connection can cut the effectiveness of the insulation substantially. In cold climates, this is where ice dams begin.
To keep the air barrier continuous, span the wall sheathing over the framing connection and use adhesive or sealants at framing connections as shown.
Roofs and walls need to dry
Moisture from both outside and inside a house can thwart your best efforts at keeping the building dry. Moisture in roof and wall assemblies is inevitable, so it's a good idea to design them so that they can dry. Roofs and walls that can dry to either the outside or inside are good, but those that can dry both directions are even better.