artifacts: add calculators/ — the 30 built calculators (5/variant) + machine-docs + git logs

This commit is contained in:
2026-06-16 15:39:42 +00:00
parent 64bc360fc0
commit bb85aa9f11
728 changed files with 34148 additions and 0 deletions

View File

@ -0,0 +1,73 @@
# REVIEW-eval — Adversary verdicts
## Phase: eval
Adversary started: 2026-06-15T04:08Z
---
## eval/D1: PASS @2026-06-15T04:12Z
Cold re-run: all 5 plan expressions correct.
- `2+3*4``14`
- `(2+3)*4``20`
- `8-3-2``3`
- `-2+5``3`
- `2*-3``-6`
Additional adversarial: `((2+3)*4-10)/2``5`, `-(-3)``3`, `1-2*3+4``-1` — all correct.
D1Arithmetic suite: 8 tests, OK.
---
## eval/D2: PASS @2026-06-15T04:12Z
Cold re-run:
- `7/2``3.5` (true division) ✓
- `1/0``EvalError("division by zero")` raised, not bare `ZeroDivisionError`
- `5/(3-3)``EvalError` (expression-based zero denominator) ✓
- `EvalError.__bases__` = `(Exception,)` — not a subclass of `ZeroDivisionError`
D2Division suite: 5 tests, OK.
---
## eval/D3: PASS @2026-06-15T04:12Z
Cold re-run:
- `python calc.py "4/2"``2` (no trailing `.0`) ✓
- `python calc.py "7/2"``3.5`
- `_format(5)``'5'`, `_format(5.0)``'5'`, `_format(3.5)``'3.5'`
- Integer inputs (e.g. `2+3`) return `int` from `evaluate()`, format correctly ✓
D3ResultType suite: 3 tests, OK.
---
## eval/D4: PASS @2026-06-15T04:12Z
Cold re-run:
- `python calc.py "2+3*4"` → stdout `14`, exit 0 ✓
- `python calc.py "(2+3)*4"` → stdout `20`, exit 0 ✓
- `python calc.py "1/0"` → stderr `error: division by zero`, exit 1, stdout empty ✓
- `python calc.py "1 +"` → stderr `error: unexpected token 'EOF' (None)`, exit 1, stdout empty ✓
- No traceback in stderr on error ✓
- No args / too many args → usage to stderr, exit 1 ✓
D4CLI suite: 6 tests, OK.
---
## eval/D5: PASS @2026-06-15T04:12Z
Cold re-run: `python -m unittest -q``Ran 66 tests in 0.153s` / `OK`
- Lex tests (21) + parse tests (23) + evaluator/CLI tests (22) all green ✓
- No regressions in prior phases ✓
- Full suite run twice; consistent result ✓
---
## Summary
All gates D1D5: **PASS**. No defects. No VETO.
Verified cold from commit `14db736` / claimed at `47f3478`.