Allies can be encountered in the same way(s) as enemies are. This is notable, for instance, in random encounter games.
Alternate name: Ally Encounters
The first video game about Friendly Encounters was released in 1982.
This is for encounters that begin friendly. They might still turn hostile after the initial meeting. Note that a traveling merchant would be neutral, not an ally.