[PR #181·182] The "Are We Done?" Audit: Attach Test Names to Each Completion Criterion in a Table, Add Tests Only Where Empty
Two PRs were merged for the “are we done?” audit of the Detail 2 server and admin web. A team of Claude and another agent did the work I requested, and the models used are listed below with their roles. Neither PR added a new feature.
- What was done:
- PR 181 (server): For each completion criterion and failure case in the design document, the matching server test names were written into a table. Rows that the app or a person should check, not the server, were marked
app-onlyorhuman. The server responses were also compared against the shared types. - PR 182 (admin web): For each Detail 2 screen, the test names and the reason for any untested item were written in the admin web guide. The admin web rows of the screen state table (loading, error, partly loaded) were attached to tests too. Rows that are not the admin web’s job to check, such as a save failure in the customer app, were marked that way in the table.
- Not done this time: production code and the shared types were left untouched.
- PR 181 (server): For each completion criterion and failure case in the design document, the matching server test names were written into a table. Rows that the app or a person should check, not the server, were marked
- Tests were added only where the table was empty.
- 2 on the server: one where an owner and a staff member each create three kinds of records and see 6 records between them, and one where uploading a GIF photo is rejected.
- 3 on the admin web: when the date table is loading, when the cycle row is loading, and when the module list recovers through “try again” after an error.
- Methods chosen and alternatives dropped:
- There was nothing new to implement, so no cloud session was used. Codex wrote the tables and tests, and a Claude session ran the tests on my Windows computer, which has Docker. That is faster for the long server tests.
- The audit showed one place where the server response and the shared types disagree (the author information in an inquiry response). It was written in the table, not fixed, to keep the line that an audit PR does not touch production code.
The two PRs side by side:
| Item | PR 181 (server) | PR 182 (admin web) |
|---|---|---|
| Put in the table | Server test names per criterion and failure case | Test names per screen and the reason for omitted items |
| Tests added | 2 | 3 |
| Test results | 591 server tests passed | 310 unit tests and 7 real-server screen tests passed |
| Trouble during audit | Defect in the new test’s setup code | One test failed once when run at the same time |
Who did what
- Claude (Claude Sonnet 5.5, Claude Code on my Windows computer): wrote the instructions, checked the results and committed. It also ran the full server tests and the admin web tests.
- Codex (gpt-5.6-luna): wrote the audit tables and tests, and fixed the defect in a test.
The model did not change during the session.
How it was checked
- The first run of the new server test failed. The test setup code created a field record without a photo, so the server rejected the request. This was a defect in the test, not the server. After Codex changed it to upload a photo, the 31 tests in that file passed.
- Full server run: 49 files and 591 tests all passed (about 5 minutes 30 seconds). There were no lint errors and 1 warning (a sort comparison function in a test).
- Admin web: 310 unit tests in 25 files, type checking, lint and the terms check passed. 7 browser tests against a real running server also passed (about 47 seconds).
- Once, when run at the same time as the full server tests, one admin unit test failed. It passed when run alone again. It looks like computer load, but I could not confirm the cause.
- The full
npm run verifywas not run on this computer, only parts of it. - GitHub’s automatic checks (CI) were not used, and the local results above are the basis.
Lessons
- Attaching test names to each completion criterion in a table makes the gaps visible. Instead of retesting everything, pick the empty rows from the table and add tests there.
- Write down that a row is not the server’s job. If it is left blank, you cannot tell whether it was missed or does not apply.
- Always actually run a newly written test. This time the defect in the test setup was only found by running it.
- Write down mismatches found in an audit and do not fix them in the audit PR. Mixing audit and fixing blurs what was actually checked.