Fix workspace policy loading

This commit is contained in:
2026-08-13 23:24:45 +02:00
parent 10edca5a09
commit 25b2835e73
8 changed files with 92 additions and 17 deletions
+19
View File
@@ -121,6 +121,25 @@ test("accepts the atomic schema-v3 workspace revision contract without historica
await expect(getWorkspace("psd-clinical")).resolves.toEqual({ workspace, revision });
});
test("accepts a Qdrant collection using the canonical hyphenated workspace name", async () => {
const hyphenatedCollection = {
...workspace,
semantic_index: {
...workspace.semantic_index,
vector_store: { ...workspace.semantic_index.vector_store, collection: "psd-clinical" },
},
} satisfies CanonicalWorkspace;
server.use(http.get("/api/workspaces/psd-clinical", () => HttpResponse.json({
workspace: hyphenatedCollection,
revision,
})));
await expect(getWorkspace("psd-clinical")).resolves.toEqual({
workspace: hyphenatedCollection,
revision,
});
});
test("sanitizes read and validate responses while preserving directory-based Evidence", async () => {
server.use(
http.get("/api/workspaces/psd-clinical", () => HttpResponse.json({ workspace: evidenceWorkspace, revision })),