← Cal Lennon

Case study · Prototype

Autonomous supply-chain planning

A planning system that senses a problem, works out what to do across every tier of the supply chain, acts through the systems people already use, and earns more autonomy only when its track record says it should.

Designed and built by Cal Lennon · Fictional company, illustrative data

Open the prototypeBest on a laptop · about 10 minutes to click through

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

a year, from two problems combined
retail lost to wrong-place inventory ( of units)
bikes carried past their model year ( of units)

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

OpportunityValue a planning loop can moveCadenceTime to first value
Finished-bike flow across the network (chosen)Daily / weeklyWeeks: the levers already exist
Parts & accessories service levelsDailyMonths: a separate network to model
Tariff-driven re-sourcingQuarterlyA 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:

  1. Reassign bikes already in transit
  2. Transfer between dealers (with dealer consent)
  3. Release units held back in the launch pool
  4. Change the assembly plant's build mix
  5. Commercial levers: credits, financing
  6. 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

One decision template runs everything: Signal → Impact → Options by rung → Recommendation and why → Approval and undo → Actions → Outcome tracking. Only the classes and the policy change from one customer to the next.

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.

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.

Open the prototype