Add QuipBench :) #10
Open
Add QuipBench :) #10
MacroscopeApp / Macroscope - Correctness Check
completed
Feb 23, 2026 in 6m 38s
4 issues identified (71 code objects reviewed).
• Merge Base:
797d053
• Head:630bd0c
Details
| ✅ | File Path | Comments Posted |
|---|---|---|
| ✅ | bench/README.md |
0 |
| ✅ | bench/config.ts |
0 |
| ❌ | bench/dashboard/app.js |
2 |
| ✅ | bench/dashboard/index.html |
0 |
| ✅ | bench/dashboard/styles.css |
0 |
| ✅ | bench/db.ts |
0 |
| ✅ | bench/elo.ts |
0 |
| ✅ | bench/export.ts |
0 |
| ✅ | bench/finalize-partial.ts |
0 |
| ✅ | bench/leaderboard.ts |
0 |
| ✅ | bench/models.ts |
0 |
| ❌ | bench/open.ts |
1 |
| ❌ | bench/run.ts |
1 |
| ✅ | bench/types.ts |
0 |
Filtered Issues Details
bench/dashboard/app.js
- line 6: In
logoFor, callingname.includes()will throw a TypeError ifnameisnullorundefined. Ifrow.modelNamecould ever be missing from a leaderboard entry, this would crash when called fromrowHtmlon line 24. [ Low confidence ] - line 34: In
rowHtml,row.elo.toFixed(2)on line 34 will throw a TypeError ifrow.eloisundefinedornull. There is no validation that each row object in the leaderboard array has the expected numericeloproperty. [ Low confidence ] - line 37: In
rowHtml,row.winRate.toFixed(2)on line 37 will throw a TypeError ifrow.winRateisundefinedornull. There is no validation that each row object has the expected numericwinRateproperty. [ Low confidence ]
bench/db.ts
- line 233: The
replaceRatingsfunction executes aDELETEoperation immediately on line 233, which is outside the transaction scope defined at line 257. Inbun:sqlite, statements outside a transaction block are auto-committed. If the subsequent insertion transactiontx(leaderboard)fails (e.g., due to a constraint violation, system crash, or error withinstmt.run), the deletions will have already been permanently committed while the new insertions are rolled back. This breaks atomicity and results in data loss (an empty ratings list) for the givenrunId. TheDELETEstatement should be executed inside the transaction callback. [ Skipped comment generation ]
Loading