Skip to content
← Xenotech · Project 04 of 07

Duol

Six years of operations in three spreadsheets, turned into a system where legal deadlines calculate themselves.

Client
Duol
Sector
Immigration services
Platform
Next.js · Prisma · PostgreSQL
Period
2026 — present
Status
In production
duol · tablero
Procedures dashboard. Design mockup with fictitious people and companies.

Procedures dashboard. Design mockup with fictitious people and companies.

The challenge

Where we started

Immigration procedures for expatriates from dozens of Korean and Chinese companies were tracked in three Excel files that didn't match each other, with deadlines calculated by hand.

Before
With Duol
Three Excel files
A strict relational model
Deadlines calculated by hand
A deadline catalog with legal basis
To-dos kept in memory
Automatically generated tasks
Expirations without notice
Daily expiration review
What was migrated

Six years of operations, in a single model

The migration was first run as a dry run, and every figure was checked with a count before going to production.

What was migrated
ProceduresMore than 3,900
PeopleMore than 1,900
CompaniesMore than 60
The solution

What we built

01

A single state machine

For about 30 procedure types, with 16 guards and a distinction between retry and reopening.

02

Case file, procedure, task and appointment

Each procedure generates its tasks; appointments are rescheduled with a reason.

03

Legal deadlines

Deadlines and non-working days in catalogs versioned by year. No deadline lives in the code.

04

Validity traffic lights

With shape and label, not just color.

05

Billing

Charges, invoices and line items, with rate groups.

06

Reports and tutorials

On revenue, work, clients and process, with guides per role.

07

Hangul and hanzi

The interface shows names in their original script.

08

Reproducible migration

Scripts that run first as a dry run; every figure is checked with a count.

The journey
  1. To schedule
  2. To submit
  3. Registered
  4. Completed
More than 3,900
historical procedures migrated
More than 1,900
people
More than 60
client companies
More than 1,300
test cases
How it's built

SDD and harness engineering

Every feature starts as a specification signed off by the client, becomes tests before any code is written, and is implemented by AI agents inside that harness. An independent verifier and a person approve every delivery.

Application
Next.js · React · TypeScript
Data
Prisma · PostgreSQL
Files
AWS S3
Operations
Vercel
“The model starts from the client's vocabulary: 34 business rules and 17 use cases defined before any code was written.”
Next project
Reventours
View project