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.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
gateway: a runner refusal is answered at once, not retried for five minutes
hiro-nikaitou3a98c133bc64
diff --git a/gateway/app.py b/gateway/app.pyindex 39b848c4..28b76731 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -1546,11 +1546,14 @@ async def _sandbox_json(path: str, sid: str, method: str = "POST", body: dict |if r.status_code < 400 and raw:return r.json()last = f"HTTP {r.status_code}, {len(raw)}B body"+ if 400 <= r.status_code < 500 and r.status_code != 429: # the server's verdict: waiting cannot change it+ last = f"HTTP {r.status_code}: {raw[:300].decode('utf-8', 'replace')}"+ breakexcept Exception as e: # noqa: BLE001last = f"{type(e).__name__}: {str(e)[:120]}"if i < attempts - 1:await asyncio.sleep(min(base * (1.5 ** i), 15.0))- raise RuntimeError(f"sandbox {path} unavailable after {attempts} tries ({last})")+ raise RuntimeError(f"sandbox {path} failed after {i + 1} of {attempts} tries ({last})")# ── durable session workspace (git checkpoint tarball in vg-gateway blob storage) ──