mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
* test(compression): failing tests for relevance engine scorer + apply * feat(compression): relevance extractive engine — scores sentences against last user query * test(compression): regression tests for relevance engine review fixes (threshold/multimodal/force-preserve/whitespace/query) * fix(compression): relevance engine hardening from core review - overlapThreshold was dead config (|| kept<budget made it unreachable) → real threshold gate - multimodal: only compress when exactly one text block (was stamping joined text into every block) - force-preserve sentences are now 'free' (don't consume budget) so they can't starve top-relevance - preserve inter-sentence whitespace (\n\n survives) instead of flattening to single spaces - ROOT-CAUSE: stop gating preserve on ultraHeuristic FORCE_PRESERVE_RE — it matches the period ending every sentence, so it force-preserved everything (no-op). New SENTENCE_PRESERVE_RE anchors on real signals (digits/URL/Error:/code/at-frame/path/key=value), mirroring #17's UNIT_PRESERVE_RE - core-review suggestion to skip the query message: rejected (self-overlap already protects it; skipping would no-op the single-message RAG case) — documented + test updated * docs(changelog): restore relevance engine bullet (#7, eaten by rebase)