In New Caledonia, an island off the eastern coast of Australia, a crow is hunting for beetle grubs. The larvae are hidden within a decaying tree trunk, which might seem like an impregnable fortress.