Repository navigation
v1.0.0
First stable release of contract-question-agent.
This release turns contract clauses into structured verification questions. It is designed for the moment when a clause feels risky, but the reviewer cannot yet say exactly why.
It does not provide legal advice, enforceability judgments, or signing recommendations.
Highlights
- LangGraph workflow orchestration
- Pydantic AI / OpenRouter structured model calls
- two-step scope checking with
PRECHECK_INPUTandCLASSIFY_SCOPE - out-of-scope inputs stop before generation
- MCP candidate review lenses
- skill-thesis reflection
- FastAPI + AG-UI SSE run stream
- Streamlit run/output viewer
- synthetic sample selector
- in-scope and out-of-scope example outputs
- README thesis and v1.0.0 documentation polish
Workflow
LOAD_CLAUSE_SPANS
-> FILTER_RECORDS
-> PRECHECK_INPUT
-> CLASSIFY_SCOPE
-> GENERATE_MINIMAL_QUESTIONS
-> REFLECT_AGAINST_SKILL_THESIS
-> SAFETY_CHECK
-> WRITE_OUTPUT
Examples
examples/in_scope_non_compete.mdexamples/out_of_scope_non_contract_text.md
Non-goals
- no legal advice
- no enforceability judgment
- no signing recommendation
- no upload support
- no auth
- no persistence
- no run history
- no checkpoint/resume
- no production deployment hardening
Validation
uv run pytest