Files
Rosea/.agents/reviews/feature-rose-care.md
T

4.7 KiB

Review — feature/rose-care

Adversarial self-review (CLAUDE.md §5.3). Analysis: features/rose.md. Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.

Gates — counts, not exit codes

Counts are on the merge; HANDOVER repeats them.

Gate Result
pnpm lint / pnpm typecheck exit 0 / exit 0, @rosea/identity included
pnpm test see HANDOVER; new: engine rose 21, identity 5, storage +27, ui rose 7, schema +1
pnpm test:e2e 12 passed (+2): water the rose by holding, reload, one day of care; axe on the rose and her numbers
pnpm test:offline 1 passed: the rose is watered with the server gone, the tab closed, and the care is still there

The app changed (CLAUDE.md §5.4): the garden has the rose. The bundle was rebuilt by the e2e and offline runs; it is not deployed (no host, G0.13). Seen at phone width (390 px) in Chromium, in three states: new, pouring, with her numbers open.

Bug drills — each put back once

Put back Result
Growth counts acts, not days CAUGHT: 10
Drift lowers the stage CAUGHT: 3 (the gap property among them)
Too much water still helps MISSED at first (finding 1), then CAUGHT
The log replayed in stored order, not time order MISSED at first (finding 1), then CAUGHT
Storage lets amount ride on a weed CAUGHT: 2 (one is the agreement with the schema validator)
Letting go does not stop the pour CAUGHT: 2
No greeting after a gap CAUGHT

Findings

# Area Finding Resolution
1 Test honesty Two drills passed. Every too-full test started from a rose that did not need water, so it failed for the other reason; and the shuffled-replay property rarely built a log where order changes anything. Fixed: a full can from 0.39 overshoots and must not help; two waterings stored in reverse must still be two days. Lesson: testing.md.
2 Soul After a month away she is dry (0), and a half can leaves her at 0.3, still below "enough": the player poured, she still waits. Kept, with care: the can says Her leaves lift only when they do, and her line asks for water slowly. A fuller pour brings her back. If players read it as failure, R2's numbers change, not the rule.
3 Soul Warmth counts recent days, a streak by another name. Shown only on request, resting at none, never 0 of 7, and it changes nothing. Watch it in the Phase 1 gate.
4 Soul Drift could read as blame. She is turned a little away and waiting; her first words are "There you are."; nothing says forgot or missed (lint:copy passes, copy read by hand).
5 Correctness amount was added to a contract (§6.2). R1. Required for water, refused elsewhere; Ajv, the generated type and storage's own check agree on 20 variants. The root if/then/else keeps CareEvent a strict interface (an allOf had added [k: string]: unknown).
6 Correctness Two tabs creating two identities. keepIdentity keeps the first in one transaction and returns it to both; tested with two connections racing. Two tabs appending care at once is fine: the log is append-only and the replay sorts by time.
7 Correctness A DST day or a zone change. The day of an act is recorded when it happens and never recomputed. Wind uses the local clock in the rose's zone. A player who changes their sunset town to another zone shifts later days only.
8 Privacy A keypair now exists. Made on the device; the private key is non-extractable (tested); nothing signs or sends anything. The public key appears only in the local log.
9 Privacy The care log is a diary of when someone was in the app. It never leaves the device; no feature reads it but the replay. Phase 3 must decide what a friend may see, against CLAUDE.md §6.3.
10 Scope IndexedDB eviction can take the rose (CLAUDE.md §8, the cruellest bug). Not solved here: G0.11 (persist(), export-my-rose) is now the most urgent open gap.
11 Design The water meter is the browser's default green; "The garden is being prepared." is now a little stale. Cosmetic, left for the garden's real art.
12 Accessibility Holding is hard for some hands. Space and Enter pour too (tested); the leaves lifting is announced (role=status); a short pour can be topped up. axe passes. Not tested with a real screen reader.

What was not verified

  • A real phone, touch, Safari, Firefox, a screen reader.
  • The tuning (R2, R4, R5, R6): no person has played it for a week. These are the author's to set.
  • Wind and petals in the browser: their days depend on the random key, so e2e cannot predict them; unit tests cover them with fixed keys.