If you're unlucky a Compy might sneak through spike fences. It just happened to me - might have be a glitch or there might have been a gap in the spike wall. Look out for Compy sounds when taming!

I was lucky and only one came through. They're aggressive but they only attack you if there's more than one. Jumped on my flyer and lured it away.

More Compy Encountering Tips