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.

gateway: a deploy to Cloud creates its copy with POST and replaces it with PUT, and lands where Cloud names for the key (#581)

github-actions[bot]e2e8ce41b64a
diff --git a/gateway/app.py b/gateway/app.py
index ef214826..4c6f7315 100644
--- a/gateway/app.py
+++ b/gateway/app.py
@@ -21227,12 +21227,11 @@ async def _cloud_base_refused(base: str) -> str | None:
return await _internal_target(u.hostname, u.port or 443)
-async def _cloud_me(base_url: str, api_key: str, *, default_workspace: bool = False) -> dict:
- """Resolve a key to where an upload lands. Raises HTTPException with the hosted side's words.
- `default_workspace`: the key is one HarnessRouter Cloud's sign-in minted for the organization's
- Default Workspace (its get-key page mints with workspace "" and workspace_default), which its
- /v1/me answers with no workspace; what such a key creates is unstamped, and unstamped is the
- Default Workspace's, so that is where the copy lands and what it is called here."""
+async def _cloud_me(base_url: str, api_key: str) -> dict:
+ """Resolve a key to where an upload lands, as HarnessRouter Cloud's /v1/me names it. Raises
+ HTTPException with the hosted side's words. A key Cloud's sign-in minted for the organization's
+ Default Workspace is answered with that workspace by Cloud itself (since 2026-10-23); a key it
+ answers with none is refused, however it came."""
refused = await _cloud_base_refused(base_url)
if refused:
raise HTTPException(400, f"that address cannot be used: {refused}")
@@ -21248,8 +21247,6 @@ async def _cloud_me(base_url: str, api_key: str, *, default_workspace: bool = Fa
me = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not isinstance(me, dict) or not me.get("org"):
raise HTTPException(502, "cloud answered without an org")
- if not me.get("workspace") and default_workspace:
- me = {**me, "workspace": f"{me['org']}__hr_default", "workspace_name": me.get("workspace_name") or "Default Workspace"}
if not me.get("workspace"):
raise HTTPException(400, "this key is not bound to a workspace; mint one inside the workspace")
return me
@@ -21339,47 +21336,44 @@ async def _cloud_upload_one(org: str, hid: str, target: dict, records: dict) ->
per = records.setdefault("harnesses", {}).setdefault(hid, {})
tkey = _cloud_tkey(target)
rec = per.get(tkey)
+ # A copy is created with POST /v1/harnesses, which names its id, and replaced with PUT
+ # /v1/harnesses/{id} (UHP Harnesses §5.1, §5.2). PUT never creates: Cloud answers 404 for an id
+ # it holds no harness under, so a first deploy by PUT to a new id failed (found 2026-10-24).
+ # This destination's copy is the one its record names, so a
+ # second workspace, in the same org or another, gets its own; a copy deleted on Cloud since is
+ # created again.
action = "replace" if rec else "create"
- # The hosted id is the local id when that id is free, and a minted one when it is not. Hosted
- # ids are global across orgs, and the hosted side answers 404 for an id owned by another org,
- # deliberately indistinguishable from missing. That is a legitimate situation, not an error:
- # the same local harness uploaded to a second org (a changed key, a shared instance, an id
- # claimed by an earlier test) must land, so on that 404 the upload retries once under a fresh
- # id and the record keeps the mapping. Stability holds per target: every later upload replaces
- # the same hosted copy.
- # This target's hosted id: its own record first; else the local id, but only when no OTHER
- # target has claimed it (a second workspace in the SAME org would otherwise silently update
- # the first workspace's copy rather than creating its own); else minted.
- if rec:
- remote_id = str(rec.get("remote_id") or hid)
- elif per:
- remote_id = "chrn" + uuid.uuid4().hex
- else:
- remote_id = hid
- last_error = ""
- for attempt in (remote_id, "chrn" + uuid.uuid4().hex):
- try:
- r = await _checked_http().put(f"{target['base_url']}/v1/harnesses/{attempt}", json=body,
- headers={"authorization": f"Bearer {target['api_key']}"},
- timeout=httpx.Timeout(60.0, connect=8.0))
- except Exception as e: # noqa: BLE001
- return {"id": hid, "ok": False, "action": action, "error": f"could not reach cloud: {str(e)[:120]}"}
- if r.status_code in (200, 201):
- # the form it was sent in (plugins whole, or as their skills and servers): the status
- # compares the setup now against that same form
- per[tkey] = {"fingerprint": fp, "uploaded_at": int(time.time() * 1000),
- "remote_id": attempt, "target": _cloud_label(target), "plugins_ok": plugins_ok}
- return {"id": hid, "ok": True, "action": action, "name": body["name"], "remote_id": attempt}
- detail = ""
- try:
- j = r.json()
- detail = str((j.get("error") or {}).get("message") or j.get("detail") or "")
- except Exception: # noqa: BLE001
- detail = r.text[:160]
- last_error = f"cloud answered {r.status_code}: {detail}"[:300]
- if r.status_code != 404:
- break # only the taken-id case is worth a second attempt
- return {"id": hid, "ok": False, "action": action, "error": last_error}
+ # a record an upload before remote ids were kept names none: its copy is at the local id
+ rid = str((rec or {}).get("remote_id") or hid)
+ hdr = {"authorization": f"Bearer {target['api_key']}"}
+ wait = httpx.Timeout(60.0, connect=8.0)
+ try:
+ r = None
+ if rec:
+ r = await _checked_http().put(f"{target['base_url']}/v1/harnesses/{rid}",
+ json=body, headers=hdr, timeout=wait)
+ if r.status_code == 404:
+ action, r = "create", None
+ if r is None:
+ r = await _checked_http().post(f"{target['base_url']}/v1/harnesses", json=body, headers=hdr, timeout=wait)
+ except Exception as e: # noqa: BLE001
+ return {"id": hid, "ok": False, "action": action, "error": f"could not reach cloud: {str(e)[:120]}"}
+ try:
+ j = r.json()
+ except Exception: # noqa: BLE001
+ j = {}
+ j = j if isinstance(j, dict) else {}
+ if r.status_code in (200, 201):
+ remote_id = rid if action == "replace" else str(j.get("id") or "")
+ if not remote_id:
+ return {"id": hid, "ok": False, "action": action, "error": "cloud answered without the copy's id"}
+ # the form it was sent in (plugins whole, or as their skills and servers): the status
+ # compares the setup now against that same form
+ per[tkey] = {"fingerprint": fp, "uploaded_at": int(time.time() * 1000),
+ "remote_id": remote_id, "target": _cloud_label(target), "plugins_ok": plugins_ok}
+ return {"id": hid, "ok": True, "action": action, "name": body["name"], "remote_id": remote_id}
+ detail = str((j.get("error") or {}).get("message") or j.get("detail") or "") if j else r.text[:160]
+ return {"id": hid, "ok": False, "action": action, "error": f"cloud answered {r.status_code}: {detail}"[:300]}
def _cloud_status(hid: str, records: dict, fp: str | None, target: dict) -> dict:
@@ -21483,7 +21477,7 @@ async def cloud_connect_poll(code: str, request: Request):
# where the key works: the API the hand-off names (its model endpoint is <base>/v1/provider)
endpoint = str(j.get("endpoint") or "").rstrip("/")
base = endpoint[: -len("/v1/provider")] if endpoint.endswith("/v1/provider") else _CLOUD_UPLOAD_DEFAULT_BASE
- me = await _cloud_me(base, key, default_workspace=True)
+ me = await _cloud_me(base, key)
t = {"base_url": base, "api_key": key, "org": me.get("org") or "", "org_name": me.get("org_name") or "",
"workspace": me.get("workspace") or "", "workspace_name": me.get("workspace_name") or "",
"member": me.get("member") or ""}
diff --git a/gateway/tests/test_cloud_upload.py b/gateway/tests/test_cloud_upload.py
index b023d11a..0016c0ee 100644
--- a/gateway/tests/test_cloud_upload.py
+++ b/gateway/tests/test_cloud_upload.py
@@ -3,6 +3,7 @@ The hosted side is a mock at the HTTP boundary, which pins the contract this fea
GET /v1/me resolves a key to org + workspace, PUT /v1/harnesses/{id} creates or replaces."""
import asyncio
import json
+import re
import sys
from pathlib import Path
@@ -33,12 +34,22 @@ class Cloud:
return httpx.Response(401, json={"error": {"message": "invalid key"}})
if req.url.path == "/v1/me":
return httpx.Response(200, json=me)
+ # UHP Harnesses §5: POST creates and names the id; PUT replaces a harness of the key's
+ # workspace, and answers 404 for any other id (it never creates)
+ if req.url.path == "/v1/harnesses" and req.method == "POST":
+ body = json.loads(req.content)
+ hid = f"chrn_{len(self.calls):032x}"
+ self.harnesses[hid] = {**body, "org": me["org"], "workspace": me["workspace"]}
+ return httpx.Response(200, json={**body, "id": hid})
if req.url.path.startswith("/v1/harnesses/") and req.method == "PUT":
hid = req.url.path.rsplit("/", 1)[-1]
+ had = self.harnesses.get(hid)
+ # the hosted id pattern: anything else is no harness (404), by design
+ if not re.fullmatch(r"chrn_[0-9a-f]{32}", hid) or not had or (had["org"], had["workspace"]) != (me["org"], me["workspace"]):
+ return httpx.Response(404, json={"error": {"message": "No harness with that id."}})
body = json.loads(req.content)
- created = hid not in self.harnesses
self.harnesses[hid] = {**body, "org": me["org"], "workspace": me["workspace"]}
- return httpx.Response(201 if created else 200, json={"id": hid, **body})
+ return httpx.Response(200, json={**body, "id": hid})
return httpx.Response(404, json={"error": {"message": "no route"}})
@@ -107,24 +118,26 @@ def test_stored_targets_keep_the_key_out_and_can_be_removed(api, cloud):
assert left["targets"] == [] and left["last"] == ""
-def test_upload_creates_then_replaces_on_the_same_id(api, cloud):
+def test_upload_creates_the_copy_then_replaces_that_same_copy(api, cloud):
api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-good", "base_url": CLOUD})
hid = _harness(api)
r = api.post(f"/v1/harnesses/{hid}/upload")
assert r.status_code == 200, r.text
assert r.json()["action"] == "create" and r.json()["ok"] is True
- assert hid in cloud.harnesses # same id on the hosted side
- sent = cloud.harnesses[hid]
+ remote = r.json()["remote_id"]
+ assert ("POST", "/v1/harnesses") in cloud.calls # created as UHP creates, never by PUT
+ sent = cloud.harnesses[remote]
assert sent["name"] == "Philz one-pager" and sent["base"] == "dsh" and sent["system_prompt"] == "Make decks."
assert sent["source"] == "selfhost" and sent["workspace"] == "ws_r" # landed in the key's workspace
assert "api_key" not in json.dumps(sent) # nothing secret travels
st = api.get(f"/v1/harnesses/{hid}/upload").json()
assert st["uploaded"] is True and st["changed"] is False and st["target"] == "Research (richard)"
- # edit locally: the chip says changed; upload again: replace, in place, same id
+ # edit locally: the chip says changed; upload again: replace, in place, the same copy
api.put(f"/v1/harnesses/{hid}", json={"name": "Philz one-pager v2", "base": "dsh"})
assert api.get(f"/v1/harnesses/{hid}/upload").json()["changed"] is True
r = api.post(f"/v1/harnesses/{hid}/upload")
- assert r.json()["action"] == "replace" and cloud.harnesses[hid]["name"] == "Philz one-pager v2"
+ assert r.json()["action"] == "replace" and r.json()["remote_id"] == remote
+ assert ("PUT", f"/v1/harnesses/{remote}") in cloud.calls and cloud.harnesses[remote]["name"] == "Philz one-pager v2"
assert len(cloud.harnesses) == 1
assert api.get(f"/v1/harnesses/{hid}/upload").json()["changed"] is False
@@ -134,8 +147,9 @@ def test_skills_travel_with_their_files_inlined(api, cloud):
big = "x" * (gw._SKILL_INLINE_MAX + 100) # forces the local blob offload
hid = _harness(api, skills=[{"name": "deck", "files": [{"path": "SKILL.md", "content": big}]}])
assert "blob" in json.dumps(asyncio.run(gw._vertex_get(hid)).get("skills")) # offloaded locally
- assert api.post(f"/v1/harnesses/{hid}/upload").status_code == 200
- sk = cloud.harnesses[hid]["skills"][0]
+ up = api.post(f"/v1/harnesses/{hid}/upload")
+ assert up.status_code == 200
+ sk = cloud.harnesses[up.json()["remote_id"]]["skills"][0]
assert sk["name"] == "deck" and "blob" not in sk and sk["files"][0]["content"] == big
@@ -149,7 +163,7 @@ def test_batch_runs_every_row_and_skips_builtins(api, cloud):
assert rows[b]["ok"] and rows[b]["action"] == "create"
assert rows["codex"]["action"] == "skip" and rows["codex"]["error"] == "built-in"
assert rows["chrn_" + "f" * 32]["action"] == "skip" and rows["chrn_" + "f" * 32]["error"] == "not found"
- assert set(cloud.harnesses) == {a, b}
+ assert sorted(h["name"] for h in cloud.harnesses.values()) == ["A", "B"]
st = api.get("/v1/cloud-upload/status").json()["harnesses"]
assert st[a]["uploaded"] and st[b]["uploaded"]
@@ -160,7 +174,7 @@ def test_a_cloud_error_on_one_row_does_not_stop_the_others(api, cloud, monkeypat
real = cloud.handle
def flaky(req):
- if req.method == "PUT" and req.url.path.endswith(a):
+ if req.method == "POST" and json.loads(req.content).get("name") == "A":
return httpx.Response(500, json={"error": {"message": "hosted hiccup"}})
return real(req)
cloud.handle = flaky
@@ -170,33 +184,48 @@ def test_a_cloud_error_on_one_row_does_not_stop_the_others(api, cloud, monkeypat
assert api.get(f"/v1/harnesses/{a}/upload").json()["uploaded"] is False # a failed upload leaves no record
-def test_an_id_claimed_by_another_org_lands_under_a_minted_id(api, cloud):
- """The same local harness uploaded to a second org is legitimate: hosted ids are global and
- the hosted side answers 404 for a foreign-owned id, indistinguishable from missing. The
- upload retries once under a fresh id and every later upload replaces that same hosted copy."""
+def test_a_copy_deleted_on_cloud_is_created_again(api, cloud):
+ """The copy a destination's record names may be deleted on Cloud since; its PUT answers 404, and
+ the deploy creates a new copy, which every later deploy replaces. Any other failure creates
+ nothing."""
api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-good", "base_url": CLOUD})
- hid = _harness(api, "Collision")
- real = cloud.handle
-
- def owned_elsewhere(req):
- if req.method == "PUT" and req.url.path.endswith(hid):
- return httpx.Response(404, json={"error": {"message": "No harness with that id."}})
- return real(req)
- cloud.handle = owned_elsewhere
+ hid = _harness(api, "Deleted there")
+ first = api.post(f"/v1/harnesses/{hid}/upload").json()["remote_id"]
+ del cloud.harnesses[first]
r = api.post(f"/v1/harnesses/{hid}/upload")
assert r.status_code == 200, r.text
- remote = r.json()["remote_id"]
- assert remote != hid and remote.startswith("chrn")
- assert cloud.harnesses[remote]["name"] == "Collision"
- assert api.get(f"/v1/harnesses/{hid}/upload").json()["uploaded"] is True
+ again = r.json()["remote_id"]
+ assert r.json()["action"] == "create" and again != first and cloud.harnesses[again]["name"] == "Deleted there"
r2 = api.post(f"/v1/harnesses/{hid}/upload")
- assert r2.json()["remote_id"] == remote and r2.json()["action"] == "replace"
- assert len([k for k in cloud.harnesses if k.startswith("chrn")]) == 1
+ assert r2.json()["remote_id"] == again and r2.json()["action"] == "replace"
+ assert list(cloud.harnesses) == [again]
+ real = cloud.handle
def flaky(req):
- return httpx.Response(500, json={"error": {"message": "boom"}})
+ if req.method == "PUT":
+ return httpx.Response(500, json={"error": {"message": "boom"}})
+ return real(req)
cloud.handle = flaky
- assert api.post(f"/v1/harnesses/{hid}/upload").status_code == 502 # a non-404 mints nothing
+ assert api.post(f"/v1/harnesses/{hid}/upload").status_code == 502 # a non-404 creates nothing
+ assert list(cloud.harnesses) == [again]
+
+
+def test_a_record_from_before_remote_ids_replaces_the_copy_at_the_local_id(api, cloud):
+ """An upload before remote ids were kept recorded only the fingerprint: its copy is at the
+ harness's own id. The next deploy replaces that copy and creates nothing."""
+ api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-good", "base_url": CLOUD})
+ hid = _harness(api, "Older upload")
+ target = asyncio.run(gw._cloud_targets())["targets"][api.get("/v1/cloud-upload/targets").json()["last"]]
+ cloud.harnesses[hid] = {"name": "Older upload", "org": "org_e", "workspace": "ws_r"}
+ rec = asyncio.run(gw._cloud_records())
+ rec.setdefault("harnesses", {})[hid] = {gw._cloud_tkey(target): {"fingerprint": "old", "uploaded_at": 1, "target": "Research (richard)"}}
+ asyncio.run(gw.BACKING.secrets.put(gw.GLOBAL_TENANT, gw._CLOUD_UPLOAD_RECORDS_KEY, json.dumps(rec)))
+ r = api.post(f"/v1/harnesses/{hid}/upload")
+ assert r.status_code == 200, r.text
+ assert r.json()["action"] == "replace" and r.json()["remote_id"] == hid
+ assert list(cloud.harnesses) == [hid] and cloud.harnesses[hid]["system_prompt"] == "Make decks."
+ assert ("POST", "/v1/harnesses") not in cloud.calls
+ assert api.get(f"/v1/harnesses/{hid}/upload").json()["changed"] is False
def test_the_same_harness_uploads_to_every_workspace_a_key_points_at(api, cloud):
@@ -208,20 +237,20 @@ def test_the_same_harness_uploads_to_every_workspace_a_key_points_at(api, cloud)
api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-good", "base_url": CLOUD})
hid = _harness(api, "Everywhere")
r1 = api.post(f"/v1/harnesses/{hid}/upload").json()
- assert r1["action"] == "create" and r1["remote_id"] == hid # first target keeps the local id
+ assert r1["action"] == "create"
# switch the key to another workspace of the same org: its own copy, its own id
api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-ws2", "base_url": CLOUD})
assert api.get(f"/v1/harnesses/{hid}/upload").json()["uploaded"] is True # chip: most recent upload anywhere
r2 = api.post(f"/v1/harnesses/{hid}/upload").json()
- assert r2["action"] == "create" and r2["remote_id"] != hid
- assert cloud.harnesses[hid]["workspace"] == "ws_r"
+ assert r2["action"] == "create" and r2["remote_id"] != r1["remote_id"]
+ assert cloud.harnesses[r1["remote_id"]]["workspace"] == "ws_r"
assert cloud.harnesses[r2["remote_id"]]["workspace"] == "ws_2"
st = api.get(f"/v1/harnesses/{hid}/upload").json()
assert st["uploaded"] is True and st["target"] == "Second (richard)"
- # back to the first workspace: its record is intact, replace goes to the original id
+ # back to the first workspace: its record is intact, replace goes to its own copy
api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-good", "base_url": CLOUD})
r3 = api.post(f"/v1/harnesses/{hid}/upload").json()
- assert r3["action"] == "replace" and r3["remote_id"] == hid
+ assert r3["action"] == "replace" and r3["remote_id"] == r1["remote_id"]
def test_a_target_stored_before_the_cloud_knew_its_name_heals_on_listing(api, cloud):
diff --git a/gateway/tests/test_deploy_to_cloud.py b/gateway/tests/test_deploy_to_cloud.py
index b07583e2..ee805789 100644
--- a/gateway/tests/test_deploy_to_cloud.py
+++ b/gateway/tests/test_deploy_to_cloud.py
@@ -25,6 +25,10 @@ class CloudWithSignIn(Cloud):
def __init__(self):
super().__init__()
self.pairings: dict[str, dict] = {}
+ # the key Cloud's sign-in mints (workspace "" with workspace_default): its /v1/me names the
+ # organization's Default Workspace (Cloud, since 2026-10-23)
+ self.keys["sk-hr-default"] = {"org": "org_e", "org_name": "Epsilla", "workspace": "org_e__hr_default",
+ "workspace_name": "Default Workspace", "member": "richard"}
def handle(self, req: httpx.Request) -> httpx.Response:
p = req.url.path
@@ -113,7 +117,7 @@ def test_the_first_deploy_signs_in_and_the_key_lands_here_never_in_the_browser(a
hid = _harness(api)
up = api.post(f"/v1/harnesses/{hid}/upload")
assert up.status_code == 200, up.text
- assert cloud.harnesses[hid]["system_prompt"] == "Summarize the week's feedback by theme."
+ assert cloud.harnesses[up.json()["remote_id"]]["system_prompt"] == "Summarize the week's feedback by theme."
def test_a_deploy_hand_off_and_a_key_hand_off_are_never_each_others(api, cloud):
@@ -129,21 +133,28 @@ def test_a_deploy_hand_off_and_a_key_hand_off_are_never_each_others(api, cloud):
assert api.get("/v1/cloud-upload/connect/nope").status_code == 410
-def test_the_sign_in_key_of_the_default_workspace_lands_there_while_a_pasted_one_is_still_refused(api, cloud):
- """Cloud's sign-in mints its key for the organization's Default Workspace (workspace "" with
- workspace_default), and Cloud's /v1/me answers no workspace for it (2026-10-23). What it creates
- is unstamped, which is the Default Workspace's: that is the destination, by that name. A key
- pasted by hand keeps the rule: no workspace, refused."""
+def test_the_sign_in_key_lands_where_cloud_names_and_a_key_it_names_no_workspace_for_is_refused(api, cloud):
+ """Where a deploy lands is what Cloud's /v1/me names for the key, and nothing is assumed here.
+ Cloud's sign-in mints its key for the organization's Default Workspace, and Cloud names that
+ workspace for it. A key Cloud names no workspace for is refused, through the sign-in as when
+ pasted: before 2026-10-23 Cloud answered none for the sign-in's key, and this instance supplied
+ the Default Workspace itself; that stand-in is gone."""
code = api.post("/v1/cloud-upload/connect", json={}).json()["code"]
- cloud.sign_in(code, key="sk-hr-nows")
+ cloud.sign_in(code, key="sk-hr-default")
r = api.get(f"/v1/cloud-upload/connect/{code}")
assert r.status_code == 200, r.text
assert r.json()["target"]["label"] == "Default Workspace (richard)"
hid = _harness(api)
- assert api.post(f"/v1/harnesses/{hid}/upload").status_code == 200
- assert hid in cloud.harnesses
+ up = api.post(f"/v1/harnesses/{hid}/upload")
+ assert up.status_code == 200
+ assert cloud.harnesses[up.json()["remote_id"]]["workspace"] == "org_e__hr_default"
+ code = api.post("/v1/cloud-upload/connect", json={}).json()["code"]
+ cloud.sign_in(code, key="sk-hr-nows")
+ r = api.get(f"/v1/cloud-upload/connect/{code}")
+ assert r.status_code == 400 and "workspace" in r.text
pasted = api.post("/v1/cloud-upload/targets", json={"api_key": "sk-hr-nows", "base_url": HOSTED})
assert pasted.status_code == 400 and "workspace" in pasted.text
+ assert [t["label"] for t in api.get("/v1/cloud-upload/targets").json()["targets"]] == ["Default Workspace (richard)"]
def test_the_deploy_and_the_status_say_where_the_copy_opens_in_cloud(api, cloud):
@@ -185,8 +196,9 @@ def test_a_copy_sent_to_a_cloud_that_takes_plugins_whole_reads_current_until_it_
cloud.sign_in(code)
api.get(f"/v1/cloud-upload/connect/{code}")
hid = _harness(api)
- assert api.post(f"/v1/harnesses/{hid}/upload").status_code == 200
- assert "plugins" in cloud.harnesses[hid] # sent with plugins whole
+ up = api.post(f"/v1/harnesses/{hid}/upload")
+ assert up.status_code == 200
+ assert "plugins" in cloud.harnesses[up.json()["remote_id"]] # sent with plugins whole
assert api.get(f"/v1/harnesses/{hid}/upload").json()["changed"] is False
assert api.get("/v1/cloud-upload/status").json()["harnesses"][hid]["changed"] is False
assert api.put(f"/v1/harnesses/{hid}", json={"name": "Weekly feedback summary", "base": "hermes",