RideKit
Docs/Reference/US: deactivation due process

US: deactivation due process

Built: 2026-11-04 (policies by region, templates and the monthly report; cases, notice, evidence and appeals existed). Written for US operators and whoever maintains the code.

Seattle, New York City, Minnesota and Colorado each require a ride platform to:

  • publish a written deactivation policy;
  • give the driver notice before a deactivation takes effect (14 days in Seattle and Minnesota), except for the serious cases the law names;
  • tell the driver why, with the evidence;
  • let the driver ask for a review within a set time;
  • report deactivations to the city or state.

What already existed

A deactivation is a case (Admin → People → Deactivations, or a driver's page → Deactivate). The case records:

  • the reason;
  • the details and the evidence the driver sees;
  • the notice period, during which the driver can keep driving;
  • whether it is temporary or permanent;
  • the appeal deadline.

The driver sees the case in the app and can send an appeal. The operator then upholds or overturns it, and every step is audited.

Deactivation policies (Admin → People → Deactivation policies)

A policy holds one city's or state's rules. It applies either to a region from Zones or to the whole market.

Field Meaning
Least notice Days between opening the case and it taking effect (0–30).
At once for Reasons the law lets take effect with no notice, for example safety or fraud.
Least time to ask for a review Days the driver has to appeal (1–90).
Policy link The published written policy (https:// only).
Templates For each reason, the notice wording an operator starts from.

The policy that applies to a driver is chosen from where the driver drives, meaning their last known position:

  • a region's policy wins over the market-wide one;
  • a driver with no position falls under the market-wide policy only.

Creating or changing a policy needs settings.manage and is audited. Policies are switched off, never deleted, so old cases keep their name and link.

Opening a case under a policy

When an operator opens a case, the deactivate form shows the policy band (name, notice, appeal time and link). The form:

  • defaults the notice and appeal days to the policy's values;
  • offers Use template to fill the details with that reason's wording.

The backend checks the case against the policy. A breach is refused with code deactivation_policy and says what is missing, for example "Seattle deactivation policy: give at least 14 days' notice (only safety may take effect at once)."

There are two exceptions:

  • The FCRA final notice (background checks) has its own legal timeline, so it is not held to the policy.
  • A system-created zero-tolerance deactivation (vehicle compliance) is also not held to it.

The case stores the policy's name and link, so it does not change later. The driver's case screen shows Read the , which opens the published policy.

Monthly report

Below the policies, Monthly report lists the month's cases per policy and reason:

  • cases;
  • how many took effect at once;
  • how many had notice;
  • appeals;
  • how many were overturned and how many upheld;
  • average days to a decision.

CSV downloads the same table. The download is audited as deactivation_report.export. Months follow the market's time zone.

Each city's report format and deadline differ (Seattle's Office of Labor Standards, NYC's DCWP, Minnesota's DLI). Check the current ordinance and map its columns from this file. The notice and appeal numbers are configuration: confirm them with local counsel.

Code

  • backend/src/admin/deactivation-policy.ts: validatePolicy and policyBreach. Spec: deactivation-policy.spec.ts.
  • backend/src/admin/deactivation-policies.service.ts: list, save, forDriver, report and CSV. Routes:
    • /admin/deactivation-policies;
    • /admin/drivers/:id/deactivation-policy;
    • /admin/deactivations/report(.csv).
  • backend/src/admin/deactivation-reasons.ts: the reason list. It sits in its own module to avoid an import cycle.
  • backend/src/admin/deactivations.service.ts create(): the policy check, and storing policy_id, policy_name, policy_url and region_id.
  • Migration 1700000191000-DeactivationPolicies.
  • Admin:
    • app/(dashboard)/deactivation-policies/page.tsx;
    • components/deactivation/DeactivateModal.tsx.
  • Driver: app/(app)/deactivated.tsx, which holds the policy link (deact-policy).
source: docs/us-deactivation-due-process.md (ships identically in the product zip)