Journey Creation Flow
The supply side. A driver declares a journey they are already making.
Steps
- Select a verified vehicle.
- Set origin — a place or a generalised commute hub.
- Set destination.
- Set departure time.
- Set available seats, capped by vehicle seating capacity.
- Optionally make it recurring.
- Submit.
Server processing
text
Create Journey → status DRAFT
↓
Calculate Route → geometry, distance, duration
↓
Run Eligibility → driver, vehicle, account, seats
↓
Run Compliance → policy decision
↓
Publish → PUBLISHED (only on ALLOW)The driver sees the outcome, including the reason for a block or a review. A journey that cannot be published explains itself at creation time rather than failing silently later.
Recurring
text
Recurring template SUN–THU 07:30
↓
Materialised occurrences
↓
Concrete journey rows, each independently auditableEvery occurrence is a real journeys row referencing its template. A recurring template is not itself a journey — it produces journeys, and each one is individually recorded, verifiable and auditable.
Constraints
| Rule | Reason |
|---|---|
| Vehicle must be verified and eligible | VEHICLE-001 |
| Seats must not exceed seating capacity | VEHICLE-004 |
| Driver must be verified and eligible | IDENTITY-001, DRIVER-001 |
| Departure must be in the future | Journey would be immediately EXPIRED |
| Route must be calculable | Detour cannot be evaluated without it |
Anti-pattern
text
PROHIBITED
Passenger requests a trip
↓
System creates a driver journey
↓
Driver transports passengerThere is no flow in which this happens. A journey always belongs to a driver and a vehicle and is created by that driver. This is enforced structurally, not by a rule that could be misconfigured.
