Roof to wall attachment ?

So, did we ever get an answer to what this is?
Inspection today, built in 2001.
I did have a question, what if there is a nail on the top of the truss covered by the decking?