Skip to content

test(core): pin the behaviour the v0.22.0 mutation gate found unchecked - #1605

Merged
ajianaz merged 1 commit into
developfrom
test/mutation-gap-v0.22.0
Oct 30, 2026
Merged

ajianaz merged 1 commit into
developfrom
test/mutation-gap-v0.22.0

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What

Tests only, no production change. The pre-release mutation gate (cargo mutants -p uteke-core --in-diff of v0.21.1..develop, 100 mutants) found 14 missed; this adds killing tests for the ones that can be killed cheaply: set_author_if_valid (2), the contradiction check in remember_with_contradiction (2), embedder_max_seq_len (2), EmbeddingWarmer::warm_content (2) and StoreSettings::load (1).

Why

Release rule: a missed mutant in changed code gets a killing test with exact-value assertions; the rest is listed in the release PR.

Testing

  • cargo fmt, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked.
  • Verified with cargo mutants -p uteke-core -F '<those functions>': 12 caught, 1 unviable, and the 2 reported misses are in extraction.rs and index_sync.rs, code that did not change since v0.21.1.
  • Still missed, listed for the release PR: ensure_embedder env override (2), finish_open_full index-width check (1, the refusal itself is tested in dimension_check), store_for_tests (test-only accessor), EmbeddingSection::resolve_from (the mutant only changes whether a warning is logged).

Killing tests for set_author_if_valid, the contradiction check, embedder_max_seq_len, EmbeddingWarmer::warm_content and StoreSettings::load.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4dd42a0 into develop Oct 30, 2026
14 checks passed
@ajianaz
ajianaz deleted the test/mutation-gap-v0.22.0 branch October 30, 2026 02:18
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