02 / Case study
REDFIRST.
A Python bug investigation tool that proposes a regression test and derives a verdict from execution evidence.
- Focus
- Developer tools / Software testing
- Development status
- Early development
- Source reviewed
01 / Overview
The problem.
A bug report can describe a symptom without giving maintainers a repeatable test. A failing test alone may still tell them little about the reported behavior.
- Who it serves
- Python maintainers examining functional bugs in projects they control.
- The approach
- REDFIRST pairs a report with repository context, proposes a pytest test, and lets explicit verification rules classify the collected result. The web interface shows investigation progress and exports evidence.
- My verified contribution
- Aswin-Times owns the repository and is the attributed author of the 30 latest commit records reviewed, including the Windows setup, worker startup checks and frontend work.
Technology stack
- Python
- FastAPI
- Next.js
- SQLAlchemy
- SQLite
- pytest
- SSE
02 / Architecture
How it works.
Select a step to see its responsibility.
Report + code
The investigation starts with a functional bug report and its Python project.
03 / Implementation
What’s built.
- AST-based repository indexing
- Investigation state machine and worker leases
- Test validation and evidence classification
- Server-Sent Events for investigation progress
- Investigation history and report exports
Engineering decisions
AI proposes the test
Generation is a proposal stage. The investigator can inspect the generated test and the evidence it yielded.
Evidence determines the verdict
The system assigns different outcomes to a confirmed result, insufficient evidence and execution failure.
04 / Evidence & limits
What the source supports.
The repository documents end-to-end checks with six fixture repositories, scripted model responses and local pytest. Source contains worker, verdict, SSE and sandbox test suites.
Security, reliability and known limits
- Real Docker execution, live Claude requests and PostgreSQL remain unverified in the repository documentation.
- The API has no authentication and is intended for localhost use.
- Repository-controlled execution evidence has documented trust limitations.
What’s next
Verify isolation against real Docker, measure live generation quality and strengthen the trust boundary around execution evidence.
05 / Source notes