Files
PaperClipAI/server/src
Devin FoleyandClaude Opus 5.5 c654932b02 fix(heartbeat): retry legacy runs a restart stopped before dispatch
A hard server restart can kill the process after it claims a legacy run
but before the adapter dispatch renewal. The next boot reaps the run
after its controller lease expires. The run has no pid and no bootstrap
evidence, so it settles failed/process_lost, schedules no retry, and
legacy recovery holds it for operator reconciliation.

The dispatch renewal persists executionStage "dispatching" in the same
update that admits the adapter. An expired lease from another boot that
is still "preparing" therefore proves that provider work never started.
Record bootstrap evidence for that case and use the bounded process-loss
retry. Keep the retried restart interruption out of unexpected-mode
Sentry run-failure reports.

Fixes PAPERCLIP-BACKEND-3A

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 00:16:32 +00:00
..
…
…
…