[PR #144·145] Finding Gaps in the Plan Before Building: What Read-Only Review and Real Runs Caught
Both PRs changed plan documents, not code. Before implementing Detail 2 (the server, admin web and customer app plans), the gaps in those plans were looked for twice: first by read-only review (reading without changing any code), then by measurement, actually running code.
- What was done:
- PR 144: Two read-only reviews by Claude found gaps in the server plan and in the admin web and customer app plans. A separate Claude session re-checked each finding against the plan line and the real code, then folded them into the three plans. I approved this PR.
- PR 145: A separate Claude experiment session ran the risks that only running code can settle, on my Windows computer. Another Claude session moved those values into the server and customer app plans.
- Neither PR touched code, tests or config files.
- What PR 144 caught:
- Five places in existing code that break when a data shape changes were added to the first step of the server plan.
- Missing rules were written down: an upper limit for numeric input, date locking, a new error code for clear-protection, and handling of past dates.
- A photo size limit, stronger location-data tests and the cleanup job approach went into the plan. For the cleanup job, the recommendation was the same
setIntervalapproach (a built-in way to run a function repeatedly) that Detail 1 uses, instead of a new package. - Some customer app tasks were split, and the paired exception markers across the three plans were fixed in one PR.
- What PR 145 added: All of the review’s judgments turned out right, and three things were added that reading alone could not show.
- Photo processing used more memory than the read-only review had guessed.
- A
NaN(not-a-number value) in a numeric field could be saved silently with no error. - The way of checking that location data was stripped from PNG files had a weak spot.
- Measured facts were also moved into the plans. An oversized upload actually answers with 413, not the 400 written in the plan, and a request with no photo file needed its own test. The customer app plan gained a note on a Node
FormData(the object that packs files for upload) pitfall and a way to check on a device.
- What was chosen and what was dropped:
- Easy-to-reverse decisions were written as recommendations and collected in the PR under “owner confirmation needed”. Hard-to-reverse database structure decisions were marked “hard to undo” inside the plan.
- The photo size limit value was still being measured by another session, so only a placeholder and a marker were left. Fixing a number without evidence was dropped.
- An oversized upload is written as 413, the real behavior, not the 400 in the plan. Leaving the filter alone and returning a generic error was dropped, because the app could then not show “photo too large”.
- The measurement PR did not rerun the experiments; it only moved the values from the experiment notes, and it did not repeat what the earlier PR had already done.
- Checks:
- 144: The relevant parts of server and app code were opened and compared with what the plan claimed, and the terminology check and the headquarters-question tracker check passed. Only documents changed, so the full check was left to CI.
- 145: The plan sentences on the current
mainwere compared with the experiment notes, and only what remained was changed.
Side by side, the two checks look like this.
| PR 144 read-only review | PR 145 real runs | |
|---|---|---|
| Method | Reading without changing code | Running the code and measuring |
| What it found | Five existing places that break, an upper limit for numbers, past-date handling | Photo memory use, silent NaN save, a weak spot in the PNG location check |
| What it did to the plans | Added rules, marked hard-to-undo decisions | Moved in measured values, corrected oversized upload from 400 to 413 |
| Remaining limit | Photo size limit is a placeholder | Not seen on the development server, a real phone or a real device |
Who did what
- I: approved the PR 144 reflection.
- Claude (two read-only review sessions): found gaps in the server plan and in the admin web and customer app plans by reading.
- Claude (separate session, Claude Sonnet 5.5): re-checked findings against the code and fixed the plans (144), and moved the measured values into the plans (145).
- Claude (separate experiment session): ran the risks for real on my Windows computer. The work log does not record this session’s model, so none is given.
What could not be confirmed
- Whether the tests actually pass once the plan is implemented was outside these PRs and not confirmed.
- Every number was measured on my Windows computer. Photo processing and memory on the development server, real phone photos, a 413 from the running app, and uploads from a real device were not seen.
Lessons
- Read-only review and real runs catch different gaps. Every judgment in the review was right, but the memory use and the silent
NaNsave only showed up when the code was run. - Review results need a fresh look at the code. The line numbers a review points to may already have drifted.
- When a value is not settled, leave a placeholder and a marker. That is better than fixing a number before it is measured.
- If a plan document uses CRLF line endings, string-replace tools need the line endings matched first.
- In a fresh working folder, run
npm cibeforenpm run verify. Otherwisemswcannot be found and the type check fails.