Reminds me of this rabbit hole I went down recently. A short story about digital consciousness where death is literally a "prediction failure." The system's attempt to handle the end of biological input is terrifying.
It's framed as a leaked document from the future. Worth a read if you're into this kind of existential sci-fi.
https://dmf-archive.github.io/docs/story/facing-the-abyss/