Skip to content

refactor(compression): remove vestigial SLM seam + dead deprecated alias - #4253

Merged
diegosouzapw merged 1 commit into
release/v3.8.29from
refactor/compression-remove-vestigial-slm
Jun 19, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.29from
refactor/compression-remove-vestigial-slm

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Sweep final de dead-code/scaffold — encerra o "compressão 100% funcional"

Varredura de verificação de completude no subsistema achou 2 vestígios que escaparam do #4223:

1. Seam SLM morto (ultra.ts)

SLMInterface + createSLMStub eram um ponto de injeção de "small language model" para o engine ultra — nunca consumido. ultraCompress poda inline via pruneByScore (linha 55) e o caminho de modelo real vive no engine llmlingua separado (worker ONNX). A interface tinha zero consumidores de produção; só os próprios testes a exercitavam.

2. Alias @deprecated morto (stats.ts)

estimateTokensForStats = alias de estimateCompressionTokens marcado @deprecated, com zero callers.

Mudanças

  • ultra.ts: remove SLMInterface + createSLMStub.
  • stats.ts: remove estimateTokensForStats.
  • index.ts: remove os re-exports correspondentes.
  • ultra.test.ts: remove o bloco describe("createSLMStub") (o scaffold que ele testava sumiu; o comportamento real do ultra segue 100% coberto — 39 testes).

Observação (deixada como está — decisão maior)

O config do ultra ainda carrega modelPath / slmFallbackToAggressive, que ultraCompress também ignora. Sinalizado para decisão separada (ligar ao llmlingua vs remover) — não toquei pois mexe em schema/DB/defaults.

Validação: suíte de compressão 709/709 ✓ · typecheck:core ✓ · lint ✓ · zero referências pendentes aos símbolos removidos.

Final dead-code/scaffold sweep for the "compression 100% functional" program.

- ultra.ts: remove SLMInterface + createSLMStub. ultraCompress prunes inline via
  pruneByScore and never consumed the SLM seam — the real small-model path lives in
  the separate llmlingua engine (ONNX worker). The interface had zero production
  consumers; only its own tests exercised it.
- stats.ts: remove estimateTokensForStats — a @deprecated alias of
  estimateCompressionTokens with zero callers.
- index.ts: drop the corresponding re-exports.
- ultra.test.ts: drop the createSLMStub block (the scaffold it tested is gone; the
  ultra engine's real behavior stays fully covered — 39 tests).

Note (left as-is, larger call): the ultra config still carries modelPath /
slmFallbackToAggressive, which ultraCompress also ignores — flagged for a separate
decision (wire to llmlingua vs remove).

Full compression suite 709/709 green; typecheck:core + lint clean.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@diegosouzapw
diegosouzapw merged commit 3bc1a0f into release/v3.8.29 Jun 19, 2026
4 checks passed
diegosouzapw added a commit that referenced this pull request Jun 19, 2026
…the llmlingua SLM tier (#4257)

Wire ultra's modelPath/slmFallbackToAggressive to the llmlingua SLM tier. Follow-up to #4253. Integrated into release/v3.8.29.
@diegosouzapw diegosouzapw mentioned this pull request Jun 19, 2026
diegosouzapw added a commit that referenced this pull request Jun 19, 2026
… test-masking allowlist)

Release-PR (→main) quality gates fired on cumulative cycle drift the PR→release
fast-gates don't run:

- eslintWarnings ratchet 3779 -> 3816: +37 `any` (warn-level) warnings from 115
  cycle commits in open-sse/ and tests/. Release reconciliation adds 0 warnings
  (scripts/check/*.mjs are eslint-ignored; new fabricated-docs test uses no any).
  Same precedent as the v3.8.28 cycle-close rebaseline. Documented in baseline.
- test-masking allowlist += 5 verified-legitimate net-assert reductions from merged
  refactors: #4129 (combo-routing-e2e alignment), #4226 (ccr-marker/session-dedup
  helper removal), #4253 (ultra SLM-seam removal), #4132 (db-backup de-flake).
  Each reduction removed/restructured asserts for removed code — not weakening.
@diegosouzapw
diegosouzapw deleted the refactor/compression-remove-vestigial-slm branch June 19, 2026 12:07
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
…ias (diegosouzapw#4253)

Integrated into release/v3.8.29 — remove vestigial SLM seam (createSLMStub/SLMInterface) + dead estimateTokensForStats alias. Validated: ultra.test.ts 39/39 green, zero code callers of the removed symbols.
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
…the llmlingua SLM tier (diegosouzapw#4257)

Wire ultra's modelPath/slmFallbackToAggressive to the llmlingua SLM tier. Follow-up to diegosouzapw#4253. Integrated into release/v3.8.29.
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
… test-masking allowlist)

Release-PR (→main) quality gates fired on cumulative cycle drift the PR→release
fast-gates don't run:

- eslintWarnings ratchet 3779 -> 3816: +37 `any` (warn-level) warnings from 115
  cycle commits in open-sse/ and tests/. Release reconciliation adds 0 warnings
  (scripts/check/*.mjs are eslint-ignored; new fabricated-docs test uses no any).
  Same precedent as the v3.8.28 cycle-close rebaseline. Documented in baseline.
- test-masking allowlist += 5 verified-legitimate net-assert reductions from merged
  refactors: diegosouzapw#4129 (combo-routing-e2e alignment), diegosouzapw#4226 (ccr-marker/session-dedup
  helper removal), diegosouzapw#4253 (ultra SLM-seam removal), diegosouzapw#4132 (db-backup de-flake).
  Each reduction removed/restructured asserts for removed code — not weakening.
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