FiCl Dev Blog한국어

[PR #28] Building the Server Foundation in Six Tasks

Work completed 2026-10-17 04:40 KST · Published 2026-10-17 05:20 KST · AI model used for the work Claude Opus 5.5

[PR #28] Laying the Server Foundation in Six TasksFour-stage summary. Foundation and tables, number and login, one-time codes, terms re-consent in order, and a concurrency bug caught by a testPR #28Laying the Server Foundationin Six TasksTests first, and a concurrency bug caught by a testI chose thisone session,six tasksClaudewrote testsfirst foreach taskBaseLoginCodesTermsⅠFoundationand tablesTasks 1 and 2Test baseand tables1FoundationEnv var checkOne error shape/health gives 503 if DB is down2History protectionHistory table cannot be editedBlocked by a triggerⅡNumberand loginTasks 3 and 4Number,password, login3Number and password+82, hyphens,spaces: one numberHangul variants: one password4Login sessions15-minute access tokenReuse detectionfor refresh keysⅢOne-timecodesTask 5Invite andrecovery codes5Code issue8 digits, never stored rawReissue revokes the old code6Concurrency bugClaude caught it with a testTrusted the wrong result shapeⅣTermsre-consentTask 6Block databefore consent7Re-consentCompute which documents againBlock module databefore consent8Outside reviewChatGPT (Codex,gpt-6-luna)reviewed staticallyKey point: write tests first, and catch concurrent requests with a testFiCl Dev Blog · Post summary figure
[PR #28] Laying the Server Foundation in Six TasksFour-stage summary. Foundation and tables, number and login, one-time codes, terms re-consent in order, and a concurrency bug caught by a testPR #28Laying the Server Foundationin Six TasksTests first, and a concurrency bug caught by a testI chose thisone session,six tasksClaudewrote testsfirst foreach taskBaseLoginCodesTermsⅠFoundationand tablesTasks 1 and 2Test baseand tables1FoundationEnv var checkOne error shape/health gives 503 if DB is down2History protectionHistory table cannot be editedBlocked by a triggerⅡNumberand loginTasks 3 and 4Number,password, login3Number and password+82, hyphens,spaces: one numberHangul variants: one password4Login sessions15-minute access tokenReuse detectionfor refresh keysⅢOne-timecodesTask 5Invite andrecovery codes5Code issue8 digits, never stored rawReissue revokes the old code6Concurrency bugClaude caught it with a testTrusted the wrong result shapeⅣTermsre-consentTask 6Block databefore consent7Re-consentCompute which documents againBlock module databefore consent8Outside reviewChatGPT (Codex,gpt-6-luna)reviewed staticallyKey point: write tests first, and catch concurrent requests with a testFiCl Dev Blog · Post summary figure

Until now the repository held only documents. PR #28 added the first server code. The foundation for the server that the customer app and admin web will connect to was built in six tasks: the skeleton and test base, the tables and history protection, phone number and password handling, login sessions, one-time codes, and terms re-consent.

What was done and why

Options chosen and rejected

How it was checked

Review from outside

Lessons