Files
Rosea/.agents/features/thorns.md
T

4.2 KiB

Thorns — touching her gently

Status: built on feature/thorns. ROADMAP Phase 1: one rose with her face: … moods, thorns …. CLAUDE.md §1: alive and a little vain, with thorns that are part of her. STYLE.md: the thorns are part of her and never look threatening. Decided by the author 2026-11-02: thorns teach gentleness. Review: feature-thorns.md.

1. Why and what, in the player's terms

The player can touch her: tap her picture (or Tab to it and press Enter).

  • A touch — she answers fondly: Oh. Hello., then That tickles. The first touch of a visit makes her blush (seen in full bloom, where her face shows moods).
  • A rush of touches — three quick taps within two seconds — she says Gently. I have thorns. and rests for a few seconds; taps meanwhile do nothing. Then she is as before.
  • Nothing is recorded. No event, no number, no penalty, nothing she remembers. A touch is not care: it does not water her, does not count as a day of care, does not move anything she has earned.

Why: the fox (Phase 2) is tamed by touch, and taming needs patience. The rose rehearses it first, kindly, in the one place where getting it wrong costs nothing.

2. Technical architecture

flowchart LR
  ui["packages/ui<br/>Rose.svelte: a Touch her button over her picture"] -->|"now, state"| engine["packages/engine<br/>touch/touch.ts: touch()"]
  engine -->|"fond | thorns | resting, next state"| ui
# Decision Why
T1 The rule lives in engine/touch as a pure function of the visit's recent touches and the clock. Components decide nothing (CLAUDE.md §7); the fox reuses it.
T2 A rush is TOUCH.rushCount (3) touches within TOUCH.rushMs (2 s). Touches closer than TOUCH.sameMs (250 ms) to the one before count as one. A tremor, a bounce or a double tap must never be told gently. Three separate, deliberate taps in two seconds is fussing.
T3 After the thorns line she rests TOUCH.restMs (4 s): touches change nothing, then all is as before. A boundary, kept briefly and then let go; no grudge.
T4 Nothing is stored, so the blush comes on the first touch of a visit (the author's option said once a day; a day would need a record, and the option also said nothing is recorded — the second wins). Progress never disappears has nothing to act on; no number can grow from touching.
T5 Her picture stays an image with its description; the touch is a separate button laid over it, labelled Touch her. The picture keeps its meaning for a screen reader; the touch is keyboard-operable.
T6 Her touch words take the speech bubble for the rest time, then her usual line returns. One line at a time.

3. Risk analysis

Risk Answer
Being scolded: Gently read as a reproach, for someone already fragile. It needs three deliberate taps (T2), is said once, never repeated while she rests, never mentioned again, never recorded. It is her voice about herself (I have thorns), not about the player.
A player with a tremor or a motor difficulty. T2: taps within 250 ms are one touch. Keyboard repeat (holding Enter) is ignored too.
Dependence: touching as a fidget loop. It gives nothing: no blush after the first, no number, no reward for more.
Privacy, reachability, offline Nothing stored or sent; works offline as everything else.

4. Gap analysis

Closes the last Phase 1 roadmap item without a design (thorns). Tuning in TOUCH is the author's.

5. Verification matrix

Case Kind Where
One touch: fond; second: fond; first of a visit: blush unit engine/test/touch.test.ts, ui/test/touch.test.ts
Three taps within 2 s: thorns; then resting for 4 s; then fond again unit same
Taps within 250 ms count as one; three such bursts spaced out are not a rush unit engine
Property: taps a second or more apart are never a rush (three span at least 2 s) property engine
Property: the state never grows past rushCount touches property engine
Keyboard: the button is reachable; held Enter (repeat) is one touch unit ui
A touch appends no event unit ui
Built app: touch, rush, axe e2e e2e/shell.spec.ts