Repository navigation
docs: changelog, roadmap and contributor guide for the typed detector interface (#179) - #202
Merged
Merged
Conversation
…ted and head the 0.3.0 roadmap section Next (#179)
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 15 of #126: the changelog, roadmap and contributor guide for the typed detector interface, plus two gaps found while writing the changelog from the code.
What changes
CHANGELOG.mdgets the 0.3.0 entry with "Added", "Changed" and "Deprecated" sections, written from the code on this branch.PUBLIC_ROADMAP.mdgets a "Next: 0.3.0" section with the follow-ups, after the 0.2.4 section. The package version is 0.3.0 inpyproject.tomlandlettucedetect/__init__.py.DEPRECATED_SINCEandREMOVED_INalready held 0.3.0 and 0.5.0.CONTRIBUTING.mddescribes adding a detector by implementing_detect, running the contract suite and the registry. A new test reads the "Deprecated" section of the changelog, resolves each name and checks its docstring for the.. deprecated::note, the replacement and the removal version.predict*methods warn.predict,predict_promptandpredict_prompt_batchwere listed as deprecated but emitted no warning. A call from outside the package now warns once, namingdetectordetect_batch. Calls from inside the package are silent, soHallucinationDetectordoes not warn. Nested calls (the bridge through an overriddenpredict, the default batch loop, asuper().predict()chain) do not warn a second time.TaxonomyTyper(model_path, ...)works again. The constructor takes loaded objects, and the old call raisedTypeError. The old form now loads throughfrom_pretrainedand warns, namingTaxonomyTyper.from_pretrained.Worth a look in review
predict*warning uses a per-thread depth counter so that only the outermost call warns.tests/test_predict_deprecated_pytest.pycovers every detector class and the nested cases.predict_prompt_batchon a third-party class that implements onlypredict*. It gets the method warning and the once-per-class warning that was already there.scripts/evaluate_span_model.py --method velaandscripts/evaluate_lfm_span_model.py. They callpredict*on a detector directly.predict*directly gained the marker that allows the deprecation warning. No golden fixture changed.TransformerDetectorand an unknownmake_detectormethod still raise a plainValueError; the changelog names only the classes whose errors changed.LLMDetectorandRAGFactCheckerDetectorhas no replacement on the new interface; the changelog says so.mainhas an[Unreleased]changelog section, so the merge intomainwill need a small conflict resolution there.Testing
The full suite passes locally;
ruff checkandruff format --checkare clean.Rights & sign-off (required)
distributed under the repository's MIT license
(see CONTRIBUTING).