Applies the owner's Lighthouse targets

Three pages no longer need an exception and the homepage target rises to its
measured score, so the gain cannot slip away unnoticed. Also adds the third
unit's code summary and updates the shared docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 20:07:24 +01:00
co-authored by Claude Opus 5.5
parent 498be43020
commit b6d5a85e41
12 changed files with 181 additions and 44 deletions
@@ -481,13 +481,13 @@ Preconditions for Part I: Step 21 green; the main session has confirmed that it
## Part J: Documents (batch B9)
### Step 24: Code summary and verification log [ ]
### Step 24: Code summary and verification log [x]
- Executor: Sonnet.
- Do: write `aidlc-docs/features/prerendering/construction/hosting-and-targets/code/code-summary.md` in the format of `construction/display-fallbacks/code/code-summary.md`: status; commits (leave "to be filled by the main session"); files created, modified and removed (from `git status --short` and `git diff --stat`), grouped (URL modules, nginx generator, IIS generator, preview server, Lighthouse, deploy scripts, workflow, tests, documents) with the rule ids each implements; test inventory (files, counts, which properties P-HST-01 to 11 where, which existing tests changed and why: § 6 and the Step 17 record); the verification log V1 to V14 condensed (V6 WITHDRAWN; V10 OPEN if lftp was unavailable locally; V1 to V5 with the proof source); the Step 21 outcome; deviations; what is **unverified**: the IIS rules (U1 to U6 in infrastructure-design.md § 7.2), the nginx 1.24/1.30 gap, lftp syntax if not tested, the first CI run; open points for the owner; a pointer to `pi-install-instructions.md`. Complete the verification log (Outcome, Evidence, Status for every row).
- Done when: both files exist and every file of the diff is listed.
### Step 25: Reverse-engineering delta and the temporary note [ ]
### Step 25: Reverse-engineering delta and the temporary note [x]
- Executor: Sonnet.
- Implements: NFR-PR-Q-05.
@@ -505,15 +505,16 @@ Preconditions for Part I: Step 21 green; the main session has confirmed that it
## Part K: After the owner's decisions (batch B10, Sonnet; runs only when the main session passes the decisions)
### Step 26: Apply the owner's per-page decisions [ ]
### Step 26: Apply the owner's per-page decisions [x]
- Executor: Sonnet.
- Implements: NFR-PR-P-01; BR-HST-21, 23.
- Do: with the decisions written in the main session's message (page, new `minScore` or "remove the exception", the date and where the decision is recorded): edit only the `mobileExceptions` table in `web/lighthouserc.cjs`: delete entries for pages that now meet 0.9, change or keep others with `decision` set to the owner's decision text and its record location; leave `numberOfRuns` at 1; do not edit `lighthouserc.desktop.cjs`. Update the comments in the file to match. If a decision is missing for a page below 0.90, STOP and ask; never choose for the owner.
- Done when: `pnpm exec vitest run config/lighthouserc.test.ts src/app.test.tsx`, `pnpm lint`, `pnpm format:check`, `pnpm exec tsc --noEmit` green; the effective target table matches the decisions exactly.
- Record: the final target table.
- Done. Mobile: `/` 0.85; zwangerschap, gezin, loveshoot, portret 0.85; `/over-mij`, `/portfolio`, `/soorten-fotoshoots`, newborn, `/contact`, `/privacyverklaring`, `/__audit/404` 0.9. Desktop 0.9 everywhere. `lhci assert` on the existing final measurement: 12 of 12 pass, both presets. `photoPagePaths` removed (no longer true for every shoot page); `src/app.test.tsx` adjusted.
### Step 27: Final documents [ ]
### Step 27: Final documents [x]
- Executor: Sonnet.
- Do: update `code-summary.md` (targets applied, decisions with their record), the Lighthouse exception line in `aidlc-docs/_shared/reverse-engineering/code-quality-assessment.md` and any other shared line that states the old exceptions, and `measurement-final.md` (a short "Owner decisions" section). Run `pnpm test` once for the summary counts.