Skip to content

The agent that grows with you

fix(local-models): keep older apps on their packaged catalog

emozilla47703c53e5b2
diff --git a/hermes_cli/local_runtime/catalog.json b/hermes_cli/local_runtime/catalog.json
index 5b098955482..b66e263f3c9 100644
--- a/hermes_cli/local_runtime/catalog.json
+++ b/hermes_cli/local_runtime/catalog.json
@@ -1,5 +1,5 @@
{
- "schema_version": 1,
+ "schema_version": 2,
"models": [
{
"id": "qwen3.8-27b",
diff --git a/hermes_cli/local_runtime/catalog.py b/hermes_cli/local_runtime/catalog.py
index 4eb7eb0ad04..ab822bf4b24 100644
--- a/hermes_cli/local_runtime/catalog.py
+++ b/hermes_cli/local_runtime/catalog.py
@@ -291,7 +291,7 @@ def recommended_entry(budget: HardwareBudget,
_CATALOG_URL = ("https://raw.githubusercontent.com/NousResearch/hermes-agent"
"/main/hermes_cli/local_runtime/catalog.json")
-_SCHEMA_VERSION = 1
+_SCHEMA_VERSION = 2 # bump when an older app would read a newer catalog but launch its entries wrongly
_REFRESH_TTL_S = 6 * 3600
_refresh_lock = threading.Lock()
_last_refresh_attempt = 0.0
diff --git a/tests/hermes_cli/test_catalog_json.py b/tests/hermes_cli/test_catalog_json.py
index dcb4068058b..44da34cdba6 100644
--- a/tests/hermes_cli/test_catalog_json.py
+++ b/tests/hermes_cli/test_catalog_json.py
@@ -94,7 +94,7 @@ def test_refresh_failure_keeps_current_catalog(monkeypatch):
def test_refresh_rejects_wrong_schema(monkeypatch):
doc = _doc_from(lambda m: m)
- doc["schema_version"] = 2
+ doc["schema_version"] = cat._SCHEMA_VERSION + 1
_fetch_returns(monkeypatch, doc)
ids_before = [e.id for e in cat.CATALOG]
assert cat.refresh_catalog(force=True) is False