At some point we just need to acknowledge that such speculation is like asking for a magic genie in a bottle rather than discussing literal technology.
"Magic genie in a bottle" is a very good way of framing what an AGI would (will) be if implemented, complete with all the obvious failure modes that end disastrously for the heroes in magic genie stories.