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
|
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||