feat(ai-judge): prompt v3 few-shot calibration and corpus replay harness (PIEXTENSIO-18)

This commit is contained in:
2026-08-19 23:45:47 +08:00
parent 232bad549e
commit efc73c0f5c
5 changed files with 571 additions and 11 deletions
@@ -26,7 +26,9 @@ describe("buildJudgeContext", () => {
fullCommand: `cd /repo && ${command}`,
triggeringUnit: command,
});
const message = context.messages[0];
// The real evidence message is the last user message, after the
// few-shot examples (prompt v3).
const message = context.messages.at(-1);
expect(message?.role).toBe("user");
const text =
message?.role === "user" && Array.isArray(message.content)