I remember reading a story that included a group of children traveling on a spaceship that cared for them. The ship was made of regular and fake matter and could adapt to different situations. The children gave their leader the title of “Pan”. They were sent to fight an alien threat. The ship, although very advanced, could not make the important decisions, and the children were there to decide.
Decades have passed since I read that story and would like to read it again, but I don’t recall the name or author. Help would be appreciated.