Skip to content

Reject duplicate behavioral evaluation IDs - #632

Merged
addyosmani merged 2 commits into
addyosmani:mainfrom
rudycelekli:fix/eval-ids-20261003
Oct 10, 2026
Merged

addyosmani merged 2 commits into
addyosmani:mainfrom
rudycelekli:fix/eval-ids-20261003

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

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

  • Node 24.19.0 on macOS: 175 tests passed, no skips.
  • All five validators passed; routing passed 141 checks with 89/89 rank-1 positives at the unchanged 95% floor.
  • Bash cache controls 29/29, ignore controls 49/49, and session-start payload passed.
  • A targeted guard mutation was caught, then the exact signed source was restored.
  • No paid model calls were used. Linux/Windows and plugin-install checks will be reported by hosted CI; they are not claimed as locally run.

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.

rudycelekli and others added 2 commits October 3, 2026 10:58
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>

@addyosmani addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@addyosmani
addyosmani merged commit ea75fb4 into addyosmani:main Oct 10, 2026
7 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.

2 participants