card #80: kept .github/time/test_steward.py (generated)
time/worker-run cd .github/time; python3 - <<'EOF' p='test_steward.py' s=open(p).read() s=s.replace(''' for k in

This commit is contained in:
time committed 2026-10-18 07:21:43 +00:00
1 parent 2f637f628d
commit a8f860c559
1 file changed
+1 -1
+1 -1
View File
@@ -214,7 +214,7 @@ def steward_model(body, timeout):
return {"choices": [{"message": {"role": "assistant", "content": "PR #80 was objected to; I handed card #20 back with the reviewer's point."}}], "usage": {}}
tm.chat = steward_model
run()
assert len(calls) == 2 and calls[0]["model"] == "claude-opus-5-5" and "escalate to the operator ONLY" in calls[0]["messages"][0]["content"].replace("\n", " ").replace(" ", " ") or True
assert len(calls) == 2 and calls[0]["model"] == "claude-opus-5-5"
assert "ONLY for money" in calls[0]["messages"][0]["content"] and "a reviewer objected" in calls[0]["messages"][1]["content"]
tool_results = [m["content"] for m in calls[1]["messages"] if m["role"] == "tool"]
assert tool_results[0] == "done" and tool_results[1].startswith("refused") and tool_results[2] == "done" and tool_results[3].startswith("refused") and tool_results[4].startswith("refused"), tool_results