Skip to content

feat: Python evaluator and CLI eval command (REQ-ARCH-035)#3

Merged
tbitcs merged 1 commit into
mainfrom
orchestrator/py-eval
Jun 2, 2026
Merged

feat: Python evaluator and CLI eval command (REQ-ARCH-035)#3
tbitcs merged 1 commit into
mainfrom
orchestrator/py-eval

Conversation

@tbitcs

@tbitcs tbitcs commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

REQ-ARCH-035: Python Evaluator

Pure-Python implementation of the arbiter eval loop that mirrors the C engine exactly.

Changes

  • python/arbiter/evaluator.py: ArbiterEvaluator class with all 13 condition operators, 15 expression opcodes, condition groups, safety guard priority ordering, int32 saturation
  • python/arbiter/cli.py: New eval subcommand
  • tests/python/test_evaluator.py: 55+ comprehensive test cases

All 141 tests pass (1 pre-existing skip).

Conversation: https://app.warp.dev/conversation/d2e5a285-21fe-43bf-a896-c0e7ba47704e
Run: https://oz.warp.dev/runs/019e88b0-c5e7-7d93-b62c-f5d3dcb87f73
This PR was generated with Oz.

Implement pure-Python eval loop mirroring the C engine:
- ArbiterEvaluator class with all 13 condition operators
- All 15 expression opcodes with int32 saturation
- Safety guard priority ordering
- arbiterc eval CLI command with --facts, --timestamps, --json
- 55+ comprehensive test cases

Co-Authored-By: Oz <oz-agent@warp.dev>
@tbitcs tbitcs merged commit 8612bed into main Jun 2, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant