feat: kurze Berichte für Judge und Freigabe (Blocker/Major vollständig, Rest begrenzt)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-10-16 04:19:53 +02:00
commit 9647b862c9

View file

@ -120,6 +120,7 @@ test("parseShipVerdict: SHIP, NO-SHIP, Markdown, unklar", () => {
// Judge-Prompts rufen judgeVerdictSection() auf; extractFn wertet jede Funktion einzeln aus, freie Namen landen
// im globalen Scope.
globalThis.reportBrevityRules = extractFn("reportBrevityRules");
globalThis.judgeVerdictSection = extractFn("judgeVerdictSection");
const judgePrompt = extractFn("judgePrompt");
const judgeWithTestsPrompt = extractFn("judgeWithTestsPrompt");
@ -140,3 +141,15 @@ test("Judge-Prompts: Urteilsregeln und Hinweise in beiden Varianten (Strata-Judg
test("fixPrompt: Hinweise sind kein Auftrag", () => {
assert.match(fixPrompt(""), /„Hinweise“ ist kein Auftrag/);
});
const shipitPrompt = extractFn("shipitPrompt");
test("Judge- und Freigabe-Prompts verlangen kurze Berichte, Blocker/Major bleiben vollständig", () => {
for (const p of [judgePrompt(""), judgeWithTestsPrompt("1 passed", ""), shipitPrompt("")]) {
assert.match(p, /Berichte kurz/);
assert.match(p, /Blocker und Major vollständig/);
assert.match(p, /höchstens 5 Punkte je Abschnitt/);
}
assert.match(shipitPrompt(""), /- Urteil: SHIP \| NO-SHIP/);
assert.match(fixPrompt(""), /Liefere am Ende nur, je Punkt eine Zeile/);
});