Inspiration

Most business have unorganized data, so we wanted a cheap way to organize it. CUSMA lets roughly 94% of Canadian exports cross the US border duty-free — yet last year only about 38% of US imports from Canada came in under the deal. The wall isn't the product; it's the paperwork (rules-of-origin work costs an estimated 2–5% of trade value). Meanwhile the EU's Digital Product Passport will demand the same proof in machine-readable form. Avonbrook — a fictional 45-person shop in Stratford, Ontario — is the stand-in for every small manufacturer sitting on 193 messy files: invoices, mill certs, BOMs, French supplier docs, EDI, emails, scans and photos. They either drown in the pile or skip the duty-free claim and pay duty they don't owe. We built the tool that makes the pile usable.

What it does

One pass through all 193 files (PDFs, Excel, Word, EDI, emails, and even scanned documents) with transparent reasoning behind every decision — flagging missing proofs, duplicates, privacy risks, and conflicting HS codes instead of silently making assumptions. It then answers the big question — can AMB-220 ship duty-free under CUSMA? — with an honest "NOT YET," generates a CUSMA origin tracker and EU Digital Product Passport, and delivers a fully hosted live demo that processes the entire 18.9 MB data room in roughly 25 seconds.

How we built it

A deterministic Python core: stdlib regex classifiers, JSON storage where every value carries provenance (source file, page, confidence, verified flag), open-source parsers (pdfplumber, openpyxl, python-docx), and on-device OCR via macOS Vision — no paid API. Storage is deliberately boring: records are JSON, the company's documents stay in the company's folder or vault, no database. The web desk is one Flask app running both locally and as a Vercel serverless Python function, fronted by vanilla JS/CSS with vendored JSZip (browser-side unzip is what makes whole-folder ingest possible from a phone) and QRCode.js; uploads chunk at ~2.5 MB under the serverless request cap. The critical path has zero LLMs and zero API keys — every value is re-runnable and auditable. An optional tier (Spur GLM 5.3, CLI-only) drafts narrative summaries; it never touches values or provenance.

Challenges we ran into

Addressing the noise in the data. There were files that were not relevant to CUSMA, and we needed a way to different from them as well as categorize the data. We also struggled with connecting the backend to the front-end as we switched out front-end last second. Next time we will develop the plan for both the front-end and back-end together to not have merging difficulties.

Accomplishments that we're proud of

Privacy, everything is saved locally, one run is all it takes and the results will stay in the session unless you plan to download it. If you close the session the data is gone, this keeps both the business and application safe from legal and everybody's data private.

What we learned

We learned to trust the architecture, when building a pipeline, we need to make sure when designing it we take all important things into consideration

What's next for Origin desk

An MCP server so a buyer's AI agent can query the passport directly — the same evidence, machine-consumable on both sides of the border. Payload-CMS-friendly collection storage. A full French extraction pass (already flagged and queued by the desk, never dropped). And a standards crosswalk layer: one evidence base feeding CUSMA, the Digital Product Passport, and ISO 9001 — without anyone re-keying a single document.

Built With

Share this project:

Updates

Submission history