Don't speak loudly. Don't enter buildings beyond the traboule passage. Don't photograph residents.
Look for 'TRABOULE' signs above entrances. The doors are usually unlocked during daytime.
Some courtyards have inner doors — don't push through unless they're marked as open passages.