SignalDesk workflow demo
I built a FastAPI demo with persisted jobs, duplicate prevention, bounded retries and a human review step.
My Role
Personal project design and implementation
My contribution
I designed and implemented the API, persisted jobs, retry handling, review interface and event export.
Watch walkthrough
The video includes audio. Captions are not available. The case study and engineering notes explain the workflow in text.
Open walkthrough (opens in a new tab) (MP4, 5.2 MB)
Problem
A model response is only one part of a product feature. Requests also need persistence, repeatable processing and a clear review boundary.
The problem
I wanted to show what happens when a request is repeated, processing fails or output does not match its expected schema.
Implementation and engineering decisions
Persist jobs before processing
The Challenge
In-memory job state would be lost when the app restarts.
My implementation
I stored requests and processing state in SQLite and used a local background worker.
Saved requests and processing state remain available after an app restart.
Bound retries and prevent duplicate work
The Challenge
Repeated requests and transient failures need different handling.
My implementation
I used idempotency keys with payload checks and an explicit retry budget.
Repeated requests can reuse a saved job, while failed processing stops when its attempt budget is exhausted.
Keep validation and review separate
The Challenge
A structurally valid response can still be wrong.
My implementation
I validated the response schema before a saved human review action and kept the original result in the event history.
The reviewer can inspect and edit the result while retaining its original output and review history.
Technology
Backend
- Python
- FastAPI
- SQLite
- Pydantic
Delivery
- Docker
- HTML/CSS/JavaScript interface
Integration
- Optional OpenAI adapter, mocked response tests
Evidence and availability
The optional OpenAI adapter was tested with mocked responses. Live model behavior remains unverified. Approval records a review inside the demo without performing external business actions.
- Public source repository (opens in a new tab)
MIT-licensed source code, setup instructions and automated tests for the local demonstration.
- Read engineering notes (opens in a new tab)
SignalDesk | AI Workflow Engineering Demonstration. PDF, 2 pages, 917 KB.
Download PDF - Open sample-mode screenshot (opens in a new tab)
