From c994b3ef68b1937a38e6709a970d0910d8873346 Mon Sep 17 00:00:00 2001 From: mptyl Date: Tue, 11 Aug 2026 19:32:57 +0200 Subject: [PATCH] fix: introspect the filesystem workspace before FK suggestion --- backend/scripts/p2-acceptance.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/scripts/p2-acceptance.mjs b/backend/scripts/p2-acceptance.mjs index 1a279a56..91c6b7bc 100644 --- a/backend/scripts/p2-acceptance.mjs +++ b/backend/scripts/p2-acceptance.mjs @@ -1163,6 +1163,8 @@ async function realChecks(ctx) { { id: "schema_review", async run() { + // FK suggestion consumes the workspace's own introspected physical schema. + await runThothctlJson(ctx, "preprocess-dwh-filesystem", ["workspace", "preprocess", "dwh", "--workspace", "p2-filesystem"], 0); const suggest = await runThothctlJson(ctx, "schema-suggest-filesystem", ["workspace", "schema", "suggest-fks", "--workspace", "p2-filesystem"], 3); assert(suggest.payload.code === "manual_review_required", "suggest did not block"); assert(typeof suggest.payload.suggestedFksYaml === "string" && suggest.payload.suggestedFksYaml.length > 0, "suggested FK YAML missing");