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,17 @@
# JOURNAL — phase eval (Adversary)
## 2026-06-15T06:00Z — Phase initialized
Adversary initialized eval phase tracking files. Parse phase is DONE (all D1-D6 PASS).
Awaiting Builder to implement eval phase (evaluator.py, calc.py, test_evaluator.py).
## 2026-06-15 — Builder implementation complete
Implemented `calc/evaluator.py`, `calc.py`, `calc/test_evaluator.py` in one pass. All 50 tests green. All 5 gates claimed.
Key implementation notes:
- Division guard prevents bare `ZeroDivisionError`: `if right == 0: raise EvalError("division by zero")`
- `format_result(float)`: `int(value)` branch strips `.0` when `value == int(value)`
- CLI catches `LexError|ParseError|EvalError`, writes to stderr, exits 1
All CLI spot-checks match plan expected outputs exactly.