Umer Mughal
AI workflow integrationCase Study

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

92-second personal demo using synthetic data and deterministic sample rules. Follow a request through review, retries, duplicate prevention, validation failure and JSON export.

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

1

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.

2

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.

3

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.

SignalDesk local sample mode showing synthetic requests, job states and a saved human review
Sample-mode job states and a saved review. Counts represent synthetic demo records.