FiCl Dev Blog한국어

[PR #246·247·248·252·253·256] Turning Head Office Answers into Code: Table Ends, Keeping Edited Values, and Showing It on Screen

Work completed 2026-11-21 16:24 KST · Published 2026-11-22 13:14 KST · AI model used for the work Claude Opus 5.5

[PR #246·247·248·252·253·256] Turning Head Office Answers into Code: Table Ends, Keeping Edited Values, and Showing It on ScreenSummary figure. Principles kept while turning head office answers into code: use the ends of the table instead of numbers, a migration that does not overwrite values admins edited, leave approved standards alone and put off ambiguous answers, and show server calculations on the admin web and customer app screensPR #246·247·248·252·253·256Turning head office answersinto codeTable ends → edited values → standards → screensI pickedthe answersI set theoptionsClaudeimplementedCodex wrote testsEndsEditsRulesScreensⅠEndsPR 2461No hard-coded numbersWorks from the table'slower and upper endsCode stays the sameif the table changes2The lowest rangeNot the table's first row,but the loweststarting temperatureⅡEditsPR 2473Only rows at original valuesValues admins editedare not overwrittenRollback uses thesame condition4Check on an empty databaseThe test database isrefilled from the seed,hiding valuesset by migrationsⅢRulesPR 248·2525Only the default changedApproved standardversions stayChanges go througha new version6Put off ambiguous answersIf an answer seems toconflict or is missing,don't build it; ask againⅣScreensPR 253·2567Server: pause and reduceStandard valuesare version columnsNo calculationinputs to customers8Screens: reason and rateAdmin web standardsand basis screensPause notice and ratein the customer appKey: leave numbers to the table, protect edited values and approvedstandards, and a server calculation is done only when it shows on screen.FiCl Dev Blog · Post summary figure
[PR #246·247·248·252·253·256] Turning Head Office Answers into Code: Table Ends, Keeping Edited Values, and Showing It on ScreenSummary figure. Principles kept while turning head office answers into code: use the ends of the table instead of numbers, a migration that does not overwrite values admins edited, leave approved standards alone and put off ambiguous answers, and show server calculations on the admin web and customer app screensPR #246·247·248·252·253·256Turning head office answersinto codeTable ends → edited values → standards → screensI pickedthe answersI set theoptionsClaudeimplementedCodex wrote testsEndsEditsRulesScreensⅠEndsPR 2461No hard-coded numbersWorks from the table'slower and upper endsCode stays the sameif the table changes2The lowest rangeNot the table's first row,but the loweststarting temperatureⅡEditsPR 2473Only rows at original valuesValues admins editedare not overwrittenRollback uses thesame condition4Check on an empty databaseThe test database isrefilled from the seed,hiding valuesset by migrationsⅢRulesPR 248·2525Only the default changedApproved standardversions stayChanges go througha new version6Put off ambiguous answersIf an answer seems toconflict or is missing,don't build it; ask againⅣScreensPR 253·2567Server: pause and reduceStandard valuesare version columnsNo calculationinputs to customers8Screens: reason and rateAdmin web standardsand basis screensPause notice and ratein the customer appKey: leave numbers to the table, protect edited values and approvedstandards, and a server calculation is done only when it shows on screen.FiCl Dev Blog · Post summary figure

The head office (the side that runs the service) sent answers to questions we had asked. We compared those answers with the current code and moved the ones we could act on right away into the code. The six PRs are one continuous piece of work from 2026-11-19 to 2026-11-21, so they share one post. The head office’s original wording, question numbers and standard values are not in this post; it only covers the principles we kept while turning the answers into code.

All of it ran on my Windows computer. A Claude Code session (Claude Opus 5.5) that leads the head-office-answer work compared the answers with the code and wrote the plans and work instructions. PRs #246 and #247 were each implemented by another Claude Code session (Claude Opus 5.5), and PRs #252, #253 and #256 were implemented by the lead session itself. Codex (gpt-6.1-terra) wrote most of the tests. In PR #252 Codex stalled both times, so a Claude subagent of the lead session (Claude Opus 5.5) wrote the tests; in PRs #253 and #256 the same subagent also fixed places where Codex’s tests missed something or clashed with a rule. The final review was done by the lead session and codex exec review. In every case, the rule that the implementing side does not write its own tests was kept.

At a Glance

PR What was done Principle kept Rejected option
#246 Calculate the rate even when the temperature is outside the table Use the table’s ends instead of hard-coded numbers Filling gaps in the middle with neighboring values
#247 Apply the reading input ranges and the minimum count for weighing several at once Do not overwrite values admins already edited Changing every row unconditionally
#248 A difference table of answers versus code, and tidying the records Answers that change the structure wait for the follow-up answers Changing the database structure right away
#252 Change the empty draft’s default, and plan the reduction rule Do not silently change approved standards Changing existing versions too with a migration
#253 Add pause and reduce to the server calculation Do not put calculation inputs in customer responses Not calculating when a reading is missing
#256 Show the pause reason and reduction rate in the admin web and customer app A server calculation is done only when it shows on screen Sending the two average temperatures to customers too

First, Checking the Premise of the Task

The lead session’s first task was “put the head office answers recorded in a certain PR into the code”. But that PR had no answers, only a record of questions sent. The real answers were in two other records. Claude built a difference table comparing each answer with the current code, and I picked and approved the ones we could do right away.

At that point we decided not to do several answers that would change the database structure (the shape of the tables that hold the data). They could change again depending on the answers to questions we had asked the head office again, so building them now could lock in the wrong structure.

PR #246: Using the Ends of the Table Instead of Hard-Coding Numbers

What changed

When calculating the daily input amount, the server looks up the rate for that day’s temperature in a table (a rate table by temperature range, one per standard version). Until now, if the temperature was outside the table’s range, the calculation was blocked. The head office answered that it should still calculate outside the table, and I decided on 2026-11-19 to apply that.

Chosen approach and rejected options

PR #247: Not Overwriting Values Admins Have Already Edited

What changed

The head office answered two things.

I approved the plan’s recommended options on 2026-11-19.

Chosen approach and rejected options

PR #252: Not Silently Changing Approved Standards

What changed

The head office answered: “treat a record as stale after a certain number of days, and let admins change it.” The field for admins to change this value already existed, so only the default for newly created empty drafts was changed from 7 days to 3 days. I picked this task, along with a plan draft for the reduction rule in the next section, on 2026-11-20.

Chosen approach and rejected options

PR #253: Adding the Reduction Rule to the Server Calculation

What changed

The reduction rule from the head office answer went into the daily input calculation. I set all five choices raised in the plan to the recommended options (2026-11-20).

Chosen approach and rejected options

PR #256: A Server Calculation Is Useless if It Is Not on Screen

What changed

Even if the server calculates a pause or a reduction, people on site will keep inputting as usual unless they see it. So three screens changed.

Chosen approach and rejected options

How it was checked

Lessons