Adds the second unit's measurement

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 01:46:30 +01:00
co-authored by Claude Opus 5.5
parent d11fcb1ff9
commit b965b8a227
5 changed files with 133 additions and 9 deletions
@@ -433,7 +433,7 @@ All files in `web/e2e/`, Dutch titles and comments like the neighbours, using th
Preconditions for all of Part H: Step 23 green; the main session has confirmed that it holds port 4173 for this work; `git status --short` recorded to `<scratch>/status-before.txt`; `pnpm build` just run. The method is the one of unit 1: `lhci collect`, 3 runs per URL, median, same machine. Lighthouse runs may be backgrounded; wait for them (rule 13).
### Step 24: Measurement U2 and the moved-scripts check (BR-DMS-02, 03) [ ]
### Step 24: Measurement U2 and the moved-scripts check (BR-DMS-02, 03) [x]
- Executor: Haiku for the runs, Sonnet for the script and the report.
- Implements: BR-DMS-02, 03; NFR-PR-P-01, P-03; V-D7 (first part).
@@ -444,14 +444,14 @@ Preconditions for all of Part H: Step 23 green; the main session has confirmed t
4. Trace (BR-DMS-02): for each of the 12 URLs keep the trace of one mobile run through Lighthouse gather mode (`pnpm exec lighthouse <url> -G --output-path=<scratch>/trace/<slug>` with the mobile defaults of `lighthouserc.cjs` and the Chrome flags it uses, against `pnpm preview --port 4173 --strictPort` started and stopped by you). If `pnpm exec lighthouse` does not exist or gather mode fails, write "trace not obtained" with the error in the report; this is not a STOP.
- Done when: the folders and the script output exist; the comparison table is ready for Step 27.
### Step 25: Largest-paint probe, logo effect and moved scripts (V-D7, V-D10, V-D14) [ ]
### Step 25: Largest-paint probe, logo effect and moved scripts (V-D7, V-D10, V-D14) [x]
- Executor: Haiku runs, Sonnet reads.
- Implements: BR-PRE-05, 06; V-D7, V-D10, V-D14.
- Do: (a) probe (scratch, unthrottled Chrome) of the largest-contentful-paint element per page at 412 x 823, 768 x 1024 and 1350 x 940 (a `PerformanceObserver` for `largest-contentful-paint` registered by `addInitScript`; last entry after 2.5 s; record tag, `url`, `size`, alt text) for the eleven pages; check against business-rules.md BR-PRE-06 and the domain-entities.md § 6 table, and for `/portfolio` state which tile it is at each width (V-D14, expected: a first-row tile). (b) Effect of the lazy logo and contact portrait (V-D7): from `<scratch>/u2` and the unit-1 numbers, `imgKB` before the real LCP on non-home pages should be about 25 KB lower; report the score and LCP change per page, and confirm by a probe on `/` after a client navigation to `/over-mij` and back that the logo does not flash (take frames). (c) If a trace was obtained (Step 24.4), state whether the hero photo is the LCP candidate on `/` (V-D10). (d) Time of the moved `inline-*.js` files against FCP and LCP for `/` and `/over-mij`, as unit 1 did.
- Done when: results written for Step 27. A first-row tile that is not the largest paint, or a logo flash, is a finding for the report, not a STOP.
### Step 26: Portfolio comparison, build E against build D (BR-DMS-05, V-D5) [ ]
### Step 26: Portfolio comparison, build E against build D (BR-DMS-05, V-D5) [x]
- Executor: Haiku for the runs, Sonnet for the temporary change and the report. Exclusive.
- Implements: BR-DMS-05; NFR-PR-P-01; V-D5.
@@ -464,7 +464,7 @@ Preconditions for all of Part H: Step 23 green; the main session has confirmed t
6. **Decision rule (BR-DMS-05):** if the median mobile score of E is below 0.9, or below that of D, or if E and E2 differ by more than 0.02 (noise; then repeat with 5 runs and say so), the result goes to the owner with both tables before anything else is built on it. Do not switch to D, do not edit `lighthouserc*.cjs`, do not "fix" the score. Desktop must stay at 0.9 or better; below that is also reported.
- Done when: the three result sets exist, the files are restored (checksum equal, `git status --short` equal to the recorded one), `dist` was rebuilt from the real code, and the tables and the decision-rule outcome are ready for Step 27.
### Step 27: Measurement report [ ]
### Step 27: Measurement report [x]
- Executor: Sonnet.
- Implements: BR-DMS-01 to 05; NFR-PR-P-01, P-03; CP5.