tewip-ai 0.64.0 → 0.65.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.
|
@@ -50,6 +50,28 @@ export const LLM_CONFIDENCE_CEILING = 0.45;
|
|
|
50
50
|
export function contradictsHistory(category, context) {
|
|
51
51
|
if (category !== 'REAL_BUG' && category !== 'LOCATOR_DRIFT')
|
|
52
52
|
return null;
|
|
53
|
+
// A timeout is not evidence of a bug, and that is measured rather than argued.
|
|
54
|
+
//
|
|
55
|
+
// Phase 56 took 471 real labelled CI failures from WordPress/gutenberg and asked, for each signal
|
|
56
|
+
// a classifier can actually see when the test fails, how far it moves the label from its base
|
|
57
|
+
// rate. Three signals move it a long way:
|
|
58
|
+
//
|
|
59
|
+
// error says Timeout/exceeded -> TIMING 91% (37% when absent)
|
|
60
|
+
// error is an assertion -> TIMING 93% (ENV 86% when absent)
|
|
61
|
+
// error mentions a locator -> TIMING 94%
|
|
62
|
+
//
|
|
63
|
+
// and REAL_BUG sits at 3-6% in **every single bucket** - its base rate, undisturbed. Nothing in
|
|
64
|
+
// the evidence available at failure time distinguishes a real bug from flakiness. That is the
|
|
65
|
+
// whole explanation for a model layer scoring 17.8%: it reaches for the one category the evidence
|
|
66
|
+
// cannot support, and is wrong about 94% of the time when it does.
|
|
67
|
+
//
|
|
68
|
+
// So a verdict of REAL_BUG resting on nothing but a timeout is refused. Six per cent of those
|
|
69
|
+
// really are bugs, and they are not lost: the case goes to a person with the model's reasoning
|
|
70
|
+
// attached, which is what this project does with every question it cannot answer.
|
|
71
|
+
const message = context.error?.message ?? '';
|
|
72
|
+
if (category === 'REAL_BUG' && /timeout|exceeded/i.test(message)) {
|
|
73
|
+
return 'refused: the only evidence is a timeout, and across 471 labelled failures a timeout was TIMING 91% of the time and REAL_BUG 6%';
|
|
74
|
+
}
|
|
53
75
|
if (context.thisRun?.anotherAttemptPassed) {
|
|
54
76
|
return `refused: another attempt of the same code passed in this run, so the failure is not deterministic and cannot be ${category}`;
|
|
55
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tewip-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"mcpName": "io.github.hmamut39/tewip",
|
|
5
5
|
"description": "Tewip finds why each failing test failed - real bug, flaky test, environment, test data or changed selector - for any stack, from the command line, CI, or your editor.",
|
|
6
6
|
"keywords": [
|