Since California (in its wisdom???) did not adopt the IRC, single family residential is governed by the 2007 CBC only. Based on that, it appears that the railing around a 2nd floor deck would have to be 42" high, and stair risers cannot be completely open (has to prevent 4" dia. sphere from passing through) -- correct?