Repository navigation
Description
Parent
Branch
Branch from stateless_core and open the pull request against it, not main. Close this ticket by hand once its pull request merges there: GitHub only closes issues automatically on merges into main.
What to build
The release notes for the detectors feature: the changelog lists every deprecated name and every behaviour that changes through the old API, the roadmap reflects the release, and the contributor guide describes the new way to add a detector. The version number and the deprecation window come from the decision made elsewhere, and the two constants from the deprecation mechanism get their final values here.
Documentation of the new API on the documentation site and a migration page are a follow-up. The docstring notes added by the deprecation mechanism already reach the API reference.
Acceptance criteria
-
CHANGELOG.mdhas an entry for the release with a "Deprecated" section listingTransformerDetector,LLMDetector(with itsprovider,client_kwargsandcache_filearguments and the omittedclient),make_detector,CacheManager,predict,predict_prompt,predict_prompt_batchand themin_confidenceandoutput_formatarguments, each with its replacement and removal version. - The entry has a "Changed" section listing each behaviour change through the old API named in the epic's Release decisions, each in one sentence that says what happened before and what happens now.
- The entry has an "Added" section listing
detect,adetect,detect_batch,adetect_batch,EncoderDetector,LLMJudgeDetector,GenerativeDetector,TaxonomyTyper.from_pretrained,load_detector,ResponseCache,SyncCacheBase,FileCache,InMemoryCache,make_cache_key, the config models, and the request, result and error types. - The entries for
adetectandadetect_batchsay they run on the event loop's default executor, which the rest of the service shares (DNS lookups included), so it should be sized for many concurrent calls; that cancelling stops the wait and not the thread; and that there is noexecutorargument. The entry also lists the newfact_checkerandmax_concurrencykeywords ofRAGFactCheckerDetector. - Every deprecated name in the changelog has the
.. deprecated::note in its docstring, checked by a test that walks the deprecated names listed in the changelog's "Deprecated" section. -
DEPRECATED_SINCEandREMOVED_INhold the values the release decision gives, and the package version is updated to match. -
PUBLIC_ROADMAP.mdnames the release and the follow-ups listed under "Out of Scope" in the epic (facade migration, the HTTP contract, the batch and shared-type decisions where still open). - The "Project structure" section and the "New detection methods" item of
CONTRIBUTING.mddescribe the registry and the detector interface instead offactory.pyandmake_detector. - Importing
lettucedetect.detectorsin a fresh interpreter emits noLettuceDetectDeprecationWarning, and the full test suite passes with the warning as an error apart from the five marked modules. - No production code changes other than the two constants and the version.
Blocked by
#127, #132, #134, #137, #140, #144, #148, #153, #156, #162, #166, #169, #172, #175, and the decision elsewhere on the release version and the deprecation window.
User stories covered
51
Activity
feat: warn when the deprecated predict methods are called from outsid…
fix: keep TaxonomyTyper(model_path, ...) working as a deprecated call (…
docs: list the predict warnings and the TaxonomyTyper call as depreca…
Merge pull request #202 from KRLabsOrg/179-changelog
adaamko commentedon Nov 22, 2026
Done in #202, merged into
stateless_core.