Skip to content

fix(skills): prevent low-confidence skill injection (#2512, #2513, #2501)#2517

Merged
bug-ops merged 1 commit intomainfrom
fix-2512-skill-disambiguation
Mar 31, 2026
Merged

fix(skills): prevent low-confidence skill injection (#2512, #2513, #2501)#2517
bug-ops merged 1 commit intomainfrom
fix-2512-skill-disambiguation

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 31, 2026

Summary

Test plan

  • cargo +nightly fmt --check — passed
  • cargo clippy --all-targets --features full --workspace -- -D warnings — passed
  • cargo nextest run --workspace --features full --lib --bins — 7564 passed, 22 skipped

Closes #2512, #2513, #2501

)

Add min_injection_score config field (default 0.20) to filter out skills
that score below threshold before injection. This closes the structural
gap where any top-N skill was injected regardless of absolute score.

Also raise disambiguation_threshold default from 0.05 to 0.20 to prevent
LLM disambiguation on clearly non-matching candidates.

Fix SKILL.md descriptions to eliminate specific false positives:
- process-management: replace "memory" with "RAM" to avoid matching
  user queries containing the word "memory" (#2513)
- os-automation: replace catch-all phrase with explicit negative scope
  sentence to prevent triggering on generic shell commands (#2501)
- rust-agent-handoff: remove noisy Keywords line, tighten description
  to exclude generic update/memory prompts (#2512)

Fix pre-existing clippy::float_cmp violations in admission.rs tests.
@github-actions github-actions bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes core zeph-core crate bug Something isn't working size/M Medium PR (51-200 lines) labels Mar 31, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 31, 2026 11:13
@bug-ops bug-ops merged commit 6b7b44d into main Mar 31, 2026
27 checks passed
@bug-ops bug-ops deleted the fix-2512-skill-disambiguation branch March 31, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

1 participant