blastproof 0.26.0 → 0.27.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/README.md +13 -5
- package/dist/cli.js +25 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,7 +87,15 @@ The agent acts on the element it read, not on a search for its name. Each elemen
|
|
|
87
87
|
| `<button aria-label="Delete note">` | an icon-only button with no name |
|
|
88
88
|
| `<select>` with `<option>`s | an ARIA-less custom dropdown |
|
|
89
89
|
|
|
90
|
-
**An editable data grid
|
|
90
|
+
**An editable data grid needs one cell per step.** On a budgeting app's transaction register, a new row shows only the cell that has focus. The date input appears as `textbox [active]: 10/12/2026`, with no name. The empty payee and notes cells are plain `div`s, and the accessibility tree drops them. Each cell becomes a named input only once it is focused. A step asking for four values at once shows the agent one textbox, and it typed the payee into the date. Written one cell per step in keyboard order, the same journey passed:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
- click "Add New" and verify a new transaction row is open with its date field focused
|
|
94
|
+
- press Tab to move to the payee field, type Fast Internet, and choose "Fast Internet" from the suggestions
|
|
95
|
+
- press Tab three times to move to the payment field, type 12.34, and click "Add"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
That test failed 3 runs of 3 written as one step, and passed 3 of 3 written this way, on 0.26.0 with `claude-haiku-5.5`. On the app's side, a label on each cell's input makes the one-step version readable too. If your core journey is a row editor, spend one test on it before adopting ([#67](https://github.com/hamc/blastproof/issues/67)).
|
|
91
99
|
|
|
92
100
|
**Run an accessibility checker on your app before installing anything.** The result predicts how well this will work better than anything else you could measure — and the fixes it suggests are worth making regardless of whether you adopt this tool.
|
|
93
101
|
|
|
@@ -306,17 +314,17 @@ A merge gate is judged by two numbers. A **false PASS** is a test that passes on
|
|
|
306
314
|
|
|
307
315
|
| | `claude-haiku-4.5` | `gpt-6-luna` |
|
|
308
316
|
| --- | --- | --- |
|
|
309
|
-
| false FAIL, correct app (40 test runs) |
|
|
317
|
+
| false FAIL, correct app (40 test runs) | 0 (≤ 8.8%) | 0 (≤ 8.8%) |
|
|
310
318
|
| false PASS, literal bugs (30) | 0 (≤ 11.4%) | 0 (≤ 11.4%) |
|
|
311
|
-
| false PASS, subtle bugs (20) | 0 (≤ 16.
|
|
319
|
+
| false PASS, subtle bugs (20) | 0 of 19 (≤ 16.8%) | 0 (≤ 16.1%) |
|
|
312
320
|
|
|
313
|
-
The bounds are 95% upper bounds: zero errors in 40 runs means "below about 9%", not "never". The first run of this table found a false PASS on Haiku, 2 subtle runs in 20. The confirmation showed order `#BP-1002`, another paragraph mentioned `#BP-1001` as a previous order, and a step checking for `#BP-1001` *in the confirmation* passed. That was fixed in the judge ([#147](https://github.com/hamc/blastproof/issues/147)).
|
|
321
|
+
The bounds are 95% upper bounds: zero errors in 40 runs means "below about 9%", not "never". The first run of this table found a false PASS on Haiku, 2 subtle runs in 20. The confirmation showed order `#BP-1002`, another paragraph mentioned `#BP-1001` as a previous order, and a step checking for `#BP-1001` *in the confirmation* passed. That was fixed in the judge ([#147](https://github.com/hamc/blastproof/issues/147)). On 0.26.0, Haiku had one false FAIL in 40, in the notes test: the note was listed and counted, but the model had typed it into the empty field again, and the judge read the filled field as a form not yet submitted. One subtle run on Haiku ended incomplete, and is left out of its count.
|
|
314
322
|
|
|
315
323
|
The demo app is small and well labelled, so these numbers flatter. Expect a real application to do worse. The point of this table is that it can be reproduced, and that every change claiming better verdicts has to move it.
|
|
316
324
|
|
|
317
325
|
The same benchmark over seven more models, and why it chose the OpenAI and Ollama defaults, is in [Choosing a model](./docs/configuration.md#choosing-a-model).
|
|
318
326
|
|
|
319
|
-
Measured 2026-10-
|
|
327
|
+
Measured 2026-10-13 on 0.27.0, 5 samples, through OpenRouter. To reproduce:
|
|
320
328
|
|
|
321
329
|
```bash
|
|
322
330
|
npm run build
|
package/dist/cli.js
CHANGED
|
@@ -690,10 +690,16 @@ function namesAValue(step) {
|
|
|
690
690
|
function namesNoValue(step) {
|
|
691
691
|
return LEADING_VALUE_VERB.test(step) && !namesAValue(step);
|
|
692
692
|
}
|
|
693
|
-
var
|
|
693
|
+
var CHECK_VERB = String.raw`(?:verify|check|confirm|ensure|assert|expect|validate|make\s+sure|see\s+that)\b`;
|
|
694
|
+
var LEADING_CHECK_VERB = new RegExp(String.raw`^\s*(?:(?:then|and)\s+)?` + CHECK_VERB, "i");
|
|
695
|
+
var CHECK_CLAUSE = new RegExp(String.raw`(?:\band\b|\bthen\b|[,;])\s+` + CHECK_VERB, "i");
|
|
694
696
|
function isVerificationStep(step) {
|
|
695
697
|
return LEADING_CHECK_VERB.test(step);
|
|
696
698
|
}
|
|
699
|
+
function hasVerificationClause(step) {
|
|
700
|
+
const unquoted = step.replace(/"[^"]*"|“[^”]*”/g, '""');
|
|
701
|
+
return !isVerificationStep(step) && CHECK_CLAUSE.test(unquoted);
|
|
702
|
+
}
|
|
697
703
|
function entersNamedValue(step) {
|
|
698
704
|
return LEADING_VALUE_VERB.test(step) && namesAValue(step);
|
|
699
705
|
}
|
|
@@ -779,10 +785,17 @@ var StepRecovery = class {
|
|
|
779
785
|
* D1). Read by the executor too, which refuses `done` in such a step.
|
|
780
786
|
*/
|
|
781
787
|
verifies;
|
|
788
|
+
/**
|
|
789
|
+
* Whether the step acts first and asks for a check after (design
|
|
790
|
+
* judge-a-done-that-closes-a-check, D2). The executor judges a `done` in such
|
|
791
|
+
* a step instead of closing it.
|
|
792
|
+
*/
|
|
793
|
+
checksAfterActing;
|
|
782
794
|
constructor(step) {
|
|
783
795
|
this.step = step;
|
|
784
796
|
this.readable = [normalise(step)];
|
|
785
797
|
this.verifies = isVerificationStep(step);
|
|
798
|
+
this.checksAfterActing = hasVerificationClause(step);
|
|
786
799
|
}
|
|
787
800
|
/**
|
|
788
801
|
* Records a snapshot the model was shown, as a source it may quote from.
|
|
@@ -1061,6 +1074,8 @@ async function executeTest(page, test, options) {
|
|
|
1061
1074
|
continue;
|
|
1062
1075
|
}
|
|
1063
1076
|
iterations++;
|
|
1077
|
+
let judgingDone = false;
|
|
1078
|
+
const shown = () => judgingDone ? { ...action, action: "done" } : action;
|
|
1064
1079
|
if (action.action === "done") {
|
|
1065
1080
|
if (!recovery.acted || recovery.verifies) {
|
|
1066
1081
|
failedAttempts++;
|
|
@@ -1071,8 +1086,12 @@ async function executeTest(page, test, options) {
|
|
|
1071
1086
|
}
|
|
1072
1087
|
continue;
|
|
1073
1088
|
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1089
|
+
if (!recovery.checksAfterActing) {
|
|
1090
|
+
emitAction(index, action, action.reasoning);
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
judgingDone = true;
|
|
1094
|
+
action = { ...action, action: "assert", expectation: action.reasoning };
|
|
1076
1095
|
}
|
|
1077
1096
|
if (action.action === "fail") {
|
|
1078
1097
|
if (!recovery.acted && !lookedAgain) {
|
|
@@ -1118,14 +1137,14 @@ async function executeTest(page, test, options) {
|
|
|
1118
1137
|
if (error instanceof RunStoppedError) throw error;
|
|
1119
1138
|
failedAttempts++;
|
|
1120
1139
|
lastResult = `error: ${error instanceof Error ? error.message : String(error)}`;
|
|
1121
|
-
emitAction(index,
|
|
1140
|
+
emitAction(index, shown(), lastResult);
|
|
1122
1141
|
if (failedAttempts >= maxRetries) {
|
|
1123
1142
|
throw new StepFailure(lastResult);
|
|
1124
1143
|
}
|
|
1125
1144
|
continue;
|
|
1126
1145
|
}
|
|
1127
1146
|
const result = judgment.pass ? `ok: assertion passed: ${judgment.reason}` : `assertion failed: ${judgment.reason}`;
|
|
1128
|
-
emitAction(index,
|
|
1147
|
+
emitAction(index, shown(), result);
|
|
1129
1148
|
if (judgment.pass) {
|
|
1130
1149
|
lastResult = result;
|
|
1131
1150
|
break;
|
|
@@ -3618,7 +3637,7 @@ function parsePositiveNumber(flag) {
|
|
|
3618
3637
|
};
|
|
3619
3638
|
}
|
|
3620
3639
|
var program = new Command();
|
|
3621
|
-
program.name("blastproof").description("Open-source AI testing agent: plain-English YAML tests executed agentically on a real browser.").version("0.
|
|
3640
|
+
program.name("blastproof").description("Open-source AI testing agent: plain-English YAML tests executed agentically on a real browser.").version("0.27.0");
|
|
3622
3641
|
program.command("init").description("Scaffold .blastproof/ (config, tests, sample tests) in the current directory").action(async () => {
|
|
3623
3642
|
try {
|
|
3624
3643
|
const result = await initProject(process.cwd());
|