kin: KIN-ARCH-019 Починить KIN-055 регрессию: execution_mode не сохраняется при review

This commit is contained in:
Gros Frumos 2026-03-17 16:04:57 +02:00
parent 136916793e
commit 5a8aab5237

View file

@ -172,15 +172,12 @@ class TestBlockedReasonPropagation:
)
assert dept_result["success"] is False
# BUG: 'error' key is missing — sub_result['error'] is not forwarded
assert "error" not in dept_result, (
f"Unexpected: 'error' key is now in dept_result={dept_result}. "
"Issue 1 (first level) may be fixed — update this test!"
# FIXED (KIN-ARCH-014): 'error' and 'blocked_reason' are now forwarded from sub_result
assert "error" in dept_result, (
f"Expected 'error' key in dept_result={dept_result}"
)
# BUG: 'blocked_reason' key is also missing
assert "blocked_reason" not in dept_result, (
f"Unexpected: 'blocked_reason' key is now in dept_result={dept_result}. "
"Issue 1 (first level) may be fixed — update this test!"
assert "blocked_reason" in dept_result, (
f"Expected 'blocked_reason' key in dept_result={dept_result}"
)
@patch("agents.runner._run_autocommit")