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
fix: the discovery document reports the version this build is
richard-epsillad5c9417be3b7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex fec6fefc..4b207a74 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -140,6 +140,7 @@ jobs:build-args: |HR_SKILLS_REF=${{ needs.plan.outputs.skills }}HR_KITS_REF=${{ needs.plan.outputs.kits }}+ HR_VERSION=${{ needs.plan.outputs.version }}outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=truecache-from: type=gha,scope=${{ matrix.arch }}cache-to: type=gha,mode=max,scope=${{ matrix.arch }}diff --git a/Dockerfile b/Dockerfileindex a9a6dcb2..74c5dd5a 100644--- a/Dockerfile+++ b/Dockerfile@@ -141,6 +141,13 @@ RUN chmod +x /tmp/install-skills.sh \# Starter Kits: a Harness plus an app, both baked in. Same pull-and-pin shape as the skills# bundle above, and the same rule: pass a commit sha to get the newest catalogue, because that# is what changes the layer's inputs.+# What this build IS, for the discovery document and anything else that reports a version. The+# release workflow passes the tag; a local build says so honestly rather than claiming a number.+# Without this the gateway fell back to a literal that had been six releases stale, so every+# install told clients it was 0.3.0 (found by the 0.9.0 release sanity run).+ARG HR_VERSION=dev+ENV HR_VERSION=${HR_VERSION}+ARG WITH_STARTER_KITS=1ARG HR_KITS_REPO=https://github.com/HarnessRouter/starter-kit.gitARG HR_KITS_REF=maindiff --git a/gateway/app.py b/gateway/app.pyindex 16d259bd..5ce6ce7e 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -2844,8 +2844,11 @@ def uhp_discovery() -> dict:"versions": UHP_VERSIONS, "default_version": UHP_VERSION,"conformance_class": UHP_CONFORMANCE_CLASS,"capabilities": dict(UHP_CAPABILITIES),+ # The version this build IS (baked by the release workflow). "dev" for a build that+ # was never released, which is the honest answer: the literal that used to sit here+ # went stale and told every client 0.3.0 six releases later."implementation": {"name": "HarnessRouter Community Edition",- "version": os.environ.get("HR_VERSION", "0.3.0")}}+ "version": os.environ.get("HR_VERSION") or "dev"}}@app.get("/healthz")diff --git a/gateway/tests/test_cloud_upload.py b/gateway/tests/test_cloud_upload.pyindex a57198f0..07e260ad 100644--- a/gateway/tests/test_cloud_upload.py+++ b/gateway/tests/test_cloud_upload.py@@ -249,3 +249,13 @@ def test_a_revoked_key_is_named_not_hidden(api, cloud):cloud.keys["sk-hr-good"] = {**dead, "workspace_name": "Test Workspace", "member": "richard"}j = api.get("/v1/cloud-upload/targets").json() # un-revoked: heals and clears the markassert j["targets"][0]["revoked"] is False and j["targets"][0]["label"] == "Test Workspace (richard)"+++def test_discovery_reports_the_version_this_build_is(api, monkeypatch):+ """The literal that used to sit in the discovery document went stale and told every client+ 0.3.0 six releases later. The version comes from the build now, and an unreleased build says+ so rather than claiming a number."""+ monkeypatch.delenv("HR_VERSION", raising=False)+ assert api.get("/v1/uhp").json()["implementation"]["version"] == "dev"+ monkeypatch.setenv("HR_VERSION", "0.9.1")+ assert api.get("/v1/uhp").json()["implementation"]["version"] == "0.9.1"