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
Spec Reviewer interface reconstruction

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_review marker 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

  1. The document is stored in SQLite.
  2. Chain A analyses the text and extracts risks, gaps and questions.
  3. Chain B turns the analysis into a structured review.
  4. Step C validates and assembles the final JSON deterministically.
  5. Every LLM action is written to audit_runs with 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 .docx and .pdf instead 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.