[PR #111·#114·#115] Applying the New Records Spec to Sub-milestone 2, Privacy Policy Collection Items, and Hardening the Sub-milestone 1 Customer App Plan
I requested this work.
All three PRs changed documents (plans, specs, the privacy policy), not code, and they follow one another, so they are written up as one post.
- PR #111, applying the new records spec: A new design for the sub-milestone 2 records screens (records spec and records mockup v0.6) was uploaded to the shared folder. The sub-milestone 2 spec and the server, customer app and admin web plans were written from v0.5, so they had to be aligned before the database structure was fixed. Claude (Opus 5.5) first reviewed only the spec document. After I said “review again for gaps,” it compared the mockup’s HTML code against the spec line by line and found five places where the mockup breaks the spec: an edit draft gets overwritten, an impossible value can be saved, the draft is erased before saving, switching modules behaves differently, and a stale draft keeps its old measurement time. It also corrected two statements from the first review that were wrong (drafts were already split by type, and the undo rule was already in the server plan).
- PR #111, the second review: I asked for another review “from the server, admin web and customer app viewpoints,” so Claude compared the three plans against the actual code on main. Sub-milestone 1 had progressed a lot in the meantime, so many files, names and settings the plans assumed differed from reality. 28 items were fixed: 8 for the server, 6 for the admin web, 13 for the customer app and 1 shared. Starting as written, migration (a file that changes the database structure) names would have collided, tests would have broken, view history would have been filed under the wrong category, and drafts could have been visible to other people. Partway through, I instructed “the recent home design was given to us, so reflect the design as much as possible,” so four points that the first review had decided differently from the design were reverted to follow it.
- PR #114, aligning the privacy policy: Sub-milestone 2 collects three new kinds of data: a draft of a confirmation-request inquiry, observation items in field records, and water-quality record photos (0 to 5). Section 1 of the privacy policy had none of the three, and publishing text that differs from what is actually processed is not acceptable, so the policy and the collected-data table were aligned. The policy is legal wording, so it had been left in PR #111 as “owner confirmation needed.”
- PR #115, hardening the sub-milestone 1 customer app plan: Because the sub-milestone 2 plan changed, Claude did a read-only check of whether the sub-milestone 1 code on main needed fixing now. There were no bugs to fix now, but two things needed attention before sub-milestone 2 starts: registering protected screens, and the sub-milestone 1 outputs that sub-milestone 2 expects.
- Chosen approach:
- PR #111: I approved decisions A–F and R1–R5 as recommended. Water-quality values use one range: a value outside the input-check range is saved after passing a reconfirm screen, and each value line keeps a “reconfirmed value” mark. With only one mark per version, editing just a memo would erase the mark. Because this means an impossible value such as pH 15 could be saved after reconfirmation, the risk was written in the spec’s failure table and the open question was reworded. To avoid inventing numbers, the range values were left blank as a question.
- PR #114, retention of inquiry drafts: At first I chose the recommendation to treat them like field records (hide only the author, keep the text). On a second look, the terms of service keep only records with personal information removed, free-written text can still hold personal information after a name is hidden, and Google asks that data entered be deleted when a user leaves (Google account deletion requirements), so I changed it to delete on withdrawal. The server work was not yet implemented, so the plan needed only one line and one test. Deletion happens in one shared withdrawal function, used by the administrator’s withdrawal handling and by the command that reprocesses withdrawals after a backup restore.
- PR #114, store categories and wording: The inquiry draft is “Customer Support” for Apple and “Other user-generated content” for Google, and the field records’ Apple category was changed to “Other User Content” (Apple privacy details, Google data safety). After review, on my instruction two wordings were also changed. “Photo location” was confused with the photo’s location data (GPS), so it became “shooting-area category,” and “is not sent” became “there is no feature yet to forward it or reply,” which matches the text being stored on the server.
- PR #115, screen protection: Only one screen is registered in
Stack.Protected(a group that blocks access unless the user is signed in). The official docs only say “Expo Router includes all routes by default” (protected screens docs), so Claude judged that a new screen that is not registered would open even when signed out. The docs do not speak to this case directly, and it was not confirmed by running it. So the relevant file was added to the Modify lines of tasks 8 and 9, and one signed-out test line was added to each. Protecting the whole group at once was dropped because it would also require changing the sub-milestone 2 plan. - PR #115, four changes on my instruction: The deadline line was narrowed. The signed-out test was written to render the real layout file with
renderRouter(the installedexpo-routerwas confirmed to haverenderRouterandtoHavePathname). A sentence that stated an inference from the docs as fact was fixed. An old description in the sub-milestone 2 plan was corrected.
- Checks:
- PR #111: The records mockup and the home mockup were compared (in the diff without photo data, the only change on the home side was one line for sort tie-breaking), and the mockup’s key functions were read and compared with the spec. Spec sections 1–20 were checked against the spec’s cross-reference table, and the plans were searched for leftover old values. The key claims of the second review (for example, a migration file already exists, the test reset wipes every table, the app has no TanStack Query) were confirmed directly in the code.
npm run verifywas run. - PR #114: Section 1 and 3 of the policy, the sub-milestone 1 table and three lines of the sub-milestone 2 task table were cross-checked, and it was confirmed in the server code that the withdrawal-erase function is called in only two places.
npm run verifypassed. - PR #115: The code was read directly and the terminology check was run. Because only documents changed, the full
npm run verifywas confirmed through the GitHub CI result.
- PR #111: The records mockup and the home mockup were compared (in the diff without photo data, the only change on the home side was one line for sort tie-breaking), and the mockup’s key functions were read and compared with the spec. Spec sections 1–20 were checked against the spec’s cross-reference table, and the plans were searched for leftover old values. The key claims of the second review (for example, a migration file already exists, the test reset wipes every table, the app has no TanStack Query) were confirmed directly in the code.
At a glance
- Done: Records spec v0.6 was applied to the sub-milestone 2 spec and three plans (PR #111), the privacy policy and collected-data table were aligned (PR #114), and the sub-milestone 1 customer app plan was hardened (PR #115).
- Found: 5 places where the mockup breaks the spec, 28 mismatches between plans and real code, 3 collected items missing from the policy, and screens missing protection registration.
- Decisions: Keep a reconfirmation mark per value line; delete inquiry drafts on withdrawal.
- Checks: Code and document cross-checks,
npm run verify(PR #111, #114), terminology check and CI (PR #115). - Needs the owner’s confirmation: Photo retention period (to be fixed in the policy).
Comparison by PR
| Aspect | PR #111 | PR #114 | PR #115 |
|---|---|---|---|
| What changed | Sub-milestone 2 spec and the server, customer app and admin web plans | Privacy policy and collected-data table | Sub-milestone 1 customer app plan |
| Trigger | New records spec (v0.6) and mockup arrived | Three new kinds of data in sub-milestone 2 were missing from the policy | Sub-milestone 2 plan changed, so sub-milestone 1 code was checked |
| Found | 5 places where the mockup breaks the spec, 28 mismatches between plans and real code | Inquiry draft, observation items and water-quality photos missing from section 1 | Protection registration missing for 2 new screens |
| Decision | Reconfirmation mark per value line (I approved) | Delete inquiry drafts on withdrawal (I changed it) | Add protection registration per screen (I gave four changes) |
| How it was checked | Mockup code vs spec, direct code checks, npm run verify |
Cross-checks between documents, server code check, npm run verify |
Code reading, terminology check, GitHub CI |
| Needs the owner’s confirmation | Field-record items in the policy (handled in PR #114) | Photo retention period | None |
Who did what
- I: requested all three pieces of work. I approved decisions A–F and R1–R5, told Claude to review again, told it to reflect the design, changed the inquiry-draft retention to deletion on withdrawal, and gave the wording changes and the four changes in PR #115.
- Claude (Opus 5.5): did the reviews, document edits and checks in a Claude Code session on my Windows computer. The second review of PR #111 was done by a working session of the same model, and PR #114 and #115 were done by working and checking sessions opened from the PR #111 session. No other models were used.
What turned up when the mockup was compared with the spec line by line
The first review read only the spec document. The mockup’s HTML often behaves more simply than the spec, so reading only the spec hides the problems that appear when the mockup is copied as is (overwritten edit drafts, saving impossible values and so on). They came out only after I asked for another review and the mockup’s code was compared too.
What I learned
- When a mockup arrives, compare its code, not just the spec. A mockup often behaves more simply than the spec.
- After a plan is written, many other changes can be merged, and the files and names the plan assumed drift from reality. Before starting a large sub-milestone, compare the plan with the current code once more.
- For decisions tied to terms of service or store requirements, such as retention periods, check the terms and the stores’ deletion requirements first, not only whether it fits the current plan.
- Where one file becomes one screen, write the protection registration into the plan for every new screen, or it gets missed.
- The two stores’ categories may not match one to one. Google has no customer support category.