Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

relay: a free-form object in a tool's arguments reaches the tool with its contents (#394)

github-actions[bot]6e05aef5dc2b
diff --git a/runner/server.py b/runner/server.py
index 9a81cd63..cd0b0b53 100644
--- a/runner/server.py
+++ b/runner/server.py
@@ -3352,6 +3352,99 @@ def _repair_tool_call_ids(body: bytes, dedupe: bool = False) -> bytes:
return body
+_EMPTY_PROPERTIES = re.compile(rb'"properties"\s*:\s*\{\s*\}')
+# Where a schema keeps the schemas below it: by name, as a list, and as one schema.
+_SCHEMA_MAPS = ("properties", "patternProperties", "$defs", "definitions")
+_SCHEMA_LISTS = ("anyOf", "oneOf", "allOf", "prefixItems")
+_SCHEMA_ONES = ("items", "additionalProperties", "not", "if", "then", "else")
+
+
+def _drop_empty_properties(node, root: bool) -> bool:
+ """One schema node and everything below it, in place: an empty `properties` is removed from every
+ node but the root. → whether anything changed."""
+ if not isinstance(node, dict):
+ return False
+ changed = False
+ if not root and node.get("properties") == {} and "properties" in node:
+ del node["properties"]
+ changed = True
+ for key in _SCHEMA_MAPS:
+ below = node.get(key)
+ if isinstance(below, dict):
+ for child in below.values():
+ changed = _drop_empty_properties(child, False) or changed
+ for key in _SCHEMA_LISTS:
+ below = node.get(key)
+ if isinstance(below, list):
+ for child in below:
+ changed = _drop_empty_properties(child, False) or changed
+ for key in _SCHEMA_ONES:
+ below = node.get(key)
+ if isinstance(below, list): # `items` as a list of schemas
+ for child in below:
+ changed = _drop_empty_properties(child, False) or changed
+ else:
+ changed = _drop_empty_properties(below, False) or changed
+ return changed
+
+
+def _with_free_form_objects(body: bytes) -> bytes:
+ """A request body in which no NESTED object of a function tool's parameters carries an empty
+ `properties`, in either shape a function tool takes: chat completions
+ (`tools[].function.parameters`) and the Responses API (`tools[].parameters`). Both matter: with
+ an OpenAI model on an aggregator hermes, opencode and kilo speak the Responses API, and a repair
+ of the chat shape alone left exactly those three losing their rows through Vercel (the plugin
+ matrix's rows column on a candidate, 2026-10-05: 14 of 17 before and after).
+
+ A free-form object (a row, a JSON body, a map of values) is written `{"type": "object"}`. Hermes
+ and opencode add `"properties": {}` to every object node before the request leaves, and with
+ that key present some gateways hand the model an object it may put nothing in: the argument
+ arrives at the tool as `[{}, {}]` or `[]` and the call "succeeds". Measured 2026-10-05, per
+ connection and model family (runner/tests/test_relay_free_form_objects.py has the table): an
+ empty `properties` lost the contents with OpenAI models through Vercel's gateway and through
+ OpenRouter, and with kimi-k3 through Vercel and TokenRouter; adding `additionalProperties:
+ true` beside it saved Vercel and not OpenRouter; and the node WITHOUT the key was intact in
+ every cell, eleven families on two aggregators, OpenRouter, and OpenAI, Azure and Google
+ directly. An empty `properties` says nothing a missing one does not, so it goes, for every
+ model: a test by gateway or by family would repair the cells measured and leave the next one.
+
+ The root `parameters` node keeps its shape: `{"type": "object", "properties": {}}` there is a
+ tool that takes no arguments, and validators want the key on the root. A body with no such
+ node comes back as the same object."""
+ if not _EMPTY_PROPERTIES.search(body) or b'"tools"' not in body:
+ return body
+ try:
+ doc = json.loads(body)
+ except (ValueError, UnicodeDecodeError):
+ return body
+ if not isinstance(doc, dict):
+ return body
+
+ def _tools(tools) -> bool:
+ changed = False
+ for tool in tools if isinstance(tools, list) else []:
+ if not isinstance(tool, dict):
+ continue
+ fn = tool.get("function")
+ if isinstance(fn, dict):
+ changed = _drop_empty_properties(fn.get("parameters"), True) or changed
+ elif tool.get("type") == "function":
+ changed = _drop_empty_properties(tool.get("parameters"), True) or changed
+ # A namespace groups function tools one level down: Codex sends a server's MCP tools as
+ # {"type": "namespace", "name": "mcp__<server>", "tools": [{"type": "function", …}]} for
+ # a model it does not defer tools for, and adds the empty `properties` itself (captured
+ # on the hosted service, 2026-10-05; emptied through Vercel as sent, intact repaired).
+ changed = _tools(tool.get("tools")) or changed
+ return changed
+
+ changed = _tools(doc.get("tools"))
+ # ...and a tool search's answer carries definitions inside the conversation's own items.
+ for item in doc.get("input") if isinstance(doc.get("input"), list) else []:
+ if isinstance(item, dict):
+ changed = _tools(item.get("tools")) or changed
+ return json.dumps(doc, separators=(",", ":")).encode() if changed else body
+
+
def _image_in_tool_result_refused(code: int, data: bytes) -> bool:
"""Whether a provider's refusal is about an image it was handed (see _tool_images_as_text)."""
low = data.lower()
@@ -4131,6 +4224,7 @@ class _HermesRelayHandler(http.server.BaseHTTPRequestHandler):
_body_model = ""
if body is not None and self.path.endswith("/chat/completions"):
body = _normalize_openai_chat_body(body)
+ body = _with_free_form_objects(body) # before the Gemini normaliser below, which has its own rules
if flags.get("stream_usage"):
body = _request_stream_usage(body)
if flags.get("rename_max_tokens"):
@@ -4152,6 +4246,11 @@ class _HermesRelayHandler(http.server.BaseHTTPRequestHandler):
for field in flags.get("drop_fields", ()):
body = _drop_top_level_field(body, field)
headers["content-length"] = str(len(body))
+ elif body is not None and self.path.split("?", 1)[0].endswith("/responses"):
+ fixed = _with_free_form_objects(body) # the same repair, in the Responses API's tool shape
+ if fixed is not body:
+ body = fixed
+ headers["content-length"] = str(len(body))
google = _GOOGLE_HOST in base or bool(flags.get("thought_signature"))
if google and body is not None and self.path.endswith("/chat/completions"):
body = _google_with_signatures(body, flags.setdefault("google_sigs", {}))
@@ -4801,8 +4900,18 @@ def _hermes_prepare_env(provider: str | None, auth: Auth, cwd: str, env: dict,
env["AZURE_FOUNDRY_BASE_URL"] = auth.base_url
elif p == "openrouter": # OpenRouter aggregator (vendor/model ids)
if auth.api_key:
- env["OPENROUTER_API_KEY"] = auth.api_key
- if auth.base_url:
+ # Through the relay, as hermes's openai-api and anthropic routes are. This one went to
+ # OpenRouter directly, with the connection's real key in the CLI's environment, so none
+ # of the relay's repairs reached it, and it is the route that needed one most: with an
+ # OpenAI model, OpenRouter hands a tool a free-form object EMPTY whenever its schema
+ # carries the empty `properties` hermes adds (see _with_free_form_objects; measured
+ # 2026-10-05, and found on the hosted service with rows arriving as [{}, {}]). hermes
+ # joins /chat/completions onto OPENROUTER_BASE_URL, which is what the relay expects.
+ relay_base, relay_tok = _hermes_relay_route(auth.base_url or "https://openrouter.ai/api/v1",
+ auth.api_key)
+ env["OPENROUTER_API_KEY"] = relay_tok
+ env["OPENROUTER_BASE_URL"] = relay_base
+ elif auth.base_url:
env["OPENROUTER_BASE_URL"] = auth.base_url
elif p == "openai-api": # any OpenAI-compatible endpoint (OpenAI official, TokenRouter, ...)
if auth.api_key and auth.base_url:
diff --git a/runner/tests/test_relay_free_form_objects.py b/runner/tests/test_relay_free_form_objects.py
new file mode 100644
index 00000000..67be9461
--- /dev/null
+++ b/runner/tests/test_relay_free_form_objects.py
@@ -0,0 +1,166 @@
+"""A free-form object in a tool's arguments must reach the tool with its contents.
+
+A tool author writes a list of free-form objects as `items: {"type": "object"}`. Hermes and opencode
+add an empty `properties` to every object node before the provider sees it, and with that key
+present some gateways let the model fill nothing in. Measured 2026-10-05, one tool call per cell, two
+repetitions, the model asked to pass two specific rows:
+
+ items shape Vercel+OpenAI Vercel/TokenRouter+kimi-k3 OpenRouter+OpenAI
+ {"type":"object"} intact intact intact
+ {"type":"object","properties":{}} [{}, {}] [] [{}, {}]
+ {"type":"object","properties":{},"additionalProperties":true} intact intact [{}, {}]
+ {"type":"object","additionalProperties":true} intact intact intact
+
+The two shapes WITHOUT an empty `properties` were intact in every cell: eleven model families on two
+aggregators, OpenRouter, and OpenAI, Azure and Google directly. So the relay drops an empty
+`properties` from every nested object node, for every model. End to end before the repair, on
+gpt-5.4 through Vercel, an MCP tool that reports what it received said "[{}, {}]" on hermes and on
+opencode (scripts/support-matrix/plugins, the `rows` column).
+"""
+import http.client
+import http.server
+import json
+import pathlib
+import sys
+import threading
+
+sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
+import server as rs # noqa: E402
+from server import _with_free_form_objects # noqa: E402
+
+
+def _tool(params: dict) -> dict:
+ return {"type": "function", "function": {"name": "insert_rows", "parameters": params}}
+
+
+def _params(body: bytes, i: int = 0) -> dict:
+ return json.loads(body)["tools"][i]["function"]["parameters"]
+
+
+def test_an_empty_properties_leaves_every_nested_object_and_nothing_else_changes():
+ body = json.dumps({"model": "m", "messages": [], "tools": [_tool({
+ "type": "object", "required": ["table", "rows"],
+ "properties": {
+ "table": {"type": "string"},
+ "rows": {"type": "array", "items": {"type": "object", "properties": {}}},
+ "values": {"type": "object", "properties": {}, "additionalProperties": True, "description": "Columns to set"},
+ "where": {"anyOf": [{"type": "object", "properties": {}}, {"type": "null"}]},
+ "point": {"type": "object", "properties": {"x": {"type": "number"},
+ "meta": {"type": "object", "properties": {}}}},
+ }})]}).encode()
+ p = _params(_with_free_form_objects(body))
+ assert p["properties"]["rows"]["items"] == {"type": "object"}
+ assert p["properties"]["values"] == {"type": "object", "additionalProperties": True, "description": "Columns to set"}
+ assert p["properties"]["where"]["anyOf"][0] == {"type": "object"}
+ assert p["properties"]["point"]["properties"]["meta"] == {"type": "object"}
+ assert set(p["properties"]["point"]["properties"]) == {"x", "meta"} # a node with real properties keeps them
+ assert p["required"] == ["table", "rows"] and p["properties"]["table"] == {"type": "string"}
+
+
+def test_the_responses_shape_is_repaired_as_well_and_other_tool_types_are_left_alone():
+ """With an OpenAI model on an aggregator, hermes, opencode and kilo speak the Responses API,
+ where a function tool carries `parameters` beside its name. A repair of the chat shape alone
+ left those three losing their rows through Vercel."""
+ body = json.dumps({"model": "m", "input": "hi", "tools": [
+ {"type": "function", "name": "insert_rows", "parameters": {"type": "object", "properties": {
+ "rows": {"type": "array", "items": {"type": "object", "properties": {}}}}}},
+ {"type": "web_search", "parameters": {"type": "object", "properties": {"x": {"type": "object", "properties": {}}}}},
+ ]}).encode()
+ tools = json.loads(_with_free_form_objects(body))["tools"]
+ assert tools[0]["parameters"]["properties"]["rows"]["items"] == {"type": "object"}
+ assert tools[1]["parameters"]["properties"]["x"] == {"type": "object", "properties": {}} # not a function tool
+
+
+def test_function_tools_inside_a_namespace_and_inside_the_conversation_are_repaired():
+ """Codex groups a server's MCP tools in a namespace and adds the empty `properties` itself; a
+ tool search's answer carries definitions as an item of the conversation. Both are function
+ tools one level down from where the first two shapes keep them."""
+ free = {"type": "object", "properties": {"rows": {"type": "array", "items": {"type": "object", "properties": {}}}}}
+ body = json.dumps({"model": "m", "tools": [
+ {"type": "namespace", "name": "mcp__probe", "description": "probe", "tools": [
+ {"type": "function", "name": "insert_rows", "strict": False, "parameters": json.loads(json.dumps(free))}]},
+ {"type": "tool_search"}],
+ "input": [{"type": "message", "role": "user", "content": "hi"},
+ {"type": "tool_search_output", "tools": [
+ {"type": "function", "name": "insert_rows", "parameters": json.loads(json.dumps(free))}]}]}).encode()
+ doc = json.loads(_with_free_form_objects(body))
+ assert doc["tools"][0]["tools"][0]["parameters"]["properties"]["rows"]["items"] == {"type": "object"}
+ assert doc["input"][1]["tools"][0]["parameters"]["properties"]["rows"]["items"] == {"type": "object"}
+ assert doc["tools"][1] == {"type": "tool_search"} and doc["input"][0]["content"] == "hi"
+
+
+def test_the_root_of_a_tool_that_takes_no_arguments_keeps_its_shape():
+ """`parameters: {"type": "object", "properties": {}}` is how a tool with no arguments is written,
+ and several validators want `properties` on the root. Only nested nodes are touched."""
+ body = json.dumps({"model": "m", "messages": [], "tools": [_tool({"type": "object", "properties": {}})]}).encode()
+ assert _with_free_form_objects(body) == body
+
+
+def test_a_body_without_the_shape_comes_back_byte_identical():
+ for doc in ({"model": "m", "messages": [{"role": "user", "content": 'say "properties": {}'}]},
+ {"model": "m", "messages": [], "tools": [_tool({"type": "object", "properties": {
+ "rows": {"type": "array", "items": {"type": "object"}}}})]},
+ {"model": "m", "messages": [], "tools": "not a list"}):
+ body = json.dumps(doc).encode()
+ assert _with_free_form_objects(body) is body
+ assert _with_free_form_objects(b"not json") == b"not json"
+
+
+def test_the_relay_sends_the_repaired_schema_for_any_model():
+ seen = {}
+
+ class Up(http.server.BaseHTTPRequestHandler):
+ def do_POST(self):
+ seen["body"] = json.loads(self.rfile.read(int(self.headers["content-length"])))
+ out = b'{"id":"c","model":"m","choices":[{"message":{"role":"assistant","content":"ok"},"finish_reason":"stop"}]}'
+ self.send_response(200); self.send_header("content-type", "application/json")
+ self.send_header("content-length", str(len(out))); self.end_headers(); self.wfile.write(out)
+
+ def log_message(self, *a):
+ pass
+
+ up = http.server.HTTPServer(("127.0.0.1", 0), Up)
+ threading.Thread(target=up.serve_forever, daemon=True).start()
+ relay_base, tok = rs._hermes_relay_route(f"http://127.0.0.1:{up.server_port}/v1", "sk-real")
+ conn = http.client.HTTPConnection(relay_base.removeprefix("http://").removesuffix("/v1"), timeout=10)
+ try:
+ for model in ("openai/gpt-5.4", "moonshotai/kimi-k3", "anthropic/claude-haiku-4.5"):
+ conn.request("POST", "/v1/chat/completions", body=json.dumps({
+ "model": model, "messages": [{"role": "user", "content": "hi"}],
+ "tools": [_tool({"type": "object", "properties": {
+ "rows": {"type": "array", "items": {"type": "object", "properties": {}}}}})]}),
+ headers={"authorization": f"Bearer {tok}", "content-type": "application/json"})
+ resp = conn.getresponse(); resp.read()
+ assert resp.status == 200
+ sent = seen["body"]["tools"][0]["function"]["parameters"]
+ assert sent["properties"]["rows"]["items"] == {"type": "object"}, model
+ # ...and on the Responses API's path, in its own tool shape
+ conn.request("POST", "/v1/responses", body=json.dumps({
+ "model": "openai/gpt-5.4", "input": "hi",
+ "tools": [{"type": "function", "name": "insert_rows", "parameters": {"type": "object", "properties": {
+ "rows": {"type": "array", "items": {"type": "object", "properties": {}}}}}}]}),
+ headers={"authorization": f"Bearer {tok}", "content-type": "application/json"})
+ resp = conn.getresponse(); resp.read()
+ assert resp.status == 200
+ assert seen["body"]["tools"][0]["parameters"]["properties"]["rows"]["items"] == {"type": "object"}
+ finally:
+ conn.close(); up.shutdown(); rs._HERMES_RELAY["routes"].pop(tok, None)
+
+
+def test_hermes_on_openrouter_rides_the_relay_so_the_repair_reaches_it():
+ """hermes went to OpenRouter directly, with the connection's key in its environment, and that is
+ the one route where neither spelling with an empty `properties` survives an OpenAI model."""
+ import tempfile
+ d = tempfile.mkdtemp(); env = {"HOME": d}
+ rs._hermes_prepare_env("openrouter", rs.Auth(api_key="sk-or-real", base_url="https://openrouter.ai/api/v1"), d, env,
+ model="openai/gpt-5.4")
+ assert env["OPENROUTER_API_KEY"].startswith("hr-relay-") and "sk-or-real" not in json.dumps(env)
+ assert env["OPENROUTER_BASE_URL"].startswith("http://127.0.0.1:") and env["OPENROUTER_BASE_URL"].endswith("/v1")
+ upstream, key, _flags = rs._HERMES_RELAY["routes"][env["OPENROUTER_API_KEY"]]
+ assert upstream == "https://openrouter.ai/api/v1" and key == "sk-or-real"
+ rs._HERMES_RELAY["routes"].pop(env["OPENROUTER_API_KEY"], None)
+ # a connection saved without a base url still gets a route, to OpenRouter's own address
+ env2 = {"HOME": tempfile.mkdtemp()}
+ rs._hermes_prepare_env("openrouter", rs.Auth(api_key="sk-or-real"), env2["HOME"], env2, model="openai/gpt-5.4")
+ assert rs._HERMES_RELAY["routes"][env2["OPENROUTER_API_KEY"]][0] == "https://openrouter.ai/api/v1"
+ rs._HERMES_RELAY["routes"].pop(env2["OPENROUTER_API_KEY"], None)
diff --git a/scripts/support-matrix/plugins/fixture/bin/probe.py b/scripts/support-matrix/plugins/fixture/bin/probe.py
index 397e8c35..6f633e45 100755
--- a/scripts/support-matrix/plugins/fixture/bin/probe.py
+++ b/scripts/support-matrix/plugins/fixture/bin/probe.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python3
-"""A minimal MCP stdio server with one tool, plugin_probe(note) -> "PLUGIN_MCP_OK".
+"""A minimal MCP stdio server with two tools: plugin_probe(note) -> "PLUGIN_MCP_OK", and
+probe_rows(rows), which answers "PLUGIN_ROWS_OK" only when the rows it was handed are the two the
+matrix asks for.
Speaks the protocol by hand (JSON-RPC 2.0, one message per line) so it depends on nothing
but python3, whatever SDK version the client brings."""
@@ -8,6 +10,21 @@ import sys
TOOL = {"name": "plugin_probe", "description": "The support matrix's probe tool. Returns a fixed token.",
"inputSchema": {"type": "object", "properties": {"note": {"type": "string"}}}}
+# A list of FREE-FORM objects, declared the way a tool author writes one: `items: {"type": "object"}`
+# and nothing more. Several clients add an empty `properties` to such a node before the provider
+# sees it, and some providers then let the model fill nothing in: the rows arrived as [{}, {}] or
+# [] (measured 2026-10-05). The tool says what it received, so a lost argument cannot read as a pass.
+ROWS = [{"label": "first", "score": 1}, {"label": "second", "score": 2}]
+ROWS_TOOL = {"name": "probe_rows", "description": "The support matrix's probe for a list of objects. Says whether the rows arrived whole.",
+ "inputSchema": {"type": "object", "required": ["rows"],
+ "properties": {"rows": {"type": "array", "description": "Row objects", "items": {"type": "object"}}}}}
+
+
+def rows_answer(args) -> str:
+ got = (args or {}).get("rows")
+ if got == ROWS:
+ return "PLUGIN_ROWS_OK first=1 second=2"
+ return "PLUGIN_ROWS_LOST the tool received " + json.dumps(got)[:300]
def reply(msg_id, result):
@@ -28,9 +45,11 @@ for line in sys.stdin:
reply(i, {"protocolVersion": msg.get("params", {}).get("protocolVersion", "2025-06-18"),
"capabilities": {"tools": {}}, "serverInfo": {"name": "probe", "version": "1.0.0"}})
elif m == "tools/list":
- reply(i, {"tools": [TOOL]})
+ reply(i, {"tools": [TOOL, ROWS_TOOL]})
elif m == "tools/call":
- reply(i, {"content": [{"type": "text", "text": "PLUGIN_MCP_OK"}], "isError": False})
+ params = msg.get("params") or {}
+ text = rows_answer(params.get("arguments")) if params.get("name") == "probe_rows" else "PLUGIN_MCP_OK"
+ reply(i, {"content": [{"type": "text", "text": text}], "isError": False})
elif m == "ping":
reply(i, {})
elif i is not None:
diff --git a/scripts/support-matrix/plugins/run-matrix.py b/scripts/support-matrix/plugins/run-matrix.py
index d46be87e..0359034d 100755
--- a/scripts/support-matrix/plugins/run-matrix.py
+++ b/scripts/support-matrix/plugins/run-matrix.py
@@ -52,12 +52,21 @@ MCP_PROMPT = ("Call the MCP tool plugin_probe from the server named probe (it ma
REMOTE_PROMPT = ("Call the MCP tool {tool} from the server named probe (it may appear to you as {tool} "
"or probe_{tool}) with no arguments, then reply with the tool's output text verbatim and "
"nothing else. The tool must actually be called.")
-MODES = ["skills", "mcp", "sse", "http"]
+# A list of free-form objects through an MCP tool, read back: the argument shape a typed scenario
+# never sends. On 2026-10-05 the rows reached the tool empty on two bases with OpenAI models on one
+# aggregator, and with one model on every connection, while every other column was green. The
+# rows are spelled out in the prompt and the tool answers PLUGIN_ROWS_OK only if they arrived whole.
+ROWS_PROMPT = ("Call the MCP tool probe_rows from the server named probe (it may appear to you as probe_rows "
+ "or probe_probe_rows) with rows set to exactly this list of two objects: "
+ '[{"label": "first", "score": 1}, {"label": "second", "score": 2}]. Then reply with the '
+ "tool's output text verbatim and nothing else. The tool must actually be called.")
+MODES = ["skills", "mcp", "rows", "sse", "http"]
# Per column: the server entry the package's mcp.json carries (None = no server), the tool the task
# calls, and the token that proves the whole chain answered.
COLUMN = {
"skills": (None, None, "PLUGIN_SKILL_OK"),
"mcp": ("stdio", "plugin_probe", "PLUGIN_MCP_OK"),
+ "rows": ("stdio", "probe_rows", "PLUGIN_ROWS_OK"),
"sse": ({"type": "sse", "url": f"{PROBE_URL}/sse"}, "probe_sse", f"PROBE-SSE-{PROBE_ID}"),
"http": ({"type": "streamable-http", "url": f"{PROBE_URL}/mcp"}, "probe_http", f"PROBE-HTTP-{PROBE_ID}"),
}
@@ -130,14 +139,14 @@ def run_one(api: Api, base: str, mode: str, model: str, keep: bool, task_timeout
status, created = api.call("POST", "/v1/harnesses", body)
if status != 200:
err = (created.get("error") or {})
- if mode == "mcp" and base in NO_STDIO and err.get("code") == "unsupported_transport":
+ if COLUMN[mode][0] == "stdio" and base in NO_STDIO and err.get("code") == "unsupported_transport":
row["outcome"] = "refused as designed"
row["detail"] = f"422 {err.get('code')} detail={err.get('detail')}"
else:
row["outcome"] = "create failed"
row["detail"] = f"HTTP {status} {err.get('code') or created}"
return row
- if mode == "mcp" and base in NO_STDIO:
+ if COLUMN[mode][0] == "stdio" and base in NO_STDIO:
row["outcome"] = "should have been refused"
row["detail"] = "the package declares a stdio server and this base cannot run one"
api.call("DELETE", f"/v1/harnesses/{created['id']}")
@@ -150,7 +159,7 @@ def run_one(api: Api, base: str, mode: str, model: str, keep: bool, task_timeout
try:
_, tool, token = COLUMN[mode]
prompt = (SKILL_PROMPT if mode == "skills" else MCP_PROMPT if mode == "mcp"
- else REMOTE_PROMPT.format(tool=tool))
+ else ROWS_PROMPT if mode == "rows" else REMOTE_PROMPT.format(tool=tool))
status, resp = api.call("POST", "/v1/responses", {
"input": prompt, "metadata": {"harness_id": created["id"]}, "stream": False,
"max_step": 12}, timeout=task_timeout)