Yard Dwell / Aging Report
Build an internal tool that computes dwell time per trailer, buckets it by age, flags threshold breaches by trailer type, and routes an approved action list to your yard team — so trailers stop sitting unnoticed and tying up assets.
A login-protected dashboard that calculates how long each trailer has sat in your yard, sorts trailers into aging buckets, flags ones past your thresholds, and lets a manager review and approve an expedite / return / escalate action list before any alert goes out.
Before you start
- A free Supabase account
- A free Vercel account
- A free Resend account
- A spreadsheet or export of your trailer in-yard records (CSV is fine)
The problem this kills
Trailers sneak into the yard and then quietly disappear from everyone's attention. One has been parked for nine days against a three-day rule. Another is a detention clock ticking up dollars by the hour. A third is out of service and shouldn't even be in the count. Nobody notices until a carrier calls, a load is late, or finance asks why you're paying demurrage on assets that have been sitting in your own lot.
The information exists — it's in a gate log, a yard sheet, a tablet app, somebody's spreadsheet. But "how long has each trailer actually been here, and which ones are over the line?" is a question nobody has time to recompute by hand every morning. So aged trailers tie up real assets, real dock space, and real money, completely unseen.
What you'll build
A small, private web app for your yard team that turns your in-yard records into a live dwell-and-aging report. It calculates how many hours or days each trailer has been on the lot, sorts every trailer into aging buckets (for example fresh, watch, aged, critical), and flags anything past the dwell threshold you set for that trailer type. Out-of-service units are excluded so they don't pollute the numbers.
Each morning the manager opens the report, sees exactly which trailers are over the line, and assigns an action — expedite, return to carrier, or escalate. Nothing is sent and nothing is committed until the manager reviews and approves that action list. Then, and only then, the tool fires the threshold alerts.
What's inside the Implementation Plan
The plan is a complete, paste-and-go runbook for an AI coding agent — you don't write any code yourself.
It opens by interviewing you about your business — your gate process, the systems and spreadsheets your yard data lives in, your real trailer-number and trailer-type conventions, your typical and peak yard counts, and your actual dwell rules and exceptions. It reads a short tailored spec back to you and waits for your thumbs-up, so the tool fits your yard, not a generic template.
From there it walks the agent step by step through: setting up the login and database, importing your trailer records, computing dwell and assigning aging buckets, applying per-type thresholds and excluding out-of-service units, building the manager review-and-approve screen, and wiring up the email threshold alerts. Every step ends with a ready-to-paste prompt. It closes with a "how to know it works" checklist and a CSV import/export fallback so you can run the whole thing today even with no live system integration.
The governance it includes (this is the point)
This isn't a throwaway script — it's built like a real internal tool from the first prompt:
- Login so only your team can open the report.
- Row-level security so each organization only ever sees its own yard data.
- A complete audit trail — who computed the report, who approved which actions, and exactly when.
- A hard human-in-the-loop approval gate — the tool drafts the aged-trailer action list, the manager reviews and approves it, and only then are alerts sent. The AI never acts on its own.
- Duplicate guards keyed on the trailer number so the same trailer can't be double-counted or double-alerted.
Who it's for
Yard coordinators and transportation managers who are tired of trailers aging out of sight, and who want a real, governed tool — with login, approvals, and an audit trail — without hiring a developer or waiting on IT.
You've got this. Open the plan, paste the first prompt, and let the agent interview you.