Files
Rosea/HANDOVER.md
T

143 lines
10 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Handover
Rewritten at the end of each session (CLAUDE.md §5.1).
## Last session — 2026-10-31 to 2026-11-01
**Done.**
- **Repository:** the git repo exists, and `origin` is Gitea (`mnovak/Rosea`).
`main` holds `CLAUDE.md` and `.gitignore` (`1e4c5a0`).
- **Phase 0 workspace:** merged to `main` with `--no-ff` (`d11d242`) and pushed. Local and
Gitea hashes match. Analysis: [`.agents/features/phase0-workspace.md`](.agents/features/phase0-workspace.md).
Review, with counts and the mutation results:
[`.agents/reviews/feature-phase0-workspace.md`](.agents/reviews/feature-phase0-workspace.md).
- **Gates:** all pass on this machine. Unit tests: 468 (cpu-guard 13, identity 5, schema 19,
content 80, storage 65, art-prep 56, engine 168, ui 62). E2E: 21. Offline: 1. `lint:copy`: 21 files, 0 problems.
`validate:library`: 13 of 13 fixtures rejected; 78 candidates pass.
- **Built, not deployed:** there is no host yet.
- **Roadmap and gameplay docs:** `docs/ROADMAP.md` and `docs/GAMEPLAY.md` are on
`docs/roadmap-gameplay`, as the author gave them, together with a read against the
code: [`.agents/reviews/docs-roadmap-gameplay.md`](.agents/reviews/docs-roadmap-gameplay.md).
The author answered Q1–Q7, and the answers are written into both docs and CLAUDE.md.
Merged to `main`.
- **The Letter slot:** merged to `main`. `docs/LETTER.md`
holds slots as comments only. Once the author writes in it, a link to the letter
appears in the garden, and the page opens at `#letter`, offline too. Review:
[`.agents/reviews/feature-letter-slot.md`](.agents/reviews/feature-letter-slot.md).
- **The art pipeline and the art board:** merged to `main`. [`docs/ART.md`](docs/ART.md) is the
pipeline. [`art/STYLE.md`](art/STYLE.md) is approved by the author (2026-11-01, S1–S5 kept as drafted). [`art/manifest.json`](art/manifest.json)
lists 53 pictures in phase order: 25 for Phase 1, then the fox, berries and bush (Phase 2), then paths and
lanterns (Phase 3). 63 stand-ins are in `art/placeholders/`. The planets wait for their own feature docs. `tools/art-prep` builds
prompts and the board (`pnpm art:board`) and moves accepted pictures into `art/final/`
(`pnpm art:accept`). The board is published, private:
https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then
republish `tools/art-prep/dist/board/` to that URL. Review:
[`.agents/reviews/feature-art-board.md`](.agents/reviews/feature-art-board.md).
- **The sun (Phase 1 begins):** merged to `main`. `packages/engine/src/sun/sun.ts` gives
sunrise, solar noon and sunset for a local day and a place, or polar day or night, and the
moment the game invites the player out. It matches the U.S. Naval Observatory's tables within
2 minutes in Prague, Reykjavík, Tromsø, Quito, Sydney and Anchorage, DST days included.
The app does not use it yet. Analysis: [`.agents/features/sun.md`](.agents/features/sun.md).
Review: [`.agents/reviews/feature-sun.md`](.agents/reviews/feature-sun.md).
- **Where the sunset is (Phase 1):** merged to `main`. The garden asks *Where do you want your
sunset?*: a search over 7,342 public-domain towns on the device, or *Not now*, which guesses
from the device's time zone. The answer is kept in IndexedDB (the new `@rosea/storage`, store
`profile`), and the garden says when tonight's sunset is. Natural Earth's time zones were wrong
for Prague, Cardiff and Anchorage, among others; `scripts/build-places.ts` cross-checks every one
against the tz database. To rebuild the list, download the two sources again (the script's
header says which) and run it. Analysis: [`.agents/features/sunset-place.md`](.agents/features/sunset-place.md).
Review: [`.agents/reviews/feature-sunset-place.md`](.agents/reviews/feature-sunset-place.md).
- **The rose (Phase 1):** merged to `main`. She stands in the garden with her face and says what
she needs. Water by holding the button until her leaves lift (Space or Enter too); shade her in
the wind, pull the weeds, gather fallen petals, each shown only when needed. She grows from days
on which care helped, drifts and waits when left, never loses her stage; her numbers are one tap
away. Every act is one append-only event in IndexedDB (`events`), replayed by `engine/rose`. The
care event gained `amount` for watering. `@rosea/identity` makes the player's keypair, kept in
`keys`. Analysis: [`.agents/features/rose.md`](.agents/features/rose.md). Review:
[`.agents/reviews/feature-rose-care.md`](.agents/reviews/feature-rose-care.md).
- **Keep her safe (G0.11):** merged to `main`. Beside *Her numbers*, *Keep her safe* says what the
browser has promised, asks it to keep her, saves her to a file (her care and keys; never the town,
never the private key) and brings her back from one, on any device, without losing anything she
has there. A rose is now named by her current key and her past keys. Analysis:
[`.agents/features/keep-her-safe.md`](.agents/features/keep-her-safe.md). Review:
[`.agents/reviews/feature-keep-her-safe.md`](.agents/reviews/feature-keep-her-safe.md).
- **A calm refresh (G0.10):** merged to `main`. When a new version of the garden is published, the
installed app fetches it and waits; one quiet line, *A new version of the garden is ready.*, offers
*Refresh*. Nothing reloads by itself. With this, fixes can reach a phone once the app is hosted.
Review: [`.agents/reviews/feature-calm-refresh.md`](.agents/reviews/feature-calm-refresh.md).
- **The in-game sunset (Phase 1):** merged to `main`. *Move the chair* under tonight's sunset line
opens a quiet scene: the sky drawn in code from day to dusk, the sun setting behind the garden,
half a minute with nothing to press; then the real sunset's time, *Watch it again*, *Back to the
rose*. Escape or a tap leaves early. Review:
[`.agents/reviews/feature-chair-sunset.md`](.agents/reviews/feature-chair-sunset.md).
- **The day's sentence (Phase 1, G1.5):** merged to `main`. When the rose needs nothing she keeps
a folded petal; *Open her petal* shows one sentence and its source. One a day; an unopened petal
is the same petal next week; on a nearby day she also remembers an earlier one; around the real
sunset she says *The sun is low now*, and after opening, *Go and look at the sky.* The library is
bundled at build time after `validate:library` passes. **The shipped app shows no petal yet:**
the library is empty until the author verifies sentences. 78 candidates wait in
`content/candidates/`, each copied from a Project Gutenberg edition and checked against it by
script; read [`content/candidates/README.md`](content/candidates/README.md) first, then
`pnpm library:verify <id…> --by Mark`. Analysis:
[`.agents/features/day-sentence.md`](.agents/features/day-sentence.md). Review:
[`.agents/reviews/feature-day-sentence.md`](.agents/reviews/feature-day-sentence.md).
- **Thorns (Phase 1):** merged to `main`, as the author chose (thorns teach gentleness). *Touch her*
over her picture: a fond answer, a blush on the first touch of a visit; three quick taps and she
says *Gently. I have thorns.* and rests four seconds. A tremor's taps count as one. Nothing is
recorded. Tuning in `TOUCH` (`packages/engine/src/touch/touch.ts`). Review:
[`.agents/reviews/feature-thorns.md`](.agents/reviews/feature-thorns.md).
- **Two tabs (2026-11-07):** merged to `main`. Measured first: an open tab did not see care or a
town from another tab, so a player could water her twice. Storage now announces each committed
write on a `BroadcastChannel`; the other tabs read again. No lock: nothing stored can drift.
On this date the root `node_modules` was found missing; `pnpm install --frozen-lockfile`
restored it. Review: [`.agents/reviews/fix-two-tabs.md`](.agents/reviews/fix-two-tabs.md).
- **Phase 1 is built in code.** What remains of it is the author's: verified sentences (the petal
appears with them), hosting (G0.13), and the gate itself — two weeks of daily play on a phone.
**Phase 0 is not finished.** The roadmap's Phase 0 is more than the workspace. Its
gate needs 60 verified sentences (G0.18) and one illustration through the art
pipeline (G0.24). The pipeline and the board are built; the first real picture is not made yet. Also open: a GitHub remote (G0.13). The Letter slot is built (G0.25).
The notification decision is made: in-app only on the web (G0.26).
**Waiting on the author.**
1. **The Letter:** the words in `docs/LETTER.md`, the verified support lines for the
door to real help (G0.27), and Q9 (may the letter name the book).
2. **Sentences:** 78 candidates are ready in `content/candidates/` (10 flagged in its README).
Verifying 60 closes the Phase 0 sentence gate (G0.18) and puts the petal in the app. Also
the petal's tuning (`PETAL` in `packages/engine/src/petal/petal.ts`: remembering within 3 days,
the good moment an hour either side of sunset) and its words in `packages/ui/src/copy/en.ts`.
3. **Art:** the style is approved (S1–S5), and so is the fox (F1–F4, with a deep red-orange coat).
Make `rose-sheet` on the board and accept it; `fox-sheet` comes first for Phase 2. That is the first step of the Phase 0 art gate.
After an accept, Claude reads the row (`ArtifactData get art/<id>`), downloads the picture
(`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/<set>`,
and writes `final` back into the row.
4. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
5. **Upgrading Node** to ≥ 22.13 on this machine (G0.20).
6. **The rose's tuning** (`.agents/features/rose.md` R2, R4, R5, R6, all in `ROSE` in
`packages/engine/src/rose/rose.ts`): how fast she gets thirsty, how often weeds, petals and wind
come, and how many days of care each stage takes (full bloom after 25). Play it for a week,
then say what feels wrong.
**How this machine works** (not in the code):
- **The CPU guard:** the full runs wait for this machine to drop to 80 % CPU (§5.7). Other projects'
test runs share it, so a wait of a minute or two is normal; three minutes, and the run is refused.
- **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in
this repository only.
- **Pushing:** it uses a repo-local `credential.helper`, copied from Ludus. Do not
probe other helpers: `lessons/process.md`.
- **Hooks:** `pnpm install` installs them. They block files over 5 MB and AI
attribution trailers.
**Read first next time:** [`.agents/GAP_ANALYSIS.md`](.agents/GAP_ANALYSIS.md), then
[`.agents/lessons/`](.agents/lessons/README.md).