Skip to content
Python

test(observability): neutral model ids in this batch's test data (T3-16)

Devika Vermab35851d3ab1f
diff --git a/surfaces/gui/src/components/PersonaDoing.test.tsx b/surfaces/gui/src/components/PersonaDoing.test.tsx
index 705f72aa..775dd367 100644
--- a/surfaces/gui/src/components/PersonaDoing.test.tsx
+++ b/surfaces/gui/src/components/PersonaDoing.test.tsx
@@ -90,7 +90,7 @@ describe("PersonaDoing", () => {
});
it("a first version: no Show diff, 'Nothing to compare yet', and the models used on their own line", async () => {
- const models = ["gpt-5.6-sol", "model-a", "model-b"];
+ const models = ["model-x", "model-a", "model-b"];
(getPersonaDoing as any).mockResolvedValue({
persona_id: "cowork", kept_from: null, min_runs: 10, total: 1, runs: 1,
rows: [row({ version_n: 1, model_line: { kind: "first", models }, models })],
@@ -102,8 +102,8 @@ describe("PersonaDoing", () => {
expect(screen.getByTestId("persona-doing-changed").textContent).toContain("First version seen on this machine.");
expect(screen.getByTestId("persona-doing-changed").textContent).not.toContain("unchanged");
const line = screen.getByTestId("persona-doing-models");
- expect(line.textContent).toBe("Models used in the last 30 days: gpt-5.6-sol and 2 more");
- expect(line.getAttribute("title")).toBe("gpt-5.6-sol, model-a, model-b");
+ expect(line.textContent).toBe("Models used in the last 30 days: model-x and 2 more");
+ expect(line.getAttribute("title")).toBe("model-x, model-a, model-b");
});
it("renders nothing when the engine has no such endpoint", async () => {
diff --git a/surfaces/gui/src/components/PersonaView.test.tsx b/surfaces/gui/src/components/PersonaView.test.tsx
index 4f162809..dbc1817c 100644
--- a/surfaces/gui/src/components/PersonaView.test.tsx
+++ b/surfaces/gui/src/components/PersonaView.test.tsx
@@ -34,7 +34,7 @@ const DETAIL = {
surfaced: true,
default: false,
tools: ["files", "search", "shell"],
- recommended_models: ["claude-opus-4-8", "gpt-5.5"],
+ recommended_models: ["anthropic:model-x", "model-y"],
default_permission_mode: "interactive",
workspace: "deliverable",
recommends: [
@@ -82,8 +82,8 @@ describe("PersonaView", () => {
expect(screen.getByText("Add")).toBeTruthy(); // filesystem (mcp, not connected)
// the models it may use, labelled apart from the models its sessions used (T3-16 d);
// Default mode and Workspace are gone (T3-16 e)
- expect(screen.getByText("claude-opus-4-8")).toBeTruthy();
- expect(screen.getByTestId("persona-can-use").textContent).toBe("Can use: claude-opus-4-8, gpt-5.5");
+ expect(screen.getByText("anthropic:model-x")).toBeTruthy();
+ expect(screen.getByTestId("persona-can-use").textContent).toBe("Can use: anthropic:model-x, model-y");
expect(screen.queryByText(/Default mode/)).toBeNull();
expect(screen.queryByText(/Workspace/)).toBeNull();
});
diff --git a/surfaces/gui/src/components/UsagePage.test.tsx b/surfaces/gui/src/components/UsagePage.test.tsx
index 47ebfc0c..514341ec 100644
--- a/surfaces/gui/src/components/UsagePage.test.tsx
+++ b/surfaces/gui/src/components/UsagePage.test.tsx
@@ -123,10 +123,10 @@ describe("UsageBody", () => {
describe("shortModel (T3-5)", () => {
it("drops the provider and the lab, keeps a size tag", () => {
- expect(shortModel("openrouter:deepseek/deepseek-v4-pro")).toBe("deepseek-v4-pro");
- expect(shortModel("openrouter:z-ai/glm-5.3")).toBe("glm-5.3");
- expect(shortModel("openai:gpt-5.6-sol")).toBe("gpt-5.6-sol");
- expect(shortModel("ollama:qwen3:0.6b")).toBe("qwen3:0.6b");
+ expect(shortModel("openrouter:lab-a/model-x-pro")).toBe("model-x-pro");
+ expect(shortModel("openrouter:lab-b/model-y")).toBe("model-y");
+ expect(shortModel("openai:model-x")).toBe("model-x");
+ expect(shortModel("ollama:model-q:0.6b")).toBe("model-q:0.6b");
expect(shortModel("model-x")).toBe("model-x");
});
});
diff --git a/tests/test_observability_phase3_manual_fixes.py b/tests/test_observability_phase3_manual_fixes.py
index 8aad46c9..2f559ada 100644
--- a/tests/test_observability_phase3_manual_fixes.py
+++ b/tests/test_observability_phase3_manual_fixes.py
@@ -210,6 +210,6 @@ def test_a_versions_models_are_its_own_work_only(tmp_path):
assert row["models"] == ["model-h", "model-x", "together:model-h"]
assert row["model_line"] == {"kind": "first", "models": ["model-h", "model-x", "together:model-h"]}
assert row["version_n"] == 1 # T3-16: numbered even when its files were not kept
- assert usage_api.canonical_model("openai:gpt-5.6-sol") == "gpt-5.6-sol"
- assert usage_api.canonical_model("openrouter:openai/gpt-5") == "openrouter:openai/gpt-5"
+ assert usage_api.canonical_model("openai:model-x") == "model-x"
+ assert usage_api.canonical_model("openrouter:openai/model-x") == "openrouter:openai/model-x"
store.close()