LearningCircuit

Results issues of LearningCircuit

## Summary - Adds `ResearchHistory.indexed_at` (UtcDateTime, nullable) and a 0008 migration that backfills it from existing `Document.processed_at`. - `ResearchHistoryIndexer.convert_all_research` now filters candidates by `indexed_at IS NULL` instead of joining `Document.research_id`....

database
bugfix

## Summary Five tables had ``String(36) research_id`` columns with no FK to ``research_history.id``, leaving orphans on research delete and — more concerning — leaving sensitive query text behind: | Column...

database
touches-encryption
bugfix

## Summary Adds an opt-in `safeFetchWithAuth()` helper alongside the existing `safeFetch()`. It behaves identically except that on a 401 response from an internal URL, it navigates the browser to `/auth/login?next=`...

enhancement
javascript
tests

## Summary Adds an opt-in citation handler that **trusts the langgraph agent's already-cited final answer** instead of running a second LLM synthesis pass. Default behavior (synthesis) is unchanged — purely...

enhancement
performance
tests
feature
benchmark-needed

## Summary - All three citation handlers (`StandardCitationHandler`, `PrecisionExtractionHandler`, `ForcedAnswerCitationHandler`) now place bulky source content at the **top** of the synthesis prompt and the **question + synthesis instructions at the...

performance
python
bugfix

## Summary Follow-up to #3644. Two `quick_summary` callers run with an authenticated user / encrypted-DB context and pre-#3644 silently used DB-backed rate-limit persistence (engines were stuck in `programmatic_mode=False` due to...

python
bugfix

## Summary - Drop the per-document `PRAGMA wal_checkpoint(FULL)` from `library_rag_service.py` — it was the self-inflicted amplifier behind the recurring `database is locked` errors seen during bulk PDF downloads. - Add...

performance
bugfix

## Summary - Moves the database backup trigger off every login and onto a periodic `BackgroundJobScheduler` job (default: every 7 days at 03:00 local) — the mitigation deliberately deferred in...

security-review-needed
touches-authentication
critical-changes
merge-blocked

## Summary - Applies the source changes from PR #3104 (security: fix FAISS trust-on-first-use and add upload file size validation) - Fixes the two broken tests in `test_file_integrity_manager_coverage.py`: - `test_no_record_creates_one`...

security
security-review-needed
python
tests
breaking-change
touches-web-hardening
bugfix

## Summary Follow-up to #4560 (audit of #4574). The library documents listing API parsed pagination with a bare `int(...)` and **no clamp**: ```python limit = int(request.args.get("limit", 100)) offset = int(request.args.get("offset",...

security
touches-web-hardening
bugfix