LearningCircuit

Results issues of LearningCircuit

Closes #4130. ## Summary Aligns the default plain-HTTP HTML downloader (`src/local_deep_research/research_library/downloaders/html.py`) with the polite-crawler framing that TRUST.md §6 describes — Option A from the issue. Before this change `HTMLDownloader.__init__` unconditionally...

research-quality
python
tests
benchmark-needed
bugfix
code-ready

Tracking issue for the remaining audit findings on `chat-mode-v2` (#2953) that were deferred from the pre-merge fix PRs (#3843, #3868). See ID prefixes for cross-reference back to the 50-agent audit...

ci-cd
python
status/checked
issue-analyzed

## Description Third in the cross-engine/follow-up index-validation series (#3867, #4337). After fixing those two filters I swept the codebase for the same pattern — an LLM-returned list of indices used...

python
tests
bugfix

## Description Follow-up to #3867. While reviewing that PR I checked the sibling filter `FollowUpRelevanceFilter` and found it parses LLM-returned source indices with weaker validation that has the **same class...

python
tests
benchmark-needed
bugfix

Tier 2/4 cleanup. 5 tests in test_alembic_migrations.py had try/finally + only-implicit 'doesn't raise' contract. Added explicit `assert get_current_revision(engine) == get_head_revision()` after each run_migrations() call so a SUT regression that silently...

database
python
tests

## Summary Removes 140 import-existence tautology tests of the form: \`\`\`python def test_X_exists(self): from module import symbol assert symbol is not None \`\`\` The \`assert is not None\` check is...

developer-experience
refactoring
tests

Tier 2: 7 tests across test_search_tracker.py (3), test_token_counter.py (2), test_token_counter_llm_paths_coverage.py (2) invoke the SUT under no-context / no-credentials setup and pass if it doesn't raise. They never verify the actual...

refactoring
python
tests

## Summary Companion to #4231. Adds Alembic migration `0010` that performs a one-shot heal of `local_search_text_separators` rows corrupted by an earlier bug — which wrote `str(text_separators_list)` instead of `json.dumps(text_separators_list)`, producing...

database
python
tests
bugfix

**Surfaced by the #2953 (chat-mode-v2) review, filed as a post-merge follow-up.** ### Problem `src/local_deep_research/chat/service.py` (a domain-service class) imports `set_termination_flag` from `web/routes/globals.py`: ```python from ..web.routes.globals import set_termination_flag ``` This is a...

technical-debt
priority: low
python
status/checked
issue-analyzed

## Summary Bundled follow-up to #4037, addressing the architectural loose end from #3976 thread. - **DB sink cap (the main fix).** `database_sink` was storing `record["message"]` verbatim into `ResearchLog.message` (unbounded TEXT)....

javascript
performance
python
tests
bugfix
code-quality