Recover Codex compaction failures in paired owner flow
This commit is contained in:
@@ -133,7 +133,7 @@ describe('message-runtime-rules', () => {
|
||||
).toEqual({ kind: 'none' });
|
||||
});
|
||||
|
||||
it('dispatches owner delivery success through a paired follow-up enqueue only for reviewer turns', () => {
|
||||
it('dispatches owner delivery success through a paired follow-up enqueue for reviewer or arbiter turns', () => {
|
||||
expect(
|
||||
resolveFollowUpDispatch({
|
||||
source: 'owner-delivery-success',
|
||||
@@ -143,6 +143,15 @@ describe('message-runtime-rules', () => {
|
||||
kind: 'enqueue',
|
||||
queueKind: 'paired-follow-up',
|
||||
});
|
||||
expect(
|
||||
resolveFollowUpDispatch({
|
||||
source: 'owner-delivery-success',
|
||||
nextTurnAction: { kind: 'arbiter-turn' },
|
||||
}),
|
||||
).toEqual({
|
||||
kind: 'enqueue',
|
||||
queueKind: 'paired-follow-up',
|
||||
});
|
||||
expect(
|
||||
resolveFollowUpDispatch({
|
||||
source: 'owner-delivery-success',
|
||||
@@ -151,6 +160,21 @@ describe('message-runtime-rules', () => {
|
||||
).toEqual({ kind: 'none' });
|
||||
});
|
||||
|
||||
it('dispatches failed owner recovery through a paired follow-up when execution escalated to arbiter', () => {
|
||||
expect(
|
||||
resolveFollowUpDispatch({
|
||||
source: 'executor-recovery',
|
||||
nextTurnAction: { kind: 'arbiter-turn' },
|
||||
completedRole: 'owner',
|
||||
executionStatus: 'failed',
|
||||
sawOutput: false,
|
||||
}),
|
||||
).toEqual({
|
||||
kind: 'enqueue',
|
||||
queueKind: 'paired-follow-up',
|
||||
});
|
||||
});
|
||||
|
||||
it('dispatches reviewer and arbiter delivery success through paired follow-up enqueue when a handoff is pending', () => {
|
||||
expect(
|
||||
resolveFollowUpDispatch({
|
||||
|
||||
Reference in New Issue
Block a user