CSEMA Go Rewrite: Progress

Work log for the rewrite plan. Updated: 01 Nov 2026, 20:01 IST.

Live demo

The demo runs on the development machine through a Cloudflare quick tunnel. The address changes when the tunnel restarts. Mail goes to a local Mailpit, so sign up and use the account without the verify link.

https://michelle-quality-short-repeat.trycloudflare.com

Phases

PhaseStateNotes
P0 Set upDoneGo module, csema database, Makefile, CI checks, Nuxt app with the theme override.
P1 Skeleton, auth, progressImplemented, checks openServer, db, mail, auth, onboarding, progress and all 23 tables work. Google and GitHub sign-in still need configured keys.
P2 Learner backendImplemented, few checks openLearner routes, import, staff CRUD and uploads exist. A real Razorpay checkout remains open.
P3 LabsImplemented, few checks openHost setup, Docker isolation, SSH gateway, browser terminal, code runner and wildcard HTTPS work. See the plan table for the open checks.
P4 UIIn progressLearner and staff screens exist. The polish segment below is complete.
P5 EventsImplemented, UI checks openBackend and screens exist. The browser dry run and load check remain open.
P6 Verify and hardenPendingNeeds load checks, upgrade checks and owner approval.
P7 Migration and cutoverPlan later

Current work order

The UI polish segment and the content and lab cleanup are complete. Next: the open checks in the plan table.

UI polish segment (01 Nov 2026)

Content and lab cleanup (01 Nov 2026)

Every challenge was checked, fixed or unpublished, and every machine lab was started on a real lab host. Now 384 of 632 challenges and 63 of 152 machine labs are published.

Lab resources

Measured on a 2 CPU, 8 GB lab host, about 20 seconds after start, with no player activity. The suggested limit is the measured peak times 1.5 (at least peak plus 64 MB), rounded up to 64 MB, with a minimum of 128 MB.

Applied. 58 containers now use the suggested limit. A retest of all 72 labs with the new limits had no out-of-memory stop. The 9 labs that need more than 100 MB in total are unpublished for now, so the table below is for reference.

MeasureValue
Published labs measured72 labs, 80 containers
Sum of memory limits27.6 GB
Sum of measured peaks4.8 GB
Sum of suggested limits13.8 GB
Median container26 MB peak, 50 MB image
Containers under a quarter of their limit58 (most have 500 MB and use 20 to 30 MB)

Largest containers:

LabContainerPeakLimitImageFirst pull
398OpenSearch851 MB1536 MB919 MB100 s
1132main496 MB768 MB188 MB1 s (cached)
354target433 MB704 MB248 MB22 s
397MongoDB263 MB768 MB280 MB36 s
353target205 MB320 MB123 MB25 s
344target192 MB320 MB154 MB28 s

OpenSearch (398) needs about 60 seconds before it answers. LocalStack (387) has a 409 MB image and takes about 48 seconds on its first pull.

What works now

Decisions to review

I made these choices without asking. Each one is easy to change.

Open questions

Found in the data