Goal: Use Codex as a powerful assistant without breaking the Box System or letting unreviewed AI code slip into production.
This checklist is for every feature or refactor where Codex is involved.
main or develop: - Example: feature/auto-registration-device-code.docs/ARCHITECTURE.md - docs/SYSTEM_OVERVIEW.md - docs/DEVELOPMENT_CHECKLIST.md - docs/ROADMAP.mdbox-mgnt-api, box-app-api, box-stats-api) - What are the constraints? (e.g. “no breaking changes”, “BigInt timestamps”)box-nestjs-monorepo (NestJS + TypeScript, MySQL, Mongo, Redis).”.codex/config.json.docs/CODEX_PROMPTS.md), including: - Architecture reference. - Tech stack. - Constraints: - TypeScript only. - NestJS patterns. - BigInt epoch for timestamps. - Avoid breaking changes.ARCHITECTURE.md and API_FLOW_DIAGRAMS.md?ROADMAP.md?Do not accept auto-generated code if the plan itself looks wrong.
libs/common, libs/core, libs/db.pnpm build or pnpm lint + pnpm tsc equivalent.pnpm lint - pnpm format (if applicable)pnpm test (or app-specific test commands)pnpm prisma:format - pnpm prisma:generate - [ ] Apply local migrations to dev DB (if needed).If anything fails, fix it yourself or ask Codex for a focused correction (with error logs included in the prompt).
feat(app-api): auto-register users by device_code.docs/ (architecture, roadmap). - [ ] Any potential risks or backward-compatibility notes.Reviewer checklist:
libs/db abstractions. - [ ] Inconsistent DTOs or response shapes. - [ ] Missing validation on inputs.docs/ are the source of truth; Codex must follow them.