test(ai): pin the output-language adoption across the prompt family

Holds every sibling prompt module to one invariant: strip the directive
and the interpolated language name out of a French, Spanish, Italian or
Polish prompt and what remains is the English prompt, byte for byte. A
German instruction body leaking back into a non-German prompt, an
English body drifting away from what the four locales receive, and a
module appending a second directive on top of the one the base prompt
already carries all fail here.

Also drops the now-unused narrow locale alias from the two modules whose
prompt builders take the full locale.
This commit is contained in:
Marc-André Bombeck committed 2026-07-18 23:29:25 +02:00
1 parent 13197c7ee9
commit decc6681f6
3 files changed
+271 -2

No files matched your search

-1
View File
@@ -32,7 +32,6 @@ import { getNoKeyGeneralStatusText } from "@/lib/insights/no-key-fallbacks";
import { hashInsightSnapshot } from "@/lib/insights/snapshot-hash";
import { runStatusCompletion } from "@/lib/insights/status-provider";
import {
type SupportedLocale,
normalizeLocale,
normalizeSummaryText,
parseSummaryFromContent,
@@ -31,7 +31,6 @@ import {
normalizeSummaryText,
parseSummaryFromContent,
persistStatusInsight,
type SupportedLocale,
} from "@/lib/insights/status-shared";
import { runStatusCompletion } from "@/lib/insights/status-provider";
import {