01Cannabis retail
One platform for a regulated retailer whose drivers carry the stock
Valere client · licensed cannabis retail · United States
- Problem
- A licensed cannabis retailer ran on three platforms and wanted one. Its drivers sell from stock in their vehicles, and every unit has to match the state's Metrc ledger.
- My call
- Offer any driver who is truly near the customer, within three limits, not only the driver assigned to that area. Check everything again when the order is placed.
- What I produced
- Requirements for both sides of the platform, low-fi flows, the delivery rules, a reissued backlog with every change traced, and a scope-change check run with Claude Code.
- Result
- The client praised the discovery and liked the delivery design. Development had started when my work on it ended in July 2026.
Problem
A licensed cannabis retailer ran its shops and its delivery on three business platforms and wanted one product: the register, inventory, compliance, dispatch, a driver app and online ordering. Delivery worked on what I came to call the ice-cream-truck model. Vehicles leave in the morning already stocked and sell from that stock all day, so what a customer can order depends on where they are, which driver is near and what that driver still has on board.
Around that sits the law. Every unit is tracked in Metrc, the state’s track-and-trace system, from the distributor’s manifest to the sale, and the platform’s numbers have to agree with it at every step.
I was the product manager at Valere, working with the client’s team and our technical PM. The client kept final approval of every business rule.
The system
One product had to cover both sides of the counter, and each part reads or writes stock that may be in one of three places. The delivery rules, my part of the design, live where the catalog, the checkout and dispatch meet.
Two sides, three places stock can sit, four outside systems. Pick a part to read what it does, or follow one thing through.
Customer side
Staff side
Where stock sits
One unit of stock
- Metrc. A manifest for incoming product arrives through the state system.
- Inventory. It is matched to the catalog, with name-similarity suggestions when a distributor's spelling differs.
- Vault. The unit waits in back stock.
- Driver kit. It is loaded into a driver's kit, signed for, and at departure the kit is locked as the Metrc delivery ledger.
- Catalog. Customers near that driver can now see it, unless it is the last one.
- Checkout. An order claims it, once the gates pass a second time.
- Driver app. The driver scans it while packing and records proof of delivery.
- Metrc. The sale reaches the state system from a queue, and the ledger is closed at the end of the shift.
- Inventory. A blind count later compares the shelf with the ledger, and an approved difference is corrected in Metrc.
One express order
- Entry gate. The customer gives an address, and it falls in an area served by roaming drivers.
- Catalog. The menu is built from the kits of the drivers who pass all three gates.
- Checkout. At Place order the gates run again and the register hold is checked.
- Dispatch. The order goes to the driver, and the dispatcher sees it on the live map.
- Driver app. The driver packs from the kit with a scan per item, delivers and takes payment.
- Order tracking. The customer follows the driver and gets a message at each stage.
One sale at the register
- Register. A budtender scans the items. The check against the ledger must pass before checkout opens.
- Compliance. ID, purchase limits and tax are applied for this customer.
- Payment. Cash or debit is taken at the terminal.
- Metrc. The receipt joins a queue and is pushed to the state system, so a network drop never blocks the sale.
- Entry gate
- Before the catalog loads, the customer confirms their age, chooses pickup or delivery and gives an address. The address decides which stock they will see.
- Catalogmy design
- Pickup and store-served delivery read the shop's own ledger. Express delivery reads only the kits of drivers inside the customer's area, after three gates, and never shows the last unit.
- Checkoutmy design
- Pressing Place order runs the gates again and checks that a register sale has not taken the units. A failed check has a designed path: a set message and a cart with the items flagged.
- Order tracking
- Order status, a live map of the driver, arrival time, rescheduling, chat and a notification at each stage.
- Register
- Scans items, applies discounts and takes cash or debit. A check against the ledger must pass before checkout opens, and a unit in a walk-in sale is held against online orders.
- Inventory
- Takes in state manifests and matches them to the catalog, moves stock between places, assigns kits to drivers, runs blind counts and handles quarantine and returns.
- Dispatchmy design
- Defines each area as store-served or roaming, with its tether, assigns orders and shows every driver on a map: green inside the tether, red outside it.
- Driver app
- The driver activates a kit, packs each express order with a scan per item, takes payment, records proof of delivery and reconciles the kit at the end of the shift.
- Compliance
- Age and ID checks, purchase limits by customer type with unit conversions, and tax applied in a fixed order with three exemption cases.
- Administration
- Custom roles with fine-grained permissions, the delivery gate settings, tax rates and promotions, and the reports managers read.
- Vault
- Back stock. When a kit is loaded, the driver signs for the change of location from the vault to the kit.
- Shop floor
- What the register sells, and what pickup and store-served delivery can order.
- Driver kit
- Stock riding in a vehicle. Its content is locked as a delivery ledger when the driver leaves, and nothing joins it in the field.
- Metrc
- Four operations in the requirements: read the active packages as a baseline, adjust a package after a count, create a package when one is split, and push sales receipts from a queue.
- Mapping API
- Drive time with live traffic, used for a route suggestion the dispatcher can override.
- Payment
- A card gateway online, and debit terminals at the register and with the driver.
- Email services
- One service for transactional messages and one for marketing.
Discovery
Discovery ran for about two months. I consolidated the requirements of the three platforms into one set, mapped the point-of-sale, inventory, compliance and delivery scope, and drew low-fidelity flows before taking anything to the client, design or engineering, to catch blockers and dependencies early. I had not worked in this domain before. What made it hard showed up at requirement level:
- Every unit answers to a state ledger. A sale may not push a Metrc quantity below zero, and stock can become unsellable while it sits in a cart.
- Stock sits in three places. Vault, shop floor and vehicle, each a recorded location, across more than one shop.
- Two channels compete for one unit. A walk-in customer at the register and an online order can claim the same item in the same second.
- The driver moves. A driver who is near while the customer browses may be gone, or full, by checkout.
- Tax and limits are conditional. Tax is charged on tax in a fixed order, and what a customer may buy depends on who they are.
Key decision
- The call
- Offer the customer any driver who is truly near, within three limits, not only the driver assigned to their area.
- Alternatives
- Strict areas: a customer sees only the stock of the driver assigned to where they live.
- Why
- A customer just outside one area can have another driver two minutes away, and strict areas would hide that driver. Three limits keep the flexible version workable: how near the driver is, how far they may drift from their own area, and how many orders they already hold. The same limits run again when the order is placed, because the driver keeps moving while the customer shops.
What I specified
I designed the delivery logic over days of reasoning and research, then showed it to the client, who liked it, and to our technical PM, whose questions made me refine it. I wrote it as stories with acceptance criteria, error paths included, alongside the rest of the consolidated requirements.
The delivery rules
my designWritten as requirements with acceptance criteria. Every distance, time and cap is a setting the client can tune, and each gate can be switched off for testing.
Which stock can this address see?
- When
- A customer enters a delivery address
- If
- The address is in a store-served area
- Then
- The full menu, read from the shop's ledger
- Else
- In a roaming driver's area, the express menu from the kits of drivers inside it. In neither, pickup or another address.
Three gates before a driver's stock shows
- When
- The express menu is built
- If
- The driver is within the set minutes or miles of the customer
- And
- The driver has not drifted past the tether from their own area, or the customer is on the way back
- And
- The driver's order queue is under the cap
- Then
- That driver's stock is offered
- Else
- It stays hidden
Never show the last unit
- When
- A driver's kit is shown to customers
- Then
- The last unit of each product is held back
Two customers cannot both order a driver's last item.
Check again at the moment of ordering
- When
- The customer presses Place order
- If
- The tether, the cap and all three gates still pass
- And
- No register sale has taken the units
- Then
- The order is created
- Else
- It is blocked with a set message, and the cart shows the items flagged or removed
A wrong item is not a short order
- When
- The driver packs an express order
- If
- A scanned item is not on the order
- Then
- Packing stops until the driver clears the warning
- Else
- A known short order goes ahead only with a manager's code
One is a slip by the person packing, the other a business exception. Each gets its own remedy.
A slot has a cap
- When
- A customer picks a delivery slot
- If
- The slot is under its cap
- Then
- The slot can be chosen
- Else
- A later slot or the next day, which makes it a scheduled order, not an express one
No driver ends up with too much in one slot.
Rules the platform had to keep
From the consolidated requirements. They are why the domain is hard, and they are written down to the formula and the API call.
A sale cannot outrun the state ledger
- When
- A cart is ready at the register
- If
- Every quantity is within what the ledger allows
- Then
- Checkout opens
- Else
- The sale waits. An item can also turn unsellable in mid-shift, when the state reports a failed lab test or a hold.
Tax in a fixed order
local = price × local rateexcise = (price + local) × excise ratesales = (price + local + excise) × sales rate
Three exemption cases: a doctor's recommendation removes the local tax, a state medical card removes local and sales tax, and non-cannabis goods pay sales tax only.
Purchase limits follow the customer
- When
- The customer on a sale changes
- Then
- Limits are recalculated at once, in separate buckets for adult-use and medical customers, with edible weights converted from milligrams
Count blind, then correct the ledger
baseline = what Metrc reports, read once at the startdifference = counted − reported
Counters do not see the expected quantities. When a manager approves, the correction is sent to Metrc so the ledger matches the shelf.
What rides in a vehicle is on the delivery ledger
- When
- A driver leaves with a kit
- Then
- The kit is locked as the Metrc delivery ledger
A restock in the field means going back to the hub and adding the packages to the active trip. The ledger is closed at the end of the shift.
Sales reach the state after a network drop
- When
- A sale completes
- Then
- Its receipt joins a local queue that a background worker keeps pushing to Metrc
Checkout never waits for the state system.
Shown. This driver’s stock appears on the express menu, except the last unit of each product.
Hidden. This driver’s stock does not appear:
- too far from the customer
- past the tether from their own area
- the order queue is full
The same three checks run again at the moment the customer places the order.
Keeping the scope honest. After the client review I reissued the backlog as a delta. Every change carries a tag (Added, Changed, Removed or Confirmed) and the meeting decision or feedback point behind it, with scope split between the first release and a later version, so the team could see what moved and why without rereading everything.
Once design was under way I built a second check with Claude Code. For each designed section, an agent compared the Figma export with the original scope and listed what had grown, one row per body of engineering effort, largest first. The prompt told the agent which source wins when they disagree: the design, then the latest criteria, then the original scope. I ran it over 46 sections. Three rows from the zone-management sheet, shortened:
| In the original scope | What the design added |
|---|---|
| Two ways to draw a zone, in one line | A full zone editor on a map, with live area and radius feedback |
| One delivery fee and minimum for every zone | Fees and thresholds per zone, checked against each other |
| An optional link between a zone and one driver or shop | Each zone bound to a shop and to any number of drivers, with a daily order cap |
What moved to later. In the reissued backlog, in-app route optimization for multi-stop routes moves from the first release to the later version.
None of this is AI in the product: the automation is deterministic rules, third-party APIs and one OCR feature for reading documents.
Outcome
The client praised the discovery to Valere’s leadership and liked the delivery design. Development had started, and I was running sprint planning, reviews and refinement and coordinating design and engineering, when my work on the project ended in July 2026.
Learnings
The rule that reshaped the driver’s kit surfaced almost last. Everything loaded onto a vehicle has to sit on a delivery ledger in Metrc, and that was stated in a PDF on the state’s website, where it was easy to miss. With the technical PM I worked it into the requirements: the kit is locked as that ledger at departure, nothing joins it in the field, and it is closed at the end of the shift.
On a platform this size my job is to trace how one change touches every other part. This one I traced late.
This is the kind of work I do in a 10-day product discovery
Back to the work