Skip to content

MVP Acceptance Criteria ​

Demonstrable criteria for the v1 MVP. Each is verifiable by observation, not by assertion.

Authentication ​

  • [ ] Registration works and returns PENDING_VERIFICATION
  • [ ] Login and logout work; logout revokes the session immediately
  • [ ] Protected endpoints reject unauthorised requests with AUTH_REQUIRED
  • [ ] An expired access token fails with AUTH_INVALID
  • [ ] A revoked refresh token cannot be exchanged

Verification ​

  • [ ] Driver and vehicle have explicit, independent verification states
  • [ ] An unverified driver cannot publish an eligible journey
  • [ ] An unverified vehicle blocks the journey at VEHICLE-001
  • [ ] A user cannot create a second driver profile to bypass verification
  • [ ] An unavailable verification provider resolves to REVIEW, never ALLOW

Journey ​

  • [ ] Driver creates, publishes, edits and cancels a journey
  • [ ] Route, time and seat state are persisted
  • [ ] A journey failing compliance stays DRAFT with a reason returned
  • [ ] Recurring journeys generate concrete journey occurrences
  • [ ] State transitions match State Machines

Request ​

  • [ ] Passenger creates and cancels a request
  • [ ] Pickup, dropoff, time and passenger count validate
  • [ ] An expired request transitions to EXPIRED
  • [ ] A rejected match returns the passenger to MATCHING when candidates remain

Matching ​

  • [ ] Spatial pre-filter returns candidates before route recalculation
  • [ ] Time filter and seat availability are enforced
  • [ ] Detour distance, duration and percentage are calculated
  • [ ] Compliance is evaluated before ranking
  • [ ] Decisions are explainable: rules evaluated, passed, failed, evidence
  • [ ] algorithm_version is recorded on every match
  • [ ] An expired offer cannot be accepted

Booking ​

  • [ ] Only an eligible, accepted, non-expired match creates a booking
  • [ ] Duplicate creation is prevented by Idempotency-Key
  • [ ] Cancellation releases seat capacity and returns the journey to MATCHING
  • [ ] Completion is recorded with timestamps
  • [ ] Cancelling a journey resolves every booking on it in the same operation
  • [ ] A booking always names the match that justified it

Safety ​

  • [ ] Participant incident reporting works
  • [ ] Incident escalation works and is audited
  • [ ] Restrictions can be applied and reversed with a reason
  • [ ] Emergency triggers the safety workflow independently of matching and compliance health
  • [ ] Emergency contacts are notified

Compliance ​

  • [ ] Every decision names the rule codes that produced it
  • [ ] Every decision records the policy version in force
  • [ ] REVIEW is distinguishable from BLOCK and is not returned as an error
  • [ ] Risk signals never produce an automatic legal characterisation
  • [ ] Policy versions can be activated without an application change

Audit ​

  • [ ] Material state changes are logged
  • [ ] Policy version is retained on every decision
  • [ ] All administrative actions are logged with actor, action and before/after
  • [ ] Previous decisions are never overwritten or deleted
  • [ ] Any decision can be reconstructed from the record alone

CMS ​

  • [ ] Strapi content publishes
  • [ ] Public clients receive no unrestricted Strapi admin access
  • [ ] Policy changes are versioned and activated through the admin API
  • [ ] A Strapi outage does not affect journeys, bookings or compliance decisions

Regulatory ​

  • [ ] No interface is claimed as an authority integration before it is agreed
  • [ ] No screen or document claims regulatory approval that has not been obtained
  • [ ] Contribution functionality is inert unless enabled by active policy

KHAWI — same route, go together.