@crowandraven/evalkeeper 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drafts.d.ts +2 -0
- package/dist/drafts.js +3 -1
- package/dist/drafts.js.map +1 -1
- package/dist/failures.d.ts +16 -0
- package/dist/failures.js +40 -0
- package/dist/failures.js.map +1 -0
- package/dist/glossary.d.ts +4 -2
- package/dist/glossary.js +4 -2
- package/dist/glossary.js.map +1 -1
- package/dist/health.d.ts +35 -2
- package/dist/health.js +31 -6
- package/dist/health.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/legs.d.ts +4 -1
- package/dist/legs.js +6 -2
- package/dist/legs.js.map +1 -1
- package/dist/next/actions.js +79 -15
- package/dist/next/actions.js.map +1 -1
- package/dist/next/route.js +2 -1
- package/dist/next/route.js.map +1 -1
- package/dist/next/weekly.d.ts +7 -2
- package/dist/next/weekly.js +5 -3
- package/dist/next/weekly.js.map +1 -1
- package/dist/next/wiring.d.ts +6 -0
- package/dist/order.d.ts +18 -0
- package/dist/order.js +53 -0
- package/dist/order.js.map +1 -0
- package/dist/prisma/index.d.ts +1 -0
- package/dist/prisma/index.js +3 -0
- package/dist/prisma/index.js.map +1 -1
- package/dist/prune.d.ts +4 -1
- package/dist/prune.js +11 -2
- package/dist/prune.js.map +1 -1
- package/dist/react/AddCase.d.ts +12 -2
- package/dist/react/AddCase.js +70 -8
- package/dist/react/AddCase.js.map +1 -1
- package/dist/react/AnswerKey.js +11 -5
- package/dist/react/AnswerKey.js.map +1 -1
- package/dist/react/CaseMenu.d.ts +6 -1
- package/dist/react/CaseMenu.js +5 -2
- package/dist/react/CaseMenu.js.map +1 -1
- package/dist/react/CompareView.js +4 -4
- package/dist/react/CompareView.js.map +1 -1
- package/dist/react/FeedbackView.js +3 -3
- package/dist/react/FeedbackView.js.map +1 -1
- package/dist/react/HubSections.js +11 -10
- package/dist/react/HubSections.js.map +1 -1
- package/dist/react/ModelMenu.d.ts +13 -4
- package/dist/react/ModelMenu.js +12 -7
- package/dist/react/ModelMenu.js.map +1 -1
- package/dist/react/PriorityPicker.d.ts +21 -0
- package/dist/react/PriorityPicker.js +47 -0
- package/dist/react/PriorityPicker.js.map +1 -0
- package/dist/react/RateView.js +1 -0
- package/dist/react/RateView.js.map +1 -1
- package/dist/react/RunView.js +21 -5
- package/dist/react/RunView.js.map +1 -1
- package/dist/react/SettingsHistory.js +3 -3
- package/dist/react/SettingsHistory.js.map +1 -1
- package/dist/react/SuiteSections.d.ts +6 -0
- package/dist/react/SuiteSections.js +100 -39
- package/dist/react/SuiteSections.js.map +1 -1
- package/dist/react/WeeklyCheck.js +4 -8
- package/dist/react/WeeklyCheck.js.map +1 -1
- package/dist/react/app.d.ts +4 -0
- package/dist/react/app.js.map +1 -1
- package/dist/react/format.d.ts +2 -2
- package/dist/react/format.js +4 -2
- package/dist/react/format.js.map +1 -1
- package/dist/react/pieces.d.ts +21 -1
- package/dist/react/pieces.js +67 -2
- package/dist/react/pieces.js.map +1 -1
- package/dist/runner.d.ts +7 -2
- package/dist/runner.js +5 -2
- package/dist/runner.js.map +1 -1
- package/dist/settings.d.ts +14 -0
- package/dist/settings.js +24 -2
- package/dist/settings.js.map +1 -1
- package/dist/suggest.js +25 -7
- package/dist/suggest.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +32 -0
- package/dist/testing.js.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -1
- package/package.json +10 -10
- package/schema/evalkeeper.prisma +3 -0
- package/src/drafts.ts +6 -1
- package/src/failures.ts +50 -0
- package/src/glossary.ts +6 -2
- package/src/health.ts +55 -7
- package/src/index.ts +2 -0
- package/src/legs.ts +8 -2
- package/src/next/actions.ts +96 -17
- package/src/next/route.ts +2 -1
- package/src/next/weekly.ts +15 -4
- package/src/next/wiring.ts +6 -0
- package/src/order.ts +64 -0
- package/src/prisma/index.ts +5 -0
- package/src/prune.ts +15 -1
- package/src/react/AddCase.tsx +98 -11
- package/src/react/AnswerKey.tsx +74 -14
- package/src/react/CaseMenu.tsx +24 -0
- package/src/react/CompareView.tsx +19 -4
- package/src/react/FeedbackView.tsx +13 -3
- package/src/react/HubSections.tsx +18 -11
- package/src/react/ModelMenu.tsx +24 -7
- package/src/react/PriorityPicker.tsx +143 -0
- package/src/react/RateView.tsx +1 -0
- package/src/react/RunView.tsx +41 -6
- package/src/react/SettingsHistory.tsx +3 -3
- package/src/react/SuiteSections.tsx +418 -251
- package/src/react/WeeklyCheck.tsx +12 -6
- package/src/react/app.ts +4 -0
- package/src/react/format.ts +4 -2
- package/src/react/pieces.tsx +96 -2
- package/src/runner.ts +11 -4
- package/src/settings.ts +37 -2
- package/src/suggest.ts +26 -7
- package/src/testing.ts +35 -1
- package/src/types.ts +18 -0
- package/templates/lib/evalkeeper/actions.ts +8 -0
package/dist/drafts.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export declare function draftMoreCases(opts: {
|
|
|
28
28
|
suite: AnySuite;
|
|
29
29
|
/** What to aim the drafts at, in the person's words; null for none. */
|
|
30
30
|
focus: string | null;
|
|
31
|
+
/** How many to draft (1 to 10); default enough to near the target. */
|
|
32
|
+
count?: number;
|
|
31
33
|
}): Promise<DraftMoreResult>;
|
|
32
34
|
/**
|
|
33
35
|
* Cases in use whose only answer is a draft: what testing with drafts
|
package/dist/drafts.js
CHANGED
|
@@ -24,7 +24,9 @@ export async function draftMoreCases(opts) {
|
|
|
24
24
|
const inUse = all.filter((c) => c.status !== "RETIRED");
|
|
25
25
|
const drafts = await suite.draftMore({
|
|
26
26
|
existing: all.map((c) => ({ input: c.input, tags: c.tags })),
|
|
27
|
-
count:
|
|
27
|
+
count: opts.count === undefined
|
|
28
|
+
? draftsToTarget(inUse.length)
|
|
29
|
+
: Math.min(10, Math.max(1, Math.round(opts.count))),
|
|
28
30
|
focus: opts.focus,
|
|
29
31
|
});
|
|
30
32
|
const counts = { DEV: 0, TEST: 0 };
|
package/dist/drafts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.js","sourceRoot":"","sources":["../src/drafts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAUhD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"drafts.js","sourceRoot":"","sources":["../src/drafts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAUhD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAOpC;IACC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC9B,MAAM,MAAM,GAAoB,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC7D,IAAI,CAAC,KAAK,CAAC,SAAS;QAAE,OAAO,MAAM,CAAC;IACpC,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IACvE,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC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AAC,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC;aACrC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,IAG5C;IACC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC9B,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9D,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,MAAM,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;QACtD,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,OAAO;YAC3B,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What to do about answers that failed, by why they failed. Timeouts and
|
|
3
|
+
* answers cut short usually fail the same way when tested again, so the
|
|
4
|
+
* page says what to change instead. Pure.
|
|
5
|
+
*/
|
|
6
|
+
/** A provider's out-of-credits error, as the main providers word it. */
|
|
7
|
+
export declare const OUT_OF_CREDITS: RegExp;
|
|
8
|
+
/** The kinds of failure with something to do about them. */
|
|
9
|
+
export type FailureKind = "timeout" | "cutShort" | "credits";
|
|
10
|
+
/** A failed answer's error as one of the kinds above; null for others. */
|
|
11
|
+
export declare function failureKind(error: string | null): FailureKind | null;
|
|
12
|
+
/**
|
|
13
|
+
* What to do about a set of failed answers, one hint per kind, most
|
|
14
|
+
* common kind first. Empty when none has a hint.
|
|
15
|
+
*/
|
|
16
|
+
export declare function failureHints(errors: (string | null)[]): string[];
|
package/dist/failures.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What to do about answers that failed, by why they failed. Timeouts and
|
|
3
|
+
* answers cut short usually fail the same way when tested again, so the
|
|
4
|
+
* page says what to change instead. Pure.
|
|
5
|
+
*/
|
|
6
|
+
/** A provider's out-of-credits error, as the main providers word it. */
|
|
7
|
+
export const OUT_OF_CREDITS = /no credits remaining|credit balance is too low|insufficient_quota|exceeded your current quota|billing/i;
|
|
8
|
+
/** A failed answer's error as one of the kinds above; null for others. */
|
|
9
|
+
export function failureKind(error) {
|
|
10
|
+
if (!error)
|
|
11
|
+
return null;
|
|
12
|
+
if (OUT_OF_CREDITS.test(error))
|
|
13
|
+
return "credits";
|
|
14
|
+
if (/^No answer within \d/.test(error))
|
|
15
|
+
return "timeout";
|
|
16
|
+
// The AI SDK's words when a response ends before a whole answer: most
|
|
17
|
+
// often the output limit (which reasoning shares) ran out.
|
|
18
|
+
if (/No output generated|could not parse the response|finish reason:? length|max(imum)?[ _-]?(output[ _-]?)?tokens/i.test(error))
|
|
19
|
+
return "cutShort";
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
const HINTS = {
|
|
23
|
+
timeout: "An answer that times out usually times out again. A lower reasoning setting answers sooner, or the suite can allow more time (answerTimeoutMs).",
|
|
24
|
+
cutShort: "An answer that fails this way has usually run out of room before it ended: the output limit, which reasoning uses too. Testing again usually fails the same way. Raise the output limit or lower the reasoning setting, then test again.",
|
|
25
|
+
credits: "The provider's account is out of credits. Add credits, then test again: answers already given are reused at no cost.",
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* What to do about a set of failed answers, one hint per kind, most
|
|
29
|
+
* common kind first. Empty when none has a hint.
|
|
30
|
+
*/
|
|
31
|
+
export function failureHints(errors) {
|
|
32
|
+
const counts = new Map();
|
|
33
|
+
for (const e of errors) {
|
|
34
|
+
const k = failureKind(e);
|
|
35
|
+
if (k)
|
|
36
|
+
counts.set(k, (counts.get(k) ?? 0) + 1);
|
|
37
|
+
}
|
|
38
|
+
return [...counts].sort((a, b) => b[1] - a[1]).map(([k]) => HINTS[k]);
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=failures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failures.js","sourceRoot":"","sources":["../src/failures.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wEAAwE;AACxE,MAAM,CAAC,MAAM,cAAc,GACzB,wGAAwG,CAAC;AAK3G,0EAA0E;AAC1E,MAAM,UAAU,WAAW,CAAC,KAAoB;IAC9C,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACjD,IAAI,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACzD,sEAAsE;IACtE,2DAA2D;IAC3D,IACE,gHAAgH,CAAC,IAAI,CACnH,KAAK,CACN;QAED,OAAO,UAAU,CAAC;IACpB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,KAAK,GAAgC;IACzC,OAAO,EACL,iJAAiJ;IACnJ,QAAQ,EACN,0OAA0O;IAC5O,OAAO,EACL,sHAAsH;CACzH,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,MAAyB;IACpD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;IAC9C,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
package/dist/glossary.d.ts
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* sentence or two a person can read while hovering.
|
|
5
5
|
*/
|
|
6
6
|
export declare const GLOSSARY: {
|
|
7
|
-
readonly score: "
|
|
7
|
+
readonly score: "Accuracy: how much the model got right on every case in use. With partial credit, parts right of parts expected; otherwise answers with every check passed.";
|
|
8
8
|
readonly seriousMistakes: "Failed serious checks: mistakes that change what your product does. Models are compared on these first.";
|
|
9
|
-
readonly time: "
|
|
9
|
+
readonly time: "Speed: average seconds per answer, so lower is faster, from answers the model actually made (reused answers keep their original time).";
|
|
10
|
+
readonly favors: "What the suggestion weighs once accuracy holds. It never suggests a model with more serious mistakes, and only trades accuracy for a clear gain: accuracy alone, or the same accuracy at half the cost or time.";
|
|
11
|
+
readonly attackFailures: "Answers on the attack cases that never came back (an error or a timeout, not a wrong answer). Attacks resisted counts only complete tests: test again.";
|
|
10
12
|
readonly cost: "Average cost per answer on this model, from your catalog's prices.";
|
|
11
13
|
readonly againstLive: "A paired comparison with the live model on the same cases: more accurate, about as accurate, less accurate, or too few cases to tell.";
|
|
12
14
|
readonly live: "The model this feature runs on now.";
|
package/dist/glossary.js
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* sentence or two a person can read while hovering.
|
|
5
5
|
*/
|
|
6
6
|
export const GLOSSARY = {
|
|
7
|
-
score: "
|
|
7
|
+
score: "Accuracy: how much the model got right on every case in use. With partial credit, parts right of parts expected; otherwise answers with every check passed.",
|
|
8
8
|
seriousMistakes: "Failed serious checks: mistakes that change what your product does. Models are compared on these first.",
|
|
9
|
-
time: "
|
|
9
|
+
time: "Speed: average seconds per answer, so lower is faster, from answers the model actually made (reused answers keep their original time).",
|
|
10
|
+
favors: "What the suggestion weighs once accuracy holds. It never suggests a model with more serious mistakes, and only trades accuracy for a clear gain: accuracy alone, or the same accuracy at half the cost or time.",
|
|
11
|
+
attackFailures: "Answers on the attack cases that never came back (an error or a timeout, not a wrong answer). Attacks resisted counts only complete tests: test again.",
|
|
10
12
|
cost: "Average cost per answer on this model, from your catalog's prices.",
|
|
11
13
|
againstLive: "A paired comparison with the live model on the same cases: more accurate, about as accurate, less accurate, or too few cases to tell.",
|
|
12
14
|
live: "The model this feature runs on now.",
|
package/dist/glossary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glossary.js","sourceRoot":"","sources":["../src/glossary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EACH,
|
|
1
|
+
{"version":3,"file":"glossary.js","sourceRoot":"","sources":["../src/glossary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EACH,6JAA6J;IAC/J,eAAe,EACb,yGAAyG;IAC3G,IAAI,EAAE,wIAAwI;IAC9I,MAAM,EACJ,iNAAiN;IACnN,cAAc,EACZ,wJAAwJ;IAC1J,IAAI,EAAE,oEAAoE;IAC1E,WAAW,EACT,uIAAuI;IACzI,IAAI,EAAE,qCAAqC;IAC3C,QAAQ,EACN,gKAAgK;IAClK,QAAQ,EACN,+HAA+H;IACjI,SAAS,EACP,uHAA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sGAAsG;IACxG,OAAO,EACL,mJAAmJ;IACrJ,WAAW,EAAE,qDAAqD;IAClE,mBAAmB,EACjB,mJAAmJ;IACrJ,QAAQ,EACN,mFAAmF;IACrF,aAAa,EACX,+IAA+I;IACjJ,KAAK,EAAE,qEAAqE;IAC5E,KAAK,EAAE,qEAAqE;IAC5E,iBAAiB,EACf,4IAA4I;IAC9I,SAAS,EACP,6IAA6I;IAC/I,UAAU,EACR,sIAAsI;IACxI,eAAe,EACb,6IAA6I;IAC/I,SAAS,EACP,8JAA8J;IAChK,SAAS,EACP,6HAA6H;IAC/H,UAAU,EACR,oIAAoI;IACtI,cAAc,EACZ,0HAA0H;IAC5H,SAAS,EACP,4GAA4G;IAC9G,WAAW,EACT,iHAAiH;IACnH,cAAc,EACZ,2GAA2G;CACrG,CAAC"}
|
package/dist/health.d.ts
CHANGED
|
@@ -7,12 +7,45 @@ import { type CheckDef, type SuitePriority } from "./types.js";
|
|
|
7
7
|
* reasons, from the same board and suggestion its own page shows. Pure.
|
|
8
8
|
*/
|
|
9
9
|
/** Where a suite stands, from not tested to good. */
|
|
10
|
-
export type HealthStatus = "untested" | "stale" | "few" | "improve" | "fair" | "good";
|
|
10
|
+
export type HealthStatus = "untested" | "stale" | "few" | "improve" | "change" | "fair" | "good";
|
|
11
|
+
/**
|
|
12
|
+
* One reason a suite stands where it does, for a chip on its card. A suite
|
|
13
|
+
* can have several: checks under their bar and a suggestion, say.
|
|
14
|
+
*/
|
|
15
|
+
export type HealthFlag = {
|
|
16
|
+
kind: "untested";
|
|
17
|
+
} | {
|
|
18
|
+
kind: "stale";
|
|
19
|
+
} | {
|
|
20
|
+
kind: "below";
|
|
21
|
+
serious: number;
|
|
22
|
+
minor: number;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "suggestLive";
|
|
25
|
+
} | {
|
|
26
|
+
kind: "suggestFallback";
|
|
27
|
+
} | {
|
|
28
|
+
kind: "retestLive";
|
|
29
|
+
} | {
|
|
30
|
+
kind: "provisional";
|
|
31
|
+
answers: number;
|
|
32
|
+
} | {
|
|
33
|
+
kind: "fewCases";
|
|
34
|
+
cases: number;
|
|
35
|
+
} | {
|
|
36
|
+
kind: "addCases";
|
|
37
|
+
cases: number;
|
|
38
|
+
target: number;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "good";
|
|
41
|
+
};
|
|
11
42
|
/**
|
|
12
43
|
* A suite's status for its card, with the live model's score and the reasons, most important first.
|
|
13
44
|
*/
|
|
14
45
|
export type Health = {
|
|
15
46
|
status: HealthStatus;
|
|
47
|
+
/** Each reason behind the status, most important first, for chips. */
|
|
48
|
+
flags: HealthFlag[];
|
|
16
49
|
title: string;
|
|
17
50
|
/** The live model, its score, and how many models were tested. */
|
|
18
51
|
live: {
|
|
@@ -31,7 +64,7 @@ export type Health = {
|
|
|
31
64
|
* ```ts
|
|
32
65
|
* const board = await runner.board("ticket_triage");
|
|
33
66
|
* const h = suiteHealth(board.rows, suite.checks, suite.priority, board.cases, board.provisional, MODELS);
|
|
34
|
-
* // h.status: "good" | "fair" | "improve" | "few" | "stale" | "untested"
|
|
67
|
+
* // h.status: "good" | "fair" | "change" | "improve" | "few" | "stale" | "untested"
|
|
35
68
|
* ```
|
|
36
69
|
*/
|
|
37
70
|
export declare function suiteHealth(rows: BoardRow[], checks: CheckDef[], priority: SuitePriority, cases: number,
|
package/dist/health.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { confidenceFor, TARGET_CASES } from "./summary.js";
|
|
2
2
|
import { suggest } from "./suggest.js";
|
|
3
|
-
import { checkBar } from "./types.js";
|
|
3
|
+
import { checkBar, pctBeside, } from "./types.js";
|
|
4
4
|
const pct = (x) => `${Math.round(x * 100)}%`;
|
|
5
5
|
/**
|
|
6
6
|
* Where a suite stands, for its card on the hub, from the same board and suggestion its
|
|
@@ -10,7 +10,7 @@ const pct = (x) => `${Math.round(x * 100)}%`;
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const board = await runner.board("ticket_triage");
|
|
12
12
|
* const h = suiteHealth(board.rows, suite.checks, suite.priority, board.cases, board.provisional, MODELS);
|
|
13
|
-
* // h.status: "good" | "fair" | "improve" | "few" | "stale" | "untested"
|
|
13
|
+
* // h.status: "good" | "fair" | "change" | "improve" | "few" | "stale" | "untested"
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
export function suiteHealth(rows, checks, priority, cases,
|
|
@@ -30,6 +30,7 @@ opts = {}) {
|
|
|
30
30
|
return {
|
|
31
31
|
...base,
|
|
32
32
|
status: "untested",
|
|
33
|
+
flags: [{ kind: "untested" }],
|
|
33
34
|
title: "Not tested yet",
|
|
34
35
|
details: [
|
|
35
36
|
`Test the models to see how ${liveRow?.label ?? "the live model"} does.`,
|
|
@@ -39,6 +40,7 @@ opts = {}) {
|
|
|
39
40
|
return {
|
|
40
41
|
...base,
|
|
41
42
|
status: "stale",
|
|
43
|
+
flags: [{ kind: "stale" }],
|
|
42
44
|
title: "Test again",
|
|
43
45
|
details: ["Cases, answers, or instructions changed since the last test."],
|
|
44
46
|
};
|
|
@@ -52,11 +54,12 @@ opts = {}) {
|
|
|
52
54
|
.sort((a, b) => Number(b.c.severity === "serious") -
|
|
53
55
|
Number(a.c.severity === "serious") || a.rate - b.rate);
|
|
54
56
|
for (const { c, rate } of below.slice(0, 3))
|
|
55
|
-
details.push(`${c.label}: ${
|
|
57
|
+
details.push(`${c.label}: ${pctBeside(rate, checkBar(c))}, under the ${pct(checkBar(c))} bar${c.severity === "serious" ? " (serious)" : ""}.`);
|
|
56
58
|
if (below.length > 3)
|
|
57
59
|
details.push(`${below.length - 3} more under the bar.`);
|
|
58
60
|
const s = suggest(rows, checks, priority, models, opts);
|
|
59
|
-
|
|
61
|
+
// Not while a test runs: the suggestion would weigh half a board.
|
|
62
|
+
const change = s && !s.same && !rows.some((r) => r.testing);
|
|
60
63
|
if (change)
|
|
61
64
|
details.push(s.retestLive
|
|
62
65
|
? (s.reasons[0] ?? `Test ${s.live.label} again.`)
|
|
@@ -66,21 +69,41 @@ opts = {}) {
|
|
|
66
69
|
if (testedModels < 2)
|
|
67
70
|
details.push("Only one model tested: test others to compare.");
|
|
68
71
|
const confidence = confidenceFor(cases, live?.rate ?? 0.5);
|
|
72
|
+
const serious = below.filter((x) => x.c.severity === "serious").length;
|
|
73
|
+
const flags = [];
|
|
74
|
+
if (below.length)
|
|
75
|
+
flags.push({ kind: "below", serious, minor: below.length - serious });
|
|
76
|
+
if (change)
|
|
77
|
+
flags.push(s.retestLive
|
|
78
|
+
? { kind: "retestLive" }
|
|
79
|
+
: s.keepLive
|
|
80
|
+
? { kind: "suggestFallback" }
|
|
81
|
+
: { kind: "suggestLive" });
|
|
82
|
+
if (provisional)
|
|
83
|
+
flags.push({ kind: "provisional", answers: provisional });
|
|
84
|
+
if (confidence.level === "too-few")
|
|
85
|
+
flags.push({ kind: "fewCases", cases });
|
|
86
|
+
else if (cases < TARGET_CASES)
|
|
87
|
+
flags.push({ kind: "addCases", cases, target: TARGET_CASES });
|
|
69
88
|
if (confidence.level === "too-few")
|
|
70
89
|
return {
|
|
71
90
|
...base,
|
|
72
91
|
status: "few",
|
|
92
|
+
flags,
|
|
73
93
|
title: "Too few cases to trust",
|
|
74
94
|
details: [
|
|
75
95
|
`${fewer}: a score could be off by about ${confidence.margin} points.`,
|
|
76
96
|
...details,
|
|
77
97
|
],
|
|
78
98
|
};
|
|
99
|
+
// Checks under their bar need work; a better choice alone is only a
|
|
100
|
+
// suggestion, even when the live model meets every bar.
|
|
79
101
|
if (below.length || change)
|
|
80
102
|
return {
|
|
81
103
|
...base,
|
|
82
|
-
status: "improve",
|
|
83
|
-
|
|
104
|
+
status: below.length ? "improve" : "change",
|
|
105
|
+
flags,
|
|
106
|
+
title: below.length ? "Room to improve" : "Change suggested",
|
|
84
107
|
details: fewer
|
|
85
108
|
? [...details, `${fewer}: add more to firm it up.`]
|
|
86
109
|
: details,
|
|
@@ -89,6 +112,7 @@ opts = {}) {
|
|
|
89
112
|
return {
|
|
90
113
|
...base,
|
|
91
114
|
status: "fair",
|
|
115
|
+
flags,
|
|
92
116
|
title: "Good so far",
|
|
93
117
|
details: [
|
|
94
118
|
`Meets every bar, but with ${fewer} a score could be off by about ${confidence.margin} points.`,
|
|
@@ -98,6 +122,7 @@ opts = {}) {
|
|
|
98
122
|
return {
|
|
99
123
|
...base,
|
|
100
124
|
status: "good",
|
|
125
|
+
flags: flags.length ? flags : [{ kind: "good" }],
|
|
101
126
|
title: "In good shape",
|
|
102
127
|
details: details.length ? details : ["Meets every bar on enough cases."],
|
|
103
128
|
};
|
package/dist/health.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../src/health.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAC;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"health.js","sourceRoot":"","sources":["../src/health.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAC;AAE5D,OAAO,EACL,QAAQ,EACR,SAAS,GAGV,MAAM,YAAY,CAAC;AA0CpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC;AAErD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CACzB,IAAgB,EAChB,MAAkB,EAClB,QAAuB,EACvB,KAAa;AACb,0CAA0C;AAC1C,WAAW,GAAG,CAAC;AACf,uEAAuE;AACvE,SAAuB,EAAE;AACzB,mFAAmF;AACnF,OAAuB,EAAE;IAEzB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC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AM,EAAE,MAAM;YACd,KAAK;YACL,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE;gBACP,6BAA6B,KAAK,kCAAkC,UAAU,CAAC,MAAM,UAAU;gBAC/F,GAAG,OAAO;aACX;SACF,CAAC;IACJ,OAAO;QACL,GAAG,IAAI;QACP,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChD,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC;KACzE,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./suggest.js";
|
|
|
15
15
|
export * from "./health.js";
|
|
16
16
|
export * from "./attention.js";
|
|
17
17
|
export * from "./common.js";
|
|
18
|
+
export { failureHints, failureKind, type FailureKind } from "./failures.js";
|
|
18
19
|
export * from "./legs.js";
|
|
19
20
|
export * from "./timeout.js";
|
|
20
21
|
export * from "./prune.js";
|
|
@@ -37,3 +38,4 @@ export * from "./importCases.js";
|
|
|
37
38
|
export * from "./reviews.js";
|
|
38
39
|
export * from "./activity.js";
|
|
39
40
|
export * from "./drafts.js";
|
|
41
|
+
export * from "./order.js";
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./suggest.js";
|
|
|
15
15
|
export * from "./health.js";
|
|
16
16
|
export * from "./attention.js";
|
|
17
17
|
export * from "./common.js";
|
|
18
|
+
export { failureHints, failureKind } from "./failures.js";
|
|
18
19
|
export * from "./legs.js";
|
|
19
20
|
export * from "./timeout.js";
|
|
20
21
|
export * from "./prune.js";
|
|
@@ -39,4 +40,5 @@ export * from "./importCases.js";
|
|
|
39
40
|
export * from "./reviews.js";
|
|
40
41
|
export * from "./activity.js";
|
|
41
42
|
export * from "./drafts.js";
|
|
43
|
+
export * from "./order.js";
|
|
42
44
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,4EAA4E;AAC5E,0EAA0E;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC5E,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,4EAA4E;AAC5E,0EAA0E;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/legs.d.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
export declare const MAX_LEGS = 6;
|
|
7
7
|
/**
|
|
8
8
|
* Whether a leg that ran out of time should hand off: only when it made
|
|
9
|
-
* progress (so a stuck case can't loop)
|
|
9
|
+
* progress (so a stuck case can't loop), or began after its time was up
|
|
10
|
+
* (a test queued behind others), and legs remain.
|
|
10
11
|
*/
|
|
11
12
|
export declare function shouldContinue(opts: {
|
|
12
13
|
/** Answers left for a later leg. */
|
|
@@ -15,6 +16,8 @@ export declare function shouldContinue(opts: {
|
|
|
15
16
|
done: number;
|
|
16
17
|
leg: number;
|
|
17
18
|
outOfCredits: boolean;
|
|
19
|
+
/** The leg began with no time left, so it tried nothing. */
|
|
20
|
+
late?: boolean;
|
|
18
21
|
}): boolean;
|
|
19
22
|
/**
|
|
20
23
|
* Whether a test still marked running was stopped by the server: nothing
|
package/dist/legs.js
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
export const MAX_LEGS = 6;
|
|
7
7
|
/**
|
|
8
8
|
* Whether a leg that ran out of time should hand off: only when it made
|
|
9
|
-
* progress (so a stuck case can't loop)
|
|
9
|
+
* progress (so a stuck case can't loop), or began after its time was up
|
|
10
|
+
* (a test queued behind others), and legs remain.
|
|
10
11
|
*/
|
|
11
12
|
export function shouldContinue(opts) {
|
|
12
|
-
return (opts.left > 0 &&
|
|
13
|
+
return (opts.left > 0 &&
|
|
14
|
+
(opts.done > 0 || !!opts.late) &&
|
|
15
|
+
!opts.outOfCredits &&
|
|
16
|
+
opts.leg < MAX_LEGS);
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* Whether a test still marked running was stopped by the server: nothing
|
package/dist/legs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legs.js","sourceRoot":"","sources":["../src/legs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B
|
|
1
|
+
{"version":3,"file":"legs.js","sourceRoot":"","sources":["../src/legs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,IAS9B;IACC,OAAO,CACL,IAAI,CAAC,IAAI,GAAG,CAAC;QACb,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC9B,CAAC,IAAI,CAAC,YAAY;QAClB,IAAI,CAAC,GAAG,GAAG,QAAQ,CACpB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CACrB,SAAe,EACf,YAAyB,EACzB,GAAW,EACX,OAAe;IAEf,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,OAAO,GAAG,GAAG,IAAI,GAAG,OAAO,CAAC;AAC9B,CAAC"}
|
package/dist/next/actions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { after } from "next/server.js";
|
|
2
2
|
import { revalidatePath } from "next/cache.js";
|
|
3
|
-
import { answerFromForm, attackMistakes, attacksFrom, blindRating, caseFromFeedback, draftMoreCases, formText, importStarters, isInjectionSuite, leakNote, raterStatus, skipMark, suggest, useDraftsProvisionally, withoutLeaks, } from "../index.js";
|
|
3
|
+
import { answerFromForm, attackMistakes, attacksFrom, blindRating, caseFromFeedback, confirmedLabel, draftMoreCases, formText, importStarters, isInjectionSuite, leakNote, raterStatus, skipMark, suggest, useDraftsProvisionally, withoutLeaks, priorityOf, } from "../index.js";
|
|
4
4
|
import { evalsPath } from "../react/app.js";
|
|
5
5
|
import { injectionCases } from "../suites/injection.js";
|
|
6
6
|
import { weeklyCheck } from "./weekly.js";
|
|
@@ -29,6 +29,8 @@ export function evalActions(w) {
|
|
|
29
29
|
revalidatePath(w.basePath, "layout");
|
|
30
30
|
};
|
|
31
31
|
const weekly = weeklyCheck(w);
|
|
32
|
+
/** Who a settings change records: the admin's name, or their id. */
|
|
33
|
+
const changer = (admin) => w.changedBy === "id" ? admin.id : admin.name;
|
|
32
34
|
const suiteFrom = (form) => runner.suiteOrThrow(formText(form, "suite"));
|
|
33
35
|
/**
|
|
34
36
|
* The suite whose page chooses models: never an injection suite, whose
|
|
@@ -62,7 +64,7 @@ export function evalActions(w) {
|
|
|
62
64
|
*/
|
|
63
65
|
async function caseToRate(form, raterId) {
|
|
64
66
|
const suite = suiteFrom(form);
|
|
65
|
-
if (suite.caseKind !== "imported")
|
|
67
|
+
if (suite.caseKind !== "imported" || suite.rateBlind === false)
|
|
66
68
|
throw new Error("This suite isn't rated blind");
|
|
67
69
|
const c = await knownCase(suite.key, form);
|
|
68
70
|
if (raterStatus(c, raterId))
|
|
@@ -166,7 +168,7 @@ export function evalActions(w) {
|
|
|
166
168
|
row.variant
|
|
167
169
|
? { model: row.model, reasoningEffort: row.effort }
|
|
168
170
|
: { model: row.model }, {
|
|
169
|
-
by: admin
|
|
171
|
+
by: changer(admin),
|
|
170
172
|
reason: `Made ${row.label} live: ${score.right}/${score.total}, ${VS[row.vsLive ?? ""] ?? "no comparison"}${attacked === null ? "" : `; ${attacked} serious ${attacked === 1 ? "mistake" : "mistakes"} under attack`}`,
|
|
171
173
|
// The evidence, so the history can show why.
|
|
172
174
|
evidence: {
|
|
@@ -189,7 +191,7 @@ export function evalActions(w) {
|
|
|
189
191
|
? `, ${test.failedAnswers} failed`
|
|
190
192
|
: "";
|
|
191
193
|
await settings.update(suite.operation, { fallbackModel: row.model }, {
|
|
192
|
-
by: admin
|
|
194
|
+
by: changer(admin),
|
|
193
195
|
reason: `Made ${row.label} the fallback: ${test ? `${Math.round(test.right)}/${Math.round(test.total)}${failed}` : "not tested"}`,
|
|
194
196
|
evidence: {
|
|
195
197
|
runId: test?.runId ?? null,
|
|
@@ -207,13 +209,16 @@ export function evalActions(w) {
|
|
|
207
209
|
runner.board(suite.key),
|
|
208
210
|
attacksOn(suite.key),
|
|
209
211
|
]);
|
|
210
|
-
|
|
212
|
+
if (board.rows.some((r) => r.testing))
|
|
213
|
+
throw new Error("Wait for the tests running now to finish");
|
|
214
|
+
const { settings: live } = await settings.current(suite.operation);
|
|
215
|
+
const s = suggest(board.rows, suite.checks, priorityOf(suite, live), w.models, {
|
|
211
216
|
attacks,
|
|
212
217
|
});
|
|
213
218
|
if (!s || s.same)
|
|
214
219
|
return;
|
|
215
220
|
await settings.update(suite.operation, { model: s.live.model, fallbackModel: s.fallback?.model ?? null }, {
|
|
216
|
-
by: admin
|
|
221
|
+
by: changer(admin),
|
|
217
222
|
reason: s.reasons.join(" "),
|
|
218
223
|
evidence: {
|
|
219
224
|
suggestion: s.reasons,
|
|
@@ -231,7 +236,7 @@ export function evalActions(w) {
|
|
|
231
236
|
if (!reason)
|
|
232
237
|
throw new Error("Say why you're rolling back");
|
|
233
238
|
await settings.rollBack(suite.operation, formText(form, "version"), {
|
|
234
|
-
by: admin
|
|
239
|
+
by: changer(admin),
|
|
235
240
|
reason,
|
|
236
241
|
});
|
|
237
242
|
everyPage();
|
|
@@ -241,7 +246,9 @@ export function evalActions(w) {
|
|
|
241
246
|
await w.requireAdmin();
|
|
242
247
|
const suite = suiteFrom(form);
|
|
243
248
|
await store.setLabelStatus(formText(form, "label"), "CONFIRMED");
|
|
244
|
-
|
|
249
|
+
// Rescored before the page refreshes (free, about a second): an
|
|
250
|
+
// answer change marks tests out of date until then.
|
|
251
|
+
await runner.rescoreRecent(suite.key);
|
|
245
252
|
revalidatePath(page(suite.key));
|
|
246
253
|
},
|
|
247
254
|
async rescore(form) {
|
|
@@ -302,10 +309,34 @@ export function evalActions(w) {
|
|
|
302
309
|
});
|
|
303
310
|
// A draft (from feedback) is in use once it has an answer.
|
|
304
311
|
await store.setCaseStatus(c.id, "ACTIVE");
|
|
305
|
-
|
|
312
|
+
// Rescored before the page refreshes (free, about a second): an
|
|
313
|
+
// answer change marks tests out of date until then.
|
|
314
|
+
await runner.rescoreRecent(suite.key);
|
|
306
315
|
revalidatePath(page(suite.key));
|
|
307
316
|
},
|
|
308
317
|
/** Takes a case out of use; its stored answers stay. */
|
|
318
|
+
async keepAnswer(form) {
|
|
319
|
+
const admin = await w.requireAdmin();
|
|
320
|
+
const suite = suiteFrom(form);
|
|
321
|
+
const c = await knownCase(suite.key, form);
|
|
322
|
+
const answer = confirmedLabel(c.labels);
|
|
323
|
+
if (!answer)
|
|
324
|
+
throw new Error("This case has no answer in use");
|
|
325
|
+
// A fresh confirmation of the same answer, by whoever checked it: the
|
|
326
|
+
// split list leaves it out until a newer test splits on it again.
|
|
327
|
+
await store.addLabel(c.id, {
|
|
328
|
+
kind: "EXPECTED",
|
|
329
|
+
status: "CONFIRMED",
|
|
330
|
+
value: answer.value,
|
|
331
|
+
raterRole: "REVIEWER",
|
|
332
|
+
raterId: admin.id,
|
|
333
|
+
note: "Checked when models split on it, and kept as right.",
|
|
334
|
+
});
|
|
335
|
+
// Rescored before the page refreshes (free, about a second): an
|
|
336
|
+
// answer change marks tests out of date until then.
|
|
337
|
+
await runner.rescoreRecent(suite.key);
|
|
338
|
+
revalidatePath(page(suite.key));
|
|
339
|
+
},
|
|
309
340
|
async retireCase(form) {
|
|
310
341
|
await w.requireAdmin();
|
|
311
342
|
const suite = suiteFrom(form);
|
|
@@ -353,16 +384,46 @@ export function evalActions(w) {
|
|
|
353
384
|
const suite = suiteFrom(form);
|
|
354
385
|
if (!suite.draftMore)
|
|
355
386
|
throw new Error("This suite can't draft cases");
|
|
356
|
-
const
|
|
387
|
+
const text = (name) => {
|
|
388
|
+
const v = form.get(name);
|
|
389
|
+
return typeof v === "string" ? v.trim() : "";
|
|
390
|
+
};
|
|
391
|
+
// Topics picked from Answer key health's thin ones, each worth two.
|
|
392
|
+
const topics = form
|
|
393
|
+
.getAll("topic")
|
|
394
|
+
.filter((t) => typeof t === "string" && t.trim() !== "");
|
|
395
|
+
const asked = Number(text("count"));
|
|
396
|
+
const focus = text("focus") ||
|
|
397
|
+
(topics.length ? `Cases on these topics: ${topics.join(", ")}` : "");
|
|
357
398
|
await draftMoreCases({
|
|
358
399
|
store,
|
|
359
400
|
suite,
|
|
360
|
-
focus:
|
|
361
|
-
|
|
362
|
-
:
|
|
401
|
+
focus: focus ? focus.slice(0, 500) : null,
|
|
402
|
+
...(Number.isFinite(asked) && asked > 0
|
|
403
|
+
? { count: asked }
|
|
404
|
+
: topics.length
|
|
405
|
+
? { count: topics.length * 2 }
|
|
406
|
+
: {}),
|
|
363
407
|
});
|
|
364
408
|
revalidatePath(page(suite.key));
|
|
365
409
|
},
|
|
410
|
+
async setPriority(form) {
|
|
411
|
+
const admin = await w.requireAdmin();
|
|
412
|
+
const suite = choosingSuite(form);
|
|
413
|
+
const favor = formText(form, "favor");
|
|
414
|
+
if (favor !== "quality" && favor !== "speed" && favor !== "cost")
|
|
415
|
+
throw new Error("Pick accuracy, speed, or cost");
|
|
416
|
+
const reason = form.get("reason");
|
|
417
|
+
await settings.update(suite.operation,
|
|
418
|
+
// The suite's own priority needs no override.
|
|
419
|
+
{ favor: favor === suite.priority.favor ? null : favor }, {
|
|
420
|
+
by: changer(admin),
|
|
421
|
+
reason: typeof reason === "string" && reason.trim()
|
|
422
|
+
? reason.trim().slice(0, 300)
|
|
423
|
+
: `Favors ${favor === "quality" ? "accuracy" : favor}`,
|
|
424
|
+
});
|
|
425
|
+
everyPage();
|
|
426
|
+
},
|
|
366
427
|
async useDraftsProvisionally(form) {
|
|
367
428
|
await w.requireAdmin();
|
|
368
429
|
const suite = suiteFrom(form);
|
|
@@ -385,7 +446,9 @@ export function evalActions(w) {
|
|
|
385
446
|
// A draft is in use once it has an answer.
|
|
386
447
|
if (c.status === "DRAFT")
|
|
387
448
|
await store.setCaseStatus(c.id, "ACTIVE");
|
|
388
|
-
|
|
449
|
+
// Rescored before the page refreshes (free, about a second): an
|
|
450
|
+
// answer change marks tests out of date until then.
|
|
451
|
+
await runner.rescoreRecent(suite.key);
|
|
389
452
|
revalidatePath(page(suite.key), "layout");
|
|
390
453
|
},
|
|
391
454
|
/** A person passes on an imported case: it leaves their queue only. */
|
|
@@ -414,10 +477,11 @@ export function evalActions(w) {
|
|
|
414
477
|
revalidatePath(page("feedback"));
|
|
415
478
|
},
|
|
416
479
|
async runWeeklyNow() {
|
|
480
|
+
const startedAt = Date.now();
|
|
417
481
|
await w.requireAdmin();
|
|
418
482
|
// Recorded before the page re-renders, so it shows them running.
|
|
419
483
|
const ids = await weekly.start();
|
|
420
|
-
after(() => weekly.run(ids));
|
|
484
|
+
after(() => weekly.run(ids, startedAt));
|
|
421
485
|
revalidatePath(w.basePath);
|
|
422
486
|
},
|
|
423
487
|
};
|