2026 Nissan Frontier SV
N44712,014 miles. Trade-in. Found on a dealer's board after 41 days in recon.
- Route target
- 2 days
- What happened
- 41 days
A real answer from the AI router, in about a quarter of a second.
Draft spec, October 26, 2026. Updated October 27.
Today every used car in Redline OS starts at the same stage and follows the same steps. A nearly new truck waits behind a ten-year-old trade-in. Intelligent routing looks at each car when it arrives, puts it on one of the store's routes, and holds it to that route's clock.
2,014 miles. Trade-in. Found on a dealer's board after 41 days in recon.
A real answer from the AI router, in about a quarter of a second.
Routes live on the Stage pipeline tab in Settings, under the stages a store already has. A route is a named path through those stages, with its own clock. These four are a starting set. A store can rename them, add more, or drop some.
Late model, low miles. Safety check, detail, photos, front line.
Lease return, auction car with a condition report, or certified-eligible. No full inspection.
Older or higher miles. Inspection, estimate, approval, repairs, detail, photos.
Too old, too many miles, or priced too low to fix. Skip recon, get it ready for auction.
flowchart LR
A([Car arrives]) --> R{Which route?}
R -->|"3 yrs or newer,
low miles"| F[Fast lane
2 days]
R -->|"lease return or
auction with report"| S[Safety only
3 days]
R -->|"older or
higher miles"| X[Full recon
6 days]
R -->|"very old, very high
miles, or under $6k"| W[Wholesale
1 day]
R -.->|"not sure"| P[[Manager picks]]
P -.-> F & S & X & W
F --> F1[Safety check] --> F2[Detail] --> F3[Photos] --> FL([Front line ready])
S --> S1[Safety check] --> S2[Detail] --> S3[Photos] --> FL
X --> X1[Inspection] --> X2[Estimate and approval] --> X3[Repairs] --> X4[Detail] --> X5[Photos] --> FL
W --> W1[Auction prep] --> AU([Sent to auction])
classDef fast fill:#10b98122,stroke:#10b981,color:inherit
classDef safety fill:#0e8a9922,stroke:#0e8a99,color:inherit
classDef full fill:#f59e0b22,stroke:#f59e0b,color:inherit
classDef whole fill:#7c3aed22,stroke:#7c3aed,color:inherit
classDef person fill:transparent,stroke:#5c6670,stroke-dasharray:4 3,color:inherit
class F,F1,F2,F3 fast
class S,S1,S2,S3 safety
class X,X1,X2,X3,X4,X5 full
class W,W1 whole
class P person
A store can add its own stages and run more than one workflow. How that looks in the app, view by view, is on the .
The route builder reads the store's stages. When a manager's words don't fit them, it suggests a rename or a new stage, in the same confirm card as the routes. "Wholesale cars need somewhere to sit while they wait for the sale. I'd add a stage called Auction prep." The store picks the name. Approve creates both.
There are two ways. Routing works the same either way. The assistants are a faster, friendlier way to get there, not a requirement.
Anyone with settings access.
On the Stage pipeline tab, under the stages. Pick the routes, the steps on each one, each route's target days, and the plain rules for which cars go where. Start from the four routes above and change what doesn't fit. Add a stage there too, if the routes need one.
The dealer on their own, or a CS rep with the dealer during onboarding.
Describe how the store handles its cars in plain words. The assistant asks the follow-up questions, draws the map, and checks it against the store's own cars before anything goes live.
One builds the routes. The other checks them and asks for approval. They are separate so the one checking the work isn't the one that did it.
Plain rules settle most cars. The AI router is an option the dealer can turn on for the rest. A manager only sees what neither can settle.
The hard facts the store set up. New cars go to the new-car steps. Anything under $6,000 goes to Wholesale. If a rule settles it, that's the end of it.
For cars the rules don't settle, the AI reads the car's details and the store's route descriptions and picks the best fit. It also says how sure it is, and whether the car's notes mention something a manager should see first, like a warning light.
If the AI isn't sure, or it's turned off, the car lands in a short "Pick a route" list with the top suggestions. Every pick and every change a manager makes is saved, so the routes get sharper over time.
Very little. The router is Jev, a small, fast AI model from TypeSafe made for exactly this kind of pick-one-from-a-list question. One car is one short question.
Based on about 640 tokens (small chunks of text) per car, at $0.04 per million tokens. Even at ten times that price, a store's month costs less than a dime. If the router is ever down, the car goes to the store's default route, the same as today.
Eight sample cars, the four routes above, real answers from the AI router today. The car is routed on its own when the AI is at least 60% sure and nothing in the notes needs a manager. Otherwise it goes to a person.
| Car | Came from | Route | How sure | Result |
|---|
One thing to fix. The Accord went to a manager just for worn tires and a small dent. That's normal recon work. The "does a manager need to see this?" question needs a tighter list of what counts: warning lights, frame or flood damage, title problems, open recalls. The Jeep's check-engine light was a correct flag.
CDK is where most stores' cars come from. We checked a sample of today's CDK file: 1,052 used cars across 16 stores.
| Fact | Does CDK send it? | Do we keep it today? | Notes |
|---|---|---|---|
| Year, make, model, trim | Yes | Yes | |
| Miles | Yes | Yes | |
| New or used | Yes | Yes | |
| Date it came into stock | Yes | Yes | |
| Asking price | Yes, on 93% of used cars | No | It's in the file. We just don't save it yet. A small change. |
| How the store got it (trade-in, lease return, auction) | No | No | A one-tap pick when the car arrives. Some descriptions mention it, but not reliably. |
| Retail or wholesale | Not really | Set by hand | CDK marks almost every car "retail", so it doesn't help. |
| What the store paid | No | No | Not needed to start. |
| Market price | No | No | Later, from vAuto or similar. Lets Fast lane mean "most profit", not just "newest". |
| Vehicle history (CARFAX) | No | No | Later. |
Bottom line: routing can start with year, miles and asking price. CDK sends all three today. How the store got the car is the one gap that matters, and a quick pick on arrival covers it.
What a store doesn't have on day one: the cars that already sold, and how long past cars took. A feed only carries the cars on the lot now, and some feeds don't send the stock date at all. So the builder and the checker work from the cars on the lot today, use the stock date where the feed sends it, and never quote a time to front line until the store has its own history.
A store can add its own stages, run more than one workflow, and see each one clearly. These are the views that change, and how each might work.
Workflow and route mean the same thing. Overview calls them routes. This tab is the part that comes first: workflows set up by hand, and a manager picks a car's workflow. The rules, the AI router and the assistants come later. They make that pick so a manager doesn't have to.
Every mock on this tab is the same made-up store: 16 used cars, three workflows, and three stages it added itself (Safety check, Auction prep, Sent to auction).
Today: one list of stages for used cars and one for new. A store can rename, reorder or hide a stage. It can't add one.
Used by Full reconFast laneWholesale
Flow is a step on the way. Hold is a side spot a car waits in. Terminal is the end.
Today: one workflow per side. Every used car goes through the same stages on the same clock.
In TransitAwaiting InspectionIn ReconNeeds DetailIn DetailPhotos NeededFrontline Ready
In TransitSafety checkNeeds DetailIn DetailPhotos NeededFrontline Ready
In TransitAuction prepSent to auction
Recon Hold and Pulled Back are on every workflow. The order comes from the stage list.
Today: one board for used cars and one for new. Every car sits in the same columns and is judged by the same clock.
Try it. Pick a workflow to see its board. Pick All to see every car at once.
The switch above. The columns are that workflow's stages, and every card is judged by that workflow's clock. Someone who works one stage, like detail, picks All.
Workflows down the side, stages across the top, and how many cars sit in each spot. A manager sees the whole lot at a glance and clicks a number to see those cars. Not a place to drag cars. Could sit above the board later.
Today's board with a workflow tag on each card. Good for the detail team. It gets wide as a store adds stages, so it works best as one of the choices, not the only view.
Today: the car's page shows the stage it's in and a list of everything that happened.
Not on Fast lane: Awaiting Inspection, In Recon.
2,014 miles, clean trade.
Today: there is one workflow, so there is nothing to move between.
2025 Toyota RAV4 XLE. On Fast lane, in Safety check.
In TransitAwaiting InspectionIn ReconNeeds DetailIn DetailPhotos NeededFrontline Ready
The first stage on Full recon it hasn't been through. Pick another if it's further along.
Days keep counting from when it arrived. Its target becomes 6 days.
Each step ships on its own and is useful before the next one lands.
"Add a stage" on the Stage pipeline tab: a name, a kind, a colour and a place in the order. The fixed stage lists in domain.mjs and vehicle-pipeline.ts read the store's rows instead, so the board, the allowed moves, the assistant's move tool and the notifications all follow. Useful on its own, before any route exists.
Route tables and vehicles.route_id, on the same tab under the stages. Each workflow is a list of the store's stages with target days. Every store gets one default workflow, which is exactly today, so nothing changes until a store adds another. A manager can move a car to another workflow, and the move is saved.
The board takes a workflow and shows only its stages as columns, with a switcher at the top. The car page draws the car's path through its workflow from its timeline: done, now, still to come, and days in each.
Save CDK's Advertised Price as list price, and add a "how we got it" pick on arrival. Hard rules put arriving cars on a workflow, with a "Pick a route" list for the rest. The board colours and sorts by each car's own route target. This alone fixes the 41-day Frontier.
The Jev call, the confidence gate and the decisions log. Behind a per-store switch, off by default.
Route builder and route checker, the map drawn in the chat, a preview against the cars on the lot today, stage suggestions, approve with a confirm card.
The builder suggests better route descriptions from manager changes. Add market price from vAuto when a store has it.
One request per car to TypeSafe's jev-latest. A Choice question picks the route; its options are the route descriptions written during setup. A Noul question asks whether the notes mention something a manager must see. Code works out the numbers first (age in years, miles per year) because Jev judges text and doesn't do arithmetic.
Jev returns the route, the odds for every route, and a calibrated confidence we can put a threshold on. TypeSafe calls this confidence-gated routing. A general chat model would need a prompt, output parsing and its own guess at certainty.
Because the route descriptions are plain sentences, a dealer changes routing by changing words, not code.
POST https://api.typesafe.ai/v1/systemone
{
"model": "jev-latest",
"state": { "vehicle": { "year": 2026, "make": "Nissan", "model": "Frontier SV",
"miles": 2014, "list_price": 36995, "source": "dealer trade-in",
"age_years": 0, "miles_per_year": 2014, "notes": "Clean, one owner." } },
"questions": {
"route": { "type": "choice",
"instructions": "Which recon route should this arriving vehicle take?",
"criteria": { "fast_lane": "Late-model retail car ...", "safety_only": "...",
"full_recon": "...", "wholesale": "..." } },
"needs_person": { "type": "noul",
"instructions": "Do the notes mention a problem a manager must see first?" }
}
}
Gate: auto-route when confidence is 0.6 or more and the note flag is under 0.7. About 250 ms and about 640 input tokens per car.
| Car | Miles | Source | Route | Odds | Confidence | Note flag | Result |
|---|
Both are definitions in a new app/routing/ domain on the shared Agent SDK harness (ADR-025), the same way the feeds agent lives in app/feeds/agent/. Every write is a tool with a confirm card. Model: claude-sonnet-5-5, like the feeds agent. Mermaid renders in the browser.
read_store_setupread | Stages, recon steps, current playbook. |
read_inventory_mixread | The cars on the lot today by age, miles and price, with the stock date where the feed sends it. No history on day one. |
suggest_stageswrite | A rename or a new stage when the store's words fit none. Goes in the same confirm card as the routes. |
draft_routeswrite | Saves a draft: routes, steps, targets, descriptions, rules, and the Mermaid text. |
preview_routingread | Runs the cars on the lot today through the draft. |
find_gapsread | Cars that fit no route or two. Steps a route skips that the state requires. |
request_changeswrite | Sends edits back to the builder as a new draft. |
approve_routeswrite | Makes the draft live, and creates any stage it suggested. Confirm card first. |
Approving applies to new arrivals only. Re-routing cars already in recon would strip the step links they have, the same trap that kept the old apply_playbook tool out.
recon_routes: per store. Name, colour, target days, entry stage, the description Jev reads, hard rules (JSON), sort order, which one is the default.recon_route_steps: which step templates each route uses, with an optional per-route target.route_drafts: what the builder writes. Routes as JSON, the Mermaid text, status (draft, approved, replaced), the conversation it came from, who approved it.vehicle_route_decisions: one row per routing call. Method (rule, Jev, person, override), odds, confidence, model version, who decided.vehicles.route_id, list_price_cents, acquisition_source.list_price as a feed mapping target in app/feeds/config-schema.ts, mapped from CDK's Advertised Price. Today that column has no target and is dropped.dealership_pipeline_stages already holds one row per stage per store, with a slug, label, kind, colour and order. Today only the seeded slugs exist. A store-made row gets a slug from its name, and a new pipeline-add action next to rename, reorder and hide in app/dealer/routes.ts.allowedStatusesFor and validateStatusForPipeline in app/shared/domain.mjs, and the default list in vehicle-pipeline.ts, read the store's active rows. The board columns, the audit-walk stage select, the assistant's set_vehicle_status enum and the stage work lists all go through those two, so they follow.app/feeds/apply.ts with the shared entry stage. Routing runs after the insert, beside the stage-rules step, in its own transaction.upsertInventoryAuditVehicle in app/setup/cdk.ts.bootstrap-recon-steps.ts picks templates by the car's route, falling back to today's checklist profile.vehicle_events under a "Routing" actor.