The problem
Northfork Motor Co. is a fictional mid-size motorcycle manufacturer: about bikes a year through independent dealers in four regions. Its strategy is to keep dealer stock lean and ship only what dealers sell.
Running lean changes where the risk sits. When there's little slack, the cost moves from discounting to the wrong bike in the wrong place. One model sells out in the South while another ages on floors in Europe. Today three teams fix each miss by phone and spreadsheet: dealer operations, the assembly plant's planners and the regional commercial team.
What's at stake
That's of the year's motorcycle contribution. Each figure is a range, not a point estimate, and each assumption behind it is listed with how I'd validate it.
Why this problem first
| Opportunity | Value a planning loop can move | Cadence | Time to first value |
|---|---|---|---|
| Finished-bike flow across the network (chosen) | Daily / weekly | Weeks: the levers already exist | |
| Parts & accessories service levels | Daily | Months: a separate network to model | |
| Tariff-driven re-sourcing | Quarterly | A year or more to qualify suppliers |
Tariffs are the bigger number before you ask what's movable. Re-sourcing is a capital and supplier decision, and a daily loop can touch only a sliver of it this year. Parts are real but smaller, and they make a good second build on the same platform.
How it works
The system runs one loop: connect → detect → size → generate options → route by policy → act → learn. It doesn't replace the manufacturer's forecast or its systems of record. It reads from them, decides, and writes back through them.
The lever ladder. Each lever lives at one tier of the network. The system tries the cheapest, fastest and most reversible one first, and climbs only when a rung can't close the gap:
- Reassign bikes already in transit
- Transfer between dealers (with dealer consent)
- Release units held back in the launch pool
- Change the assembly plant's build mix
- Commercial levers: credits, financing
- Price, which is sized but never proposed or moved without a person
Whatever one rung can't recover becomes the next rung's job. That hand-off is what makes three separate workflows one system.
Policy decides who acts. Each lever-and-tier pair is a decision class with an owner, an autonomy mode (auto, auto + notify, recommend + approve, or human only), limits, and an undo window. A new class starts conservative and moves up only on evidence. In the prototype, of last week's decisions ran automatically under policy. The rest went to the person who owns them.
Every decision is a prediction that gets graded. Outcomes are measured against holdouts where the lever is commercial. Repeated overrides become proposed policy changes, which a person accepts. In the demo, a financing offer that underdelivered in a test is why the system now ranks a parts credit above it.
One decision, end to end
- Detect: a launch model is selling ahead of plan across the Southern region, confirmed by three independent signals (retail, credit applications, configurator builds).
- Size: lost sales as a P10 / P50 / P90 range over eight weeks, with a decide-by date.
- Climb the ladder: in-transit reassignment runs automatically, dealer transfers wait for dealer consent, and a pool release goes to the allocation manager with the reasoning and an undo.
- Hand off: the bikes the fast rungs can't recover open a build-mix decision for the plant, within the kit and engine constraints upstream.
- Act: approval writes allocations, tenders loads and notifies dealers, in their own terms.
What I'd validate first
Dealer-level sales access, contribution by model, the real cost of a carried-over bike, supplier kit caps, and offer elasticities. Then I'd run the system in shadow mode on one region for one model-year transition, and grade its recommendations against what people actually did, before granting any autonomy.
How I built it
I built this with Claude Code, one screen at a time, from a written outline and a rules file. AI did the legwork: research synthesis, pressure-testing my point of view, and writing the code. I made the product calls and checked the numbers.
- Definition before build. Personas, jobs to be done, information architecture, and an inventory where every element on screen needs a persona, a job and a reason. If I couldn't explain it, it didn't ship.
- No typed-in numbers. Every figure comes from one assumptions file through a generator. A checker fails the build on any hard-coded figure, any range that doesn't tie out, or any assumption without a source and a way to validate it.
- Evidence tags. Press E in the prototype and every number shows whether it's calibrated, assumed or synthetic.
- Plain HTML and JavaScript. No framework or external libraries, so it runs anywhere, including offline.
About the data: Northfork Motor Co. is fictional. Its scale and unit economics were calibrated from a real mid-size manufacturer's public filings, then rescaled and altered so no company is identifiable. Dealer-, model- and week-level data is synthetic.