D63 · Roles and permissions for the General Flow's teams
Accepted · 2026-10-16 · zuki · Closes #157 · Partly superseded by D71 (the count of roles and permissions) and D94 (no preparation_leader role: admin_fleet holds preparation:approve)
Decision: The mapping proposed on #157 is approved, except two parts:
- The payment and collection roles go to the backlog, to be built after cutover. Until then finance, admin and admin_fleet do that work, as today.
- The trainer role and training:write are not built now (D64).
So v2 adds four permissions: driver:reject and driver:blacklist (the Driver Team, through admin_driver; driver:reject also to background_check), preparation:approve (assigning the PIC and passing the quality check), and repo:read and repo:write. It adds two roles: preparation_leader (the Preparation Team's permissions plus preparation:approve) and repo. admin_fleet gains debt_letter:write, so Vehicle Management executes a surat hutang and records whether a rental continues (D45). admin and super_admin hold every new permission.
Why: The higher-ups approved the mapping on #157, putting "banking" (payment and collection) after cutover and DRV-19 (training) aside.
Consequences:
- The catalogue grows from 46 to 50 permissions and the system roles from 11 to 13, each in the module that uses it: driver:reject and driver:blacklist in M3, preparation_leader and repo in M5. The seed, the E2E logins and the per-role menu check grow with them.
- The backlog lists the payment and collection roles under "After cutover" in the plan.