고친 화면을 다시 재 보니 다음 것이 보였다
Claude 세션을 3D 사무실 건물로 보여 주는 화면을 만들었습니다. 층은 프로젝트, 방은 도구, 직원은 세션입니다. 이 사이트에는 프로젝트 카드 한 장을 한 층으로 쌓은 건물을 전체 작업 페이지에 두고, 전날 숫자만 하루 한 번 올립니다. 어떤 숫자를 어디까지 올릴지는 누적 합계를 빼면 그날 숫자가 나왔다에 따로 적었습니다. 건물은 빌딩 저장소에서 만들고, 사이트는 거기서 내보낸 묶음을 받아 넣습니다.
그 묶음이 처음 들어간 10월 20일 새벽부터 그날 밤까지 사이트 저장소에 빌딩 커밋이 열네 개 쌓였습니다. 그 가운데 여럿이 넣은 것을 빼거나 고친 것을 다시 고친 일이었고, 대부분은 고친 화면을 한 번 더 재 보다가 나왔습니다.
데모는 올리기 전에 되돌렸다
처음 넣은 것은 빌딩 저장소가 만든 단독 데모였습니다. 가짜 이벤트로만 돌고, 화면에 뜨는 프로젝트와 세션 이름도 지어낸 것이었습니다. 묶음은 three.js 를 jsdelivr 에서 받게 되어 있었는데, 이 사이트의 CSP 는 script-src 'self' 라서 그대로 두면 실서버에서 돌지 않습니다. 그 경로만 CSP 를 풀지 않고 three.js 0.169.0 을 사이트 안에 들였습니다. 바깥 스크립트를 불러오지 않는다는 원칙을 지키고, 방문자의 요청도 바깥으로 나가지 않습니다.
커밋까지 했지만 올리기 전에 제가 방향을 바꿨습니다. 가짜 건물을 보여 주기보다, 사이트 카드대로 한 층씩 쌓고 층을 누르면 그 층의 현황과 카드 내용이 나오게 하자고 했습니다. 데모 커밋 둘은 지우지 않고 git revert 로 되돌렸습니다. main 을 언제든 올릴 수 있는 상태로 두면서, three.js 를 들이는 방식과 카드 문구는 되돌린 커밋에서 다시 꺼내 썼습니다. 데모 주소는 방문자에게 열린 적이 없고, 오늘 확인해도 404 입니다.
새로 넣은 빌딩 보기는 파일 14개, 1.48MB 이고 대부분이 three.js 입니다. 빌딩 단추를 처음 누를 때 불러오게 해서, 별자리만 보는 방문자는 three.js 를 받지 않습니다.
닫은 뒤에도 남아 있던 것
빌딩은 별자리와 번갈아 보는 화면이라 닫을 때 그리기 루프를 멈춥니다. 언어 전환 처리기는 멈추지 못했습니다. 사이트의 언어 처리기 목록(I18N.onChange)은 넣기만 하고 지울 수 없어서, 빌딩을 닫은 뒤 언어를 바꾸면 남은 처리기가 이미 지워진 단추에 글자를 넣으려다 TypeError 를 냈습니다. 오류가 나면서 그 뒤에 있던 다른 언어 처리기들까지 건너뛰어졌습니다.
닫고 나서 언어를 바꾸는 순서를 그대로 만들어 재현한 뒤, 빌딩을 열 때마다 번호(gen)를 하나씩 올려 옛 번호를 가진 처리기는 아무것도 하지 않게 했습니다. 빌딩 저장소도 같은 문제를 따로 막아서 지금은 두 겹입니다.
같은 커밋에서 "↑ 별자리로" 단추도 고쳤습니다. 별자리가 숨으면 크기가 0 이 되는데, 단추는 별자리가 화면 위로 지나갔는지만 보고 있어서 빌딩 보기 내내 떠 있었습니다.
안내와 집계를 다시 셌다
빌딩 저장소는 고친 판을 넘길 때 몇 파일이 바뀌는지 같이 알려 옵니다. 한 번은 view.js 한 파일만 바뀐다고 했는데, 다시 내보내 diff -r 로 맞춰 보니 네 파일이 달랐습니다. 그 사이에 실시간 모드 커밋이 하나 들어와 있었습니다. 한 파일만 가져왔다면 묶음 안의 파일끼리 어긋날 수 있었습니다. 묶음 전체를 맞췄고, 빌딩 저장소는 그 뒤로 "사이트에 마지막으로 들어간 판"을 문서에 적어 두고 그 판과 비교해 알립니다. 이후 다섯 번은 안내한 파일 수와 diff 결과가 같았습니다.
숫자를 세는 쪽에서도 빠진 것이 있었습니다. 다른 앱에서 쓴 것도 들어가 있느냐고 제가 물어 재 보니, Xcode 안의 Claude 는 세션 기록을 다른 곳에 쌓아서 집계에서 빠져 있었습니다. 8월 10일부터 10월 2일까지 기록 142개, 토큰 2,053만으로 전체의 약 8% 였습니다. 집계기가 그 기록도 읽게 고친 뒤 숫자를 다시 냈습니다. claude.ai 채팅과 클라우드 세션은 지금도 세지 않습니다.
핀치는 17분 만에 뺐다
층을 누르면 그 층 하나만 남기고 다른 층과 옥상, 땅을 걷어 내 크게 띄우게 하면서, 두 손가락이나 트랙패드 핀치로 확대·축소하는 기능도 같이 넣었습니다. 핀치는 됐습니다. 직접 써 보니 손가락이 닿을 때마다 건물이 휙휙 돌아 정신이 없었습니다. 커밋 시각으로 17분 뒤 손으로 돌리기와 핀치를 모두 빼고, 확대는 층을 누를 때만 하게 했습니다. 그림 위를 손가락으로 쓸어도 페이지가 스크롤되도록 touch-action: pan-y 를 걸었습니다.
폰에서 빌딩이 차지하는 자리가 너무 크다고 짚은 것도 같은 커밋에서 고쳤습니다. 그림은 clamp(240px, 42vh, 380px), 패널은 화면 높이의 34% 로 묶어 안에서 스크롤하게 했고, 375×812 화면에서 빌딩 전체 높이가 1,454px 에서 619px 로 줄었습니다. 실제 휴대폰에서 쓸어 넘기는 것은 아직 확인하지 못했습니다.
고친 칸이 다음 문제가 됐다
높이를 줄이며 만든 그 칸이 다음 문제로 이어진 것으로 보입니다. 층을 누르면 "어제 하루"와 "쌓인 합계" 숫자까지 한참 스크롤해야 한다고 제가 짚었고, 실서버에서 재 보니 폰은 275px 칸 안에 내용이 1,076px, 데스크톱은 보이는 597px 에 내용 1,111px 이었습니다. 숫자를 맨 위로 올리고, 소개는 세 줄만 보인 뒤 더 보기로, 핵심은 접어 두었습니다. 폰에서는 패널 안쪽 스크롤을 없애 페이지 스크롤 하나만 남겼습니다. 페이지 스크롤 안에 칸 스크롤이 또 있으면 손가락이 어느 쪽을 움직이는지 헷갈립니다. 고친 뒤 데스크톱 층 보기는 보이는 597px 에 내용 604px 로 거의 다 들어오고, 폰에는 안쪽 스크롤이 없습니다.
고친 화면을 폰에서 다시 재니 숫자 아래가 60px 넘게 비어 있었습니다. 빌딩 쪽 코드에는 그런 여백이 없었습니다. 원인은 사이트 공통 CSS 의 section { padding: 8px 0 56px } 이었고, 빌딩 패널의 "어제 하루" 칸이 section 태그라서 이 규칙이 그대로 걸렸습니다. 빌딩 저장소의 미리보기에는 사이트 CSS 가 없어 거기서는 재현되지 않았고, 실서버에서 재야 보였습니다. 빌딩 쪽에서 자기 안의 section 여백을 0 으로 되돌리고 사이트 공통 규칙은 그대로 두었습니다. 그 사이는 66px 에서 10px 로, 폰의 층 보기 패널은 569px 에서 503px 로 줄었습니다. 빌딩 저장소는 그 뒤로 사이트 CSS 를 읽기 전용으로 얹은 미리보기에서 배치를 잽니다.
정리하면
고친 화면은 고친 자리에서 다시 잽니다. 높이를 줄이려고 묶은 패널 칸이 다음 지적의 원인이었고, 그 칸을 고친 화면에서 사이트 CSS 가 새는 것이 보였습니다.
미리보기에서 잰 것은 사이트에서 다시 잽니다. 미리보기에 없는 규칙은 미리보기에서 재현되지 않습니다.
몇 파일이 바뀐다는 안내는 diff 로 확인합니다. 비교 기준은 사이트에 마지막으로 들어간 판입니다.
지울 수 없는 처리기는 스스로 멈추게 만듭니다. 닫은 화면이 남긴 처리기 하나가 뒤의 처리기까지 막았습니다.
써 보고 아니면 뺍니다. 데모는 올리기 전에 되돌렸고, 핀치는 넣은 지 17분 만에 뺐습니다.
검사를 통과한 화면이 틀렸던 다른 일은 검사는 통과했는데 화면이 틀렸다에 있습니다.
I built a screen that shows Claude sessions as a 3D office building. Floors are projects, rooms are tools, and staff are sessions. On this site, a building with one floor per project card sits on the All work page, and only the previous day's numbers are published, once a day. Which numbers go up, and how far, is written up separately in Cumulative Totals Gave Away the Day. The building is made in the building repository, and the site takes in the bundle exported from there.
From the early hours of October 20, when that bundle first went in, until that night, fourteen building commits piled up in the site repository. Several of them took out something that had gone in or fixed something already fixed, and most came from measuring a fixed screen one more time.
The demo was reverted before it went up
The first thing to go in was a standalone demo made by the building repository. It ran only on fake events, and the project and session names on screen were made up too. The bundle was set to fetch three.js from jsdelivr, but this site's CSP is script-src 'self', so left as it was it would not run on the live server. Instead of loosening the CSP for that path, I brought three.js 0.169.0 into the site. That keeps the rule of not loading outside scripts, and visitors' requests do not go outside either.
It was committed, but before it went up I changed direction. Rather than show a fake building, I asked for one floor per site card, with a floor's status and card content appearing when you press it. The two demo commits were not deleted but undone with git revert. That kept main ready to push at any time, and the way of bringing in three.js and the card wording were taken back out of the reverted commits and reused. The demo address was never open to visitors, and it still returns 404 when checked today.
The new building view is 14 files, 1.48MB, mostly three.js. It loads the first time the building button is pressed, so visitors who only look at the constellations never download three.js.
What stayed behind after closing
The building alternates with the constellation view, so closing it stops the render loop. The language-switch handler could not be stopped. The site's list of language handlers (I18N.onChange) can only be added to, never removed from, so switching language after closing the building made the leftover handler try to put text on a button that had already been removed, and it threw a TypeError. With that error, the other language handlers after it were skipped as well.
I reproduced it by recreating the exact sequence of closing and then switching language. The building now bumps a number (gen) by one each time it opens, and a handler holding an old number does nothing. The building repository blocked the same problem separately, so there are now two layers.
The same commit also fixed the "↑ Back to the map" button. A hidden constellation has a size of 0, but the button only checked whether the constellation had scrolled past the top of the screen, so it stayed up the whole time the building was shown.
Recounting the notices and the tallies
When the building repository hands over a fixed version, it also says how many files change. Once it said only view.js would change, but when I exported again and compared with diff -r, four files differed. A live-mode commit had come in between. Had I brought over just that one file, the files inside the bundle could have fallen out of step with each other. I matched the whole bundle, and since then the building repository records "the version last brought into the site" in its documentation and compares against that version when it reports. In the five times after that, the announced file count matched the diff result.
Something was missing on the counting side too. When I asked whether what I used in other apps was counted as well and it was measured, Claude inside Xcode turned out to keep its session logs somewhere else, so it had been left out of the tally. From August 10 to October 2 that came to 142 logs and 20.53 million tokens, about 8% of the total. After the counter was changed to read those logs too, the numbers were produced again. claude.ai chats and cloud sessions are still not counted.
Pinch came out after 17 minutes
When a floor is pressed, I had everything but that floor, meaning the other floors, the roof and the ground, cleared away so it floats up large, and alongside that I added zooming in and out with a two-finger or trackpad pinch. The pinch worked. Using it myself, the building whipped around every time a finger touched it, which was dizzying. 17 minutes later by commit time, I took out both hand rotation and pinch, and zoom now happens only when a floor is pressed. I set touch-action: pan-y so that sweeping a finger over the image still scrolls the page.
What I had flagged, that the building took up too much room on the phone, was fixed in the same commit. The image was capped at clamp(240px, 42vh, 380px) and the panel at 34% of the screen height with scrolling inside it, and on a 375×812 screen the building's total height went from 1,454px to 619px. Swiping through it on a real phone is something I have not checked yet.
The box I fixed became the next problem
The box made while cutting the height seems to have led to the next problem. I pointed out that after pressing a floor you had to scroll a long way to reach the "Yesterday" and "Running total" numbers, and measuring on the live server showed 1,076px of content inside a 275px box on the phone, and 1,111px of content in a visible 597px on desktop. I moved the numbers to the top, made the introduction show three lines followed by a "more" link, and folded the key points away. On the phone I removed the panel's inner scrolling, leaving only the page scroll. When a box scroll sits inside the page scroll, it is confusing which one your finger is moving. After the fix, the desktop floor view almost fits, with 604px of content in the visible 597px, and the phone has no inner scroll.
Measuring the fixed screen again on the phone, there was more than 60px of empty space below the numbers. The building code had no such margin. The cause was the site's shared CSS rule section { padding: 8px 0 56px }: the "Yesterday" box in the building panel is a section tag, so the rule applied to it as is. The building repository's preview has no site CSS, so it did not reproduce there; it only showed up when measured on the live server. The building side reset the padding of its own section elements to 0, and the site's shared rule was left as it was. That gap went from 66px to 10px, and the phone's floor-view panel from 569px to 503px. Since then the building repository measures layout in a preview with the site CSS layered on, read-only.
In short
A fixed screen gets measured again where it was fixed. The panel box capped to cut the height caused the next complaint, and the screen with that box fixed showed the site CSS leaking in.
What was measured in a preview gets measured again on the site. A rule the preview does not have will not reproduce in the preview.
A notice that some number of files will change gets checked with diff. The baseline is the version last brought into the site.
A handler that cannot be removed is made to stop itself. One handler left behind by a closed screen blocked the handlers after it.
Try it, and if it is not right, take it out. The demo was reverted before it went up, and pinch came out 17 minutes after it went in.
Another case of a screen that passed its checks and was still wrong is in The Checks Passed, the Screen Didn't.