From 0c859e417ceeba0b78d6d8d6252bdba924457d0a Mon Sep 17 00:00:00 2001 From: wangshun <96341168+xixi-box@users.noreply.github.com> Date: Sat, 5 Dec 2026 13:08:31 +0000 Subject: [PATCH] Update Model Routing Governance preset catalog entry to v0.2.9 Assisted-by: OpenCode (model: opencode-go/deepseek-v4.1-flash, autonomous) Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com> --- presets/catalog.community.json | 17 ++++++----- tests/test_community_preset_catalog.py | 39 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 tests/test_community_preset_catalog.py diff --git a/presets/catalog.community.json b/presets/catalog.community.json index 386158e7c1..ce527f54ad 100644 --- a/presets/catalog.community.json +++ b/presets/catalog.community.json @@ -1,6 +1,6 @@ { "schema_version": "1.0", - "updated_at": "2026-12-04T00:00:00Z", + "updated_at": "2026-12-05T00:00:00Z", "catalog_url": "https://raw.githubusercontent.com/github/spec-kit/main/presets/catalog.community.json", "presets": { "a11y-governance": { @@ -672,32 +672,31 @@ "model-routing-governance": { "name": "Model Routing Governance", "id": "model-routing-governance", - "version": "0.2.8", + "version": "0.2.9", "description": "Discovers harness-local models and maps provider-neutral Spec Kit roles to validated local runner profiles without storing credentials or machine-specific availability in Git.", "author": "Thorsten Hindermann", "repository": "https://github.com/hindermath/spec-kit-preset-model-routing-governance", - "download_url": "https://github.com/hindermath/spec-kit-preset-model-routing-governance/archive/refs/tags/v0.2.8.zip", - "sha256": "8decfabfd2f59f3ddfa44e8e4744adafa3d04acda508c85dcfd4501d1b1489fb", + "download_url": "https://github.com/hindermath/spec-kit-preset-model-routing-governance/archive/refs/tags/v0.2.9.zip", + "sha256": "c604067ece8e3473db442151f1e466da4475899aeaa65f20f4bd83164852ef11", "homepage": "https://github.com/hindermath/spec-kit-preset-model-routing-governance", - "documentation": "https://github.com/hindermath/spec-kit-preset-model-routing-governance/blob/v0.2.8/README.md", + "documentation": "https://github.com/hindermath/spec-kit-preset-model-routing-governance/blob/v0.2.9/README.md", "license": "MIT", "requires": { "speckit_version": ">=0.8.3" }, "provides": { "templates": 4, - "commands": 2, - "scripts": 6 + "commands": 2 }, "tags": [ "model-routing", "agents", "governance", "provider-neutral", - "cross-platform" + "spec-kit" ], "created_at": "2026-08-10T00:00:00Z", - "updated_at": "2026-11-09T00:00:00Z" + "updated_at": "2026-12-05T00:00:00Z" }, "multi-repo-branching": { "name": "Multi-Repo Branching", diff --git a/tests/test_community_preset_catalog.py b/tests/test_community_preset_catalog.py new file mode 100644 index 0000000000..7e60a7e5b7 --- /dev/null +++ b/tests/test_community_preset_catalog.py @@ -0,0 +1,39 @@ +"""Published community-preset entries track the submitted release metadata.""" + +import json +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent +CATALOG = ROOT / "presets" / "catalog.community.json" + +RELEASE = { + "version": "0.2.9", + "download_url": ( + "https://github.com/hindermath/spec-kit-preset-model-routing-governance/" + "archive/refs/tags/v0.2.9.zip" + ), + "documentation": ( + "https://github.com/hindermath/spec-kit-preset-model-routing-governance/" + "blob/v0.2.9/README.md" + ), + "sha256": "c604067ece8e3473db442151f1e466da4475899aeaa65f20f4bd83164852ef11", + "tags": [ + "model-routing", + "agents", + "governance", + "provider-neutral", + "spec-kit", + ], +} + + +def test_model_routing_governance_catalog_tracks_v029_release(): + catalog = json.loads(CATALOG.read_text(encoding="utf-8")) + entry = catalog["presets"]["model-routing-governance"] + + for key, value in RELEASE.items(): + assert entry[key] == value + + assert entry["provides"] == {"templates": 4, "commands": 2} + assert entry["created_at"] == "2026-08-10T00:00:00Z" + assert entry["updated_at"] == catalog["updated_at"]