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:
parent
cf766bf724
commit
9647b862c9
1 changed files with 36 additions and 2 deletions
|
|
@ -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/);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue