Skip to content

Gender Segregation

This page specifies gender capture and segregation-related enrollment/booking behavior. The current sources establish gender as required enrollment data and mention gender-based bulk selection; detailed segregation enforcement rules contain open product decisions.

1. Gender capture

  • Gender is required at enrollment and stored once on users.
  • Enrollment request includes gender (POST /auth/enroll-company includes gender).
  • Managers can use gender for bulk selection in enrollment and D2D eligibility flows.

2. Current specified rules

Rule Status Source
Gender required at enrollment Specified Domain invariants, build spec §3/§5.2
Gender values are male or female Specified by Slice 3 POST /api/auth/enroll-company; stored once on users.gender
Gender stored once on users Specified Domain invariants, build spec §4
Managers can bulk-select by gender Specified Build spec §5.2, §5.5
Company-suspended users/surfaces blocked Specified Domain invariants
Passengers pay nothing Specified Domain invariants

3. Segregation enforcement

The product intent includes gender-aware operations (bulk selection and segregation-sensitive operations). The exact runtime enforcement points must be implemented only where explicitly specified by product behavior.

flowchart TD
    E[Passenger enrolls] --> G[Gender required; stored once on users]
    G --> Q[Manager review queue]
    Q --> B[Manager may bulk select by gender]
    B --> A[Approve / reject membership]
    A --> BK[Passenger attempts booking]
    BK --> P{Segregation policy applies?}
    P -->|Policy specified and applies| ENF[Enforce allowed booking/seat]
    P -->|No applicable policy| N[Normal booking validation]
    ENF --> OK[Accept or reject with clear message]
    N --> OK

4. Edge cases and open questions

  • Segregation model: Is segregation by trip, by vehicle/car, by seat section, by trip group, or by company policy? The current spec does not define the model.
  • Enforcement point: Must segregation be enforced at enrollment approval, trip visibility, booking creation, boarding, or all of them? Current sources only explicitly require gender capture and bulk selection.
  • Mutability: "Stored once on users" implies immutability; the correction workflow for mistaken gender entry is not specified.
  • Privacy/visibility: Who can see a passenger's gender (Manager only, Driver manifest, Platform Admin)? Minimum disclosure rules are not specified.
  • D2D interaction: D2D eligibility can be bulk-selected by gender; whether D2D routing/assignment has segregation constraints is not specified.
  • Mixed-company or legacy data: Backfill/default behavior for existing users missing gender is not specified.
  • Error messaging: If segregation causes booking/approval rejection, the exact user-facing message and error code behavior must follow API conventions but is not yet defined.