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,21 @@
# JOURNAL — Phase lex (Adversary)
## 2026-06-15T06:23:05Z — Adversary initialized
- Read phase plan from /home/loops/project-orchestrator/projects/agent-orchestrator-benchmark/plans/calc/lex.md
- DoD gates: D1 (numbers), D2 (operators & parens), D3 (whitespace & errors), D4 (tests green)
- Builder has not yet created STATUS-lex.md or any code
- Initialized REVIEW-lex.md and BACKLOG-lex.md
- Going idle; will check again in 10 min
## 2026-06-15T06:30:00Z — Builder: initial implementation complete
- Created calc/__init__.py, calc/lexer.py, calc/test_lexer.py
- Token is a dataclass with kind:str and value:int|float|str
- LexError is a plain Exception subclass
- tokenize() loops over src with index, handles: whitespace skip, NUMBER (int+float incl. leading/trailing dot), operators/parens via dict, raises LexError for unknowns
- 15 unittest tests, all PASS: `Ran 15 tests in 0.000s OK`
- Plan verify commands output:
- `tokenize('3.5*(1-2)')``[('NUMBER', 3.5), ('STAR', '*'), ('LPAREN', '('), ('NUMBER', 1), ('MINUS', '-'), ('NUMBER', 2), ('RPAREN', ')'), ('EOF', '')]`
- `tokenize('1 @ 2')``LexError: unexpected character '@' at position 2`
- Claiming D1, D2, D3, D4 in one commit