Inspiration
We're from Uzbekistan, where trucks don't lose days on the road. They lose them at the border. Up to half of Middle-Corridor transit time is spent at border crossings, and hundreds of trucks have been stranded at Yallama and Kaplanbek more than once.
The surprise: since 2025, Uzbekistan's automated customs clears a clean filing in about an hour. Officers aren't the bottleneck anymore. Paperwork quality is. A blank product-code box on the CMR, or a 5% weight mismatch with the packing list, turns one hour into days of waiting fees at $150–250 per truck per day.
The knowledge that prevents those rejections ("Yallama rejects CMRs without a 10-digit code", "this broker always forgets the phyto certificate") lives in senior brokers' heads and leaves when they do. That's a memory problem, which made it a perfect fit for Backboard.
What it does
Upload a shipment's CMR, invoice and packing list (PDF or photo), or pick one of three sample shipments. Four AI specialists then work the case live, on screen:
- Inspector reads the documents and pulls out the key facts.
- Auditor runs auditable checks: 10-digit customs code validation, a dual-use screen against the EU/US/UK/JP Common High Priority List, cross-document quantity, weight and value checks, and the waiting-fee math. It also uses lessons recalled from the fleet's shared memory.
- Gatekeeper uses Backboard System One to give calibrated probabilities: the hold risk, whether this is a repeat mistake, and the route (file now, fix then file, escalate to a broker, or hold).
- Fixer writes the action plan and ready-to-send messages to the shipper in Russian and Uzbek, then saves new lessons to the shared memory.
Run the first sample, then the second, and you can watch the fleet learn: a lesson saved in run 1 is recalled in run 2 and changes the decision.
The waiting-fee exposure it shows is
$$E = \max(0,\; d - f)\cdot n \cdot r$$
where $d$ is the expected delay in days, $f$ the free days, $n$ the number of trucks and $r$ the daily rate.
How we built it
Stack: Python, FastAPI, backboard-sdk, SQLite, a vanilla-JS live dashboard (server-sent events), PyMuPDF.
Backboard is the backbone. Remove it and nothing works:
- One thread per shipment. All four agents write their turns into the same Backboard thread. It is the case file.
- Several models on one thread. Each agent uses a different model on the same thread. A live meter shows the context budget, and the case is compacted before it is handed to the small-context gate model.
- System One gating. Two
noulquestions, achoiceroute question and ascoreseverity question decide whether a shipment can be filed, rather than an LLM's prose. - Shared memory. A "Corridor Brain" assistant with a customs-specific fact-extraction prompt holds the fleet's memory. Agents search it before reasoning and add to it afterwards. A deduplication step stops the memory filling up with repeats.
- Document RAG. The PDFs and photos are uploaded to the thread and indexed.
- Tool calling and streaming. Tool schemas are registered on the Auditor, and the tokens, reasoning and handoffs stream live.
A friendly landing page and a 6-step guided tour explain everything to first-time users.
Challenges we faced
- Credits. Our free Backboard credit covered memory and RAG, but not LLM chat or System One. Instead of faking it, we built a 3-tier engine:
- Native: Backboard runs the models.
- Bridge: Backboard still owns the threads, memory and documents, while the text comes from our own Gemini and Groq keys.
- Replay: a recorded live run plays back.
Every panel is labeled with its true source, and adding credits switches the app to native with no code changes.
- Unstable providers. Gemini sometimes failed in the middle of a stream. We added stream-integrity checks, output validation, time budgets per model and a fallback across providers.
- Memory pollution. Early runs saved paraphrased duplicates of old lessons. We fixed this with a semantic deduplication step.
What we learned
Memory is a product, not a feature. CARAVAN gets more valuable with every shipment, and Backboard's shared memory and stateful threads turned that into a weekend build instead of a vector-database project.
What's next
A Telegram bot for drivers (photo of the CMR → decision in 20 seconds), a phone-first interface in Russian and Uzbek, separate memory per fleet, and a pilot with Tashkent freight forwarders.