Skip to content

DRV · Drivers

There is one drivers row per person, from lead to leaving, labelled by stage. Documents, addresses, emergency contacts, platform accounts, notes and trainings are child rows. legacy_id keeps v1's lead number. After a return, the driver's stage follows the return's reason, and a blacklisted NIK is kept out of the queue, registration and booking. Code DRV.

D61 names three flows that must not break on the first Monday after cutover: driver onboarding (the queue to an approved driver), vehicle onboarding (a new car to ready) and collection (an overdue driver to a call, a surat hutang and a payment). Their rules get the most tests, refusals included, and the hardest review. On this page:

  • Driver onboarding: R-DRV-01, R-DRV-02, R-DRV-04 to R-DRV-08, R-DRV-11, R-DRV-14 and R-DRV-24.

These questions are open in #79. Each gets a rule with a new ID once it is answered.

  • Searching drivers by phone (#351): no rule says drivers can be searched by phone, so there is nothing yet to extend to secondary_phone. CTO: where is the search (the driver list's search box, the queue's lookup by NIK, or none)? Once a rule says so, it gets a new ID: a search by phone finds the driver by either of their numbers (R-DRV-50).

  • DRV open 1 · Stage history

  • DRV open 2 · Source notes

  • The rejoin request (DRV-24, DRV-25), the record R-DRV-22 reads: #156.

  • Anonymizing a driver (D15, R-DRV-25 to R-DRV-28), asked on #189: who runs app.anonymize_driver() (from the app, or by hand like D65's erasing functions) and what it refuses; what replaces their name and phone, which can't be empty; whether the before and after data in the audit log is scrubbed of their fields too; which of the files that name them but belong to business or money rows (a signed contract or BASTK, the driver's signature on an inspection, a payment's proof) are deleted with the driver's own; and what happens to their login and profile, which another organization may share (R-ACC-38). How long each kind of personal data is kept is OQ18.

  • A swap (return reason swap, which the General Flow doesn't have): which stage the driver takes is not in D43.

  • Whether an approved driver's rejoin request is refused (#281): D79 says "an approved driver needs none", and R-DRV-47 lists the stages a request may come from. Whether a request from an approved driver is refused, with which key, or only unneeded, is for the CTO.

  • Who sees NIK and phone (OQ9, #35): D31; every role that reads a driver sees them in full.
  • A repossession and the driver's stage, a driver who never asks to rejoin, lifting a blacklist and the label for available (D79 removes the stage) (#159): D66. A repossession makes the driver inactive at its BASTK, or blacklisted at the organization's limit (R-DRV-30, R-SET-10), and opening the request changes nothing (R-DRV-31). A month as approved with no live rental makes them inactive (R-DRV-46), and on_leave_until plays no part, since on_leave doesn't turn inactive by itself. A rejoin may come from inactive (R-DRV-47). driver:blacklist sets and lifts a blacklist (R-DRV-34), and a lifted driver becomes inactive (R-DRV-35). listed reads "Listed" (R-DRV-48). R-DRV-21 is retired.
  • From which stages a driver may be blacklisted by a call (#263): only once they no longer hold a car. zuki, 2026-10-22: "blacklisted is changed after return car", and blacklisting a driver with a live rental waits until the car is back; for a booked or pending rental, until it is cancelled (R-DRV-40).
  • When a return starts (#155): when the rental becomes returning (D67, R-RNT-24); R-DRV-45's stage change runs then.
  • Which number is phone (#351): zuki, 2026-10-28 (10:59): phone stays the required number the driver registers with, carried from their queue ticket (R-QUE-09). secondary_phone is their other, optional number, labelled "Nomor HP lain". The queue form is unchanged; staff add it on the driver's profile.
  • v1's onboarding_deleted: ignored on purpose, to sign. zuki signs it in migration.accepted_differences with the report (R-MIG-06, R-MIG-10; #415, 2026-11-02). No step reads it, and deleted onboarding rows are not loaded.
  • Who sets a platform account's service type. zuki's answers say it belongs to the account and may be empty, not who edits it. Proposed: whoever can write the driver (driver:write); for zuki.
  • Status: built
  • Example: given a new driver, when the NIK is saved as 32750112345 (11 digits), then it is refused.
  • Refusal: none: check_violation (23514).
  • Who: every writer.
  • Source: [Ref] Database rules and conventions, Normalized input; [Ref] Data model V13: drivers.

R-DRV-02 · A NIK is unique within the organization

Section titled “R-DRV-02 · A NIK is unique within the organization”
  • Status: built
  • Example: given a driver with NIK 3275011234567890, when a second driver with that NIK is saved in the same organization, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: drivers; D9 (P3).

R-DRV-03 · A v1 lead number (legacy_id) is unique within the organization

Section titled “R-DRV-03 · A v1 lead number (legacy_id) is unique within the organization”
  • Status: built
  • Example: given a migrated driver with legacy_id 1042, when a second driver with 1042 is saved, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer, the migration included.
  • Source: [Ref] Data model V13: drivers.

R-DRV-04 · Every driver has a lead source

Section titled “R-DRV-04 · Every driver has a lead source”
  • Status: built
  • Example: given a new driver, when it is saved with no lead source, then it is refused.
  • Refusal: none: not_null_violation (23502).
  • Who: every writer.
  • Source: [Ref] Data model V13: drivers, lead_sources.

R-DRV-05 · A new driver starts at the lead stage

Section titled “R-DRV-05 · A new driver starts at the lead stage”
  • Status: built
  • Example: given a driver registered with no stage, when it is read back, then its stage is lead.
  • Refusal: none.
  • Who: every writer.
  • Source: [Ref] Data model V13: drivers.

R-DRV-06 · App users can't change a driver's stage directly; only database functions can

Section titled “R-DRV-06 · App users can't change a driver's stage directly; only database functions can”
  • Status: built
  • Example: given an admin_driver, when they update drivers.stage from lead to approved, then it is refused and the stage stays lead.
  • Refusal: driver.stage_locked
  • Who: every app user (authenticated). Database functions, jobs and the migration may.
  • Source: D9 (P9); [Ref] Database rules and conventions, Status and stage only through functions.

R-DRV-07 · Changing a driver's stage needs driver:write, onboarding:write, screening:approve, booking:write or inspection:handover at the driver's pool

Section titled “R-DRV-07 · Changing a driver's stage needs driver:write, onboarding:write, screening:approve, booking:write or inspection:handover at the driver's pool”
  • Status: built
  • Example: given a finance user at PML, when they call app.set_driver_stage on a PML driver, then it is refused; a background_check user at PML may.
  • Refusal: driver.stage_forbidden
  • Who: super_admin, admin, admin_driver, admin_fleet, background_check and checker hold one of these.
  • Source: [Ref] Database rules and conventions, Status and stage only through functions.

R-DRV-08 · A stage change records when it happened

Section titled “R-DRV-08 · A stage change records when it happened”
  • Status: built
  • Example: given a driver at screening, when app.set_driver_stage moves them to approved at 10:15, then stage_changed_at reads 10:15.
  • Refusal: none.
  • Who: app.set_driver_stage and every function that calls it.
  • Source: [Ref] Database rules and conventions, Status and stage only through functions.

R-DRV-09 · A driver has at most one address of each kind (KTP, domicile)

Section titled “R-DRV-09 · A driver has at most one address of each kind (KTP, domicile)”
  • Status: built
  • Example: given a driver with a KTP address, when a second KTP address is saved, then it is refused; a domicile address is accepted.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: driver_addresses.

R-DRV-10 · A postal code is exactly 5 digits

Section titled “R-DRV-10 · A postal code is exactly 5 digits”
  • Status: built
  • Example: given a new address, when its postal code is saved as 1541, then it is refused; 15417 is accepted.
  • Refusal: none: check_violation (23514).
  • Who: every writer.
  • Source: [Ref] Data model V13: driver_addresses.

R-DRV-11 · A driver has at most one primary emergency contact

Section titled “R-DRV-11 · A driver has at most one primary emergency contact”
  • Status: built
  • Example: given a driver whose wife is the primary contact, when their brother is also saved as primary, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: driver_emergency_contacts.

R-DRV-12 · A driver has at most one account per ride platform

Section titled “R-DRV-12 · A driver has at most one account per ride platform”
  • Status: built
  • Example: given a driver with a Grab account row, when a second Grab row is saved, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: D9 (P4).

R-DRV-13 · A driver is linked to at most one login

Section titled “R-DRV-13 · A driver is linked to at most one login”
  • Status: built
  • Example: given a login linked to driver A, when driver B is linked to the same login, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: drivers.profile_id.

R-DRV-14 · A SIM number equal to the driver's NIK is accepted, and v1's are migrated as they are

Section titled “R-DRV-14 · A SIM number equal to the driver's NIK is accepted, and v1's are migrated as they are”
  • Status: planned
  • Example: given a v1 driver whose SIM number equals their NIK, when they are migrated, then their SIM document keeps that number; a new driver may also enter it.
  • Refusal: none.
  • Who: the migration and every writer of driver documents.
  • Source: D49, which partly supersedes D9's Q9 (left empty); #144 (drv 14: the SIM number can equal the NIK).

R-DRV-15 · A driver is readable with driver:read, screening:read, onboarding:read, booking:read, payment:read, inspection:read, gate:read or debt_letter:read at the driver's pool

Section titled “R-DRV-15 · A driver is readable with driver:read, screening:read, onboarding:read, booking:read, payment:read, inspection:read, gate:read or debt_letter:read at the driver's pool”
  • Status: built
  • Example: given a satpam at PML, who holds gate:read, when they read drivers, then PML's drivers come back.
  • Refusal: none: hidden.
  • Who: every system role holds at least one of these.
  • Source: [Ref] Roles, policy matrix.

R-DRV-16 · Adding or changing a driver or its child rows needs driver:write at the driver's pool

Section titled “R-DRV-16 · Adding or changing a driver or its child rows needs driver:write at the driver's pool”
  • Status: built
  • Example: given a checker at PML, when they edit a PML driver's address, then nothing changes; an admin_driver at PML may.
  • Refusal: none: insufficient_privilege (42501) on insert; no effect on update.
  • Who: super_admin, admin and admin_driver hold driver:write.
  • Source: [Ref] Roles, policy matrix.

R-DRV-17 · Deleting a driver needs driver:delete at the driver's pool

Section titled “R-DRV-17 · Deleting a driver needs driver:delete at the driver's pool”
  • Status: built
  • Example: given an admin, when they delete a driver registered twice by mistake, then nothing is deleted; a super_admin's delete goes through when nothing references the row (R-CONV-11).
  • Refusal: none: no effect without the permission.
  • Who: super_admin holds driver:delete.
  • Source: [Ref] Roles, policy matrix; D9 (P13).

R-DRV-19 · A driver's stage can be available or inactive, beside V13's stages

Section titled “R-DRV-19 · A driver's stage can be available or inactive, beside V13's stages”
  • Status: retired (replaced by R-DRV-44: D79 removes available)
  • Example: given driver_stage, when its values are read, then they include available and inactive beside V13's stages.
  • Refusal: none: this describes the schema.
  • Who: BE pack G2 adds the values.
  • Source: D43; General Flow DRV-23 ("Aktif" after a return), DRV-26. What each stage means: available is a driver in good standing with no car (D43); inactive is R-DRV-29 (D66). The heading's old gloss of inactive ("not taken back after asking to rejoin") moved there in #223; what the test proves is unchanged.

R-DRV-20 · When a rental's return starts, the driver's stage follows its reason: on_leave, resigned and suspended to the stage of that name, accident, breakdown and contract_ended to available

Section titled “R-DRV-20 · When a rental's return starts, the driver's stage follows its reason: on_leave, resigned and suspended to the stage of that name, accident, breakdown and contract_ended to available”
  • Status: retired (replaced by R-DRV-45: D79: accident, breakdown and contract_ended give approved)
  • Example: given a listed driver, when their return starts with reason breakdown, then their stage is available; with on_leave it is on_leave, with suspended (Suspend/PM) suspended, with contract_ended available.
  • Refusal: none.
  • Who: the return function (M5).
  • Source: D43; General Flow DRV-22 → DRV-23.

R-DRV-21 · A return started with reason repossessed blacklists the driver

Section titled “R-DRV-21 · A return started with reason repossessed blacklists the driver”
  • Status: retired (replaced by R-DRV-30 under D66: a repossession makes the driver inactive, or blacklisted at the limit)
  • Example: given a listed driver, when their return starts with reason repossessed, then their stage is blacklisted.
  • Refusal: none.
  • Who: the return function (M5).
  • Source: D43; General Flow DRV-22 → DRV-27. Retired before it was built: D66 partly supersedes D43 here (R-DRV-30).

R-DRV-22 · A driver refused after asking to rejoin becomes inactive

Section titled “R-DRV-22 · A driver refused after asking to rejoin becomes inactive”
  • Status: planned
  • Example: given a driver on leave who asks to rejoin, when the Driver Team refuses the request, then the driver's stage is inactive; an inactive driver refused stays inactive; an approved request takes them back to onboarding (DRV-25 → DRV-17).
  • Refusal: none.
  • Who: the rejoin decision function (M3).
  • Source: D43; D66 (refused, they stay or become inactive); General Flow DRV-25 → DRV-26. The request record is on #156.

R-DRV-23 · An inactive driver stays inactive until someone changes the stage; nothing blacklists them by itself

Section titled “R-DRV-23 · An inactive driver stays inactive until someone changes the stage; nothing blacklists them by itself”
  • Status: planned
  • Example: given an inactive driver, when the scheduled jobs run for a month, then they are still inactive.
  • Refusal: none.
  • Who: every function and job that sets a stage.
  • Source: D43 (inactive is a resting stage); D66 (nothing blacklists an inactive driver by itself); General Flow DRV-26 → DRV-27, which v2 doesn't follow (Open Issues).

R-DRV-24 · Registering a lead with a blacklisted driver's NIK is refused

Section titled “R-DRV-24 · Registering a lead with a blacklisted driver's NIK is refused”
  • Status: planned
  • Example: given a blacklisted driver with NIK 3275011234567890, when staff register a lead with that NIK, then it is refused and nothing is saved.
  • Refusal: driver.blacklisted
  • Who: the registration function (M3).
  • Source: D43; General Flow DRV-07, DRV-27 (Data Constraints: a blacklisted NIK can't make a queue entry, a lead or a rental).

R-DRV-25 · Anonymizing a driver replaces or empties every field that identifies them, so their row identifies no one

Section titled “R-DRV-25 · Anonymizing a driver replaces or empties every field that identifies them, so their row identifies no one”
  • Status: planned
  • Example: given driver Budi with their NIK, phone, secondary_phone, email, birth date and place, education, occupation, a KTP and a domicile address, an emergency contact, a SIM number and a Grab account, when app.anonymize_driver() runs for them, then none of those values is left on their row or its child rows, and a search for their NIK, phone or name finds nothing; the row itself stays (R-DRV-27).
  • Refusal: a key named by BE, once who may run it is settled (asked on #189).
  • Who: app.anonymize_driver(), built before go-live with D65's erasing functions (timeline, staff testing and cutover, row 3). It erases no record: the row stays (R-DRV-27). The fields are the driver's full_name, nik, phone, secondary_phone, email, birth_date, birth_place, education and occupation; their addresses; their emergency contacts' names and phones; their documents' numbers; and their platform accounts' references.
  • Source: D15 (anonymizing scrubs identity fields; how a deletion request is met, within 3×24 hours under GR 33/2026); #59 (item 3), #189. The list of fields is DOC's reading of the drivers data model, asked on #189.

R-DRV-26 · Anonymizing a driver deletes the files stored for their documents and their background checks

Section titled “R-DRV-26 · Anonymizing a driver deletes the files stored for their documents and their background checks”
  • Status: planned
  • Example: given driver Budi with a KTP scan, a SIM scan and the photos of their visit check, when app.anonymize_driver() runs for them, then those files are gone from Storage and their rows point at none; the driver_documents and background_check rows themselves stay, without their numbers (R-DRV-25).
  • Refusal: none.
  • Who: app.anonymize_driver(). App users never delete a stored file themselves (R-STO-12).
  • Source: D15 (it "deletes the person's files"); D14 (where the files are); #189. Which other files go with them is asked on #189.

R-DRV-27 · Anonymizing a driver keeps their row, their rentals, contracts, charges, payments and allocations, and their audit rows

Section titled “R-DRV-27 · Anonymizing a driver keeps their row, their rentals, contracts, charges, payments and allocations, and their audit rows”
  • Status: planned
  • Example: given driver Budi with a rental, a balance of Rp 450.000 and a year of audit rows, when app.anonymize_driver() runs for them, then their driver row, rental, contract, charges and payments are all still there with the same amounts and dates, their balance still reads Rp 450.000, and the audit rows stay.
  • Refusal: none.
  • Who: app.anonymize_driver().
  • Source: D15 (keeping money and audit rows; P13 still holds: business rows are never hard-deleted); D9 (P13); #189.

R-DRV-28 · Anonymizing a driver also empties or replaces the personal fields of their queue tickets

Section titled “R-DRV-28 · Anonymizing a driver also empties or replaces the personal fields of their queue tickets”
  • Status: planned
  • Example: given driver Budi registered from queue ticket 12, which holds their name, NIK, phone, emergency contact, education and birth date (R-QUE-09), when app.anonymize_driver() runs for them, then ticket 12 keeps its number, date and status and none of those values.
  • Refusal: none.
  • Who: app.anonymize_driver().
  • Source: D55 (the queue form's fields are "retained and anonymized like the driver's"); D15; #189.

R-DRV-29 · An inactive driver can't rent again until the Driver Team takes them back through a rejoin request

Section titled “R-DRV-29 · An inactive driver can't rent again until the Driver Team takes them back through a rejoin request”
  • Status: planned
  • Example: given an inactive driver, when staff book a car for them, then it is refused; when their rejoin request is approved (R-DRV-33), they go back to onboarding (DRV-17) and can be booked once approved. This holds whatever made them inactive: a repossession (R-DRV-30), a month as available (R-DRV-32) or a refused rejoin (R-DRV-22).
  • Refusal: a key named by BE in M3 or M4, at booking.
  • Who: the booking function, and every function that opens a rental for a driver.
  • Source: D66 (inactive now means can't rent again until the Driver Team takes them back through a rejoin request, whatever led there); General Flow DRV-24 to DRV-26. Replaces the gloss in R-DRV-19's old heading.

R-DRV-30 · When a repossessed rental ends at its BASTK, its driver becomes inactive, or blacklisted when their repossessed rentals in the organization reach max_repossessions

Section titled “R-DRV-30 · When a repossessed rental ends at its BASTK, its driver becomes inactive, or blacklisted when their repossessed rentals in the organization reach max_repossessions”
  • Status: planned
  • Example: given max_repossessions is 2 and driver Budi has one rental ended with reason repossessed at SBY, when their PML rental's repo BASTK is recorded (R-RNT-27, R-INSP-13), then they are blacklisted, as this is their second; a driver with no earlier repossession becomes inactive. A chain row ended without a reason doesn't count (R-RNT-07). Lowering the setting to 1 blacklists nobody until a driver's next repo BASTK.
  • Refusal: none.
  • Who: the function that ends a repossessed rental (M5; R-RNT-27). The count is their rentals ended with reason repossessed at any pool of the organization, the one just closed included, read from rental history with no counter column.
  • Source: D66 (the stage changes when the car is back, at the repo BAST; the limit is max_repossessions, default 2, R-SET-10); General Flow DRV-22 → DRV-27, VEH-14. Replaces R-DRV-21.

R-DRV-31 · Opening a repo request changes no stage

Section titled “R-DRV-31 · Opening a repo request changes no stage”
  • Status: planned
  • Example: given a listed driver whose rental becomes repossessing (R-RNT-25), then they stay listed; if the request fails and is queued again while they still have the car, their stage is still listed.
  • Refusal: none.
  • Who: the repo function (M5).
  • Source: D66 (a request can fail and be queued again while the driver still has the car); General Flow REP-01.

R-DRV-32 · A driver available for 30 days with no booked or active rental becomes inactive

Section titled “R-DRV-32 · A driver available for 30 days with no booked or active rental becomes inactive”
  • Status: retired (replaced by R-DRV-46: D79: the month applies to approved with no live rental)
  • Example: given a driver whose stage became available on 2026-10-01 (stage_changed_at) and who has had no booked or active rental since, when the daily job runs on 2026-10-31, then they are inactive; a rental booked on 2026-10-20 stops the count. A driver on_leave, suspended or resigned for 30 days stays as they are. A driver migrated as available starts their 30 days at cutover (R-DRV-39).
  • Refusal: none.
  • Who: a daily job (M3), in the pool's date (R-CONV-10).
  • Source: D66 (the month applies to available only, counted from stage_changed_at by a daily job; the data phase starts it at cutover); Syamsul Haris on #159 ("driver become inactive if status not assigned stay for month").

R-DRV-33 · A rejoin request may come from a driver who is inactive, available, on_leave, resigned or suspended

Section titled “R-DRV-33 · A rejoin request may come from a driver who is inactive, available, on_leave, resigned or suspended”
  • Status: retired (replaced by R-DRV-47: D79: available leaves the list)
  • Example: given an inactive driver, when they ask to rejoin, then the request is recorded for the Driver Team (DRV-25); a listed or blacklisted driver's request is refused.
  • Refusal: a key named by BE in M3.
  • Who: the rejoin request function (M3; its record is #156).
  • Source: D66 (a rejoin may come from inactive as well); General Flow DRV-24.

R-DRV-34 · Setting or lifting a blacklist needs driver:blacklist at the driver's pool

Section titled “R-DRV-34 · Setting or lifting a blacklist needs driver:blacklist at the driver's pool”
  • Status: planned
  • Example: given an admin_driver at PML, when they blacklist a PML driver who holds no car, then the driver's stage is blacklisted (one who still holds a car waits for its return, R-DRV-40); a checker's attempt is refused, and so is an admin_driver's for a driver at SBY where they hold nothing. A repossession reaching the limit blacklists without anyone's call (R-DRV-30).
  • Refusal: a key named by BE in M3.
  • Who: admin_driver, admin and super_admin hold driver:blacklist (R-ACC-64).
  • Source: D66 (a blacklist is set and lifted with driver:blacklist; Syamsul Haris on #159: "only driver admin can lift up the blacklisted"; zuki: admin and super_admin may lift too); D63.

R-DRV-35 · A driver whose blacklist is lifted becomes inactive

Section titled “R-DRV-35 · A driver whose blacklist is lifted becomes inactive”
  • Status: planned
  • Example: given a blacklisted driver, when an admin_driver lifts the blacklist, then the driver's stage is inactive, and the driver rents again only through a rejoin (R-DRV-29); the driver's NIK is no longer refused at the queue (R-QUE-08).
  • Refusal: none.
  • Who: the function that lifts a blacklist (M3).
  • Source: D66 (a lifted driver becomes inactive).

R-DRV-36 · The migration keeps v1's blacklisted drivers blacklisted

Section titled “R-DRV-36 · The migration keeps v1's blacklisted drivers blacklisted”
  • Status: planned
  • Example: given a v1 driver in Blacklist after a single repossession, when the data phase's drivers step runs, then they are blacklisted in v2, even though one repossession would make a v2 driver only inactive (R-DRV-30); a driver v1 blacklisted by hand stays blacklisted too. The Driver Team lifts case by case (R-DRV-34).
  • Refusal: none.
  • Who: the migration's drivers step (data phase).
  • Source: D66 (zuki: v1's blacklisted drivers stay blacklisted).

R-DRV-37 · The migration makes a v1 driver with a repossession who isn't blacklisted inactive, unless they hold a car again in v1 or have an onboarding row in Approve

Section titled “R-DRV-37 · The migration makes a v1 driver with a repossession who isn't blacklisted inactive, unless they hold a car again in v1 or have an onboarding row in Approve”
  • Status: planned
  • Example: given a v1 driver with one rental closed as repossessed, not in Blacklist, with no car today and an onboarding row in Approve, when the drivers step runs, then they are approved in v2 with the pending rental D69 gives that row, if v1 has them Aktif (re-approved, 19 on the copy of 2026-10-22). Given the same driver on Cuti or Suspend, then they are on_leave or suspended, as v1's Cuti and Suspend map, and their Approve row loads as cancelled; the reconcile lists the driver and the row by v1 id (5 on the copy). Given a repossessed driver with no onboarding row in Approve and no car, then they are inactive, so they can come back through a rejoin request (R-DRV-29). Given one repossessed earlier who holds a car again in v1 (an onboarding row in Listed or Booked), then they take the stage their live rental gives them, as any driver with a car does.
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: D66 (the data phase's drivers step); zuki on #281 (2026-10-22: a driver holding a car keeps their rental's stage; 46 drivers), which the CTO's decision page records D78 (#310, zuki 2026-10-27: "go with (a)") partly supersedes D73's third row, the 24 with no car.

R-DRV-43 · The migration blacklists a v1 lead in Resign whose return reason is Repo and who has no onboarding row

Section titled “R-DRV-43 · The migration blacklists a v1 lead in Resign whose return reason is Repo and who has no onboarding row”
  • Status: planned
  • Example: given a v1 lead in Resign with return reason Repo, no onboarding row, admin fee bills and one ETLE fine, when the drivers step runs, then they are blacklisted in v2, whatever they owe. A lead in Resign with another reason takes the stage its v1 status maps to.
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: zuki on #281 (2026-10-22: the 310 such leads show mixed signals, admin fee bills for all and ETLE fines for 44, so all are blacklisted with no debt threshold), which the CTO's decision page records, partly superseding D66's drivers-step line.

R-DRV-50 · A driver may have a secondary_phone, in the form of phone, and it needn't be unique

Section titled “R-DRV-50 · A driver may have a secondary_phone, in the form of phone, and it needn't be unique”
  • Status: planned
  • Example: given a driver with phone 6281234567890, when staff save their secondary_phone as 6289876543210, then it is saved; with none, the driver is saved as before. Given another driver who holds the same secondary_phone, or whose phone is the same number, then both are saved: a number is unique to no driver. Only the driver's own phone is refused (R-DRV-51). A secondary_phone of +62 898-7654-3210, or 62215550123 (a landline), is refused (R-CONV-07, R-CONV-16).
  • Refusal: none: check_violation (23514), as for phone.
  • Who: every writer, with driver:write at the driver's pool (R-DRV-16).
  • Source: zuki on #351 (2026-10-28: most drivers have two numbers, one registered on the Grab or Gojek app and one personal); R-CONV-07 and R-CONV-16. Like phone, it isn't unique across drivers. phone stays the required one (answered above).

R-DRV-51 · A driver's secondary_phone can't equal their own phone

Section titled “R-DRV-51 · A driver's secondary_phone can't equal their own phone”
  • Status: planned
  • Example: given a driver with phone 6281234567890, when staff save their secondary_phone as 6281234567890, then it is refused; changing their phone to equal their secondary_phone is refused too.
  • Refusal: driver.secondary_phone_same
  • Who: every writer.
  • Source: zuki on #351 (2026-10-28). The error key is the CTO's suggestion on #351; BE confirms it (D10).

R-DRV-52 · Every role that reads a driver reads their secondary_phone in full

Section titled “R-DRV-52 · Every role that reads a driver reads their secondary_phone in full”
  • Status: planned
  • Example: given a satpam at PML, who holds gate:read, when they read a PML driver, then the secondary_phone comes back in full, as phone does; a member who can't read the driver (R-DRV-15) gets nothing.
  • Refusal: none: hidden.
  • Who: every role that reads a driver (R-DRV-15).
  • Source: D31 (NIK and phone are seen in full by every role that reads a driver); zuki on #351 (same as phone).

R-DRV-53 · The migration reads a v1 lead's second number from the hp that holds two numbers, as their secondary_phone

Section titled “R-DRV-53 · The migration reads a v1 lead's second number from the hp that holds two numbers, as their secondary_phone”
  • Status: planned
  • Example: given a v1 lead whose hp is 0812-3456-7890/0898-7654-3210, when the drivers step runs, then phone is 6281234567890 and secondary_phone is 6289876543210. The two numbers may be split by a slash, a comma or a semicolon. A lead whose hp holds one number has no secondary_phone. A second part equal to the first loads as none (R-DRV-51).
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: zuki on #352 (2026-10-28, 11:36: v1 has no field or table for a second number; one lead's hp holds two); the BE on #352 (the step splits leads.data ->> 'hp'; any hp written the same way on a later night follows the same path); R-CONV-07.

R-DRV-54 · A second part of a v1 hp that fails the phone form loads as an empty secondary_phone and is listed by a reconcile check, and the driver is still loaded

Section titled “R-DRV-54 · A second part of a v1 hp that fails the phone form loads as an empty secondary_phone and is listed by a reconcile check, and the driver is still loaded”
  • Status: planned
  • Example: given a v1 lead whose hp is 0812-3456-7890/12345, when the drivers step runs, then they are loaded with their phone and an empty secondary_phone, and the reconcile check lists them by v1 id. A second part equal to the first is listed the same way. Their row is not left out and not in migration.unmatched.
  • Refusal: none.
  • Who: the migration's drivers step and its reconcile (data phase row 5).
  • Source: zuki on #351 (2026-10-28: phone is the required one); R-MIG-05 (the reconcile). Unlike a bad phone, a bad second number costs the driver nothing.

R-DRV-38 · In Indonesian, the stage available reads "Aktif" and the stage listed reads "Listed"

Section titled “R-DRV-38 · In Indonesian, the stage available reads "Aktif" and the stage listed reads "Listed"”
  • Status: retired (replaced by R-DRV-48: D79: available's label goes)
  • Example: given a driver whose stage is available, when their page is shown in Indonesian, then the stage reads "Aktif"; a listed driver's reads "Listed".
  • Refusal: none.
  • Who: apps/web's enum labels (D29).
  • Source: D66 (v1's "Aktif" covered both; staff already know "Listed" from v1's onboarding status).

R-DRV-39 · The migration makes a v1 driver in good standing with no car available, with their 30 days counted from cutover

Section titled “R-DRV-39 · The migration makes a v1 driver in good standing with no car available, with their 30 days counted from cutover”
  • Status: retired (replaced by R-DRV-49: D79: approved, from cutover)
  • Example: given a v1 driver in good standing whose last rental ended in July 2026 and who has no car, when the drivers step runs, then they are available in v2 with stage_changed_at at cutover, so the daily job (R-DRV-32) makes them inactive 30 days after cutover at the earliest, not on the first Monday.
  • Refusal: none.
  • Who: the migration's drivers step (data phase).
  • Source: D66 (the data phase's drivers step: the 30 days start at cutover, not at their last return in v1, or many v1 drivers would turn inactive on the first Monday).

R-DRV-40 · A holder of driver:blacklist can't blacklist a driver while they hold a car or have a booked or pending rental; once the car is back or the rental is cancelled, they can

Section titled “R-DRV-40 · A holder of driver:blacklist can't blacklist a driver while they hold a car or have a booked or pending rental; once the car is back or the rental is cancelled, they can”
  • Status: planned
  • Example: given a listed driver whose rental is active, when an admin_driver blacklists them, then it is refused and their stage stays listed; the same while the rental is returning or repossessing, and while it is booked or pending with no car handed over yet. Once the rental is cancelled (R-RNT-18's booking refusal then applies to any new one), or once the car is back (the rental is returned or ended, R-RNT-26, R-RNT-27), the admin_driver blacklists the driver and the driver's stage is blacklisted. A driver with no live rental, or whose rental is paused (they don't hold the car, R-RNT-30), may be blacklisted at once.
  • Refusal: a key named by BE in M3.
  • Who: every holder of driver:blacklist (R-DRV-34). A repossession reaching the limit isn't a call: it blacklists at the repo BASTK, when the car is already back (R-DRV-30).
  • Source: zuki on #263 (2026-10-22: "blacklisted is changed after return car"; asked to choose, blacklisting is allowed only after the return; a booked or pending rental is cancelled first, blacklisting doesn't cancel it); D66 (a blacklist is set with driver:blacklist). A blacklist does nothing to a rental already running (R-DRV-24, R-QUE-08, R-RNT-18 block only what comes next), so the car comes back through D67's lifecycle first.

R-DRV-41 · The migration loads one driver per v1 lead, and never merges two leads; a second lead with a NIK already loaded is an unmatched row

Section titled “R-DRV-41 · The migration loads one driver per v1 lead, and never merges two leads; a second lead with a NIK already loaded is an unmatched row”
  • Status: planned
  • Example: given v1 leads 1042 and 2318 with the same NIK, when the drivers step runs, then lead 1042 becomes one driver with legacy_id 1042 (R-DRV-03), and lead 2318 is listed in migration.unmatched with its reason (R-MIG-04), not folded into driver 1042 and not loaded as a second driver with that NIK (R-DRV-02). The reconcile shows it until it is fixed in v1 or signed (D18).
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: V13's model (one drivers row per person, R-DRV-02, R-DRV-03); D18; R-MIG-04; the Backend Engineer on #281 and #287 (reconcile check 3).

R-DRV-42 · A migrated driver gets no training rows

Section titled “R-DRV-42 · A migrated driver gets no training rows”
  • Status: planned
  • Example: given a v1 driver handed a car in 2025, when the drivers step runs, then driver_trainings holds no row for them, passed or otherwise.
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: D64 (the data phase doesn't make migrated training rows; driver_trainings stays unused until the training flow); #281.

R-DRV-44 · A driver's stage can be inactive, beside V13's stages, and is never available

Section titled “R-DRV-44 · A driver's stage can be inactive, beside V13's stages, and is never available”
  • Status: planned
  • Example: given driver_stage, when its values are read, then they include inactive beside V13's stages and don't include available. A driver in good standing with no car is approved.
  • Refusal: none: this describes the schema.
  • Who: BE edits the foundation migration in place (D11).
  • Source: D79 (#281, zuki 2026-10-26: "use approved and remove available"); inactive is R-DRV-29 (D66). Replaces R-DRV-19; BE renames its two test descriptions in 42_data_phase_schema.test.sql.

R-DRV-45 · When a rental's return starts, the driver's stage follows its reason: on_leave, resigned and suspended to the stage of that name, accident, breakdown and contract_ended to approved

Section titled “R-DRV-45 · When a rental's return starts, the driver's stage follows its reason: on_leave, resigned and suspended to the stage of that name, accident, breakdown and contract_ended to approved”
  • Status: planned
  • Example: given a listed driver, when their return starts with reason breakdown, then their stage is approved; with on_leave it is on_leave, with suspended (Suspend/PM) suspended, with contract_ended approved.
  • Refusal: none.
  • Who: the return function (M5).
  • Source: D79 (accident, breakdown and contract ended give approved where D43 gave available; repossession is R-DRV-30); General Flow DRV-22 → DRV-23. Replaces R-DRV-20.

R-DRV-46 · A driver approved for 30 days with no live rental becomes inactive

Section titled “R-DRV-46 · A driver approved for 30 days with no live rental becomes inactive”
  • Status: planned
  • Example: given a driver whose stage became approved on 2026-10-01 (stage_changed_at) and who has held no rental from pending to returned since (R-RNT-21), when the daily job runs on 2026-10-31, then they are inactive; a rental made on 2026-10-20 stops the count. A driver approved and waiting for a car holds a pending rental and never turns inactive while they wait. A driver on_leave, suspended or resigned for 30 days stays as they are. A driver migrated as approved starts their 30 days at cutover (R-DRV-49).
  • Refusal: none.
  • Who: a daily job (M3), in the pool's date (R-CONV-10).
  • Source: D79 (the month moves from available to approved, counting only drivers with no live rental; D67: pending to returned is live); D66; Syamsul Haris on #159 ("driver become inactive if status not assigned stay for month"). Replaces R-DRV-32.

R-DRV-47 · A rejoin request may come from a driver who is inactive, on_leave, resigned or suspended

Section titled “R-DRV-47 · A rejoin request may come from a driver who is inactive, on_leave, resigned or suspended”
  • Status: planned
  • Example: given an inactive driver, when they ask to rejoin, then the request is recorded for the Driver Team (DRV-25); a listed or blacklisted driver's request is refused.
  • Refusal: a key named by BE in M3.
  • Who: the rejoin request function (M3; its record is #156).
  • Source: D79 (available leaves the list; an approved driver needs none); D66; General Flow DRV-24. Replaces R-DRV-33. A request from an approved driver is under "Not yet a rule".

R-DRV-48 · In Indonesian, the stage listed reads "Listed"

Section titled “R-DRV-48 · In Indonesian, the stage listed reads "Listed"”
  • Status: planned
  • Example: given a driver whose stage is listed, when their page is shown in Indonesian, then the stage reads "Listed".
  • Refusal: none.
  • Who: apps/web's enum labels (D29).
  • Source: D79 (the stage whose label was "Aktif" is removed); D66 (staff already know "Listed" from v1's onboarding status). Replaces R-DRV-38.

R-DRV-49 · The migration makes a v1 driver in good standing with no car approved, with their 30 days counted from cutover

Section titled “R-DRV-49 · The migration makes a v1 driver in good standing with no car approved, with their 30 days counted from cutover”
  • Status: planned
  • Example: given a v1 driver in good standing whose last rental ended in July 2026 and who has no car, when the drivers step runs, then they are approved in v2 with stage_changed_at at cutover, so the daily job (R-DRV-46) makes them inactive 30 days after cutover at the earliest, not on the first Monday. v1's bc status Approved or Virtual with no car maps to approved.
  • Refusal: none.
  • Who: the migration's drivers step (data phase).
  • Source: D79 (the 30 days still start at cutover, as D66 said for available); D66. Replaces R-DRV-39.

R-DRV-55 · The migration makes a v1 driver inactive whose onboarding row is in Approve with an empty rental fee name, whatever the lead's source

Section titled “R-DRV-55 · The migration makes a v1 driver inactive whose onboarding row is in Approve with an empty rental fee name, whatever the lead's source”
  • Status: planned
  • Example: given v1 leads whose onboarding row is in Approve and holds no rental fee name, whatever the lead's source and the row's deduction_frequency (33 on the copy of 2026-10-29: the 32 with an empty frequency and 1803, whose frequency is set; BE confirms), when the drivers step runs, then each is inactive, not approved. They are not rows a rental can be made from, and most of these drivers are not active now. A lead whose own status is Resign keeps the stage that status maps to, and a blacklisted one stays blacklisted (R-DRV-36, R-DRV-43 come first); the rule does not force inactive on them. The case sits in D73's order after the blacklists and the repossession groups (so R-DRV-37 and its re-approved and on-leave cases decide first for a repossessed driver) and before v1's lead status and the onboarding status's mapping to approved. A driver who asks to come back goes through the normal rejoin (R-DRV-22, R-DRV-47). A driver in Approve whose fee name is set is not this case, and keeps the stage v1's status gives them. A driver who is in fact active comes back through the normal rejoin. Their Approve row loads no rental (R-RNT-64).
  • Refusal: none.
  • Who: the migration's drivers step (data phase row 5).
  • Source: zuki on #369 (2026-10-29: the 32 are from the data before v1, "mostly not active now", as the CTO records; and 1803, a resigned driver, "considered data before v1"), then zuki on #369 (2026-10-29: "Inactive, no rental, all 33", after BE-DP-36's first run found that the source "Migrasi data lama" matches 1 of the 33 rows, the others coming from other sources, so the rule keys on the empty fee name alone); D73; D69. So all 33 are inactive, including a lead on Cuti or Suspend, except a Resign or blacklisted lead (above). BE counts how many of R-RNT-33's cancelled rows (652 on the copy of 2026-10-29, D83) are among the 33; those load no rental (R-RNT-64 wins).

R-DRV-56 · A driver's platform account may carry a service type, regular, comfort, luxe or prestige, and may leave it empty

Section titled “R-DRV-56 · A driver's platform account may carry a service type, regular, comfort, luxe or prestige, and may leave it empty”
  • Status: planned
  • Example: given a driver with a Grab account (R-DRV-12), when its service type is set to prestige, then it is saved; with none, it stays empty and the limits fall back to the model's default (R-MON-66). A value outside the four is refused. v1 holds no service type, so the migration leaves every account empty.
  • Refusal: none: invalid_text_representation (22P02) on a value outside the enum.
  • Who: the writers of driver platform accounts; who sets it is not decided (see the Not yet a rule list).
  • Source: D76; D103 (four tiers, 2026-11-17); zuki on #264 (2026-10-22 and 2026-11-02).