paperclip/server
Netquirk Primary Developer c8d2b2fd01 fix(server): NET-6719 restore legacy process_lost_retry semantics around reaper
Per NET-6900 follow-up: the three 'does not route ... through the
null-environment ladder' tests assert that the legacy paths still
produce a process_lost_retry / interaction_continuation_infra_retry
successor. The previous fix-forward restored the reaper's mutation
protocol but the legacy retry path was still blocked by
legacyExecutionNeedsReconciliation on the freshly failed run, and the
resulting retry row did not carry the wake/reason the tests assert nor
the processLossRetryCount increment that backs the reaper's
alreadyRetriedOnce guard.

1. Tag every process-loss failure with explicit bootstrap evidence:
   executionRecovery: { kind: 'bootstrap', providerWorkStarted: false }.
   The reaper has already classified the run as process_lost via a CAS
   write, so the bootstrap ambiguity gate that the gate uses to block
   the legacy retry path no longer applies. This mirrors the convention
   the passing 'retries a plan-approval continuation lost as
   process_lost before agent start' test uses.

2. Rewrite enqueueProcessLossRetry:
   - drop the legacyExecutionNeedsReconciliation guard (the CAS write
     has already established process_lost semantics);
   - pass the explicit retryReason/wakeReason ('process_lost_retry')
     so the retry's contextSnapshot.wakeReason matches the tests and
     the legacy wake-reason known-status set;
   - increment processLossRetryCount on the successor row so a second
     reap reads alreadyRetriedOnce=true and skips the legacy retry,
     backing the de-facto retry budget the reaper already advertises.

3. Add PROCESS_LOST_RETRY_REASON / PROCESS_LOST_RETRY_WAKE_REASON
   constants so the legacy wake reason lives next to the other retry
   constants instead of being a literal scattered through the reaper.

NET-6719 / NET-6900
2026-09-12 04:47:08 +00:00
..
scripts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00
src fix(server): NET-6719 restore legacy process_lost_retry semantics around reaper 2026-09-12 04:47:08 +00:00
CHANGELOG.md fix: bound workspace Git scans (#11572) 2026-08-17 22:11:30 -05:00
package.json feat(connections): add AgentMail inboxes and email tasks (#13256) 2026-09-11 16:56:38 -05:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts fix(server): bundle the vendored paperclip-runner instead of hand-mirroring its deps (#13121) 2026-09-09 16:38:17 -07:00