Serialize merge-ready owner finalize handoff

This commit is contained in:
ejclaw
2026-04-05 20:11:14 +09:00
parent b6c8546f25
commit 2983e0501c
4 changed files with 132 additions and 1 deletions

View File

@@ -429,6 +429,18 @@ export function completePairedExecutionContext(args: {
const task = getPairedTaskById(taskId);
if (!task) return;
if (task.status === 'completed') {
logger.info(
{
taskId,
role,
status,
completionReason: task.completion_reason ?? null,
},
'Ignoring late paired execution completion for an already completed task',
);
return;
}
// On failure: for reviewers, still check verdict from summary — output may
// have been delivered even though the executor classified it as failed