The crew
A person looks at their duty list and their needs and does the single most urgent thing available. That is the whole brain.
So you can always answer "why is he doing that?" in one sentence. Nobody has a hidden mood, a secret timer or a state machine you cannot see. When the engineer walks past a burning generator to go to bed, there is a number that says why.