Paperclip runs that fail before heartbeat.ts line ~1312 (log handler creation) have NULL

Paperclip runs that fail before heartbeat.ts line ~1312 (log handler creation) have NULL logStore/logRef in the DB. The readLog method must return a synthetic NDJSON entry with the run’s error message instead of throwing 404. Fix location: heartbeat.ts readLog method — check for NULL logStore/logRef, construct synthetic {ts, stream:"system", chunk:"[system] <error>"} response. This affects ~3% of runs (2 of 73 observed). Root cause: “Process lost — server may have restarted” errors during container rebuilds.