Repository navigation
fix(kge): fail closed on invalid strict benchmark evidence - #1477
Merged
Merged
Conversation
Adds opt-in `--gate --strict-evidence` to bench/run.mjs on top of `--require-engine` (#1461). Default, `--require-engine` and `--report-only` behavior are unchanged. Strict evidence requires: engine evaluation; completed requested training with finite telemetry; finite, bounded filtered head/tail metrics for every populated split; successful execution of every explicitly requested optional arm (ANN, tie check, adversarial retraining, whose train() errors are no longer discarded); and, when a baseline is supplied, a compatible schema, suite, requested scorer, full recorded config, tie mode, dataset split and file hashes, plus finite transfer MRR. Ported from #1213 (11 commits stacked on #1208's branch, which landed as #1461) onto main. Bench contract tests: 30/30 (22 existing + 8 strict). Full kge suite: 0 failures, same 24 engine-absent skips as main. Known gap carried from #1213: strict baseline comparison when the dataset has no transfer split is source-reviewed but not exercised by a test. Co-Authored-By: claude-flow <ruv@ruv.net>
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.
Ports #1213 onto main. #1213 was stacked on #1208's branch, whose content landed as #1461.
This adds an opt-in
--gate --strict-evidencemode tonpm/packages/kge/bench/run.mjs. Default,--require-engineand--report-onlybehavior are unchanged. It closes the fail-open paths reproduced in #1213, so strict mode now fails on:train()errors are no longer discarded);Validation on this branch:
node --test test/bench.test.mjs: 30/30 (22 from fix(kge): require an available engine in opted-in benchmark gates #1461 plus 8 strict-evidence tests)node --test test/*.test.mjs: 225 tests, 0 failures, and the same 24 engine-absent skips as maingit diff --checkandnode --check: cleanKnown gap (from #1213): strict baseline comparison on a dataset with no transfer split is source-reviewed, but no test exercises it.
Release: none.
bench/andtest/are not in the packagefiles.Supersedes #1213.
🤖 Generated with claude-flow