kin: KIN-ARCH-023-backend_dev

This commit is contained in:
Gros Frumos 2026-03-18 22:28:00 +02:00
parent d6ccb468f7
commit 646d40366f

View file

@ -1053,7 +1053,7 @@ def revise_task(task_id: str, body: TaskRevise):
# KIN-128: On 2nd+ revision, inject analyst as first step for fresh perspective. # KIN-128: On 2nd+ revision, inject analyst as first step for fresh perspective.
# Guard: skip if analyst is already the first step (idempotent), or if steps is None. # Guard: skip if analyst is already the first step (idempotent), or if steps is None.
if revise_count >= 2 and steps and (not steps or steps[0].get("role") != "analyst"): if revise_count >= 2 and steps and steps[0].get("role") != "analyst":
analyst_step = { analyst_step = {
"role": "analyst", "role": "analyst",
"model": "sonnet", "model": "sonnet",