Running wire to ceiling with double joist parallel to wall
After explaining this to the AHJ, he proposed running NM in conduit around the back side of the wall. This took some creative bending (me being a first time conduit bender, at least), but the end result is solid and passed rough electrical inspection: