mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 11:47:42 +01:00
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>