I have a vague recollection about a children's book I read a while ago, hopefully I'm not mixing things up with something else. Here's what I think I remember, though some of it might be wrong:
- Set in a middle school on Earth, probably in the United States (if it's even mentioned)
- There's a robot built by the students to interact with people that is being tested in the school
- The robot's facial recognition system gets overloaded, so they turn it off
- There's a computer system running the school, monitoring bad behavior, and announcing punishments. At some point, it goes rogue, so the students overload it with foul language, public displays of affection (PDA), etc.
- Towards the end, the robot is about to unplug the computer system, but decides not to because it would be equivalent to death
- At the end, one of the robots gets chosen to be sent on a mission to Mars, but they end up deciding to use the other one because its personality for resilience and forcefulness aligns better with surviving in space
- There might be something about the robot reading books?
Any ideas or guesses, even if you're not really sure, would be much appreciated! I should hopefully be able to recognize the title or especially the cover.