Personal project · 2026 · Python/FastAPI/LLM
Spec Reviewer
An AI reviewer that turns a raw spec into risks, gaps, questions and acceptance criteria.
7 endpoints
10/10 specs
MIT license
FastAPI · SQLAlchemy · SQLite
LangChain · GenAPI (gpt-4o-mini)
Docker · audit trail
INTERFACE RECONSTRUCTION · NOT A LIVE SCREENSHOT
Problem
Specs arrive as unstructured text. Risks, missing details and open questions surface late — usually after development has started. A general chatbot can produce plausible prose, but downstream tools need structured, validated output.
What it does
- Produces a structured review: summary, risks with severity, gaps, questions for the client, acceptance criteria and confidence.
- Flags uncertain reviews with an honest
needs_reviewmarker instead of inventing certainty. - Stores every document, review and LLM call for audit.
- Ships with a three-tab web panel for documents, reviews and raw JSON.
- Exposes seven API endpoints and runs locally or in Docker.
How it works
- The document is stored in SQLite.
- Chain A analyses the text and extracts risks, gaps and questions.
- Chain B turns the analysis into a structured review.
- Step C validates and assembles the final JSON deterministically.
- Every LLM action is written to
audit_runswith status and duration.
Engineering notes
- 7 endpoints, 3-step chain, strict JSON validation.
- 10/10 test specs pass; 4 are correctly flagged for review.
- 18 non-LLM tests and 3 live LLM tests (test suite run in a separate workspace; not published in this repository).
- Missing API key returns a clear error and a safe report.
- MIT license, Docker Compose, SQLite audit trail.
What I would improve next
- Upload
.docxand.pdfinstead of pasted text. - Export a review to PDF and compare revisions.
- Add auth, per-user limits and a model selector.
- Cache repeated reviews.
Interface reconstruction based on the running service. Not a live screenshot. The review card is a static representation of the JSON output.