claude -p exits 0 when the login is dead
A scheduled Claude Code job ran green for eleven days and produced nothing. The login had expired, the command printed one line saying so and returned success. Wrappers have to read the output, and headless machines need a token of their own.
