Files
Rosea/.agents/reviews/feature-sunrise.md
T

39 lines
2.5 KiB
Markdown

# Review — `feature/sunrise`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/sunrise.md`](../features/sunrise.md).
Reviewed 2026-11-17 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: engine +6 (one property, 300 runs), ui +2
(plus one rewritten), e2e +1 (05:00 in Brno).
**The app changed** (CLAUDE.md §5.4): the line under the garden names the sunrise from sunset until
it comes. Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
## Bug drills
| Put back | Result |
|:--|:--|
| The sunrise is never named | CAUGHT |
| A sunrise already past is named | CAUGHT: 3 |
| The sunrise is looked up on today instead of the next invitation's day | CAUGHT: 3 |
| Tomorrow's sunrise is called this morning's | CAUGHT |
| The in-game sunset names the sunrise | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Correctness | Reykjavík at midsummer: just after midnight the evening's sunset is still ahead; a naive "before sunrise, name the sunrise" rule would name a sunrise there. | The sunrise is taken from the next invitation's own day (R2); tested, and drilled. |
| 2 | Correctness | *Tomorrow* for a sunrise. | Compares the sunrise's local day with today's, the one module computing days; drilled. |
| 3 | Design | The in-game sunset reused the line; late in the evening it would have named the sunrise. | `of="sunset"` keeps its words on the sunset (R4); tested at 22:00, drilled. |
| 4 | Soul | Someone awake at night sees a sunrise time. Could that pull them to the screen? | It is the same line, only naming the next light; no invitation, notice or count. Looked for guilt: nothing ever says a sunrise was missed. |
| 5 | Polar | Polar day and night have no sunrise. | Unchanged lines (R5); tested. Near the polar edges the sun module's clamping (sun.md D5) applies to the sunrise too: accuracy there is worse, as before. |
| 6 | Process | On 2026-11-17 `node_modules` was missing again (the second time in ten days, cause unknown) and the machine sat at 100 % CPU (other sessions and a virtual machine), so the guard refused the full runs for a while. | Reinstalled from the lockfile; the full runs waited for the guard rather than overriding it (§5.7). |
| — | Privacy, reachability, offline | Computed on the device from the chosen town; nothing new is stored or sent. | — |
## What was not verified
- A real phone at dawn; Safari's time formatting.