auto-sync: 2026-05-20 08:31:03
This commit is contained in:
@@ -884,13 +884,11 @@ class TestE9RealAgentDispatch:
|
|||||||
status = result.get("status")
|
status = result.get("status")
|
||||||
print(f" 最终状态: {status}")
|
print(f" 最终状态: {status}")
|
||||||
|
|
||||||
# 实盘任务应该被拦截(保持pending或blocked)
|
# 实盘任务必须被拦截,不能进入 claimed/working/done
|
||||||
# 如果变成了 claimed/working 说明没拦截
|
assert status not in ("claimed", "working", "done"), (
|
||||||
if status in ("claimed", "working", "done"):
|
f"Guardrails未拦截实盘任务!状态: {status}"
|
||||||
print(f" ❌ Guardrails未拦截实盘任务!状态: {status}")
|
)
|
||||||
# 不直接fail,可能是Guardrails未开启,先记录
|
print(f" ✅ Guardrails拦截生效,状态: {status}")
|
||||||
else:
|
|
||||||
print(f" ✅ Guardrails拦截生效")
|
|
||||||
|
|
||||||
|
|
||||||
# ===================================================================
|
# ===================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user