From the eval suite, not a live run
A parser that rejects negative numbers (eval case)
- Agent
ci-fix@0.1.0- Outcome
- succeeded
- Ran
- 2026-10-27 17:17 UTC
- Took
- Not timed (fakes)
- Cost
- No charge (offline)
The agent's offline eval suite: its real program in an offline sandbox on a fixture repository, with a scripted model. Not a live run.
- evals/ci-fix/cases.jsonl in the Slipstream repository
Input
{
"repo_url": "https://github.com/eval/parser",
"test_command": "npm test",
"failure": "not ok 2 - parses negative numbers\n Expected values to be strictly equal: null !== -7\n at parseNumber (src/parse.js:6:3)\n at TestContext.<anonymous> (test/parse.test.js:11:10)"
}Result
Fixed: `npm test` passes after a 2-line change to 1 file. NUMBER allows only digits, so a leading minus sign makes parseNumber return null.
The failure it was given
not ok 2 - parses negative numbers
Expected values to be strictly equal: null !== -7
at parseNumber (src/parse.js:6:3)
at TestContext.<anonymous> (test/parse.test.js:11:10)Diagnosis
NUMBER allows only digits, so a leading minus sign makes parseNumber return null.
Tests
npm test: failed before (exit 1), passes after the fix (exit 0).
fix.patch
diff --git a/src/parse.js b/src/parse.js
index 52c5943..7d090b8 100644
--- a/src/parse.js
+++ b/src/parse.js
@@ -1,4 +1,4 @@
-const NUMBER = /^\d+(\.\d+)?$/;
+const NUMBER = /^-?\d+(\.\d+)?$/;
/** Parses a decimal number, or returns null for anything else. */
export function parseNumber(text) {
Checks: 5 of 5 passed
- Passed: clone: Cloned https://github.com/eval/parser.
- Passed: install: Installed with npm.
- Passed: reproduce: `npm test` failed with exit 1: [earlier output cut] dingSubtests (node:internal/test_runner/test:744:7) ... 1..4 # tests 4 # suites 0 # pass 2 # fail 2 # cancelled 0 # skipped 0 # todo 0 # duration_ms 37.16795
- Passed: tests: `npm test` passes after 1 attempt.
- Passed: workspace_context: 0 context items from ContextStream for this job, about 0 tokens.
Provenance
- Eval case
evals/ci-fix/cases.jsonl, fix-from-ci-output- Depot run
0zb9r381xr