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
docs: the self-hosting guide no longer says max_cost_usd caps a turn (#482)
Rudy Mizrahi Celekli9e7bbc204463
diff --git a/docs/self-hosting-guide.md b/docs/self-hosting-guide.mdindex a4222524..4aca5f2b 100644--- a/docs/self-hosting-guide.md+++ b/docs/self-hosting-guide.md@@ -900,8 +900,9 @@ and credentials.starter kits are the same; these are the parts that need a service a single box does not have:- **Billing.** Credits, grants, usage in dollars per task and the per-task spend counters belong to- the hosted ledger. Here you pay your providers directly; `max_cost_usd` on a task or a harness- still caps a turn, read from the provider prices.+ the hosted ledger. Here you pay your providers directly, and nothing caps a turn by its cost: a+ harness that carries `max_cost_usd` is refused as a field it does not have. A turn is bounded by+ `max_step` and `timeout_seconds`; set spend limits with your provider.- **Plugins as accounts.** On the hosted service a plugin is the organization's own account kept bya registry and managed only on the Plugins page; here the registry is local to this box, and thebrowser plugin connects without a credential.diff --git a/gateway/tests/test_harness_fields.py b/gateway/tests/test_harness_fields.pyindex 7c832198..f829e057 100644--- a/gateway/tests/test_harness_fields.py+++ b/gateway/tests/test_harness_fields.py@@ -139,3 +139,16 @@ def test_every_model_the_console_offers_on_a_base_is_one_the_gateway_saves():backend = app._backend_of_harness({"base": base})refused += [(base, m) for m in models + [default] if not app._model_authorized(m, backend)]assert not refused, refused+++def test_a_cost_cap_is_refused_rather_than_saved_and_never_applied(client):+ """#472: the self-hosting guide said `max_cost_usd` on a harness caps a turn, but nothing in the+ gateway or the runner reads one. The guide now says what happens: the field is refused by name,+ so a harness is never saved with a cap that does nothing."""+ n = _count(client)+ r = client.post("/v1/harnesses", json={"name": "capped", "base": "pi", "max_cost_usd": 0.5}, headers=H)+ assert r.status_code in (400, 422), r.text+ assert "max_cost_usd" in r.text+ assert _count(client) == n+ guide = open(os.path.join(os.path.dirname(app.__file__), "..", "docs", "self-hosting-guide.md")).read()+ assert "still caps a turn" not in guide