fix: gate main-agent self-stop on auto-next obligation
This commit is contained in:
@@ -484,6 +484,8 @@ async function buildApprovedPlanContinuityBlock(workspaceDir: string, wrapperRes
|
||||
if (result.reason === 'missing_auto_next_dispatch') {
|
||||
lines.push("- HARD_GATE: Do not stop at this completed-task boundary.");
|
||||
lines.push("- HARD_GATE: Auto-dispatch the next task in the same approved plan, unless waiting_user, blocked, pending_verification, or high-risk stop applies.");
|
||||
lines.push("- HARD_GATE: Do not hand control back to the user with an ordinary progress update while auto-next is still obligatory.");
|
||||
lines.push("- HARD_GATE: If you cannot prove the next dispatch, convert this into an explicit continuity failure instead of a normal status report.");
|
||||
} else {
|
||||
lines.push("- HARD_GATE: Route back to continuity failure until a real next dispatch receipt exists, unless closure state is waiting_user, blocked, or pending_verification.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user