Timeline
The order of all v2 work, from the first create-turbo command to cutover: the steps that belong to no single role, written in full on this site as TL steps, and a row for every Backend, Frontend and Docs Engineer pack at the point where it runs. D25 created this timeline; it follows the decisions and how we work, and never overrides them.
It moved here from the Google doc [Runbook] v2 timeline on 2026-10-07 (TL-M0-27, D28), with its row numbers and step IDs unchanged.
Owner: @zuki · Kept by a CTO session · Last reviewed: 2026-11-02 · Conforms to the decisions through D85
How this timeline works
Section titled “How this timeline works”- Work down the run order. Run a row only when the rows above it are done, unless the row says it can run earlier.
- Four kinds of rows. TL steps are written in full on this site, one page each. BE and FE packs are written in the backend runbook and the frontend runbook, which moved here from Google Docs on 2026-10-08; their row here says when to run them. DOC packs are pull requests to apps/docs from the Docs Engineer (D27). Gates are a decision or a check that must happen before the rows after it.
- Status lives on the Opleet v2 board (D28). Every M0 row not yet done has an issue, linked in its last column, and the row is done when its issue closes. A row that must wait for another says so. Rows done before the move show their date. Rows of the later phases get their issues when their phase starts, except data-phase rows 1, 2, 4, 8 and 9, which have theirs since 2026-10-19.
- Logging. A run is logged as a comment on the row's issue: the date, what was run, and the output that mattered. A TL step's Runs section keeps the runs logged before the move.
- Who edits what. A CTO session writes the TL steps and the run order. The Backend, Frontend and Docs Engineers may change the step IDs of their own rows, or add a row marked Proposed where a new pack belongs, in a pull request; only a CTO session or zuki reorders rows or changes a TL step.
- Agent pull requests. Agents reach Opleettop/monorepo only through the Claude GitHub app, which can see no other repository (D28). They push a branch, open a pull request and get its checks green; they never merge. zuki reviews every pull request and squash-merges it, and the ruleset on main enforces that. In M0 only DOC packs and CTO pull requests arrive this way; from the data phase on, every pack does.
- When a TL step fails, stop and paste the output into a CTO session (a Claude session that names the CTO role, or none: starting a session) and into the step's issue.
- Commands are pnpm first, for zsh on zuki's Mac. Copy one numbered block at a time; each code block has a copy button. The TL steps were run end to end in a test workspace on 2026-10-05, except for the Starlight template download and the first Supabase start; TL-M0-26 was run there on 2026-10-06.
Phases
Section titled “Phases”| Phase | What it delivers | Where its steps are |
|---|---|---|
| M0 Foundation | The repository, tooling and CI; V13's rules in apps/docs, then schema V13 with its tests; the app shell; staging, hosting and the docs site. Rebuilt from an empty folder (D25). | TL steps on this site; the M0 tabs of the backend and frontend runbooks; DOC pack A in apps/docs |
| Data phase | Every domain's migration step and reconcile, run end to end on a copy of v1 (D17). | The backend runbook's Data phase tab; TL steps for the nightly job |
| M1 to M7 | Each module's database actions and pages, on real data. | A DOC pack in apps/docs, then the module tabs of both runbooks |
| Staff testing and cutover | Staff testing, go/no-go and the cutover weekend (D20, D21). | The guide to the cutover weekend and rollback; TL steps for production |
Run order
Section titled “Run order”M0 · Foundation
Section titled “M0 · Foundation”Closed on 2026-10-19. zuki logged the exit check (row 36) on #27, after row 30 (#20). Two rows outside the exit check run beside the data phase: row 29a, the error pages (#209, waiting for review), and row 34a, Sentry's SDK (#173, waiting for its run). Both touch app/global-error.tsx; either may go first, and the second rebases. Row 34b, FE pack H, moves apps/web onto the shadcn components the design system publishes (D88); it runs before M1's first slice that needs a dialog or a sheet.
A · Workstation
Section titled “A · Workstation”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 1 | TL-M0-01, run as BE-M0-01 | Tool versions on the Mac: Node 26.7.0, pnpm 12.8.1, git 2.56.0, Docker 29.8.1 with 3.8 GiB, no psql. Logged in BE-M0-01. | BE | Done 2026-10-05 |
| 2 | TL-M0-02 | Node 24 for the repository folder | CTO | Done (reported 2026-10-06) |
B · Repository
Section titled “B · Repository”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 3 | TL-M0-03 | Create the repository with create-turbo | CTO | Done (reported 2026-10-06) |
| 4 | TL-M0-04 | Remove the starter; pin pnpm 12 and Node 24 | CTO | Done (reported 2026-10-06) |
| 5 | TL-M0-05 | Shared settings: .gitignore, README, TypeScript base, Turborepo tasks | CTO | Done (reported 2026-10-06) |
| 6 | TL-M0-06 | Biome | CTO | Done (reported 2026-10-06) |
| 7 | TL-M0-07 | Commit messages: commitlint and Lefthook | CTO | Done (reported 2026-10-06) |
C · Apps and packages
Section titled “C · Apps and packages”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 8 | TL-M0-08 | Scaffold apps/web | CTO | Done (reported 2026-10-06) |
| 9 | TL-M0-09 | Scaffold apps/docs | CTO | Done (reported 2026-10-06) |
| 10 | TL-M0-10 | Create packages/db-types | CTO | Done (reported 2026-10-06) |
| 11 | TL-M0-11 | Run everything once from the root | CTO | Done (reported 2026-10-06) |
D · GitHub and CI
Section titled “D · GitHub and CI”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 12 | TL-M0-12 | Private GitHub repository | CTO | Done (reported 2026-10-06) |
| 13 | TL-M0-13 | CI on every pull request | CTO | Done (reported 2026-10-06) |
| 14 | TL-M0-14 | Protect main: a local push guard (path B, D26). The GitHub ruleset comes in TL-M0-28 (D28) | CTO | Done 2026-10-06 (path B) |
| 14a | TL-M0-26 | Rule format and the rule check: the page that defines a rule, and pnpm docs:rules in CI (D27). Doesn't depend on the GitHub plan. | CTO | Done 2026-10-06 |
| 14b | TL-M0-28 | GitHub Team (D28, closes OQ23): the ruleset on main, Dependabot alerts, the labels, the Opleet v2 board, and the Claude app on monorepo only. Row 35a runs right after it | CTO | #9 |
| 14c | DOC pack A | V13's rules into apps/docs: the site's structure and sidebar, the domain codes, and each business rule from the V13 references (Q1 to Q9, P1 to P16, the rules and conventions, roles and RLS) as a rule with an ID and status planned. Can run alongside rows 15 to 18; BE pack B waits for it. Waits for row 14b. | DOC | #10 |
E · Local Supabase and the agent guide
Section titled “E · Local Supabase and the agent guide”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 15 | TL-M0-15 | Docker memory for the local Supabase stack | CTO | Done 2026-10-06 |
| 16 | TL-M0-16 | Supabase CLI and an empty local project | CTO | Done 2026-10-06 |
| 17 | TL-M0-17 | AGENTS.md: the guide every coding agent reads | CTO | Done 2026-10-06; its line about the agent fork replaced by TL-M0-27 (D28) |
F · Schema V13 (Backend)
Section titled “F · Schema V13 (Backend)”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 18 | BE pack A · BE-M0-10, BE-M0-11 | Local stack settings in config.toml: auth (sign-up off, site URL), the ES256 signing key so getClaims() verifies locally (FE-R4), unused services switched off. | BE | Done 2026-10-06 |
| 18a | BE pack A · BE-M0-32 | The local signing key out of git and a new one made: pull request #6 committed supabase/signing_keys.json, the private key. Can run now. Proposed by BE on 2026-10-07. | BE | #69 |
| 18b | BE pack A · BE-M0-42 | Password sign-in back on the local stack: [auth.email] enable_signup = false had switched off the email provider (email_provider_disabled in the end-to-end tests); sign-up stays off through [auth] (D50). Runs as soon as it is merged. Proposed by BE on 2026-10-19. |
BE | #205 |
| 19 | BE pack B · BE-M0-12 to BE-M0-20 | Schema V13 written domain by domain: extensions and enums; tenancy and access, with profiles.locale and an RPC that sets the caller's own locale (FE-R5); master data; vehicles; drivers; rentals; operations; money; functions and views. Each file comes with its pgTAP tests and error keys (D10, D19). Waits for row 14c. | BE | #11 |
| 20 | BE pack C · BE-M0-21 | RLS: the policy generator in tools/db and the generated policies, with tests for pool scoping, deny overrides, tenant isolation and anon. | BE | #12 |
| 21 | BE pack D · BE-M0-22 to BE-M0-24 | Seed and Storage: the system rows, the sealed E2E organization, buckets with D14 paths and the P15 guards. | BE | #13 |
| 22 | BE pack E · BE-M0-25 to BE-M0-27, BE-M0-31 | E2E logins script in tools/db (FE-R2); the pnpm db:types script and the first generated types (FE-R1); the acceptance check: each of the 44 checks the delivered M0 had passes as a pgTAP test. | BE | #14 |
| 22a | DOC pack B · #149 | The rules changed by the higher-ups' review of 2026-10-14 (#144, D36 to D40): access, tenancy, audit, conventions, gate, inspections, master data, vehicles, rentals and the rest, as a pull request. Waits for the decisions D36 to D40 merged. | DOC | #149 |
| 22b | BE pack G1 · BE-M0-34 to BE-M0-39 | The built rules the review changed, edited in place and tested first: pool-required grants, sessions ending on an access change (D37), per-organization system rows, phone format, gate:write, master data reads, vehicle retirement and devices (D39), audit source and transaction id, weekly checkpoints. Merged in #154 on 2026-10-16; done when BE-M0-34 to BE-M0-38's runs on main are logged. | BE | #150 |
| 22c | DOC pack B follow-ups · #164 | Wording after the review, finance reading company bank accounts, surat hutang's placeholder type code, and what ends sessions (D48): R-ACC-52 to R-ACC-55 and R-MD-12 for row 22d's tests. Done: merged in #193 on 2026-10-19. | DOC | #164 |
| 22d | BE pack G1b | Sessions end on suspension, removal and role-permission changes, not on the super_admin grant at a new pool (D48); payment:read reads company bank accounts. Waits for rows 22b and 22c. | BE | #165 |
| 23 | TL-M0-18 | CI database job: start, reset, test, then the types and reference pages diff, on a path filter (D12, D33); then the ruleset requires it. | CTO | #15 |
G · App shell (Frontend)
Section titled “G · App shell (Frontend)”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 24 | FE pack A · FE-M0-02 to FE-M0-05 | The Opleet design system in apps/web: tokens, op-* CSS, components and icons, behind the @ui/ alias (D8), from the Opleet Design System. Can run any time after row 11. | FE | Done 2026-10-07 |
| 25 | FE pack B · FE-M0-06 to FE-M0-08 | Supabase clients with @supabase/ssr and the publishable key; proxy.ts with getClaims(); sign-in and sign-out (D13, D22). Waits for row 22. | FE | #16 |
| 25b | FE pack B2 · FE-M0-20 to FE-M0-22 | Sign out when access changes (session_is_current() in proxy.ts), a pool required, gate:write in the per-role menu check. Can be written now: row 22b's schema is on main (#154). |
FE | #151 |
| 25a | TL-M0-29 | Tailwind CSS in apps/web, utilities only and the design system untouched (D35): install, PostCSS, a layered stylesheet, Biome's Tailwind syntax, then a build that proves it. Waits for row 25. | CTO | #142 |
| 26 | FE pack C · FE-M0-09 to FE-M0-11, FE-M0-15 | The shell: navigation by permission from my_permissions(), pool switcher, theme, refusal page, module placeholders, design preview. Waits for rows 22, 22b and 25a. | FE | #17 |
| 27 | Gate | OQ17 decided: option A1, Indonesian-first text built in apps/web with an English file beside it (D29). | zuki | Done 2026-10-07 |
| 28 | FE pack D · FE-M0-12 to FE-M0-14, FE-M0-16 | Languages: the catalog, the locale toggle saved on the profile, and the error-key mapper (D7, D10); then the fonts through next/font (FE-M0-16, D8). Waits for row 27. | FE | #18 |
| 28a | DOC · the six rules for pack E | The rules pack E's specs cite (D19, D27): signed out, wrong password, sign-out, landing page per role, the menu per role, and the design preview off. FE proposed them on 2026-10-06 in the frontend runbook. Written as R-APP-01 to R-APP-06 on the App shell page. Done: merged in #192 on 2026-10-19. | DOC | #188 |
| 29 | FE pack E · FE-M0-23 and FE-M0-24 | Playwright: the smoke specs and the per-role menu check against the local stack (D19). Waits for rows 25b, 26 and 28a. | FE | #19 |
| 29a | DOC #201, then FE pack G · FE-M0-25 and FE-M0-26 | The error pages (R-APP-07 to R-APP-10, once written): not found, an error in a page, an error in the shell or root layout, and a refusal from a button shown as text, as Next.js's error-handling guide describes. Today an unknown address or a bug shows Next.js's default English page. Waits for pack E (done) and for DOC's rules. Outside the M0 exit check: it runs beside the data phase. Both packs touch app/global-error.tsx, in either order: the one that runs second edits the file the first made (pack F adds the Sentry call, pack G the pages). | DOC, FE | #201, #202 |
| 30 | TL-M0-19 | CI end-to-end job: the Playwright specs against the local stack on every pull request that touches apps/web or the database side, and on every push to main; then the ruleset requires it and Vercel's Deployment Checks wait for it. Since #732 the push to main skips it. Waits for row 29. | CTO | #20 |
H · Remote environments
Section titled “H · Remote environments”| # | Step | What it does | Written by | Issue or outcome |
|---|---|---|---|---|
| 31 | TL-M0-20 | The v2 staging Supabase project: Singapore, Postgres 17, auth settings by hand, and the staging environment in GitHub. Can run once row 22 is done; it doesn't wait for rows 24 to 30. | CTO | #21 |
| 32 | BE pack F · BE-M0-28 to BE-M0-30, BE-M0-33 | Link the CLI to staging; first push; seed and E2E logins on staging. Every push runs from zuki's Mac, from main (D11, D28). Runs right after row 31. | BE | #22 |
| 33 | TL-M0-21 | The Vercel project for apps/web in a Pro team (D5; Hobby can't deploy an organization's repository): Singapore functions, Node 24, pnpm 12.8.1 through Corepack, production and previews pointed at staging, previews behind a Vercel sign-in. Deployment Checks on the checks job, so a production deploy goes live only after CI passes on its commit (D28). Waits for rows 31 and 32. | CTO | #23 |
| 34 | TL-M0-22 | The Sentry organization and the opleet-web project (D24): personal data scrubbed and no IP addresses (D15), a test event, and the DSN, environment and source-map token in Vercel. Can run once row 33 is done. | CTO | #24 |
| 34a | FE pack F · FE-M0-17 to FE-M0-19 | The Sentry SDK in apps/web: off without a DSN, personal data kept out, error.unknown reported with its code only (D10), source maps from production builds. Waits for rows 28 and 34. Not part of the M0 exit check. |
FE | #173 |
| 34b | FE pack H · FE-M0-27 to FE-M0-29 | The design system's shadcn components (D88): an FE session in Claude Code reads the revamped Opleet Design System artifact and writes its tokens, stylesheet and components into apps/web as published, with Tailwind's reset on; then the shell, the error pages and the twelve op-* components move onto them, and components/opleet is removed. The specs of R-APP-01 to R-APP-10 still pass. Waits for D88 merged and for zuki's revamped artifact. Not part of the M0 exit check; before M1's first slice that needs a dialog or a sheet. | FE | Done 2026-11-05: merged in #531, FE-M0-29 run by zuki (#532) |
| 35 | TL-M0-23 | Cloudflare Pages for apps/docs behind Cloudflare Access. Can run any time; runs early so the upper-ups can review the rules. | CTO | #25 |
| 35a | TL-M0-27 | The register and this timeline move into apps/docs as one CTO pull request, with their numbers unchanged; each Google doc gets a first line pointing there (D28). Runs right after row 14b, ahead of its place here. Waits for row 14b. | CTO | #26 |
| 36 | TL-M0-24 | M0 exit check (below), from a fresh clone of main, logged item by item. Waits for every row above except 29a and 34a, and for staging rebuilt with BE-M0-33 after row 22d, so staging holds G1 and G1b. | CTO | #27 |
M0 exit check (row 36). M0 is done, and the data phase starts (D17, D25), when all of these hold:
- A fresh clone installs with pnpm install --frozen-lockfile, then builds and typechecks without errors.
- pnpm supabase start applies every migration and the seed; pnpm supabase db reset rebuilds from empty; pnpm supabase test db passes, the 44 acceptance checks included.
- An E2E login for each role signs in on the local stack and sees the menu its v1 role sees.
- DOC pack B and its follow-ups, BE packs G1 and G1b, and FE pack B2 are merged (#144): the review's built rules pass their pgTAP tests, and a role change signs the user out on the next request.
- CI is green on a pull request: checks, pr-title, the database job and the end-to-end job.
- Staging holds the schema, the seed and the E2E logins, and the Vercel deployment signs in against it.
- apps/docs is deployed behind Cloudflare Access.
- main is protected: the ruleset from TL-M0-28 is active (D28), and Vercel holds each production deploy until the checks and e2e jobs pass on its commit (TL-M0-19).
- apps/docs holds V13's rules with IDs, pnpm docs:rules passes in CI, and each of the 44 acceptance checks cites a rule (D27).
- The register lives in apps/docs, with its numbers unchanged (TL-M0-27, D27).
Data phase
Section titled “Data phase”The data phase starts at the M0 exit check (D25), with four kinds of exception that can run alongside M0 because nothing in M0 depends on them and they change neither main's schema nor staging: the DOC packs (rows 0 and 0c), the v1 copy (row 1), the money study (row 2), which reads only that throwaway copy, and the read-only user on v1 (row 8), which zuki creates by hand. An open question that blocks a row is named on it.
State on 2026-12-02. Where things stand now; each linked issue holds the detail.
- Data phase. Rows 0a to 0o, 1 to 8b and every row 5 step are done, as their Status cells say; their history is in their issues and the reconcile ledger. TL-DP-04's L0 run 2 succeeded on 2026-11-30 (#187). The critical path is row 9: the L1 script's run (#551), then the nightly job (#187), then row 10's first full night. Reconcile lines are collected first and shown once, in the report on the ledger (#392).
- M1 Access and master data (#446): every build slice is merged. The demo to the team leads (#461) is left.
- M2 Vehicles (#447): M2-01 to M2-05 and M2-08 to M2-10 are merged. Geofences (#793), M2's carry-overs (#729) and the demo (#467) are open.
- Next. M3 starts with M3-01 (#468). M3 to M7 and cutover prep are drafts under their module issues (#448 to #453).
- Alongside. App shell polish (#665), the pool switcher (#659), the search box (#820) and the team-session fixes (#517).
- Dates. Each slice's Start and Target are on the Opleet v2 board, and each module's date is its milestone's: M1 2026-12-03, M2 2026-12-21, M3 2027-01-14, M4 2027-02-02, M5 2027-03-05, M6 2027-03-26, M7 2027-04-07, cutover prep 2027-04-30. They are targets, not gates (D20).
Targets. Dates to aim for, not gates (D20): a row that slips moves the rows that wait for it, and the CTO session moves the dates here in its next pull request.
| Row | Target | Depends on |
|---|---|---|
| 8 · the read-only user | Done 2026-10-20 | Nothing |
| 0a · G2 merged | Done 2026-10-20; BE-DP-03 and BE-DP-04 run 2026-10-21 | Nothing |
| 1 · the v1 copy | Done 2026-10-21 | Row 8 |
| BE-DP-01 · duplicate VINs | Done 2026-10-21: none (#162) | Row 1 |
| 2 · the money study | Report merged 2026-10-23, BE-DP-24 run 2026-10-23, BE-DP-27 run 2026-10-26; #299 answered 2026-10-27 | Row 1 (done); D72 and D74 (done) |
| 4 · the machinery | Done 2026-10-22: BE-DP-12 and BE-DP-13 run | Rows 0a and 1 |
| 8a · v1's logins and file list | Done 2026-10-21 | Row 8 |
| 8b · the photo copy's v1 login | Done 2026-10-21 | Row 8a; the CTO's go on #240 |
| 5 · master_data, vehicles | Merged 2026-10-23 (#298); BE-DP-25's answers merged (#315); done 2026-11-02: v1 fixed for #316's 12 lines, audited by Syamsul, and BE-DP-26 clean on the fresh copy | Rows 4 and 8a (both done); BE's fix list (done 2026-10-27); zuki and Syamsul's fixes in v1, and their answers to #316's questions (a) to (d) |
| 5 · access (#278) | Merged 2026-10-26 (#309), with #319 and #328; #329 merged 2026-10-27; BE-DP-29 run clean 2026-10-29 (#391 merged); done when zuki closes #278 | Rows 4 and 8a (both done); master_data's organization, pools and rental companies (loaded in BE-DP-26) |
| 0d · D67's rules, then its schema | Done 2026-10-22: BE-DP-14 run | Row 0a |
| 0e · D71's repo request, rules then schema | Done 2026-10-22: rules, then schema merged (#286) | Row 0d (done); D71 |
| 0f · explicit grants | Done 2026-10-22: BE-DP-09 and BE-DP-10 run | Nothing; #247 |
| 0g · Stock Opname, rules then schema (#321, #322) | Done 2026-10-28: rules and schema merged in #343, BE-DP-31 run clean | zuki's answers on #320 and D75 (both done) |
| 0h · the reconcile check for v1 tables no step claims (#323, #324) | Done 2026-10-28: rule R-MIG-10 (#340), check (#349) | D75 (done) |
| 0i · the repo work order's tables, as team-session slice #357 (#326, #327) | Done 2026-10-30: rules and schema merged in #403 (R-REP-15 to 27, BE-DP-37; 763 pgTAP tests pass on zuki's stack); #326, #327 and #357 closed | D71, D75, D80; row 0e (done); team sessions' rows 3 and 4 by 2026-11-06, else single-role |
| 0j · one maintenance status, and unchecked (#582, #579) | Done: built in slice #584 (#643), on main since 2026-11-16; L0 run 2 of 2026-11-30 carried it | D91 and D92 merged (#580) |
| 0k · Stock Opname's tables (#585, #586) | Done: built in slice #584, with row 0j | D93 merged (#580) |
| 0l · each inspection kind's fields (#587, #588) | Done: built in slice #584, with row 0j | D94 merged (#580) |
| 0m · the notifications foundation (#589, #590) | Done: built in slice #584, with row 0j | D95 merged (#580) |
| 0n · the gate's table (#593, #594) | Done: built in slice #584, with row 0j | D96 merged (#580) |
| 0o · delegated approvals (#595, #596) | Done: built in slice #584, with row 0j | D97 merged (#580) |
| 5 · drivers (#281) | Merged 2026-10-28 (#344); BE-DP-32 run 2026-10-29; the 20 driver NIKs lines fixed in v1 (driver NIKs 0 on 2026-11-02); clean when the next copy no longer lists lead 2850's NIK as an earlier lead's (#397), by 2026-11-06 |
Rows 0a and 4 (done), master_data; BE-DP-20, BE-DP-21 and BE-DP-30 (run); D66, D73, D78, D79 and their rules (merged); secondary_phone's rules and column (#353, merged; #352 closes with #344); zuki's BE-DP-32 run |
| 5 · rentals (#302) | Code and rules merged 2026-10-29 (#390); the 6 terms and the rate-history tie merged and run 2026-11-02 (#410, #411); #369 answered and the D84 slice (#405) closed | Rows 0d, 0e and 4 (done); drivers; which v1 rentals are repossessing (done: none, #301, 2026-10-27); BE-DP-34 merged and run (#354); its rules (#355, DOC, 2026-11-03), with D78's cancelled exception to D69 |
| 5 · operations (#304) | Done 2026-11-04: BE-DP-38 logged clean, 280,914 rows | Vehicles, rentals; row 0g (done); BE's listing of its values (done, BE-DP-35 run 2026-11-02); its rules (done, #415, #419, #424); zuki's word on v1's work orders, maintenance and preparation (done 2026-10-28) |
| 5 · money (#306) | Done 2026-11-05: BE-DP-40 run 2 | Row 2; drivers, rentals, operations; zuki's three answers on #295 (done 2026-10-27) and #299 (done 2026-10-27); DOC's four rules on #295, with the loading rule for v1's debt letters (claim_letters), by 2026-11-09; zuki's word on that rule's two proposals by 2026-11-05 |
| 5 · the report (#392) | The ledger holds every step but the photo copy; the report and its visualization follow the last clean night, by 2026-11-20 | Every row 5 step run; Syamsul's review of the held lines |
| 6 · photos | Done 2026-10-23: merged (#288), BE-DP-23 run with every file waiting; rerun after each row 5 step | Rows 4, 5a and 8b (all done); D70 |
| 9 · the nightly job | TL-DP-04 written 2026-11-05; its L0 fixes (#571) done in #573; L0 run 1 done 2026-11-10, money baseline accepted; run 1's follow-ups done in #591; L0 run 2 succeeded 2026-11-30, from main (#187), and #571 closes once it needed nothing pasted in; next the L1 run (#551), then the job | Rows 4 to 6 and 8; every row 5 step (merged); #591 and integration merged into main; tools/migration/night.py (#524, #551); the nightly rehearsal guide (done, #56) |
| 10 · the first full night | 2026-11-23 | Row 9; every row 5 step merged |
| # | Step | What it does | Written by | Status |
|---|---|---|---|---|
| 0 | DOC pack C | The rules from the higher-ups' General Flow (D41 to D47): background checks opened at payment, the stages available and inactive, the training guard, the damage letter, the overdue limit, routing by return reason, and the business flow page redrawn with the flow's node IDs. Can run now, alongside M0; not part of the M0 exit check. Waits for D41 to D47 merged. | DOC | #161 |
| 0c | DOC pack D | The rules from the higher-ups' answers (D50 to D64): invitations and the password rules, one audit entry per action, claim numbers, clearance, the queue form and TV, supply_status, due dates, the essential flows marked, and R-RNT-19 retired. Done: merged in #194 on 2026-10-19; four questions for the CTO stay open on #180. | DOC | #180 |
| 0a | BE pack G2 · BE-DP-01 to BE-DP-04 | Rental chains (D38), the stages available and inactive (D43), VIN unique (D47), supply_status (D56), the queue form's columns (D55), charge types' default due days (D57), the local auth settings (D51), and the rental lifecycle if #155 is decided before G2 starts. Waits for the M0 exit check and rows 0 and 0c. | BE | Done 2026-10-21 (#162) |
| 0b | Gate | #155 decided: the rental lifecycle from the General Flow. Row 5's rentals step waits for it. | zuki | Done 2026-10-20: D67; its schema change is row 0d |
| 0d | BE pack 0d · BE-DP-14 | rental_status gains returning, repossessing and returned; a paused rental keeps its reason; the one-live indexes cover pending to returned; a rate change reaches booked and pending rows in place (D67). Waits for row 0a and D67's rules (#228). | BE | Done 2026-10-22 (#229) |
| 0e | DOC pack, then BE pack 0e · BE-DP-16 and BE-DP-17 | The repo request (D71): its rules first, then repo_requests in the schema, so the rentals step can open a request for every rental it maps to repossessing. Work orders, repo_leader and their functions are M5's. Waits for row 0d. |
DOC, then BE | Done 2026-10-22: rules (#267), schema (#268, #286) |
| 0f | BE pack G3 · BE-DP-09 and BE-DP-10 | Every grant on public's tables and views written beside its policies, and default privileges revoked, before hosted Supabase stops granting new tables on 2026-10-30. Must merge before 2026-10-30; no staging rebuild after that date until BE-DP-10 is logged. Proposed by BE on 2026-10-22. | BE | Done 2026-10-22 (#247) |
| 0g | DOC rules, then BE pack · Stock Opname | A new feature v1 already holds (D75): stock_opname_sessions and stock_opname_expected with their permission code. DOC writes the rules (#321), then BE adds the tables and the code to the schema (#322), so the operations step has somewhere to load v1's rows. The functions and pages are the module's. Waits for zuki's answers on #320. |
DOC, then BE | Done 2026-10-28 (#343) |
| 0h | DOC rule, then BE check · v1 tables no step claims | The reconcile lists each v1 table and column no step reads until a step claims it or zuki signs it (D75): the rule (#323), then the check (#324). | DOC, then BE | Done 2026-10-28 (#340, #349) |
| 0i | DOC rules, then BE pack · The repo work order's tables | v1's repo is still in development, so v2 builds its own from the General Flow (D71, D75): the work order, its units and its PICs as tables now (#326, then #327); their functions, jobs, repo_leader and pages stay in M5 (#270 to #272). Runs as a team session, team sessions' row 5 (D80). Waits for row 0e (done). | DOC, then BE | Done 2026-10-30 (#357, #403) |
| 0j | DOC rules, then BE pack · One maintenance status, and unchecked | The data side of D91 and D92: R-VEH-28's and R-VEH-31's examples and the status list (#582), then the enum edited in place, the vehicles step's value_map and v1's label kept on the history (#579). The rules and functions that move a car, its label and its place are M5's (#577, #578, #581, #583). TL-DP-04 needs no change: block 2 rebuilds staging from main and block 4's unmapped check guards the mapping. Waits for D91 and D92 merged (#580). Row 9 doesn't wait for it: if it misses the L0 run, the next night carries it. | DOC, then BE | Built, in review |
| 0k | DOC rules, then BE pack · Stock Opname's tables | The data side of D93: the session loses its mode, stock_opname_scans comes back, and an expected car gains its recheck outcome; the rules first (#585), then the tables in place and the operations step's mapping (#586). Runs with row 0j as slice #584. The snapshot, scanning, rechecking and the page are M5's. TL-DP-04 needs no change: the one v1 session loads as before, and block 4's unmapped check still reads v1's mode. Waits for D93 merged (#580). Row 9 doesn't wait for it. |
DOC, then BE | Built, in review |
| 0l | DOC rules, then BE pack · Each inspection kind's fields | The data side of D94: an outcome only, and always, on a preparation inspection; a work order only on a return or a preparation inspection; R-ACC-65, R-ACC-67 and R-WO-08 name admin_fleet in place of preparation_leader (#587). BE counts the loaded rows each constraint would refuse on a local night, then adds the constraints (#588); a count above 0 goes to zuki. Runs with rows 0j and 0k as slice #584. The checkpoint's outcomes, the short repair and the routing at the return are M5's. TL-DP-04 needs no change. Waits for D94 merged (#580). Row 9 doesn't wait for it. | DOC, then BE | Built, in review |
| 0m | DOC rules, then BE pack · The notifications foundation | D95's rules on a new NTF page (#589), then its four tables, app.notify, the resolve and acknowledge functions, RLS, Realtime and two organization settings, with no type seeded (#590). Runs in slice #584, last. Each module from M1 seeds its own types; the bell, the page, the preferences, the escalation job and the digest are M7's (#507). Loads nothing from v1, so TL-DP-04 needs no change. Waits for D95 merged (#580). Nothing in the data phase waits for it; M1's first type does. |
DOC, then BE | Built, in review |
| 0n | DOC rules, then BE pack · The gate's table | The data side of D96: one row per stay with an in and an out purpose, an out request, the typed scan, one open row per car, team_use as an aspect, and gate:approve split into one permission per aspect; the rules first (#593), then the table in place and the seed (#594). Runs in slice #584. The exit check, the approvals and the page are M5's. v1's gate data still loads nothing (R-GATE-14), so TL-DP-04 needs no change. Waits for D96 merged (#580). Row 9 doesn't wait for it. |
DOC, then BE | Built, in review |
| 0o | DOC rules, then BE pack · Delegated approvals | The data side of D97: the catalogue's delegable flag on five approvals, and a delegated override's end; the rules first (#595), then the columns, the seed and the access helpers skipping an ended override (#596). Runs in slice #584. Delegating, revoking and their page are M1's. The access step loads v1's overrides as not delegated, so TL-DP-04 needs no change. Waits for D97 merged (#580). Row 9 doesn't wait for it. | DOC, then BE | Built, in review |
| 1 | BE pack R1 · BE-DP-05 to BE-DP-08 | Copy v1 into a throwaway local database, as in Part C of the database workflow guide. The dump is personal data: it stays outside the repository and is deleted afterwards. Runs after row 8, through its read-only user. | BE | Done 2026-10-21 (#184) |
| 2 | BE pack R2 · BE-DP-11, BE-DP-18, BE-DP-19 and BE-DP-24, then BE-DP-27 | The money study first (D17): v1's bills, debts and payments read on the copy. What it finds changes the schema before pages depend on it. Can run alongside M0 once row 1 is done. The bulk payment split is decided (D72): v2 suggests oldest due first and finance decides, while migrated payments keep the split v1 recorded. | BE | BE-DP-18, BE-DP-19 and BE-DP-24 run 2026-10-23, report merged; #293 and #294 decided (D74); BE-DP-27 run 2026-10-26; #299 and #295 answered 2026-10-27, so what's left is DOC's rules on #295 (#185, closed) |
| 3 | Gate | OQ19 decided: finance names the v1 balance of record (D18). | zuki | Done 2026-10-12: the instalments inside bills (D34) |
| 4 | BE pack R4 · BE-DP-12 and BE-DP-13 | The migration machinery in tools/migration: snapshot, value_map, id_map, unmapped values, unmatched rows and accepted differences (D18), with the audit triggers off for the load (D52). Waits for the M0 exit check, rows 0a and 0c, and row 1. | BE | Done 2026-10-22: run 2 succeeded (#186) |
| 5 | BE packs, first BE-DP-20 and BE-DP-21; master_data and vehicles: BE-DP-25, then BE-DP-26 | The domain steps in order, each with its reconcile checks: master_data, access, vehicles, drivers, rentals, operations, money. master_data runs before access, because access puts each login in master_data's organization, pools and rental companies (R-ACC-75, R-ACC-76). One issue per step, opened when its inputs are firm. The access step waits for row 8a; the drivers step maps v1 onto the stages as D66, D73, D78 and D79 say (no available), and a v1 hp holding two numbers gives the driver's optional secondary_phone (R-DRV-53); the rentals step for #155 (row 0b) and row 0e, and it opens one repo request per rental it maps to repossessing (D71); the money step for row 2, and builds allocations as v1 recorded them, never from D72's suggested split. |
BE | master_data and vehicles merged (#298), BE-DP-26 run, its reconcile in #316; access merged (#309, #391), clean night 2026-10-29; drivers merged (#344), BE-DP-32 run 2026-10-29; rentals complete in code, BE-DP-36 run clean on the fresh copy of 2026-11-02 (#390, #411); operations' rules merged and the step in build; money's rules due 2026-11-09. The odd rows of every step are collected in the reconcile ledger, shown once in #392. Issues: access #278, master_data #279, vehicles #280, drivers #281, rentals #302, operations #304, money #306 |
| 5a | BE pack T · BE-DP-15 | The tables the photo copy fills: insurance claim photos, receipt in photo_kind, and D70's files from v1. Waits for DOC's rules (#258, #260). |
BE | Done 2026-10-22 (#251) |
| 6 | BE pack R6 · BE-DP-22 and BE-DP-23 | Photos from v1 Storage to the v2 buckets at D14 paths, skipping what was already copied; v2 stores paths only (D60). Each bucket is read by public link, or through a read-only v1 login if it is private (D68). Waits for rows 4, 5a and 8b, all done; files with no single record follow D70. | BE | Done 2026-10-23 (#262): every file held and waiting; rerun after each row 5 step |
| 7 | Gate | CR1 and OQ4 decided: what may run unattended, and what runs the rehearsal. | zuki | Done 2026-10-14: GitHub Actions, and L2 once clean L0 and L1 runs are logged (D36) |
| 8 | TL-DP-01 | v2_reader, a read-only login on v1 production: SELECT on public's tables and sequences, RLS bypassed, sessions read-only, nothing in auth or storage. It writes to v1 production, so zuki creates it by hand in v1's SQL editor (L0 for good); the copy, the rehearsal and the cutover run read through it, and the rehearsal may do so at L2 later (D36). | CTO | Done 2026-10-20 (#183) |
| 8a | TL-DP-02 | v2_reader reads named columns of v1's auth.users and auth.identities through two views in a schema of their own, v2_export, because postgres can't grant the auth schema itself; for the access step's logins with their password hashes (D50). It also reads named columns of storage.buckets and storage.objects, for the photo copy's file list. The tokens and every other auth table stay closed. L0 for good, by hand in v1's SQL editor. | CTO | Done 2026-10-21 (#225) |
| 8b | TL-DP-03 | A v1 login made only for the photo copy, and one Storage policy that lets it read objects in mop-files and nothing else (D68). Block 1 reads v1's own policies first, and the step stops until the CTO's go. L0 for good. | CTO | Done 2026-10-21 (#240) |
| 9 | TL-DP-04 | The nightly rehearsal, by hand first, then the job in GitHub Actions (D36): v2_reader's password and staging's as secrets of the staging environment, the foreign server to v1 made at the start of each run and dropped at its end, so the password never rests in staging's database. One night runs snapshot, row 5's steps in order (master_data, access, vehicles, drivers, rentals, operations, money), the photo copy attaching what tonight's steps loaded, the reconcile, then the report. An always-run step empties migration.v1_auth_users and v1_auth_identities whatever happened (finish_run() does too, R-MIG-09); any error sets the run to failed; and D65's read-only role survives each rebuild. Its guide is the nightly rehearsal guide (#56), and tools/migration/night.py runs a night in one paste (#524, #551). L0 is TL-DP-04, which runs from main, so integration merges first. L1 is BE's script; L2, the workflow, follows it. |
CTO, then BE | #187 |
| 10 | Gate | The first full night runs end to end on staging. #147 is decided by D65: only the nightly job writes to staging, and the backend team reads it through a read-only role that row 9 keeps. Waits for row 9. | zuki | Open |
Team sessions
Section titled “Team sessions”From M1 on, a slice of a module can run as one Claude Code agent team: a CTO lead with the Docs, Backend and Frontend Engineers as teammates (D77, team sessions). Before M1, so can a data-phase slice that needs no run against v1, staging or production (D80). These rows get it ready; the module rows below don't wait for them, and single-role sessions still work.
| # | Step | What it does | Written by | Status |
|---|---|---|---|---|
| 1 | Gate | D77 accepted, and the ruleset on main set to squash merges only. | zuki | #331 |
| 2 | CTO pull request | The tooling: pnpm team:start, the role files, the hooks, /team and /team-close, the role-path check for commits. |
CTO | #332 |
| 3 | TL-TS-01 | The team clone, the opleet-team token, the labels, the CI line for the role-path check, then the dry check, in which every guard refuses once. L0. Waits for rows 1 and 2; D77 merged in #331 and the tooling in #333 and its fixes. | CTO | #332: dry check done by zuki 2026-10-30 (the team session of #357 ran under it); closes on his word |
| 4 | Pilot | A review-only team session on a pack that already exists: a digest and carry-over issues, no code. Suggested pack: the access step's follow-up, #329 (v1's allowed_modules, role defaults and implied permissions, R-ACC-77 to R-ACC-85, R-MIG-09), the last BE pack done the old way with rules, tests and a run behind it. Waits for row 3. | CTO lead, zuki | Not started |
| 5 | Pilot | Data phase row 0i, the repo work order's tables, as a team session (D80): doc writes the rules, be the tests and tables, no FE. Measured against #329, the last pack done the old way: hours to the pull request, issues opened, review rounds and tokens. Waits for row 4. If it hasn't started by 2026-11-06, row 0i goes back to single-role sessions. |
CTO lead, zuki | Done 2026-10-30, #357 (absorbed #326 and #327), pull request #403. Measures: about 52 minutes from /team to the pull request (04:21 UTC; /team-info 52:01); 1 issue opened (#402); 0 review rounds (no review comment or change request; merged 74 minutes after opening, one commit added by zuki for the generated reference pages); 8.9M tokens and $4.19 (zuki's /team-info, as listed at the time; it may include work after the pull request). Not compared with #329: its hours and tokens were not recorded, and the session started before #332's dry check and pilot 1 (row 4) had run |
| 6 | Gate | zuki adopts team sessions for M1 to M7, after a CTO pull request fixes the protocol from the two pilots. | zuki | Open |
M1 to M7 · Modules
Section titled “M1 to M7 · Modules”| # | Step | What it does | Written by | Status |
|---|---|---|---|---|
| 1 | M1 | Access and master data. Decided: v1's passwords move and staff are invited (D50); the password rules, 24-hour sessions and email through Resend (D51), with a TL step that sets Resend as staging's email sender. The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #446: #454, #455, #456, #457, #637 (the carry-overs), #458, #459, #460, #638 (delegated approvals, D97), #461. M1-01 is on main; M1-02 and M1-03 are merged into integration; M1-04 is #636. Target 2026-12-03 |
| 2 | M2 | Vehicles. Decided: supply_status (D56). Vehicle onboarding is essential (D61). The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #447: #462, #463, #464, #465, #466, #467 |
| 3 | M3 | Drivers, queue and screening. Decide first: OQ9, #156 (alerts, rejoin). Decided: D54, D55, D58, D63, D66 (driver stages after a car). Driver onboarding is essential (D61). The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #448: #468, #469, #470, #471, #472, #473, #474, #475, #476 |
| 4 | M4 | Onboarding, booking and contracts. Decided: numbers (D40, D53); no training check yet (D64). The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #449: #477, #478, #479, #480, #481, #482, #483 |
| 5 | M5 | Operations. Decided: returns and repossession (D67); repo requests, repo work orders and the Repo Leader (D71; the work order's tables in the data phase, row 0i, D75: #270, #271, #272). Decide first: #269 (the repo canvas's open parts). The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #450: #484, #485, #486, #487, #488, #489, #490, #491, #492, #493, #494, #495 |
| 6 | M6 | Money. Decided: due dates (D57); a bulk payment's suggested split, oldest due first, with finance deciding (D72). Collection is essential (D61). Decide first: OQ9, #158 and #264 (the overdue thresholds per charge type, service type and transmission, drafted as D76; invoices). The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #451: #496, #497, #498, #499, #500, #501, #502, #503 |
| 7 | M7 | Reports. The DOC pack (the module's rules, with IDs), then the BE pack (tests first, then actions, views and error keys), then the FE pack (journeys first, then pages), then a demo to the team leads on staging with real data. | DOC, BE, then FE | Slices, in run order, under #452: #504, #505, #506, #507 |
Staff testing and cutover
Section titled “Staff testing and cutover”| # | Step | What it does | Written by | Status |
|---|---|---|---|---|
| 1 | Gate | OQ20 and OQ22 decided: what must work on the first Monday, and who does what at cutover. | zuki | Done 2026-10-16: D61, D62 |
| 2 | TL step | The v2 production Supabase project: Singapore, Postgres 17, the nightly pg_dump and MFA for super_admin (D16), auth settings (D51): the password rules, the 24-hour time-box and Resend as the email sender. | CTO | Slice #508, under #453 |
| 3 | BE pack | Personal data in place before go-live: retention rules (OQ18), app.anonymize_driver(), the breach procedure, and the lawyer's review (D15); the named functions that erase a record for good, each writing its audit row first (D65). | BE | Slice #509 |
| 4 | — | Two weeks of staff testing on staging, with a shadow day per team. | zuki, team leads | Not started |
| 5 | Gate | Go/no-go: 10 clean nights in a row, every test green with the three essential flows among them (D61), each team lead's sign-off, a finance period close (D20). Syamsul Haris decides (D62). | Syamsul Haris | Open |
| 6 | — | The cutover weekend, run from cutover weekend and rollback. Saturday decides (D21). | zuki | Not started |
| 7 | BE pack | After cutover: the migration files frozen into a baseline; from then on, changes are new files only (D11). | BE | Slice #512 |
M0 TL steps
Section titled “M0 TL steps”TL-M0-01 is BE-M0-01 in the backend runbook, done on 2026-10-05. Every other TL step has its own page under M0 TL steps in the sidebar, in run order. Every step is L0: zuki runs it by hand and logs the run on the step's issue.
Related
Section titled “Related”- Decisions and how we work, formerly [Register] v2 decisions and working rules
- Backend runbook: database and migration
- Frontend runbook: web app
- Plan: modules M0 to M7: what each phase and module covers
- Architecture
- Cutover weekend and rollback