Alexander Whitestone
|
81ee0557d6
|
feat: implement autonomous research pipeline (#972)
Tests / lint (pull_request) Failing after 35s
Tests / test (pull_request) Has been skipped
Closes three P0 items from the governing research sovereignty spec:
- `src/timmy/research.py` — ResearchOrchestrator (6-step pipeline):
Step 0 semantic cache check (SQLite, instant, $0 cost)
Step 1 research template loading from skills/research/
Step 2 query formulation via Ollama slot-fill
Step 3 web search via SerpAPI (graceful fallback when key absent)
Step 4 full-page fetch via trafilatura (web_fetch)
Step 5 synthesis via cascade (Ollama → Claude API fallback)
Step 6 store to semantic memory + optional disk persist
- `tests/timmy/test_research.py` — 24 unit tests, all passing
- `SOVEREIGNTY.md` — machine-readable research independence manifest
with pipeline status, cascade tiers, templates, and metrics targets
Refs #972 (governing spec), #973 (web_fetch), #974 (templates), #975 (orchestrator)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 21:39:58 -04:00 |
|