Zohaib Hassan Khan
  • All work
  • Contact

Case study · Product · 2026

Verified Construction

A proof layer for construction progress, in two live editions: one for home builders, crews and homeowners, and one for industrial projects. Progress stays “reported” until a named person checks it against evidence.

3,500+database tests across the two editions, plus 109 end-to-end test files

Role
Founder: product and engineering
Status
Both live; industrial is a public demo.
Stack
Next.js, Supabase, Postgres RLS, Expo, TypeScript, Playwright
Verified Construction review queue: a siding report with before and after photos and automatic checksVerified Construction homeowner portal: 44% complete and verified, phase 4 of 9
Real screens from seeded demo data: the builder's review queue and the homeowner portal.Drag to rotate ⟲

The problem

On a home build, the homeowner pays the builder in stages against progress they can't check. A crew says the siding is done; the builder passes that on; the homeowner pays. Reported work and verified work look exactly the same on paper.

Verified Construction is a proof layer. Its one job is to make reported progress and verified progress visibly different, and to show the people who pay only the verified kind. I built it twice, for two very different worlds, to test whether the idea holds: a residential edition and an industrial one.

The residential edition

A field app for crews. Workers clock in on site, report quantities of finished work and attach before and after photos. It runs in English, French and Spanish.

A web app for builders. Supervisors work through a review queue. Each report arrives with automatic checks: was the worker clocked in inside the site's circle, are there before and after photos, does the amount fit what is left in the plan, and does the phone's clock match the server's. They approve it, ask for more information or send it back.

A homeowner portal. It shows a single figure, such as “44% complete and verified”, with the phase, upcoming visits and decisions that need the homeowner. Every workday shows what was checked, with photos, and each invoice arrives with the verified work behind it. It never shows unreviewed reports.

How it works

The field app is offline-first, because job sites often have no signal. Tasks and plans are cached in SQLite on the phone. Every write goes into an outbox first, and a sync engine drains it and pulls fresh data when the connection returns.

Access control lives in the database. Postgres row-level security decides what each role can read, so a homeowner's query cannot return a report that hasn't been approved, whatever the app code does. Those rules have their own database tests.

The code is one monorepo: the Next.js web app, the Expo mobile app, a shared package of validation schemas and pure calculations with unit tests, and generated database types.

The industrial edition

On an industrial project, such as a gas plant, the owner, the main contractor, its subcontractors and a third-party inspector all report against the same plant, each with their own spreadsheet. The schedule says one thing and the pay application claims another.

This edition puts all of them on one record. It imports a Primavera P6 schedule, shows what changed this week, and sends checked progress and actual dates back as an update file, with each figure linked to its proof. P6 stays the master schedule.

It is open as a public demo: a visitor picks any of 16 people across 6 companies on a gas-plant project with a 298-activity schedule. The demo has database-enforced limits on text, writes and uploads, and can be rebuilt from scratch with one script.

Schedule and cost control

I built the demo's schedule in Primavera P6: about 300 activities and milestones under a 37-element work breakdown structure, linked by some 500 logic ties, with a baseline and a weekly progress update.

On the schedule side, the platform shows each activity against its baseline with its total float, flags changes to the critical path, and reports schedule health, float trends, look-ahead plans and the top risks.

On the cost side, dashboards compare budget, actual cost and forecast by cost code, and report variance, earned value, cost and schedule performance, cash flow and estimate at completion. Earned value is calculated from checked progress, not reported progress.

Change orders are tracked, and contractor pay applications are certified line by line against the contract's schedule of values.

This week's P6 update: 13 activities that change, each with its checked percentage and a link to the proof
This week's P6 update. Every figure links to its proof.
Work packages table with checked and reported progress shown side by side for each package
Work packages: checked progress in solid green, reported progress hatched beside it.

Who is allowed to say so

In industrial work the question isn't only whether the work is done. It is who is allowed to say so. A signature only counts if that person has the authority, on the right side of the right contract, under their money limit.

So the database models authority, not job titles. Every signature goes through a database function that checks the signer's authority and limit, and no screen can bypass it. Hold points stop a claim until the owner releases them, and pay applications are certified line by line.

Testing and scale

Across the two editions there are 267 database migrations, more than 3,500 database tests and 109 end-to-end test files.

The residential edition accounts for 216 migrations, 1,965 database tests and 71 end-to-end test files. The industrial edition accounts for 51 migrations, 1,540 database tests and 38 end-to-end test files.

Every product and architecture decision is written down with its reason: the log holds 343 of them.

Where it's going

Builders pay for the residential edition; homeowners and crews use it free. Over time the verified record is worth something to other people too: lenders releasing draws, warranty providers, and the next buyer of the house.

On industrial projects Primavera P6 stays the master schedule. Verified Construction is the proof layer underneath it.

Try the system

DWG S-01 · Evidence flow

L1
Site
L2
Device
L3
Platform
L4
People
Crews report work from site, builders review it, and only verified work reaches the homeowner.

Interactive · switch scenarios, hover a part, or break one

Open the residential app ↗Industrial demo ↗Ask me about this project
Next case studyFlexRides →