I'd think, the last. There is no single definitive set of rules, and anyway
no police force to make people stick to them.
There could be clues from context, of course; is it a transcription of
something someone played, or is the notation the primary authority, and if
so, how pedantic is the writer known to be, and so on ? the local culture.
(If it was known-to-be-pedantic ABC, the difference between a slur and a tie
would give you the first one ... but, what are the chances ?)
I think I'd almost certainly assume the note continued across the barline
would have its pitch unchanged, unless there were very strong reasons to
think otherwise. The Z case, I don't think I'd want to generalise, apart
from "see what it sounds like, and what other such music might do". (If I
was coding it into software, I'd want to use a variable whose value the user
would have to decide for themself ...)
--
Richard Robinson
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem
My email address is at
http://www.qualmograph.org.uk/contact.html