You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[kbn-evals] Simplify CI triage to two paths: tool call parses, or generic failure
Drop the speculative branches (finish_reason=length, missing tool call,
prose fallback, object arguments, group cap) and their constants. The
structured triage now either parses the forced tool call arguments or
throws the existing generic error, with the redacted raw reply logged
once in the notify step so the next failure is diagnosable.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
// Output budget for the free-text weekly rollup (bullets, < 900 chars).
19
-
constDEFAULT_MAX_TOKENS=800;
20
-
21
-
// Output budget for the per-suite structured triage.
18
+
// Output budget for the per-suite structured triage. One group per distinct error,
19
+
// each quoting an error line; a sharded suite with several failing models needs
20
+
// more than the 800 tokens the free-text weekly rollup uses.
22
21
constTRIAGE_MAX_TOKENS=4000;
23
-
24
-
// Bounds enforced through the prompt so the structured output stays well inside
25
-
// TRIAGE_MAX_TOKENS regardless of how many models failed.
26
-
constTRIAGE_MAX_GROUPS=6;
27
22
constTRIAGE_MAX_ERROR_CHARS=200;
28
23
29
-
// How much of a malformed model reply to surface in the Buildkite step log.
30
-
constTRIAGE_RAW_PREVIEW_CHARS=300;
31
-
32
24
constTRIAGE_SYSTEM_PROMPT=
33
25
'You are an SRE assistant triaging failed LLM evaluation CI runs. Be concise and factual, and base every statement on the provided context.';
34
26
@@ -83,7 +75,6 @@ const TRIAGE_OUTPUT_INSTRUCTIONS = `Report the result by calling the \`${TRIAGE_
83
75
84
76
Rules:
85
77
- One group per distinct error. Merge the same failure (same message/location) into one group and list all its affected models.
86
-
- Report at most ${TRIAGE_MAX_GROUPS} groups; if there are more distinct errors, keep the ones affecting the most models.
87
78
- Quote "error" verbatim from the excerpts, trimmed to a single line of at most ${TRIAGE_MAX_ERROR_CHARS} characters; do not invent errors, file names, line numbers, or causes.
88
79
- Set "location" only if the excerpts show it; otherwise use an empty string.
89
80
- Keep "rootCause" to one short sentence plus one short action.
0 commit comments