Proposed technical architecture

Physical signals.
Inspectable intelligence.

An event-driven design connecting shipment identity, operational constraints and an AI reasoning layer. Every proposed action passes through validation and operator approval.

Design proposal, not a deployed backend. The current prototype includes a seven-page website, synthetic JSON records, a read-only local mock API and a deterministic browser demo. Production integrations, persistent storage and controls below are planned.
01 / OBSERVEOrders + physical scan events
02 / UNDERSTANDShipment state + constraints
03 / PROPOSEOptimization + AI explanation
04 / EXECUTEValidate + approve + audit
LAYER 01 / PHYSICAL + BUSINESS INPUTS

A common event contract.

Barcode scans first. RFID readers and vehicle telemetry follow after field validation. ERP or order-management adapters normalize order updates into the same shipment model.

shipment_idevent_iddevice_idoccurred_at

An edge gateway would queue scans offline, deduplicate retries and preserve both device and server timestamps. Late or conflicting reads become reviewable exceptions.

LAYER 02 / OPERATIONAL STATE

One record across handoffs.

A proposed PostgreSQL event ledger maintains orders, shipment units, manifests, vehicles, driver availability, delivery evidence and reconciliation state. A worker queue handles retries and state transitions.

PostgreSQLBackground workersObject storage

Every write must enforce tenant boundaries, state-transition rules and idempotency. Files and delivery photos need retention controls and scoped access.

LAYER 03 / FEASIBILITY + OPTIMIZATION

Check what can actually move.

A rules service checks weight, volume, cargo compatibility, time windows, vehicle capability and driver availability. A routing solver such as OR-Tools proposes feasible assignments using a licensed traffic and travel-time provider.

Hard constraint checksRouting solverTraffic adapter

A solver may return a feasible candidate rather than a globally optimal route. Stale traffic or infeasible jobs must produce a clear fallback for the dispatcher.

LAYER 04 / PLANNED CLAUDE INTEGRATION

Understand. Explain. Draft.

Claude would extract structured delivery requirements from documents, summarize exceptions and draft recommended actions. Controlled tools would retrieve shipment evidence and request validated route candidates.

Document interpretationTool useStructured validation

API calls belong on a server. Untrusted documents cannot authorize actions. Recommendations must reference available evidence; missing facts prompt review. No Claude API is connected today.

CONTROL PLANE / OPERATOR APPROVAL + AUDIT

A recommendation is not an executed action.

Before dispatch, the backend would re-check current shipment state, enforce permissions and validate the proposed manifest. An operator approves the change. An idempotent command is then sent to the relevant system and acknowledged. Approval, rejection, execution and failure are recorded separately. Settlement review does not trigger payment.

Role-based accessEvidence-linked recommendationsVersion checksIdempotent executionSeparate payment approval
Prototype / MVP / Field pilot

What exists.
What comes next.

Keeping the status explicit makes the product easier to evaluate and the pilot easier to scope.

CapabilityCurrent prototypePlanned validation
Order + scan workflowSynthetic orders and barcode eventsCSV import, scanner adapter, duplicate and missing reads
Load consolidationZone grouping and weight checksVolume, time windows and cargo compatibility
Loading verificationWrong-vehicle scan blocked in demoPhysical scans, offline events and departure policy
Traffic + dispatchPredefined clear/congested scenariosLicensed traffic data, solver, operator approval and command acknowledgement
AI reasoningNot connectedClaude API, extraction evaluation and evidence-linked suggestions
Delivery + settlementSynthetic signed records and charge matchingDriver workflow, real delivery evidence and billing integration
Security + reliabilityNo accounts, customer data or external callsTenant isolation, access controls, audit logs, recovery and retention
Pilot evaluation

Measure the workflow.
Earn the claim.

Baseline and pilot measurements should use the same shipment cohorts, operating conditions and definitions.

WORK

Manual touches

Count re-entry, dispatcher edits and review minutes per shipment. Compare the pilot with the current workflow.

ACCURACY

Physical-to-digital match

Measure scan coverage, duplicate reads, false alerts and loading mismatches. Inspect failures by device and location.

EXECUTION

Reliable delivery

Track on-time delivery, vehicle utilization, ETA error and reconciliation time. No performance result is claimed yet.