Documentation index. Updated October 28, 2026 (Phase 7 update steps below). The October 14 inspection used local files and read-only Convex MCP calls; the October 15 work added the application backend source and ran local checks (see verification).
| Item | Evidence/status |
|---|---|
| Website | Phase 1 structure: login, student and admin routes, design system. See the route map |
| Installed packages | Next.js 16.4.0, React 19.3.0, Convex 1.46.0, @convex-dev/auth 0.0.96, @convex-dev/rate-limiter 0.4.2 |
| Convex project | Team code-cs, project app |
| Development | tidy-firefly-410, the personal dev deployment of team member Prithvi Konduru (dev/prithvi-konduru). Chosen as the shared development target |
| Application backend | Schema, auth and functions exist in convex/. On October 15 they were codegen-checked against the deployment but not yet pushed; pushing is a developer step (below) |
| Production | moonlit-alpaca-771; not touched |
| Domain/frontend hosting | Not provisioned |
Developer CLI login does not implement student/admin login. Listing production does not prove the app is released.
From the repository root:
npm install.env.local (ignored by git) selects the deployment:
CONVEX_DEPLOYMENT=dev:tidy-firefly-410 # team: code-cs, project: app
NEXT_PUBLIC_CONVEX_URL=https://tidy-firefly-410.convex.cloud
NEXT_PUBLIC_CONVEX_SITE_URL=https://tidy-firefly-410.convex.site
Log in with a Convex account that belongs to team code-cs (npx convex login), then, once per deployment:
- Push the backend and keep it syncing (leave running):
npx convex dev
- Set the Convex Auth signing keys and site URL (keeps existing keys unless
--force):node scripts/setup-auth-env.mjs
- Create an admin account (choose your own username and a password of at least 10 characters; it is hashed by Convex Auth). Use your name as the display name, without a title: students see its first word (“Max reviewed this”), and a name that starts with a title is refused:
npx convex run admins:createAdmin '{"username":"max","displayName":"Max","password":"…"}' - Load the sample school from the design (only on an empty deployment; refuses to run twice):
npx convex run seed:run
The seed creates Python Fundamentals (basic, 6 days for the 6-week program: Hello, Python; Variables; Input and strings; Conditionals; Loops; Lists and functions), Advanced Python, last year’s Intro to Python, the 2026–27 schedule, the 24-student basic roster plus 3 advanced students (no seats), sample work for jsmith, a Countdown review queue and two open help requests.
An older seed has 8 basic days, seat numbers and a 14-day turn-in window. Rather than wiping and reseeding (which also deletes the admin account and every test submission), sync the new code with npx convex dev, then run:
npx convex run seed:applyCorrectionsIt removes Python Fundamentals' empty Days 7–8 (Functions, Final project), renames Day 6 to “Lists and functions”, and clears the unused seatIndex, turnInClosesAt, turnInDays and closeTime fields. It never removes a day that has assignments or lesson dates and is safe to run twice. If the admin's display name has a title, rename it (this also updates the account's profile name):
npx convex run admins:setDisplayName '{"username":"rivera","displayName":"Max"}'Sync the code with npx convex dev. The schema change is additive, so no data needs to change: seeded assignments read as task version 1 and earlier turn-ins fall back to their check's revision. Phase 7 adds one cron (convex/crons.ts, “advance the school day”) that runs schoolClock:advance every 10 minutes and writes at most once a day, after midnight in the school time zone, so student pages notice when a lesson day opens (D04). Until its first run, student queries use the server's clock. Cover images go to the deployment's Convex file storage.
Run in separate terminals:
npx convex devnpm run devOpen localhost:3000. Students sign in with a login code (for example jsmith after seeding); admins use the footer form. convex dev watches and syncs backend code to the selected dev deployment; it is not read-only. Local code uses the cloud development database; local/dev/prod data never mirror automatically.
Verify deployment targets before operations. Do not commit credentials or environment files. Keep dev/prod environment values separate.
npm run lintnpm run typechecknpm testnpm run buildnpm test runs Convex functions in memory with convex-test and real Pyodide in Node for the runner tests (no deployment needed). npx convex codegen --typecheck enable regenerates convex/_generated and typechecks convex/.
npm run dev and npm run build first run scripts/prepare-python.mjs, which copies the Pyodide core from node_modules/pyodide to public/pyodide/<version>/ and bundles the Python worker to public/python/worker.js (both git-ignored). After changing lib/python/python.worker.ts or anything it imports while the dev server runs, run npm run python:build and reload the page.
next.config.ts sends Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: credentialless on every page so Stop and input() can use shared memory; /pyodide/* is cached as immutable and /python/* is revalidated on each load. Hosting must keep these headers and serve .wasm as application/wasm. Students’ browsers need cdn.jsdelivr.net for optional packages and PyPI for micropip installs; the standard library needs neither.
- External website hosting and Convex Cloud; frontend provider and domain ownership/setup remain pending (D12).
- Prioritize browser Python; a Python server is only a fallback after device tests demonstrate a need.
- Verify hosting headers (including cross-origin isolation for Pyodide interrupts), worker/assets, package requests, slide links, auth origins (
SITE_URL), and school-network access before release. - Configure deployed frontend values for the intended backend, not a copied development URL.
- No separate custom backup system is approved.
- Validate 50 actively working students plus admins and retained work for 1,000 lifetime students. Storage/API estimates depend on file/version volumes, not student count alone.
eslint-config-next is pinned to 16.4.0 to match Next.js. TypeScript is 6.0.3 because the installed lint parser rejects TypeScript 7. Node type definitions are 24.x to match the Node 24 runtime. Some bundled ESLint plugins declare older peer ranges, so npm prints peer warnings.
On Windows, a clean npm ci was previously blocked by a locked esbuild.exe (EPERM), and route type generation failed inside a restricted sandbox with Access is denied (os error 5); both passed outside those conditions. npm audit reported five high-severity findings in the lint tooling’s braces chain with no patched release; recheck before release.
Read AGENTS.md. Before Next.js work read the relevant guides in node_modules/next/dist/docs/; before Convex work read convex/_generated/ai/guidelines.md and applicable project skills. Identify deployments before writes and follow the project's deployment guard for production operations.
CLI setup, MCP access, local deployments, frontend hosting, authentication, Convex Auth, file storage, Convex runtimes.