2.7 KiB
Review — feature/chair-sunset
Adversarial self-review (CLAUDE.md §5.3). Analysis: features/chair-sunset.md.
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
Gates
Counts are on the merge; HANDOVER repeats them. New: ui +7, e2e +1 (watch, again, Escape, focus, axe during and after), and the offline suite now watches an in-game sunset with the server gone, which CLAUDE.md §3 has always promised.
The app changed (CLAUDE.md §5.4): Move the chair under tonight's sunset line. Rebuilt by the e2e and offline runs; not deployed (G0.13). Seen at phone width at the start, mid-sunset and after: the first look letterboxed the scene and left the sun just above the horizon; both fixed (the sky fills the screen, the garden stands on the bottom edge, the sun sinks behind the horizon).
Bug drills
| Put back | Result |
|---|---|
| Buttons shown during the sunset | CAUGHT: 3 |
| Escape does nothing | CAUGHT |
| The half minute never ends | CAUGHT: 4 |
| Focus not given back to Move the chair | CAUGHT |
Findings
| # | Area | Finding | Resolution |
|---|---|---|---|
| 1 | Accessibility | A full-screen scene with no buttons can trap a keyboard or screen-reader user. | Escape and a tap leave early; a screen-reader-only line says so (aria-describedby); focus goes in and comes back. Tested; axe passes during and after. Not tried with a real screen reader. |
| 2 | Soul | A screen sunset could stand in for the real one. | Its last words are the real sunset's time; it logs and counts nothing. |
| 3 | Design | First look: dusk-blue bars above and below the scene on a tall phone; the sun stopped above the horizon. | Fixed after the screenshots. |
| 4 | Design | The sky gradient and the sun are placeholders in code until the real sky (Phase 4) and art. | Accepted: the layer split (STYLE.md S5) is what the real sky needs. |
| 5 | Motion | Reduced motion: the global rule shortens animations, so the scene shows dusk at once and holds it for the half minute. | Accepted (C5); not seen with the setting on. |
| 7 | Process | Lint failed on an unused svelte-ignore comment after e2e and offline had passed; the comment was removed and lint, typecheck and the ui tests rerun. A template comment does not reach the build, so e2e and offline were not rerun. |
Fixed. |
| 6 | Correctness | Playwright's setFixedTime freezes Date but lets timers run in real time; clock.install drives them. |
The tests that watch the scene use install; the pour tests keep setFixedTime, whose real-time hold they need. |
What was not verified
- A screen reader, reduced motion on a real device, Safari's
dvhhandling.