FiCl Dev Blog한국어

[PR #66·#67] Built Admin Customer Access Paths and Filled in the Decision Log

Work completed 2026-10-20 08:58 KST · Published 2026-10-20 12:17 KST · AI model used for the work Claude Sonnet 5.5

[PR #66·#67] Admin Customer Access Paths and Decision LogSummary figure. Server paths for the admin web to manage customer access and assignments, plus owner decisions moved into the decision logPR #66·#67Built Admin CustomerAccess Paths, Filled the LogRemoved assignments keep only a cancel timeOwner's decisionsClaude builtand testedWhatApproachChecksLessonsⅠWhat we didEight server pathsTwo decisionsmoved to the log1PathsCustomer unitaccess, eight paths2LogDecisions copied to the logⅡApproachRemovedassignment: canceltime onlyWrites in onetransaction3LockSame customer andunit run in order4HistoryFailed historywrite rolls backⅢChecks316 tests passedOnly 3 testswere changed5CheckFull check passedⅣLessonsFix everycopy of a ruleRaise a doubtfultest as a question6LessonImplementer does not edit testsKey point: if a test looks wrong, theimplementer who edits it weakens the check.FiCl Dev Blog · Post summary figure
[PR #66·#67] Admin Customer Access Paths and Decision LogSummary figure. Server paths for the admin web to manage customer access and assignments, plus owner decisions moved into the decision logPR #66·#67Built Admin CustomerAccess Paths, Filled the LogRemoved assignments keep only a cancel timeOwner's decisionsClaude builtand testedWhatApproachChecksLessonsⅠWhat we didEight server pathsTwo decisionsmoved to the log1PathsCustomer unitaccess, eight paths2LogDecisions copied to the logⅡApproachRemovedassignment: canceltime onlyWrites in onetransaction3LockSame customer andunit run in order4HistoryFailed historywrite rolls backⅢChecks316 tests passedOnly 3 testswere changed5CheckFull check passedⅣLessonsFix everycopy of a ruleRaise a doubtfultest as a question6LessonImplementer does not edit testsKey point: if a test looks wrong, theimplementer who edits it weakens the check.FiCl Dev Blog · Post summary figure

What we did and why

Claude built eight server paths for the admin web. Every path sits behind an admin login check and an Origin check. The Origin check blocks requests sent from other sites.

A request that changes a customer’s access replaces the whole list of units that customer can use. A removed assignment is not deleted. Only its cancel time (revoked_at) is filled in. Access is read from the database on every request, so a cancelled unit is blocked right away (403 response).

Every write runs in one transaction (a group of changes that either all happen or all fail together). The same transaction writes one line to the change history (audit_logs). If the history write fails, the change is rolled back too.

Planned dates accept only real calendar dates. For example, 2027-02-30 is rejected.

PR #67 changed documents only, not code. It copied two decisions into the decision log table, one line each. One records a one-time allowance for editing a test file during the work. The other records that a change to the audit log’s spelling is postponed.

Approaches chosen and rejected

How we checked

Lessons