feat: cross-validation harness and performance regression tracking#7
Merged
Conversation
Add cross-validation test suite that validates the Python evaluator against 12 golden test vectors covering all major evaluation paths: basic eval, safety guard ordering, expression opcodes (scale, accumulate, clamp with saturation), div-by-zero, staleness, mode transitions, fault raise/clear, delta operators, condition groups, and INT32 saturation. Tests include: - Parametrised golden-vector evaluation (12 vectors) - Determinism verification (100 identical runs) - Compile-to-C validation (each vector model compiles to valid C) Also adds: - tools/parse_benchmark.py for extracting ns/tick timing from Twister benchmark logs (PID and Kalman) - CI workflow step to print benchmark timing summary after Twister Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-validation harness and performance regression tracking
Cross-validation test suite ( ests/python/test_cross_validation.py)
basic eval, safety guard ordering, expression opcodes (scale, accumulate, clamp with saturation),
div-by-zero, staleness, mode transitions, fault raise/clear, delta operators, condition groups,
and INT32 saturation
(ARBITER_generated_model, ARBITER_MODEL_HASH)
Performance regression tracking
hand-coded and engine variants from PID and Kalman benchmarks, prints summary table
(log-only for now — no fail threshold until baseline data is collected)
Test results
Conversation: https://app.warp.dev/conversation/069a3382-5169-4a07-8e15-ea4862186401
Run: https://oz.warp.dev/runs/019e8993-e9a4-7058-9fea-abfbf925ac06
This PR was generated with Oz.