Those in-Schengen checks for buses and so on are largely just "do you have a valid passport?" and I'm not aware of any real checks of visa status, overstay checks, etc.
If you get caught without a passport, you get detained though. If you've forgotten your passport somewhere, someone else can take it to an airport (or a physical border) and the border control at the airport can then confirm your identity.
If you get caught without a passport, you get detained though. If you've forgotten your passport somewhere, someone else can take it to an airport (or a physical border) and the border control at the airport can then confirm your identity.