Iron Rod

iron-rod
active
Repo path (home)
/home/eric/projects/misc/iron-rod
Repo path (work)
—
Completion
80%
Estimated hours remaining
14.0
Confidence
medium
Last analyzed
9/17/26, 10:00 AM
Target state
API-first local RAG over LDS scriptures and General Conference with tier-aware retrieval and anti-hallucination guardrails, plus a thin CLI/MCP wrapper — accurate, guardrailed, tested.

Automation

Tasks

Implement thin MCP server wrapping the /v1/answer API
Create MCP server module with answer + search tool definitions
Wire tools to call the API/core answer pipeline and map Answer -> MCP response
Add entry point / console script and packaging metadata
Unit tests for tool registration, param passthrough, and refusal/citation handling
Cover the /v1/answer route and the retrieval/generation plumbing with unit tests
Test /v1/answer: request-model validation bounds, happy path against a stubbed pipeline, and the 503 when _build_pipeline raises
Test get_pipeline lazy-init/caching and _build_pipeline's env-driven reranker and GROUNDING_THRESHOLD wiring
Test AnswerPipeline orchestration end-to-end with a fake retriever and fake chat client, including the guardrail-refusal path
Test Retriever tier/source_class filtering and hybrid merge, plus bm25 and rerank ordering, against fixture hits
Test prompts.assemble_user_prompt and the chat client's request construction and error handling