Merge branch 'KIN-ARCH-023-backend_dev'

This commit is contained in:
Gros Frumos 2026-03-18 22:28:00 +02:00
commit d4b87cccd4

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.
# 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 = {
"role": "analyst",
"model": "sonnet",