N NoBullshit.wiki 中文

Grain & oil store owner-operator - delivery run loading tool - cluster the day's orders by compound, fill each run to the trike's weight ceiling, load last-delivered first with heavy bags on the floor, surface time-window conflicts instead of swallowing them, and print a load sheet a helper can follow

Works with:Claude / GPT-4 classCategories:Grain & Oil StoreLevel:Intermediate Updated

You are a coding agent. Build a single-file HTML
"grain & oil delivery run loader" for a store
owner planning the day's deliveries. Runs
locally, offline, no external dependencies.

Positioning (design to this, not a navigation
app): the pain in grain & oil delivery is not
knowing the way - it is loading and splitting
runs. One order is often a 25 kg rice bag plus
two 5L oil jugs; the cargo trike carries a
finite load; regulars specify "before lunch."
The tool answers exactly two questions: how
many runs today, and what gets loaded, in what
order, on each. It deliberately touches no
maps and estimates no travel time - it has no
traffic data, and a believed estimate only
pushes a loaded trike to ride faster.

Features:

1. Order entry (while taking morning orders)
- Per order: compound name / building and
  unit / items and quantities (picked from a
  preset catalog: 25kg rice, 10kg rice, 5kg
  rice, 5L oil, 4L oil, flour, mixed grains,
  plus custom-weight items) / time window
  (morning / before lunch / afternoon /
  no-preference) / notes (stairs, leave at
  door, call ahead)
- The catalog ships with standard weights and
  is editable to match what this store
  actually stocks

2. Run splitting (the core)
- Cluster by compound: same compound joins
  one run; within a run, sort by time window
- Each run's total weight must stay under
  [load ceiling] kg; on breach it splits
  automatically - by time window first, then
  for weight balance
- Conflicts surface, never vanish: when a run
  mixes "before lunch" with "no-preference,"
  the load sheet flags the "before lunch"
  orders in red at the front; a "morning"
  order that lands on an afternoon run is
  listed in a pending-issues panel - never
  silently absorbed

3. Load sheet (print or phone)
- One card per run: run number / compounds
  covered / total weight / percentage of
  load ceiling / loading list in reverse
  delivery order - last delivered loads
  deepest, first delivered loads outermost,
  heavy bags on the floor
- One row per order: building / items and
  counts / time window / notes - the rider
  works down the page
- End-of-day summary: run count / total
  weight / time windows met

Hard constraints:
- No map, geolocation, or traffic interfaces
  of any kind; ordering uses exactly one
  piece of knowledge - same compound,
  adjacent stops. Which compound goes first
  is the rider's call
- Custom items require a hand-entered weight
  before saving - weight drives the split;
  better an unrecorded order than one
  recorded as 0
- Data in browser localStorage with JSON
  export/import; preload a 12-order sample
  day including at least one time-window
  conflict and one overload split, so the
  output is visible on first open

You must not:
- No "smart route optimization" - no shortest
  path, no ordering between compounds (the
  owner knows these blocks better than any
  map; the tool only keeps order within a
  run sensible)
- No estimated arrival times - without
  traffic data, every ETA is fiction
- No customer management or receivables
  reminders - that belongs to the account
  ledger; mixed in, nobody will trust this
  sheet enough to load the trike by it

Why it is written this way

"It sequences and loads, it does not navigate" is the load-bearing boundary of this prompt. Delivery tools most often die by sprouting route optimization and arrival estimates: with no traffic data the ETAs are invented, and a believed ETA measurably hurries a trike carrying a hundred kilos through a compound - every second saved is bought with braking distance. Pushing navigation and ETA explicitly out of scope leaves the tool answering the two questions it can answer correctly: how many runs, how loaded. Whether it answered well is verifiable this afternoon, at the loading wall.

Loading last-delivered-first is the loading-dock instinct, cast into a rule. A cargo bed is a last-in-first-out structure: first stop outermost means the rider never unloads half the trike to reach one bag; heavy bags on the floor keeps the center of gravity low without crushing oil jugs and noodle cartons. Veterans know all this; the seasonal helper hired for the pre-holiday rush does not. The load sheet prints "no training required" on the owner's behalf.

"Conflicts surface, never vanish" is the least algorithmic instruction in the tool - deliberately. Software's instinct is to optimize constraints away: shoving a "morning" order onto the afternoon run minimizes run count and maximizes fill, and quietly burns one regular's standing request. Forcing conflicts into a pending panel hands the problem back to the owner to resolve by phone; rescheduling is relationship work, and an algorithm that resolves it for him is an algorithm that offends customers on his behalf.

Variables

Variable Description
Load ceiling The delivery vehicle's rated load in kg - from the registration paper, not from "what it has carried before"; one overloading ticket costs more than a month of extra runs
Catalog weights Standard weight per item - match the store's actual stocking units; one product in two sizes (5kg and 25kg rice) must be two catalog entries, or run totals silently drift

single-file tooldelivery runsload planning