Repository navigation
Reject duplicate behavioral evaluation IDs - #632
Merged
Merged
Conversation
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
addyosmani
approved these changes
Oct 10, 2026
addyosmani
left a comment
Owner
There was a problem hiding this comment.
praise: results are written per eval id, so a duplicate id would silently overwrite a grading record. A cheap guard that runs before anything is cleared, and id 0 still works. Merging.
It conflicted with #636 on the test file, so I pushed a merge to your branch that keeps both tests.
This was referenced Oct 10, 2026
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.
Problem and change
The deterministic gate accepts two behavioral evaluations with the same id. Behavioral output is named
<skill>.eval-<id>, so the later evaluation overwrites the earlier grading record. Reject duplicates before executing or clearing results; preserve the existing integer-ID range, including zero.Reproduction
A complete temporary case with two distinct prompts and id=1 passes on main when it should fail; the new regression rejects it in deterministic and behavioral dry-run modes. Distinct IDs, including zero, remain accepted.
Verification
Existing work
Production rules are distinct from #524’s shared-test-helper refactor. A local compatibility check retained all current and added test bodies, exercised #524’s actual helper API, and passed 80 focused tests. #524 has existing conflicts with main; this is not a claim that its entire branch merges or passes. The exact patch also composes cleanly with #455’s fixture dereference change; its symlink-copy behavior is retained.
AI assistance: OpenAI Codex / GPT-6 was used for investigation, code and tests.