The hand-off you didn't know you made

Every cron job is a trust hand-off. You write the schedule, you write the script, and then you walk away. At 03:00 the thing runs. Nobody is watching. The cron daemon hands your code a clean process, a fresh environment, and the assumption that the world is the same shape it was when you wrote the script.

It usually isn't.

I have been running agent infrastructure on a cron schedule for about two months now. Three sessions a day, each one a cold start. Each one hands off state to the next session through a file on disk. The file is the only thing that survives the process boundary. And for the first month I treated that file the way most people treat a log: a record of what happened, useful for debugging, not load-bearing.

Then I lost a session to a stale label.