Everything that shipped — bugs included
Rendered at build time from docs/CHANGELOG.md in the product repo. The "Fixed" sections stay on the record — a changelog with only features is marketing.
2026-11-27 — Maps keep working when a key is refused; wallet on first open
- Routes and addresses survive a half-enabled Google key. A Google key allowed to use Places but not the Routes or Geocoding API drew every route as a straight line and labelled every pin with its coordinates. Now OpenStreetMap answers when Google or Mapbox refuses (OSRM for the route, Nominatim for the address and for search), and the log names the API to switch on. See Maps, address search and routing.
- A new rider's wallet opens without an error. The wallet screen asks for the balance and the history at once; on a rider's first visit both created the wallet, and the history answered 500. The second request now reads the wallet the first one made.
2026-11-26 — Fixes from a full run on a Lithuanian install
- Only verified drivers go online. A driver needs every required document approved and, where the market asks, the background check passed, or an admin's explicit override. Before, an approved car was the only gate, so a car approved ahead of its driver let an unchecked driver take riders. The driver app says why, in all 15 languages.
- First boot takes the country's currency, language and time zone. A new
install with
DEFAULT_COUNTRY=LTshowed rupees on Indian time until someone finished onboarding. It now starts in euro on Vilnius time. - The VAT line names the market's own reason. On commission-based VAT the
invoice used to say "passenger fare exempt" everywhere. Lithuania now says
"ride supplied by the driver", and each market can set its own note
(migration
1700000214000-LithuaniaCommissionNote). - Co-op: record shares by any local number. "8 612 34567", "612 34567", "00370…" and "+370…" all find the driver.
- Phone fields follow the installation. The co-op, data-protection and booth forms showed Indian or Saudi sample numbers. Booth staff numbers typed the local way are saved in international form.
- Flags for every country on the Tax and Settings pages. Countries outside the first five had a blank flag.
- No auto-rickshaws in Vilnius. A new install in a country where riders
book cars only (Lithuania, the Gulf, Western Europe, North America,
Australia and New Zealand, Chile, Argentina, South Africa, Morocco,
Tunisia) switches off the Bike and Auto ride types when it is set up.
You can turn them back on in Admin → Pricing. The Lithuanian market no
longer carries prices for them (migration
1700000215000-LithuaniaCarsOnly). - Ride types in the app's language. The stock Economy, Sedan, SUV, Bike and Auto types are translated in the rider and driver apps, for example "Ekonominė", "Sedanas" and "Visureigis". Names an operator chose are shown as typed.
- Decimals the local way: "5,9 km" and a "4,8" rating in languages that write a decimal comma.
- Lithuanian wording: sentences that put a person's name where Lithuanian would change its ending ("Kaip sekėsi su Jonas Jonaitis?") are rephrased so the name fits as written.
- The rider home greets "Good evening" after midnight, not "Good morning", and the driver's vehicle chip no longer falls back to an English "Vehicle".
- A malformed id is a 400, not a 500. An id that is not a uuid, such
as
/admin/documents/undefined/approve, now gets "Not a valid id" (invalid_id) instead of an internal server error, and stays out of the error reports. - Driver documents named in Lithuanian when the console is in Lithuanian, for example "Vairuotojo pažymėjimas" and "Techninė apžiūra", instead of the English name with the local term in brackets.
2026-11-26 — Lithuania, Lithuanian, and maps your way
- Lithuania (LT) market. Euro, Vilnius time, +370 numbers, a Vilnius map
centre, 112, IBAN payouts, Vilnius-level fares (€1 base, €0.40/km,
€0.20/min, €2.25 minimum), and 21% VAT seeded on the platform's
commission. Cards, Apple Pay / Google Pay, PayPal and cash. An existing
installation gets the market (switched off) from migration
1700000213000-LithuaniaMarket. Guide: docs/lithuania. - Lithuanian everywhere. The rider, driver and fleet apps, the console, push notifications, and the sign-in, SOS, booth and patient SMS. The fleet app counts in Lithuanian's plural forms (1 kelionė, 3 kelionės, 12 kelionių).
- Two new driver documents: a self-employment certificate (Lithuania's individual activity certificate) and the car's technical inspection. A Lithuanian driver is asked for ID, licence, ride-hailing permit, certificate, registration, insurance and inspection.
- Phone numbers with a trunk 8. Every phone field takes "8 612 34567" and sends +370 612 34567.
- Address search and routes chosen separately, among Google, Mapbox and OpenStreetMap, in Admin → Providers → Maps, with your own Nominatim and OSRM servers if you run them. Mapbox is new: Search API v6 for addresses, Directions v5 for routes. Guide: docs/maps-and-routing.
- Fixed: the Google Maps key typed in Admin → Providers was never read; search and routing used only the environment key.
- The fleet app names the driver permit, the certificate and the inspection instead of "Document".
2026-11-26 — One-click demo sign-in
- Hosted demo: "Open the live demo". When
NEXT_PUBLIC_DEMO_PHONEis set, the console's sign-in page leads with one button. It requests the demo code, reads the on-screen code and signs in, so a visitor lands on the dashboard without typing a number or a code. The number and copy button stay below it, and the staff sign-in sits under an "or use a staff number" divider. Strings in all 15 console languages. Installs without a demo phone see no change.
2026-11-25 — Scaling out, measured
- Several API instances are safe.
- One scheduler leader runs the cron jobs (a Redis lease;
RUN_SCHEDULER). - Dispatch declines, accepts and fare raises reach the instance that owns
the ride's offer loop (
dispatch:control). - Broadcasts are delivered by a BullMQ worker (
RUN_WORKERS). The log shows delivered/total.
- One scheduler leader runs the cron jobs (a Redis lease;
install/docker-compose.multi.yml: N API replicas behind nginx (keepalive,resolve) plus one worker. Guide: docs/deployment, "Scaling out".- GPS path. A driver without a live ride no longer runs the odometer and breadcrumb statements on every fix. In the load test, Postgres CPU at 3,000 drivers fell from ~450 % to ~120 %.
- Load test (
tools/loadtest, k6):- setup: everything on one 12-CPU laptop;
- 3,000 drivers online on live sockets sending GPS every 5 s;
- result: 228,360 fixes, all succeeded, p95 140 ms.
- Full table and limits: docs/deployment, "Load test".
- Console: pages no longer call settings-only endpoints for roles without that permission (dispatch, ONDC, pricing, data protection, payouts, tax).
2026-11-24 — Security pass before launch
- Hosted demos no longer show the sign-in code for back-office accounts.
- With
ALLOW_DEV_OTPon a production server, the sign-in code still appeared on screen for any number. That included the bootstrap super_admin, whose number is predictable and printed in the seed output. - The on-screen code and
000000now work only for end-user accounts (rider, driver, fleet, corporate, franchise, booth agent) and the published shared demo numbers (OTP_SHARED_PHONES). - Staff accounts still sign in with the code from the SMS provider, which on a demo is the server log.
- With
- The published demo login holds
demo_operator, notadmin.- The new role has every
adminpermission except settings, market and staff management.--demo-operatorre-derives it on each run and takesadminoff an existing demo login. - With
admin, any visitor could rename and recolour the demo, swap its providers or rewrite a market for everyone after them. The demo page had always said these were reserved; now they are.
- The new role has every
- Dependency fixes (no new packages):
proxy-addr: IP spoofing through the trusted-proxy check;socket.io-parserandengine.io: denial of service;multerandbody-parserpinned to fixed releases throughoverrides;axiosandfollow-redirectsin the console.
- Console: image optimizer off. Nothing in the console uses
next/image. With the optimizer off,/_next/imageis not served, which closes the image-optimizer advisories open against Next 14.
2026-11-02 — UAE e-invoicing: Peppol PINT AE and VAT on commission
Guide: docs/E-INVOICING.md, section "United Arab Emirates".
- VAT on commission. The UAE market records 5% VAT on each ride's
platform commission (
vatengine). The fare stays exempt as local passenger transport. Existing UAE installs are switched by the migration. - Monthly B2B e-invoices (Admin → Tax → UAE e-invoicing):
- companies are invoiced for their employees' rides (exempt), and fleets for the commission on their drivers' rides (5%);
- invoices are built in PINT AE UBL, checked, and numbered gaplessly;
- each invoice can be downloaded as XML.
- ASP connector (Admin → Providers → UAE e-invoicing ASP):
- send, follow the status, and see the ASP's message on a refusal;
- fix and resend a rejected invoice; failed sends are retried.
- Seller and buyer details: TRN, address and emirate.
2026-11-02 — Licensed taxis: Taxi ride type for taxi franchises (UAE)
Full guide: docs/taxi-franchises.md.
- Franchise-bound ride type. Admin → Pricing → Licensed taxi ties a ride type to taxi franchises (fleet partners). Only their cars are dispatched for it, and their drivers need one of their taxis to go online. In the UAE a franchise's taxi may carry a taxi plate.
- Taxi meter. At the drop-off the driver enters the meter fare. Within the allowance (10% by default) it is the fare. Above it, the app's fare is charged and the trip is flagged. Below it, the meter is charged and the trip is flagged.
- Connected meter (Admin → Providers → Taxi meter). A franchise's meter system can report the fare. If it is unavailable, the driver's reading is used.
- Reports:
- Admin → Reports shows trips, fares and meter checks per franchise, and the flagged trips;
- the partner app shows a meter badge and a Taxi meter card;
- the rider receipt and the admin trip page show a meter adjustment line.
- Rides now record the car they were completed in.
2026-11-02 — Ride subscriptions (Careem Plus style)
Full guide: docs/ride-subscriptions.md.
- Plans (Admin → Subscriptions):
- a fee from the rider's wallet each period, with any tax inside;
- a percentage or fixed ride discount, with per-ride and monthly caps;
- free late cancellations;
- a free trial for a first subscription;
- names in the market's languages.
- Bank and partner codes give free days, once per rider, with a limit and dates.
- Rider app:
- Menu → Subscription to subscribe, apply a code, and see savings and what is left this month;
- cancel (runs to the period end) and keep;
- an estimate on the confirm screen and the discount on the receipt;
- "Free with your subscription" on the cancel sheet.
- Renewal from the wallet every 10 minutes. An empty wallet leaves the subscription payment due (no benefits) for 3 days, then it ends. Reminders before a trial ends. Pushes in 11 languages.
- Report: subscribers by status, monthly recurring fees, net of discounts, churn and trial conversion; subscriber CSV; end now with a note.
- Fixed:
- a receipt for a ride with a promo totalled the pre-discount tax invoice; it now totals what the rider paid, with "Includes tax";
- insurance-claim pushes showed placeholders in braces ("{Acko}").
2026-11-02 — Fleet payroll: salary plus commission (UAE)
Full guide: docs/fleet-payroll.md.
- Salary settlement model. On a salaried driver's ride, the whole earning after commission goes to the fleet. The fleet pays the driver by payroll.
- Pay scheme per driver (partner app → driver → Change salary): base salary, commission on revenue, and a bonus at a monthly target.
- Payroll screen (partner app → Earnings → Payroll):
- month by month: revenue, target progress, pay and cash still to hand in;
- deductions with a reason;
- a CSV export for the company's payroll or WPS upload.
- Part months pro rata. The base salary is paid for the days in the fleet, and leavers stay on their last month. Pay never goes below zero; the remainder shows as a shortfall.
- Admin: a read-only Payroll card on the partner page.
2026-11-02 — Driver payouts by bank transfer (Saudi SARIE)
Full guide: docs/bank-payouts.md.
- IBANs checked on every withdrawal: the country's length, the mod-97 check digits, and the market's own country. The driver app checks as the driver types and names the Saudi bank ("✓ Al Rajhi Bank").
- Bank batch file. Admin → Payouts → Create bank file puts every pending IBAN payout into one ISO 20022 pain.001 file for the bank's bulk upload; Mark paid settles the whole batch. The paying account is set in Admin → Providers → Bank batch file.
- Nightly cash-out. A driver can have their whole balance requested to a saved account around 02:00, market time.
- Netting shown. The wallet says what the app paid in the last 30 days and how much cash kept from riders came off the balance.
2026-11-02 — Airport pickups by terminal, and a cancellation limit (DXB)
Guide: docs/airports.md, sections "Terminals and walking instructions" and
"Who may pick up".
- Pickup points. Each point can carry a terminal and walking instructions per language (admin shows English plus the market's languages, typed right-to-left where needed).
- Rider app. Points are grouped by terminal. The chosen point shows its instructions in the rider's language and a "Walking directions" link to the phone's maps.
- Cancellation limit per airport. Max % of accepted trips cancelled, over N days, from M accepted trips. A Fill DXB rule preset sets 20% / 30 days / 10 trips. Drivers over the limit stay out of the line and never get its pickups; their home screen says why.
- Fix: the driver login's phone field read out a missing translation key
(
phonePlaceholder) to screen readers. It is now translated in all 14 languages.
2026-11-02 — Drivers' monthly income statements (Saudi HRDF)
Full guide: docs/income-statements.md.
- One statement per driver per month, read off the ledger for the
market's calendar month:
- trips, fares, commission, fleet share, tips, incentives and income;
- a SHA-256 reference;
- closed by an hourly job once the month ends;
- never changed afterwards (a database trigger refuses edits and deletes).
- Market setting
incomeStatements. On in Saudi Arabia, with an HRDF estimate (40% of income, up to SAR 3,000), shown as an estimate only. - Driver app. Menu → Monthly statements: this month so far, every closed month, Share as CSV, and Dispute with a note. The operator's answer shows on the month.
- Admin. Tax page → Monthly income statements: every driver's month,
Close month, Export CSV (with the national ID and the hash), and answers to
disputes. Requires
tax.view/tax.issue.
2026-11-02 — Seasonal restricted zones (the Hajj season in Makkah)
Full guide: docs/seasonal-restricted-zones.md.
- Dated zones. Any service, restricted, surge, airport or region zone can count only between two times, set in the market's clock. Admin shows the Umm al-Qura date beside each, plus a "Starts / Until / Season over" chip.
- Restricted zones now say what they restrict:
- pickups refused or allowed (refused, as before, by default);
- drop-offs allowed, warned or blocked;
- an optional permit exemption with its name. A Fill Hajj season (Makkah) preset sets this up.
- Booking refuses a blocked drop-off or stop (
dropoff_restricted). For a permit-only one, it asks for the rider's declaration (dropoff_permit_required) and stores it on the ride. - Rider app. A card on the confirm screen states the rule and date, with a permit checkbox. Book stays disabled until the box is ticked, and on a blocked drop-off.
- Driver app. A season banner on home, "Rider declared: …" on the offer, and "check the permit" on the trip until pickup.
2026-11-02 — Cash change to the rider's wallet
Full guide: docs/cash-change.md.
- Market setting (Admin → Markets → Payments → Cash change to wallet): on, the most change per trip, and how long after drop-off. On by default in Saudi Arabia and the UAE (SAR/AED 50, 30 minutes).
- Driver app. After a cash trip: "Collect SAR 10.00 in cash" and an Amount received box. The change goes to the rider's wallet, with a live preview and refusals for "not more than the fare" and "over the cap".
- Money. One ledger entry (
cash_change), once per ride: the driver's wallet is debited the change, the rider's wallet credited. Fare, commission, tax and earnings are unchanged. - Rider app. A push notification in the rider's language, a note under the receipt total, and a wallet line "Change from a cash ride".
- Admin. Both legs on the trip's Settlement panel.
2026-11-02 — Toll gates (Dubai Salik)
Full guide: docs/toll-gates.md.
- Toll gate zones (Admin → Zones → type "Toll gate"):
- a network name, a price per crossing, and time windows that override it;
- a Fill Salik prices preset (check it against Salik's current table).
- Estimate. The gates on the road route, priced at the trip's local time. Where gates are drawn they replace a ride type's flat default toll. One routing call per estimate screen.
- Settlement swaps the quoted toll for the gates the car's GPS track crossed: an avoided gate is refunded, an unquoted one is charged. With no GPS track, or unreadable crossings, the quoted toll stands.
- Money. Tolls stay a pass-through: repaid to the driver in full, no commission, outside the tax invoice.
- Rider app. A toll note on the confirm screen, and "Salik × 2" lines on the receipt that add up to what was paid.
- Driver app. "Salik × 1: AED 4.00 repaid to you" under the trip in History.
- Admin. "Salik × n" rows on the trip's quoted → final view; the zone list shows each gate's network and price.
2026-11-02 — Regulated app tariffs (Dubai RTA e-hail fares)
Full guide: docs/regulated-tariff.md.
- Fare card tariff (Admin → Zones → a region → ride-type rules):
- a booking fee;
- time windows, by weekday and time, that set the booking fee and flagfall;
- "regulated: no surge, no offers";
- whether the minimum includes the booking fee;
- a Fill Dubai RTA fares preset (check every figure with the RTA).
- Pricing at the pickup's local weekday and time:
- the booking fee is never multiplied;
- a regulated fare has no surge or zone multiplier;
- the booking fee is frozen into the quote and settles as its own line.
- Offers and raises on a regulated fare are refused (
fare_regulated). - Rider app. "Includes a peak-hours booking fee of AED 7.50…" on the confirm screen, and the offer control is hidden for regulated types. The receipt shows the booking fee as its own line, split out of a fixed quote.
- Admin. Booking-fee row on the trip's quoted → final view.
2026-11-02 — Drivers through licensed companies (UAE: RTA limousine model)
Full guide: docs/fleet-companies.md.
Market rule (UAE on by default). A driver goes online only when all of these hold:
- they are a member of a verified, active fleet company;
- the company's trade licence and operator permit are on record and in date;
- they drive one of that company's cars;
- the car's plate is an allowed category (UAE: limousine).
Drivers who stop qualifying are signed out within 10 minutes, with a reason in the app and a push message.
Driver permit. The RTA permit is a required UAE document, uploaded with its number and expiry. One number can be approved for one driver only.
Partner app.
- Company licences on the Account screen.
- A red banner when they block drivers.
- Plate category on vehicles.
Admin.
- Markets → KYC card for the rule.
- Partner page: company licences card.
- Vehicles: plate category.
- KYC review of the permit number.
Fixed. The driver app now re-reads whether it is online when it comes back to the front. A server sign-out (hours limit, fleet rules) sent while the phone was asleep used to leave a green "online" that received no work.
Migration 129.
2026-11-02 — Rides paid by card (mada, Visa, Mastercard) and STC Pay top-ups
Full guide: docs/card-rides.md.
- Rider app. Card in the payment picker. At booking, a little over the
fare is held on the card through Moyasar's form with 3-D Secure. The final
fare is taken when the trip ends and the rest released. Nothing is charged
for a ride that never happens.
- The hold covers the ride type's flat no-show fee.
- A no-show or late-cancel fee is taken from the hold. A free cancel, or a ride no driver took, releases it.
- Tips on card rides come from the wallet.
- Driver app. "Paid by card in the app. Don't collect cash." on the trip, and the same for wallet rides.
- Admin.
- Markets → Payments → Rides paid by card: on/off, the margin held, and how far ahead a card ride may be booked.
- Trips → Card payment panel: the amount held, taken and released, and Try again when the gateway refused.
- Wallet top-up. STC Pay, with mada listed first among the cards.
- Fixed. The Moyasar form never rendered ("Form configuration issue")
because its callback was not an
asyncfunction, so Saudi top-ups could not be made at all. - Migration 128. Apple Pay (native sheet) is not built yet.
2026-11-02 — Data protection: transfer register and a person's copy of their data (PDPL)
Full guide: docs/data-protection.md.
- Admin → Data protection.
- The market's residency rule. Saudi Arabia is now required, as India already was.
- A transfer register of every integration: the data it receives, whether it is in use, where it goes, the recorded basis and the assessment date. In-use transfers abroad without a basis and an assessment are flagged.
- Find a person and download a full copy of their data, with a log of every copy given.
- Apps. "Your rights" (see, download, correct, delete) now shows in every market. It used to show only where the app asks for consent. Download my data opens a 15-minute link to the full copy.
- Deployment guide. New section on keeping personal data in the country.
- Migration 127.
2026-11-02 — ZATCA Phase 2 e-invoicing (Saudi Arabia), validated on ZATCA's sandbox
Full guide: docs/zatca-phase2.md.
- Admin → Tax → ZATCA e-invoicing. Onboard the platform with the FATOORA OTP. RideKit then creates the key and CSR, obtains the compliance certificate, passes the 3 compliance documents and obtains the production certificate.
- Every ride invoice:
- a stamped UBL 2.1 simplified invoice (XAdES, secp256k1);
- on the ICV/PIH chain;
- with the 9-tag QR;
- reported to ZATCA by a minute cron with retries. Rejections show with ZATCA's messages.
- Void issues a credit note on the chain.
- Rider receipt now shows the invoice QR.
- Removed: the old ZATCA "reporting" call, which sent the QR instead of the signed XML, and its Providers fields.
- Migration 126.
2026-11-02 — Airports: permitted drivers only, designated pickup points (Saudi)
Full guide: docs/airport-permits.md.
- Airport zones get two switches:
- Pickups only at these points. A pin drop is refused, from any app or channel.
- Only drivers with an airport permit. Pickups are offered only to drivers with an approved, current Airport permit document. Drivers without one are kept out of the airport line, and their app says why.
- Airport permit is a new driver document type, offered in Documents wherever an airport asks for it.
- Migration 125.
2026-11-02 — Saudi Arabia: Nafath identity and Absher consent at driver signup
Full guide: docs/nafath-absher.md.
- Driver app. A new Nafath card. The driver enters their National ID or Iqama and taps Verify with Nafath. A large number and a countdown show the number to pick in the Nafath app, and the card confirms on its own. The driver also gives consent to the Absher background check there.
- Admin.
- Providers → Nafath (APP-ID and APP-KEY, from Elm).
- Markets → KYC → "Identity confirmed before verification", on for SA.
- Drivers → KYC lists Nafath and Absher checks. A check recorded by hand can be an identity check, and recording the Absher result closes the driver's consent.
- A confirmed Nafath number is written onto the driver's national ID record, with its holder. Elm's callback only prompts the server to ask Nafath again.
- Migration 124.
2026-11-02 — Compliance: reporting to TGA, operator licences, Saudi driver share
Full guide: docs/regulator-sync.md.
- Admin → Compliance. The page shows:
- whether records are reaching the regulator;
- counts of sent, waiting and refused drivers, vehicles and trips;
- refused records with the regulator's answer and Send again.
- Reporting. Records go to the endpoint set under Admin → Providers →
TGA (Saudi Arabia).
- Every 5 minutes, changed drivers, vehicles and finished trips are queued, and only when the record differs from the last one sent.
- Every minute, queued records are sent, with retry and backoff.
- Trips carry no rider details.
- Licences and certificates. TGA licence, CR, GOSI, Zakat and trademark certificate, each with number, dates and a private copy. Each shows Valid, Expiring soon (30 days) or Expired, and missing required ones are flagged.
- Who is driving. The share of active drivers with a Saudi National ID on file.
- Migration 123.
2026-11-02 — Driver selfie check before going online (Saudi TGA facial verification)
Full guide: docs/driver-face-check.md.
- Driver app. When a selfie is due (Saudi Arabia: every 24 hours), Go online opens Confirm it's you. The front-camera selfie is compared with the approved profile photo.
- Comparison. AWS Rekognition (Admin → Providers), signed with SigV4 and no SDK. Without keys, or without a profile photo, the selfie waits for a person, and the driver may drive meanwhile unless the market says wait.
- Admin → Face checks. The selfie and the photo on file, side by side. Approve, or reject with a note the driver reads.
- Admin → Markets → KYC. Frequency, match needed, keep-for days, and whether review blocks driving. Selfie images are deleted after 30 days and the result is kept. Migration 122.
2026-11-02 — Saudi Arabia: citizens-only drivers, read from the national ID
Full guide: docs/driver-eligibility.md.
- Admin → Markets → KYC → Who can drive. A Citizens only switch, on by default for Saudi Arabia.
- Driver signup. The national ID is uploaded with its number. An Iqama number (starts with 2) or a mistyped one is refused as it is typed, and again by the server.
- Review. The number and holder show on the KYC row and can be corrected. Approval is refused for a resident and for a number already approved for another driver, in any market. A resident's ID blocks verification.
- The number is stored only where the rule is on (never India's Aadhaar).
2026-11-02 — Metro first and last mile: station shortcuts, fixed feeder fares, ticket link
Full guide: docs/metro-first-last-mile.md.
Admin → Zones → Metro station. Set up for each station:
- line and colour;
- feeder radius;
- fixed fare per ride type;
- the metro's ticket link.
Migration 121 adds the
metro_stationzone type.Rider search. "Metro stations nearby" chips, closest first, each marked "Fixed fare" where it has one.
Fixed feeder fare. A trip between a station and anywhere within its radius costs the fixed fare, and the confirm screen says so. It is quote-locked: only waiting time and a real detour add to it.
Receipt. A trip that ends at a station shows "Buy your metro ticket".
2026-11-02 — ONDC: rides from India's open network (seller side, TRV10)
Full guide: docs/ondc.md.
- Rides from other apps. Buyer apps on the network (Paytm, Google Maps,
state apps) can search, quote, book, track, cancel and rate rides that your
drivers do.
- Riders are found or created by phone, and the ride PIN is the start OTP.
- The driver collects payment at the end.
- Every change of the ride is pushed to the buyer app.
- Signed both ways. Requests are checked against the ONDC registry (ed25519, BLAKE2b-512 digest). Callbacks are signed with our key. The subscribe challenge and the site-verification page are answered.
- Admin → Open network. Shows:
- whether rides are being taken;
- registration details and public keys, with a Make keys button;
- counts for the last 30 days, and failed messages in the last 24 hours;
- each transaction with its ride and full signed message log.
- Admin → Providers → ONDC. Subscriber ID and URL, key ID, environment, registry, keys, request ID, provider name, and the on/off switch.
- Migration 120:
ondc_orders,ondc_messages.
Fixed
- The driver's trip screen showed "Your rider" instead of the rider's name. It loads the ride by id, and that response had no rider name; it now does, as the active-ride response already did.
2026-11-02 — Complaint desk: 48-hour acknowledgement, NCH/CCPA tags, grievance officer in Help (India)
Full guide: docs/complaint-desk.md.
- Acknowledgement clock. A complaint, dispute or lost-item report must be
acknowledged within
complaintSla.ackHours(India: 48). Its row says "Not acknowledged in time" once that passes. It counts as overdue and is escalated like a late resolution.- Admin → Markets → KYC: new field "Hours to acknowledge a complaint".
- Regulator tags. A ticket can carry where else the complaint sits (NCH,
CCPA, consumer commission, police, other), with their docket number and the
date it reached the operator. Tagging moves it to high priority.
- Safety & SOS: a "With a regulator" card and a "With NCH, CCPA or a forum" filter.
PATCH /safety/incidents/:id/escalation; migration 119.
- Refund to source. A complaint links to the rider's page, where the charge can be refunded to the card or UPI it came from.
- Grievance officer on Help. The rider and driver apps show the officer named in the market's privacy settings, with email and phone, in 14 languages.
2026-11-02 — Per-ride accident insurance for riders (India)
Full guide: docs/ride-insurance.md.
- Admin → Markets → Pricing → Ride insurance:
- fields: insurer, cover, master policy number, claims phone and email, policy link;
- refused without an insurer and a cover;
- every ride booked while it is on is covered (
rides.insured).
- Rider app:
- the cover on the confirm screen;
- "This trip was insured · Make a claim" on a covered trip;
- a claim screen with the cover, the claim's status and the form.
- Strings are in 14 languages.
- Who can claim: a covered trip of the rider's own that started, within 30 days, with one open claim per trip.
- Admin → Insurance claims:
- claims move from New to With the insurer (the insurer's reference is required), then to Settled (with the amount) or Not accepted (with the reason).
- The rider is told by push in 11 languages.
- Strings are in 15 languages.
- Migration:
1700000118000-RideInsurance.
2026-11-02 — Login-hour limits: rest period, driver view, report (India)
Full guide: docs/login-hour-limits.md.
- Region rule
hours.minRestHours(Maharashtra: 10):- after reaching the limit, a driver rests that long before going online;
- a driver signed out rests from that moment, one who stopped at the limit rests from when they went offline.
- The refusal names the time, in the driver's language.
- Every time the limit is reached (a sign-out or a refusal), it is
recorded in
driver_hours_cap_events. - Driver app home:
- "Logged in 9h 20m of 12h · 2h 40m left";
- "limit reached";
- "Rest until Mon 8:24 AM".
- Strings are in 14 languages.
- Admin:
- the rest field and a chip on regions;
- Reports → Login-hour limits: per region, the latest events, and a CSV.
- Strings are in 15 languages.
- Migration:
1700000117000-LoginHourEvents.
2026-11-02 — EV share against state targets, and electric-only rides (India)
Full guide: docs/ev-share.md.
- Region rule
evTarget:- a percentage, a date, and optionally one ride type;
- edited in Admin → Zones, and shown as a chip.
- Admin → Reports → EV share:
- each region's working fleet (last 30 days) against its target: met, behind or overdue;
- EV trips, each fleet, and overall.
- A car whose fuel isn't recorded counts as not electric.
- Partner app:
- fuel type on add and edit vehicle;
- the fleet's electric share and unrecorded count on Vehicles.
- Electric only:
- a market switch (off by default);
- a rider switch on the confirm screen, at the same price;
- dispatch offers the ride only to electric cars;
- a "⚡ Electric only" chip on the driver's offer.
- Strings: 15 admin languages, 14 app languages.
- Migration:
1700000116000-EvOnlyRides.
2026-11-02 — Intercity route fares and the drive back (India)
Full guide: docs/intercity-routes.md.
- Route fares (Admin → Pricing → Intercity):
- a city pair, each end a centre and a radius, both ways by default;
- a fixed one-way fare per vehicle type;
- the route's own toll and permit.
- The route fare replaces per-km pricing for one-way trips between the two cities. Round trips stay per km. Strings are in 15 languages.
- Rider app: the quote shows "Mumbai → Pune · fixed fare" as one line, with the toll, permit and night lines below.
- Driver app:
- every one-way offer and the journey screen show the part of the fare that pays for the empty drive back;
- a route-priced trip shows its route.
- Strings are in 14 languages.
- Fixed on the way: an intercity trip's toll and state permit were
inside the commissioned fare, so the driver lost 20% of every toll. They
are now recorded on the ride as pass-through (
rides.toll_minor) and repaid in full, as city tolls are. - Migration:
1700000115000-IntercityRoutes.
2026-11-02 — Fleet rent and dispatch fairness (India)
Full guide: docs/fleet-rent.md.
- Rent per car:
- a car can have its own rent, daily or weekly;
- a fixed-rent driver on it pays that, after their own deal and before the fleet's default;
- every charge records the car.
- Rent paid outside the app: the owner records cash, UPI or bank rent on
the driver's page. It clears that much of the driver's debt in the ledger
(reason
lease_payment). - Partner app:
- a "Drivers behind on rent" card on Home, and the list it opens;
- a Rent section on each driver: rent, what they owe, charges with the car, payments, and Record payment;
- car rent on each vehicle.
- Driver app:
- a Fleet rent card on the Wallet;
- a rent statement;
- payments are named in the transactions.
- Strings are in 14 languages.
- Admin → Reports → Dispatch fairness: fleet against independent drivers per hour online — offers, acceptance, trips and earnings (mean and median); a verdict; a CSV of every driver; up to 31 days. Strings are in 15 languages.
- Fixed on the way: fleet rent was dated by the UTC day. India's 2 November rent, billed at 5:30 AM IST, read "1 November". It is now the market's date.
- Migration:
1700000114000-FleetRent.
2026-11-02 — DigiLocker driver KYC (India)
Full guide: docs/digilocker.md.
- Driver app:
- A "Get your documents from DigiLocker" card on onboarding and on Documents, shown once DigiLocker is set up.
- One consent in the browser brings in the Aadhaar eKYC, the driving licence and the RC.
- The app's
digilockerlink says how it went, in 14 languages.
- Import:
- OAuth 2 with PKCE, and a one-time state that lasts 15 minutes.
- The Aadhaar goes into the market's identity slot (
id_proofin India). - The stored Aadhaar XML has the photo removed and keeps only the last four digits.
- Only the licence (
DRVLC) and RC (RVCER) are fetched from the locker.
- Approval:
- Documents are approved as the issuer's record only when the Aadhaar name matches the driver's profile.
- A driver with no profile name yet takes the Aadhaar's name.
- Otherwise they wait for an operator: an Aadhaar in another name, or no Aadhaar in the locker.
- Admin:
- KYC rows show "DigiLocker · issuer-verified", the issuer, the Aadhaar's last four digits, and a name mismatch. Strings are in 15 languages.
- Providers has a DigiLocker section: client ID and secret, environment, callback, app return link, and API base URL.
- Fixed on the way: the driver KYC page logged a missing
training.detailsHelp_message on every load, from the closed check-details modal. - Migration:
1700000113000-DigilockerSessions.
2026-11-02 — Prepaid booths (India)
Full guide: docs/prepaid-booths.md.
- Counter (Admin → Prepaid Booths,
booth.book):- Sell a ride to a walk-in rider: phone (account created if new), a destination searched near the booth, every ride type at its fixed fare, paid in cash, UPI or card.
- A printable slip with the PIN.
- An SMS ticket with the PIN and a live link to the car (11 languages).
- Today's sales with the car each got, and takings by method.
- Money:
- payment method
prepaidsettles exactly the fare sold (no meter); - it is debited from the new
booth_clearingaccount; - there is no driver cash entry.
- payment method
- Driver app: a "Prepaid" chip on the offer, and a "don't take money" banner on the trip.
- Setup (
booth.manage):- booths with a location;
- staff by phone, given the
booth_agentrole; - open/close and remove;
- a takings report per booth, day and method, with refunds (CSV).
- Fixed on the way:
- Four admin reports (welfare levy, TDS, airport fees, booths) nested a
<table>insideTableCard's own table. The result was a hydration error in the console. - The console asked
/settingson every page, a 403 for every staff role withoutsettings.manage. It is now only the fallback when/brandingfails.
- Four admin reports (welfare levy, TDS, airport fees, booths) nested a
- Migration:
1700000112000-PrepaidBooths.
2026-11-02 — Airports: fee, driver queue, pickup points (India)
Full guide: docs/airports.md.
- Who pays the airport, set per airport zone:
- The driver pays at the gate (India's default): the fee goes to them in full.
- The operator pays the airport: the fee is held in the new
airport_fee_payableaccount. - Either way it carries no commission, no fleet share, and stays outside the fare-based tax invoice.
- Fixed on the way: commission was taken on tolls and airport fees.
- Tolls (which the driver pays at the plaza) are now repaid to the driver in full.
- The offer card's take-home figure uses the same rule.
- Driver queue at holding areas:
- a new
airport_holdingzone type; - a sweep every 20 s keeps the line;
- terminal pickups go down the line before the nearest drivers;
- a decline sends the driver to the back;
- a lapsed offer is forgiven once;
- a short airport trip (< 8 km) earns a 60-minute way back to the front;
- a place ends as soon as the driver takes any ride.
- a new
- Pickup points:
- named spots per airport, which the rider must choose;
- the booking moves to the spot, and the address names it.
- Driver app: a card with the place in line, or the short-trip pass.
- Rider receipt:
- "Includes toll" and "Includes airport fee" lines;
- the total adds them back to the invoice total. It had shown only the invoice, which was ₹150 short.
- The fare split (Brazil) shows an operator-paid airport fee as its own share.
- Admin:
- airport and holding-area settings in Zones, with chips;
- a live queue view;
- an Airport fees report (owed vs repaid, CSV) on Tax Invoices.
- Strings: 15 admin and 14 app languages.
- Migration:
1700000111000-AirportPickups.
2026-11-02 — Trip audio recording (India safety toolkit, part 2)
Either person on a ride can record its audio for their safety; the other is
told. On by default for India, off elsewhere until the operator turns it on.
Full operator guide, store declarations and legal notes:
docs/safety-audio-recording.md.
- Market setting
rideRecording(Admin → Markets → KYC → "Trip audio recording"): on/off, days kept (1–90, default 7), longest recording (10–480 minutes, default 120), with a note to confirm with local counsel. - Both apps: "Record trip audio" on the trip screens while a driver is
assigned and the trip is not over.
- A confirmation first; the microphone permission only on the first tap, with a way to Settings if it was refused.
- While recording: a running clock, "Your rider/driver has been told", Stop.
- The other person sees a notice at once and gets a push in their language (11 languages).
- Recording stops at Stop, at the trip's end (also without a live connection: the phone checks the server once a minute), or at the market's limit. Calls pause it; calls are never recorded.
- Recording: mono AAC 32 kbit/s, sent in 3-minute pieces.
- A phone without signal keeps retrying for 30 minutes.
- A piece the server refuses is reported to the person.
- The other person is told only once the microphone has really started, and told when it stops even if the stop had to wait for signal.
- Server:
- Only the ride's rider or driver may upload, only while the ride is live or just ended.
- Pieces are checked as MPEG-4 audio from the bytes, ≤ 8 MB.
- A session belongs to the person who started it, and a retried piece is stored once.
- Each piece is encrypted under its own AES-256-GCM key; only the key, wrapped by the server secret, is in the database. Objects are private.
- Listening needs the new
recording.listenpermission (super_admin only at install), separate from the safety queue's.- The trip detail page has a Trip audio card with an in-memory player.
- Every playback is audited, refusals included.
- Retention: an hourly sweep erases expired pieces and their objects. A piece is held while a safety case on the ride is open, and for the retention period after it is resolved.
- Privacy notice (India): "Trip audio you choose to record" added to the
Safety purpose. Notice version is now
2026-11.2, so everyone is asked again. - Apps:
- The microphone purpose text names calls and recording.
recordAudioAndroidand background recording are on, which addsFOREGROUND_SERVICE_MICROPHONE(a Play declaration is needed; see the Play kit).- Both dev apps were rebuilt.
- Fixed on the way:
- The driver trip screen stranded the driver when a dispatcher (or another device) completed the ride. It now moves on to the trip-complete screen, as it already did for a cancellation.
- Migrations:
1700000109000-RideRecordings,1700000110000-RecordingListenPermission. - Verified on a physical iPhone 11: rider recording with real speech, the Android driver told, automatic stop when the trip completed. Not verified on a device: the push (no push credentials on the test devices).
2026-11-02 — Ride PIN (India safety toolkit, part 1)
Nobody should get into the wrong car, and no driver but the assigned one should be able to start the trip. Indian apps ask for a PIN on every ride (Ola's OTP, Uber's PIN); elsewhere it is often night-only.
- Market setting
ridePin(Admin → Markets → KYC → "Ride PIN"):- on every ride (India's default), only for pickups in a night window, or off;
- the window;
- wrong tries before it locks (3–10, default 5).
- At booking, a 4-digit PIN from a cryptographic source is set on a
passenger ride when the rule applies at the pickup's market time (a
scheduled ride uses its scheduled time).
- It is stored with
select: false. Only the rider's own views read it (their ride, and the tracking detail while the driver is on the way or waiting). - Every driver response carries only
startPinRequired.
- It is stored with
- Starting the trip: the server refuses to start a PIN ride without the
right PIN.
- A start sent with no PIN is answered with
ride_pin_needed(not counted as a try). - A wrong PIN says how many tries are left. At the limit the PIN locks.
- A start sent with no PIN is answered with
- Rider app: "Your ride PIN 3702" on the tracking screen, with ↻ to make a new one. That also unlocks a locked PIN, and only the rider at the car can do it.
- Driver app: tapping Start on a PIN ride opens "Rider's PIN", a 4-digit pad. It covers both the trip screen and rentals/intercity, which ask the server.
- Translated into 14 languages in each app and 15 in admin.
- Fixed during testing: the PIN didn't show on the rider's tracking screen, which reads the receipt endpoint rather than the plain ride. The receipt now carries it while the driver is coming or waiting.
- Checked live:
- The iPhone (Priya) showed 3702 after driver 3 accepted on Android.
- At the pickup, "0000" was refused with "That PIN is wrong. 4 tries left."
- The rider's ↻ changed it to 0791 and reset the tries. The driver entered 0791 and the trip started, then completed.
- The driver app's own views of the ride never contained the digits.
- Chrome: nights-only 10:00–11:00 left a 02:xx IST booking without a PIN; 00:00–05:00 gave it one.
- Settings and test deductions restored.
- Still to do in the safety toolkit: in-ride audio recording. It needs encrypted storage, consent and retention.
2026-11-02 — India: DPDP consent, rights and retention
India's Digital Personal Data Protection Act 2023 and its Rules (notified November 2025, in force in phases).
- An itemised, versioned notice in the person's own language. Each
purpose lists exactly which data it uses:
- Taking rides / Driving trips, Safety, and Driving with us (drivers only) are marked "Needed for the service".
- Offers and news, and Improving the app, are switches.
- Market config
privacyis on for India. Each purpose sets its roles and data items; a grievance officer and chat retention are configured too.
- Consent first: right after sign-in, both apps open the notice in a gate mode whenever consent is needed (a new account, or a new notice version). Android Back does not skip it; iOS swipe-back is off. The only way on is "Agree and continue".
- Every answer is appended to
consent_records(purpose, granted, notice version, language, channel; migration 107) and never rewritten.consent_currentgives the latest per person. - Withdrawing is as easy as agreeing: one switch on "Privacy & your data" (menu, both apps). A required purpose cannot be withdrawn there; the screen explains that deleting the account is the way to stop it.
- Rights:
- see what is held (name, phone, and counts of rides, chats, ratings, contacts, documents and devices);
- correct your details;
- delete your account and data;
- the grievance officer's name, email and phone;
- the right to complain to the Data Protection Board of India.
- Marketing needs consent: an admin broadcast counts as marketing unless it is sent as a service notice, and only reaches people who agreed to marketing.
- Retention: ride chats are erased a set number of days after the ride ends (India default 180; 03:30 daily).
- Admin:
- Markets → KYC → "Privacy & consent": on/off, notice version and "Ask everyone again", grievance officer, chat days.
- A "Consent history" card on the rider and driver pages.
- Translated into 14 languages in each app (the driver app has its own wording for the service purpose) and 15 in admin.
- Fixed during testing: saving the admin card stored an empty purpose list that replaced the shipped notice, so nobody would have been asked. A section without its own purposes now keeps the shipped notice, and an empty list is never stored.
- Checked live:
- Android, driver 3: the gate opened by itself and Back did not skip it. Offers were switched on, "Agree and continue" pressed, and 5 records written (marketing yes, analytics no, notice 2026-11, en).
- iPhone, Priya: the rider gate had 4 purposes and no driver onboarding. She agreed with offers off.
- Broadcasts: marketing to drivers reached 1 of 5, a service notice all
- After Priya switched offers on from the menu, marketing to riders reached 1.
- "See what we hold" showed her 94 rides and 4 ratings.
- Chrome: a bad grievance email was refused. The officer was set and "Ask everyone again" pressed. On the next cold start Priya's gate reappeared and her re-agreement was recorded against the new version. The officer showed in the app. The rider page's history showed "Withdrawn" then "Agreed".
- The chat sweep ran and kept the 2 chats from today.
- Test consent and the test settings were removed.
- Not built: a registered consent manager (the Rules phase those in later) and parental consent for minors. Riders and drivers must be adults today.
- Needs local confirmation: the notice text, purposes and retention periods are for your data protection adviser; all are settings.
2026-11-02 — India: pay the driver directly by UPI (intent + dynamic QR)
Most Indian auto and taxi fares are paid straight to the driver's own UPI ID. That is now a payment method of its own where the market offers UPI. The money never touches the platform, so the ride settles exactly like cash: the driver collected the fare and owes the commission.
- The driver's UPI ID (driver app → Profile → "Your UPI ID", shown only
where the market offers UPI). Format-checked in the app and on the
server; the handle is lower-cased. Stored on
driver_profiles.upi_vpa(migration 106). - Booking: "UPI to driver — Pay the driver's UPI ID at the drop" sits
beside cash and wallet in the rider's payment picker. The server accepts
upionly where the market offers UPI and falls back to cash otherwise. - Rider app: from the driver's arrival, the trip screen shows "At the
drop, pay ₹82.07 by UPI — To Imran Sheikh · imran.sheikh@okaxis".
- A button opens the rider's UPI app with the payee and the exact fare
filled in (an NPCI
upi://paylink). - Where no UPI app is installed, it says to pay the ID from any UPI app.
- The ID copies on tap.
- The receipt keeps the button after the trip.
- A button opens the rider's UPI app with the payee and the exact fare
filled in (an NPCI
- Driver app → Trip complete: "Scan to pay ₹82.07", a QR of the same
link, the UPI ID, and a line telling the rider to scan with any UPI app.
The server draws the QR (
qrcode, added to the backend with your approval), so the apps need no QR library and no native rebuild. The trip-complete screen now scrolls so the rating stays reachable. - Translated into 14 languages in each app.
- Checked live:
- Android, driver 3: "imran" was refused, and "imran.sheikh@OKAXIS"
saved as
imran.sheikh@okaxis. - iPhone, Priya: the payment sheet showed "UPI to driver". She picked it
with Economy and booked through the UI, and the ride was stored as
upi(₹82.07). - After the driver accepted and arrived on Android, the iPhone showed the pay card. The button, with no UPI app on the simulator, gave the fallback message.
- On completion the Android trip-complete screen showed the QR. Decoded
with macOS CoreImage, it reads
upi://pay?pa=imran.sheikh%40okaxis&pn=Imran%20Sheikh&am=82.07&cu=INR&tn=…&tr=…. - The ledger settled it as cash: ₹65.66 credited, ₹82.07 collected, ₹16.41 commission.
- The ride's TDS was reversed and the UPI ID cleared.
- Android, driver 3: "imran" was refused, and "imran.sheikh@OKAXIS"
saved as
- Not built: confirming that the rider actually paid. Collect-requests and payment status need a UPI acquirer (a PSP) and the operator's merchant keys. As with cash, the driver collects; the existing "the driver asked me to pay in cash" report covers disputes.
2026-11-02 — India: state RTA fare cards (and the 0.5×–2× band around them)
Indian states notify a fare card per vehicle type: a base fare covering the first km, a rate per km after, a night rate, and waiting charges. Under MVAG 2025 an aggregator's dynamic fare moves between 0.5× and 2× of that notified fare. The band already existed on regions (surge floor and ceiling, F1); the notified fare it should be measured against did not.
- A fare card per ride type per region (Admin → Zones → a region → a
ride type → "State fare card"):
- base km, base fare and per km after;
- an optional night window with a 1–3× rate;
- optional waiting: free minutes, a rate, and an optional higher rate from a later minute.
- A wrong card is refused with one message saying what a card needs.
- The zone list shows "Economy fare card".
- Where a card applies, the meter runs on it:
- The base covers the base km and per km runs after. There is no time charge.
- A journey that starts in the night window pays the card × its night rate.
- Waiting is charged slab by slab.
- The base fare is the minimum, unless the city set its own.
- Surge multiplies the card fare inside the region's band, so dynamic pricing stays within 0.5×–2× of the notified fare.
- Settlement uses the same card: the frozen quote carries the night-scaled rates, the included km and the waiting slabs. A metered trip charges per km only after the included km.
- Fixed during testing: the operator's own "Night 22:00–06:00 ×1.25" pricing rule stacked on the card's night rate, so the night was charged twice (₹45.07 instead of ₹36.06). Where a card has its own night rate, operator night rules are left out; surge rules still apply.
- Translated into 15 admin languages.
- Checked live:
- Chrome: on a test region over Mumbai, a 4× night rate was refused. The Mumbai-style auto card (₹26 for 1.5 km, ₹17.14/km, 1.25× from 00:00 to 05:00, 5 free waiting minutes then ₹1/min and ₹2/min from minute 15) saved in minor units, with its chip.
- Android: driver 3's 1.67 km trip at 01:31 IST was priced on the card at
night: ₹32.50 + 0.17 km × ₹21.42 = ₹36.06, multiplier 1.0×. The quote
carries
includedKm1.5 and the slabs. - iPhone: the receipt shows ₹36.06 with "Includes tax ₹1.71".
- The trips' TDS was reversed and the test region deleted.
- Not built: the card's name is not printed on the rider's receipt (the base and distance lines are).
- Needs local confirmation: each state's card numbers. The operator enters them from the RTA notification.
2026-11-02 — India: gig-worker welfare levy
Indian states fund gig workers' social security with a levy on the aggregator, per ride:
- Karnataka (Platform-Based Gig Workers Act 2025): 1–5% of the payout to the worker, notified at 1%.
- Rajasthan (2023 Act): 1–2% of the transaction.
The platform pays it; it is never taken from the driver.
- Set per state on the state's region (Admin → Zones → a region →
"Gig-worker welfare levy"):
- The fund's name, the rate (0.01–10%), and what it is charged on: the driver's payout or the whole fare.
- A rate without a fund, or a fund without a rate, is refused.
- A chip on the zone list shows the levy.
- A ride owes the levy of every fund drawn over its pickup. Where two regions name the same fund, the smaller region's terms win.
- Per ride: a
welfare_leviesrow (fund, region, base, rate, levy, market date) and a ledger entry moving platform commission → levy payable (new account type and ledger reason, migration 105). Idempotent; a failure never blocks completing a ride. - Admin → Tax → "Gig-worker welfare levies": owed per fund and month for any date range (defaulting to the year so far in market time), with a CSV for the remittance. It renders nothing until a levy has been recorded.
- Translated into 15 admin languages.
- Fixed during testing: the report's default range ended on today's UTC date. In IST a ride after midnight fell outside it, so the card stayed empty. It now uses the market's calendar date once the timezone has loaded.
- Checked live:
- Chrome: on a test region over Mumbai, a rate with no fund and a 12% rate were refused. A 1% Karnataka fund on the driver's payout saved, and the chip showed.
- Android: driver 3's ₹82.07 trip there (₹65.66 payout) recorded a ₹0.65 levy, posted platform commission → levy payable, with no posting to the driver.
- Chrome Tax page: "₹0.65", the November 2026 row, and the CSV.
- The levy and the trip's TDS were reversed with mirror ledger entries (both payables back to ₹0), rows removed, test region deleted.
- Not built: remitting to the funds (no state exposes an API), and registering workers with a state board.
- Needs local confirmation: rates and bases differ by state and change by notification; the operator sets them per state with their adviser.
2026-11-02 — India: TDS on drivers' earnings (s.194-O)
The platform, as an e-commerce operator, deducts income tax at source from what drivers earn through it and deposits it in their name. This is Income-tax Act s.194-O, carried into the 2025 Act as s.393(1).
- Rules (market config
tds; Admin → Markets → Tax → "Tax deducted at source"). India ships on:- Rates: 0.1% with a PAN (since 1 Oct 2024), 5% without (s.206AA).
- Exemption: nothing for an individual with a PAN while the financial year's gross stays within ₹5 lakh. The ride that crosses it catches up on the whole year, and the earlier exempt rides are marked covered.
- Gross excludes GST shown separately on the invoice (CBDT circular 17/2020).
- Pass rides are excluded by default, since the driver supplies them.
- Financial year starts in April.
- Every number is editable: the rates move with each Finance Act.
- Per ride: a
tds_deductionsrow (financial year, quarter, market date, gross, taxable, rate, deducted, PAN), plus a ledger entry moving driver → TDS payable (new account type and ledger reason, migration 104). Both are idempotent per ride, and a failure never blocks completing a ride. - PAN:
- The driver enters it in the app (driver → Tax deducted). It is format-checked; the fourth letter decides "individual".
- The operator can set it and mark it checked on the driver's KYC tab (audited).
- The return (Admin → Tax → "Tax deducted at source — drivers"):
- Quarter picker defaulting to the current one.
- Total deducted, and per month what to deposit and by when (the 7th of the next month; March by 30 April).
- One line per driver, rate and PAN. A driver deducted at 5% before giving a PAN and at 0.1% after has two lines, as on Form 26Q.
- CSV export with plain numbers and PANNOTAVBL where no PAN was given.
- Driver app → Tax deducted (menu row only where the market deducts): the rates and exemption in plain words, PAN entry or status, and this financial year's gross and deductions by quarter, with a note on Form 16A and 26AS. Translated into 14 app languages; admin into 15.
- Fixed during testing:
- Saving a PAN failed in Postgres (one parameter used with two types).
- The report showed one "max" rate for a driver deducted at two rates.
- A caught-up exempt ride was listed again at 0%.
- A Taxable column now explains a catch-up line.
- Checked live, all on ₹82.07 trips (₹78.17 after GST), driver 3 on
Android:
- No PAN: ₹3.90 deducted (5%), ledger driver → TDS payable, dated FY 2026-27 Q3 in IST.
- An invalid PAN was refused in the app. A valid one was saved.
- Next ride
below_threshold, ₹0, no money moved. - With the exemption lowered to ₹100 in Chrome, the next ride caught up ₹156.34 at 0.1% = ₹0.15, and the exempt ride was marked covered.
- Chrome report: ₹4.05 total, "November 2026 — deposit by 7 Dec 2026", two lines (No PAN 5% ₹3.90; ABCPE1234F 0.1% ₹0.15). The CSV matches.
- Driver card: "mark checked" saves and is audited. The app then shows "Checked by your operator".
- iPhone: the screen renders in Hindi.
- Deductions reversed with mirror ledger entries (TDS payable back to ₹0), rows removed, PAN cleared, exemption restored to ₹5 lakh.
- Not built:
- Filing the return or depositing the tax (no TRACES/OLTAS API is open to software vendors). The report is what the operator files from.
- Form 16A PDFs, which come from TRACES.
- Needs local confirmation: the rates, the catch-up reading of the ₹5 lakh exemption, and whether a fleet's drivers or the fleet owner is the deductee, are your tax adviser's call. Deductions are currently made from the driver.
2026-11-02 — India: GST by business model, and tax-inclusive fare invoices
In India, GST depends on how the platform earns:
Commission ride: the platform is the supplier under CGST s.9(5) and owes 5% on the fare.
Driver pass: the platform's supply is the pass (18%, inside the pass price), and the ride is the driver's own.
The earning model is frozen on each ride at completion (
rides.earning_model, migration 103). Switching a ride type later never changes a past ride's tax.Pass rides get no fare invoice in the platform's name. This is market setting
tax.passRides, default "the driver's own supply" (Admin → Markets → Tax). An operator whose adviser reads it differently can choose "Taxed like other rides".- An admin re-issue reads the model frozen on the ride, so it cannot invoice a pass ride either.
- The rider's receipt says "Supplied by your driver on a driver pass. {brand} charges no tax on this fare."
Tax report → By business model (Admin → Tax): each line comes with its count and value.
- Commission-ride invoices with the tax on the fare.
- Passes sold with the tax inside them.
- Pass rides as the driver's supply, with no platform tax.
- Both GST streams appear side by side for the return.
Fixed: invoices added tax on top of a fare that already included it. Every invoicing engine (India GST, ZATCA, CFDI, NFS-e, VAT) computed fare + rate, but the rider is only ever charged the fare. A ₹82.07 cash ride printed a receipt totalling ₹86.17.
- The tax is now split out of the fare: tax = fare × r / (1 + r), truncated so it is never over-declared.
- The invoice total equals what the rider paid, to the paisa.
- New market setting
tax.fareIncludesTax(default on; Admin → Markets → Tax). Off adds the tax on top, for markets quoted before tax. - Commission-base markets (Kenya, South Africa) are unchanged.
- The receipt labels the line "Includes tax" when the tax is inside the fare.
- Invoices issued before this keep their numbers; issued invoices are never rewritten.
Translated: admin 15 languages, rider 14, driver 14 (the "pass required" message no longer says "has run out" to a driver who never held a pass).
Checked live on the same ₹82.07 Mumbai trip:
- Pass ride (driver 3 with a live pass):
earning_model = pass, no invoice. The iPhone receipt shows the driver-supplied line. - Commission ride: the invoice is ₹78.17 + CGST ₹1.95 + SGST ₹1.95 = ₹82.07. The iPhone receipt shows "Includes tax ₹3.90" and a total of ₹82.07.
- Chrome:
- Markets → Tax: both settings save and survive a reload.
- Tax report: "1 pass · ₹25.00, of which tax ₹3.81" and "1 ride · fares ₹82.07, no platform tax".
- The pass charge was reversed with a mirror ledger entry, and the plan, the pass and the earning model were restored.
- Pass ride (driver 3 with a live pass):
Needs local confirmation: the s.9(5) reading for pass rides, and whether your fares are quoted tax-inclusive, are your tax adviser's call. Both are settings.
2026-11-02 — India: driver pass (zero-commission daily/weekly pass)
India runs two earning models side by side: commission on some ride types, and a time pass on others (autos, and more and more cabs). Under a pass the driver pays for time on the platform and keeps the whole fare. Uber's 72-hour cab pass is ₹341 including 18% GST.
- Earning model per ride type (Admin → Pricing → a ride type → "How the platform earns"): commission on each fare, or a driver pass.
- Plans (Admin → Pricing → Driver passes): name, ride type (or every
pass type), region (or everywhere), length in hours, and a price that
includes tax.
- The rate is set per plan, 18% GST by default.
- The plan list shows each plan's hours, type, place and tax.
- A plan can be paused or removed; passes already bought keep running.
- Sales export for a date range, with the GST inside each price split out for the return (in the market's time zone).
- Driver app → Driver pass (menu row only for drivers with a
pass-model vehicle, or who have held a pass):
- The live pass with time left and its end time.
- What is queued after it.
- The plans on sale for their vehicle and city, with the wallet balance.
- Buying, with a confirmation that says when the pass starts.
- An auto-renew switch.
- Past passes.
- Translated into all 14 app languages.
- Buying charges the driver wallet: driver → platform revenue, with the GST on the ledger entry. A pass bought while one is live is queued after it, never overlapping.
- Gates:
- Going online on a pass-model ride type without a live pass is refused
(
driver_pass_required), and the app opens the pass screen. - Dispatch also skips a driver whose pass lapses while they are online.
- Going online on a pass-model ride type without a live pass is refused
(
- 0% commission on pass ride types: in settlement, in the offer's "you keep" line, and on the rate card.
- Auto-renew: every 10 minutes, a pass set to renew is bought again an hour before it ends. A failed renewal (empty wallet, plan withdrawn) is tried once, the driver gets a push, and the switch shows off. Turning it back on retries.
- Fixed during testing:
- The ride-type edit form could not save the earning model (the update DTO lacked the field).
- A plan for "every pass type" was offered to commission-only drivers.
- The auto-renew switch read "off" after a renewal moved renewal onto the queued pass.
- Not built: UPI AutoPay mandates. Renewal is from the wallet. A mandate needs a gateway's recurring API and the buyer's keys.
- Checked live:
- Chrome: the plan builder (blocked until a type is on the pass model, zero price refused), Economy switched to the pass model.
- Android, driver 3:
- Going online was refused and the app landed on the pass screen.
- Bought ₹25 from the wallet (₹3.81 GST recorded) and went online.
- The offer said "0% commission". The completed ride credited the full
₹82.07 with
commissionBps: 0.
- Dispatch gate, same position:
- With the pass expired by SQL while online:
no_drivers. - With the pass restored: the offer arrived.
- With the pass expired by SQL while online:
- Renewal:
- The sweep queued the next pass at the exact minute the old one ended.
- With the plan paused, it failed, made no charge, and showed the message.
- Turning auto-renew back on let the live cron renew it.
- iPhone, driver 4: a commission-only driver sees no menu row and no plans. A Sedan week pass (₹341) rendered "7 days left", also in Arabic.
- All charges reversed with mirror ledger entries. Plans, passes and earning models restored.
2026-11-01 — India: bike-taxi city rules — electric only, permit marking, city minimum fare
The per-city switch for a ride type (with reason and start date) shipped in F2. This adds what a city asks of a ride type while it runs:
- Rules per ride type in a region (Admin → Zones → a region → "Rules per
ride type"): electric only, marking verified, and a minimum fare.
Maharashtra's bike taxis, for example: electric, painted and marked as bike
taxis, ₹15 minimum.
- Electric-only and marking rules add up across a state and its cities.
- The minimum fare comes from the smallest region that sets one.
- Chips on the region list say which rule applies to which ride type.
- Enforced at matching: inside the dispatch query, alongside the other eligibility filters. A city that asks for electric only offers those rides only to cars recorded as electric. A city that asks for a marking offers them only to cars whose marking an operator verified.
- The permit marking check (Admin → Vehicles → a vehicle's compliance panel): mark it verified with a note (photo reference, inspection), or withdraw it.
- The city minimum fare is applied in pricing, so quotes, bookings and the driver's offer all use it.
- A region lookup that fails never stops a quote or a match. Price and matching fall back to the ride type's own rules.
- Checked live, on a test Karnataka region set through Chrome:
- Pricing: Economy set to "electric only" with a ₹150 minimum. A short Bengaluru trip quoted ₹150; a Mumbai one kept the ₹60 type minimum.
- Electric only: booking Economy with driver 3 online in a petrol car went
straight to
no_drivers. With the car made electric, the Android driver app got the offer. - Marking: with "marking verified" also required, it was
no_driversagain. After verifying the marking in Chrome (with a photo note), the offer reached driver 3. - iPhone: Sedan set to electric only; driver 4's car made electric got the Sedan offer.
- All rides cancelled, cars, marking and region restored.
- Rules and fares are per state and change by court order. Please confirm the current ones with local counsel before switching a service on.
2026-11-01 — India: state licence profiles — licence on receipts and in the apps, login-hour caps, state cancellation fees
Builds on the region layer (Admin → Zones → a state or city region), which already carried surge caps, bid bands, driver share and services switched off.
- The operator's licence is shown where it must be:
- On the rider's trip receipt: the licence of the state or city the trip started in ("Aggregator licence KA-AGG-0042 · Karnataka Transport Department").
- In both apps' legal screens: every region's licence, with its authority and expiry.
- In Admin → Zones: a licence chip, which turns amber within 60 days of expiry ("licence expires 1/12/2026") and red once expired.
- A login-hour limit per state or city ("Login-hour limit (per 24 h)";
Maharashtra 12):
- Going online past it is refused, naming the limit and the region.
- Every 10 minutes, a driver online past it — never one mid-trip — is
signed out. They get a push in their language, and the open app switches
to offline at once through a new
driver:signed_outsocket event. - Time is read from the driver's own hours log.
- A state's own cancellation fee: a percentage and cap over the market's rule, applied to the rider's fee, the free-window preview and the driver's penalty. A smaller region wins per field.
- Checked live, on a Karnataka state region and a Bengaluru city region
created for the test:
- Chrome:
- A 30-hour limit was refused.
- The state saved 1 h, 15% and ₹50. Its chips read "cancel 15%" and "≤ 1 h online / 24 h".
- The city licence set to 1 Dec showed amber.
- Live data:
- Driver 3 had logged 180 minutes and driver 4 361 minutes, both over.
- The fee rule at a Bengaluru pickup was 15% capped at ₹50; Mumbai kept the market's 10%/₹100.
- Android: Go online was refused ("You have been logged in for 1 hours…, the limit in E2E Karnataka").
- iPhone, driver 4: online with the cap raised, then the sweep at 23:40 signed them out and the app switched itself to "You're offline".
- iPhone rider app: the legal screen listed the licence, and a Bengaluru trip receipt carried it. The Android driver app's legal screen showed it too.
- Test regions deleted and drivers restored afterwards.
- Chrome:
- Licence numbers, caps and fees are the operator's to enter per state. Please confirm each state's rules with local counsel.
2026-11-01 — India: AIS-140 tracking devices, and SOS forwarded to a state command centre or 112
- Each vehicle's tracking device (Admin → Vehicles → "Tracking device"):
- The record holds the device IMEI, maker and AIS-140 certificate number. Two- and three-wheelers are exempt.
- The IMEI is checked: 15 digits with a valid Luhn check digit, spaces and dashes ignored, and one device per vehicle.
- Status is Not verified, Active or Not active. A new device starts as Not verified.
- The vehicles list flags "No tracking device" and "Tracking device not active". A CSV lists every vehicle's device for an inspection.
- Activation check (Admin → Providers → "Tracking device activation check
(AIS-140 / VAHAN)"): the check endpoint receives
POST {imei, registrationNumber}and answers{active, note}. Without an endpoint, the operator marks the device from its activation certificate, with a note. A garbled answer changes nothing. - The rule is market config (Admin → Markets → KYC → "Tracking devices
(AIS-140)"):
- India requires devices on four-wheelers.
- A switch stops cars without a live device going online. It is off by default: turn it on once the fleet's devices are recorded and active.
- When it blocks, the driver app says why in the driver's language.
- SOS forwarding (Admin → Providers → "SOS forwarding (state command
centre / 112)"):
- Every app SOS (rider, driver, or a ride check-in escalation) is also
POSTed as
sos.raised. - The event carries: incident, location, ride, rider and driver with phones, and the vehicle with its tracking IMEI.
- It is signed with
X-RideKit-Signature: sha256=<HMAC>and tried 3 times. A refusal (4xx) is not retried. - The safety desk shows "Emergency centre: Forwarded (first try)" or "Not
delivered:
". Nothing is sent where no URL is set.
- Every app SOS (rider, driver, or a ride check-in escalation) is also
POSTed as
- Checked live, with a local stand-in state backend:
- Chrome:
- All cars were flagged. A wrong check digit was refused; spaces were stripped; the same IMEI on a second car was refused ("already recorded on MH01AB9002").
- With no provider set, the modal said to mark by hand. After setting both providers in Admin → Providers, "Check activation now" came back Active with the backend's note, and the chip cleared.
- The market switch saved, and the CSV matched.
- Android: with the block on, driver 3 went online with a live device. With the device marked Not active, Go online was refused ("tracking device is not active yet").
- iPhone: driver 4 (no device) was refused ("no tracking device on record").
- SOS forwarding:
- A rider SOS reached the stand-in with a valid signature, carrying the ride, both phones, and the car with its IMEI.
- Pointed at a dead port, it was recorded as failed after 3 attempts.
- The desk showed both outcomes.
- Not covered: the tracking link sent to trusted contacts is attached a
moment after the forward, so the forwarded event carries
trackingUrl: nulltoday. - All test data, keys and settings were restored.
- Chrome:
- Each state's command centre has its own API. This sends one documented, signed event for the operator or the state's integrator to map. Please confirm the target endpoint with the state transport department.
2026-11-01 — India: vehicles leave service at the age limit, with warnings first
- Every vehicle knows the day it reaches the market's age limit: its registration anniversary that many years on, or 1 January of its model year when no registration date is on file. India: 8 years (MVAG 2025). Adding a vehicle already past it is still refused.
- Warnings 90 and 30 days ahead: an hourly job pushes once at each, in each person's language. It goes to the assigned driver, whoever is driving the car right now, and the fleet owner.
- Out of service on the day: the vehicle is suspended and stamped, and a driver online with it is taken offline. A car mid-trip is left until the trip ends; the next run retires it.
- Everyone sees it coming:
- Partner app: the dashboard counts cars reaching the limit within 90 days
and cars already past it. Each car in the list shows "Retires
", amber within 90 days and red within 30, or "Retired · age limit". - Admin → Vehicles: a "Retires
" chip within 90 days, and "Past age limit" after. - Driver app → My vehicles: "Must leave service on
", then "Past the age limit — can no longer take trips". Go online explains it, instead of the old "No vehicle yet" or "not approved yet".
- Partner app: the dashboard counts cars reaching the limit within 90 days
and cars already past it. Each car in the list shows "Retires
- Going online with an over-age car now reports the age (with its figures) before the generic "not active" reason.
- Checked live:
- Partner API: a 2018 car was refused ("8 years old…"). A 2019 car and a 2020 car were added, and the dashboard said "2 vehicles reach the age limit within 90 days".
- Partner app on Android: the list showed red for 9 days left and amber for 61 days left.
- Sweep: it warned 4 cars once, including a real 2019 dev car due on 1 Jan
- A second run warned nobody.
- Backdated past the limit, driver 3's car and a fleet car were both retired, and driver 3 (online) was taken offline.
- On Android, the driver app showed "Past the age limit". Go online said
"Your vehicle has reached the age limit. Add another vehicle to keep
driving."; the server answers
too_oldwith figures. - iPhone: "Must leave service on Dec 10, 2026".
- Chrome: admin chips correct.
- Not checked: the push reaching a phone (no push token on these dev builds).
- Test data restored.
- Legal numbers are configuration with researched defaults. Please confirm them with Indian counsel.
2026-11-01 — India: onboarding checks with their findings, driver training, and a 3-day complaint clock
- Onboarding checks record what an inspector asks for (Admin → a driver →
KYC → "Add details" on the document row):
- Police verification: certificate number and issuing authority.
- Medical fitness: examining doctor, and fit or unfit.
- Psychological assessment: assessor, and pass or fail.
- These documents cannot be approved without their details.
- An unfit or fail finding cannot be approved.
- Recording a failing finding on an already approved check withdraws the approval.
- Training records per driver (Admin → a driver → KYC → "Training"):
- Each session is induction, refresher or retraining, with its date, trainer and certificate number.
- The card shows whether induction is done, when the next refresher is due, and any retraining flag.
- Where the market requires induction, a driver is not verified without one. The driver's onboarding screen shows it as its own step, with its own wording ("Not done yet" / "Done").
- Bottom-by-rating retraining: a daily job flags the lowest-rated N% of
drivers who have enough ratings, and tells each one in their language.
- The count rounds down, so a small fleet flags nobody.
- A driver rated as well as the best driver is never flagged.
- A retraining on or after the flag clears it.
- A driver retrained in the last 90 days is not flagged again.
- Complaint clock (Safety & SOS):
- Each complaint, dispute and lost-item report gets a due time.
- One still unresolved at its due time is escalated once, to high priority, and pushed to the live safety desk again.
- The queue shows "Due in 3 days" / "Due in 6 hours" / "Overdue · escalated", an "Overdue complaints" count, and an "Overdue" filter.
- SOS and ride check-ins are not on this clock; they are handled live.
- Incidents raised before this change have no due time.
- Rules are market config (Admin → Markets → KYC → "Training and
complaints"): induction before verification, refresher months, bottom
percentage, ratings needed before ranking, and complaint hours. Blank turns
a rule off.
- India defaults to MVAG 2025: induction required, a yearly refresher, bottom 5%, 20 ratings and 72 hours.
- Other markets have none of these until set.
- Drivers already verified stay verified until their checklist is next re-evaluated.
- Inspection export (Admin → Drivers → "Training"): one CSV row per driver, with induction, last training, refresher due, rating, retraining flag and whether they are up to date.
- Checked live:
- Chrome, police verification: approving without details was refused in words. With details recorded, the row showed them and approval went through.
- Chrome, medical fitness: an unfit finding could not be approved. Changed to fit, it approved.
- Chrome, training: induction was Missing; a future date was refused. After recording it, induction showed Done and the refresher was due a year later.
- Chrome, settings and export: the market card saved and refused 0 hours. The CSV row matched.
- Retraining sweep against the dev database:
- With the real five-driver fleet, nobody was flagged.
- With a temporary bottom-50% rule, the two 4.0-rated drivers were flagged; a second run flagged nobody.
- The admin card showed "Needed", and a recorded retraining cleared it.
- Complaint clock: three complaints raised as a rider each got +72 hours. One backdated past its due time was escalated once (normal to high). The safety desk showed all three states, the count and the filter.
- Android and iPhone: the onboarding induction step showed "Not done yet", then "Done" with its date once recorded.
- Not checked: the retraining push reaching a phone. These dev builds have no push token.
- All test data and settings were restored afterwards.
- Legal numbers are configuration with researched defaults. Please confirm them with Indian counsel.
2026-11-01 — India: health and term insurance for every driver, tracked per driver
- Insurance policies per driver (Admin → Drivers → a driver → KYC → "Insurance"). Each policy records: kind (health, term life or accident), insurer, policy number, sum insured, start and expiry dates, claim phone, and whether the platform or the driver pays. The card shows each required kind as Covered, Expiring soon, Below minimum, Expired or Missing.
- The requirement is market config (Admin → Markets → KYC → "Driver
insurance"):
- a minimum sum per kind (blank means not required);
- how many days before expiry to warn;
- a claim helpline;
- an optional block on going online without cover.
- India defaults to MVAG 2025: ₹5 lakh health and ₹10 lakh term. Other markets require nothing until set.
- The block is off by default. The cover is the platform's duty, so turn it on only once every driver's policies are recorded.
- Expiry alerts: a daily sweep pushes the driver once when a policy enters the warning window, and once when it lapses, in the driver's language. A renewed policy of the same kind silences both. A lapse more than a week old when first seen is not announced.
- Inspection export (Admin → Drivers → "Insurance cover"): one CSV row per driver, with whether they are fully covered and the deciding policy for each kind.
- Driver app → Menu → Insurance: the cover required, each policy card, and a "Call to claim" button. If the block stops a driver going online, the app explains why in their language.
- Checked live:
- Chrome:
- Driver 3 started Missing on both kinds.
- Reversed dates were refused.
- A health policy ending 20 Nov showed "Expires in 19 days".
- A ₹5 lakh term policy showed Below minimum; edited to ₹10 lakh, it showed Covered.
- The market card saved the block and the helpline.
- The CSV listed both policies.
- Android:
- The Insurance screen showed both cards.
- "Call to claim" sent the right
tel:number to the dialer. The emulator's dialer did not prefill it this session, even for a plain adb DIAL intent. - With the health policy lapsed and the block on, Go online was refused with the translated message, and the driver stayed offline.
- The screen in Hindi showed "समाप्त" and the block note.
- iPhone: a driver with no policies saw the empty state.
- Sweep against the dev database: it found the one lapse; a second run sent nothing.
- Not checked: the push reaching a phone. Driver 3 has no registered push token on these dev builds.
- Test settings were restored afterwards.
- Chrome:
- Legal numbers are configuration with researched defaults. Please confirm them with Indian counsel.
2026-11-01 — India: cancellation fee of 10% capped at ₹100, both ways
- A market cancellation-fee rule (Admin → Markets → Pricing → "Cancellation fee"): a share of the fare, a cap, a free window, whether drivers pay too, whether the driver's penalty goes to the rider, the driver reasons that are never penalised, and an optional larger airport share. A market without a rule keeps the flat per-ride-type policy fee exactly as before.
- India's default follows MVAG 2025: 10% of the fare, at most ₹100, free for the first 5 minutes. A driver who drops an accepted ride after that pays the same, and it goes to the rider. "Rider unreachable", "wrong pickup", "vehicle problem" and "emergency" are never penalised; "other" is.
- The apps say it before it happens: the driver's cancel sheet shows the rule and marks which reasons "May cost". The rider's cancel preview counts down the free window.
- Support can waive it (Admin → Trips → a trip → "Cancellation charges"): every charge on the ride, rider or driver, with a waive button that reverses the ledger postings and keeps the note. Needs the refund permission.
- Checked live:
- Android driver cancelled with "Other" after the free window. The ledger debited the driver ₹12.70 and credited the rider ₹12.70.
- The admin waiver in Chrome reversed both postings, with the note.
- iOS rider late cancel: a ₹12.70 fee (10% of ₹127) to platform revenue.
- Test rule removed afterwards; India is back on its default.
- Not yet: Maharashtra's higher driver penalty at railway stations and hospitals needs a zone category those places do not have yet (airports work).
- Legal numbers are configuration with researched defaults. Please confirm them with Indian counsel.
2026-11-01 — India: the driver's minimum share depends on who owns the car
- Each vehicle records who owns it: the driver, or the aggregator / a fleet partner (Admin → Vehicles → "Who owns the car"). Vehicles registered under a fleet organisation start as fleet cars.
- A second floor for fleet cars (Admin → Markets → Pricing: "Driver earnings min (fleet car)"; blank = same as an own car). Settlement caps commission by the floor for the car being driven. The driver's published rate card and the "You keep ≈" line on a ride request use the same rule, so neither can promise a number the trip will not pay.
- India's defaults follow MVAG 2025: at most 40% commission on any car, with the driver keeping at least 80% of the fare in their own car (an effective 20% cap) and 60% in a fleet car. An India market still on the old single 60% floor is moved to these; one an operator already changed is left alone.
- Driver share report (Admin → Reports): trips by car ownership, the share drivers kept, the minimum, and how many fell below it. The CSV has every trip, read from its ledger settlement, which now also records whose car it was. Rounding of a paisa is not counted as a breach.
- Checked live:
- With Economy temporarily at 30%, driver 3's own car was charged 20% on both the rate card and settlement.
- After marking the car "aggregator's or a fleet's" in Chrome, the next trip was charged 30% (driver kept 70%, floor 60%).
- Switched back, it was 20% again.
- The report showed 32 own-car trips at 80.23% and 2 fleet trips at 75%, with no breaches; the CSV matched.
- A first attempt had lowered India's absolute cap to 20%, which blocked fleet cars too. The live test caught it and the model was corrected before release.
- Test settings were restored.
- Legal numbers are configuration with researched defaults. Please confirm them with Indian counsel.
2026-11-01 — US Spanish, login codes and pushes in the user's language, chat translation
- The US market offers Spanish next to English (preset, plus a migration for an existing US market still on the English-only preset; one an operator already changed is left alone).
- Latin-American Spanish everywhere. The shared Spanish catalogs (rider, driver, partner, admin, push and safety SMS) serve Mexico, the US and Latin America. Spain's "coche" and "furgoneta" are now "auto" and "camioneta".
- The login code SMS arrives in the user's language (15 languages). The apps send the language they are showing; otherwise the market's language is used ("Tu código de verificación es 812776", "आपका सत्यापन कोड 203007 है").
- The server now knows each user's app language. Every app sends it, and a
global interceptor records it on the user when it changes (one write per
change).
users.localealready drove localized pushes, call rings, check-ins and deactivation notices, but nothing ever set it, so all of them had been falling back to the market language. - Rider–driver chat translation. When the two read different languages, each message is stored as written plus a translation into the other's language. The apps show the translation with "Translated · Show original". Providers: Google Cloud Translation or DeepL, keys in Admin → Providers (the credential-store contract specs cover both). With no key, chat works exactly as before. A provider that fails or times out (4 s) never holds up a message.
- Checked live:
- The US market now lists en and es.
- Login codes were sent in Spanish, Hindi and the default.
- The iPhone rider's language was recorded as en. The Android driver switched to Hindi was recorded as hi, then en again when switched back.
- A Hindi chat message with no key arrived as written. A stored translation showed on the iPhone as "Reaching in 2 minutes · Translated · Show original", and the toggle worked.
- Both provider fields appear in Admin → Providers.
- Not checked live: a real translation call. That needs a Google or DeepL key from you; the provider code is covered by specs with a stubbed API.
2026-11-01 — a weekly floor on the driver's share, topped up automatically
- Weekly driver share guarantee (Admin → Markets → Pricing): "drivers keep
at least N% of each week's fares", optionally only once they complete M trips
in the week. This one setting covers both of these:
- Brazil's "fee at most 19.99% after 10 trips" (99's Taxa Garantida): enter 80.01%, 10 trips.
- The US "at least 70% of rider payments" (Lyft): enter 70%, 0 trips.
- How it settles: after each market week (Monday to Monday, market time), every completed trip's settled split is summed per driver from the ledger. Anyone below the floor gets the difference from the platform's commission in their wallet, as a ledger line. One per driver per week; re-runs pay nothing. A recorded week is never recomputed, so a changed setting applies from the next week.
- Drivers see it on the earnings screen: the rule, and each settled week ("Week of Oct 26 · 10 trips · your share 81.04% · +₹47.27", "Guarantee met", or "4 of 10 trips — not enough to qualify"). Shown in all 14 languages.
- Off everywhere until an operator turns it on.
- Checked live: in Chrome, 85% after 2 trips was saved and 120% refused. The real settlement job ran for the week of 26 Oct and topped up three drivers. Driver 3 kept ₹968.66 of ₹1,195.21 (81.04%); 85% is ₹1,015.93, so ₹47.27 moved from platform commission to the driver's wallet. A second run paid nothing. The card appeared on the Android driver's earnings screen. India's setting was removed afterwards. The test top-ups remain in the dev ledger.
2026-11-01 — ride check: off-route, both parties told, night-only sharing
- A third automatic check: the car driving away from the destination. The
platform tracks the nearest the car has come to the drop-off. Once it is
2 km further away than that (a market setting:
safety.checkIn.offRouteMeters), the rider is asked "Your car is heading away from your destination. Is everything OK?". This is the same prompt, push, "I'm fine / I need help" and silence-escalates-to-the-safety-desk as the existing long-trip and stopped-car checks. A detour that comes back does not count, and neither does the drive to the pickup. - The driver is told too, in a calm sentence ("We've asked your rider whether everything is OK — a routine check…"), whenever any of the three checks asks the rider.
- Trusted contacts can be told about night trips only (21:00–06:00 in the market's own time), next to "share every trip". Their row says so. SOS still alerts every contact.
- The safety centre's check-in description now mentions the off-route check, in all 14 languages.
- Why: Uber's "Comprobación de seguridad" in Mexico bundles these (RideCheck on long stops and route deviation; contacts auto-notified on night trips). Uber says 92% of its Mexican riders have shared a trip.
- Checked live, in two trips from the iPhone rider with the Android emulator
driving:
- At 20:40 India time, only the every-trip contact was texted; the night-only one was not.
- The car drove to 2.7 km from the drop-off, then away. The next sweep asked the rider (banner on the iPhone) and pushed the driver notice.
- "I'm fine" closed the first check. Left unanswered, the second became a high-priority incident: "vehicle driving away from the drop-off".
- The night-only switch was shown and saved from the Android app.
- Test contacts and incidents were removed afterwards.
2026-11-01 — offering your fare, under the name riders know
- Each market can name rider-offered fares the way riders there already call them (Admin → Markets → Pricing, under "Riders can offer their own fare"): for example "Pon tu precio" or "ofrece tu tarifa" in Mexico. The rider app shows that name on the fixed-price / offer switch in every language. Blank keeps the app's translated wording. At most 32 characters. No default is set: the well-known names belong to other apps, so the operator chooses.
- The offer screen now says what a higher offer buys: "A higher offer usually finds a driver faster", under the suggested fare and the city's offer range.
- Why: in Mexico, fare negotiation is a familiar product (inDrive, DiDi's "Pon tu precio"). Riders look for the name they know.
- Checked live: the name was saved in Chrome (40 characters refused) and shown on the Android emulator's switch. The new hint was shown on the iPhone simulator. India's settings were restored afterwards.
2026-11-01 — the driver app speaks the driver's language, out loud and in its refusals
- New requests are read aloud in the driver's app language: "नई राइड रिक्वेस्ट. ₹127.09. पिकअप 300 मी दूर, लगभग 1 मिनट. यात्रा 5.7 किमी". It says the fare, the pickup distance and time, the trip length, and anything to know before accepting (child seat, women-only). It uses the phone's own voice, through the module that already reads turn-by-turn directions, and stops when the request is answered or expires. Settings → "Read new requests aloud", on by default, per phone.
- The server's refusals arrive in the user's language. Refusals now carry a code, plus their figures (a vehicle's age, an expiry date, a withdrawal limit). The driver, rider and partner apps translate them in all 14 languages: vehicle not approved, too old, insurance or inspection expired, ride already taken, fare negotiated, go online to accept, withdrawal limits, insufficient balance, document upload problems, account on hold, account deletion pending, tip and report refusals, and ride types unavailable at the pickup. A code the app does not know, or one sent without its figures, falls back to the server's own sentence. The sentences themselves did not change.
- Fixed while testing: a driver who switched language heard the old language, because the request listener kept the first render's translator.
- Why: many auto and bike drivers in India are not comfortable in English. Rapido and Namma Yatri speak requests and run in regional languages.
- Checked live on the Android emulator: a request read aloud in English, then in Hindi after switching. Android's TTS engine loaded its en-IN and hi-IN voices. Silence with the switch off. A back-dated insurance date refused going online with the Hindi sentence and the date filled in. On the iPhone simulator, the same announcement reached the native voice module (the simulator has no audio). Test settings restored.
2026-11-01 — device-neutral fares you can prove, and pickup promises paid without a claim
- The device never sets the price, and that can be shown. Each ride now records the kind of device it was booked on (iPhone, Android, web), written after the fare is fixed. Pricing never receives it, and a server spec fails if pricing or booking code ever reads it. Admin → Reports has a "Device-neutral pricing" table (rides, fare per km and mean multiplier per ride type and device) and a CSV with every ride's frozen fare inputs (distance, minutes, rates, multiplier, fixed charges, quoted and final fare) next to its device. Rides booked before this release show "Not recorded".
- Pickup guarantee (Admin → Markets → a market → Pricing): "at pickup in N minutes or X back", for chosen ride types. The rider sees the promise on the confirm screen. If the driver arrives late, or the ride ends without a driver after the promised time, the amount is credited to the rider's wallet within a minute, from the promo budget, with no claim. The receipt says so. Each ride keeps the promise it was booked with. Rides booked for later are not covered. Off everywhere until an operator turns it on.
- Why: India's consumer regulator sent Ola and Uber notices in January 2025 over iPhone-versus-Android fares, and fined Rapido ₹10 lakh in August 2025 over a "5 min or ₹50" guarantee riders had to claim.
- Checked live: the same Economy trip booked from the iPhone and from the Android emulator was priced the same (₹22.47/km), and both devices appear in the admin table and the CSV. With a 1-minute promise of ₹50, a driver arriving at 40 s settled as kept. One arriving at 83 s was credited ₹50 by the sweep (ledger: promo liability → rider), shown on the Android receipt. The promise shows for Economy and not for Sedan on the iPhone. The admin form saves and validates in Chrome. Test settings were removed afterwards.
2026-11-01 — SOS that calls the police, and a safety desk that watches live
- The SOS button now leads with the call. During a ride (rider) or a trip or delivery (driver), SOS opens a sheet whose first button calls the police on the market's number: 190 in Brazil, then the ambulance (192). Where one number really dispatches everything (112 in India, 911 in Mexico and the US), it is the single button. Calling also raises the SOS, so the safety desk is already on it while the person is on the phone. "Alert safety team only" stays for when speaking is not safe. Numbers come from the market's config, with the bundled table as an offline fallback (fetched as the trip screen opens, so a press in the first second dials the right number).
- The safety desk is live (Admin → Safety & SOS). A new or changed
incident arrives by push, with no reload: the queue and the cards update,
and a new SOS is announced. A "Live" badge says whether the feed is
connected. Opening an SOS on a ride that is under way follows the car on
the map, from the same positions the rider's phone receives ("Following the
car live · updated 3s ago"). The live feed reaches anyone with
incident.view, not only dispatchers. - A driver's SOS now carries the ride and a position. Before, it reached the desk with neither: no pin, nothing to follow.
- A rider's SOS that fails to send now says so (it used to fail silently). Malformed incident ids get a 400 instead of a server error.
- Why: Brazil's ride apps put 190 behind SOS, and safety centres with live monitoring are what riders and regulators there expect. Drivers in Brazil face robbery and need the same path.
- Checked live: on the iPhone, a rider's SOS showed 190/192 and "Call police" raised a critical SOS noting the 190 call. The admin desk in Chrome announced it with no reload and followed the Android driver's car as it moved. On the Android emulator the driver's SOS showed 190/192, opened the dialer on 190, and raised an SOS with the ride and position. India's numbers were set to Brazil's for the test, then restored.
2026-11-01 — a child seat on request (UAE)
- Riders can ask for a child seat when booking, where the market offers it: a "Child seat (+AED 5.00)" switch on the confirm screen, with the charge added to the price on the Book button. The ride is offered only to drivers whose vehicle is recorded with a child seat (Admin → Vehicles → Equipment), and the driver's request card says "Child seat needed" above the fare.
- Per market (Admin → Markets → a market → Pricing): on or off, and the charge in the market's own currency. On by default in the UAE at AED 5, off everywhere else until an operator switches it on. The charge is added to the fixed fare and frozen with the quote, so the receipt matches the confirm screen; commission applies to it like the rest of the fare. A rider who names their own fare is not charged it (the offer already covers it).
- Refused with
child_seat_unavailable(translated in the app) where the market does not offer it, so an old app cannot book what the operator switched off. - Why: UAE federal traffic law requires children under four to ride in a child seat. Careem and Uber both sell a child-seat ride there.
- Checked live: with India set to ₹30 for the test, a Sedan booking rose by exactly ₹30 and froze that price. A Sedan with no seat on record was not offered it until the seat was recorded. An ordinary ride carried no flag. Switching the market off refused the booking. On screen: the switch and the price on the iPhone simulator and the Android emulator; the badge on a driver card on each; the admin fields in Chrome, including the UAE default and a negative charge refused.
2026-11-01 — surge you can see, cap and publish
- Time-of-day pricing rules now reach real fares. Neither the rider app's estimate nor the booking passed the local time, so every surge and night rule an operator configured was ignored on live rides. Pricing now evaluates them at the market's local time (a booking for later at its scheduled time); the estimate the rider sees and the price the booking freezes are the same.
- Per ride type: "Never surge this ride type" (a regulated taxi tariff, Dubai's for one) and a surge cap of its own (Admin → Pricing → a ride type → Surge). The tightest of the market's, the region's and the type's ceilings wins; airport and zone fees are not surge and still apply.
- The rider is told: on the confirm screen a surged type shows "Busy right now: this ride costs 1.3× the usual fare" and, when there is one, the cheaper way to go ("Bike is ₹104.40. Switch"), one tap to switch.
- A published price list: the operator's website has a Fares page (linked in the footer) with every active type's base, per-km, per-minute, minimum and waiting rates, its surge cap or "never", the market cap and any city's own cap — read live from the platform (GET /public/fares, no sign-in).
- Why: Saudi riders complained publicly of unexplained 2.2× peaks; Dubai's regulated tariff has no surge; Mexico's consumer agency and Puebla pressed for capped, published fares. City-level caps already existed (regions).
- Checked live: with a 1.8× rule, Bike 1.8×, Economy stopped at its 1.3× cap, Sedan 1.0×, and a booking frozen at the quoted 1.3× price; the note and the switch on the iPhone simulator and the Android emulator; the admin fields (and a 20× cap refused) and the Fares page (desktop and phone width) in Chrome.
- Not yet: the cheaper option's pickup wait (the estimate carries no per-type ETA).
2026-11-01 — kerb cancellations: city windows and drivers who provoke fees
- A city's own windows. A state or city drawn as a region can set its own free-cancel window and its own free waiting minutes (Zones → region → "Free cancel window", "Free waiting"). The cancel window applies when the fee is decided; the waiting grace is frozen into the fare quote at booking, so the rider's countdown, the driver's meter and the settlement agree.
- Trips ending at the kerb (Reports): per driver, accepted trips, riders cancelling after the driver arrived, and no-shows the driver claimed, with the fleet's rate beside them. Both earn the driver a fee; a driver with three or more and at least twice the fleet's rate is marked "Check this driver". Mexican riders report drivers stalling at the pickup to collect exactly these fees.
- Checked live: without a city rule a cancel 5 s after acceptance is free; inside a region with no free window the same cancel carries the fee; the region's 1-minute grace lands in the ride's frozen quote; three cancels after arrival flag the driver at 27.3% against a 6.8% fleet, on the Reports page in Chrome.
2026-11-01 — "the driver asked me to pay in cash": report, refund, flag
- One tap from the receipt. "The driver asked me to pay in cash" opens two answers: I paid in cash / I refused (plus an optional note). It files a dispute with the facts (how the ride was paid, the fare, the driver), once per ride; the receipt then says what is happening to it.
- A rider charged twice gets it back in one action. On a wallet ride where the rider also paid cash, the incident (HIGH priority) shows "Refund the rider": it returns exactly what the ride's settlement took from the rider's wallet, out of the driver's wallet (the driver holds the cash), once ever, and closes the case.
- Drivers with a pattern are flagged: two or more reports in 90 days put a "2 cash reports" pill on the drivers list and a banner on the driver's page (with how many riders paid twice).
- Why: drivers refusing the app's payment and demanding cash, to keep the commission, was Mexico's most common ride complaint in 2025.
- Checked live: the report on the Android emulator (HIGH, double-charged), one-per-ride and owner-only via the API, the flag and banner in Chrome, the refund (rider +₹171.28, driver −₹171.28, case resolved, a second click moves nothing), and the closed state on the iPhone simulator.
2026-11-01 — tip any amount, and add to a tip later where riders expect it
- Any amount. The tip picker has an "Other" chip: type an amount in the market's currency, up to what the cap still allows; anything else is refused under the field before it is sent.
- Add to a tip where the market allows it (Admin → Pricing → Tipping → "Riders can add to a tip"; on by default in the US and Canada, off elsewhere). The rider sees what they have given so far and adds to it from the receipt inside the window. Only the difference posts, as its own ledger entry; a tip can never be lowered, and two raises racing cannot both post (the row is claimed first; a ledger refusal puts the claim back).
- The note under the picker now tells the truth in both kinds of market ("You can add to a tip later, but not lower it" vs "can't be changed once sent").
- Tips stay outside commission (no commission leg exists) and the driver gets each addition in full. Charging a tip to a card waits for card-per-ride payments, which the platform does not have yet.
- Checked live: the admin switch in Chrome; on the Android emulator a ₹25 custom tip then ₹10 more (two ledger credits, 2500 and 1000, receipt Tip ₹35); lowering refused (409), over the cap refused, the same total re-sent is a no-op; on the iPhone simulator the "₹35 so far" state and an over-cap amount refused with the room left (₹465).
2026-11-01 — India's e-Shram: each driver's UAN, and the export to submit
- A driver's number on the national register of platform workers, in the
driver app's profile and on the admin driver KYC tab. India ships e-Shram
(UAN, 12 digits); spaces and dashes are dropped, anything else is refused
in the driver's language. The register is set per market
(
kyc.workerRegistry), so another country can name its own. - Worker registry export (Admin → Drivers): every driver with their UAN, gender, joining date, active days, trips and earnings for a period of up to a year, as CSV. Earnings are read from the ledger (fares after commission, plus tips); a day is active when the driver went online or finished a trip, in the market's time zone. The download says how many drivers who worked have no UAN yet.
- Why: the Code on Social Security 2020 (in force 21 Nov 2025) and the Social Security (Central) Rules 2026 make aggregators register on e-Shram and submit their gig workers' details. There is no public e-Shram API, so the CSV is what the operator uploads.
- Checked live: 9 API checks (shape rules, admin and driver saves, the export matching the ledger to the paisa, a year limit, riders refused), the admin card and a real CSV download in Chrome, the driver card on the iPhone simulator (a bad number refused in words, a good one saved) and on the Android emulator.
2026-11-01 — women-only rides, the way each country runs them
- One feature, set per market (Admin → Markets → Women-only rides): offered or not; Women only or the UAE's Ladies & Family (a man may book it with his family; the driver's offer says so); the local name ("Modo Mulher", "Pink Ride"), shown in both apps; and whether drivers, and riders, must have their gender verified. Saudi Arabia and the UAE default to verified drivers and the UAE to Ladies & Family.
- City by city. A state or city region in Zones can switch it on or off for itself; a booking where it is off is refused naming the city.
- Verified gender. Operators confirm a driver's or rider's declared gender against their ID (driver KYC tab, rider Identity card). Changing the declared gender clears it, enforced by a database trigger. Where required, only verified women drivers are matched, and women drivers who carry women only receive verified riders.
- Women drivers on hand: registered, verified, online, and online by zone, next to the settings.
- An honest fallback. When a women-only request finds nobody, the rider is told and chooses: book a regular ride, or try again for a woman driver (the option comes back already on).
- The market's
female_driverswitch had no control in the admin at all; it is on this tab now. - Refusals carry codes (
women_rides_unavailable_here,…_female_only,…_rider_unverified) and the rider app shows them in its own language. - Fixed on the way: the rider's live trip screen read its ride without
women_only, so its women-only badge never showed. The trip detail now carries it (with a spec). - Checked live: 18 API checks (gating, verification, family, city switch, codes), the admin tab, verification and supply in Chrome; Pink Ride and the fallback on the Android emulator; the driver profile and a Ladies & Family offer on the iPhone simulator.
2026-11-01 — drivers can read how trips are matched and what the platform takes
- "How trips and pay work" in the driver menu. The top half publishes the
commission on every service where the driver is now (the same rule a trip
is charged: the type's rate, held under the market's and the city's cap),
marks the services the driver has a vehicle for, and states the cap. The
bottom half is an operator-edited page,
how-dispatch-works, seeded with what the dispatch code actually does: online drivers within 5 km on the booked ride type, ranked by distance with rating worth up to 15%, acceptance and cancellation rates not used, the driver's own filters, one 15-second offer at a time, how the fare and surge are set, what commission is. - Every version of every CMS page is kept (new
cms_page_revisionstable, which the database refuses to edit or delete). Admin → Content shows each page's history: when, who, live or draft, the text as it was, and "Load into editor" to go back (which saves as a new version). The app lists the date and time of every published change. Mexico's LFT arts. 291-A and 291-J require dispatch rules to be known to drivers and changes traceable; the same history covers which Terms a user agreed to. - The page is also in the driver app's Legal list.
- Fixed on the way: the Content screen's "Where these pages appear" box
printed "Site slugs help":
/legal/<slug>in the copy parsed as a tag in all 15 languages. Vehicle icons on the new screen use the app's resolver. - Known limit: a CMS page has one body, so the operator writes it in their drivers' language (per-language pages are a follow-up).
- Checked live: an admin edit in Chrome adds a version by that admin, a no-change save adds none, restoring an old version adds a new one, an UPDATE on the table is refused by Postgres; the screen on the Android emulator and, in Spanish, on the iPhone simulator.
2026-11-01 — the rider sees where their fare went
- "Where your fare goes" on the receipt. A completed ride's receipt shows the driver's share and the platform fee, with their percentages and a bar, read from the ride's settlement in the ledger (never recomputed from today's rate). A promo the platform paid for is named; tax and tips sit outside the split, and the receipt says tips go to the driver in full.
- Per market in Admin → Markets → Pricing ("Show riders the fare split on receipts"). On by default in Brazil, where the Ministry of Justice directed ride apps in March 2026 to show it; off elsewhere until an operator turns it on.
- Fixed on the way: a market save dropped any config section the merge did
not list by name;
receiptis now merged, with a spec. - The admin trip page already showed charged → commission → driver earnings. There is no emailed trip receipt in the platform today, so nothing to change there.
- Checked live: a full ride settled, the receipt's split equal to the ledger postings and to the "you keep" figure the driver saw on the offer; switched off for India the split disappears; the card on the Android emulator in English and on the iPhone simulator in Portuguese; the admin switch in Chrome.
2026-11-01 — a driver sees what they keep before they accept
- The offer card says what the driver keeps. Under the fare: "You keep ≈ ₹101.68 after 20% commission", using the commission that will actually be charged on that ride (the ride type's rate, held under the market or city cap). On a bidding ride it follows the rider's live offer.
- How far, and how long. "To pickup 1.4 km · ~3 min" and "Trip 5.7 km", in the market's unit (miles in imperial markets). The pickup distance is a road estimate (straight line × 1.3, ~25 km/h in town); the line is left out when the driver's position is unknown.
- Asked for by drivers in Brazil and the US, where accepting blind is the most common complaint; the destination was already shown.
- Checked live: the same offer on the Android emulator and the iPhone simulator, with the kept amount matching the server's commission to the paisa.
2026-11-01 — what a regulator asks about a vehicle
- Vehicle records. Fuel type, first registration date, insurer, policy number, insurance expiry, inspection expiry and equipment (child seat, wheelchair accessible, pets allowed), on every vehicle. Admin → Vehicles edits them and flags lapsed insurance or inspection in the list; the driver app asks for the model year and fuel when a driver adds a vehicle.
- Maximum vehicle age per market (Admin → Markets → KYC). India ships 8 years from registration (Motor Vehicle Aggregator Guidelines 2025); blank means no limit. A vehicle at or over the limit cannot be added (driver app, partner app, admin) and cannot go online.
- Lapsed papers stop the car. Going online with insurance or inspection past its date is refused with the date, in one sentence.
- Fixed on the way: the partner app's "edit car" returned a nested array
instead of the car (the same TypeORM
[rows, count]shape); one sharedreturnedRows()now reads every UPDATE ... RETURNING. - Checked live: a 2015 car refused, a 2023 EV added, an insurance that lapsed on 30 Oct blocks going online until renewed, the admin form and list in Chrome, and the driver app refusing a 2012 car on the emulator.
2026-11-01 — driver background checks through each market's own provider
- Run a check from the driver's KYC tab. A provider interface for identity and background checks, with adapters for Checkr (US, Canada: the driver consents and gives their SSN on Checkr's own hosted form; the result comes back as a signed webhook) and Truora (Mexico, Brazil, Colombia, Chile, Peru, Costa Rica, Ecuador: a national-ID check read back by its id, passing from a score the operator sets). Keys go in Admin → Providers, shown only to the countries each serves. Both adapters are written to the providers' published APIs and say so in the admin ("unverified adapter") until a real account has run a check through them.
- Record a check done elsewhere. India's police verification certificate, Saudi Absher, or any check outside the platform, recorded with its reference.
- What a result does. A clear result passes the driver's background check; anything else waits for the operator. Nothing fails a driver by itself, and a check never starts without the operator confirming the driver agreed to it.
- Checked live: the India install says no provider serves it, a police certificate recorded from the admin passes the check, a forged Checkr webhook is refused (401) and a signed one marks the check clear and the driver passed.
2026-11-01 — taking a driver off the road, with a reason and an appeal
- Deactivation cases. Admin → driver → Deactivate… opens a case: a reason code, an explanation written to the driver, named evidence, temporary or permanent, notice in days (0 only for safety and fraud) and an appeal window. The old one-click "Suspend" in the driver list now opens this form.
- The driver is told, and can answer. During notice a banner on the driver
home screen links to the case. Once it is in force the driver can still sign
in, to a restricted session that the server refuses on every route but
the case, the appeal, push registration and sign-out (
account_restricted), and the live socket refuses it too. The app opens straight on the case: reason, evidence, dates and an appeal form. Push messages in 11 languages. - Appeals queue. Admin → Deactivations, appeals first. Overturn restores the account at once; uphold keeps it; both carry a note to the driver. A job every five minutes starts noticed cases and ends temporary ones. Activating a driver with an open case is refused.
- Fixed on the way: TypeORM returns
[rows, count]forUPDATE ... RETURNING; the job read that pair as two cases and suspended nobody, and the zone update/delete could never report a missing zone. Both read the rows now. - Checked end to end: API, Chrome (queue, overturn, the form refusing a conduct case without notice), the Android emulator (sign in deactivated, appeal, overturned, signed in again to a home screen with a new notice) and the iPhone simulator (the case screen).
2026-11-01 — every hour a driver works, on the record
- Driver status log. A database trigger records every time a driver goes
online, offline or onto a trip (
driver_status_events, with the location), whichever code path made the change. Rows cannot be edited or deleted, like the ride ledger, and there is no foreign key, so erasing an account cannot erase the history an insurer or regulator may ask for. - Hours. With the trip phases already in
ride_events, the server works out online time, time on the way to pickups, time with passengers and time waiting, for today on the market's calendar and for the rolling last 24 hours. These are the numbers login caps (Maharashtra 12 h, Illinois 10 h in 24), Mexico's hours-based pay and US sick-time accrual are built on.GET /drivers/me/hoursfor the driver,GET /admin/drivers/:id/hoursfor any window up to 92 days. - Insurance period at a moment.
GET /admin/drivers/:id/period-at?at=answers what the driver was doing at an instant: 0 offline, 1 online and waiting, 2 on the way to a pickup, 3 with a passenger, with the ride. The admin driver page has an Hours card with both, and the lookup takes the time in the market's time zone. Checked live through a real trip: period 2, then 3, then 1, then 0 after going offline.
2026-11-01 — rules for each state and city
- Regions. A zone of the new type Region (state or city) carries the rules that differ there: surge band, commission cap, the driver's minimum share, whether riders may offer their own fare and within what band, and the operator's licence. Every region covering a pickup applies, largest first, so a city overrides its state and both override the country. Admin → Zones shows each region's code and its overrides as chips; the form takes × and % and names the field that is wrong.
- The rules bind where they should. The surge clamp on quotes, the "raise your fare" ceiling, the commission at settlement and every rider offer and driver counter read the rules at the pickup. Checked live: a 1.8× surge was capped at 1.2× in a Bengaluru region, 1.5× in the rest of a Karnataka region and left at 1.8× in Mumbai; a completed Bengaluru trip with a 90% driver share settled commission at 10% instead of 20%.
- Bidding is decided by the server. Offers used to be switched only in the
app; the server took any bidding booking. Now an offer is refused where
bidding is off at the pickup or outside the band (
bid_below_floor,bid_above_ceiling, with the allowed amount). Markets → Pricing gains the bidding switch and the offer band; India ships 0.5×–2× (MVAG 2025). - Rider app. The confirm screen asks for the rules at the pickup
(
GET /pricing/rules-at), shows "Offer your fare" only where it is allowed, stops the − and + buttons at the band and says it in money ("Offers here: ₹39.85 to ₹85.38"). 14 languages. - Ride types switched off by region. A region can switch a ride type off
(a state's bike-taxi ban, a court order), with a reason and an optional
start date. The type leaves the rider's fare list with the reason shown,
bookings for it are refused (
service_unavailable_here) on every booking path (rides, parcels, rentals, intercity), and rides under way finish. Switches add up across a state and its cities. Checked live on the Android emulator and the iPhone simulator. - Market pricing is checked on the server too. A market's caps can no longer be emptied from outside the admin form.
- Fixed: maps covered dialogs. Leaflet's layers sat above every admin dialog; editing a zone hid half the form under its own map.
2026-11-01 — the apps feel like each phone's own
Sheets behave like the system's. Every bottom sheet in the three apps (16 of them, from language pickers to the driver's ride offer) is now one shared
BottomSheet:- The dimmed backdrop fades in while only the sheet slides up. A slide-up Modal used to carry the backdrop up with it.
- The grabber works: drag the sheet down and it follows the finger. Past a third of the way, or with a flick, it closes; otherwise it springs back.
- The backdrop, Android back and VoiceOver's escape gesture all close it, and it animates out before it unmounts.
- A sheet that must be answered (the ride offer) has no grabber and ignores the backdrop.
- With Reduce Motion on, it appears with a short fade.
- A test keeps any screen from building its own slide-up Modal again.
Touch feedback in each platform's own vocabulary. A
feedbackhelper (all three apps) names the moment, not the strength:- iOS plays the system feedback generators.
- Android plays its own haptic constants (SEGMENT_TICK, TOGGLE_ON/OFF, CONFIRM, REJECT). These respect the phone's touch-feedback setting and need no vibrate permission.
The moments:
- Selection (vehicle, payment method, tip, stars, tags, tabs).
- Switches.
- Commitments (book a ride, accept an offer, arrive, start and complete a trip, parcel steps).
- Outcomes: success and error toasts. Plain notices no longer buzz.
The driver's offer ring keeps its strong vibration, so it is felt in a mount.
Native navigation.
- Screens push with the platform's own transition: iOS's parallax slide with interactive swipe-back (mirrored in Arabic), and Android's system transition. The fixed slide-from-right was neither, and slid the wrong way in right-to-left languages.
- The account menu is the iOS page sheet.
- Android 13+ predictive back is on in all three apps.
Fixed: the rider's account menu on Android was laid out as an iOS sheet, under the status bar, with a grabber that did nothing. It now clears the status bar there.
Press feedback.
- Buttons ripple on Android, drawn over the gradient and clipped to the rounded corners; on iOS they press in.
- Pull-to-refresh spinners use the brand colour on Android, where
tintColoris ignored. - Switches set iOS's off-track colour.
Fixed during on-device testing:
- The partner app had no gesture root, so its sheets could not be dragged on Android (taps worked, so nothing looked broken). A test now requires one in every app.
- A ripple set as the background was hidden by a row's own transparent background.
Verified:
- iPhone simulator: page-sheet menu, sheet open and close.
- Android emulator:
- Drag to dismiss and spring back, then back closing the sheet before the menu.
- Haptics read back from the system vibrator log.
- Ripples, partner sheets, and the ride offer: ignores drags and backdrop, declines, accepts with CONFIRM.
2026-11-01 — the trip on the lock screen and in the status bar
Added: the trip outside the app. While a driver is on the way and during the ride, the rider follows it without opening the app:
- iOS: a Live Activity on the lock screen and in the Dynamic Island.
- Android 16+: a Live Update, with a status-bar chip ("19 min") and a progress card. Earlier Android versions show an ongoing progress notification.
It shows the driver's name, car and plate, counts down to the pickup ETA by itself, and fills a progress bar as the car closes in. It follows the ride through arrived and on the way, then ends with "You've arrived" (left up for two minutes) or "Ride cancelled". The text appears in all 14 app languages.
Server: with the operator's APNs key (Admin → Providers → Apple Push), each ride status change is pushed to the iOS Live Activity, so it stays current while the app is suspended.
- Each activity reports its own push token (
POST /rides/:id/live-activity, rider only). Tokens are stored inride_live_activities(migration 080). - Requests are ES256-signed and sent to APNs over HTTP/2. A token Apple reports as gone is retired.
- With no key, nothing fails: the activity still counts down and catches up
when the app opens. Setup is in
docs/live-activities.md.
- Each activity reports its own push token (
A driver who cancels before pickup ends the activity at once, in the app and over APNs, with no second alert. The plate is fixed for an activity's life, so the next driver's acceptance starts a new one with their car instead of showing the old one.
Fixed: Android status-bar icon. Every Android notification from the three apps showed the launcher icon, which the status bar draws as a solid blob. The apps now ship a white-on-transparent silhouette of the logo mark.
- Buyers can replace it with
notificationIconinbrand.config.jsonorAPP_NOTIFICATION_ICON. check-brandrejects an icon with no transparency.
- Buyers can replace it with
Fixed during on-device testing:
- The Android build used the promotion API that only exists after SDK 36; it now sets the extra directly.
- An ended but still visible activity counted as live.
- Android's auto-group summary was reported as a ride.
- A relaunched app re-adopted its activity but stopped watching its push token.
2026-11-01 — the rider and driver can call each other in the app
- Added: in-app calls. On a live ride the rider and driver call each other
inside the apps, with WebRTC audio phone to phone. Neither sees the other's
number, and the operator needs no telephony contract. Calls ring and behave
like phone calls:
- iOS: CallKit (lock screen, AirPods, held by a cellular call, kept out of Recents).
- Android: a self-managed ConnectionService with the system's CallStyle Answer/Decline/Hang Up and a phone-call foreground service.
- Fallback: when an in-app call is not possible, the call button falls back to the phone call it made before (masked when configured), and a declined, missed or failed call offers "Call by phone instead".
- Server:
/callsbrokers the ring (40 seconds, then missed), checks that only the two people on an accepted, arrived or in-progress ride can call, and relays the handshake over their sockets (call:incoming / accepted / signal / ended). Calls are recorded inride_calls(migration 079, one live call per ride); audio is never recorded. A closed app gets a push in its own language that opens straight into the ringing call. - Operator: STUN/TURN under Admin → Providers → In-app calls. TURN uses
coturn's shared-secret scheme, so phones get credentials that expire after six
hours. Setup is in
docs/in-app-calls.md. - Apps:
- A native module
ridekit-call(Swift + Kotlin), identical in both apps and kept identical by a test. - Strings in 14 languages.
- Permissions: the microphone is now asked for, for calls only, with that reason in the iOS text. react-native-webrtc's screen-sharing service is removed from the Android manifest.
- A native module
- Fixed during on-device testing:
- Answering with the app's button left iOS audio off (CallKit was never told).
- The callee's microphone was on an unused transceiver.
- A ring whose "missed" message was lost rang forever.
- An app that died mid-call left the ride "busy".
- The call buttons hid when no phone number was known.
- The caller saw "Your rider" instead of the name.
- Not yet: waking a fully closed app with a lock-screen ring. That needs PushKit and FCM data messages with the operator's keys. See the doc.
2026-10-31 — driver and rider apps read right in Arabic; a raised fare on the receipt
Backend lint
- Changed: the backend is lint-clean, and the lint job blocks again.
npm run lintreported 758 problems — 746 of them formatting — so the CI job ran withallow_failureand new findings piled up unseen. Formatting is applied; the rest were unused imports and arguments, two expression-statements used asifs, and oneanyon the Razorpay webhook payload (now typed). Two source-reading specs were made whitespace-tolerant so the formatter cannot break them.allow_failureis gone from.gitlab-ci.yml; the GitHub workflow already blocked. 1637 tests and the build pass.
Driver and rider apps
- Fixed: Arabic layouts were mirrored twice. The RTL helpers swapped left/right on top
of React Native, which already mirrors
textAlign: 'left'and absoluteleft/rightunder RTL — so in Arabic the SOS and back buttons, value columns and headings landed on the wrong side.src/lib/rtl.tsnow speaks RN's logical start/end; only drawn characters are chosen per direction, and they are pinned (back/row chevrons, the history route arrow). The old test asserted the double flip; it now asserts the logical behaviour. - Fixed: Arabic on an English iPhone was left-aligned. iOS aligns unaligned text by
the phone's language. The shared
Tstarts aligned to the reader's start. - Fixed: phone numbers read "919755000003+" in Arabic (profile, menu, OTP, account deletion, M-Pesa prompt, business members) — now isolated left-to-right. The driver profile's phone row was labelled "What's your number?" (the sign-in question); it now says "Phone number" in every language.
- Fixed: the demand heatmap's subtitle hid under the time filter in Arabic and Indic fonts (fixed pixel offsets); the header, filter and loading note now stack.
- Fixed: starting the app with no network showed the welcome screen. Tokens survived an offline start, but with no user the app looked signed out until it was killed and reopened — a driver whose phone rebooted mid-trip in a dead zone lost the trip screen. Both apps now remember the last confirmed profile, resume with it, and confirm with the server once it answers (a rejected token still signs out and forgets it).
Money
- Fixed: a fare the rider raised while searching was missing from the receipt. The
raise is fare (it settles and is taxed) but was not a settlement line, so a ₹84.35 quote
raised by ₹20 printed "₹84.35 + ₹5.21 tax = ₹109.56" under a ₹104.35 headline. The
settlement now records
raiseMinorin the breakdown, the receipt and admin trip queries returnraise_minor(so past rides show it too), and the rider receipt and the admin dispute panel list it — the lines add up, and the headline is what was paid. - Fixed: the admin settlement panel printed account keys — "driver −₹104.35", "cash clearing" — for a cash ride's collected-cash entry, which read like the driver being charged twice. Every account and the cash entry are now named in the operator's language ("Cash the driver collected", "Held as cash").
- Verified on the Android emulator and the iOS simulator in Arabic (driver home, profile, settings, menu, history, destination, heatmap; rider home, profile, safety, trip receipt) and in Chrome (admin dispute panel and settlement rows).
2026-10-31 — the fleet owner's app in every market language; the console on market time
Partner (fleet owner) app
- Added: twelve more languages. It shipped English and Hindi only; it now carries every
language the driver and rider apps do — Arabic, Spanish, Portuguese, Indonesian, Thai,
Vietnamese, Bengali, Tamil, Telugu, Kannada, Marathi and Gujarati — with local examples
(a Saudi, Mexican, Brazilian or Tamil Nadu plate; a local fleet name). A test fails if a
catalog misses a key, drops a
{{placeholder}}, is mostly copied English, or if a country's language is missing from the switcher. - Fixed: counts read wrong in Arabic on the phone. Hermes has no
Intl.PluralRules, so i18next fell back to "1 is one, else other": four trips read "4 رحلة" instead of "4 رحلات", and English said "1 trips". The app now carries CLDR plural rules for its languages (src/i18n/plural-rules.ts, checked against Node's real rules for 0–1000) and the catalogs carry the forms each language needs (Arabic's dual, few and many). - Fixed: Arabic on iPhone was left-aligned. Without
textAlign, iOS aligns text by the phone's language, not the app's direction. Every screen now uses aTextthat starts where the reader starts; a test forbids the raw one. - Fixed: RTL details. A phone number in an Arabic row read "919855000005+"; the route
arrow pointed back at the pickup; the back and row chevrons could be mirrored twice.
Numbers are isolated left-to-right, the route line reads pickup → drop-off in either
direction, and chevrons are pinned (
src/lib/rtl.ts). - Fixed: untranslated values. "Paid by: cash" showed the server's word; distances were always "km" (now the market's km/mi); the earnings chart's day labels were raw "10-02" cut to "…" (now "2 Oct" in the reader's language, hung below the bars); the balance card's figures ran off the screen in Tamil (the row now wraps); the language picker offered "Withdraw" (money) for withdrawing an invitation.
- Fixed: a document expiring 1 March showed 28 Feb on phones west of Greenwich — a
datecolumn parsed as UTC midnight. Calendar days are now printed as written.
Admin console
- Fixed: times were in the browser's zone, not the market's. About forty places
formatted instants with no time zone, so an operator in Dubai running a Mumbai market saw
a 9:07 pm trip as 7:37 pm. Everything now goes through
useMarketClock()(src/lib/datetime.ts); calendar days (document expiry, the dashboard axis) are printed as written, and a test fails on any new date formatting without the market zone. Verified in Chrome with the browser set to Asia/Dubai: the trips list, trip page and the fleet owner's trip table all show India time. - Fixed: whole screens were English in every language. The fleet owner's console, the Partners page, the Website editor, half of Providers and the brand preview in Settings had every key in every catalog — but the value was the English sentence, copied over (about 250 strings per language, 141 in Hindi). They are translated in all 14 languages. Key parity could not see this; a new test fails on any string equal to English unless it is a code, a placeholder, or a word reviewed as correct in that language ("Total" in Spanish).
- Fixed: the Website editor's labels and help were hard-coded English in
labels.ts. They now come from the catalogs (website.fields,website.help), and a test reads the backend's content model so a new field cannot arrive without a label. On the way: the sentence shown when a visitor's area is live was labelled "Areas live now (one per line)" — the same label as the list of areas — and each card in a list carried an English "ITEM" heading. - Fixed: "Fleet Partners" was English in every sidebar. Its
nav.partnerskey never existed, and the sidebar falls back to the English label quietly. A test now requires a catalog label for every sidebar entry and group. - Fixed: letter-spaced labels broke Tamil, Hindi, Thai and Arabic. Eyebrow labels are tracked for Latin type; in these scripts the spacing pulls vowel marks off their letters (and breaks Arabic joins). Tracking is now dropped in those languages. Verified in Chrome: no letter-spaced text in Tamil or Arabic, Latin labels unchanged.
- Changed: the organisations form's sample city was "Bangalore" in Spanish, French, Portuguese, Indonesian and Vietnamese; it is now a city those readers know.
- Verified in Chrome: the Partners page and Website editor in Arabic (right-to-left, sidebar included), Providers and Website in Tamil, Partners and the Website headline section in Spanish, and the fleet owner's overview, drivers, vehicles and earnings in Tamil and Gujarati — every expected string present and none of the translated English left.
2026-10-31 — payouts go where each market pays out
- Fixed: outside India nobody could withdraw. The driver app, the partner app and the
fleet console asked for an account number and an Indian IFSC (or a UPI id) in every
market. Each market now names its own payout methods and fields
(
backend/src/payouts/payout-beneficiary.ts): IBAN across the Gulf, Turkey, North Africa and Europe; Pix in Brazil; CLABE in Mexico; routing/sort codes in the US/UK; M-Pesa and other mobile money in East and West Africa; UPI or bank + IFSC in India./payouts/limitsand/fleet/payouts/limitsreturnbeneficiaryMethods; all three forms are drawn from it, labels in every app language. - Fixed: payout details were stored in whatever shape the form sent. The server checks
every withdrawal against its market and stores it normalised, in the keys the payout
rail reads (spaces out of codes, IBAN/IFSC upper-case). The partner app and fleet
console sent bank details camel-cased (
accountNumber), which the rail never read; a refusal names the field ("Check the IFSC code"). - Fixed: a refused withdrawal in the driver app said nothing. Its error toast drew behind the withdrawal sheet (an Android modal is its own window). Errors now show in the sheet.
- Fixed: the cash ride entry showed as "cash collected" in the driver wallet, in every language. It has its own label in all fourteen.
- Fixed: fleet owners and staff without settings access saw the admin in US dollars.
The admin read the market's currency, locale, country and timezone from an endpoint
that needs
settings.manage; everyone else fell back to USD/US and the browser's zone. It now reads them from the public branding call too. - Fixed: error lines in the admin rendered grey.
text-danger-fgis not a class; eight messages (fleet withdrawal, adding a driver or vehicle, creating a partner, brand colour) now use the status colour, and a test keeps it that way.
2026-10-31 — money, dispatch, security and the buyer site: the rest of the audit
Money
- Fixed: a cash fare was paid twice. The driver kept the cash and was also credited the
fare's net in a wallet they could withdraw. A cash ride now also records the cash
collected (
cash_collected, migration1700000077000): the wallet moves by the commission owed, not by the earning. Earnings screens are unchanged. - Fixed: promo discounts came out of the driver's pay. The platform funds them from its promo account; the driver earns on the undiscounted fare. A one-use code can no longer be booked on several trips before the first one completes.
- Fixed: the rider's fare raise was never charged or paid. It settles as fare.
- Fixed: a refund retry after a gateway failure refunded the card and kept the wallet balance. Each attempt has its own ledger key.
- Fixed: payouts. A refused hold no longer leaves an unbacked payout row; "paid" and "failed" racing can no longer both post; a payout is never taken out of a debt.
- Fixed: one cancellation fee gave a rider unlimited wallet credit. Debts are allowed per
entry, not by switching the account (migration
1700000076000); a wallet ride the balance cannot cover is refused at booking; a completed ride never strands IN_PROGRESS. - Fixed: Razorpay
/verifycredits only captured payments; a Stripe verify is bound to the rider's own card intent (an OXXO voucher was credited twice); Moyasar webhooks fail closed; acomplete()retry records the fare the ledger settled.
Dispatch
- Fixed: a ride could be accepted by a driver it was not offered to, and a negotiated ride taken through the plain accept settled at the engine's price. Only the current offeree may accept; a bidding ride is accepted only at its agreed fare.
- Fixed: a driver could hold two live rides. Going on-trip is atomic; the auto-accept hourly limit, which never refused anything, now does.
- New:
GET /driver/rides/offer— the driver app picks up an offer it missed while in the background.
Security
- Rate limits (per route, shared through Redis) on sign-in, OTP, registration, refresh,
geocoding and invitations;
TRUST_PROXYso limits see the real client behind nginx. - OTP attempts are counted atomically — a burst of guesses cannot outrun the 5-try limit.
- A squatter's password does not survive the owner proving the phone or email.
- Upload size limits; avatars are typed by their bytes; parcel pickup/return codes have an attempt limit; a ride's rating and bids are visible only to the people on it; company "invite by phone" needs a whole number and an approved account.
- The dev master code never opens the super_admin on a production server; Swagger is off
in production (
API_DOCS=trueto publish it); sign-out and suspension end live sockets; socket origins followCORS_ORIGINS.
Admin console
- Sign out revokes the session; report and dashboard ranges are market days (no extra
day in every month's totals);
javascript:links cannot be saved on the website; Drivers/Riders search reaches beyond the newest 200; CSV exports are formula-safe with a BOM; the live dispatch feed survives token expiry; theadminrole can run dispatch (migration1700000078000); every account lands on a page it can use; the console cannot be framed.
Apps
- Payment screens can no longer be opened from a link with someone else's Pix code or card keys; Saudi (mada) card top-ups complete through 3-D Secure; trip screens catch up after the app was in the background or the socket reconnected; signing out closes the socket; a network blip no longer signs anyone out; the partner app signs out for real and can delete the account in-app.
Buyer site (sales)
- A squatter on a buyer's email loses the session at the buyer's key reset; community identity requires a purchase; only this site's checkouts, at its prices, become licenses; refunds and chargebacks revoke the license; the order and account files can no longer wipe themselves on a bad read; no open redirect after sign-in; rate limits.
Infrastructure
- Node 22 in every image and in CI (Node 20 is past end of life); Next.js 14.2.35;
.gitlab-ci.yml— CI now runs where the repository lives; the production compose forcesNODE_ENV=productionand waits for a healthy API.
2026-10-31 — Indonesian, Colombian and Iraqi amounts: the right size on every screen
- Fixed: amounts in IDR, COP, HUF, PKR and IQD showed 100× too large (1000× for IQD)
on Android, and admin entries were stored 100× too small. The admin and the three
apps took a currency's decimal places from the device's
Intldata, which gives these currencies no decimals, while the API stores them in hundredths (thousandths for IQD), as ISO 4217 does. Android's data and iOS's disagree, so the same fare read differently on the two phones. Every client now uses the API's own table to convert stored amounts andIntlonly to display them; a backend test holds all four copies to the backend's table. - The same mistake in the backend's company-account limit messages is fixed.
2026-10-31 — the one-command install works from the zip
- Fixed:
install/install.shcould not start the platform from a release. The kit'sdocker-compose.ymlwas a copy of the publisher's own production file: it built from repository paths a release does not have, read abackend/.envthat does not exist, and tried to build the publisher's sales site. The install kit now has its own compose file, written for the release layout (../source/…) and configured byinstall/.envalone. Verified by unzipping a release and running./install.shon Docker: images build, migrations run, the first admin signs in. - Fixed: the generated encryption key was never used. The template generated
CREDENTIALS_ENCRYPTION_KEY; the backend readsAPP_SECRET_KEY. New installs getAPP_SECRET_KEY. An existing.envis left as it is (its saved provider keys are encrypted withJWT_ACCESS_SECRET) and the installer explains why. - Fixed: a production install refused to boot without
CORS_ORIGINS, which nothing set. It now comes fromPUBLIC_ADMIN_URLandPUBLIC_WEBSITE_URL, andPUBLIC_API_URLis built into the admin and website. These three settings were previously read by nothing. - Hardened: nothing in the install is reachable from outside the machine. Postgres
and Redis are not published at all, and the API, admin and website listen on
127.0.0.1 (
API_PORT,ADMIN_PORT,WEBSITE_PORT). The developmentdocker-compose.ymlno longer publishes itspostgres/postgresdatabase on every interface either. - The installer's health check and printed addresses follow the configured ports, and its hint for reading a login code from the server log now prints just the code.
- The website (
site-template/) image builds from its own folder, so the same Dockerfile works in this repository and in a release.
2026-10-31 — the buyer download: only the product, stamped per order
- Fixed: the zip the sales site served carried internal documents. It was built
from the whole repository minus a hand-kept exclusion list that had fallen behind:
the security audit, gap and status reports,
PROTECTION.md,tools/and.claude/all shipped. The portal zip is now built by the release builder (tools/package/build-release.sh), where documentation arrives only by being named in an allowlist, and the final archive is re-checked against the never-ship list before it is published. The builder also now drops developer agent settings (.claude/), and says so plainly when a part has nothing committed instead of stopping without a word. - New: every order downloads its own copy. With
FINGERPRINT_SECRETset on the sales site, an order's first download is stamped with its order id (tools/package/fingerprint-zip.js) and kept, so later downloads are the same file with the same checksum.identify-release.jsreads the site'sorders.jsondirectly to name the order a leaked copy came from. If stamping fails, the download fails; it never falls back to the unmarked build. - Fixed:
verify-license.mjsrejected every genuine key (it expected the product nameRideKit, the issuer signsridekit).
2026-10-31 — security: money and accounts (audit fixes, criticals)
Found by the full audit of 2026-10-31; each fixed with regression tests and checked live against the API.
- Fixed (critical): any signed-in user could credit their own wallet.
POST /wallet/topupcredited any amount with no payment (a development shortcut that shipped), andPOST /payments/topupacceptedprovider: "manual"— a provider whose "charge" captures whatever it is told — and fell through to it when no provider was named. The first route is gone; the second refusesmanualand never falls through to it. Wallets are credited only by a real payment or by an operator recording cash. - Fixed (critical): forged "paid" callbacks credited unpaid top-ups. M-Pesa and Asaas
callbacks are unsigned unless the operator sets a token. A "paid" (or "failed") event a
provider could not authenticate is now confirmed with the gateway (
fetchTopUpStatus) before anything changes, and a webhook can only touch a charge of its own rail. - Fixed (critical): a fare could be settled on a cancelled ride.
complete()settled before it checked the ride's state; a driver could complete a ride the rider had cancelled and the fare moved. Only an in-progress ride completes now; completing an already-completed ride is answered without settling again. - Fixed (high): Google / Apple sign-in did not check which app a token was issued to.
A token from any other app logged its holder in as the matching email. The token's
audmust now be one of the installation's client ids (new Sign in with Google / Apple group in Admin → Providers); with none configured, social sign-in is refused. - Fixed (high): suspended and blacklisted accounts could sign straight back in by OTP or Google, and an OTP even lifted a suspension on an unverified phone. Every way in now refuses them; a refresh token stops working and ends every session; suspending (or deactivating staff) revokes sessions at once and takes a driver off the road.
- Fixed (high): any rider could open a company account with unlimited credit.
Corporate billing now requires an operator-verified account; the self-service route
opens only unverified company accounts and ignores a requested credit limit.
Migration
1700000074000-CorporateVerificationmarks existing corporate accounts verified so live ones keep working — operators: review Admin → Organizations once. - Fixed (high): a fleet could take over any driver. A phone number was enough to enrol
a driver and see their live location, phone and trips. Fleets now invite; the driver
sees the fleet and its terms in the driver app and accepts or declines, and nothing
about them reaches the fleet before that. Driver data is visible only to fleets an
operator has verified. Migration
1700000075000-FleetInvites; driver app invitation card (14 languages); partner app shows pending invitations and can withdraw them.
2026-10-31 — in-app turn-by-turn for drivers; a car that glides natively
- In-app navigation in the driver app (trip, rental/intercity and parcel screens). The
Navigate button now offers In-app navigation first, then Google Maps / Apple Maps / Waze.
In-app: a heading-up, tilted camera that follows the car; a maneuver banner (arrow, distance
along the road, instruction, the provider's remarks); remaining time · distance · arrival
clock; automatic re-planning when the car leaves the route (two strikes beyond the GPS's
own uncertainty, at most every 10 s); arrival detection; spoken prompts at speed-scaled
distances (far / near / now) in the driver's language through a new native module
(
modules/ridekit-voice: AndroidTextToSpeechas navigation guidance with audio-focus ducking, iOSAVSpeechSynthesizeras a voice prompt that ducks other audio), with mute. Distances follow the market's unit (km/m or mi/ft) and the locale's number format. While navigation is on screen the native location service reports once a second (navigatingmode); uploads stay in five-second batches. - Backend:
POST /geo/routetakessteps: true(+ optionallanguage) and returns turn-by-turn steps in one shape for both providers (OSRMsteps=true, Google Routes APIlegs.steps.navigationInstruction), each pinned to the route geometry by distance along the route so a route through the same junction twice cannot misplace a step. - Rider app: the driver's car uses the heading the driver's phone measured (no more
corner-cutting bearings between sparse fixes) and, on Android, glides natively
(
animateMarkerToCoordinate) instead of thirty prop updates a second. - Fixed: the rental/intercity screen forced Google Maps on iOS, which cannot render without a buyer-supplied iOS Maps key; it now uses Apple Maps like every other screen.
- Fixed: the driver app ignored the market's
distanceUnitfrom/branding. - Defensive: after accepting an offer, if the home screen is still in front 1.2 s later the app navigates to the trip again (iOS once dropped that navigation while the offer sheet's modal was closing; not reproduced in four further runs).
2026-10-31 — driver location runs natively, and iOS apps launch on the iOS 27 SDK
- Native location service for the driver app (
mobile/driver/modules/ridekit-location, Kotlin + Swift as a local Expo module). Runs from go-online to go-offline/sign-out, in the background, through navigation apps and after the app is swiped away: an Android foreground service (Fused Location, platform-GPS fallback for phones without Google Play services) and an iOSCLLocationManagerwith background updates,CLBackgroundActivitySessionand significant-change relaunch. Fixes are queued on disk and posted in order; an AndroidNetworkCallback/ iOSNWPathMonitorflushes the moment the phone is back online.- Fixed: an ONLINE driver with the app in the background stopped reporting, so dispatch matched riders to stale positions.
- Fixed: the odometer that rental, intercity and metered fares bill from capped a gap at one 2 km (5 km intercity) hop — a ten-minute dead zone lost the road driven. Buffered fixes are now replayed one by one.
- Fixed: GPS noise from a standing car (speed < 0.5 m/s) was billed as distance.
- Battery-saver / manufacturer auto-start guidance on Android (no restricted permission).
- Background-location disclosure updated in 14 languages: tracking runs while online, not only on a trip. A driver who declines is still reported while the app is open.
- Backend:
POST /drivers/location/batch(ordered replay, stale/inaccurate/stationary rules, one transaction per driver, odometer tick isolated by a savepoint),POST /drivers/location/token(location-only JWT on a derived key, revoked by an epoch bump on go-offline and logout),POST /drivers/locationaccepts optionalaccuracy/heading/speed/recordedAt. Rider and dispatch location events now carryheading(andspeed). Migration1700000073000-DriverLocationStream. - Fixed: signing out of the driver app left the driver ONLINE (and, with auto-accept, assignable) at their last position. Logout now takes an online driver offline.
- iOS 27 SDK: apps that do not adopt the UIScene lifecycle are stopped at launch. A
shared config plugin (
mobile/plugins/withSceneLifecycle.js) adds the scene manifest and aSceneDelegatethat forwards links; applied to rider, driver and partner. A second shared plugin raises pods that still declare iOS 11 (react-native-maps) to 15.1. - Generated native projects are no longer committed (
mobile/*/android,mobile/*/iosare git-ignored;expo prebuildregenerates them on every build, as CI and the store script already did). A generated manifest is where a Maps key lands; a test now fails if one is ever tracked again.build-store-aab.shrefuses to run ifandroid/is not ignored.
2026-09-08 — place search answers for the city you are in
- Fixed: typing "Vijay Nagar" in Indore listed Ghaziabad's Vijay Nagar first.
/geo/searchnow takes an optionallat/lngbias point: Google Places is asked to bias by it (locationBias, 50 km), Nominatim gets a viewbox, and the hits are partitioned so everything within 75 km of the searcher comes first — nothing is dropped, so intercity destinations are still further down the list. Cache keys include a ~1 km grid of the bias point. The rider app sends its pickup point; the admin API client accepts anearargument.
2026-09-08 — mobile: store builds, background-location disclosure, demo mode
- Local signed store builds:
mobile/scripts/build-store-aab.shbuilds a signed AAB (+ universal APK) for any app from the committed native project. Release signing comes fromRIDEKIT_UPLOAD_*environment variables through a new Expo config plugin (plugins/withReleaseSigning.jsin each app) that survivesexpo prebuild --clean;ANDROID_VERSION_CODE/IOS_BUILD_NUMBERare read from the environment. - Driver app: prominent disclosure before background location. Google Play requires an in-app disclosure with explicit consent before the system prompt for background location; the driver app now shows it (14 languages) the first time a trip starts, and a decline keeps the trip on foreground pings.
- Demo mode (
EXPO_PUBLIC_DEMO_MODE=1, our store demo builds only): an amber DEMO strip on every screen, demo sign-in hints,mobile/scripts/demo-build.envprofile. Compiles out of buyer builds. - Play Store listing kit for the three demo apps:
docs/marketing/play-store/.
[Unreleased] — Fleet partner console (2026-09-07)
Added
- Fleet partner console — the fleet owner's app and web panel now run a
business rather than describe one: live driver status (on a trip / online /
offline, last seen, the car they are on), per-driver detail with trips,
documents (status and expiry only) and per-driver terms, fleet-owned
vehicles (register, edit, assign, free, retire), a trips list and detail
with the money split, earnings by day with trip shares and lease charges
apart, a wallet with the fleet's ledger and withdrawals from the fleet's
own account, and an account screen. Backend:
GET /fleet(live stats),/fleet/drivers(live rows,lookup?phone=,:driverIddetail, termsPATCH),/fleet/vehicles(create / update / remove / types),/fleet/trips(+:rideId),/fleet/earnings(series + split),/fleet/wallet,/fleet/payouts(+limits),PATCH /fleet(profile). - Self-serve fleet application —
POST /fleet/apply: an account that owns nothing applies from the app, the fleet is created unverified, and thefleet_ownerrole is granted. Nothing had ever granted that role: an operator could create a fleet and name its owner, and the partner surfaces built for them answered 403. Now granted on application, on operator creation, and on an ownership change; existing fleet owners are backfilled by migration1700000072000-FleetConsole. - Operator side —
Add fleet partner(owner found or created by phone),Openon a fleet for everything the owner sees plus verify/active switches, applications flagged with the date they applied./admin/partners/*behindpartner.manage. - Fleet payouts —
payout_requests.organization_id; a fleet withdrawal reserves from and refunds to thefleet_ownerledger account, and the operator queue names the fleet. - 15-language admin catalogs and en/hi app catalogs for all of the above,
with parity tests; admin e2e specs for the partners page, the partner panel
and every operator screen; Maestro flows for a full ride on two emulators
and for the fleet app;
mobile/scripts/e2e-side-by-side.sh.
Fixed
- The operator's Partners list never returned
isVerified, the settlement terms, or the driver/vehicle counts — every fleet rendered as unverified with "0 drivers · 0 vehicles" whatever the row held. - A fleet owner's token opened the operator console by URL (an RBAC-empty shell where every call 403s); the console now routes them to their panel.
- The partner app told every fleet owner they were not one when the fleet check failed for any reason; a 403 now leads to the application form and keeps the session, and any other failure says what it is.
site-template's colour fallback was a different teal from every other shipped default.- On the drivers, riders, trips, parcels and vehicles lists, the filter-to-URL
sync (
router.replace) could cancel a row'sOpennavigation that had just started; the URL is now updated withhistory.replaceState, which does not touch the router. - A fleet could never register a plate that had belonged to a retired car:
the clash check read every vehicle ever while the unique index is partial on
deleted_at IS NULL. Live vehicles only, on create and update. - The fleet console's Add-vehicle modal could open before the vehicle-type catalogue arrived and then stay disabled with a type visibly selected; it now takes the first type when the catalogue lands.
[Unreleased] — Platform completion phases 1–4 (2026-08)
Added
- Bidding/negotiation end-to-end — inDrive-style offer/counter-offer UI on
both apps over the existing
PricingMode.BIDDINGbackend, with a one-shot 60-second bid grace on dispatch. - Refunds — operator refund console (
payment.refundpermission): wallet debit first, then gateway refund with compensation on failure; refuses insufficient balance stating the max refundable. Corporate rides get credit notes instead (no gateway leg to reverse). - Women-only rides — market-gated (
womenOnlyEnabled), fails closed at booking before pricing; driver side filtered in dispatch SQL. - Live trip sharing — tokenized public tracking page (identity, phone and money structurally excluded from the payload); unknown/revoked/expired tokens all 404 identically.
- Safety centre — trusted contacts (cap 5), SOS fan-out SMS carrying a
live-trip link, automatic ride check-in (long-trip and stationary signals,
escalation to a HIGH incident), emergency numbers for all 37 markets in
market config. Audio recording deliberately deferred — see
docs/safety-audio-recording.mdfor the reasoning and the full design. - Driver retention — destination mode (2/day, dropoff must close ≥25% of remaining distance), trip preferences (pickup distance / min fare / long-trip / tier opt-outs), auto-accept through the normal accept path, payout limits endpoint with honest settlement estimates.
- Corporate rides — book on a company account with credit-limit enforcement at booking, org settlement as a first-class ledger account (negative balance = the month-end invoice), org-owner portal in the rider app, admin billing console with credit notes and company payments.
- Parcel delivery — full vertical: OTP-at-both-ends + photo proof of delivery (codes redacted from the courier's app), priced failure paths (free retry → return-to-sender at 60%, courier paid both legs), chain of custody in admin, per-market size/weight tier pricing, market gating.
- Rentals — hourly packages (1h/10km … 12h/120km) seeded from each market's own economy fare, live overage meter mirrored in both apps, mid-trip destination edits, package-expiry sweeper, rider-ends-the-trip semantics.
- Intercity/outstation — one-way (1.3×) and round-trip (0.85× with a 250 km/day floor), driver daily/night allowances and toll/permit line items, driver opt-in as a dispatch predicate, 30-minute dispatch lead on scheduled departures.
- Local payment rails — M-Pesa STK push, Paystack, Flutterwave, OXXO
vouchers (top-up only) and GCash behind a new
AsyncTopUpProviderinterface (instruction + later-outcome semantics); Pix retrofitted onto the same path. Each rail declares an honest integration status the admin shows as "Keys set · unverified" until proven against the live provider. - Languages — Thai, Vietnamese and Indonesian across rider, driver and admin (catalogs now 14/14/15), parity-test enforced.
- Public banners endpoint —
GET /content/banners?audience=serving only live, windowed banners with an app-safe payload.
Fixed
- Ledger-corrupting minor-unit bugs (
formatMoney/toMinorSafehardcoded/100; JPY and KWD amounts rendered and stored wrong). - Tax invoices claimed
issuedwithout any authority response; local fallback is nowlocal_only. - Re-inviting a revoked org member silently did nothing (stale soft-delete timestamp written back over the restore).
- Unaccepted parcels were uncloseable (
no_driversterminal-state gap). - Payout reconciliation: confirmed failures now return driver funds; uncertainty never moves money.
- Rail errors no longer surface to riders as HTTP 500.
backend/storage/untracked from git — dev uploads (including driver KYC test documents) no longer ship in the product archive.
[Unreleased] — Gap Closure (P0 → P3)
Closing every item in Claude_Code_Gap_Closure_Spec.md, sequence admin → rider
→ driver. Each item verified end-to-end (UI → API → DB → response), all four
codebases (backend / admin / rider / driver) tsc-clean.
Added
- Multi-stop rides (up to 3) — multi-leg fare pricing (
distanceKmMultiPoint), rider "+ Add stop" flow + multi-leg polyline, driver per-stop arrival progression,POST /driver/rides/:id/stops/:index/arrive(idempotent, ownership-checked). Verified: fare rises monotonically with total leg distance; 4th stop rejected (400). - Driver incentives / quests — operator-defined target campaigns (rides or earnings goal → wallet reward), admin CRUD (
/admin/incentives), driver quests screen with live progress, idempotent ledger-backed award (posts asadjustment→ shows in earnings). Verified: reaching target pays once, never double-pays. - Country Preset Pack — canonical 37-country data (currency/locale/timezone/dial/distance-unit/gateways/tax-engine/top-up presets), seed migration, installer applies + activates a market on onboarding, both apps'
COUNTRY_DIALSregenerated from the same source. - Distance units (
km/mi) — per-marketdistanceUniton/branding,formatDistance()helper (km→mi at render), i18n unit labels. - Market-driven dates & timezone — locale-aware client date helpers; server-side
formatInMarketTz()(Intl, zero deps); daily report buckets + tax-invoice issue date rendered in the market IANA timezone (storage stays UTC). - Call masking — provider abstraction (Twilio Proxy-style) with direct-dial default;
GET /rides/:id/call-numberreturns a masked or real number, ownership-checked; both apps dial via the endpoint. - Government e-invoicing live wiring — all 4 tax engines (India GST / ZATCA / CFDI / NFS-e) credential-gated: real authority/GSP filing when configured, deterministic local invoice as dev/B2C fallback; never blocks a ride. See
docs/E-INVOICING.md. - Referral programme, broadcast (push/email/SMS), CMS FAQ + Blog, provider credential store (AES-256-GCM), SMS providers (Twilio/MSG91), S3/R2 storage, RazorpayX payouts, social login (Apple + Google) — full slices, all verified.
- Docs —
E-INVOICING.md(per-country credential requirements),BRANDING-ASSETS.md(white-label icon/splash spec).
Changed
- White-label theming — welcome-screen gradients, Razorpay checkout name/theme, push LED colour, and wallet top-up presets all now derive from the market/branding config instead of hardcoded values; app icon/splash paths are env-overridable.
- Status colours tokenized (rider + driver) — hardcoded success/danger/warn hex replaced with theme tokens that adapt to dark mode.
- Money formatting — one shared
formatMoney+useInstallationacross the admin app (removed 10 localmoney()helpers).
Fixed
- Promo money bug — a shown discount is now actually charged (promo persisted at booking, settled on the discounted fare).
- Saudi gateway routing — SA now resolves to Moyasar (was falling through to Stripe); removed gateway keys with no provider code.
- Socket event mismatch — offer-expiry now dismisses correctly (
ride:offer_expiredshared constant). - Silent error swallows — stale-tracking / fake-zero-balance / invisible-reject-failure surfaced to users; backend config-load failures now logged before defaulting (never silently price on defaults).
- GeoJSON coords — pickup/drop-off markers now render from the raw ride entity's PostGIS GeoJSON in both apps.
[Unreleased] — Phase 3: Multi-Entity Panels
Added
- Admin panel (Next.js,
/admin) — OTP login, live dashboard (stats + trips, auto-refresh, sparklines, status pills, skeletons), drivers, riders, reports, dispatch. Premium UI pass (dark sidebar + light content); a deeper redesign is still planned. - Dispatcher — manual booking on a rider's behalf, force-assign + change-driver (
ride.assigngated). Live-verified. - Geofencing / zones — PostGIS polygon zones (service / restricted / airport / surge), point-in-zone (
ST_Covers, GIST-indexed), serviceability check. Live-verified with real Bangalore polygons. - Fleet / Corporate / Franchise — unified
organizationsmodel + memberships; create, add/remove members, scoped reports (fleet earnings / corporate billing vs credit limit / franchise city), owner-only isolation (403 otherwise). Live-verified all three types. - Docs — Admin Guide (panels, dispatch, zones).
Fixed
- Added admin panel origin (
:3200) to backend CORS (was blocking the panel login).
[Unreleased] — Phase 2: Money & Operations
Added
- Wallet on the double-entry ledger — top-ups, balances, idempotent.
- Ride settlement + commission — completing a ride splits the fare (rider → driver + platform commission) in one balanced entry; commission per vehicle type, floored.
- Pricing engine extras — configurable surge/night multipliers (
pricing_rules, compounding, midnight-wrap windows), waiting charge, flat toll. - Cancellation policy engine — admin-configurable free window, late-cancel fee, no-show fee, driver/rider fault; rider may go into debt for mandatory fees.
- Promo codes (flat/percent + cap, limits, validity) and referrals (refer-a-rider + refer-a-driver, separate rewards) — all credited via the ledger.
- Payout engine — driver wallet → bank, reserve→process→paid/failed-refund, pluggable rails (manual + RazorpayX stub),
payout.approvegated. - Payment integration — gateway charge → wallet top-up bridge; real Stripe (PaymentIntents, India 3-D Secure handled via webhook capture), signed webhook verification; manual/cash provider; refunds.
- Reports — revenue, drivers, customers, trips, tax (taxable base) — RBAC
report.view, date-ranged, reconciled from the ledger. - Docs — Admin Guide (money & operations), User Manual (wallet & payments).
Fixed (found via live e2e testing)
- Cancellation fee on a rider with no balance was blocked — rider wallet now goes into debt for mandatory fees.
- Assigned driver was not released back to
onlineon cancel/no-show. - Discovered (via real Stripe keys) the account is India-registered → server-side auto-capture isn't possible; reworked to webhook-driven capture.
[Unreleased] — Phase 1: Core Ride Loop
Added
- Ride schema — vehicle types, vehicles, driver profiles (PostGIS location), rides, immutable ride-event audit, ride bids. GIST spatial indexes.
- Driver presence — online/offline, location updates (PostGIS geography).
- Dispatch engine — PostGIS nearest-driver query (ST_DWithin + ST_Distance), distance + rating weighted, GIST-indexed. Live-verified ranking.
- Fare estimate — base + per-km + per-minute, min-fare floor, per vehicle type; integer minor-unit money math.
- Ride loop — book → accept → arrive → start → complete, enforced by a state machine; every transition audited and pushed to rider + driver.
- Bidding — inDriver-style negotiation toggle (rider bids, driver counters, rider accepts at agreed fare).
- Realtime — Socket.IO
ride:status/driver:locationevents to per-user rooms (JWT-authed, Redis-adapter fan-out). Live-verified. - Basic admin — RBAC-gated live trips, dashboard stats, driver/rider lists.
- Docs — User Manual (booking), Driver Guide (going online + trip flow).
Fixed (found via live e2e testing)
rides.pricing_modecolumn mapping missing on the entity (every ride fetch 500'd).- Bidding accept DTO missing a validation decorator (rejected by global whitelist).
[Unreleased] — Phase 0: Foundation
Added
- Project scaffold — NestJS + TypeScript, ESLint/Prettier, Node 20 pinned (
.nvmrc,engines). - Config + env validation — typed config; boot fails fast on missing/weak vars (JWT secret ≥32 chars; prod rejects placeholder secrets and empty CORS).
- Database — PostgreSQL + PostGIS via TypeORM; UUID PKs, soft deletes, dormant
tenant_id, migration tooling. Extensions auto-enabled by first migration. - Wallet ledger — double-entry, immutable. DB-enforced: per-currency balance, ≥2 postings, positive amounts, immutability triggers, one system account per (owner_type, currency).
- RBAC — roles + permissions +
@RequirePermissionsguard; 8 system roles seeded. - Auth — phone OTP (Redis, hashed), JWT access + rotating refresh tokens (theft detection), password login, social-login structure, SMS provider plugin (dev log provider).
- Payments — gateway plugin layer (manager pattern); manual/cash provider + Stripe stub with HMAC webhook-signature verification.
- Storage — local + S3/R2 driver abstraction, config-selected; path-traversal guarded.
- Realtime + queues — Socket.IO with Redis adapter (multi-instance), BullMQ background jobs.
- Observability — pino structured logging, Sentry capture filter,
/api/healthreadiness (DB+Redis, returns 503 on failure with bounded Redis ping). - Ops — Docker multi-stage image (non-root), docker-compose (Postgres+PostGIS, Redis), GitHub Actions CI (lint→build→migrate→test→docker build).
- Docs — Installation + Deployment drafted; section tree scaffolded.
Fixed (found via live testing during Phase 0 audit)
- Ledger: cross-currency false-balance, duplicate system accounts, zero-posting entries, mixed-case currency split wallets, soft-delete vs immutability crash, idempotency race returning 409/500 instead of the existing entry.
- Runtime: health check hanging on dead Redis; 5xx errors silent without Sentry DSN.
- Auth: refresh
replaced_bytyped uuid vs token hash (every refresh 500'd). - Build: broken
package-lock.jsonfailingnpm ciin Docker/CI.