216 lines
17 KiB
Markdown
216 lines
17 KiB
Markdown
# Handover
|
||
|
||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||
|
||
## Last session — 2026-10-31 to 2026-11-17
|
||
|
||
**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 (2026-11-17, the planet garden merged with the Tauri shells):** all pass on this machine.
|
||
Unit tests: 561 (cpu-guard 13, identity 5, schema 19, content 88, storage 70, art-prep 63, tauri 40,
|
||
engine 179, ui 84). E2E: 26. Offline: 1. Tablet (`pnpm test:android`): 7. `lint:copy`: 26 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 86 pictures in phase order, everything Phases 1–5 need (34 for Phase 1; the planets are drafts
|
||
until their feature docs). 101 stand-ins are in `art/placeholders/`. **Board v2 (2026-11-07):** after
|
||
Mark disliked the first `rose-sheet` (watercolour, a smiley on a ball), STYLE.md §1 and every
|
||
prompt were rewritten: the look first, the face on her petals, the grid in words, the book's
|
||
motifs checked in review instead of named in prompts. Review:
|
||
[`.agents/reviews/art-board-v2.md`](.agents/reviews/art-board-v2.md). `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).
|
||
- **The sunrise (2026-11-17):** merged to `main`. From sunset until it comes, the garden's line names
|
||
the real sunrise; the in-game sunset still names the sunset. Seen on a real Android tablet.
|
||
Review: [`.agents/reviews/feature-sunrise.md`](.agents/reviews/feature-sunrise.md).
|
||
- **The town list's clocks for Chile (2026-11-17):** merged to `main`. Santiago and Valparaíso had
|
||
been on a southern zone's clock (no daylight saving) since the first build, and Aysén and
|
||
Magallanes on Santiago's. Found because the upgraded Node knows America/Coyhaique. Review:
|
||
[`.agents/reviews/fix-coyhaique.md`](.agents/reviews/fix-coyhaique.md).
|
||
- **Tested on a real Android tablet (2026-11-17):** the built app over USB (`adb reverse`, the server
|
||
still on 127.0.0.1), driven through Chrome's DevTools socket: first open, the town, watering by a
|
||
real held touch, the in-game sunset, and **offline** reloads with the server unreachable all pass.
|
||
When device testing ends, the app used is stopped at once (the author's rule).
|
||
- **Her planet and the gardener (2026-11-17, G1.9):** merged to `main`, as the author decided after
|
||
seeing a page of buttons. She lives on a round tiny planet; at the first open *Who tends her?* lets
|
||
the player dress a boy or a girl (fixed lists, kept in `profile`, never in the rose file; *Change
|
||
gardener* reopens it). A tap on her opens the ring of what she needs today plus *Touch her*; the
|
||
gardener walks round the planet to the work. By hand: press the can and move sideways to tilt and
|
||
pour (further tilts pour faster), swipe each weed up and out, sweep across the fallen petals, drag
|
||
the windbreak to her windward side, stroke her petals slowly. Every gesture is also a button.
|
||
The pictures are code stand-ins until the board's are painted. **Accepted risk:** a child on a
|
||
small round planet with a rose is the book's best-known image; the guards are in STYLE.md (S2, S6,
|
||
§3b, review points 10–11), and a legal check comes before any public release (G6.1). Tested by
|
||
real touch on the Android tablet (`pnpm test:android`, 7 of 7). Analysis:
|
||
[`.agents/features/planet-garden.md`](.agents/features/planet-garden.md). Review:
|
||
[`.agents/reviews/feature-planet-garden.md`](.agents/reviews/feature-planet-garden.md).
|
||
- **Four versions, one garden (2026-11-17):** merged to `main`, as the author decided: the PWA plus
|
||
an Android, iOS and desktop app from one codebase through a Tauri 2 shell, `apps/rosea-tauri`
|
||
(CLAUDE.md §2 *Four versions*, §3, §4, §8; ROADMAP *The platform track*). The **Windows app**
|
||
(`pnpm tauri:build`) and an **Android debug APK** (`pnpm tauri:android`) were built here; both
|
||
passed the garden check (watered, closed, reopened, still watered; nothing outside the origin).
|
||
The APK asks for no permission, not even `INTERNET`, and allows no backup (checked on the APK and
|
||
on the tablet). **iOS needs a Mac** (G-T1). *Keep her safe* in the apps was a release blocker
|
||
(G-T4); it is closed, see the next entry. The debug APK and installer are build output on this
|
||
machine, not committed:
|
||
`apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/` and
|
||
`apps/rosea-tauri/src-tauri/target/release/bundle/nsis/`. Analysis:
|
||
[`.agents/features/tauri-platforms.md`](.agents/features/tauri-platforms.md). Review:
|
||
[`.agents/reviews/feature-tauri-platforms.md`](.agents/reviews/feature-tauri-platforms.md).
|
||
- **Keep her safe in the apps (2026-11-17):** merged to `main`; closes the release blocker G-T4.
|
||
In the apps she *lives in this app, on this device, until the app is removed*; no browser is
|
||
asked. On Android *Save her to a file* opens Android's own save screen (a small Kotlin bridge in
|
||
`apps/rosea-tauri/android/java/MainActivity.kt`; no plugin, no permission) and the garden says
|
||
*She is in that file now.*; bringing her back from that file works. The page now stays between
|
||
Android's system bars. Seen on the tablet and on Windows. Review:
|
||
[`.agents/reviews/feature-keep-her-safe-apps.md`](.agents/reviews/feature-keep-her-safe-apps.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` again with the board v2 prompt** (version 4) and accept it when she looks
|
||
right; `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. **The gardener in paint:** *layered parts* (Mark, 2026-11-17; STYLE.md §3b). Make
|
||
`gardener-sheet`, then the guide `gardener-poses-sheet`, and accept both; then the seven first-look
|
||
layers (first in the board's *Gardener layers* group), each painted over the guide. The other 48
|
||
can follow over time. Open for Mark: may the choice keep fair curls away from sage clothes (the
|
||
book's look)? Review: [`.agents/reviews/art-gardener-layers.md`](.agents/reviews/art-gardener-layers.md).
|
||
Also: a gardener changed in one tab shows in another only after a reload.
|
||
5. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
|
||
6. **Node is upgraded** (22.23.4); unpinning the dependencies pinned for 22.11 remains (G0.20).
|
||
7. **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.
|
||
7. **The apps:** a Mac with Xcode and an Apple developer account for iOS (G-T1); whether the
|
||
desktop window (480 × 800, portrait) should be wider; the release signing keys, kept outside
|
||
the repository (G-T3).
|
||
|
||
**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.
|
||
On 2026-11-17 two qemu virtual machines held it at 100 % for long stretches; waiting worked.
|
||
- **Things vanish:** the root `node_modules` (twice, 2026-11-07 and 11-17) and Playwright's browser in
|
||
`F:\ms-playwright` (11-17) disappeared; the code and history were intact. Restore with
|
||
`pnpm install --frozen-lockfile` and `pnpm exec playwright install --only-shell chromium` (a
|
||
download: ask first). The cause is unknown.
|
||
- **The Android tablet:** WAVE 10C on USB debugging; always `adb -s WAVE10CEEA036785` (an emulator
|
||
attaches too, and other projects use the same tablet). Stop the app used when testing ends.
|
||
`pnpm test:android` with `ROSEA_ADB=F:\Tools\Android\Sdk\platform-tools\adb.exe` and
|
||
`ROSEA_ANDROID_SERIAL=WAVE10CEEA036785`, while `vite preview` serves the build on 127.0.0.1:4173;
|
||
it stops Chrome and removes its mappings itself, even when it fails.
|
||
Its USB link drops now and then (`device offline`); `e2e/apps/check-garden.ts` waits and retries.
|
||
- **Building the apps:** Rust 1.99 (MSVC) with the four Android targets, JDK 17, the Android SDK at
|
||
`F:\Tools\Android\Sdk` (NDK 27.1), VS 2022 Build Tools, WebView2 and NSIS are all installed; a
|
||
cold desktop release build takes about 6 minutes, an Android debug build about 2 after that.
|
||
|
||
- **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).
|