Research Mode overhaul and RAG engine fixes
Apr 14, 2026

Research Mode overhaul and RAG engine fixes

Research Mode 7-session blocker killed. RAG audit panel wired back up after being broken since Session 73. FTS column discovery fixed. Security guards added.

April 11, 2026

Research Mode dual-window fix

A seven-session demo blocker. AI Report button enlarged and given a visual glow. Variant dropdown z-index fixed (the modal was being clipped by an overflow-hidden ancestor). Research Mode scroll containment repaired with a 55vh viewer + flex chat split. AI analysis modal widened from max-w-2xl to max-w-4xl.

RAG engine — three bugs fixed

  • Readonly + WAL contradiction — SQLite was opened with both, which never works. Now opens readonly without WAL.
  • FTS column discovery — full-text search was looking for a document column that didn't exist; real column is string_value.
  • Audit panel wiring — the RAG audit panel was disconnected from the actual audit log since Session 73. Now wired correctly through api.getRAGAuditLog.

Security audit outcomes

Three parallel code reviewers audited the codebase. Shipped fixes: top_k clamped to 50, lastSearchAlgorithm made local instead of a global, FTS column name SQL injection guard, LIKE keyword count capped at 8.

Emoji purge and icon normalization

Nineteen emoji in VariantViewer and five more in VariantSearchSection replaced with AriaIcon components. Consistent with Session 72's project-wide emoji purge.