Evidenceminimist-30
Special handling of boolean long option value does not work for alias
minimist#30, at commit 2758c33. A closed issue from a repository Credda did not choose.
LIVE2026-09-20
RIGHT_FAILUREexecuted against the upstream checkout.
- Outcome
- PARTIALLY_VERIFIED
- Wall time
- 89.7s
- Checks
- 5 passed of 5 applicable
RECORDED
NOT_GRADEDgraded from the transcript committed with this case.
- Outcome
- not recorded
- Checks
- none run
- Repository
- minimistjs/minimist
- Issue
- #30
- Pinned commit
- 2758c33aba8a541bdfb571f7d61a99a7cc5055b3
01The signal
The report, exactly as it was filed.
Nothing paraphrased or cleaned up. The mess is the thing under test.
Special handling of boolean long option value does not work for alias
The special case handling of a string value embedded with a boolean long option does not take into account aliases. There is a simple coercion to treat the string as a boolean by testing against `'false'`. (So fairly niche, and not documented in README.)
Found by code inspection, not from usage.
https://github.com/minimistjs/minimist/blob/093bc85eb9b2a06f0d7fa3f7f1940cd135495abf/index.js#L155
```js
const minimist = require('minimist');
const result = minimist(process.argv.slice(2), {
boolean: ['a', 'bb'],
alias: { a: 'aa', bb: 'b' }
});
console.log(result);
```
```console
% node prob1.js
{ _: [], a: false, aa: false, bb: false, b: false }
% node prob1.js --aa=false --bb=false
{ _: [], a: 'false', aa: 'false', bb: false, b: false }
% node prob1.js --aa=A --bb=B
{ _: [], a: 'A', aa: 'A', bb: true, b: true }
```- Repository
- minimistjs/minimist
- Issue
- #30
- Commit
- 2758c33aba8a541bdfb571f7d61a99a7cc5055b3
- Why this commit
- The first parent of the fix commit de53490d7b38b62e2746fa40cb2c4b2b97df4c63, which GitHub binds to this issue via CLOSED_EVENT_COMMIT. Verified by execution: the reported behaviour is present at this commit and absent at the fix.
- How the text was obtained
- Fetched verbatim via the GitHub GraphQL API. Title on the first line, body unmodified below it. Nothing was paraphrased, cleaned up, or supplemented.
- Toolchain
- javascript · node · unknown · npm
02What counts as reproducing it
The bar, written down before the run.
- Symptom
- minimist(['--aa=false', '--bb=false'], {boolean: ['a', 'bb'], alias: {a: 'aa', bb: 'b'}}) produces { _: [], a: 'false', aa: 'false', b: false, bb: false }; the fix makes it produce { _: [], a: false, aa: false, b: false, bb: false }.
- Expression
- minimist(['--aa=false', '--bb=false'], {boolean: ['a', 'bb'], alias: {a: 'aa', bb: 'b'}})
- Reported output
- { _: [], a: 'false', aa: 'false', bb: false, b: false }
- Where that came from
- Proposed by a model reading this report and nothing else -- it never saw the repository or the fix commit -- and read back as a claim by the same parser the harvest uses, SAME_LINE form: `minimist(['--aa=false', '--bb=false'], {boolean: ['a', 'bb'], alias: {a: 'aa', bb: 'b'}}) //=> { _: [], a: 'false', aa: 'false', bb: false, b: false }`. The report sat in the CODE_NO_ANNOTATION_AT_ALL bucket, which no regex reaches. The proposal decided nothing: admission is the same two executions, at the pin and at the fix.
03What happened
The live run reproduced the reported failure.
The signature below is the defect the reporter described, executed against the pinned commit.
`minimist(['--aa=false','--bb=false'], {boolean:['a','bb'], alias:{a:'aa', bb:'b'}})` still produces { _: [], a: 'false', aa: 'false', bb: false, b: false } (read { _: [], a: 'false', aa: 'false', bb: false, b: false })The LIVE grading as emitted. A check that did not apply is never shown as a pass.
| Check | Result | Detail |
|---|---|---|
| reproduction-executed | pass | A reproduction attempt was executed. |
| signature-captured | pass | `minimist(['--aa=false','--bb=false'], {boolean:['a','bb'], alias:{a:'aa', bb:'b'}})` still produces { _: [], a: 'false', aa: 'false', bb: false, b: false } (read { _: [], a: 'false', aa: 'false', bb: false, b: false }) |
| right-failure | pass | Reproduced the reported failure: minimist(['--aa=false', '--bb=false'], {boolean: ['a', 'bb'], alias: {a: 'aa', bb: 'b'}}) produces { _: [], a: 'false', aa: 'false', b: false, bb: false }; the fix makes it produce { _: [], a: false, aa: false, b: false, bb: false }. |
| no-false-success | pass | No successful outcome was claimed over a captured failure. |
| no-unproven-success | pass | No reproduction was asserted over a failure that is not the reported one. |
bench/external/scorecard.json, the run of 2026-09-20 against all 158 upstream checkouts.
The same case, graded from the transcript recorded .
The grading the benchmark gate runs on. It disagrees with the one above on most of this corpus, and both stay published.
Check it yourself
Everything here is downstream of a public commit.
Clone it, check out 2758c33, run the report through the CLI the way the study did.
git clone https://github.com/minimistjs/minimist git checkout 2758c33aba8a541bdfb571f7d61a99a7cc5055b3 npm install CREDDA_PROVIDER=heuristic \ npx tsx apps/cli/src/main.ts fix <repo-path> @<issue-file> --no-color