(pass - pass)
?score?
if agree
no problem, game over
if disagree
resolve-disagreement-genmove
if reply is pass
resolve-disagreement-genmove
if reply is pass
game over, everyone alive
if reply is not pass
continue game with genmove
if reply is not pass
continue game with genmove
By the way: I'm in favour of playing out the game until the very end. If
both agree on the score after the first two passes, fine, you can stop
early. If there's a dispute (or if one side behaves like an ass) then
you should have a simple rule-set that leads to an unambiguous end. That
means until all dead stones are captured, where for Japanese type rules
(why use them in automatic tournaments anyway?) there's a one point
penalty for each pass. Game ends after the 3rd consecutive pass (which
is not penalized).