test(native-chat): pin that a start dead before proving owes no settlement

The removed restart handoff test pinned this branch; nothing else did.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Brennan Benson
2026-09-25 00:00:25 -07:00
co-authored by Claude
parent e048579cf5
commit b50c57472e
@@ -30,6 +30,32 @@ describe('proven-dead agent session eviction settlement', () => {
})
})
it('owes no settlement for a start that died before proving its handle', () => {
const record = agentSessionRecordFixture(
agentSessionLeaseFixture({
runtimeKind: 'native',
claimStatus: 'reserved',
handoffStage: 'new-owner-proving',
handoffOperationId: 'attach-op-1',
unreconciled: true
})
)
const evicted = applyAgentSessionRestartAdjudication({
record,
probe: { outcome: 'pid-absent' },
now: NOW
})
expect(evicted.lease).toMatchObject({
claimStatus: 'released',
runtimeFence: 8,
handoffStage: null,
handoffOperationId: null
})
expect(evicted.lease).not.toHaveProperty('settlementRetryRequired')
})
it('latches recovery eviction from the same evicted disposition', () => {
const record = agentSessionRecordFixture(
agentSessionLeaseFixture({ runtimeKind: 'native', handoffStage: 'recovering' })