fix(ai): remove retired Host110 Ollama surfaces

This commit is contained in:
Your Name
2026-07-19 11:41:38 +08:00
parent ae7dab8e05
commit 4d1dfe7def
8 changed files with 29 additions and 25 deletions

View File

@@ -54,6 +54,25 @@ def test_retired_host110_ollama_proxy_is_absent_from_runtime_manifests() -> None
assert "192.168.0.110:11437" not in text
def test_retired_host110_ollama_proxy_is_absent_from_active_operator_surfaces() -> None:
for relative in (
"apps/api/src/services/platform_operator_service.py",
"apps/web/src/app/[locale]/awooop/runs/page.tsx",
"apps/web/messages/en.json",
"apps/web/messages/zh-TW.json",
):
text = (ROOT / relative).read_text(encoding="utf-8")
assert "proxy_110_11435" not in text
assert "proxy_110_11436" not in text
assert "proxy_110_11437" not in text
manual_probe = (
ROOT / "apps/api/scripts/test_nemotron_tool_calling.py"
).read_text(encoding="utf-8")
assert '"http://192.168.0.111:11434"' in manual_probe
assert "192.168.0.110:11435" not in manual_probe
def test_prod_network_policy_allows_only_canonical_ollama_egress() -> None:
policy = _load_named_doc(
ROOT / "k8s/awoooi-prod/02-network-policy.yaml",

View File

@@ -155,9 +155,9 @@ def test_loader_returns_fixed_architecture_provider_order_and_agent99_bridge() -
"active_or_completed_commitments": 68,
"by_status": {
"analysis_or_governance_complete": 6,
"source_implemented_runtime_pending": 23,
"source_implemented_runtime_pending": 24,
"in_progress": 32,
"not_started_or_no_current_evidence": 7,
"not_started_or_no_current_evidence": 6,
"superseded": 2,
},
"product_runtime_closed_commitments": 0,
@@ -168,6 +168,9 @@ def test_loader_returns_fixed_architecture_provider_order_and_agent99_bridge() -
assert commitments["AIA-CONV-012"]["title"].startswith("Claude API")
assert commitments["AIA-CONV-013"]["title"].startswith("Gemini API")
assert "Host112" in commitments["AIA-CONV-049"]["title"]
assert commitments["AIA-CONV-050"]["status"] == (
"source_implemented_runtime_pending"
)
assert commitments["AIA-CONV-060"]["status"] == "superseded"