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
calibration: the credential reads the installed package's files (#233)
github-actions[bot]ef19f3a0c4ee
diff --git a/gateway/app.py b/gateway/app.pyindex 80318092..e1b1ed29 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -915,6 +915,7 @@ def _calibration_route_allowed(method: str, path: str, inner: str) -> bool:("GET", r"/v1/sessions/[^/]+/files(/.*)?"),("GET", rf"/v1/harnesses/{h}"), ("PUT", rf"/v1/harnesses/{h}"),("GET", rf"/v1/harnesses/{h}/plugin"), ("PUT", rf"/v1/harnesses/{h}/plugin"),+ ("GET", rf"/v1/harnesses/{h}/plugins/[^/]+/files"), # the package it calibrates, as installed("POST", r"/v1/kits/[^/]+/launch"),)return any(m == method.upper() and re.fullmatch(pat, path) for m, pat in allowed)diff --git a/gateway/tests/test_dual_loop.py b/gateway/tests/test_dual_loop.pyindex 72a23e0c..147da8fc 100644--- a/gateway/tests/test_dual_loop.py+++ b/gateway/tests/test_dual_loop.py@@ -68,6 +68,11 @@ def test_the_credential_reaches_its_harness_s_routes_and_nothing_else():assert ok("GET", "/v1/sessions/hsess1/files", INNER) and ok("GET", "/v1/sessions/hsess1/files/observations/000001.jpg", INNER)assert ok("GET", f"/v1/harnesses/{INNER}", INNER) and ok("PUT", f"/v1/harnesses/{INNER}", INNER)assert ok("GET", f"/v1/harnesses/{INNER}/plugin", INNER) and ok("PUT", f"/v1/harnesses/{INNER}/plugin", INNER)+ # the installed package's files, which is what the outer loop edits (the export route is a+ # generated package named after the harness, and publishing it back made a stray, 2026-09-21)+ assert ok("GET", f"/v1/harnesses/{INNER}/plugins/mario-env/files", INNER)+ assert not ok("GET", f"/v1/harnesses/{other}/plugins/mario-env/files", INNER)+ assert not ok("PUT", f"/v1/harnesses/{INNER}/plugins/mario-env/files", INNER)assert ok("POST", "/v1/kits/mario/launch", INNER)assert ok("get", "/api/harness/v1/sessions", INNER) # through the console's proxy prefix# not its harness, not its business