Kai Hirota

9 min read1,977 words

How to digitize a ward office without closing it

Digitizing a ward office one department at a time breaks its records, and doing it all at once means closing the doors. This is the order I would do it in, as an engineer who worked on a large backend migration.

It took 2 visits and more than 5 hours at to change one word on my (part 1). In part 2 I modeled the office as microservices with nothing connecting them. While I waited, I kept wondering how I would digitize it.

I have never worked in government. I have worked on a large backend migration at Immutable, and the guiding principle I learned there applies here: first make the change easy, then make the change.

Digitizing one department at a time breaks the records#

The obvious plan is to digitize one department, then the next. The problem is that departments share records. My name is in the , the , my health insurance and my ID card. If the family register desk goes digital and the others stay on paper, every change has to be entered twice, once in the new system and once the old way. Sooner or later the two disagree, and nobody knows which one is right.

It already happens on paper. After I filed the correction to my name, my card still showed the wrong name for 3 to 4 weeks. Two records about me disagreed, and I was the one who had to explain it at the doctor's.

Switching everything at once would close the office#

The other obvious plan is to build a new system and switch everything over on one day. The staff can't change every procedure overnight, and the office would have to stop taking requests while the old records are moved. A ward office can't close for a month.

Japan has tried one big switch with one deadline, on a national scale, and it ran late. The government set a target for local governments to move 20 core systems, including the family register, the resident register and national health insurance, to standard software by the end of fiscal 2025 (March 2026).[1] At the deadline, 29.1% of the systems had not moved, and 1,015 of the 1,788 local governments had at least one that was late. The main reason given was that the software vendors pushed their schedules back.[2]

3 steps, and only the last touches official records#

StepWhat changesOfficial records
1. One ticket for the whole officeTicketing, and notes on each visitUntouched
2. Forms filled in from the ID cardWho writes the formUntouched
3. One procedure at a timeHow a request reaches the recordWritten digitally, one procedure at a time

Step 1 makes the change easy. Step 2 saves the most time. Step 3 is the change.

Step 1: one ticket for the whole office#

At my second visit I explained myself to 2 people before a machine gave me a number. In step 1 the number comes first. Step 1 does 3 things:

  • A single point of entry. Today each department runs its own ticket machine and its own queue. I would add , that every desk in the office can read.
  • A trace ID. is the that part 2 found missing. It carries a visit record, and every desk you reach reads it and adds a note.
  • Logs. The notes add up to a log of every visit. From that log, an LLM can .

Two rules. Staff write things down instead of passing them on by word of mouth, because what is only said never reaches the log. And the notes are short and follow the same shape where possible: who did what to what.

VISITORcarries the trace IDFloor guidetypes in why you came, issues a trace IDsends you to a deskHealth insurance deskread / writeFamily register deskread / writeCard deskread / writeSHARED DATA STORE: VISIT RECORDSwrites the first note16:11floor guide: sent to family register16:14register desk: sent to card desk16:35card desk: updated card

One trace ID for the whole office, and one shared data store that every desk reads and writes. The example is my second visit.

This changes no official record and no law. The resident explains once and leaves with a receipt that has a number on it. At the next visit, that number brings up the first one. When the change has reached every system, that is written down too, so I can check instead of guessing.

Step 1 costs the staff time. Every desk types a note, and nothing gets faster for them yet. Step 2 pays that back.

The office gets counts I could not find in anything it publishes today: how many visits ended with the problem solved, and how many were repeat visits. It also learns what information goes into each department and what comes out. Step 3 needs that.

The logs are the raw data that become organizational memory#

The notes start as plain text with a timestamp, so nobody has to design the fields first. An LLM then transforms the logs in stages. First they become , which is the record of every interaction at every desk: who came, what they asked for, and what was done. Then they become , which is what the office knows in general, such as how each procedure usually goes. Semantic memory is stored as a : the departments, procedures, forms and records, and the information that passes between them.

Today the office has neither. No desk can see my last visit, and the procedures live in the minds of the staff.

The brain is thought to work in a similar way. The hippocampus , and the neocortex slowly works out the general pattern from many of them.[3] That memory consolidation is asynchronous: it happens after the experience, much of it during sleep. LLM agents are built like this too. One well-known design keeps a stream of timestamped notes in plain language, and periodically has the model reflect on them and distil higher-level conclusions.[4] The office's logs would be consolidated the same way, after the office closes.

The office needs both. Episodic memory answers what happened to this visitor at each desk. Semantic memory answers how a change of name usually goes. Unusual cases like mine drop out of the general picture, so they survive only in episodic memory.

floor guide
the staff member at the entrance who sends you to a desk
register desk
handles the family register, the record of your name, birth and family
resident desk
handles the resident record, your registered address
card desk
handles the My Number Card, Japan’s photo ID card
LOGSNOTES AS STAFF WRITE THEMLINES: 15VISITTIMEAUTHORNOTEA16:11floor guidesent to family registerA16:14register desksent to card deskA16:35card deskupdated cardB16:41floor guidesent to card deskB16:55card deskreissued cardC17:02floor guidesent to resident deskC17:20resident deskupdated resident recordC17:22resident desksent to card deskC17:41card deskupdated cardD17:50floor guidesent to resident deskD18:09resident deskupdated resident recordD18:11resident desksent to card deskD18:33card deskupdated cardE18:40floor guidesent to card deskE18:52card deskupdated cardEPISODIC MEMORYVISIT E: READROWS: 15VISITTIMEWHODIDTO WHATA16:11floor guidesent tofamily registerA16:14register desksent tocard deskA16:35card deskupdatedcardB16:41floor guidesent tocard deskB16:55card deskreissuedcardC17:02floor guidesent toresident deskC17:20resident deskupdatedresident recordC17:22resident desksent tocard deskC17:41card deskupdatedcardD17:50floor guidesent toresident deskD18:09resident deskupdatedresident recordD18:11resident desksent tocard deskD18:33card deskupdatedcardE18:40floor guidesent tocard deskE18:52card deskupdatedcardSEMANTIC MEMORYA KNOWLEDGE GRAPHVISITS READ: 5×2×2×2×2×5×1×1Floor guideResident deskResident recordCard deskMy Number CardFamily register desk

Only visit A went through the family register desk. A path seen once is an outlier, so it is removed from the graph. Visit A’s rows are still in episodic memory.

6 / 6

Step 2: fill in the forms from the ID card#

At the desk my ID card sat in front of the staff while I copied it onto 3 forms. In step 2 the card fills in the form: staff read the ID card, and the form prints with the details already on it. Anything the card does not hold, such as a new address, I say once and the staff type it into the visit record. The printed form is still signed and filed, so the official process does not change. The office already counts its forms, so the most common ones go first.

Some cities already do this. In Kumamoto it saved 7 minutes of staff time for each change of address, and in Kizugawa issuing a certificate went from 8 minutes to 5.[5] As of February 2023, 304 municipalities (17.5%) had a desk like this.[6] By my estimate in part 1, it would save Shinjuku's 10 about 37,000 staff hours a year, worth about ¥144 million in salaries.

TodayAfter
Why they cameTold at every deskTold once, at the door
Who they areWritten on every formID card handed over once
What is new, such as a new addressWritten on each formSaid once, typed by staff into the visit record
ProofNoneA receipt with a number

Step 3: take each procedure off paper, one at a time#

In step 3 the paper goes away, one procedure at a time. Shinjuku's records already sit in computer systems,[7] and the government wants them on its standard software,[1] so I would not build a new system for the records. What is still on paper is everything in front of them: I write a form, and a member of staff types it in. Step 3 replaces that with a digital request that goes into the record without anyone retyping it. The digital request is nothing new to fill in. It is the data that step 2 already holds from printing the form.

Once a procedure is off paper, it goes like this at the desk:

  1. The staff read the visitor's ID card and type in anything new, as in step 2.
  2. The visitor checks the details on a screen and confirms they are correct.
  3. The staff press send.
  4. The request goes into the record system with the trace ID attached.

I would start with the procedures that the log shows are common and touch few records. For each one, the knowledge graph from step 1 shows what to build, once the staff who do that procedure have reviewed and approved it.

Each procedure runs both ways for a while, and the visitor notices nothing. Staff type in the paper form as before, and that stays the official entry. The digital request runs alongside without writing anything. What it would have written is compared with what the staff typed, visit by visit, using the trace ID. Only one of them ever writes to the record, so there is no second copy to disagree. When the two have agreed for long enough, the digital request takes over, the paper version of that one procedure is retired, and the next procedure starts.

STEP 3: ONE PROCEDURE, RUN BOTH WAYSRequest with a trace IDPaper form, typed in by staffstays the official entryDigital requestruns alongside, writes nothingCompared, visit by visitThey agree for long enoughthe digital request takes overThey disagreethe digital request is fixedTHE LOG GIVES THE ORDER (EXAMPLE)CertificatesMovesHealth insuranceChange of namefirst: common, touches few recordslast: touches almost every record

One procedure at a time. Issuing a certificate touches few records, so it goes early. A change of name touches almost every record, so it goes last.

The office will need fewer people at the desks#

Step 2 saves about 37,000 staff hours a year. That is the work of about 20 of the 121 staff at Shinjuku's branch offices. If the staff expect layoffs, they have every reason to slow the project down, and the project needs them: much of how the office works is written down nowhere except in their heads. The ward has 2,749 regular staff.[8] Needing 20 fewer people at the desks is a small enough change to handle as people retire or move to other work.

Build it at the desk, with the staff#

Whoever builds this should sit at the desk with the staff and build it there. That job has a name: . Japan has 1,718 municipalities, plus Tokyo's 23 wards, all running the same procedures under the same national laws.[9] The standard software also comes with shared data and integration requirements,[1] so a visit record, a form filler or a digital request built at one ward can be used at every other one.

My second visit, before and after#

BEFORE: 75 MINUTESFloor guide: explanation 1, interruptedSecond staff member: explanation 2Taken to the wrong deskTicket printedWaiting (15 to 20 minutes)Card desk: explanation 3, form 1Waiting (about 20 minutes)Card desk: form 2, same detailsWaiting (15 to 20 minutes)Second desk: form 3, same detailsWaitingCard updated by hand01530456075 minAFTER: ABOUT 15 MINUTESFloor guide: one explanation, trace ID issuedWaiting (about 10 minutes)Card desk: forms printed from my ID card, signedCard updated01530456075 minexplainingformwaitingsent the wrong way

My second visit, before and after steps 1 and 2. The after is my estimate.

After steps 1 and 2, I explain once, at the door. Nobody sends me to the wrong desk, because the record shows what I filed at the first visit. The forms print from my ID card, so the only thing I write is my signature. The wait is shorter too, because everyone ahead of me also spends less time at the desk. No official record has been touched, and the office never closed.

References#

  1. デジタル庁, 地方公共団体の基幹業務システムの統一・標準化, updated November 12, 2026.
  2. デジタル庁, 移行支援期間における特定移行支援システムの数について, June 30, 2026.
  3. McClelland, McNaughton and O'Reilly, Why there are complementary learning systems in the hippocampus and neocortex, Psychological Review 102(3), 1995.
  4. Park et al., Generative Agents: Interactive Simulacra of Human Behavior, 2023.
  5. 総務省, 自治体フロントヤード改革 個別事例, April 2024, pp. 1 and 13.
  6. 総務省行政経営支援室, 自治体フロントヤード改革に関する個別取組事例集, November 2023, p. 1.
  7. 新宿区, 令和7年度事務事業概要(地域振興部), as of April 1, 2025, p. 10.
  8. 新宿区, 新宿区の人事行政の運営状況, November 2026, p. 10.
  9. 総務省, 市町村合併.