Any attack that hits, while the rogue is meeting the criteria, should be eligible for sneak attack. This will become even more important when we have multiclassing and you end up with rogue/fighters with extra attacks. While you can only add sneak attack damage to 1 attack per turn, a sneak attack can't "miss" as it is just extra damage added to a successful attack so it shouldn't be able to be wasted on a miss. Sneak also should apply to AoO. Under the current system we can't even use sneak with magical ammunition because it is its own attack just like sneak attack is. This could be easily rectified with either a prompt on successful, qualifying attack to add sneak damage OR a toggle that automatically applies sneak damage to a successful, qualifying attack.