Repository navigation
v2.6 Foundation: RAG Quality + Multi-Worker + Polish
v2.6 Foundation: RAG Quality + Multi-Worker + Polish
Shipped: 2026-05-27 | 35 phases | 91 plans | 846 commits | 16 days
Overview
v2.6 builds the production-ready substrate for the next four milestones. It closes the user-observed PDF↔DOCX extraction inconsistency, lifts the single-worker concurrency ceiling, modernizes the frontend streaming architecture, integrates 9 LLM providers, and ships a live-execution UX that matches Claude.ai quality.
Highlights
🔬 Per-Aspect Extraction Dispatcher — Every extraction engine (text, tables, images, equations) is independently swappable via app_settings or per-call hint. Camelot (MIT) replaces Docling as the default table engine after a 5-engine benchmark (14.3x improvement on thesis PDFs).
⚡ Multi-Worker Production — uvicorn --workers 2 enabled with full validation: asyncpg connection pool in hot paths, 50-parallel-run synthetic load test, cross-worker cancel via Redis, sandbox session stickiness. D-PRD-12 ADR documents the singleton audit.
🎨 Live-Execution UX — RunCard + ToolCallPanel refactor with editor-inset code panels (Shiki syntax highlighting), streaming tool_args_progress across all providers, Focus Mode composition under long-run stress, per-step result summaries.
🌐 9 LLM Providers — OpenAI, Anthropic, Google (native SDK), DeepSeek (with thinking mode), Kimi/Moonshot, MiniMax, GLM/Zhipu, OpenRouter, Ollama. Per-provider sub-agent defaults, timeout profiles, and pattern-based inference for unknown models.
📊 StreamsProvider Lift — useMessages.ts reduced from 1,229 LOC to < 100 LOC thin reader. All run-stream subscriptions owned by a top-level <StreamsProvider> Context. Chat surface paints cached messages instantly on thread switch.
🔧 Settings Architecture — settings_override.json eliminated. All 36+ keys migrated to DB-backed app_settings with 30s TTL hot-reload cache. model_capabilities_overrides table enables runtime model registration. 4-tier resolution: DB > env CSV > static dict > defaults.
Migrations (14)
| Migration | Purpose |
|---|---|
| 039-042 | Extraction telemetry + document columns |
| 043 | Concurrent-upload dedup unique index |
| 044 | Multimodal admin-tunable ceilings |
| 045 | Per-aspect extraction engine defaults |
| 046-047 | Table engine defaults (camelot) |
| 048 | System warning events + iteration cap |
| 049 | tool_args_progress emit boundary |
| 050 | DeepSeek reasoning_content column |
| 051 | Protected context overrun + dedup CAS |
| 052 | runs.spawned_by_worker debug column |
| 053 | Settings unification (app_settings JSONB + model_capabilities_overrides) |
Requirements Verified
All 24 v2.6 REQ-IDs validated across 6 themes (RAG Quality, Multi-Worker, Streams Provider, Polish, Code Quality, Token Telemetry, Settings Unification). Cross-cutting verification gate (Phase 082): 5/5 success criteria GREEN.
Known Issues
- Title generation broken on DeepSeek/Moonshot, partial on Google (BUG-260527-01)
- System prompt needs cross-provider tool use revision (SEED-034)
- Error Handler Foundation deferred to v2.7 (Phase 082.5)
What's Next
v2.7 Agent Workspace + Harness Engine + Plugin Contract — Per-thread workspace filesystem, state-machine harness, right-side panel UI, formal Plugin Contract for vertical packs.