Skip to content

fix(kge): require an available engine in opted-in benchmark gates - #1461

Merged
ruvnet merged 1 commit into
mainfrom
sail/kge-require-engine
Nov 10, 2026
Merged

ruvnet merged 1 commit into
mainfrom
sail/kge-require-engine

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Ports #1208 onto main. #1208 was stacked on #1183, but only touches the two kge bench files, which exist on main unchanged.

bench/run.mjs --gate could print PASS with every check skipped and exit 0 when the native/WASM engine was absent. This adds --gate --require-engine:

  • If the engine is unavailable, a failed required_engine row is recorded and the bench exits 1.
  • If a requested suite is skipped, strict execution fails.
  • --report-only keeps its contract: it records failures and exits 0.
  • --require-engine without --gate is rejected.
  • Default behavior is unchanged.

Validation: node --test test/bench.test.mjs passes 22/22 on this branch, none skipped.

Release: none needed. bench/ and test/ are not in the package files.

Supersedes #1208.

🤖 Generated with claude-flow

`bench/run.mjs --gate` could print PASS with every check skipped and exit 0
when the native/WASM engine was absent. Add `--gate --require-engine`: an
unavailable engine records a failed `required_engine` row and exits 1, and a
skipped requested suite also fails strict execution. `--report-only` keeps
its contract (records failures, exits 0). `--require-engine` without
`--gate` is rejected. Default behavior is unchanged.

Ported from #1208 (stacked on #1183) onto main; only bench/run.mjs and
test/bench.test.mjs change. 22/22 bench contract tests pass on main.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet
ruvnet merged commit 63a1d4d into main Nov 10, 2026
67 of 68 checks passed
vitaly-z pushed a commit to vitaly-z/ruvector that referenced this pull request Nov 11, 2026
Adds opt-in `--gate --strict-evidence` to bench/run.mjs on top of
`--require-engine` (ruvnet#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 ruvnet#1213 (11 commits stacked on ruvnet#1208's branch, which landed as
ruvnet#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 ruvnet#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>
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