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