Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b64c43d4a | |||
| 132ba05fe9 | |||
| 0c4f5bb556 | |||
| e0a3b66dc8 | |||
| 103283daaa | |||
| 96ac78d079 | |||
| c2320a4517 | |||
| 22f55dc9fa | |||
| 96c0a2b00e | |||
| d968998f23 | |||
| 5f2a5f3cfc | |||
| e415d1ed29 | |||
| 8c19459bb6 | |||
| b67fa3603d | |||
| 102ac44675 | |||
| 0861125472 | |||
| 87375c72d4 | |||
| 1070017d2c | |||
| ae1169ed6a | |||
| 03d41aa893 | |||
| 838830e0ef | |||
| 781a2407b9 | |||
| 1e647985ea | |||
| 03dc69702a | |||
| 5934523e45 | |||
| cdbaf56195 | |||
| 636c0bcbc0 | |||
| ad41c58730 | |||
| 9c7f67a1f0 | |||
| 12fc4bd249 | |||
| 8e286b2bf6 | |||
| 7a6cf4c6d1 | |||
| a99dfe535d |
@@ -8,6 +8,11 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
|||||||
| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) |
|
| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) |
|
||||||
| Roadmap and gameplay docs, read against the code | 0 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) |
|
| Roadmap and gameplay docs, read against the code | 0 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) |
|
||||||
| The Letter slot: page at `#letter`, empty `docs/LETTER.md` | 0 | Merged to `main`; built, not deployed. Invisible until the author writes | [letter-slot.md](features/letter-slot.md) | [feature-letter-slot.md](reviews/feature-letter-slot.md) |
|
| The Letter slot: page at `#letter`, empty `docs/LETTER.md` | 0 | Merged to `main`; built, not deployed. Invisible until the author writes | [letter-slot.md](features/letter-slot.md) | [feature-letter-slot.md](reviews/feature-letter-slot.md) |
|
||||||
|
| The sunrise: the line names the real sunrise from sunset until it comes | 1 | Merged to `main`; built, not deployed | [sunrise.md](features/sunrise.md) | [feature-sunrise.md](reviews/feature-sunrise.md) |
|
||||||
|
| Two tabs, one garden: what one tab writes, the others see | 1 | Merged to `main`; built, not deployed | [two-tabs.md](features/two-tabs.md) | [fix-two-tabs.md](reviews/fix-two-tabs.md) |
|
||||||
|
| Thorns: touch her; a rush of taps, and she says she has thorns | 1 | Merged to `main`; built, not deployed | [thorns.md](features/thorns.md) | [feature-thorns.md](reviews/feature-thorns.md) |
|
||||||
|
| The day's sentence: her folded petal, one a day, never lost, best at sunset; candidates and `library:verify` | 1 | Merged to `main`; built, not deployed. Invisible until the author verifies sentences | [day-sentence.md](features/day-sentence.md) | [feature-day-sentence.md](reviews/feature-day-sentence.md) |
|
||||||
|
| The in-game sunset: move the chair, half a minute of silence, then the real sunset's time | 1 | Merged to `main`; built, not deployed | [chair-sunset.md](features/chair-sunset.md) | [feature-chair-sunset.md](reviews/feature-chair-sunset.md) |
|
||||||
| A calm refresh: a waiting new version is offered in one line, never swapped in by itself | 0 | Merged to `main`; built, not deployed | [calm-refresh.md](features/calm-refresh.md) | [feature-calm-refresh.md](reviews/feature-calm-refresh.md) |
|
| A calm refresh: a waiting new version is offered in one line, never swapped in by itself | 0 | Merged to `main`; built, not deployed | [calm-refresh.md](features/calm-refresh.md) | [feature-calm-refresh.md](reviews/feature-calm-refresh.md) |
|
||||||
| The CPU guard: full runs wait for, then refuse, a busy machine | 0 | Merged to `main` | — | [fix-cpu-guard.md](reviews/fix-cpu-guard.md) |
|
| The CPU guard: full runs wait for, then refuse, a busy machine | 0 | Merged to `main` | — | [fix-cpu-guard.md](reviews/fix-cpu-guard.md) |
|
||||||
| Keep her safe: the browser's promise, save her to a file, bring her back | 0–1 | Merged to `main`; built, not deployed | [keep-her-safe.md](features/keep-her-safe.md) | [feature-keep-her-safe.md](reviews/feature-keep-her-safe.md) |
|
| Keep her safe: the browser's promise, save her to a file, bring her back | 0–1 | Merged to `main`; built, not deployed | [keep-her-safe.md](features/keep-her-safe.md) | [feature-keep-her-safe.md](reviews/feature-keep-her-safe.md) |
|
||||||
|
|||||||
@@ -28,19 +28,19 @@ board exist, and the first real picture is the author's to make.
|
|||||||
| ~~G0.9~~ | ~~No proof the app opens offline~~ | Closed for the shell 2026-11-01. `offline.spec.ts` closes the server, then reload, cold start and a deep link all render. Mutations: `clientsClaim: false` and no `navigateFallback` both fail it. |
|
| ~~G0.9~~ | ~~No proof the app opens offline~~ | Closed for the shell 2026-11-01. `offline.spec.ts` closes the server, then reload, cold start and a deep link all render. Mutations: `clientsClaim: false` and no `navigateFallback` both fail it. |
|
||||||
| ~~G0.10~~ | ~~No calm *refresh* control for a waiting service worker (CLAUDE.md §8, stale SW)~~ | Closed 2026-11-02 on `feature/calm-refresh`: the app registers the worker and shows *A new version of the garden is ready.* with *Refresh*. e2e publishes a real second version: offered, not swapped, then taken over on Refresh; 3 of 3 put-back bugs caught. |
|
| ~~G0.10~~ | ~~No calm *refresh* control for a waiting service worker (CLAUDE.md §8, stale SW)~~ | Closed 2026-11-02 on `feature/calm-refresh`: the app registers the worker and shows *A new version of the garden is ready.* with *Refresh*. e2e publishes a real second version: offered, not swapped, then taken over on Refresh; 3 of 3 put-back bugs caught. |
|
||||||
| ~~G0.11~~ | ~~IndexedDB eviction: no `navigator.storage.persist()`, no export-my-rose (§8)~~ | Closed 2026-11-02 on `feature/keep-her-safe`: *Keep her safe* asks the browser (and an installed app asks by itself), saves her to a file without the town or the private key, and brings her back additively on any device. e2e: saved on one browser profile, restored on a fresh one, survives a reload. Not seen in Firefox or Safari. |
|
| ~~G0.11~~ | ~~IndexedDB eviction: no `navigator.storage.persist()`, no export-my-rose (§8)~~ | Closed 2026-11-02 on `feature/keep-her-safe`: *Keep her safe* asks the browser (and an installed app asks by itself), saves her to a file without the town or the private key, and brings her back additively on any device. e2e: saved on one browser profile, restored on a fresh one, survives a reload. Not seen in Firefox or Safari. |
|
||||||
| G0.12 | The app cannot validate content in the browser | Open. Ajv compiles with `new Function`, which the CSP forbids. Needs standalone pre-compiled validators before the app reads the library. |
|
| G0.12 | The app cannot validate content in the browser | Narrowed 2026-11-02 (day-sentence.md P5): the library is bundled at build time, after `validate:library` passes, so the app never validates it. Reopens only if content is ever fetched at runtime; then it needs standalone pre-compiled validators (Ajv compiles with `new Function`, which the CSP forbids). |
|
||||||
| G0.13 | No GitHub remote, no Pages deploy workflow, no mirror check (§5.2) | Open. Only the Gitea remote exists. |
|
| G0.13 | No GitHub remote, no Pages deploy workflow, no mirror check (§5.2) | Open. Only the Gitea remote exists. |
|
||||||
| G0.14 | Author-owned docs missing: `docs/PRINCIPLES.md`, `docs/ART.md`, `art/STYLE.md`, `docs/LETTER.md` | Open, narrowed 2026-11-01: `docs/ROADMAP.md` and `docs/GAMEPLAY.md` were added on `docs/roadmap-gameplay`, as the author gave them. Agents scaffold LETTER.md; they never write its voice. |
|
| G0.14 | Author-owned docs missing: `docs/PRINCIPLES.md`, `docs/ART.md`, `art/STYLE.md`, `docs/LETTER.md` | Open, narrowed 2026-11-01: `docs/ROADMAP.md` and `docs/GAMEPLAY.md` were added on `docs/roadmap-gameplay`, as the author gave them. Agents scaffold LETTER.md; they never write its voice. |
|
||||||
| G0.15 | Deferred packages: `sync`, `services/lucerna` | Open by design (D1). Each arrives with its first feature. `tools/art-prep` arrived with the art board; `storage` with the sunset place and the rose (`profile`, `events`, `keys`); `identity` with the rose (a keypair, nothing signed yet). |
|
| G0.15 | Deferred packages: `sync`, `services/lucerna` | Open by design (D1). Each arrives with its first feature. `tools/art-prep` arrived with the art board; `storage` with the sunset place and the rose (`profile`, `events`, `keys`); `identity` with the rose (a keypair, nothing signed yet). |
|
||||||
| G0.16 | The outcome-phrase heuristic has no reviewed override | Open. A real sentence that trips it (a false positive) cannot enter the library. Design: a `reviewedBy` field on the entry, set only by a person. |
|
| G0.16 | The outcome-phrase heuristic has no reviewed override | Open. A real sentence that trips it (a false positive) cannot enter the library. Design: a `reviewedBy` field on the entry, set only by a person. |
|
||||||
| G0.17 | Manual: install on a phone, open in airplane mode | Open. Needs a hosted build (G0.13). |
|
| G0.17 | Manual: install on a phone, open in airplane mode | Open. Needs a hosted build (G0.13). |
|
||||||
| G0.18 | The library is empty | Open. **Phase 0 gate**: 60 sentences, each sourced and verified public domain (ROADMAP Phase 0). Release needs ≥ 365. `verifiedBy` is a person, so an agent may propose candidates but never mark one verified (D4). |
|
| G0.18 | The library is empty | Open. **Phase 0 gate**: 60 sentences, each sourced and verified public domain (ROADMAP Phase 0). Release needs ≥ 365. `verifiedBy` is a person, so an agent may propose candidates but never mark one verified (D4). Since 2026-11-02 candidates wait in `content/candidates/`, each with where to read it; the author verifies with `pnpm library:verify <id…> --by <name>` (day-sentence.md P8). |
|
||||||
| G0.19 | Event kinds other than `care` | Open. GAMEPLAY.md now exists; each kind arrives with the feature doc that uses it, starting in Phase 1. |
|
| G0.19 | Event kinds other than `care` | Open. GAMEPLAY.md now exists; each kind arrives with the feature doc that uses it, starting in Phase 1. |
|
||||||
| G0.20 | Node 22.11 on the dev machine is below what some pinned dependencies declare | Open. All gates pass on 22.11 today. Upgrade to ≥ 22.13 and unpin (D11). |
|
| G0.20 | Node 22.11 on the dev machine is below what some pinned dependencies declare | Narrowed 2026-11-17: the machine runs **Node 22.23.4** (upgraded by the author). Its newer time zone data exposed a stale town list, fixed on `fix/coyhaique` (Santiago had been on a southern zone's clock since the first build). **Still open:** unpin the dependencies pinned for 22.11 (D11), in their own commit. |
|
||||||
| G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. |
|
| G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. |
|
||||||
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. |
|
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. |
|
||||||
| G0.23 | Source maps are built and would be published | Open. `sourcemap: true`; maps are not precached. Decide with G0.13 whether the repository is public. If not, use `'hidden'`. |
|
| G0.23 | Source maps are built and would be published | Open. `sourcemap: true`; maps are not precached. Decide with G0.13 whether the repository is public. If not, use `'hidden'`. |
|
||||||
| G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | **Pipeline built 2026-11-01** (`feature/art-board`): docs/ART.md, the Phase 1 manifest (25 pictures), 29 generated stand-ins, `tools/art-prep` (50 tests; 5 of 5 put-back bugs caught), the art board published. STYLE.md approved by the author 2026-11-01 (S1–S5 kept as drafted; `docs/style-approved`). The board grew to 53 pictures with Phases 2–3 (`art/phase2-3-pictures`); the fox's look F1–F4 approved with a deep red-orange coat (`art/fox-coat`). **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. |
|
| G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | **Pipeline built 2026-11-01** (`feature/art-board`): docs/ART.md, the Phase 1 manifest (25 pictures), 29 generated stand-ins, `tools/art-prep` (50 tests; 5 of 5 put-back bugs caught), the art board published. STYLE.md approved by the author 2026-11-01 (S1–S5 kept as drafted; `docs/style-approved`). The board grew to 53 pictures with Phases 2–3 (`art/phase2-3-pictures`); the fox's look F1–F4 approved with a deep red-orange coat (`art/fox-coat`). 2026-11-07, `art/board-v2`: the first `rose-sheet` came out as watercolour with a smiley on a ball; STYLE.md §1 and every prompt rewritten (look first, face on the petals, no pixel numbers, the book's motifs checked in review, not named), and the board grew to 86 pictures for Phases 1–5 (board version 4). **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. |
|
||||||
| ~~G0.25~~ | ~~No slot for *A Letter from the Gardener*~~ | Closed 2026-11-01, merged to `main`. `docs/LETTER.md` holds slots as comments only; the page opens at `#letter` once it has words. 16 ui tests, and e2e on both the empty and a temporary written letter. Mutations caught: the link while empty, any link scheme, focus not moving, *heal* in the letter. |
|
| ~~G0.25~~ | ~~No slot for *A Letter from the Gardener*~~ | Closed 2026-11-01, merged to `main`. `docs/LETTER.md` holds slots as comments only; the page opens at `#letter` once it has words. 16 ui tests, and e2e on both the empty and a temporary written letter. Mutations caught: the link while empty, any link scheme, focus not moving, *heal* in the letter. |
|
||||||
| ~~G0.28~~ | ~~CLAUDE.md §5.7's CPU limit was only read, and broken three times on 2026-11-02~~ | Closed 2026-11-02 on `fix/cpu-guard`: `pnpm guard:cpu` runs before every full run, waits up to 3 min, then refuses. 13 tests; seen waiting 51 s on a busy machine, refusing, and stopping `pnpm test` before any test ran. |
|
| ~~G0.28~~ | ~~CLAUDE.md §5.7's CPU limit was only read, and broken three times on 2026-11-02~~ | Closed 2026-11-02 on `fix/cpu-guard`: `pnpm guard:cpu` runs before every full run, waits up to 3 min, then refuses. 13 tests; seen waiting 51 s on a busy machine, refusing, and stopping `pnpm test` before any test ran. |
|
||||||
| G0.27 | The quiet door to real help has no numbers (§5.6 rule 5) | Open. The slot is in `docs/LETTER.md`. Support lines are real-world facts the author must verify, per country, so the door exists only once the letter does. |
|
| G0.27 | The quiet door to real help has no numbers (§5.6 rule 5) | Open. The slot is in `docs/LETTER.md`. Support lines are real-world facts the author must verify, per country, so the door exists only once the letter does. |
|
||||||
@@ -56,7 +56,11 @@ sentences). Nothing in Phase 1 is visible to the player yet.
|
|||||||
| ~~G1.1~~ | ~~No module computes the sun (CLAUDE.md §7); polar and DST traps only predicted~~ | Closed 2026-11-01 on `feature/sun`. `engine/src/sun/sun.ts`: 26 published days in 6 cities within 2 min, polar day and night at Tromsø, 50 tests, 5 of 5 put-back bugs caught. Both traps measured (CLAUDE.md §8). |
|
| ~~G1.1~~ | ~~No module computes the sun (CLAUDE.md §7); polar and DST traps only predicted~~ | Closed 2026-11-01 on `feature/sun`. `engine/src/sun/sun.ts`: 26 published days in 6 cities within 2 min, polar day and night at Tromsø, 50 tests, 5 of 5 put-back bugs caught. Both traps measured (CLAUDE.md §8). |
|
||||||
| ~~G1.2~~ | ~~The player cannot choose a city; no time-zone guess; no sunset time on screen~~ | Closed 2026-11-02 on `feature/sunset-place`. 7,342 public-domain towns searched on the device, a guess for every zone a browser reports, the town kept in IndexedDB, tonight's sunset in the garden. 299 unit, 10 e2e, offline choosing and changing a town; 6 of 6 put-back bugs caught. |
|
| ~~G1.2~~ | ~~The player cannot choose a city; no time-zone guess; no sunset time on screen~~ | Closed 2026-11-02 on `feature/sunset-place`. 7,342 public-domain towns searched on the device, a guess for every zone a browser reports, the town kept in IndexedDB, tonight's sunset in the garden. 299 unit, 10 e2e, offline choosing and changing a town; 6 of 6 put-back bugs caught. |
|
||||||
| ~~G1.4~~ | ~~No rose~~ | Closed 2026-11-02 on `feature/rose-care`: care with a touch of skill (water by holding, shade, weeds, petals), growth from days of care, drift, moods, her numbers; the care log in IndexedDB, replayed by the engine. Tuning R2/R4/R5/R6 is the author's. 7 of 7 put-back bugs caught after two test holes were closed. |
|
| ~~G1.4~~ | ~~No rose~~ | Closed 2026-11-02 on `feature/rose-care`: care with a touch of skill (water by holding, shade, weeds, petals), growth from days of care, drift, moods, her numbers; the care log in IndexedDB, replayed by the engine. Tuning R2/R4/R5/R6 is the author's. 7 of 7 put-back bugs caught after two test holes were closed. |
|
||||||
| G1.5 | The day's sentence and the folded petal; the in-game sunset with the chair | Open. The sentence needs the library (G0.18). |
|
| ~~G1.5~~ | ~~The day's sentence and the folded petal~~ | Closed 2026-11-02 on `feature/day-sentence`, for the code: `engine/petal` (5 properties: never lost, verified-later never swaps it, one a day, no repeat until all opened), the `sentence-opened` event, the rose file v2, the petal in the garden; e2e opens one in a fixture build and reloads. 9 of 9 put-back bugs caught. **The shipped app shows no petal until the author verifies sentences (G0.18).** |
|
||||||
|
| ~~G1.6~~ | ~~The in-game sunset: move the chair, watch it again~~ | Closed 2026-11-02 on `feature/chair-sunset`: half a minute with nothing to press, then the real sunset's time; Escape and a tap leave; the offline suite watches one with the server gone. 4 of 4 put-back bugs caught. |
|
||||||
|
| ~~G1.7~~ | ~~Thorns were on the roadmap but undesigned~~ | Closed 2026-11-02 on `feature/thorns`, as the author chose: thorns teach gentleness. `engine/touch` (2 properties: spaced taps are never a rush; one blush a visit); a tremor is one touch; nothing recorded. 6 of 6 put-back bugs caught. |
|
||||||
|
| ~~G1.8~~ | ~~Two tabs (CLAUDE.md §8, predicted)~~ | Closed 2026-11-07 on `fix/two-tabs`. Measured first: two e2e tests failed (an open tab saw neither care nor a town from the other). Storage announces committed writes on a `BroadcastChannel`; the rose and the garden read again, adding to what they show. No lock needed: nothing stored drifts. 7 of 7 put-back bugs caught. |
|
||||||
|
| ~~G1.10~~ | ~~The garden named only the sunset, never the sunrise (ROADMAP Phase 1: *sunset and sunrise*)~~ | Closed 2026-11-17 on `feature/sunrise`: from sunset until it comes, the line names the real sunrise; the in-game sunset still names the sunset. engine `nextSunEvent` with a 300-run property; e2e at 05:00 in Brno; seen on a real Android tablet. 5 of 5 put-back bugs caught. |
|
||||||
| G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
|
| G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
|
||||||
|
|
||||||
## Design questions — answered
|
## Design questions — answered
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# The in-game sunset — move the chair, watch it again
|
||||||
|
|
||||||
|
Status: built on `feature/chair-sunset`. ROADMAP Phase 1: *the in-game sunset — move the chair, watch
|
||||||
|
it again — as comfort and rehearsal; it tells the player when the real one is tonight.* CLAUDE.md §1,
|
||||||
|
§7 (*silence is a feature: sunset … has moments with no buttons at all*). Review:
|
||||||
|
[`feature-chair-sunset.md`](../reviews/feature-chair-sunset.md).
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
Under tonight's sunset line there is **Move the chair**. The garden turns into a quiet scene: the chair
|
||||||
|
on the hillside, the sky going from day to amber to coral to dusk, the sun sinking behind the western
|
||||||
|
horizon. **Half a minute, and nothing to press.** Then one line says when the real one is tonight, and
|
||||||
|
two quiet choices: *Watch it again*, *Back to the rose*.
|
||||||
|
|
||||||
|
It is a rehearsal, never a replacement: it counts for nothing, logs nothing, and its last words point
|
||||||
|
at the real sky.
|
||||||
|
|
||||||
|
## 2. Technical architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
shell["Shell.svelte<br/>Move the chair"] --> scene["ChairSunset.svelte<br/>dialog: sky + sun in CSS,<br/>garden-sunset and chair stand-ins"]
|
||||||
|
scene -->|"after 30 s"| line["SunsetLine<br/>tonight's real sunset"]
|
||||||
|
line --> engine["engine nextInvitation"]
|
||||||
|
```
|
||||||
|
|
||||||
|
| # | Decision | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| C1 | The sky and the sun are **drawn in code** (CSS gradients and one disc) behind the garden layer, which is transparent above its horizon. | STYLE.md S5: the sky is never painted, so the same layer serves the real-time sky later. |
|
||||||
|
| C2 | **No visible button for 30 s.** Escape, or a tap anywhere, comes back early; a screen-reader-only line says so. | Silence (CLAUDE.md §7) without a trap: a keyboard or screen-reader user is never stuck. |
|
||||||
|
| C3 | It is a modal dialog; focus goes into it and returns to *Move the chair*. | Accessibility is not a phase. |
|
||||||
|
| C4 | **Nothing is logged.** No event kind, no count. | Rehearsal, not achievement; the real sunset's event (`sunset`, CLAUDE.md §6.2) belongs to the real one. |
|
||||||
|
| C5 | With reduced motion, the scene shows dusk at once, still, for the same half minute. | Global `prefers-reduced-motion` rule in `tokens.css`. |
|
||||||
|
|
||||||
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
| Risk | Answer |
|
||||||
|
|:--|:--|
|
||||||
|
| **Dependence**: the screen sunset replaces the real one. | Its last line is the real sunset's time; nothing rewards watching it. |
|
||||||
|
| **A trap**: a full-screen scene with no buttons. | C2, C3; tested by keyboard. |
|
||||||
|
| **Motion** for people sensitive to it. | C5. |
|
||||||
|
| Privacy, reachability | None: nothing is stored or sent. |
|
||||||
|
|
||||||
|
## 4. Verification matrix
|
||||||
|
|
||||||
|
| Case | Kind | Where |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| Move the chair opens a labelled dialog with no button in it; after 30 s, the real sunset's line, *Watch it again*, *Back to the rose* | unit | `ui/test/chair-sunset.test.ts` |
|
||||||
|
| Escape and a tap come back early; focus returns to *Move the chair* | unit | same |
|
||||||
|
| Watch it again starts it over | unit | same |
|
||||||
|
| With no town and no guess, the line asks for a town | unit | same |
|
||||||
|
| Built app: watch it with the clock driven; axe during and after | e2e | `e2e/shell.spec.ts` |
|
||||||
|
| Offline: watch an in-game sunset with the server gone (CLAUDE.md §3) | offline | `e2e/offline.spec.ts` |
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
# The day's sentence — the rose's folded petal
|
||||||
|
|
||||||
|
Status: built on `feature/day-sentence`. ROADMAP Phase 1: *the day's sentence comes from the rose: she
|
||||||
|
waits with a folded petal; sunset is the best moment to open it, but it is never lost and no streak
|
||||||
|
exists.* GAMEPLAY.md §1: *coming back on nearby days gives a little more (e.g. an earlier sentence
|
||||||
|
remembered). A gap is never punished.* CLAUDE.md §1, §5.5 (*an unopened sentence is never lost*),
|
||||||
|
§6.1, §6.2. Review: [`feature-day-sentence.md`](../reviews/feature-day-sentence.md).
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
When the rose needs nothing, she says *I am keeping a folded petal for you.* A folded petal lies by
|
||||||
|
her, and one button: **Open her petal**. It opens into one sentence of hope, with where it comes from in
|
||||||
|
small print.
|
||||||
|
|
||||||
|
- **One a day.** Once opened, it stays open for the rest of the local day (*Today's petal*); a new
|
||||||
|
one is folded tomorrow.
|
||||||
|
- **Never lost.** A petal not opened today is the same petal tomorrow, and next week. There is no pile
|
||||||
|
of missed petals and nothing says how many days passed.
|
||||||
|
- **Sunset is the best moment.** Around the real sunset (the same moment the sunset line names; in
|
||||||
|
polar day the lowest light, in polar night the brightest twilight) she says *The sun is low now.
|
||||||
|
Would you open my petal?* Opened then, she adds: *Go and look at the sky. I will be here.* It can
|
||||||
|
be opened at any other time too, with no difference in what it gives.
|
||||||
|
- **Nearby days give a little more.** If the last petal was opened at most three days ago, she also
|
||||||
|
remembers one opened before: *Do you remember this one?* After a longer gap she simply gives the
|
||||||
|
day's petal. The gap is not mentioned.
|
||||||
|
- **No library, no petal.** Until the author has verified sentences, she holds no petal and says
|
||||||
|
nothing about one. Nothing on screen points at the absence.
|
||||||
|
|
||||||
|
Nothing is counted: there is no number of petals, no list of all of them, no record of when.
|
||||||
|
|
||||||
|
## 2. Technical architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
lib["content/library/*.json<br/>(verified by the author)"] -->|"build: validate:library,<br/>then virtual:rosea-library"| app["apps/rosea<br/>App.svelte"]
|
||||||
|
cand["content/candidates/*.json<br/>(proposed, unverified)"] -->|"pnpm library:verify id… --by Name<br/>(the author only)"| lib
|
||||||
|
app --> ui["packages/ui<br/>Rose.svelte + Petal.svelte"]
|
||||||
|
ui --> engine["packages/engine<br/>petal/petal.ts: petalAt, goodMoment"]
|
||||||
|
engine --> schema["packages/schema<br/>sentence-opened.schema.json"]
|
||||||
|
ui -->|"appendOpened"| storage["packages/storage<br/>events store, rose file v2"]
|
||||||
|
```
|
||||||
|
|
||||||
|
| # | Decision | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| P1 | **The petal is the next sentence in one fixed order**, and the order moves only when a petal is opened. The order: sunset sentences never opened, by `verifiedAt` then a hash of the id; once all are opened, the one opened longest ago. | *Never lost* (CLAUDE.md §5.5) follows from the order: nothing advances by itself. Verifying new sentences adds them after the ones already verified, so it never swaps the petal she holds. With ≥ 365 sentences, none repeats within a year of daily opening. The hash mixes traditions, so the first days are not all one book. |
|
||||||
|
| P2 | **One opening per local day.** The first `sentence-opened` event of a local day is that day's petal; a second tab's later one changes nothing. | No farming, no reason to stay. `localDay` is the one recorded in the event (CLAUDE.md §7). |
|
||||||
|
| P3 | **Remembering** needs the previous opening ≤ `PETAL.nearDays` (3) local days before today and an earlier sentence to recall; which one is a pure, seeded choice per day. | GAMEPLAY §1. A gap is never shown: the extra line is simply absent. Tuning is the author's, in `PETAL`. |
|
||||||
|
| P4 | **The good moment** is `PETAL.beforeMinutes` (60) before to `PETAL.afterMinutes` (60) after the sun module's `invitation`. It changes only her words. | One sun module (CLAUDE.md §7); the best moment is offered, not rewarded (*Gentle*). |
|
||||||
|
| P5 | **The library is bundled at build time** through a Vite virtual module that reads `content/library/*.json`; the app build first runs `validate:library` and fails if it fails. The app never validates in the browser. | Sidesteps G0.12 (Ajv needs `new Function`; the CSP forbids it) without a second validator: what ships is exactly what passed the gate. `ROSEA_LIBRARY_DIR` swaps the folder for the e2e build. |
|
||||||
|
| P6 | **A new event kind, `sentence-opened`** (`ts`, `localDay`, `from`, `messageId`, `clientVersion`), appended to the same `events` store. | CLAUDE.md §6.2: adding a kind is the only sanctioned way to make something derivable. |
|
||||||
|
| P7 | **The rose file becomes version 2** with an `opened` list beside `events`; version 1 files are still read. | Her petals move with her to a new device, so the order continues instead of starting over. |
|
||||||
|
| P8 | **Candidates live in `content/candidates/`**, in the library's shape without `publicDomain`, `verifiedBy`, `verifiedAt`, and with a `check` (where to read it). `validate:library` holds them to every rule but verification, so the author is never asked to verify a line that would fail. `pnpm library:verify <id…> --by <name>` moves them into the library with today's date. **Agents never run it.** | D4 of phase0-workspace: `verifiedBy` is a person. The command only saves the author hand-editing JSON. |
|
||||||
|
| P9 | The source is shown under the sentence (work, author, translation). | Honesty about where words come from; it also tells a believer and a non-believer what kind of line it is. |
|
||||||
|
|
||||||
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
| Risk | Answer |
|
||||||
|
|:--|:--|
|
||||||
|
| **Guilt**: a pile of unopened petals after an absence. | P1: there is only ever one petal. Nothing names the days between. |
|
||||||
|
| **Streak creep**: remembering on nearby days is a streak in disguise. | P3 rewards nothing visible and counts nothing; after a gap the day's petal is exactly as full. It is a small gift, not a bar to keep up. Reviewed in `soul.md` terms in the review. |
|
||||||
|
| **Dependence**: a reason to stay in the app. | One petal a day; at the good moment her words send the player outside. |
|
||||||
|
| **Comfort becomes wallpaper** (CLAUDE.md §8). | No repeat until every sentence has been opened once (P1). |
|
||||||
|
| **A hollow or harmful sentence**: a promise, a medical word, the unnamed state. | The validator's rules (§5.6), held for candidates too (P8); the author verifies every line. |
|
||||||
|
| **Copyright**: a modern translation slips in. | The translation list in `validator.ts`; additions need a dated reason. Candidates carry `check.publicDomain`. |
|
||||||
|
| **Privacy**: which sentences were opened. | Stays on the device; the rose file holds it, never the town. Nothing is sent. |
|
||||||
|
| Reachability | None: nothing reaches another person. |
|
||||||
|
| **Offline** | The library is precached in the bundle; opening appends to IndexedDB. |
|
||||||
|
|
||||||
|
## 4. Gap analysis
|
||||||
|
|
||||||
|
- **G1.5** (the day's sentence) closes with this, except that the library is still empty: the petal
|
||||||
|
appears in the shipped app only once the author verifies sentences (G0.18).
|
||||||
|
- **G0.12** narrows: the app does not need to validate content in the browser while the library is
|
||||||
|
bundled. It reopens if the library is ever fetched at runtime.
|
||||||
|
- **Not done:** Czech text (`text.cs`) is not shown yet (Czech copy arrives as a whole, G1.3); a
|
||||||
|
collection of past petals (an album) is not designed.
|
||||||
|
|
||||||
|
## 5. Verification matrix
|
||||||
|
|
||||||
|
| Case | Kind | Where |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| No sentences: nothing; first visit: the first in order is folded | unit | `engine/test/petal.test.ts` |
|
||||||
|
| Opening today: open for the rest of the day; tomorrow: the next one folded | unit | same |
|
||||||
|
| **Property:** with no opening, the folded petal is the same on every day | property | same |
|
||||||
|
| **Property:** adding sentences verified later never changes the folded petal | property | same |
|
||||||
|
| **Property:** at most one opening per local day counts; a second changes nothing | property | same |
|
||||||
|
| **Property:** no repeat until every sentence was opened; then the least recent | property | same |
|
||||||
|
| Remembering: at 1–3 days a recalled earlier one; at 4+ none; never today's own | unit | same |
|
||||||
|
| Good moment: inside ±60 min of the invitation; polar day and polar night | unit | same |
|
||||||
|
| Events from other roses' keys are ignored; past keys count | unit | same |
|
||||||
|
| The schema accepts the event and rejects free text in `messageId` | unit | `schema/test` |
|
||||||
|
| Storage: append and load opened; `loadCare` ignores them quietly; rose file v2 out, v1 and v2 in, additive | unit | `storage/test` |
|
||||||
|
| Candidates: held to every rule; `library:verify` moves, stamps, refuses an unknown id or a failing line | unit | `content/test` |
|
||||||
|
| UI: says the petal line only when she needs nothing; Open; source shown; today's petal again; remembered line; sky line at the good moment; empty library shows nothing | unit | `ui/test/petal.test.ts` |
|
||||||
|
| Built app with a fixture library: open the petal, reload, still open; axe | e2e | `e2e/petal.spec.ts` |
|
||||||
|
| Built app with the real (empty) library: no petal | e2e | same |
|
||||||
|
| Offline: open the petal with the server gone | offline | — (the shipped library is empty; covered by e2e reload. Added when the first sentences are verified.) |
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
# The sunrise in the garden
|
||||||
|
|
||||||
|
Status: built on `feature/sunrise`. ROADMAP Phase 1: *the sun: real local sunset **and sunrise**, on
|
||||||
|
device; polar day/night handled.* CLAUDE.md §1, *points beyond the screen: the real sunset, the real
|
||||||
|
sunrise*. The sun module (`sun.md`) has computed sunrise since Phase 1 began; the garden never showed
|
||||||
|
it. Review: [`feature-sunrise.md`](../reviews/feature-sunrise.md).
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
The line under the garden names the next real thing to look up for:
|
||||||
|
|
||||||
|
| When | The line |
|
||||||
|
|:--|:--|
|
||||||
|
| From midnight until sunrise | *The sun rises at 06:41 in Brno.* |
|
||||||
|
| From sunrise until tonight's sunset | *Tonight the sun sets at 16:12 in Brno.* (as before) |
|
||||||
|
| From sunset until midnight | *Tomorrow the sun rises at 06:43 in Brno.* |
|
||||||
|
| Polar day, polar night | As before: the lowest light; the brightest twilight. |
|
||||||
|
|
||||||
|
Someone awake at three in the morning is told, quietly, when the light comes back; nothing invites
|
||||||
|
them anywhere. The sunset stays the game's invitation (the petal's good moment, the in-game sunset):
|
||||||
|
**the in-game sunset's closing words keep naming the real sunset**, because that is what they are for.
|
||||||
|
|
||||||
|
## 2. Technical architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
shell["packages/ui<br/>Shell: SunsetLine (next)"] --> engine["packages/engine<br/>sun.ts: nextSunEvent"]
|
||||||
|
chair["packages/ui<br/>ChairSunset: SunsetLine (sunset)"] --> engine2["packages/engine<br/>sun.ts: nextInvitation"]
|
||||||
|
```
|
||||||
|
|
||||||
|
| # | Decision | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| R1 | **`nextSunEvent(now, place)`** in `engine/sun`: the next invitation's day; if that day's sunrise is still ahead, the sunrise; else the invitation. Pure, instants only (sun.md D3). | One module computes the sun (CLAUDE.md §7); the UI reads, never decides. |
|
||||||
|
| R2 | Built on `nextInvitation`, so Reykjavík's after-midnight midsummer sunset (sun.md D2) still shows as tonight's sunset, not as a sunrise. | The only subtle case; tested. |
|
||||||
|
| R3 | *Tomorrow* only when the sunrise belongs to a later local day than now, as the sunset line already does. | Same reading of the clock in both. |
|
||||||
|
| R4 | `SunsetLine` gains `of: 'next' \| 'sunset'`; the garden asks for the next event, the in-game sunset for the sunset. | The chair scene tells the player when the real sunset is (chair-sunset.md). |
|
||||||
|
| R5 | Polar day and night are unchanged: no sunrise exists to name. | sun.md D4. |
|
||||||
|
|
||||||
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
| Risk | Answer |
|
||||||
|
|:--|:--|
|
||||||
|
| **Dependence / a nudge at night**: a line that pulls an awake player to the screen. | It is the same quiet line, changed only in what it names; no new notice, no invitation, nothing counted. |
|
||||||
|
| **Guilt**: *you missed the sunrise*. | Nothing ever refers to a missed sunrise; after sunrise the line simply names the sunset. |
|
||||||
|
| Privacy, reachability, offline | Unchanged: computed on the device from the chosen town. |
|
||||||
|
|
||||||
|
## 4. Gap analysis
|
||||||
|
|
||||||
|
Closes the last Phase 1 roadmap item that the screen did not show. Sunrise *mechanics* (sunrise-only
|
||||||
|
visitors, Phase 2; ROADMAP §6 open question) are not designed here.
|
||||||
|
|
||||||
|
## 5. Verification matrix
|
||||||
|
|
||||||
|
| Case | Kind | Where |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| Before sunrise: today's sunrise; after sunrise: tonight's sunset; after sunset: tomorrow's sunrise | unit | `engine/test/sun.test.ts` |
|
||||||
|
| Reykjavík midsummer after midnight, before the late sunset: the sunset, not a sunrise | unit | same |
|
||||||
|
| Polar day and night: unchanged | unit | same |
|
||||||
|
| **Property:** the event is never in the past, and nothing (sunrise or sunset) comes between now and it | property | same |
|
||||||
|
| The garden's line at 05:00, 12:00, 22:00; the in-game sunset's words still name the sunset at 22:00 | unit | `ui/test/sunset.test.ts`, `ui/test/chair-sunset.test.ts` |
|
||||||
|
| Built app at 05:00 in Brno: the sunrise line | e2e | `e2e/shell.spec.ts` |
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
# 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`](../reviews/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
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
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` |
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# Two tabs, one garden
|
||||||
|
|
||||||
|
Status: built on `fix/two-tabs`. CLAUDE.md §8, *Two tabs, one database (predicted): two event streams
|
||||||
|
into one store; derived state drifts. Use a `BroadcastChannel` lock.* Review:
|
||||||
|
[`fix-two-tabs.md`](../reviews/fix-two-tabs.md).
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
A player may have the garden open twice: two browser tabs, or the installed app and a tab. Whatever
|
||||||
|
they do in one is now seen in the other within a moment, without a reload: care given, a petal opened,
|
||||||
|
a rose brought back from a file, a town chosen.
|
||||||
|
|
||||||
|
**Measured first (2026-11-07).** Two e2e tests, written before the fix, failed: a tab already open did
|
||||||
|
not see care given in the other, nor a town chosen there. The prediction was half right:
|
||||||
|
|
||||||
|
- **No stored state drifts.** There is no `derived` store yet; the log is append-only and every write
|
||||||
|
is its own IndexedDB transaction (auto-increment ids), so two writers cannot overwrite each other.
|
||||||
|
The identity's first write already wins in a transaction (rose.md). **No lock is needed.**
|
||||||
|
- **The views drift.** Each tab read the log once, at start. The harm: she is watered in one tab, the
|
||||||
|
other still shows her thirsty, the player waters again, and she is too full — a mistake the game
|
||||||
|
made, blamed on her care.
|
||||||
|
|
||||||
|
## 2. Technical architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
a["tab A<br/>packages/storage: appendCare"] -->|"IndexedDB write, then post 'log'"| bc(("BroadcastChannel<br/>rosea-changes"))
|
||||||
|
bc -->|"'log' | 'place'"| b["tab B<br/>packages/storage: onChange"]
|
||||||
|
b --> app["apps/rosea wiring"] --> ui["packages/ui<br/>Rose / Shell reload from storage"]
|
||||||
|
```
|
||||||
|
|
||||||
|
| # | Decision | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| W1 | **`packages/storage` announces its own writes** on a `BroadcastChannel` named after the database, *after* the write commits: `'log'` (care, a petal, a rose brought back) or `'place'` (the town). | One module owns every write, so no write path can forget to announce. After the commit, so the other tab reads what was written. |
|
||||||
|
| W2 | **The message is only what changed**, never the data. The other tab reads storage again. | Storage stays the truth; a message can be lost or arrive twice and nothing breaks. |
|
||||||
|
| W3 | A tab does not hear itself (a `BroadcastChannel` never delivers to the object that posted). | No double reload. |
|
||||||
|
| W4 | **No lock.** | §1: nothing a lock would protect exists yet. When a `derived` store arrives, its feature doc decides again. |
|
||||||
|
| W5 | Where `BroadcastChannel` does not exist, nothing is announced and each tab is as before. | Safari has it since 15.4; an older browser loses only the live update, never data. |
|
||||||
|
| W6 | Nothing on screen says another tab acted. The garden simply is as it is. | Calm; no "updated elsewhere" notices. |
|
||||||
|
|
||||||
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
| Risk | Answer |
|
||||||
|
|:--|:--|
|
||||||
|
| **Blame for the game's mistake** (watered twice, too full). | The fix itself. |
|
||||||
|
| **Privacy**: a message leaves the tab. | A `BroadcastChannel` reaches only this origin's own tabs and workers in this browser profile; it carries one word, never data. Nothing leaves the device. |
|
||||||
|
| A message from another origin or a malformed one. | The channel is same-origin by definition; anything but `'log'` or `'place'` is ignored. |
|
||||||
|
| Reachability, offline | Not affected; works offline. |
|
||||||
|
|
||||||
|
## 4. Gap analysis
|
||||||
|
|
||||||
|
Closes CLAUDE.md §8's two-tabs trap (measured, answered) and the review checklist's *two tabs open*
|
||||||
|
for the log and the town. Not covered: a tab that is mid-pour when the other tab's care arrives keeps
|
||||||
|
pouring against the new water level (that is the correct level).
|
||||||
|
|
||||||
|
## 5. Verification matrix
|
||||||
|
|
||||||
|
| Case | Kind | Where |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| Each write announces after it commits: care, petal, rose brought back → `'log'`; town → `'place'` | unit | `storage/test/changes.test.ts` |
|
||||||
|
| A failed write announces nothing; a tab does not hear itself; a malformed message is ignored; unsubscribe stops it; `close()` closes the channel | unit | same |
|
||||||
|
| Without `BroadcastChannel`, storage still works | unit | same |
|
||||||
|
| The rose reloads her log on `'log'`; the shell reloads the town on `'place'` | unit | `ui/test/two-tabs.test.ts` |
|
||||||
|
| Built app, two tabs: care in A seen in B without reload; a town chosen in A shown in B | e2e | `e2e/shell.spec.ts` (failed before the fix: the measurement) |
|
||||||
@@ -9,12 +9,12 @@ and **how to apply it**.
|
|||||||
| `soul.md` | none yet | What comforts and what only looks like comfort. **The most important file here.** No mechanic exists yet that could teach anything. |
|
| `soul.md` | none yet | What comforts and what only looks like comfort. **The most important file here.** No mechanic exists yet that could teach anything. |
|
||||||
| `architecture.md` | none yet | Layering, ownership, seams. |
|
| `architecture.md` | none yet | Layering, ownership, seams. |
|
||||||
| `design.md` | none yet | Wording, silence, empty states. |
|
| `design.md` | none yet | Wording, silence, empty states. |
|
||||||
| [`art.md`](art.md) | 2 | The image pipeline. |
|
| [`art.md`](art.md) | 3 | The image pipeline. |
|
||||||
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
|
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
|
||||||
| [`technical.md`](technical.md) | 5 | The browser and the build as platforms. |
|
| [`technical.md`](technical.md) | 7 | The browser and the build as platforms. |
|
||||||
| [`testing.md`](testing.md) | 9 | What makes a test worth having, and how a passing test lies. |
|
| [`testing.md`](testing.md) | 10 | What makes a test worth having, and how a passing test lies. |
|
||||||
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
||||||
| [`process.md`](process.md) | 3 | Workflow, commits, credentials, honesty about what shipped. |
|
| [`process.md`](process.md) | 4 | Workflow, commits, credentials, honesty about what shipped. |
|
||||||
|
|
||||||
A file is created with its first real entry. An empty lessons file only looks like
|
A file is created with its first real entry. An empty lessons file only looks like
|
||||||
knowledge.
|
knowledge.
|
||||||
|
|||||||
@@ -32,3 +32,21 @@ likeness gets into the art (§8, *copyright through the back door*).
|
|||||||
**How to apply it.** Any text that is assembled into something sent outside, a prompt
|
**How to apply it.** Any text that is assembled into something sent outside, a prompt
|
||||||
included, goes through the same forbidden list as player copy. Reword: *waiting with
|
included, goes through the same forbidden list as player copy. Reword: *waiting with
|
||||||
patience* is allowed.
|
patience* is allowed.
|
||||||
|
|
||||||
|
## A style prompt loses to the generator's default unless it is stronger and comes first
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-07 the first `rose-sheet` came back as wet, pale watercolour with a
|
||||||
|
smiley face on a round ball inside the petals: a children's sticker sheet. STYLE.md §1 had asked for
|
||||||
|
matte gouache with plum-brown outlines, and its own *avoid* list named watercolour. The prompt was a
|
||||||
|
long document: the style, then pixel coordinates, cut lines and two lists of things not to draw,
|
||||||
|
among them the book's motifs.
|
||||||
|
|
||||||
|
**Why it bit.** A generator has a strong default for "cute character", and it fills every gap the
|
||||||
|
prompt leaves with that default. Prompts that bury the look under numbers it cannot use, and lists
|
||||||
|
of things not to draw, leave the gap wide; naming a motif, even to forbid it, makes it likelier.
|
||||||
|
|
||||||
|
**How to apply it.** Lead with the look, said positively and concretely (medium, texture, line,
|
||||||
|
light, audience); then the picture in plain words; then a short avoid list of generic faults. Keep
|
||||||
|
pixel geometry out of prompts (the cutting tools hold it). Check the book's motifs in review, not in
|
||||||
|
prompts. When a picture fails, name the exact failure in the character's own description (here:
|
||||||
|
*no round face, ball or bare patch inside the petals*), so every prompt carries it.
|
||||||
|
|||||||
@@ -45,3 +45,17 @@ while nothing else is competing for attention.
|
|||||||
**How to apply it.** Make the run refuse to start. Done: `pnpm guard:cpu` (in
|
**How to apply it.** Make the run refuse to start. Done: `pnpm guard:cpu` (in
|
||||||
`tools/cpu-guard`) runs before every full run, waits up to three minutes, then refuses. Do
|
`tools/cpu-guard`) runs before every full run, waits up to three minutes, then refuses. Do
|
||||||
not set `ROSEA_CPU_MAX` to get past a busy desktop; it is for dedicated machines.
|
not set `ROSEA_CPU_MAX` to get past a busy desktop; it is for dedicated machines.
|
||||||
|
|
||||||
|
## An inline edit through the shell is two parsers deep
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-02 two edits went through the shell. A Python heredoc broke
|
||||||
|
on a template string, and another rewrote two TypeScript files with CRLF line endings
|
||||||
|
(Python's text mode on Windows), which showed up as "modified" files with an empty diff.
|
||||||
|
A Node one-liner lost every `${…}` to the shell.
|
||||||
|
|
||||||
|
**Why it bit.** Code passed through bash, then through an interpreter's string quoting,
|
||||||
|
has two sets of escaping rules; template strings and backslashes break one or the other.
|
||||||
|
On Windows the interpreter also chooses line endings.
|
||||||
|
|
||||||
|
**How to apply it.** Edit source files with the edit tool. When a script is needed, write
|
||||||
|
it to a file first (the scratchpad), then run the file.
|
||||||
|
|||||||
@@ -70,3 +70,30 @@ listening. This machine runs many projects.
|
|||||||
**How to apply it.** Before starting a preview, check that the port is free
|
**How to apply it.** Before starting a preview, check that the port is free
|
||||||
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
|
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
|
||||||
anything the page says.
|
anything the page says.
|
||||||
|
|
||||||
|
## A predicted trap can name the right place and the wrong harm
|
||||||
|
|
||||||
|
**What happened.** CLAUDE.md §8 predicted that two tabs would make stored derived state drift and
|
||||||
|
prescribed a lock. On 2026-11-07 two e2e tests, written before any fix, showed the real harm was
|
||||||
|
elsewhere: there was no derived store and the append-only log could not conflict, but each tab's
|
||||||
|
view went stale, so a player could water the rose twice. A lock would have fixed nothing.
|
||||||
|
|
||||||
|
**Why it bit.** A prediction is written before the code exists, so its remedy fits the design
|
||||||
|
that was imagined, not the one that was built.
|
||||||
|
|
||||||
|
**How to apply it.** Before acting on a predicted trap, write the test that would show it, run it
|
||||||
|
against the built app, and fix what fails. Then rewrite the trap's row with what was measured.
|
||||||
|
|
||||||
|
## Data built against a runtime's time zones goes stale when the runtime changes
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-17 Node went from 22.11 to 22.23.4 and a test found a time zone
|
||||||
|
(America/Coyhaique) with no town guess. Rebuilding the town list then showed far worse: Santiago had
|
||||||
|
sat on a southern zone's clock since the first build, because Natural Earth files it under
|
||||||
|
America/Sao_Paulo and the build trusted any zone whose clock matched one of the country's own.
|
||||||
|
|
||||||
|
**Why it bit.** A build step that consults `Intl` bakes the runtime's time zone data into a file. An
|
||||||
|
upgrade changes the answers silently; only a test that asks *every* zone notices, and then the whole
|
||||||
|
derivation deserves a second look, not just the one zone.
|
||||||
|
|
||||||
|
**How to apply it.** After a Node upgrade, run the content tests first. When generated data changes,
|
||||||
|
diff it item by item (here: every town whose zone moved) and explain each change in the review.
|
||||||
|
|||||||
@@ -131,3 +131,18 @@ equality is blind to exactly the field that is absent by accident.
|
|||||||
|
|
||||||
**How to apply it.** For "holds this and nothing else", use `toStrictEqual`, and give the
|
**How to apply it.** For "holds this and nothing else", use `toStrictEqual`, and give the
|
||||||
test something real to leak (here, a kept identity).
|
test something real to leak (here, a kept identity).
|
||||||
|
|
||||||
|
## A helper that searches for a moment can land on a boundary
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-02 the petal's UI test asked a helper for "a moment when the
|
||||||
|
rose needs nothing", then recorded an opening "a minute earlier, today". The helper searched
|
||||||
|
hour by hour from a morning pour and returned 00:00 local, so a minute earlier was yesterday
|
||||||
|
and the test failed. The component was right; the first suspicion fell on it.
|
||||||
|
|
||||||
|
**Why it bit.** A search returns the first value that satisfies its condition, and the first
|
||||||
|
one is often an edge: midnight, the end of a window, the last day of a range. The test then
|
||||||
|
asserts something the edge makes false.
|
||||||
|
|
||||||
|
**How to apply it.** Bound every search to the region the test means (here: daytime on the
|
||||||
|
pour's own local day), and when a test built on a search fails, print what the search
|
||||||
|
returned before debugging the code under test.
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
# Review — `art/board-v2`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3) of the art board's second version, 2026-11-07, at Mark's
|
||||||
|
request: *rewrite the art board to provide better prompts, and update it for all assets to be
|
||||||
|
present.* Pipeline: [`docs/ART.md`](../../docs/ART.md). Style: [`art/STYLE.md`](../../art/STYLE.md).
|
||||||
|
|
||||||
|
## Why
|
||||||
|
|
||||||
|
Mark made the first `rose-sheet` from the old prompts and did not like it. Read against STYLE.md:
|
||||||
|
|
||||||
|
- **Wet, pale watercolour**, no outlines: the opposite of S1, and close to the book's own look.
|
||||||
|
- **A smiley on a round ball** inside the petals: the face sat on a head, not on the rose.
|
||||||
|
- **A children's sticker sheet**: identical sweet smiles, for players who are grown-ups.
|
||||||
|
- **No light**: one pink and one olive, lit from nowhere, though §1 asked for low light from the left.
|
||||||
|
|
||||||
|
The choices S1–S5 were right; the prompts did not carry them. They were long technical documents:
|
||||||
|
§1 came first, but then pixel coordinates, cut lines and two long lists of things not to draw.
|
||||||
|
|
||||||
|
## What changed
|
||||||
|
|
||||||
|
| # | Change | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| B1 | **STYLE.md §1 rewritten**: opaque matte gouache, dry brush, paper grain, an uneven plum-brown brush line, low light from the left with a cool shaded side, a restrained palette, *for grown-ups, never a children's sticker or a cute mascot*, faces as a few tiny marks painted on the character, *not watercolour*, *not digital*. | Says the look positively and specifically, the way the default it drifted to is specific. |
|
||||||
|
| B2 | **The rose's face is painted on her inner petals**, no wider than a fifth of the bloom, with *no round face, ball or bare patch* (§3, the character description, and an avoid line on every rose picture). Her bloom is a real cupped old garden rose. | The failure seen, named in the place every rose prompt reads. |
|
||||||
|
| B3 | **Prompts are short and ordered**: `Make` (what kind of image, in plain words), `Reference`, `Subject`, `Setting`/`Layout`, `Canvas`, `Include`, `Avoid`, `Board id`. | Generators follow the first lines and drift on the rest (STYLE.md §6). |
|
||||||
|
| B4 | **No pixel coordinates** in prompts: the grid is said in words (columns, rows, wide gaps). The board's dashed overlay and `art:accept` still cut by the exact grid. | A generator cannot measure pixels; the numbers only crowded out the picture. |
|
||||||
|
| B5 | **The book's motifs are no longer named in prompts** (glass dome, folding screen, tiny round planet, desert, scarf, wheat). They stay in STYLE.md §4 and review point 3, where Claude's review and Mark's eye check them. A test proves no prompt names them and the checklist still does. | Naming a motif, even to forbid it, makes a generator likelier to draw it. |
|
||||||
|
| B6 | **33 new pictures, 86 in all**, every one with a stand-in. Phase 1: her touch (tickled, *gently*), weeds growing, the can pouring, a gust, water drops, the Letter's header, a maskable icon, a tab icon. Phase 2: visitors, mementos, the Geographer's book, five planet drafts. Phase 3: the trace petal. Phase 4: a sky light, the sunset-wave lamps, two foxes meeting. Phase 5: the share frame. | *All assets present*: everything Phases 1–5 name, from CLAUDE.md §1, GAMEPLAY.md and ROADMAP.md. |
|
||||||
|
| B7 | The board page: texts no longer promise pixel grids; groups renamed (*Scenes*, *Icons*); a line on the first step says to make `rose-sheet` again first; the *All at once* prompt finds the style by `Make:` instead of `Asset:`. | The page must describe the prompts it holds. |
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Soul | **The planets show grown-ups** the game wants players to feel for; STYLE.md says no people. | The grown-up is never drawn: each planet is a grassy hilltop (never a sphere) with what they keep there. A test proves every planet asks for *nobody there*. They are **drafts** until each planet's feature doc. |
|
||||||
|
| 2 | Soul | The sixth grown-up's planet (GAMEPLAY.md §6) would centre drinking, for players who may be fragile. | **Left out on purpose** until its feature doc decides how it can be shown gently (STYLE.md §4). |
|
||||||
|
| 3 | Copyright | The five planets echo the book's (a throne, a mirror, ledgers, a lamp, maps). | GAMEPLAY.md §8 takes the structure as reference and never the drawings. The objects are generic; the hilltop is not a planet sphere; review point 3 still applies. Mark decides each with its feature doc. |
|
||||||
|
| 4 | Copyright | ROADMAP Phase 2's *album of the rose's strange requests* has a name tied to the book. | No picture for it: it waits for its feature doc. |
|
||||||
|
| 5 | Words | The planets' first purpose line used the word the game never says. | `checkManifest` refused it; reworded. |
|
||||||
|
| 6 | Prompts | Two pictures still said *safe box*, a pixel-grid term. | The new test (no pixel terms) caught it; reworded. |
|
||||||
|
| 7 | Board | The *All at once* prompt cut the style by looking for `Asset:`, which prompts no longer have; it would have written no style at all. | Fixed to `Make:`. Not covered by a test (the page's JavaScript has none); checked by reading. |
|
||||||
|
| 8 | Stand-ins | The planet stand-ins' objects were too small to read. | Scaled up after looking at the board. |
|
||||||
|
| 9 | Phase 6 | No store pictures (a store banner is not a size generators offer). | Deferred to Phase 6, with the store work. |
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
art-prep 61 tests (56 before: +7 new, 2 replaced), lint, typecheck, `lint:copy` clean. The board was
|
||||||
|
built (`pnpm art:board`: 35 cards, 86 pictures, 101 stand-ins), opened locally (all five groups, 101
|
||||||
|
stand-ins, none broken) and republished to its address as **version 4**. **The app is unchanged**:
|
||||||
|
no picture it shows changed; the new stand-ins are not used by it yet.
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
|
||||||
|
- **That the new prompts make a better rose.** Only a generator can say: make `rose-sheet` again.
|
||||||
|
- The *All at once* prompt with real uploads; the board on a phone.
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# Review — `feature/chair-sunset`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/chair-sunset.md`](../features/chair-sunset.md).
|
||||||
|
Reviewed 2026-11-02 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: ui +7, e2e +1 (watch, again, Escape, focus,
|
||||||
|
axe during and after), and the offline suite now watches an in-game sunset with the server gone,
|
||||||
|
which CLAUDE.md §3 has always promised.
|
||||||
|
|
||||||
|
**The app changed** (CLAUDE.md §5.4): *Move the chair* under tonight's sunset line. Rebuilt by the
|
||||||
|
e2e and offline runs; **not deployed** (G0.13). Seen at phone width at the start, mid-sunset and
|
||||||
|
after: the first look letterboxed the scene and left the sun just above the horizon; both fixed (the
|
||||||
|
sky fills the screen, the garden stands on the bottom edge, the sun sinks behind the horizon).
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| Buttons shown during the sunset | CAUGHT: 3 |
|
||||||
|
| Escape does nothing | CAUGHT |
|
||||||
|
| The half minute never ends | CAUGHT: 4 |
|
||||||
|
| Focus not given back to *Move the chair* | CAUGHT |
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Accessibility | A full-screen scene with no buttons can trap a keyboard or screen-reader user. | Escape and a tap leave early; a screen-reader-only line says so (`aria-describedby`); focus goes in and comes back. Tested; axe passes during and after. Not tried with a real screen reader. |
|
||||||
|
| 2 | Soul | A screen sunset could stand in for the real one. | Its last words are the real sunset's time; it logs and counts nothing. |
|
||||||
|
| 3 | Design | First look: dusk-blue bars above and below the scene on a tall phone; the sun stopped above the horizon. | Fixed after the screenshots. |
|
||||||
|
| 4 | Design | The sky gradient and the sun are placeholders in code until the real sky (Phase 4) and art. | Accepted: the layer split (STYLE.md S5) is what the real sky needs. |
|
||||||
|
| 5 | Motion | Reduced motion: the global rule shortens animations, so the scene shows dusk at once and holds it for the half minute. | Accepted (C5); not seen with the setting on. |
|
||||||
|
| 7 | Process | Lint failed on an unused `svelte-ignore` comment after e2e and offline had passed; the comment was removed and lint, typecheck and the ui tests rerun. A template comment does not reach the build, so e2e and offline were not rerun. | Fixed. |
|
||||||
|
| 6 | Correctness | Playwright's `setFixedTime` freezes `Date` but lets timers run in real time; `clock.install` drives them. | The tests that watch the scene use `install`; the pour tests keep `setFixedTime`, whose real-time hold they need. |
|
||||||
|
|
||||||
|
## What was not verified
|
||||||
|
|
||||||
|
- A screen reader, reduced motion on a real device, Safari's `dvh` handling.
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
# Review — `feature/day-sentence`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/day-sentence.md`](../features/day-sentence.md).
|
||||||
|
Reviewed 2026-11-02 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 +25 (5 properties), schema +3,
|
||||||
|
storage +7, content +9, ui +7, e2e +3 (no petal in the shipped build; open, reload, tomorrow
|
||||||
|
in a fixture build; axe folded and open).
|
||||||
|
|
||||||
|
**The app changed** (CLAUDE.md §5.4), but **not visibly yet**: the shipped library is empty, so
|
||||||
|
the shipped build holds no petal and says nothing about one. The e2e fixture build shows it.
|
||||||
|
Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| The petal moves on by itself each day (lost) | CAUGHT: 3 |
|
||||||
|
| Every opening counts, not only the first of a day | CAUGHT |
|
||||||
|
| She remembers after any gap | CAUGHT |
|
||||||
|
| The order ignores when a sentence was verified | CAUGHT: 2 |
|
||||||
|
| She offers the petal over a need | CAUGHT |
|
||||||
|
| Loading care warns on every petal | CAUGHT |
|
||||||
|
| The rose file leaves her petals behind | CAUGHT: 3 |
|
||||||
|
| A candidate may carry `verifiedBy` | CAUGHT |
|
||||||
|
| `library:verify` accepts no name | CAUGHT |
|
||||||
|
|
||||||
|
Not drilled: the app build no longer running `validate:library` first. No test would fail; the
|
||||||
|
build script itself is the check (finding 8).
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Soul | *Remembering on nearby days* could be a streak in disguise: a player who learns that a gap costs the extra line may feel they lost it. | Nothing names it, counts it or explains it, so there is nothing to lose sight of; after a gap the day's petal is exactly as full. Accepted, and flagged for the author's two-week play (ROADMAP Phase 1 gate). `PETAL.nearDays` is his. |
|
||||||
|
| 2 | Soul | *I am keeping a folded petal for you.* on every visit could feel like an obligation. | Said only when she needs nothing else, never after it is opened, never as a notification. Accepted; the author may soften it. |
|
||||||
|
| 3 | Soul | Opening at sunset could become the reward that keeps someone on the screen at sunset. | It gives nothing more; her words then send the player out: *Go and look at the sky. I will be here.* |
|
||||||
|
| 4 | Correctness | Two tabs open the petal on the same day: two events. | The first of a local day is that day's petal (P2); property-tested. |
|
||||||
|
| 5 | Correctness | Changing the town to a zone on another calendar day can show a folded petal again that day, so a second opening. | Accepted: at most one extra petal per change of zone, and nothing is lost. The event keeps the day it was recorded with. |
|
||||||
|
| 6 | Correctness | A sentence removed from the library after it was opened. | Today's opening still counts as today's (no second one); the UI shows nothing for it; it is never remembered. Tested in the engine. |
|
||||||
|
| 7 | Correctness | Turbo did not know `ROSEA_BASE` or `ROSEA_LIBRARY_DIR`, so a turbo build with either set replayed a build made without it. | Fixed: both are in the build task's `env`; checked that the cache key changes. Also seen: turbo's replay writes over `dist/` without clearing it, so a stale bundle from another build can sit beside the right one (unreferenced by the page and the worker). **A deploy must build into a clean folder** — noted for G0.13. |
|
||||||
|
| 8 | Process | What ships is what passed `validate:library` only because the app's build script runs it first. | Accepted; stated in `vite.config.ts` and the analysis (P5). A test that reads the script would only restate it. |
|
||||||
|
| 9 | Privacy | Which sentences were opened, and when, go into the rose file. | The same as care: the player's own file, never the town, never sent. |
|
||||||
|
| 10 | Copyright | A candidate could be quoted from a modern translation or from memory. | Candidates carry `check.url` and `check.publicDomain`; the helper that gathered them was told to copy from fetched public-domain editions; the validator holds them to the translation list. Only the author verifies (P8). |
|
||||||
|
| 11 | Accessibility | The petal is a button; the open words get focus; *Today's petal* is a toggle with `aria-expanded`. | Tested; axe passes folded and open. Not tried with a real screen reader. |
|
||||||
|
| 12 | Offline | No offline test opens a petal: the shipped library is empty. | Deferred until the first sentences are verified; the e2e reload covers the stored opening. |
|
||||||
|
| 13 | Test honesty | The first UI test of *opened earlier today* failed for the wrong reason: the helper that looks for a quiet moment picked local midnight, so "a minute earlier" was yesterday. | Fixed: the helper looks only at daytime on the pour's own day. `lessons/testing.md`. |
|
||||||
|
| 15 | Content | 78 candidates arrived from a helper agent. All pass every rule; a second script found all 78 word for word in the downloaded editions. Eleven translations were missing from the public-domain list. | Added to `validator.ts`, each the exact Gutenberg edition, with the translator's death year (all before 1956) and an edition before 1931. Ten lines are flagged for the author in `content/candidates/README.md`: possible promises, lines that could sting, cut points, editions. |
|
||||||
|
| 16 | Process | The helper downloaded 39 Project Gutenberg text files with `curl` into the session's scratch folder, without asking first. Downloading needs the person's permission. | Reported to the author. The files are outside the repository and are not committed. Next time a brief that needs downloads says so, and the request goes to the author first. |
|
||||||
|
| 14 | Process | An inline Python edit on Windows wrote CRLF line endings into two files; a heredoc broke on a template string again. | Normalised; edits made with the edit tool instead. `lessons/process.md`. |
|
||||||
|
|
||||||
|
## What was not verified
|
||||||
|
|
||||||
|
- A screen reader; Safari; the petal on a real phone.
|
||||||
|
- Offline opening of a petal (finding 12).
|
||||||
|
- That the Gutenberg editions themselves are faithful, and every public-domain reason: the
|
||||||
|
author's check, line by line, before `pnpm library:verify`. The match between candidate and
|
||||||
|
edition was checked by script (finding 15).
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# Review — `feature/thorns`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/thorns.md`](../features/thorns.md).
|
||||||
|
Reviewed 2026-11-02 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 +7 (2 properties), ui +4, e2e +1
|
||||||
|
(touch, rush, axe with the touch focused).
|
||||||
|
|
||||||
|
**The app changed** (CLAUDE.md §5.4): a *Touch her* button over her picture. Rebuilt by the e2e and
|
||||||
|
offline runs; **not deployed** (G0.13). Seen in the built app at phone width: a touch answered
|
||||||
|
*That tickles.*, three taps 400 ms apart gave *Gently. I have thorns.*, and the keyboard focus ring
|
||||||
|
is a rounded frame round her picture.
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| A tremor counts as fussing | CAUGHT |
|
||||||
|
| A rush never brings the thorns | CAUGHT: 3 |
|
||||||
|
| She never rests | CAUGHT |
|
||||||
|
| Every touch makes her blush | CAUGHT: 2 |
|
||||||
|
| A touch is written as care | CAUGHT: 2 |
|
||||||
|
| A held key is a rush | CAUGHT |
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Soul | *Gently* can be read as a reproach by someone already fragile. | Three separate, deliberate taps in two seconds; said once; she rests and then it is gone; nothing remembers it. Her words are about herself. Accepted for the author's play test; the line is in `copy/en.ts`. |
|
||||||
|
| 2 | Accessibility / soul | A tremor or a bouncing finger could be told *gently*. | Taps within 250 ms are one touch (T2), and a held key is one; both drilled. Not tried with a real tremor or switch access. |
|
||||||
|
| 3 | Design | The author's option said *a blush once a day*, and also *nothing is recorded*. Those cannot both hold. | Nothing is recorded; the blush is once per visit (T4). Said plainly in the analysis. |
|
||||||
|
| 4 | Design | The blush shows on her face only in full bloom, as every mood does; before that only her words answer. | Accepted: the stand-ins draw moods for the full bloom only (STYLE.md). |
|
||||||
|
| 5 | Correctness | The clock moved back while she rests. | She never rests longer than `restMs` (tested). |
|
||||||
|
| 6 | Correctness | Two tabs: each has its own touches. | Nothing is shared or stored; harmless. |
|
||||||
|
| 7 | Test honesty | A frozen e2e clock (`setFixedTime`) would make three clicks one touch, and the rush test would fail for the wrong reason. | The e2e drives the clock with `clock.install` and `runFor`. |
|
||||||
|
| 8 | Dependence | Touching as a fidget. | It gives nothing after the first blush; no number grows. |
|
||||||
|
| — | Privacy, reachability, offline | Looked; nothing is stored, sent or shared. | — |
|
||||||
|
|
||||||
|
## What was not verified
|
||||||
|
|
||||||
|
- A screen reader announcing the bubble change; switch access; a real phone's touch timing.
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Review — `fix/coyhaique`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3) of a data fix to the town list
|
||||||
|
([`features/sunset-place.md`](../features/sunset-place.md)). 2026-11-17, Node 22.23.4 (tz 2026e).
|
||||||
|
|
||||||
|
## What happened
|
||||||
|
|
||||||
|
Node on this machine was upgraded from 22.11 to 22.23.4 (the upgrade G0.20 asked for). A content test
|
||||||
|
then failed: *every zone Intl knows has a guess*: the new Node knows **America/Coyhaique** (created
|
||||||
|
in 2025 for Chile's Aysén region), and the town list, built under the old Node, had no guess for it.
|
||||||
|
|
||||||
|
Rebuilding (`scripts/build-places.ts`, Natural Earth 10m populated places and tzdb 2026f, downloaded
|
||||||
|
again with Mark's permission) did not fix it, and a town-by-town comparison found more:
|
||||||
|
|
||||||
|
| Town | Before | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| **Santiago, Valparaíso** | America/Punta_Arenas | Natural Earth files them under **America/Sao_Paulo**. Its fixed UTC−3 matched Chile's fixed-clock southern zone, so the "same clock as one of the country's zones" rule moved Chile's capital onto a clock without daylight saving: its sunset an hour off for half the year. Under the new Node the same rule picked Coyhaique instead. |
|
||||||
|
| **Coyhaique, Puerto Aisén, Cochrane, Villa O'Higgins** | America/Santiago | Natural Earth predates Aysén's 2025 split. |
|
||||||
|
| **Punta Arenas, Puerto Natales, Puerto Williams, Río Verde** | America/Santiago | Natural Earth predates Magallanes' 2016 split: wrong since the first build. |
|
||||||
|
| Yellowknife, Fort Simpson (Canada) | Cambridge_Bay, Dawson_Creek | The rebuild under the new time zone data files them under Edmonton (Mountain time with daylight saving, as both keep). |
|
||||||
|
|
||||||
|
## The fix
|
||||||
|
|
||||||
|
| # | Change | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| C1 | **Another country's own zone is never trusted** for a town, however alike its clock. The town then takes its neighbours' zone. | The clock rule exists to accept old *names* of a country's own zones (Europe/Kiev, Juneau for Anchorage), never a foreign zone. |
|
||||||
|
| C2 | **Region bands** for southern mainland Chile: 43.7° S – 49° S → America/Coyhaique; south of 49° S → America/Punta_Arenas. Source: zone1970.tab's comments and the regions' borders. | Natural Earth's region names are unreliable (*Ais*, *Aisén…*, Villa O'Higgins under Argentina's *Santa Cruz*); latitude along the real borders is not. Mainland only, so Easter Island keeps Pacific/Easter. |
|
||||||
|
|
||||||
|
Twelve towns changed, each listed above; every other town kept its zone. Every zone the new Node
|
||||||
|
knows has a guess again.
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| Another country's zone trusted again | CAUGHT: 2 (Santiago, Valparaíso) |
|
||||||
|
| No region bands | CAUGHT: 5 |
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Correctness | A player who chose Santiago or Valparaíso before this fix has the wrong zone **saved in their profile** (`sunsetPlace` keeps the town with its zone). | Nobody has: the app is not deployed (G0.13). Recorded so a later data fix knows to ask whether a saved town needs refreshing. |
|
||||||
|
| 2 | Correctness | Band edges are approximate (the Aysén–Magallanes border is not a straight line of latitude). | Only the towns in the list matter, and each is checked against its region; none lies within 0.5° of an edge except Villa O'Higgins (48.47° S), which is in Aysén, as the band says. |
|
||||||
|
| 3 | Testing | The original data had this bug since its first build; no test pinned a Chilean town. | Nine towns pinned now (`places.test.ts`); drilled. |
|
||||||
|
| 4 | Process | The bug surfaced only because a runtime upgrade changed what "every zone" means. | Lesson in `technical.md`: data built against a runtime's time zone data is checked again when the runtime changes. |
|
||||||
|
| — | Soul, privacy, reachability, offline | Unchanged: the list is bundled and searched on the device. | — |
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
Counts in HANDOVER. The town list is bundled lazily (the `places` chunk): **the app changed** for a
|
||||||
|
player who searches Chile; rebuilt by the e2e and offline runs; not deployed.
|
||||||
@@ -39,7 +39,7 @@ that is not a whole number in range is refused, never quietly the default.
|
|||||||
| 2 | `ROSEA_CPU_MAX=100` is a way round the rule. | Documented as for dedicated machines only, in CLAUDE.md §5.7 and the lesson. An override nobody can use would push people to edit the script instead. |
|
| 2 | `ROSEA_CPU_MAX=100` is a way round the rule. | Documented as for dedicated machines only, in CLAUDE.md §5.7 and the lesson. An override nobody can use would push people to edit the script instead. |
|
||||||
| 3 | The guard adds 2 s to every full run on a quiet machine. | Accepted. |
|
| 3 | The guard adds 2 s to every full run on a quiet machine. | Accepted. |
|
||||||
| 4 | Filtered runs (`pnpm --filter X test`) and drills are not guarded. | By design: they are not full runs. |
|
| 4 | Filtered runs (`pnpm --filter X test`) and drills are not guarded. | By design: they are not full runs. |
|
||||||
| 5 | Its own 2 s sample could read its own start-up as load. | It samples after Node has started. Not measured on a quiet machine: this one was busy all session. Beside Windows' counter it read 2–11 points lower, never higher. |
|
| 5 | Its own 2 s sample could read its own start-up as load. | It samples after Node has started. Later, on a quiet machine, it read 2.4–4.1 % beside Windows' 1.5–3.3 %; busy, 2–11 points lower. Close enough for an 80 % line. |
|
||||||
|
|
||||||
## Not verified
|
## Not verified
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Review — `fix/two-tabs`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/two-tabs.md`](../features/two-tabs.md).
|
||||||
|
Reviewed 2026-11-07 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
|
||||||
|
|
||||||
|
## The measurement
|
||||||
|
|
||||||
|
CLAUDE.md §8 predicted *derived state drifts; use a BroadcastChannel lock*. Two e2e tests were
|
||||||
|
written first and run against the built app: both **failed** (a tab already open saw neither care
|
||||||
|
nor a town chosen in another tab). Reading the code explained why, and showed what the
|
||||||
|
prediction got wrong: there is no `derived` store and the log is append-only, so nothing stored
|
||||||
|
can drift and no lock is needed. What drifted was each tab's view, which can make the player water
|
||||||
|
her twice. Both tests pass after the fix.
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
Counts are on the merge; HANDOVER repeats them. New: storage +7, ui +3, e2e +2 (the measurement).
|
||||||
|
|
||||||
|
**The app changed** (CLAUDE.md §5.4), invisibly in one tab: another open tab now follows it.
|
||||||
|
Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| Care is announced before it is written | CAUGHT |
|
||||||
|
| A petal is never announced | CAUGHT |
|
||||||
|
| A town is never announced | CAUGHT |
|
||||||
|
| Any message counts as a change | CAUGHT |
|
||||||
|
| The rose replaces her view with a stale read | CAUGHT |
|
||||||
|
| The rose does not listen | CAUGHT |
|
||||||
|
| The garden ignores a town from another tab | CAUGHT |
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
| # | Area | Finding | Resolution |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 | Correctness | A tab's own care can still be on its way to IndexedDB when another tab's news makes it read; a plain replace would drop that care from view, and nothing would bring it back. | The read is added to what the tab shows, never replaces it (the log only grows); drilled. |
|
||||||
|
| 2 | Correctness | Two reads overlapping, finishing out of order. | Same answer: each only adds, so order does not matter. |
|
||||||
|
| 3 | Correctness | Announcing before the commit would make the other tab read too early. | Announced after `add` / after the transaction resolves; drilled. |
|
||||||
|
| 4 | Correctness | A tab mid-pour when the other tab's care arrives: the can now measures against the new level. | Accepted: that is the true level. |
|
||||||
|
| 5 | Design | A town arriving while this tab is searching for one: the search closes and the new town shows. | Accepted: the player's choice in the other tab is the newer one. A tab in the middle of *Change town* keeps its open search (only the shown town updates). |
|
||||||
|
| 6 | Privacy | A `BroadcastChannel` message. | Same origin, same browser profile only; one word (`log`, `place`), no data. Nothing leaves the device. |
|
||||||
|
| 7 | Compatibility | Browsers without `BroadcastChannel` (Safari before 15.4). | Each tab keeps its own view, as before; no data is affected; tested with it removed. |
|
||||||
|
| 8 | Process | The measurement commit would have been red on its own. | The branch was regrouped before pushing so every commit is green: the tests land with the fix. |
|
||||||
|
| 9 | Process | On 2026-11-07 the root `node_modules` was missing (cause unknown; the code and history were intact). | Restored with `pnpm install --frozen-lockfile`, which also reinstalled the hooks. |
|
||||||
|
| — | Soul, reachability, offline | Looked; the fix removes a way the game could blame her care for its own mistake. Nothing new is shown or sent; works offline. | — |
|
||||||
|
|
||||||
|
## What was not verified
|
||||||
|
|
||||||
|
- Safari and Firefox (BroadcastChannel across an installed app and a tab); a phone.
|
||||||
|
- The KeepSafe path across tabs end to end (bringing her back in one tab, seen in the other):
|
||||||
|
covered by the storage test that a brought-back rose announces `log`, not by an e2e.
|
||||||
@@ -218,7 +218,8 @@ pnpm --filter @rosea/engine test # incl. fast-check property tests and t
|
|||||||
tsx scripts/fetch-sun-golden.ts # re-records the sun's published tables (network; by hand, never in a test)
|
tsx scripts/fetch-sun-golden.ts # re-records the sun's published tables (network; by hand, never in a test)
|
||||||
pnpm test:e2e # builds, then Playwright against the BUILT app under /Rosea/
|
pnpm test:e2e # builds, then Playwright against the BUILT app under /Rosea/
|
||||||
pnpm test:offline # builds, loads once, CLOSES the server, reloads
|
pnpm test:offline # builds, loads once, CLOSES the server, reloads
|
||||||
pnpm validate:library # every hope sentence; fixtures must FAIL
|
pnpm validate:library # every hope sentence and candidate; fixtures must FAIL
|
||||||
|
pnpm library:verify <id…> --by <name> # the AUTHOR moves checked candidates into the library; agents never run it
|
||||||
pnpm lint:copy # forbidden words and names (§5.6)
|
pnpm lint:copy # forbidden words and names (§5.6)
|
||||||
pnpm guard:cpu # waits for, then refuses, a machine above 80 % CPU (§5.7)
|
pnpm guard:cpu # waits for, then refuses, a machine above 80 % CPU (§5.7)
|
||||||
pnpm art:board # prompts + stand-ins -> tools/art-prep/dist/board/ (docs/ART.md)
|
pnpm art:board # prompts + stand-ins -> tools/art-prep/dist/board/ (docs/ART.md)
|
||||||
@@ -249,11 +250,11 @@ for the build and for both Playwright suites together.
|
|||||||
|
|
||||||
| Store | Contents | Written by |
|
| Store | Contents | Written by |
|
||||||
|:--|:--|:--|
|
|:--|:--|:--|
|
||||||
| `events` | **append-only** log: care given, care received, planet steps, sunsets seen or missed, gestures | `packages/storage`, from the game loop |
|
| `events` | **append-only** log: care given, care received, petals opened, planet steps, sunsets seen or missed, gestures | `packages/storage`, from the game loop |
|
||||||
| `derived` | rose stage, fox distance, paths, sky light — rebuilt from `events` | `packages/storage`, from values the engine returns |
|
| `derived` | rose stage, fox distance, paths, sky light — rebuilt from `events` | `packages/storage`, from values the engine returns |
|
||||||
| `profile` | the rose's name (the only name Rosea knows), chosen city for sunset (skippable; fallback is the device time zone; never GPS), settings, opt-ins | settings screen |
|
| `profile` | the rose's name (the only name Rosea knows), chosen city for sunset (skippable; fallback is the device time zone; never GPS), settings, opt-ins | settings screen |
|
||||||
| `keys` | the identity keypair | `packages/identity` |
|
| `keys` | the identity keypair | `packages/identity` |
|
||||||
| `library` | the cached hope library and planets' content, versioned | `packages/content` |
|
| `library` | the cached hope library and planets' content, versioned — not used yet: the library is bundled at build time (day-sentence.md P5) | `packages/content` |
|
||||||
|
|
||||||
**`events` is the truth; `derived` is a cache.** Anything in `derived` must be reconstructible by
|
**`events` is the truth; `derived` is a cache.** Anything in `derived` must be reconstructible by
|
||||||
replaying `events` through the engine. A number that cannot be derived from the log does not belong in
|
replaying `events` through the engine. A number that cannot be derived from the log does not belong in
|
||||||
@@ -447,8 +448,8 @@ player can send another player, and the sender picks one.
|
|||||||
"trace": "petal:<colour>", "messageId": "ps-23-4" | null, "clientVersion": "0.1.0" }
|
"trace": "petal:<colour>", "messageId": "ps-23-4" | null, "clientVersion": "0.1.0" }
|
||||||
// act applies to the player's own rose or another player's. (This example once
|
// act applies to the player's own rose or another player's. (This example once
|
||||||
// listed "wind" | "light"; §1's weeds and fallen petals won — phase0-workspace.md D5.)
|
// listed "wind" | "light"; §1's weeds and fallen petals won — phase0-workspace.md D5.)
|
||||||
// Only "care" is in packages/schema so far; each other kind arrives with the feature doc that uses it.
|
// "care" and "sentence-opened" are in packages/schema so far; each other kind arrives with the
|
||||||
// other kinds: "sentence-opened", "sunset" (seen), "planet-step", "fox" (pet | brush | feed),
|
// feature doc that uses it. Other kinds: "sunset" (seen), "planet-step", "fox" (pet | brush | feed),
|
||||||
// "harvest" (berry kind), "thanks", "lantern" (lit — never unlit)
|
// "harvest" (berry kind), "thanks", "lantern" (lit — never unlit)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -508,7 +509,7 @@ No timestamp finer than a day, no precise location, no free text, no link to the
|
|||||||
| **Medical claims in a store listing** | One word like *heal* in marketing copy can pull the product toward medical-device rules. `lint:copy` also runs on store text kept in the repo. |
|
| **Medical claims in a store listing** | One word like *heal* in marketing copy can pull the product toward medical-device rules. `lint:copy` also runs on store text kept in the repo. |
|
||||||
| **IndexedDB is evictable** *(predicted; answered by `keep-her-safe.md`)* | WebKit can discard origin storage after seven days without interaction — exactly the shape of a player who drifted away and comes back. Call `navigator.storage.persist()` where it exists, prompt iOS players to install, and make export-my-rose a first-class feature. A player returning to find their rose gone is the cruellest bug this product could have. |
|
| **IndexedDB is evictable** *(predicted; answered by `keep-her-safe.md`)* | WebKit can discard origin storage after seven days without interaction — exactly the shape of a player who drifted away and comes back. Call `navigator.storage.persist()` where it exists, prompt iOS players to install, and make export-my-rose a first-class feature. A player returning to find their rose gone is the cruellest bug this product could have. |
|
||||||
| **The stale service worker** *(answered by `calm-refresh.md`)* | A precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer an explicit, calm *refresh* control. |
|
| **The stale service worker** *(answered by `calm-refresh.md`)* | A precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer an explicit, calm *refresh* control. |
|
||||||
| **Two tabs, one database** *(predicted)* | Two event streams into one store; derived state drifts. Use a `BroadcastChannel` lock. |
|
| **Two tabs, one database** *(measured 2026-11-07; answered by `two-tabs.md`)* | Predicted: derived state drifts, use a lock. Measured: nothing stored drifts (the log is append-only, there is no `derived` store yet), so no lock — but each tab's **view** went stale, and a player could water her twice. `packages/storage` announces each committed write on a `BroadcastChannel`; the other tabs read again, keeping what they already show. When a `derived` store arrives, decide the lock again. |
|
||||||
| **GitHub Pages serves under a sub-path** *(predicted)* | A project site lives at `/<repo>/`, not `/`. Vite `base`, the web manifest `start_url` and `scope`, and the service worker scope must all agree, or the installed app opens a 404 or never updates. The offline suite runs against the same base path. |
|
| **GitHub Pages serves under a sub-path** *(predicted)* | A project site lives at `/<repo>/`, not `/`. Vite `base`, the web manifest `start_url` and `scope`, and the service worker scope must all agree, or the installed app opens a 404 or never updates. The offline suite runs against the same base path. |
|
||||||
| **GitHub Pages cannot set response headers** *(predicted)* | No custom CSP or cache headers. The content-security policy goes in a `<meta>` tag; caching is controlled by the service worker and hashed filenames. |
|
| **GitHub Pages cannot set response headers** *(predicted)* | No custom CSP or cache headers. The content-security policy goes in a `<meta>` tag; caching is controlled by the service worker and hashed filenames. |
|
||||||
| **Pages hosts files, not services** | `services/lucerna` cannot live on Pages. It runs on Mark's own server (Phase 4), and the app must work fully without it. |
|
| **Pages hosts files, not services** | `services/lucerna` cannot live on Pages. It runs on Mark's own server (Phase 4), and the app must work fully without it. |
|
||||||
@@ -527,7 +528,7 @@ No timestamp finer than a day, no precise location, no free text, no link to the
|
|||||||
| Change how the rose grows | `packages/engine/src/growth/` |
|
| Change how the rose grows | `packages/engine/src/growth/` |
|
||||||
| Change how the fox comes closer | `packages/engine/src/taming/` |
|
| Change how the fox comes closer | `packages/engine/src/taming/` |
|
||||||
| Change the sunset or sunrise | `packages/engine/src/sun/` — read the polar and DST traps first |
|
| Change the sunset or sunrise | `packages/engine/src/sun/` — read the polar and DST traps first |
|
||||||
| Add or edit hope sentences | `content/library/` — then `pnpm validate:library` |
|
| Add or edit hope sentences | Agents propose in `content/candidates/`; the author verifies with `pnpm library:verify`. Then `pnpm validate:library` |
|
||||||
| Change what friends can send each other | `packages/schema` §6.1 — and re-read §5.6 rule 1 |
|
| Change what friends can send each other | `packages/schema` §6.1 — and re-read §5.6 rule 1 |
|
||||||
| Change the shared sky | `services/lucerna/` — and re-read §4 and §5.6 rules 6–7 |
|
| Change the shared sky | `services/lucerna/` — and re-read §4 and §5.6 rules 6–7 |
|
||||||
| Understand a past decision | `.agents/features/*.md`, `git log`, `.agents/reviews/*.md` |
|
| Understand a past decision | `.agents/features/*.md`, `git log`, `.agents/reviews/*.md` |
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
|
|||||||
Gitea hashes match. Analysis: [`.agents/features/phase0-workspace.md`](.agents/features/phase0-workspace.md).
|
Gitea hashes match. Analysis: [`.agents/features/phase0-workspace.md`](.agents/features/phase0-workspace.md).
|
||||||
Review, with counts and the mutation results:
|
Review, with counts and the mutation results:
|
||||||
[`.agents/reviews/feature-phase0-workspace.md`](.agents/reviews/feature-phase0-workspace.md).
|
[`.agents/reviews/feature-phase0-workspace.md`](.agents/reviews/feature-phase0-workspace.md).
|
||||||
- **Gates:** all pass on this machine. Unit tests: 389 (cpu-guard 13, identity 5, schema 16,
|
- **Gates:** all pass on this machine. Unit tests: 489 (cpu-guard 13, identity 5, schema 19,
|
||||||
content 71, storage 51, art-prep 56, engine 136, ui 41). E2E: 14. Offline: 1. `lint:copy`: 19 files, 0 problems.
|
content 88, storage 65, art-prep 61, engine 174, ui 64). E2E: 22. Offline: 1. `lint:copy`: 21 files, 0 problems.
|
||||||
`validate:library`: 13 of 13 fixtures rejected.
|
`validate:library`: 13 of 13 fixtures rejected; 78 candidates pass.
|
||||||
- **Built, not deployed:** there is no host yet.
|
- **Built, not deployed:** there is no host yet.
|
||||||
- **Roadmap and gameplay docs:** `docs/ROADMAP.md` and `docs/GAMEPLAY.md` are on
|
- **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
|
`docs/roadmap-gameplay`, as the author gave them, together with a read against the
|
||||||
@@ -27,8 +27,12 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
|
|||||||
[`.agents/reviews/feature-letter-slot.md`](.agents/reviews/feature-letter-slot.md).
|
[`.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
|
- **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)
|
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
|
lists 86 pictures in phase order, everything Phases 1–5 need (34 for Phase 1; the planets are drafts
|
||||||
lanterns (Phase 3). 63 stand-ins are in `art/placeholders/`. The planets wait for their own feature docs. `tools/art-prep` builds
|
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/`
|
prompts and the board (`pnpm art:board`) and moves accepted pictures into `art/final/`
|
||||||
(`pnpm art:accept`). The board is published, private:
|
(`pnpm art:accept`). The board is published, private:
|
||||||
https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then
|
https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then
|
||||||
@@ -71,6 +75,47 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
|
|||||||
*Refresh*. Nothing reloads by itself. With this, fixes can reach a phone once the app is hosted.
|
*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).
|
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).
|
||||||
|
- **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
|
**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
|
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).
|
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).
|
||||||
@@ -80,15 +125,18 @@ The notification decision is made: in-app only on the web (G0.26).
|
|||||||
|
|
||||||
1. **The Letter:** the words in `docs/LETTER.md`, the verified support lines for the
|
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).
|
door to real help (G0.27), and Q9 (may the letter name the book).
|
||||||
2. **Sentences:** an agent may propose public-domain candidates with their sources.
|
2. **Sentences:** 78 candidates are ready in `content/candidates/` (10 flagged in its README).
|
||||||
Only the author can mark one verified.
|
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).
|
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.
|
**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
|
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>`,
|
(`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/<set>`,
|
||||||
and writes `final` back into the row.
|
and writes `final` back into the row.
|
||||||
4. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
|
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).
|
5. **Node is upgraded** (22.23.4); unpinning the dependencies pinned for 22.11 remains (G0.20).
|
||||||
6. **The rose's tuning** (`.agents/features/rose.md` R2, R4, R5, R6, all in `ROSE` in
|
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
|
`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,
|
come, and how many days of care each stage takes (full bloom after 25). Play it for a week,
|
||||||
@@ -98,6 +146,13 @@ The notification decision is made: in-app only on the web (G0.26).
|
|||||||
|
|
||||||
- **The CPU guard:** the full runs wait for this machine to drop to 80 % CPU (§5.7). Other projects'
|
- **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.
|
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.
|
||||||
|
|
||||||
- **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in
|
- **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in
|
||||||
this repository only.
|
this repository only.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.",
|
"description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host 127.0.0.1 --port 5173 --strictPort",
|
"dev": "vite --host 127.0.0.1 --port 5173 --strictPort",
|
||||||
"build": "vite build",
|
"build": "tsx ../../scripts/validate-library.ts && vite build",
|
||||||
"typecheck": "svelte-check --threshold error --output human"
|
"typecheck": "svelte-check --threshold error --output human"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
import { version } from '../package.json';
|
import { version } from '../package.json';
|
||||||
// Bundled at build time, so the letter is precached and opens offline (letter-slot.md L1).
|
// Bundled at build time, so the letter is precached and opens offline (letter-slot.md L1).
|
||||||
import letter from '../../../docs/LETTER.md?raw';
|
import letter from '../../../docs/LETTER.md?raw';
|
||||||
|
// The verified hope library, bundled after validate:library passed (day-sentence.md P5).
|
||||||
|
import sentences from 'virtual:rosea-library';
|
||||||
|
|
||||||
// The device's own zone, read here and nowhere else: the engine never asks the
|
// The device's own zone, read here and nowhere else: the engine never asks the
|
||||||
// device anything (CLAUDE.md §2). Only the zone's name; never GPS, never a lookup.
|
// device anything (CLAUDE.md §2). Only the zone's name; never GPS, never a lookup.
|
||||||
@@ -27,7 +29,9 @@
|
|||||||
search: async (query) => (await loadTowns()).searchTowns(query),
|
search: async (query) => (await loadTowns()).searchTowns(query),
|
||||||
load: () => storage.loadSunsetPlace(),
|
load: () => storage.loadSunsetPlace(),
|
||||||
save: (choice) => storage.saveSunsetPlace(choice),
|
save: (choice) => storage.saveSunsetPlace(choice),
|
||||||
now: () => Date.now()
|
now: () => Date.now(),
|
||||||
|
// Another tab of the garden chose a town (two-tabs.md).
|
||||||
|
changes: (listener) => storage.onChange((what) => what === 'place' && listener())
|
||||||
};
|
};
|
||||||
|
|
||||||
// The player's key names their rose (rose.md). Kept once; if the device will not
|
// The player's key names their rose (rose.md). Kept once; if the device will not
|
||||||
@@ -92,6 +96,11 @@
|
|||||||
await storage.appendCare(event);
|
await storage.appendCare(event);
|
||||||
keepAfterCare();
|
keepAfterCare();
|
||||||
},
|
},
|
||||||
|
sentences,
|
||||||
|
loadOpened: () => storage.loadOpened(),
|
||||||
|
appendOpened: (event) => storage.appendOpened(event),
|
||||||
|
// Another tab gave care, opened a petal or brought her back (two-tabs.md).
|
||||||
|
changes: (listener) => storage.onChange((what) => what === 'log' && listener()),
|
||||||
clientVersion: version,
|
clientVersion: version,
|
||||||
deviceZone,
|
deviceZone,
|
||||||
now: () => Date.now(),
|
now: () => Date.now(),
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
/// <reference types="svelte" />
|
/// <reference types="svelte" />
|
||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
/// <reference types="vite-plugin-pwa/client" />
|
/// <reference types="vite-plugin-pwa/client" />
|
||||||
|
|
||||||
|
declare module 'virtual:rosea-library' {
|
||||||
|
import type { HopeSentence } from '@rosea/schema';
|
||||||
|
/** The verified hope library, bundled at build time after validate:library passed (day-sentence.md P5). */
|
||||||
|
const library: readonly HopeSentence[];
|
||||||
|
export default library;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
import { readdirSync, readFileSync } from 'node:fs';
|
||||||
|
import { join, resolve } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
import { defineConfig, type Plugin } from 'vite';
|
import { defineConfig, type Plugin } from 'vite';
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
// A relative path, not '@rosea/schema', on purpose. Vite bundles a config's
|
// A relative path, not '@rosea/schema', on purpose. Vite bundles a config's
|
||||||
@@ -55,12 +58,43 @@ function contentSecurityPolicy(): Plugin {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The hope library, bundled at build time as `virtual:rosea-library`
|
||||||
|
* (day-sentence.md P5). The build script runs `validate:library` first and stops if
|
||||||
|
* it fails, so the app holds exactly what passed and never validates in the browser
|
||||||
|
* (GAP_ANALYSIS G0.12: Ajv needs `new Function`, which the CSP forbids).
|
||||||
|
* `ROSEA_LIBRARY_DIR` swaps the folder, for the e2e build only.
|
||||||
|
*/
|
||||||
|
const LIBRARY_DIR = resolve(fileURLToPath(new URL('../..', import.meta.url)), process.env['ROSEA_LIBRARY_DIR'] ?? 'content/library');
|
||||||
|
|
||||||
|
function hopeLibrary(): Plugin {
|
||||||
|
const id = 'virtual:rosea-library';
|
||||||
|
const resolved = `\0${id}`;
|
||||||
|
return {
|
||||||
|
name: 'rosea-library',
|
||||||
|
resolveId: (source) => (source === id ? resolved : undefined),
|
||||||
|
load(source) {
|
||||||
|
if (source !== resolved) return undefined;
|
||||||
|
const entries: unknown[] = [];
|
||||||
|
for (const file of readdirSync(LIBRARY_DIR).filter((f) => f.endsWith('.json')).sort()) {
|
||||||
|
const path = join(LIBRARY_DIR, file);
|
||||||
|
this.addWatchFile(path);
|
||||||
|
const data: unknown = JSON.parse(readFileSync(path, 'utf8'));
|
||||||
|
if (!Array.isArray(data)) throw new Error(`${path}: must be an array of entries`);
|
||||||
|
entries.push(...data);
|
||||||
|
}
|
||||||
|
return `export default ${JSON.stringify(entries)};`;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Nothing binds to anything but 127.0.0.1 (CLAUDE.md §5.7).
|
// Nothing binds to anything but 127.0.0.1 (CLAUDE.md §5.7).
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: BASE,
|
base: BASE,
|
||||||
plugins: [
|
plugins: [
|
||||||
svelte(),
|
svelte(),
|
||||||
contentSecurityPolicy(),
|
contentSecurityPolicy(),
|
||||||
|
hopeLibrary(),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
strategies: 'generateSW',
|
strategies: 'generateSW',
|
||||||
// Never swap a running app silently. A new worker waits until the player
|
// Never swap a running app silently. A new worker waits until the player
|
||||||
|
|||||||
@@ -13,6 +13,14 @@ A picture that is off-style goes back for another try. It is never shipped.
|
|||||||
> **The fox and the Phase 2–3 pictures** (F1–F4 in §0, §3a, the new rows in §2 and §4, review
|
> **The fox and the Phase 2–3 pictures** (F1–F4 in §0, §3a, the new rows in §2 and §4, review
|
||||||
> points 8–9) were added later the same day and **approved by Mark** with one change: the fox's
|
> points 8–9) were added later the same day and **approved by Mark** with one change: the fox's
|
||||||
> coat is a deep red-orange, not the drafted muted russet.
|
> coat is a deep red-orange, not the drafted muted russet.
|
||||||
|
>
|
||||||
|
> **Rewritten 2026-11-07, at Mark's request.** The first `rose-sheet` came back as wet, pale
|
||||||
|
> watercolour with a smiley face on a round ball inside the petals: a children's sticker sheet,
|
||||||
|
> and the opposite of S1. Mark did not like it. The choices S1–S5 stand; the words that carry
|
||||||
|
> them were too weak. §1 now leads with the look and says it positively, §3 puts the face *on*
|
||||||
|
> the petals, and §6 makes prompts short enough for a generator to follow. The book's motifs
|
||||||
|
> are no longer named in prompts (naming them invites them); they stay in §4 and §7, where the
|
||||||
|
> review catches them. The picture list grew to every picture Phases 1–5 need (§4).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -39,17 +47,21 @@ A picture that is off-style goes back for another try. It is never shipped.
|
|||||||
|
|
||||||
## 1. The system prompt (paste word for word)
|
## 1. The system prompt (paste word for word)
|
||||||
|
|
||||||
> Soft, hand-made 2D storybook illustration painted in matte gouache with a gentle dry-brush
|
> A hand-painted picture in opaque, matte gouache on warm off-white paper, for a quiet game made
|
||||||
> texture on warm off-white paper. Simple rounded shapes built from flat, soft colour areas with
|
> for grown-ups. Flat, chalky areas of colour with visible dry-brush strokes and the grain of the
|
||||||
> two or three gentle tonal steps; no wet watercolour blooms, no thin scratchy pen line. Outlines
|
> paper showing through; two or three soft tonal steps in each shape, no smooth blending.
|
||||||
> are soft, slightly irregular brush lines in deep plum-brown, never pure black, never a hard
|
> Every form is edged with a soft brush line in deep plum-brown that swells and thins, slightly
|
||||||
> vector line. Light is low and warm, as late in the day, coming from the left. The mood is
|
> uneven, as a painter's line does. Simple, confident shapes with a clear silhouette that still
|
||||||
> quiet, tender and hopeful, with generous calm space that never feels empty or bleak.
|
> reads when the picture is small. Low, warm evening light from the left: each form has a warm
|
||||||
> Characters are cute but alive, with small gentle eyes, often half-closed, and tiny mouths. No
|
> lit side and a cooler, slightly violet shaded side. A restrained palette of dusty rose, sage,
|
||||||
> text, letters or numbers anywhere in the image. No humans, no human figures, hands or faces,
|
> moss green, honey and warm umber; amber gold and coral appear only in evening light. The mood is
|
||||||
> no photographs, no logos, no brand characters. No 3D render look, no glossy highlights, no lens
|
> calm, tender and quietly hopeful, with a little dry humour, like a page from a finely printed
|
||||||
> effects, no gradients that look digital. Original artwork, not in the style of any existing
|
> book for adults: understated, never sugary, never a children's sticker or a cute mascot.
|
||||||
> book, illustrator or film.
|
> Characters are alive but small-featured: their faces are a few tiny marks painted directly on
|
||||||
|
> them, with eyes as small dark dots or crescents, often half-closed. No text, letters or numbers
|
||||||
|
> anywhere. No people, hands or human faces. Not watercolour: no wet washes, bleeding edges, blooms or
|
||||||
|
> pale tints. Not digital: no 3D rendering, gloss, airbrush gradients or lens effects. An
|
||||||
|
> original design, in the manner of no existing artist, book or film.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -94,10 +106,16 @@ The rose is the only character in Phase 1. Every rose picture follows the charac
|
|||||||
- **One garden rose** on a single slender stem. She is about three blooms tall, from the bloom
|
- **One garden rose** on a single slender stem. She is about three blooms tall, from the bloom
|
||||||
down to where the stem meets the soil. She has three leaves, two low and one high, and a few
|
down to where the stem meets the soil. She has three leaves, two low and one high, and a few
|
||||||
small thorns with rounded tips. The thorns are part of her and never look threatening.
|
small thorns with rounded tips. The thorns are part of her and never look threatening.
|
||||||
- **The bloom is her head.** It is made of soft, layered petals in rose (`#C85A6E`) that turn
|
- **The bloom is her head.** It is a real old garden rose: cupped, many-petalled, the outer
|
||||||
pale petal (`#F2B5BE`) at the edges. Her face sits in the middle of the bloom: two small dark
|
petals curling back, in rose (`#C85A6E`) turning pale petal (`#F2B5BE`) at the edges. It is
|
||||||
eyes, often half-closed, and a tiny mouth. When she is tended, a faint blush (`#E8899B`) shows
|
her head by its posture, not by a drawn-in head.
|
||||||
on the petals by her cheeks.
|
- **Her face is painted on the petals** at the heart of the bloom, where the inner petals fold
|
||||||
|
together: two tiny dark eyes (dots or crescents, often half-closed) and a short mouth curve,
|
||||||
|
the whole face no wider than a fifth of the bloom. **There is no round face, ball or bare
|
||||||
|
patch inside the petals**: the petals curl round the face as they would round the heart of a
|
||||||
|
real rose. When she is tended, a faint blush (`#E8899B`) warms the petals beside her eyes.
|
||||||
|
- **Proportions:** the bloom is about as wide as a third of her height; the stem is slender but
|
||||||
|
strong enough to hold it up proudly.
|
||||||
- **A little vain.** She holds her head high and keeps her petals neat. Her leaves move like
|
- **A little vain.** She holds her head high and keeps her petals neat. Her leaves move like
|
||||||
small arms: one raised when she speaks, both lowered when she is thirsty.
|
small arms: one raised when she speaks, both lowered when she is thirsty.
|
||||||
- **Stages:** a tight bud, an opening bud, a half bloom and a full bloom. Each stage has the same
|
- **Stages:** a tight bud, an opening bud, a half bloom and a full bloom. Each stage has the same
|
||||||
@@ -106,7 +124,8 @@ The rose is the only character in Phase 1. Every rose picture follows the charac
|
|||||||
closed a little, eyes looking down. She is never wilted, broken, crying, dead or losing
|
closed a little, eyes looking down. She is never wilted, broken, crying, dead or losing
|
||||||
petals in pain. Fallen petals are a care task, not damage.
|
petals in pain. Fallen petals are a care task, not damage.
|
||||||
- **Expressions:** content, sleepy, blushing, speaking, thirsty, too much water, windblown,
|
- **Expressions:** content, sleepy, blushing, speaking, thirsty, too much water, windblown,
|
||||||
waiting. Never angry, crying hard, frightened or hurt.
|
waiting, tickled (a touch), and *gently* (a rush of touches: one leaf raised, calm, never
|
||||||
|
cross — thorns.md). Never angry, crying hard, frightened or hurt.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -157,6 +176,18 @@ The fox is the second character. Every fox picture follows the character sheet `
|
|||||||
- **Paths and lanterns (Phase 3, F4):** a path through the meadow grows from paw prints, to a
|
- **Paths and lanterns (Phase 3, F4):** a path through the meadow grows from paw prints, to a
|
||||||
trodden trail, to a soft earth road edged with stones. A lantern is a small iron-and-glass
|
trodden trail, to a soft earth road edged with stones. A lantern is a small iron-and-glass
|
||||||
hand lantern hanging from a shepherd's-crook post, never a street lamp.
|
hand lantern hanging from a shepherd's-crook post, never a street lamp.
|
||||||
|
- **The planets (Phase 2, drafts).** Each lonely grown-up has a small place of their own: a
|
||||||
|
grassy hilltop seen from the side, its edge dropping away below — never a ball or a sphere.
|
||||||
|
**The grown-up is never drawn**; the place shows who lives there, and the emptiness is the
|
||||||
|
point. The pictures are drafts until each planet's feature doc decides it. The sixth
|
||||||
|
grown-up's place is left out on purpose until its feature doc decides how it can be shown
|
||||||
|
gently.
|
||||||
|
- **Visitors and mementos (Phase 2):** small garden creatures that come by (a hedgehog, a robin
|
||||||
|
at dawn, a snail, a moth, a ladybird, a small owl) and the small things they leave.
|
||||||
|
- **The shared sky (Phase 4):** the sky is code; only small lights and the lamps of the
|
||||||
|
sunset wave are pictures.
|
||||||
|
- **The share frame (Phase 5):** a border of meadow round an empty middle where the player's
|
||||||
|
sky is drawn.
|
||||||
- No flags, religious symbols, buildings, vehicles or people.
|
- No flags, religious symbols, buildings, vehicles or people.
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -185,15 +216,22 @@ of those sizes.
|
|||||||
The art board writes every prompt. Nobody types them by hand. Each prompt is §1, then:
|
The art board writes every prompt. Nobody types them by hand. Each prompt is §1, then:
|
||||||
|
|
||||||
```
|
```
|
||||||
Asset: <id>
|
Make: <what kind of image, in one plain sentence>
|
||||||
Purpose: <where it appears and what it must say, in one sentence>
|
Reference: <the character sheet to attach, and to match exactly> (character pictures only)
|
||||||
Subject: <who or what, with the character sheet to attach>
|
Subject: <who or what, and the character's look>
|
||||||
Setting / Canvas / Layout: <by kind: see §5 and §9>
|
Setting / Layout: <the scene, or the grid in words: columns, rows, gaps>
|
||||||
Size: <made at W × H px, background>
|
Canvas: <W × H px, background>
|
||||||
Must include: <…>
|
Include: <…>
|
||||||
Must avoid: <the picture's own list, then the list every picture shares (§4)>
|
Avoid: <a short list: the picture's own, then the few every picture shares>
|
||||||
|
Board id: <id>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Why this shape (2026-11-07): generators follow the first lines and drift on the rest. So the
|
||||||
|
look comes first (§1), the picture second, and nothing a generator cannot use: no pixel
|
||||||
|
coordinates (the board's cutting overlay and `art:accept` keep those), and no long lists of
|
||||||
|
things not to draw. Naming a motif, even to forbid it, makes it likelier; the book's motifs are
|
||||||
|
therefore checked in review (§4, §7), not written into prompts.
|
||||||
|
|
||||||
`tools/art-prep` builds the prompts from `art/manifest.json` (`pnpm art:board`), and a test
|
`tools/art-prep` builds the prompts from `art/manifest.json` (`pnpm art:board`), and a test
|
||||||
checks that each one starts with §1 word for word.
|
checks that each one starts with §1 word for word.
|
||||||
|
|
||||||
@@ -204,7 +242,8 @@ checks that each one starts with §1 word for word.
|
|||||||
The board shows these under each card, and Claude's review checks them. Mark doesn't have to
|
The board shows these under each card, and Claude's review checks them. Mark doesn't have to
|
||||||
tick them: *Accept* is one tap.
|
tick them: *Accept* is one tap.
|
||||||
|
|
||||||
0. It reads as one living garden rose with a soft face in her bloom: small eyes, a tiny mouth.
|
0. It reads as one living garden rose, her face a few tiny marks painted on her inner petals,
|
||||||
|
with no round ball face, and calm enough for grown-ups, not a sticker.
|
||||||
1. She matches `rose-sheet`: the same bloom, petal colours, three leaves and rounded thorns.
|
1. She matches `rose-sheet`: the same bloom, petal colours, three leaves and rounded thorns.
|
||||||
2. The colours stay within §2, with soft plum-brown outlines, in matte gouache, not wet watercolour.
|
2. The colours stay within §2, with soft plum-brown outlines, in matte gouache, not wet watercolour.
|
||||||
3. Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no
|
3. Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||||
|
<!-- Stand-in for app-icon-maskable (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<rect width="1024" height="1024" fill="#e9846a"/><rect y="512" width="1024" height="512" fill="#f2b860" opacity=".6"/> <circle cx="512" cy="512" r="307.2" fill="none" stroke="#fbf6f1" stroke-width="4" stroke-dasharray="16 12"/> <svg x="256" y="225.28" width="512" height="573.44" viewBox="0 30 200 230"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for care-props-more-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<svg x="0" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><ellipse cx="100" cy="160" rx="80" ry="22" fill="#8a6248" opacity=".85"/><path d="M70 160 l-14 -40 l12 10 l2 -22 l8 18 l10 -16 l-4 44z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M100 160 l-14 -50 l12 10 l2 -27 l8 18 l10 -16 l-4 52z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M130 160 l-14 -60 l12 10 l2 -32 l8 18 l10 -16 l-4 60z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="768" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><g transform="rotate(24 100 110)"><rect x="70" y="80" width="90" height="80" rx="18" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/><path d="M80 80 q35 -55 70 0" fill="none" stroke="#3a2730" stroke-width="7"/><path d="M72 110 L32 70" stroke="#3a2730" stroke-width="10" stroke-linecap="round"/></g><path d="M24 66 q-6 40 -4 90" fill="none" stroke="#9cc3d8" stroke-width="6" stroke-linecap="round"/><circle cx="16" cy="170" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/><circle cx="30" cy="182" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/></g></svg><svg x="0" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><path d="M20 60 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><path d="M20 100 q60 -30 110 0 t60 -10" fill="none" stroke="#f3e3c8" stroke-width="10" stroke-linecap="round"/><path d="M20 140 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><ellipse cx="150" cy="70" rx="16" ry="7" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 150 70)"/><ellipse cx="80" cy="150" rx="14" ry="6" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(20 80 150)"/></g></svg><svg x="768" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><path d="M70 57.599999999999994 q14 22.400000000000002 0 36.4 q-14 -14 0 -36.4z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M120 54 q10 16 0 26 q-10 -10 0 -26z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M100 94.4 q16 25.6 0 41.6 q-16 -16 0 -41.6z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M140 115.6 q9 14.4 0 23.400000000000002 q-9 -9 0 -23.400000000000002z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M60 127.2 q8 12.8 0 20.8 q-8 -8 0 -20.8z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||||
|
<!-- Stand-in for favicon-mark (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<rect width="1024" height="1024" fill="#f2b860"/><circle cx="686.1" cy="512.0" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="599.0" cy="662.8" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="425.0" cy="662.8" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="337.9" cy="512.0" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="425.0" cy="361.2" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="599.0" cy="361.2" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="512" cy="512" r="163.84" fill="#f2b5be" stroke="#3a2730" stroke-width="12"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 919 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for foxes-meeting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(409.6 153.6) scale(3.5840)"><svg x="0" y="50" width="200" height="100" viewBox="0 0 600 260"><g transform="translate(300 0) scale(-1 1)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g><g transform="translate(300 0)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g></svg></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||||
|
<!-- Stand-in for geographers-book (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(153.6 153.6) scale(3.5840)"><path d="M20 70 q40 -14 80 0 q40 -14 80 0 v90 q-40 -14 -80 0 q-40 -14 -80 0z" fill="#fbf6f1" stroke="#3a2730" stroke-width="5"/><path d="M100 70 v90" stroke="#3a2730" stroke-width="3"/><path d="M16 66 v100 h168 v-100" fill="none" stroke="#4f6e52" stroke-width="8"/><path d="M34 92 h52 M114 92 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M34 110 h52 M114 110 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M34 128 h52 M114 128 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M120 160 v30 l6 -8 l6 8 v-30" fill="#f2b860" stroke="#3a2730" stroke-width="2"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 852 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for letter-header (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(409.6 153.6) scale(3.5840)"><rect x="20" y="60" width="160" height="110" rx="6" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M40 70 h120 v90 h-120z" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><path d="M100 70 v90" stroke="#3a2730" stroke-width="2"/><ellipse cx="128" cy="110" rx="18" ry="11" fill="#c85a6e" stroke="#3a2730" stroke-width="3" transform="rotate(-25 128 110)"/><path d="M60 150 q20 -40 40 -60" fill="none" stroke="#4f6e52" stroke-width="4"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 734 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-acorn-cup (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M50 100 q50 70 100 0z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 h100" stroke="#3a2730" stroke-width="4"/><path d="M100 100 v-30" stroke="#5a3a33" stroke-width="6"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 484 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-feather (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M40 160 Q 100 30 170 40 Q 130 120 40 160z" fill="#b8b0a8" stroke="#3a2730" stroke-width="4"/><path d="M40 160 Q 110 90 170 40" fill="none" stroke="#e9846a" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 466 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-pebble (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="70" ry="46" fill="#c9c4bc" stroke="#3a2730" stroke-width="4"/><path d="M50 100 q50 20 100 4" fill="none" stroke="#fbf6f1" stroke-width="5"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 453 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-pressed-flower (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 170 V 90" stroke="#4f6e52" stroke-width="5"/><ellipse cx="80" cy="140" rx="18" ry="8" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 80 140)"/><circle cx="122.0" cy="70.0" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="90.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="82.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="57.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="49.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="70" r="8" fill="#f2b860"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 946 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-seed-head (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 190 V 100" stroke="#4f6e52" stroke-width="5"/><circle cx="100" cy="80" r="50" fill="#fbf6f1" stroke="#3a2730" stroke-width="3" stroke-dasharray="4 6"/><path d="M100 80 l46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for memento-snail-shell (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="105" r="56" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M100 105 m-34 0 a34 34 0 1 1 34 34 a18 18 0 1 1 -18 -18" fill="none" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 483 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for mementos-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M40 160 Q 100 30 170 40 Q 130 120 40 160z" fill="#b8b0a8" stroke="#3a2730" stroke-width="4"/><path d="M40 160 Q 110 90 170 40" fill="none" stroke="#e9846a" stroke-width="3"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="70" ry="46" fill="#c9c4bc" stroke="#3a2730" stroke-width="4"/><path d="M50 100 q50 20 100 4" fill="none" stroke="#fbf6f1" stroke-width="5"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M50 100 q50 70 100 0z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 h100" stroke="#3a2730" stroke-width="4"/><path d="M100 100 v-30" stroke="#5a3a33" stroke-width="6"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="105" r="56" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M100 105 m-34 0 a34 34 0 1 1 34 34 a18 18 0 1 1 -18 -18" fill="none" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 170 V 90" stroke="#4f6e52" stroke-width="5"/><ellipse cx="80" cy="140" rx="18" ry="8" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 80 140)"/><circle cx="122.0" cy="70.0" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="90.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="82.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="57.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="49.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="70" r="8" fill="#f2b860"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 190 V 100" stroke="#4f6e52" stroke-width="5"/><circle cx="100" cy="80" r="50" fill="#fbf6f1" stroke="#3a2730" stroke-width="3" stroke-dasharray="4 6"/><path d="M100 80 l46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||||
|
<!-- Stand-in for petal-trace (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(153.6 153.6) scale(3.5840)"><path d="M100 30 C 175 55, 170 165, 100 175 C 35 165, 30 60, 100 30z" fill="#f3e3c8" stroke="#3a2730" stroke-width="5"/><path d="M100 50 q20 50 0 110" fill="none" stroke="#e0cfb2" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 483 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for planet-businessman (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-130" y="-80" width="260" height="20" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M-120 -60 v60 M120 -60 v60" stroke="#3a2730" stroke-width="8"/><rect x="-100" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-152" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-166" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-152" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-166" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-180" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="100" y="-120" width="40" height="40" fill="#5a3a33" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for planet-geographer (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-150" y="-80" width="300" height="20" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M-130 -60 v60 M130 -60 v60" stroke="#3a2730" stroke-width="8"/><path d="M-90 -80 q50 -20 90 0 q40 -20 90 0 v-50 q-50 -20 -90 0 q-40 -20 -90 0z" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="120" cy="-100" r="16" fill="none" stroke="#3a2730" stroke-width="4"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 853 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for planet-king (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-60" y="-150" width="120" height="150" rx="14" fill="#7a4f6e" stroke="#3a2730" stroke-width="5"/><path d="M-30 -60 l10 -24 l20 14 l20 -14 l10 24z" fill="#f2b860" stroke="#3a2730" stroke-width="3"/><path d="M60 0 q120 30 260 120" fill="none" stroke="#7a4f6e" stroke-width="26"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 752 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for planet-lamplighter (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><g transform="translate(-100 -390)"><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g><path d="M60 0 L 120 -260" stroke="#b98a5a" stroke-width="10"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 861 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for planet-vain (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-140" y="-200" width="80" height="200" rx="40" fill="#d9e2e6" stroke="#f2b860" stroke-width="10"/><ellipse cx="80" cy="-10" rx="90" ry="22" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M10 -60 v60 M150 -60 v60" stroke="#f2b860" stroke-width="8"/><path d="M10 -55 q70 30 140 0" fill="none" stroke="#7a4f6e" stroke-width="8"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 813 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
|
||||||
|
<!-- Stand-in for rose-gentle (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(6 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><circle cx="91" cy="124" r="4.5" fill="#3a2730"/><circle cx="109" cy="124" r="4.5" fill="#3a2730"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
|
||||||
|
<!-- Stand-in for rose-tickled (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for rose-touch-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<svg x="0" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></g></svg><svg x="768" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(6 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><circle cx="91" cy="124" r="4.5" fill="#3a2730"/><circle cx="109" cy="124" r="4.5" fill="#3a2730"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.9 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||||
|
<!-- Stand-in for share-frame (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<path d="M0 1536 V 844.8000000000001 Q 61.44 1075.1999999999998 102.4 1152 Q 512 1075.1999999999998 921.6 1152 Q 962.56 1075.1999999999998 1024 844.8000000000001 V 1536z" fill="#3c4a6a" stroke="#3a2730" stroke-width="5"/><path d="M0 1320.96 Q 512 1228.8000000000002 1024 1320.96" stroke="#46557a" stroke-width="60" fill="none"/><circle cx="204.8" cy="1290.24" r="8" fill="#f4d58d"/><circle cx="716.8" cy="1259.52" r="8" fill="#f4d58d"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 665 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||||
|
<!-- Stand-in for sky-light (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 332.8) scale(1.7920)"><circle cx="100" cy="100" r="80" fill="#f4d58d" opacity=".3"/><circle cx="100" cy="100" r="40" fill="#f4d58d" opacity=".7"/><circle cx="100" cy="100" r="16" fill="#fbf6f1"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 453 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for sky-lights-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<svg x="0" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(76.8 332.8) scale(1.7920)"><circle cx="100" cy="100" r="80" fill="#f4d58d" opacity=".3"/><circle cx="100" cy="100" r="40" fill="#f4d58d" opacity=".7"/><circle cx="100" cy="100" r="16" fill="#fbf6f1"/></g></svg><svg x="512" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="1024" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><circle cx="100" cy="70" r="56" fill="#f4d58d" opacity=".45"/><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#f4d58d" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-hedgehog (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="120" rx="62" ry="40" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="54" cy="128" rx="26" ry="20" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><circle cx="30" cy="130" r="5" fill="#3a2730"/><circle cx="50" cy="120" r="3.5" fill="#3a2730"/><path d="M90 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M103 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M116 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M129 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M142 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M155 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M168 86 l6 -18 l6 18" fill="#5a3a33"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 893 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-ladybird (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="60" ry="50" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><path d="M100 60 v100" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="64" r="22" fill="#3a2730"/><circle cx="74" cy="100" r="9" fill="#3a2730"/><circle cx="126" cy="100" r="9" fill="#3a2730"/><circle cx="80" cy="135" r="9" fill="#3a2730"/><circle cx="120" cy="135" r="9" fill="#3a2730"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 673 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-moth (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 100 q-70 -60 -80 10 q20 40 80 0z M100 100 q70 -60 80 10 q-20 40 -80 0z" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="110" rx="9" ry="30" fill="#b98a5a" stroke="#3a2730" stroke-width="3"/><circle cx="62" cy="96" r="9" fill="#f4d58d"/><circle cx="138" cy="96" r="9" fill="#f4d58d"/><path d="M96 82 q-10 -24 -26 -30 M104 82 q10 -24 26 -30" fill="none" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 705 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-owl (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="115" rx="56" ry="66" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="135" rx="34" ry="38" fill="#f3e3c8"/><path d="M76 84 q8 6 16 0 M108 84 q8 6 16 0" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M96 96 l4 8 l4 -8z" fill="#f2b860"/><path d="M50 60 l14 14 M150 60 l-14 14" stroke="#3a2730" stroke-width="5"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 643 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-robin (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="110" rx="50" ry="40" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><circle cx="74" cy="92" r="26" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><ellipse cx="86" cy="116" rx="26" ry="24" fill="#e9846a"/><path d="M48 92 l-16 4 l16 4z" fill="#b98a5a" stroke="#3a2730" stroke-width="2"/><circle cx="68" cy="86" r="3.5" fill="#3a2730"/><path d="M150 106 l34 -8 l-10 22z" fill="#8a7a52" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 727 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||||
|
<!-- Stand-in for visitor-snail (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="120" cy="105" r="42" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M120 105 m-26 0 a26 26 0 1 1 26 26 a14 14 0 1 1 -14 -14" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M30 150 h150 q-10 -14 -40 -14 h-70 q-30 -10 -40 -40" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><path d="M42 98 l-6 -26 M54 100 l2 -26" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 664 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||||
|
<!-- Stand-in for visitors-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="120" rx="62" ry="40" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="54" cy="128" rx="26" ry="20" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><circle cx="30" cy="130" r="5" fill="#3a2730"/><circle cx="50" cy="120" r="3.5" fill="#3a2730"/><path d="M90 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M103 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M116 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M129 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M142 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M155 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M168 86 l6 -18 l6 18" fill="#5a3a33"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="110" rx="50" ry="40" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><circle cx="74" cy="92" r="26" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><ellipse cx="86" cy="116" rx="26" ry="24" fill="#e9846a"/><path d="M48 92 l-16 4 l16 4z" fill="#b98a5a" stroke="#3a2730" stroke-width="2"/><circle cx="68" cy="86" r="3.5" fill="#3a2730"/><path d="M150 106 l34 -8 l-10 22z" fill="#8a7a52" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="120" cy="105" r="42" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M120 105 m-26 0 a26 26 0 1 1 26 26 a14 14 0 1 1 -14 -14" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M30 150 h150 q-10 -14 -40 -14 h-70 q-30 -10 -40 -40" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><path d="M42 98 l-6 -26 M54 100 l2 -26" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 100 q-70 -60 -80 10 q20 40 80 0z M100 100 q70 -60 80 10 q-20 40 -80 0z" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="110" rx="9" ry="30" fill="#b98a5a" stroke="#3a2730" stroke-width="3"/><circle cx="62" cy="96" r="9" fill="#f4d58d"/><circle cx="138" cy="96" r="9" fill="#f4d58d"/><path d="M96 82 q-10 -24 -26 -30 M104 82 q10 -24 26 -30" fill="none" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="60" ry="50" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><path d="M100 60 v100" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="64" r="22" fill="#3a2730"/><circle cx="74" cy="100" r="9" fill="#3a2730"/><circle cx="126" cy="100" r="9" fill="#3a2730"/><circle cx="80" cy="135" r="9" fill="#3a2730"/><circle cx="120" cy="135" r="9" fill="#3a2730"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="115" rx="56" ry="66" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="135" rx="34" ry="38" fill="#f3e3c8"/><path d="M76 84 q8 6 16 0 M108 84 q8 6 16 0" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M96 96 l4 8 l4 -8z" fill="#f2b860"/><path d="M50 60 l14 14 M150 60 l-14 14" stroke="#3a2730" stroke-width="5"/></g></svg>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||||
|
<!-- Stand-in for water-drops (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(204.8 76.8) scale(1.7920)"><path d="M70 57.599999999999994 q14 22.400000000000002 0 36.4 q-14 -14 0 -36.4z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M120 54 q10 16 0 26 q-10 -10 0 -26z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M100 94.4 q16 25.6 0 41.6 q-16 -16 0 -41.6z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M140 115.6 q9 14.4 0 23.400000000000002 q-9 -9 0 -23.400000000000002z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M60 127.2 q8 12.8 0 20.8 q-8 -8 0 -20.8z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 842 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||||
|
<!-- Stand-in for watering-can-pouring (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(204.8 76.8) scale(1.7920)"><g transform="rotate(24 100 110)"><rect x="70" y="80" width="90" height="80" rx="18" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/><path d="M80 80 q35 -55 70 0" fill="none" stroke="#3a2730" stroke-width="7"/><path d="M72 110 L32 70" stroke="#3a2730" stroke-width="10" stroke-linecap="round"/></g><path d="M24 66 q-6 40 -4 90" fill="none" stroke="#9cc3d8" stroke-width="6" stroke-linecap="round"/><circle cx="16" cy="170" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/><circle cx="30" cy="182" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 851 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||||
|
<!-- Stand-in for wave-lamp-lit (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(61.4 122.9) scale(1.9456)"><circle cx="100" cy="70" r="56" fill="#f4d58d" opacity=".45"/><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#f4d58d" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 631 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||||
|
<!-- Stand-in for wave-lamp-unlit (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(61.4 122.9) scale(1.9456)"><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 571 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||||
|
<!-- Stand-in for weeds-growing (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(204.8 76.8) scale(1.7920)"><ellipse cx="100" cy="160" rx="80" ry="22" fill="#8a6248" opacity=".85"/><path d="M70 160 l-14 -40 l12 10 l2 -22 l8 18 l10 -16 l-4 44z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M100 160 l-14 -50 l12 10 l2 -27 l8 18 l10 -16 l-4 52z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M130 160 l-14 -60 l12 10 l2 -32 l8 18 l10 -16 l-4 60z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 696 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||||
|
<!-- Stand-in for wind-gust (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||||
|
<g transform="translate(204.8 76.8) scale(1.7920)"><path d="M20 60 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><path d="M20 100 q60 -30 110 0 t60 -10" fill="none" stroke="#f3e3c8" stroke-width="10" stroke-linecap="round"/><path d="M20 140 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><ellipse cx="150" cy="70" rx="16" ry="7" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 150 70)"/><ellipse cx="80" cy="150" rx="14" ry="6" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(20 80 150)"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 853 B |
@@ -0,0 +1,63 @@
|
|||||||
|
# Candidate sentences — for the author to verify
|
||||||
|
|
||||||
|
Proposed 2026-11-02 by an agent; **none is verified**. 78 candidates in 9 files: biblical 22,
|
||||||
|
poetry 19, prose 10, stoic 7, classical 7 (Cicero), taoist 4, buddhist 4, mystic 3, sufi 2.
|
||||||
|
How to verify: [`../library/README.md`](../library/README.md).
|
||||||
|
|
||||||
|
## How they were made
|
||||||
|
|
||||||
|
Every line was cut out of the Project Gutenberg text named in its `check.url` by a script, between
|
||||||
|
exact start and end phrases — not quoted from memory. A second script then found every fragment
|
||||||
|
of all 78 in those texts again (75 directly, the 3 that span two Bible verses by hand). Every one
|
||||||
|
passes `pnpm validate:library`.
|
||||||
|
|
||||||
|
Conventions, to accept or reject as a whole:
|
||||||
|
|
||||||
|
- Double spaces collapsed to one; Gutenberg's page markers, italic underscores and footnote marks
|
||||||
|
removed; Gibran's narrow-column wraps joined.
|
||||||
|
- Poem line breaks kept as line breaks; stanza breaks reduced to one.
|
||||||
|
- Where the source sentence goes on, the last `, ; :` becomes `…`; a cut in the middle is `…` too.
|
||||||
|
- Typographic apostrophes and Keats's `--` kept as in the edition.
|
||||||
|
|
||||||
|
## Lines to read twice
|
||||||
|
|
||||||
|
**Might read as a promise** (the rule: comfort never promises an outcome):
|
||||||
|
`tao-te-ching-15` (*it will gradually become clear*), `thoreau-walden-morning-star` (*There is more
|
||||||
|
day to dawn*), `tagore-gitanjali-81` (*it is never lost*, of time already lived).
|
||||||
|
|
||||||
|
**Might sting someone who has no one near:**
|
||||||
|
`cicero-amicitia-88` (*if there were no one to whom he could tell*),
|
||||||
|
`gibran-prophet-friendship-mountain` (*When you part from your friend, you grieve not* — tells the
|
||||||
|
reader not to grieve), `stevenson-el-dorado` (*Little do ye know your own blessedness* — can read as a
|
||||||
|
scolding), `stevenson-idlers-candle` (a happy person as a thing to find).
|
||||||
|
`whitman-learnd-astronomer` says *by myself*: the agent thinks it is the best kind of line here —
|
||||||
|
it sends the reader out to the stars — but it is your call.
|
||||||
|
|
||||||
|
**Where the excerpt starts or stops:** `eccl-4-9-10` stops before *woe to him that is alone*;
|
||||||
|
`lam-3-22-23` starts mid-verse; `seneca-tranquillity-7` and `julian-revelations-5` have a cut in
|
||||||
|
the middle; `muir-sierra-hitched` is cut short for the length cap; `chuang-tzu-17-hao` is only the
|
||||||
|
opening of the story, without its turn — weak on its own.
|
||||||
|
|
||||||
|
**Attribution:** `cicero-senectute-24` is a verse by Caecilius Statius that Cicero quotes.
|
||||||
|
|
||||||
|
**Edition and wording:** the Dickinson lines are the 1890–91 printed texts (they differ from her
|
||||||
|
manuscripts); Whitman's 1891–92 edition has *journey work*; in `sadi-gulistan-2-26`, *his or God's*
|
||||||
|
looks like an editor's gloss; the Keats file is a 1909 reprint of the 1820 poems; Benham's earliest
|
||||||
|
date found is 1886; Shuckburgh's combined translation is dated 1900.
|
||||||
|
|
||||||
|
**Narrow fit:** `rossetti-christmas-carol` belongs to December, but petals come in one order, not by
|
||||||
|
date; `ps-133-1` says *brethren*.
|
||||||
|
|
||||||
|
**Public domain notes:** the KJV is under Crown patent in the United Kingdom only. Gibran's *The
|
||||||
|
Prophet* (1923; he died 1931) is public domain in the EU and, since 2019, in the US. Tagore's English
|
||||||
|
*Gitanjali* (1912; he died 1941) is public domain in the EU since 2012. The translations other than
|
||||||
|
the KJV were added to the public-domain list in `packages/content/src/validator.ts`, each with its
|
||||||
|
translator's death year.
|
||||||
|
|
||||||
|
## Wanted but left out
|
||||||
|
|
||||||
|
Isaiah 40:31 and 41:10, Psalm 121:8, Zechariah 14:7, Genesis 8:22, Julian's *all shall be well*,
|
||||||
|
Shakespeare's Sonnet 30, Muir's *Nature's peace will flow into you* and Keats's *A thing of beauty…*
|
||||||
|
all promise an outcome. Wordsworth's *Daffodils* opens with the word the game never says. Seneca's
|
||||||
|
*no such obstacle to true living as waiting* could wound someone waiting for a person. Emerson's
|
||||||
|
*the only way to have a friend is to be one* reads as pressure. Proverbs 17:22 says *medicine*.
|
||||||
@@ -0,0 +1,507 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "ps-118-24",
|
||||||
|
"text": {
|
||||||
|
"en": "This is the day which the LORD hath made; we will rejoice and be glad in it."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 118:24",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 118, verse 24",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "eccl-3-1",
|
||||||
|
"text": {
|
||||||
|
"en": "To every thing there is a season, and a time to every purpose under the heaven…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Ecclesiastes 3:1",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Ecclesiastes ('The Preacher') 3, verse 1",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "The verse ends with a colon (the list 'a time to be born…' follows); the colon is replaced by '…'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "eccl-4-9-10",
|
||||||
|
"text": {
|
||||||
|
"en": "Two are better than one; because they have a good reward for their labour. For if they fall, the one will lift up his fellow…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Ecclesiastes 4:9-10",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Ecclesiastes 4, verse 9 and the first clause of verse 10",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Stops before 'but woe to him that is alone when he falleth…' deliberately (the 'alone' framing)."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "prov-17-17",
|
||||||
|
"text": {
|
||||||
|
"en": "A friend loveth at all times, and a brother is born for adversity."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Proverbs 17:17",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Proverbs 17, verse 17",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-19-1",
|
||||||
|
"text": {
|
||||||
|
"en": "The heavens declare the glory of God; and the firmament sheweth his handywork."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 19:1",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 19, verse 1",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-90-12",
|
||||||
|
"text": {
|
||||||
|
"en": "So teach us to number our days, that we may apply our hearts unto wisdom."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 90:12",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 90, verse 12",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-4-8",
|
||||||
|
"text": {
|
||||||
|
"en": "I will both lay me down in peace, and sleep: for thou, LORD, only makest me dwell in safety."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 4:8",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 4, verse 8",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-104-19",
|
||||||
|
"text": {
|
||||||
|
"en": "He appointed the moon for seasons: the sun knoweth his going down."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 104:19",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 104, verse 19",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-8-3-4",
|
||||||
|
"text": {
|
||||||
|
"en": "When I consider thy heavens, the work of thy fingers, the moon and the stars, which thou hast ordained; What is man, that thou art mindful of him? and the son of man, that thou visitest him?"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 8:3-4",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 8, verses 3-4",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lam-3-22-23",
|
||||||
|
"text": {
|
||||||
|
"en": "…his compassions fail not. They are new every morning: great is thy faithfulness."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Lamentations 3:22-23",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Lamentations 3, second half of verse 22 and verse 23",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Starts mid-verse; omits 'It is of the LORD’s mercies that we are not consumed, because'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "matt-6-34",
|
||||||
|
"text": {
|
||||||
|
"en": "Take therefore no thought for the morrow: for the morrow shall take thought for the things of itself."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Matthew 6:34",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Matthew 6, verse 34, first sentence",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "matt-6-28",
|
||||||
|
"text": {
|
||||||
|
"en": "Consider the lilies of the field, how they grow; they toil not, neither do they spin…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Matthew 6:28",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Matthew 6, verse 28, from 'Consider'",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Omits the opening question 'And why take ye thought for raiment?'; verse ends with a colon, replaced by '…'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "luke-12-6",
|
||||||
|
"text": {
|
||||||
|
"en": "Are not five sparrows sold for two farthings, and not one of them is forgotten before God?"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Luke 12:6",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Luke 12, verse 6",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ruth-1-16",
|
||||||
|
"text": {
|
||||||
|
"en": "…whither thou goest, I will go; and where thou lodgest, I will lodge…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Ruth 1:16",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Ruth 1, verse 16, middle clauses",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Excerpt of Ruth's words to Naomi; omits 'Intreat me not to leave thee…' and the following clauses."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-147-4",
|
||||||
|
"text": {
|
||||||
|
"en": "He telleth the number of the stars; he calleth them all by their names."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 147:4",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 147, verse 4",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "eccl-3-11",
|
||||||
|
"text": {
|
||||||
|
"en": "He hath made every thing beautiful in his time…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Ecclesiastes 3:11",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Ecclesiastes 3, verse 11, first clause",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-133-1",
|
||||||
|
"text": {
|
||||||
|
"en": "Behold, how good and how pleasant it is for brethren to dwell together in unity!"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 133:1",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 133, verse 1",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "'brethren' may read as male-only; Mark to judge."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ps-65-8",
|
||||||
|
"text": {
|
||||||
|
"en": "…thou makest the outgoings of the morning and evening to rejoice."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Psalms 65:8",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Psalm 65, verse 8, second half",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Omits 'They also that dwell in the uttermost parts are afraid at thy tokens:'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "prov-15-23",
|
||||||
|
"text": {
|
||||||
|
"en": "A man hath joy by the answer of his mouth: and a word spoken in due season, how good is it!"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Proverbs 15:23",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Proverbs 15, verse 23",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "prov-27-9",
|
||||||
|
"text": {
|
||||||
|
"en": "Ointment and perfume rejoice the heart: so doth the sweetness of a man’s friend by hearty counsel."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Proverbs 27:9",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Proverbs 27, verse 9",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "eccl-11-7",
|
||||||
|
"text": {
|
||||||
|
"en": "Truly the light is sweet, and a pleasant thing it is for the eyes to behold the sun…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Ecclesiastes 11:7",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "Ecclesiastes 11, verse 7",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "Verse ends with a colon (11:8 continues); replaced by '…'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1thess-5-11",
|
||||||
|
"text": {
|
||||||
|
"en": "Wherefore comfort yourselves together, and edify one another, even as also ye do."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "1 Thessalonians 5:11",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "biblical",
|
||||||
|
"translation": "KJV"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10/pg10.txt",
|
||||||
|
"where": "First Epistle to the Thessalonians 5, verse 11",
|
||||||
|
"publicDomain": "King James Version 1611 (Gutenberg #10 text); public domain (UK Crown patent applies in the UK only)",
|
||||||
|
"note": "'edify one another, even as also ye do' affirms the reader rather than commanding."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "dhammapada-49",
|
||||||
|
"text": {
|
||||||
|
"en": "As the bee collects nectar and departs without injuring the flower, or its colour or scent, so let a sage dwell in his village."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Dhammapada 49 (ch. IV, Flowers)",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "buddhist",
|
||||||
|
"translation": "F. Max Müller, 1881"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2017/pg2017.txt",
|
||||||
|
"where": "Chapter IV 'Flowers', verse 49",
|
||||||
|
"publicDomain": "Tr. F. Max Müller (1823-1900), Sacred Books of the East vol. 10, 1881",
|
||||||
|
"note": "author: none (canonical text, traditionally the Buddha's words); Mark may prefer 'The Buddha'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dhammapada-54",
|
||||||
|
"text": {
|
||||||
|
"en": "The scent of flowers does not travel against the wind, nor (that of) sandal-wood, or of Tagara and Mallika flowers; but the odour of good people travels even against the wind; a good man pervades every place."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Dhammapada 54 (ch. IV, Flowers)",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "buddhist",
|
||||||
|
"translation": "F. Max Müller, 1881"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2017/pg2017.txt",
|
||||||
|
"where": "Chapter IV 'Flowers', verse 54",
|
||||||
|
"publicDomain": "Tr. F. Max Müller (1823-1900), Sacred Books of the East vol. 10, 1881",
|
||||||
|
"note": "Tagara and Mallika are Indian scent plants; 'sandal-wood' hyphen verbatim."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dhammapada-100",
|
||||||
|
"text": {
|
||||||
|
"en": "Even though a speech be a thousand (of words), but made up of senseless words, one word of sense is better, which if a man hears, he becomes quiet."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Dhammapada 100 (ch. VIII, The Thousands)",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "buddhist",
|
||||||
|
"translation": "F. Max Müller, 1881"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2017/pg2017.txt",
|
||||||
|
"where": "Chapter VIII 'The Thousands', verse 100",
|
||||||
|
"publicDomain": "Tr. F. Max Müller (1823-1900), Sacred Books of the East vol. 10, 1881",
|
||||||
|
"note": "Fits the comfort-words mechanic (one word, not many). Verses 101-102 repeat the pattern; only 100 taken."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dhammapada-122",
|
||||||
|
"text": {
|
||||||
|
"en": "Let no man think lightly of good, saying in his heart, It will not come nigh unto me. Even by the falling of water-drops a water-pot is filled; the wise man becomes full of good, even if he gather it little by little."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Dhammapada 122 (ch. IX, Evil)",
|
||||||
|
"author": null,
|
||||||
|
"tradition": "buddhist",
|
||||||
|
"translation": "F. Max Müller, 1881"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2017/pg2017.txt",
|
||||||
|
"where": "Chapter IX 'Evil', verse 122",
|
||||||
|
"publicDomain": "Tr. F. Max Müller (1823-1900), Sacred Books of the East vol. 10, 1881",
|
||||||
|
"note": "Echoes 'growth from total care'. Its twin verse 121 (about evil) is not taken. Chapter title 'Evil' is not shown to the player."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "cicero-amicitia-22",
|
||||||
|
"text": {
|
||||||
|
"en": "What can be more delightful than to have some one to whom you can say everything with the same absolute confidence as to yourself?"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Laelius de Amicitia §22",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Friendship, Gutenberg section 6 (standard §22)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-amicitia-23",
|
||||||
|
"text": {
|
||||||
|
"en": "In the face of a true friend a man sees as it were a second self."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Laelius de Amicitia §23",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Friendship, Gutenberg section 7 (standard §23)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-amicitia-47",
|
||||||
|
"text": {
|
||||||
|
"en": "You might just as well take the sun out of the sky as friendship from life; for the immortal gods have given us nothing better or more delightful."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Laelius de Amicitia §47",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Friendship, Gutenberg section 13 (standard §47)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC",
|
||||||
|
"note": "In context Laelius answers a doctrine sarcastically ('What noble philosophy!'); the sentence itself stands alone."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-amicitia-67",
|
||||||
|
"text": {
|
||||||
|
"en": "For there should be no satiety in friendship, as there is in other things. The older the sweeter, as in wines that keep well."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Laelius de Amicitia §67",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Friendship, Gutenberg section 19 (standard §67)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-amicitia-88",
|
||||||
|
"text": {
|
||||||
|
"en": "If one had ascended to heaven and had obtained a full view of the nature of the universe and the beauty of the stars, yet his admiration would be without delight, if there were no one to whom he could tell what he had seen."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Laelius de Amicitia §88 (the saying of Archytas)",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Andrew P. Peabody, 1887"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/7491/pg7491.txt",
|
||||||
|
"where": "De Amicitia, Peabody's section 23 (standard §88)",
|
||||||
|
"publicDomain": "Tr. Andrew P. Peabody (1811-1893), publ. Boston 1887; author d. 43 BC",
|
||||||
|
"note": "Opening quotation mark of the source dropped (the whole saying is a quotation). SOUL CHECK: 'if there were no one to whom he could tell' may sting a player who has no one; it is also the game's thesis (the shared sky). Mark to judge."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-senectute-24",
|
||||||
|
"text": {
|
||||||
|
"en": "He plants his trees to serve a race to come…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Cato Maior de Senectute §24 (verse of Caecilius Statius)",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Old Age, Gutenberg section 7 (standard §24-25)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC",
|
||||||
|
"note": "A verse Cicero quotes from the comic poet Caecilius Statius (Shuckburgh: 'our poet Statius'); the trailing comma is replaced by '…'. Perhaps attribute as 'Caecilius Statius, quoted by Cicero'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cicero-senectute-69",
|
||||||
|
"text": {
|
||||||
|
"en": "Hours indeed, and days and months and years depart, nor does past time ever return, nor can the future be known. Whatever time each is granted for life, with that he is bound to be content."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Cato Maior de Senectute §69",
|
||||||
|
"author": "Marcus Tullius Cicero",
|
||||||
|
"tradition": "classical",
|
||||||
|
"translation": "Evelyn S. Shuckburgh, 1900"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2808/pg2808.txt",
|
||||||
|
"where": "On Old Age, Gutenberg section 19 (standard §69)",
|
||||||
|
"publicDomain": "Tr. Evelyn S. Shuckburgh (1843-1906), translation publ. London: Macmillan (Golden Treasury) 1900, reprinted Harvard Classics 1909; author d. 43 BC",
|
||||||
|
"note": "Echoes the author's 'we do not choose the time we are given'. Context is the end of life; the excerpt itself is not about death. 'bound to be content' may read as a duty."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "julian-revelations-5",
|
||||||
|
"text": {
|
||||||
|
"en": "…He shewed me a little thing, the quantity of an hazel-nut, in the palm of my hand; and it was as round as a ball. I looked thereupon … and thought: What may this be? And it was answered generally thus: it is all that is made."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Revelations of Divine Love, ch. 5 (the hazel-nut)",
|
||||||
|
"author": "Julian of Norwich",
|
||||||
|
"tradition": "mystic",
|
||||||
|
"translation": "Grace Warrack, 1901"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/52958/pg52958.txt",
|
||||||
|
"where": "Chapter V, second paragraph",
|
||||||
|
"publicDomain": "Middle English text rendered/edited by Grace Warrack (1855-1932), London: Methuen, 1901; author d. after 1416",
|
||||||
|
"note": "Starts after 'Also in this'; middle omission (…) drops 'with eye of my understanding,' to stay under 240. Warrack's italics (underscores in the Gutenberg text) removed; the italicised 'What may this be?' and 'it is all that is made' are shown plain. Lower-case 'it' after 'thus:' is verbatim."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "julian-revelations-86",
|
||||||
|
"text": {
|
||||||
|
"en": "Wouldst thou learn thy Lord's meaning in this thing? Learn it well: Love was His meaning."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Revelations of Divine Love, ch. 86",
|
||||||
|
"author": "Julian of Norwich",
|
||||||
|
"tradition": "mystic",
|
||||||
|
"translation": "Grace Warrack, 1901"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/52958/pg52958.txt",
|
||||||
|
"where": "Chapter LXXXVI (the last chapter)",
|
||||||
|
"publicDomain": "Middle English text rendered/edited by Grace Warrack (1855-1932), London: Methuen, 1901; author d. after 1416",
|
||||||
|
"note": "Footnote marker '[3]' after 'learn' and italics underscores removed."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "kempis-imitation-3-5",
|
||||||
|
"text": {
|
||||||
|
"en": "Love is a great thing, a good above all others, which alone maketh every heavy burden light, and equaliseth every inequality."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Imitation of Christ III.5",
|
||||||
|
"author": "Thomas à Kempis",
|
||||||
|
"tradition": "mystic",
|
||||||
|
"translation": "William Benham, 1886"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/1653/pg1653.txt",
|
||||||
|
"where": "Book III, chapter V, paragraph 3",
|
||||||
|
"publicDomain": "Tr. William Benham (1831-1910), London: J. C. Nimmo 1886 (also Harvard Classics 1909); author d. 1471",
|
||||||
|
"note": "Earliest date I found for Benham's translation is the Nimmo 1886 edition; an earlier printing may exist. 'Jesus' is named in the following sentence, not in the excerpt."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,446 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "dickinson-hope",
|
||||||
|
"text": {
|
||||||
|
"en": "Hope is the thing with feathers\nThat perches in the soul,\nAnd sings the tune without the words,\nAnd never stops at all…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "'Hope is the thing with feathers' (Poems, Second Series, Life VI 'Hope')",
|
||||||
|
"author": "Emily Dickinson",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/12242/pg12242.txt",
|
||||||
|
"where": "Second Series (1891), I. Life, poem VI, first stanza",
|
||||||
|
"publicDomain": "Author d. 1886; Poems Second Series publ. 1891 (Higginson/Todd)",
|
||||||
|
"note": "Line breaks kept as \\n. The 1891 editors' text differs slightly from the manuscripts (Johnson/Franklin) — this is the 1891 printed text."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dickinson-one-heart",
|
||||||
|
"text": {
|
||||||
|
"en": "If I can stop one heart from breaking,\nI shall not live in vain;\nIf I can ease one life the aching,\nOr cool one pain,\nOr help one fainting robin\nUnto his nest again,\nI shall not live in vain."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "'If I can stop one heart from breaking' (Poems, First Series, Life VI)",
|
||||||
|
"author": "Emily Dickinson",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/12242/pg12242.txt",
|
||||||
|
"where": "First Series (1890), I. Life, poem VI, whole poem",
|
||||||
|
"publicDomain": "Author d. 1886; Poems (First Series) publ. 1890 (Higginson/Todd)",
|
||||||
|
"note": "Whole poem; line breaks as \\n."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dickinson-a-day",
|
||||||
|
"text": {
|
||||||
|
"en": "But how he set, I know not.\nThere seemed a purple stile\nWhich little yellow boys and girls\nWere climbing all the while\nTill when they reached the other side,\nA dominie in gray\nPut gently up the evening bars,\nAnd led the flock away."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "'A Day' ('I'll tell you how the sun rose'), second half (Poems, First Series, Nature XXII)",
|
||||||
|
"author": "Emily Dickinson",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/12242/pg12242.txt",
|
||||||
|
"where": "First Series (1890), III. Nature, poem XXII 'A Day', the stanzas after '* * *'",
|
||||||
|
"publicDomain": "Author d. 1886; Poems (First Series) publ. 1890",
|
||||||
|
"note": "Only the sunset half of the poem (the sunrise half is omitted). Stanza break collapsed to a single \\n."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "whitman-song-of-myself-31",
|
||||||
|
"text": {
|
||||||
|
"en": "I believe a leaf of grass is no less than the journey work of the stars…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Song of Myself, section 31, first line",
|
||||||
|
"author": "Walt Whitman",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/1322/pg1322.txt",
|
||||||
|
"where": "Leaves of Grass (1891-92 'deathbed' ed.), Song of Myself §31, line 1",
|
||||||
|
"publicDomain": "Author d. 1892; edition 1891-92",
|
||||||
|
"note": "Earlier editions hyphenate 'journey-work'; this edition has 'journey work'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "whitman-learnd-astronomer",
|
||||||
|
"text": {
|
||||||
|
"en": "…Till rising and gliding out I wander’d off by myself,\nIn the mystical moist night-air, and from time to time,\nLook’d up in perfect silence at the stars."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "When I Heard the Learn’d Astronomer, last three lines",
|
||||||
|
"author": "Walt Whitman",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/1322/pg1322.txt",
|
||||||
|
"where": "Leaves of Grass (1891-92), 'When I Heard the Learn’d Astronomer', lines 6-8",
|
||||||
|
"publicDomain": "Author d. 1892; edition 1891-92",
|
||||||
|
"note": "The omitted line before reads 'How soon unaccountable I became tired and sick,' (forbidden word) — deliberately cut. 'by myself' is chosen solitude; Mark to judge. Points beyond the screen."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "wordsworth-beauteous-evening",
|
||||||
|
"text": {
|
||||||
|
"en": "It is a beauteous Evening, calm and free;\nThe holy time is quiet as a Nun\nBreathless with adoration; the broad sun\nIs sinking down in its tranquillity;\nThe gentleness of heaven is on the Sea…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "'It is a beauteous Evening, calm and free', lines 1-5",
|
||||||
|
"author": "William Wordsworth",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/8774/pg8774.txt",
|
||||||
|
"where": "Poems in Two Volumes (1807), vol. 1, Miscellaneous Sonnets no. 19, lines 1-5",
|
||||||
|
"publicDomain": "Author d. 1850; publ. 1807",
|
||||||
|
"note": "Line 5 ends with a colon (sentence continues 'Listen! the mighty Being is awake'); replaced by '…'. 'quiet as a Nun' is a religious image."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "wordsworth-tintern-abbey",
|
||||||
|
"text": {
|
||||||
|
"en": "…On that best portion of a good man’s life;\nHis little, nameless, unremembered acts\nOf kindness and of love."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Lines written a few miles above Tintern Abbey (1798), ll. 34-36",
|
||||||
|
"author": "William Wordsworth",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/9622/pg9622.txt",
|
||||||
|
"where": "Lyrical Ballads (1798), 'Lines written a few miles above Tintern Abbey', ll. 34-36",
|
||||||
|
"publicDomain": "Author d. 1850; publ. 1798",
|
||||||
|
"note": "Source line starts with capital 'On that best portion' (verse capital); the excerpt keeps 'On'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "keats-to-autumn-3",
|
||||||
|
"text": {
|
||||||
|
"en": "Where are the songs of Spring? Ay, where are they?\nThink not of them, thou hast thy music too,--\nWhile barred clouds bloom the soft-dying day,\nAnd touch the stubble-plains with rosy hue…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "To Autumn, stanza 3, lines 1-4",
|
||||||
|
"author": "John Keats",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/23684/pg23684.txt",
|
||||||
|
"where": "Poems Published in 1820 (Clarendon reprint 1909, ed. M. Robertson), 'To Autumn', stanza 3, ll. 1-4",
|
||||||
|
"publicDomain": "Author d. 1821; publ. 1820 (the 1909 reprint follows it)",
|
||||||
|
"note": "'--' in the source stands for an em dash; kept as in the Gutenberg text. Final ';' replaced by '…'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "rossetti-who-has-seen-the-wind",
|
||||||
|
"text": {
|
||||||
|
"en": "Who has seen the wind?\nNeither I nor you:\nBut when the leaves hang trembling\nThe wind is passing thro’.\nWho has seen the wind?\nNeither you nor I:\nBut when the trees bow down their heads\nThe wind is passing by."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "'Who has seen the wind?' (Sing-Song)",
|
||||||
|
"author": "Christina Rossetti",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/76703/pg76703.txt",
|
||||||
|
"where": "Sing-Song (1893 ed.; first publ. 1872), whole poem",
|
||||||
|
"publicDomain": "Author d. 1894; first publ. 1872",
|
||||||
|
"note": "Whole poem, both stanzas; stanza break collapsed to \\n. Fits the rose's wind-shade care."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "rossetti-christmas-carol",
|
||||||
|
"text": {
|
||||||
|
"en": "What can I give Him,\nPoor as I am?\nIf I were a shepherd\nI would bring a lamb,\nIf I were a wise man\nI would do my part,--\nYet what I can I give Him,\nGive my heart."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "A Christmas Carol ('In the bleak mid-winter'), last stanza",
|
||||||
|
"author": "Christina Rossetti",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/19188/pg19188.txt",
|
||||||
|
"where": "Poems (Boston: Little, Brown, 1906; Author's Edition 1876), 'A Christmas Carol', final stanza",
|
||||||
|
"publicDomain": "Author d. 1894; poem first publ. 1872",
|
||||||
|
"note": "Christian; 'Him' is Christ. Seasonal (Christmas) — perhaps limit to December."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "shakespeare-sonnet-29",
|
||||||
|
"text": {
|
||||||
|
"en": "Haply I think on thee, and then my state,\nLike to the lark at break of day arising\nFrom sullen earth, sings hymns at heaven’s gate…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Sonnet 29, lines 10-12",
|
||||||
|
"author": "William Shakespeare",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/1041/pg1041.txt",
|
||||||
|
"where": "Sonnet XXIX, lines 10-12",
|
||||||
|
"publicDomain": "Author d. 1616; publ. 1609",
|
||||||
|
"note": "Gutenberg's modern-spelling text. The sonnet's opening ('I all alone beweep my outcast state') is deliberately omitted."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tagore-gitanjali-63",
|
||||||
|
"text": {
|
||||||
|
"en": "Thou hast made me known to friends whom I knew not. Thou hast given me seats in homes not my own. Thou hast brought the distant near and made a brother of the stranger."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Gitanjali 63",
|
||||||
|
"author": "Rabindranath Tagore",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": "Rabindranath Tagore (his own English), 1912"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/7164/pg7164.txt",
|
||||||
|
"where": "Gitanjali (1912), poem 63, first paragraph",
|
||||||
|
"publicDomain": "Author d. 1941 (EU PD since 2012); English Gitanjali publ. 1912",
|
||||||
|
"note": "Devotional: 'Thou' is God. Prose-poem; source paragraph wrap joined with spaces."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tagore-gitanjali-69",
|
||||||
|
"text": {
|
||||||
|
"en": "The same stream of life that runs through my veins night and day runs through the world and dances in rhythmic measures."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Gitanjali 69",
|
||||||
|
"author": "Rabindranath Tagore",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": "Rabindranath Tagore (his own English), 1912"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/7164/pg7164.txt",
|
||||||
|
"where": "Gitanjali (1912), poem 69, first paragraph",
|
||||||
|
"publicDomain": "Author d. 1941; publ. 1912",
|
||||||
|
"note": "Echoes the author's river-of-life image."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tagore-gitanjali-81",
|
||||||
|
"text": {
|
||||||
|
"en": "On many an idle day have I grieved over lost time. But it is never lost, my lord. Thou hast taken every moment of my life in thine own hands."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Gitanjali 81",
|
||||||
|
"author": "Rabindranath Tagore",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": "Rabindranath Tagore (his own English), 1912"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/7164/pg7164.txt",
|
||||||
|
"where": "Gitanjali (1912), poem 81, first paragraph",
|
||||||
|
"publicDomain": "Author d. 1941; publ. 1912",
|
||||||
|
"note": "'it is never lost' is about time already lived, not a promise of what will happen; 'my lord' is God. Echoes 'progress never disappears'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gibran-prophet-friendship-silence",
|
||||||
|
"text": {
|
||||||
|
"en": "And when he is silent your heart ceases not to listen to his heart; For without words, in friendship, all thoughts, all desires, all expectations are born and shared, with joy that is unacclaimed."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Prophet, 'On Friendship'",
|
||||||
|
"author": "Kahlil Gibran",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/58585/pg58585.txt",
|
||||||
|
"where": "The Prophet (Knopf, 1923), 'Friendship', stanzas 5-6",
|
||||||
|
"publicDomain": "Author d. 1931 (EU PD since 2002); publ. 1923 (US PD since 2019)",
|
||||||
|
"note": "Short-line layout of the edition joined with spaces; the capital 'For' after ';' is verbatim (new stanza)."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gibran-prophet-friendship-mountain",
|
||||||
|
"text": {
|
||||||
|
"en": "When you part from your friend, you grieve not; For that which you love most in him may be clearer in his absence, as the mountain to the climber is clearer from the plain."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Prophet, 'On Friendship'",
|
||||||
|
"author": "Kahlil Gibran",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "tender",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/58585/pg58585.txt",
|
||||||
|
"where": "The Prophet (1923), 'Friendship', stanzas 7-8",
|
||||||
|
"publicDomain": "Author d. 1931; publ. 1923",
|
||||||
|
"note": "Same chapter as the other Gibran friendship lines, distinct stanza."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gibran-prophet-friendship-hours",
|
||||||
|
"text": {
|
||||||
|
"en": "For what is your friend that you should seek him with hours to kill? Seek him always with hours to live."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Prophet, 'On Friendship'",
|
||||||
|
"author": "Kahlil Gibran",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/58585/pg58585.txt",
|
||||||
|
"where": "The Prophet (1923), 'Friendship', second part, stanzas 3-4",
|
||||||
|
"publicDomain": "Author d. 1931; publ. 1923"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gibran-prophet-friendship-dew",
|
||||||
|
"text": {
|
||||||
|
"en": "And in the sweetness of friendship let there be laughter, and sharing of pleasures. For in the dew of little things the heart finds its morning and is refreshed."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Prophet, 'On Friendship'",
|
||||||
|
"author": "Kahlil Gibran",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/58585/pg58585.txt",
|
||||||
|
"where": "The Prophet (1923), 'Friendship', closing stanzas",
|
||||||
|
"publicDomain": "Author d. 1931; publ. 1923"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gibran-prophet-giving",
|
||||||
|
"text": {
|
||||||
|
"en": "You give but little when you give of your possessions. It is when you give of yourself that you truly give."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "The Prophet, 'On Giving'",
|
||||||
|
"author": "Kahlil Gibran",
|
||||||
|
"tradition": "poetry",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/58585/pg58585.txt",
|
||||||
|
"where": "The Prophet (1923), 'Giving', opening",
|
||||||
|
"publicDomain": "Author d. 1931; publ. 1923"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,229 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "emerson-friendship-sincere",
|
||||||
|
"text": {
|
||||||
|
"en": "A friend is a person with whom I may be sincere. Before him I may think aloud."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Essays: First Series, 'Friendship'",
|
||||||
|
"author": "Ralph Waldo Emerson",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/2944/pg2944.txt",
|
||||||
|
"where": "Essays, First Series (1841), VI 'Friendship'",
|
||||||
|
"publicDomain": "Author d. 1882; publ. 1841"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "emerson-nature-stars",
|
||||||
|
"text": {
|
||||||
|
"en": "If the stars should appear one night in a thousand years, how would men believe and adore … But every night come out these envoys of beauty, and light the universe with their admonishing smile."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Nature, ch. I",
|
||||||
|
"author": "Ralph Waldo Emerson",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/29433/pg29433.txt",
|
||||||
|
"where": "Nature (new ed. 1849; first publ. 1836), chapter I 'Nature'",
|
||||||
|
"publicDomain": "Author d. 1882; publ. 1836/1849",
|
||||||
|
"note": "Middle omission marked …: '; and preserve for many generations the remembrance of the city of God which had been shown!'"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thoreau-walden-time-stream",
|
||||||
|
"text": {
|
||||||
|
"en": "Time is but the stream I go a-fishing in. I drink at it; but while I drink I see the sandy bottom and detect how shallow it is. Its thin current slides away, but eternity remains."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Walden, 'Where I Lived, and What I Lived For'",
|
||||||
|
"author": "Henry David Thoreau",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/205/pg205.txt",
|
||||||
|
"where": "Walden (1854), 'Where I Lived, and What I Lived For', closing paragraph",
|
||||||
|
"publicDomain": "Author d. 1862; publ. 1854",
|
||||||
|
"note": "Echoes the river-of-time image."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thoreau-walden-bloom",
|
||||||
|
"text": {
|
||||||
|
"en": "There were times when I could not afford to sacrifice the bloom of the present moment to any work, whether of the head or hands. I love a broad margin to my life."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Walden, 'Sounds'",
|
||||||
|
"author": "Henry David Thoreau",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/205/pg205.txt",
|
||||||
|
"where": "Walden (1854), 'Sounds', second paragraph",
|
||||||
|
"publicDomain": "Author d. 1862; publ. 1854"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thoreau-walden-morning-star",
|
||||||
|
"text": {
|
||||||
|
"en": "Only that day dawns to which we are awake. There is more day to dawn. The sun is but a morning star."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Walden, 'Conclusion' (last lines)",
|
||||||
|
"author": "Henry David Thoreau",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/205/pg205.txt",
|
||||||
|
"where": "Walden (1854), 'Conclusion', final three sentences of the book",
|
||||||
|
"publicDomain": "Author d. 1862; publ. 1854",
|
||||||
|
"note": "'There is more day to dawn' is open hope, not a promise to the reader; Mark to judge."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "stevenson-el-dorado",
|
||||||
|
"text": {
|
||||||
|
"en": "Little do ye know your own blessedness; for to travel hopefully is a better thing than to arrive, and the true success is to labour."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Virginibus Puerisque, 'El Dorado'",
|
||||||
|
"author": "Robert Louis Stevenson",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/386/pg386.txt",
|
||||||
|
"where": "Virginibus Puerisque (1881), 'El Dorado', end of the essay",
|
||||||
|
"publicDomain": "Author d. 1894; publ. 1881"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "stevenson-idlers-candle",
|
||||||
|
"text": {
|
||||||
|
"en": "A happy man or woman is a better thing to find than a five-pound note. He or she is a radiating focus of goodwill; and their entrance into a room is as though another candle had been lighted."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Virginibus Puerisque, 'An Apology for Idlers'",
|
||||||
|
"author": "Robert Louis Stevenson",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/386/pg386.txt",
|
||||||
|
"where": "Virginibus Puerisque (1881), 'An Apology for Idlers'",
|
||||||
|
"publicDomain": "Author d. 1894; publ. 1881",
|
||||||
|
"note": "Source has double spaces after full stops; collapsed to single spaces (typography only)."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "muir-sierra-june-13",
|
||||||
|
"text": {
|
||||||
|
"en": "Life seems neither long nor short, and we take no more heed to save time or make haste than do the trees and stars."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "My First Summer in the Sierra, June 13",
|
||||||
|
"author": "John Muir",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/32540/pg32540.txt",
|
||||||
|
"where": "My First Summer in the Sierra (1911), journal entry 'June 13'",
|
||||||
|
"publicDomain": "Author d. 1914; publ. 1911"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "muir-sierra-sunsets",
|
||||||
|
"text": {
|
||||||
|
"en": "The sunsets, when the trees stood hushed awaiting their good-night blessings. Divine, enduring, unwastable wealth."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "My First Summer in the Sierra, July 7",
|
||||||
|
"author": "John Muir",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/32540/pg32540.txt",
|
||||||
|
"where": "My First Summer in the Sierra (1911), within the entry dated 'July 7'",
|
||||||
|
"publicDomain": "Author d. 1914; publ. 1911",
|
||||||
|
"note": "Two verbless sentences from a long reminiscing list; they stand alone. The same entry opens 'Rather weak and sickish' — not in the excerpt."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "muir-sierra-hitched",
|
||||||
|
"text": {
|
||||||
|
"en": "When we try to pick out anything by itself, we find it hitched to everything else in the universe. One fancies a heart like our own must be beating in every crystal and cell…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "My First Summer in the Sierra, July 27",
|
||||||
|
"author": "John Muir",
|
||||||
|
"tradition": "prose",
|
||||||
|
"translation": null
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/32540/pg32540.txt",
|
||||||
|
"where": "My First Summer in the Sierra (1911), entry 'July 27'",
|
||||||
|
"publicDomain": "Author d. 1914; publ. 1911",
|
||||||
|
"note": "Second sentence continues ', and we feel like stopping to speak to the plants and animals as friendly fellow mountaineers.' — cut for length; Mark may prefer the full sentence (would be ~250 chars, over the cap)."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "marcus-aurelius-3-10",
|
||||||
|
"text": {
|
||||||
|
"en": "…bear in mind that every man lives only this present time, which is an indivisible point, and that all the rest of his life is either past or it is uncertain."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Meditations III.10",
|
||||||
|
"author": "Marcus Aurelius",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "George Long, 1862"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/15877/pg15877.txt",
|
||||||
|
"where": "Book III, section 10",
|
||||||
|
"publicDomain": "Tr. George Long (1800-1879), first publ. 1862; author d. 180 AD",
|
||||||
|
"note": "Starts after 'Throwing away then all things, hold to these only which are few; and besides,'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "marcus-aurelius-6-7",
|
||||||
|
"text": {
|
||||||
|
"en": "Take pleasure in one thing and rest in it, in passing from one social act to another social act, thinking of God."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Meditations VI.7",
|
||||||
|
"author": "Marcus Aurelius",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "George Long, 1862"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/15877/pg15877.txt",
|
||||||
|
"where": "Book VI, section 7",
|
||||||
|
"publicDomain": "Tr. George Long (1800-1879), first publ. 1862; author d. 180 AD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "marcus-aurelius-6-48",
|
||||||
|
"text": {
|
||||||
|
"en": "When thou wishest to delight thyself, think of the virtues of those who live with thee; for instance, the activity of one, and the modesty of another, and the liberality of a third, and some other good quality of a fourth."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Meditations VI.48",
|
||||||
|
"author": "Marcus Aurelius",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "George Long, 1862"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/15877/pg15877.txt",
|
||||||
|
"where": "Book VI, section 48, first sentence",
|
||||||
|
"publicDomain": "Tr. George Long (1800-1879), first publ. 1862; author d. 180 AD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "marcus-aurelius-7-47",
|
||||||
|
"text": {
|
||||||
|
"en": "Look round at the courses of the stars, as if thou wert going along with them…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Meditations VII.47",
|
||||||
|
"author": "Marcus Aurelius",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "George Long, 1862"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/15877/pg15877.txt",
|
||||||
|
"where": "Book VII, section 47, first clause",
|
||||||
|
"publicDomain": "Tr. George Long (1800-1879), first publ. 1862; author d. 180 AD",
|
||||||
|
"note": "Sentence continues '; and constantly consider the changes of the elements…'; cut there."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "epictetus-discourses-1-15",
|
||||||
|
"text": {
|
||||||
|
"en": "Nothing great, said Epictetus, is produced suddenly, since not even the grape or the fig is. If you say to me now that you want a fig, I will answer to you that it requires time: let it flower first, then put forth fruit, and then ripen."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Discourses I.15 (What Philosophy Promises)",
|
||||||
|
"author": "Epictetus",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "George Long, 1877"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/10661/pg10661.txt",
|
||||||
|
"where": "Discourses Book I, ch. 15 'What Philosophy Promises' (Gutenberg #10661 is Long's selection; chapter heading present)",
|
||||||
|
"publicDomain": "Tr. George Long (1800-1879), Discourses first publ. 1877; author d. c. 135 AD",
|
||||||
|
"note": "Context: a man asks how to keep his peace while his brother is angry with him."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seneca-shortness-of-life-2",
|
||||||
|
"text": {
|
||||||
|
"en": "Why do we complain of Nature? she has dealt kindly with us. Life is long enough, if you know how to use it."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "On the Shortness of Life (De Brevitate Vitae) II",
|
||||||
|
"author": "Lucius Annaeus Seneca",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "Aubrey Stewart, 1889"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "wise",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/64576/pg64576.txt",
|
||||||
|
"where": "Dialogues Book X 'Of the Shortness of Life', ch. II, opening",
|
||||||
|
"publicDomain": "Tr. Aubrey Stewart (1844-1918), publ. London: G. Bell, 1889; author d. 65 AD",
|
||||||
|
"note": "Lower-case 'she' after the question mark is verbatim."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seneca-tranquillity-7",
|
||||||
|
"text": {
|
||||||
|
"en": "…nothing delights the mind so much as faithful and pleasant friendship: what a blessing it is when there is one … whose very sight delights you!"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "On Peace of Mind (De Tranquillitate Animi) VII",
|
||||||
|
"author": "Lucius Annaeus Seneca",
|
||||||
|
"tradition": "stoic",
|
||||||
|
"translation": "Aubrey Stewart, 1889"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/64576/pg64576.txt",
|
||||||
|
"where": "Dialogues Book IX 'Of Peace of Mind', ch. VII",
|
||||||
|
"publicDomain": "Tr. Aubrey Stewart (1844-1918), publ. London: G. Bell, 1889; author d. 65 AD",
|
||||||
|
"note": "Starts after 'Yet'. Middle omission (marked …) drops 'whose breast is ready to receive all your secrets with safety, whose knowledge of your actions you fear less than your own conscience, whose conversation removes your anxieties, whose advice assists your plans, whose cheerfulness dispels your gloom,'. The Gutenberg page marker '{266}' inside the sentence was removed."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "sadi-gulistan-1-10",
|
||||||
|
"text": {
|
||||||
|
"en": "The sons of Adam are members one of another, for in their creation they have a common origin. If the vicissitudes of fortune involve one member in pain, all the other members will feel a sympathy."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Gulistan, ch. I, story 10",
|
||||||
|
"author": "Sa'di",
|
||||||
|
"tradition": "sufi",
|
||||||
|
"translation": "James Ross, 1823"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/13060/pg13060.txt",
|
||||||
|
"where": "Gulistan, Chapter I 'Of the Customs of Kings', story X",
|
||||||
|
"publicDomain": "Tr. James Ross (1759-1831), first publ. 1823; reprinted in 'The Persian Literature' vol. 2 (Colonial Press, 1900); author d. 1291/92",
|
||||||
|
"note": "The famous 'Bani Adam' verses in Ross's prose rendering."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sadi-gulistan-2-26",
|
||||||
|
"text": {
|
||||||
|
"en": "It is not the nightingale that alone serenades his rose; for every thorn on the rose-bush is a tongue in his or God's praise!"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Gulistan, ch. II, story 26",
|
||||||
|
"author": "Sa'di",
|
||||||
|
"tradition": "sufi",
|
||||||
|
"translation": "James Ross, 1823"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/13060/pg13060.txt",
|
||||||
|
"where": "Gulistan, Chapter II 'Of the Morals of Dervishes', story XXVI (end of a quotation)",
|
||||||
|
"publicDomain": "Tr. James Ross (1759-1831), first publ. 1823; reprinted in 'The Persian Literature' vol. 2 (Colonial Press, 1900); author d. 1291/92",
|
||||||
|
"note": "A rose with thorns — the game's own rose. 'his or God's' looks like an editor's gloss in this reprint; the closing quotation mark of the source is dropped. Uses 'alone' in the sense of 'only'."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "tao-te-ching-8",
|
||||||
|
"text": {
|
||||||
|
"en": "The highest excellence is like (that of) water. The excellence of water appears in its benefiting all things…"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Tao Te Ching, ch. 8",
|
||||||
|
"author": "Laozi",
|
||||||
|
"tradition": "taoist",
|
||||||
|
"translation": "James Legge, 1891"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "quiet",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/216/pg216.txt",
|
||||||
|
"where": "Chapter 8, verse 1, first two sentences",
|
||||||
|
"publicDomain": "Tr. James Legge (1815-1897), Sacred Books of the East vol. 39, 1891",
|
||||||
|
"note": "Legge's parentheses '(that of)' are his own and are kept verbatim; sentence continues ', and in its occupying… the low place which all men dislike'."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tao-te-ching-15",
|
||||||
|
"text": {
|
||||||
|
"en": "Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Tao Te Ching, ch. 15",
|
||||||
|
"author": "Laozi",
|
||||||
|
"tradition": "taoist",
|
||||||
|
"translation": "James Legge, 1891"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset",
|
||||||
|
"comfort"
|
||||||
|
],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/216/pg216.txt",
|
||||||
|
"where": "Chapter 15, verse 3, first two sentences",
|
||||||
|
"publicDomain": "Tr. James Legge (1815-1897), Sacred Books of the East vol. 39, 1891",
|
||||||
|
"note": "OUTCOME CHECK: 'it will gradually become clear' is said of water left still — a natural image, not a promise to the reader; Mark to judge."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tao-te-ching-64",
|
||||||
|
"text": {
|
||||||
|
"en": "The tree which fills the arms grew from the tiniest sprout; the tower of nine storeys rose from a (small) heap of earth; the journey of a thousand li commenced with a single step."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Tao Te Ching, ch. 64",
|
||||||
|
"author": "Laozi",
|
||||||
|
"tradition": "taoist",
|
||||||
|
"translation": "James Legge, 1891"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "hopeful",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/216/pg216.txt",
|
||||||
|
"where": "Chapter 64, verse 2",
|
||||||
|
"publicDomain": "Tr. James Legge (1815-1897), Sacred Books of the East vol. 39, 1891"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "chuang-tzu-17-hao",
|
||||||
|
"text": {
|
||||||
|
"en": "Chuang Tzŭ and Hui Tzŭ had strolled on to the bridge over the Hao, when the former observed, \"See how the minnows are darting about! That is the pleasure of fishes.\""
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"work": "Chuang Tzu, ch. XVII (Autumn Floods), the bridge over the Hao",
|
||||||
|
"author": "Zhuangzi",
|
||||||
|
"tradition": "taoist",
|
||||||
|
"translation": "Herbert A. Giles, 1889"
|
||||||
|
},
|
||||||
|
"use": [
|
||||||
|
"sunset"
|
||||||
|
],
|
||||||
|
"tone": "warm",
|
||||||
|
"promisesOutcome": false,
|
||||||
|
"check": {
|
||||||
|
"url": "https://www.gutenberg.org/cache/epub/59709/pg59709.txt",
|
||||||
|
"where": "Chapter XVII, final anecdote (bridge over the Hao)",
|
||||||
|
"publicDomain": "Tr. Herbert A. Giles (1845-1935), London: Bernard Quaritch, 1889 (title page in the Gutenberg file)",
|
||||||
|
"note": "Source uses straight double quotes and the breve in 'Tzŭ'; kept."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -7,11 +7,29 @@ Each file is an array of entries in the shape of
|
|||||||
|
|
||||||
**It is empty on purpose.** Every entry carries `verifiedBy` and `verifiedAt`, which
|
**It is empty on purpose.** Every entry carries `verifiedBy` and `verifiedAt`, which
|
||||||
record that a person checked the source and its public-domain status. An agent
|
record that a person checked the source and its public-domain status. An agent
|
||||||
cannot make that check, so agents do not add entries. They may prepare a candidate
|
cannot make that check, so agents do not add entries here.
|
||||||
list elsewhere for the author to verify.
|
|
||||||
|
**Candidates** wait in [`../candidates/`](../candidates/), one file per tradition, in
|
||||||
|
the same shape without `publicDomain`, `verifiedBy` and `verifiedAt`, and with a
|
||||||
|
`check`: the page to read the sentence on, where in the work it is, and why it is in
|
||||||
|
the public domain. `pnpm validate:library` holds every candidate to every library
|
||||||
|
rule, so none would fail once verified.
|
||||||
|
|
||||||
|
**To verify** (the author only): read each sentence at its `check.url`, confirm the
|
||||||
|
words and the public-domain reason, then
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm library:verify ps-118-24 cicero-amicitia-22 --by Mark
|
||||||
|
```
|
||||||
|
|
||||||
|
It moves those candidates into the library file of the same name, with your name and
|
||||||
|
today's date, and refuses (moving nothing) if the library would then fail. Commit the
|
||||||
|
result. A line the author writes for Rosea goes straight into `rosea.json`, with
|
||||||
|
`"tradition": "rosea"`.
|
||||||
|
|
||||||
Run `pnpm validate:library` after any change. The validator also runs every file
|
Run `pnpm validate:library` after any change. The validator also runs every file
|
||||||
in [`../fixtures/`](../fixtures/), and **fails if any fixture passes**.
|
in [`../fixtures/`](../fixtures/), and **fails if any fixture passes**. The app's
|
||||||
|
build runs it first, so the app only ever ships what passed.
|
||||||
|
|
||||||
Before the first release: at least 365 entries with `"use": ["sunset", …]`, so that
|
Before the first release: at least 365 entries with `"use": ["sunset", …]`, so that
|
||||||
no sunset sentence repeats within a year.
|
no sunset sentence repeats within a year.
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "e2e-first",
|
||||||
|
"text": { "en": "An e2e fixture sentence, not a real one." },
|
||||||
|
"source": { "work": "Fixture 1", "author": null, "tradition": "fixture", "translation": null, "publicDomain": true, "verifiedBy": "e2e", "verifiedAt": "2026-11-01" },
|
||||||
|
"use": ["sunset"],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e2e-second",
|
||||||
|
"text": { "en": "A second e2e fixture sentence." },
|
||||||
|
"source": { "work": "Fixture 2", "author": "A Writer", "tradition": "fixture", "translation": null, "publicDomain": true, "verifiedBy": "e2e", "verifiedAt": "2026-11-01" },
|
||||||
|
"use": ["sunset"],
|
||||||
|
"tone": "gentle",
|
||||||
|
"promisesOutcome": false
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -78,7 +78,8 @@ test('the shell opens from the service worker with the server gone', async ({ br
|
|||||||
// coming back days later with no signal.
|
// coming back days later with no signal.
|
||||||
await page.close();
|
await page.close();
|
||||||
const again = await context.newPage();
|
const again = await context.newPage();
|
||||||
await again.clock.setFixedTime(Date.parse('2026-03-29T12:00:00+02:00'));
|
// An installed clock, so the in-game sunset's half minute can be run below.
|
||||||
|
await again.clock.install({ time: Date.parse('2026-03-29T12:00:00+02:00') });
|
||||||
await again.goto(server.url);
|
await again.goto(server.url);
|
||||||
await expect(again.getByRole('heading', { level: 1 })).toHaveText(PRODUCT_NAME);
|
await expect(again.getByRole('heading', { level: 1 })).toHaveText(PRODUCT_NAME);
|
||||||
await expect(again.locator('.sun p').first()).toHaveText(/in Plzeň\.$/);
|
await expect(again.locator('.sun p').first()).toHaveText(/in Plzeň\.$/);
|
||||||
@@ -86,6 +87,12 @@ test('the shell opens from the service worker with the server gone', async ({ br
|
|||||||
await again.getByRole('button', { name: en.rose.numbers }).click();
|
await again.getByRole('button', { name: en.rose.numbers }).click();
|
||||||
await expect(again.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
await expect(again.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
||||||
|
|
||||||
|
// Watching an in-game sunset with no network (CLAUDE.md §3, the offline suite).
|
||||||
|
await again.getByRole('button', { name: en.chair.move }).click();
|
||||||
|
await again.clock.runFor(30_000);
|
||||||
|
await expect(again.getByRole('dialog').getByText(/in Plzeň\.$/)).toBeVisible();
|
||||||
|
await again.keyboard.press('Escape');
|
||||||
|
|
||||||
// 3. A deep link inside the scope falls back to the shell, not an error page.
|
// 3. A deep link inside the scope falls back to the shell, not an error page.
|
||||||
await again.goto(`${server.url}somewhere/deeper`);
|
await again.goto(`${server.url}somewhere/deeper`);
|
||||||
await expect(again.getByRole('heading', { level: 1 })).toHaveText(PRODUCT_NAME);
|
await expect(again.getByRole('heading', { level: 1 })).toHaveText(PRODUCT_NAME);
|
||||||
|
|||||||
@@ -0,0 +1,91 @@
|
|||||||
|
import AxeBuilder from '@axe-core/playwright';
|
||||||
|
import { expect, test, type Page } from '@playwright/test';
|
||||||
|
import { en } from '@rosea/ui/copy';
|
||||||
|
import { execSync } from 'node:child_process';
|
||||||
|
import { mkdtempSync, rmSync } from 'node:fs';
|
||||||
|
import { tmpdir } from 'node:os';
|
||||||
|
import { join } from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import { startStaticServer, type StaticServer } from './static-server.js';
|
||||||
|
import { storedCare } from './stored.js';
|
||||||
|
import fixture from './fixtures/library/fixture.json' with { type: 'json' };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The rose's folded petal (.agents/features/day-sentence.md), in the BUILT app.
|
||||||
|
*
|
||||||
|
* The shipped library is empty until the author verifies sentences, so the main
|
||||||
|
* build can only show that there is no petal. This spec also builds the app a second
|
||||||
|
* time, with a fixture library (ROSEA_LIBRARY_DIR, P5), into a folder of its own, and
|
||||||
|
* serves that. The second build passes through the same validate:library step.
|
||||||
|
*/
|
||||||
|
const ROOT = fileURLToPath(new URL('..', import.meta.url));
|
||||||
|
const MORNING = Date.parse('2026-03-01T10:00:00+01:00');
|
||||||
|
const texts = fixture.map((s) => s.text.en);
|
||||||
|
|
||||||
|
test.use({ timezoneId: 'Europe/Prague', locale: 'en-US' });
|
||||||
|
|
||||||
|
let server: StaticServer;
|
||||||
|
test.beforeEach(async () => {
|
||||||
|
server = await startStaticServer();
|
||||||
|
});
|
||||||
|
test.afterEach(async () => {
|
||||||
|
await server.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
async function open(page: Page): Promise<void> {
|
||||||
|
await page.clock.setFixedTime(MORNING);
|
||||||
|
await page.goto(server.url);
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.water })).toBeVisible();
|
||||||
|
}
|
||||||
|
|
||||||
|
test('with the shipped library still empty, she holds no petal and says nothing about one', async ({ page }) => {
|
||||||
|
await open(page);
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.petal.open })).toHaveCount(0);
|
||||||
|
await expect(page.getByText(en.rose.petal.waiting)).toHaveCount(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
test.describe('with a fixture library', () => {
|
||||||
|
let dist: string;
|
||||||
|
test.beforeAll(() => {
|
||||||
|
dist = mkdtempSync(join(tmpdir(), 'rosea-petal-'));
|
||||||
|
// The same build the player gets, with the fixture library in place of the real one.
|
||||||
|
execSync(`pnpm --filter @rosea/app run build --outDir "${dist}" --emptyOutDir`, {
|
||||||
|
cwd: ROOT,
|
||||||
|
env: { ...process.env, ROSEA_LIBRARY_DIR: 'e2e/fixtures/library' },
|
||||||
|
stdio: 'pipe'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
test.afterAll(() => {
|
||||||
|
rmSync(dist, { recursive: true, force: true });
|
||||||
|
});
|
||||||
|
test.beforeEach(() => server.serveFrom(dist));
|
||||||
|
|
||||||
|
test('open her petal: the words and their source; a reload keeps it open, and no second one today', async ({ page }) => {
|
||||||
|
await open(page);
|
||||||
|
await page.getByRole('button', { name: en.rose.petal.open }).click();
|
||||||
|
const words = page.locator('blockquote');
|
||||||
|
await expect(words).toHaveCount(1);
|
||||||
|
const said = (await words.textContent()) ?? '';
|
||||||
|
expect(texts).toContain(said);
|
||||||
|
|
||||||
|
await storedCare(page, 1);
|
||||||
|
await page.reload();
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.petal.today })).toHaveAttribute('aria-expanded', 'true');
|
||||||
|
await expect(page.locator('blockquote')).toHaveText(said);
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.petal.open })).toHaveCount(0);
|
||||||
|
|
||||||
|
// Tomorrow, the next one is folded.
|
||||||
|
await page.clock.setFixedTime(MORNING + 24 * 3_600_000);
|
||||||
|
await page.reload();
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.petal.open })).toBeVisible();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the folded and the open petal have no accessibility violations', async ({ page }) => {
|
||||||
|
await open(page);
|
||||||
|
await expect(page.getByRole('button', { name: en.rose.petal.open })).toBeVisible();
|
||||||
|
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||||
|
await page.getByRole('button', { name: en.rose.petal.open }).click();
|
||||||
|
await expect(page.locator('blockquote')).toBeVisible();
|
||||||
|
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -7,7 +7,7 @@ import { defineConfig, devices } from '@playwright/test';
|
|||||||
*/
|
*/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: '.',
|
testDir: '.',
|
||||||
testMatch: /(shell|update)\.spec\.ts/,
|
testMatch: /(shell|update|petal)\.spec\.ts/,
|
||||||
fullyParallel: false,
|
fullyParallel: false,
|
||||||
workers: 1,
|
workers: 1,
|
||||||
retries: 0,
|
retries: 0,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { expect, test, type Page } from '@playwright/test';
|
|||||||
import { PRODUCT_NAME } from '@rosea/schema';
|
import { PRODUCT_NAME } from '@rosea/schema';
|
||||||
import { en } from '@rosea/ui/copy';
|
import { en } from '@rosea/ui/copy';
|
||||||
import { parseLetter } from '@rosea/ui/letter';
|
import { parseLetter } from '@rosea/ui/letter';
|
||||||
import { nextInvitation } from '@rosea/engine';
|
import { nextInvitation, nextSunEvent } from '@rosea/engine';
|
||||||
import { searchTowns } from '@rosea/content/places';
|
import { searchTowns } from '@rosea/content/places';
|
||||||
import { readFileSync } from 'node:fs';
|
import { readFileSync } from 'node:fs';
|
||||||
import { BASE, startStaticServer, type StaticServer } from './static-server.js';
|
import { BASE, startStaticServer, type StaticServer } from './static-server.js';
|
||||||
@@ -163,6 +163,20 @@ test.describe('the sunset place, in Prague\'s time zone at noon on 29 March 2026
|
|||||||
expect(requests.some((url) => /\/assets\/places-.*\.js$/.test(url))).toBe(true);
|
expect(requests.some((url) => /\/assets\/places-.*\.js$/.test(url))).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('at five in the morning the garden names the sunrise, not the sunset (sunrise.md)', async ({ page }) => {
|
||||||
|
const early = Date.parse('2026-03-29T05:00:00+02:00');
|
||||||
|
await page.clock.setFixedTime(early);
|
||||||
|
await open(page);
|
||||||
|
await page.getByRole('searchbox', { name: en.sunset.searchLabel }).fill('brno');
|
||||||
|
await page.getByRole('button', { name: /^Brno/ }).first().click();
|
||||||
|
const brno = searchTowns('brno')[0]!;
|
||||||
|
const { at } = nextSunEvent(early, brno);
|
||||||
|
const time = new Intl.DateTimeFormat('en-US', { hour: 'numeric', minute: '2-digit', timeZone: brno.timeZone }).format(at);
|
||||||
|
const line = page.locator('.sun p').first();
|
||||||
|
await expect(line).toHaveText(/^The sun rises at .* in Brno\.$/);
|
||||||
|
expect(spaced((await line.textContent()) ?? '')).toBe(spaced(en.sunset.rises(time, 'Brno')));
|
||||||
|
});
|
||||||
|
|
||||||
test('"not now" guesses Prague from the device\'s zone and says it is a guess', async ({ page }) => {
|
test('"not now" guesses Prague from the device\'s zone and says it is a guess', async ({ page }) => {
|
||||||
await page.clock.setFixedTime(NOON);
|
await page.clock.setFixedTime(NOON);
|
||||||
await open(page);
|
await open(page);
|
||||||
@@ -214,6 +228,24 @@ test.describe('the rose, in Prague at 08:00 on 1 March 2026', () => {
|
|||||||
expect(requests.filter((url) => !url.startsWith(server.origin + '/'))).toEqual([]);
|
expect(requests.filter((url) => !url.startsWith(server.origin + '/'))).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('touch her: a fond answer; three quick taps, and she says she has thorns (thorns.md)', async ({ page }) => {
|
||||||
|
// The clock is driven, not frozen: taps at one frozen instant would be one touch.
|
||||||
|
await page.clock.install({ time: MORNING });
|
||||||
|
await open(page);
|
||||||
|
const touch = page.getByRole('button', { name: en.rose.touch.label });
|
||||||
|
await touch.click();
|
||||||
|
await expect(page.locator('.bubble')).toHaveText(en.rose.touch.fond[0]!);
|
||||||
|
await page.clock.runFor(5_000);
|
||||||
|
for (let i = 0; i < 3; i++) {
|
||||||
|
await touch.click();
|
||||||
|
await page.clock.runFor(400);
|
||||||
|
}
|
||||||
|
await expect(page.locator('.bubble')).toHaveText(en.rose.touch.thorns);
|
||||||
|
await expect(page.getByRole('img', { name: 'The rose, a bud.' })).toBeVisible();
|
||||||
|
await touch.focus();
|
||||||
|
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
test('the rose and her care have no accessibility violations', async ({ page }) => {
|
test('the rose and her care have no accessibility violations', async ({ page }) => {
|
||||||
await page.clock.setFixedTime(MORNING);
|
await page.clock.setFixedTime(MORNING);
|
||||||
await open(page);
|
await open(page);
|
||||||
@@ -223,6 +255,45 @@ test.describe('the rose, in Prague at 08:00 on 1 March 2026', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// --- Two tabs, one garden (.agents/features/two-tabs.md) ----------------------
|
||||||
|
test.describe('two tabs of the garden, in Prague at 08:00 on 1 March 2026', () => {
|
||||||
|
test.use({ timezoneId: 'Europe/Prague', locale: 'en-US' });
|
||||||
|
const MORNING = Date.parse('2026-03-01T08:00:00+01:00');
|
||||||
|
|
||||||
|
test('care given in one tab is seen in the other without a reload, so she is not watered twice', async ({ page, context }) => {
|
||||||
|
const other = await context.newPage();
|
||||||
|
for (const p of [page, other]) {
|
||||||
|
await p.clock.setFixedTime(MORNING);
|
||||||
|
await open(p);
|
||||||
|
await expect(p.getByText(en.rose.says.dry)).toBeVisible();
|
||||||
|
}
|
||||||
|
await page.getByRole('button', { name: en.rose.water }).hover();
|
||||||
|
await page.mouse.down();
|
||||||
|
await page.waitForTimeout(1500);
|
||||||
|
await page.mouse.up();
|
||||||
|
await expect(page.getByText(en.rose.says.thanks)).toBeVisible();
|
||||||
|
await storedCare(page, 1);
|
||||||
|
|
||||||
|
// The other tab, untouched and not reloaded, knows she was watered.
|
||||||
|
await expect(other.getByText(en.rose.says.thanks)).toBeVisible({ timeout: 3_000 });
|
||||||
|
await other.getByRole('button', { name: en.rose.numbers }).click();
|
||||||
|
await expect(other.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a town chosen in one tab is the town in the other', async ({ page, context }) => {
|
||||||
|
const other = await context.newPage();
|
||||||
|
for (const p of [page, other]) {
|
||||||
|
await p.clock.setFixedTime(MORNING);
|
||||||
|
await open(p);
|
||||||
|
await expect(p.getByRole('heading', { level: 2, name: en.sunset.question })).toBeVisible();
|
||||||
|
}
|
||||||
|
await page.getByRole('searchbox', { name: en.sunset.searchLabel }).fill('brno');
|
||||||
|
await page.getByRole('button', { name: /^Brno/ }).first().click();
|
||||||
|
await storedTown(page, 'Brno');
|
||||||
|
await expect(other.locator('.sun p').first()).toHaveText(/in Brno\.$/, { timeout: 3_000 });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// --- Keeping her (.agents/features/keep-her-safe.md) --------------------------
|
// --- Keeping her (.agents/features/keep-her-safe.md) --------------------------
|
||||||
test.describe('keep her safe, in Prague at 08:00 on 1 March 2026', () => {
|
test.describe('keep her safe, in Prague at 08:00 on 1 March 2026', () => {
|
||||||
test.use({ timezoneId: 'Europe/Prague', locale: 'en-US' });
|
test.use({ timezoneId: 'Europe/Prague', locale: 'en-US' });
|
||||||
@@ -253,7 +324,7 @@ test.describe('keep her safe, in Prague at 08:00 on 1 March 2026', () => {
|
|||||||
} finally {
|
} finally {
|
||||||
await first.close();
|
await first.close();
|
||||||
}
|
}
|
||||||
expect(JSON.parse(saved)).toMatchObject({ format: 'rosea-rose', version: 1 });
|
expect(JSON.parse(saved)).toMatchObject({ format: 'rosea-rose', version: 2 });
|
||||||
expect(saved).not.toMatch(/Brno|privateKey/);
|
expect(saved).not.toMatch(/Brno|privateKey/);
|
||||||
|
|
||||||
// A fresh profile: the shape of an evicted garden, or a new phone.
|
// A fresh profile: the shape of an evicted garden, or a new phone.
|
||||||
@@ -279,3 +350,31 @@ test.describe('keep her safe, in Prague at 08:00 on 1 March 2026', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// --- The in-game sunset (.agents/features/chair-sunset.md) ---------------------
|
||||||
|
test.describe('the in-game sunset, in Prague at noon on 29 March 2026', () => {
|
||||||
|
test.use({ timezoneId: 'Europe/Prague', locale: 'en-US' });
|
||||||
|
|
||||||
|
test('move the chair: half a minute with nothing to press, then the real sunset\'s time; again; back', async ({ page }) => {
|
||||||
|
// An installed clock, so the scene's half minute can be run in a moment.
|
||||||
|
await page.clock.install({ time: Date.parse('2026-03-29T12:00:00+02:00') });
|
||||||
|
await open(page);
|
||||||
|
await page.getByRole('button', { name: /^Not now/ }).click();
|
||||||
|
await page.getByRole('button', { name: en.chair.move }).click();
|
||||||
|
|
||||||
|
const scene = page.getByRole('dialog', { name: en.chair.scene });
|
||||||
|
await expect(scene).toBeVisible();
|
||||||
|
await expect(scene.getByRole('button')).toHaveCount(0);
|
||||||
|
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||||
|
|
||||||
|
await page.clock.runFor(30_000);
|
||||||
|
await expect(scene.getByText(/^Tonight the sun sets at .* in Prague\.$/)).toBeVisible();
|
||||||
|
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||||
|
|
||||||
|
await scene.getByRole('button', { name: en.chair.again }).click();
|
||||||
|
await expect(scene.getByRole('button')).toHaveCount(0);
|
||||||
|
await page.keyboard.press('Escape');
|
||||||
|
await expect(scene).toHaveCount(0);
|
||||||
|
await expect(page.getByRole('button', { name: en.chair.move })).toBeFocused();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -29,7 +29,11 @@ export default [
|
|||||||
'**/.turbo/**',
|
'**/.turbo/**',
|
||||||
'**/generated/**',
|
'**/generated/**',
|
||||||
'**/playwright-report/**',
|
'**/playwright-report/**',
|
||||||
'**/test-results/**'
|
'**/test-results/**',
|
||||||
|
// Other sessions' git worktrees live under .claude/worktrees/: separate checkouts,
|
||||||
|
// linted in their own place, never from here (with Rust build output inside).
|
||||||
|
'.claude/**',
|
||||||
|
'**/target/**'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
"test:e2e": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.config.ts",
|
"test:e2e": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.config.ts",
|
||||||
"test:offline": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.offline.config.ts",
|
"test:offline": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.offline.config.ts",
|
||||||
"validate:library": "tsx scripts/validate-library.ts",
|
"validate:library": "tsx scripts/validate-library.ts",
|
||||||
|
"library:verify": "tsx scripts/verify-sentences.ts",
|
||||||
"lint:copy": "tsx scripts/lint-copy.ts",
|
"lint:copy": "tsx scripts/lint-copy.ts",
|
||||||
"art:board": "tsx tools/art-prep/src/cli-board.ts",
|
"art:board": "tsx tools/art-prep/src/cli-board.ts",
|
||||||
"art:accept": "tsx tools/art-prep/src/cli-accept.ts",
|
"art:accept": "tsx tools/art-prep/src/cli-accept.ts",
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./validate": "./src/validator.ts",
|
"./validate": "./src/validator.ts",
|
||||||
|
"./candidates": "./src/candidates.ts",
|
||||||
"./places": "./src/places/places.ts",
|
"./places": "./src/places/places.ts",
|
||||||
"./guess": "./src/places/guess.ts"
|
"./guess": "./src/places/guess.ts"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,102 @@
|
|||||||
|
/**
|
||||||
|
* Candidate sentences and their verification (.agents/features/day-sentence.md P8).
|
||||||
|
*
|
||||||
|
* An agent may propose a sentence; only a person may say it was checked
|
||||||
|
* (phase0-workspace.md D4). A candidate is a library entry without `publicDomain`,
|
||||||
|
* `verifiedBy` and `verifiedAt`, and with a `check`: where to read it. It is held to
|
||||||
|
* every library rule but verification, so the author is never asked to verify a
|
||||||
|
* line that would fail anyway.
|
||||||
|
*
|
||||||
|
* `verifyCandidates` is what `pnpm library:verify <id…> --by <name>` does. It is the
|
||||||
|
* author's command. **Agents never run it.**
|
||||||
|
*/
|
||||||
|
import { validateEntry, validateLibrary, type Problem } from './validator.js';
|
||||||
|
|
||||||
|
/** A file's worth of entries: its name (`biblical.json`) and what it holds. */
|
||||||
|
export type Files = Readonly<Record<string, readonly unknown[]>>;
|
||||||
|
|
||||||
|
const isRecord = (x: unknown): x is Record<string, unknown> => typeof x === 'object' && x !== null && !Array.isArray(x);
|
||||||
|
const idOf = (x: unknown): string => (isRecord(x) && typeof x['id'] === 'string' ? x['id'] : '(no id)');
|
||||||
|
|
||||||
|
/** The library entry a candidate becomes once a person has checked it. */
|
||||||
|
export function asVerified(candidate: unknown, by: string, day: string): unknown {
|
||||||
|
if (!isRecord(candidate) || !isRecord(candidate['source'])) return candidate;
|
||||||
|
const { check: _check, ...entry } = candidate;
|
||||||
|
return { ...entry, source: { ...candidate['source'], publicDomain: true, verifiedBy: by, verifiedAt: day } };
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Every reason a candidate could not become a library entry, even once verified. */
|
||||||
|
export function validateCandidate(candidate: unknown): Problem[] {
|
||||||
|
const id = idOf(candidate);
|
||||||
|
const problems: Problem[] = [];
|
||||||
|
const check = isRecord(candidate) ? candidate['check'] : undefined;
|
||||||
|
if (!isRecord(check) || typeof check['url'] !== 'string' || !/^https:\/\//.test(check['url']) || typeof check['where'] !== 'string' || typeof check['publicDomain'] !== 'string') {
|
||||||
|
problems.push({ id, rule: 'schema', message: 'a candidate needs check.url (https), check.where and check.publicDomain, so the person verifying knows where to read it' });
|
||||||
|
}
|
||||||
|
const source = isRecord(candidate) ? candidate['source'] : undefined;
|
||||||
|
for (const field of ['publicDomain', 'verifiedBy', 'verifiedAt']) {
|
||||||
|
if (isRecord(source) && field in source) {
|
||||||
|
problems.push({ id, rule: 'schema', message: `a candidate must not carry source.${field}: only the person who verifies it adds that` });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [...problems, ...validateEntry(asVerified(candidate, 'candidate', '2000-01-01'))];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Every candidate, and ids unique across the candidates and the library together. */
|
||||||
|
export function validateCandidates(candidates: readonly unknown[], library: readonly unknown[]): Problem[] {
|
||||||
|
const problems = candidates.flatMap(validateCandidate);
|
||||||
|
const inLibrary = new Set(library.map(idOf));
|
||||||
|
const seen = new Set<string>();
|
||||||
|
for (const c of candidates) {
|
||||||
|
const id = idOf(c);
|
||||||
|
if (inLibrary.has(id)) problems.push({ id, rule: 'duplicate-id', message: `id '${id}' is already in the library` });
|
||||||
|
else if (seen.has(id)) problems.push({ id, rule: 'duplicate-id', message: `id '${id}' is proposed more than once` });
|
||||||
|
seen.add(id);
|
||||||
|
}
|
||||||
|
return problems;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type VerifyResult =
|
||||||
|
| { readonly ok: true; readonly library: Files; readonly candidates: Files; readonly moved: readonly string[] }
|
||||||
|
| { readonly ok: false; readonly problems: readonly string[] };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the candidates named by `ids` into the library, as checked by `by` on `day`.
|
||||||
|
* Each lands in the library file named like its candidate file. Refuses, and moves
|
||||||
|
* nothing, if an id is unknown, the name is empty, or the library would fail.
|
||||||
|
*/
|
||||||
|
export function verifyCandidates(p: {
|
||||||
|
readonly candidates: Files;
|
||||||
|
readonly library: Files;
|
||||||
|
readonly ids: readonly string[];
|
||||||
|
readonly by: string;
|
||||||
|
readonly day: string;
|
||||||
|
}): VerifyResult {
|
||||||
|
const by = p.by.trim();
|
||||||
|
if (by === '' || by.toLowerCase() === 'candidate') return { ok: false, problems: ['--by needs the name of the person who checked the sentences'] };
|
||||||
|
if (!/^\d{4}-\d{2}-\d{2}$/.test(p.day)) return { ok: false, problems: [`not a day: '${p.day}'`] };
|
||||||
|
if (p.ids.length === 0) return { ok: false, problems: ['name at least one candidate id'] };
|
||||||
|
|
||||||
|
const wanted = new Set(p.ids);
|
||||||
|
const library: Record<string, unknown[]> = Object.fromEntries(Object.entries(p.library).map(([f, e]) => [f, [...e]]));
|
||||||
|
const candidates: Record<string, unknown[]> = {};
|
||||||
|
const moved: string[] = [];
|
||||||
|
for (const [file, entries] of Object.entries(p.candidates)) {
|
||||||
|
candidates[file] = [];
|
||||||
|
for (const c of entries) {
|
||||||
|
const id = idOf(c);
|
||||||
|
if (wanted.has(id) && !moved.includes(id)) {
|
||||||
|
(library[file] ??= []).push(asVerified(c, by, p.day));
|
||||||
|
moved.push(id);
|
||||||
|
} else {
|
||||||
|
candidates[file].push(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const unknown = p.ids.filter((id) => !moved.includes(id));
|
||||||
|
if (unknown.length > 0) return { ok: false, problems: unknown.map((id) => `no candidate '${id}'`) };
|
||||||
|
const problems = validateLibrary(Object.values(library).flat()).map((x) => `${x.id} [${x.rule}] ${x.message}`);
|
||||||
|
if (problems.length > 0) return { ok: false, problems };
|
||||||
|
return { ok: true, library, candidates, moved };
|
||||||
|
}
|
||||||
@@ -49,7 +49,23 @@ export const PUBLIC_DOMAIN_TRANSLATIONS: ReadonlySet<string> = new Set([
|
|||||||
'ASV', // American Standard Version, 1901
|
'ASV', // American Standard Version, 1901
|
||||||
'Douay-Rheims', // 1582–1610, Challoner revision 1752
|
'Douay-Rheims', // 1582–1610, Challoner revision 1752
|
||||||
'YLT', // Young's Literal Translation, 1862
|
'YLT', // Young's Literal Translation, 1862
|
||||||
'WEB' // World English Bible, dedicated to the public domain
|
'WEB', // World English Bible, dedicated to the public domain
|
||||||
|
// Added 2026-11-02 with the first candidates (day-sentence.md P8). Each is the edition
|
||||||
|
// on Project Gutenberg; translator dead before 1956 (EU life + 70) and the edition
|
||||||
|
// first published before 1931 (US). Death years from the Gutenberg catalogue,
|
||||||
|
// cross-checked by web search. The author still checks each sentence.
|
||||||
|
'George Long, 1862', // Marcus Aurelius; d. 1879
|
||||||
|
'George Long, 1877', // Epictetus; d. 1879
|
||||||
|
'Evelyn S. Shuckburgh, 1900', // Cicero; d. 1906
|
||||||
|
'Andrew P. Peabody, 1887', // Cicero, De Amicitia; d. 1893
|
||||||
|
'Aubrey Stewart, 1889', // Seneca, Minor Dialogues; d. 1918
|
||||||
|
'James Legge, 1891', // Tao Te Ching; d. 1897
|
||||||
|
'Herbert A. Giles, 1889', // Chuang Tzu; d. 1935
|
||||||
|
'F. Max Müller, 1881', // Dhammapada; d. 1900
|
||||||
|
'James Ross, 1823', // Sa'di, Gulistan; d. 1831
|
||||||
|
'William Benham, 1886', // Imitation of Christ; d. 1910
|
||||||
|
'Grace Warrack, 1901', // Julian of Norwich; d. 1932
|
||||||
|
'Rabindranath Tagore (his own English), 1912' // Gitanjali; d. 1941
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,87 @@
|
|||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { asVerified, validateCandidate, validateCandidates, verifyCandidates } from '../src/candidates.js';
|
||||||
|
import { validateEntry } from '../src/validator.js';
|
||||||
|
|
||||||
|
const candidate = (id: string, over: Record<string, unknown> = {}): Record<string, unknown> => ({
|
||||||
|
id,
|
||||||
|
text: { en: 'Fixture text for a candidate, not a real sentence.' },
|
||||||
|
source: { work: 'Fixture 1:1', author: null, tradition: 'biblical', translation: 'KJV' },
|
||||||
|
use: ['sunset'],
|
||||||
|
tone: 'gentle',
|
||||||
|
promisesOutcome: false,
|
||||||
|
check: { url: 'https://example.org/fixture', where: 'chapter 1, verse 1', publicDomain: 'KJV, 1611/1769' },
|
||||||
|
...over
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('a candidate (day-sentence.md P8)', () => {
|
||||||
|
it('becomes a valid library entry once a person has checked it, with no check field left', () => {
|
||||||
|
const entry = asVerified(candidate('fx-1'), 'Mark', '2026-11-02') as Record<string, unknown>;
|
||||||
|
expect(validateEntry(entry)).toEqual([]);
|
||||||
|
expect(entry).not.toHaveProperty('check');
|
||||||
|
expect(entry['source']).toMatchObject({ publicDomain: true, verifiedBy: 'Mark', verifiedAt: '2026-11-02' });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('passes when it would pass the library', () => {
|
||||||
|
expect(validateCandidate(candidate('fx-1'))).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('is held to every library rule: length, forbidden words, promises, translations', () => {
|
||||||
|
expect(validateCandidate(candidate('fx-long', { text: { en: 'x'.repeat(241) } })).map((p) => p.rule)).toContain('too-long');
|
||||||
|
expect(validateCandidate(candidate('fx-word', { text: { en: 'A lonely road.' } })).map((p) => p.rule)).toContain('forbidden-word');
|
||||||
|
expect(validateCandidate(candidate('fx-promise', { text: { en: 'Everything will be well.' } })).map((p) => p.rule)).toContain('promises-outcome');
|
||||||
|
expect(
|
||||||
|
validateCandidate(candidate('fx-niv', { source: { work: 'Fixture', author: null, tradition: 'biblical', translation: 'NIV' } })).map((p) => p.rule)
|
||||||
|
).toContain('translation-under-copyright');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('needs a check that says where to read it', () => {
|
||||||
|
const { check: _, ...noCheck } = candidate('fx-1');
|
||||||
|
expect(validateCandidate(noCheck)[0]?.message).toMatch(/check\.url/);
|
||||||
|
expect(validateCandidate(candidate('fx-1', { check: { url: 'http://example.org', where: 'x', publicDomain: 'x' } }))[0]?.message).toMatch(/https/);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('may not say it was verified: only the person who verifies adds that', () => {
|
||||||
|
for (const field of ['publicDomain', 'verifiedBy', 'verifiedAt']) {
|
||||||
|
const c = candidate('fx-1', { source: { work: 'F', author: null, tradition: 'biblical', translation: 'KJV', [field]: field === 'publicDomain' ? true : 'x' } });
|
||||||
|
expect(validateCandidate(c).map((p) => p.message).join(' '), field).toMatch(new RegExp(`source\\.${field}`));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
it('may not reuse an id the library or another candidate has', () => {
|
||||||
|
const library = [asVerified(candidate('fx-1'), 'Mark', '2026-11-01')];
|
||||||
|
const problems = validateCandidates([candidate('fx-1'), candidate('fx-2'), candidate('fx-2')], library);
|
||||||
|
expect(problems.map((p) => `${p.id} ${p.rule}`)).toEqual(['fx-1 duplicate-id', 'fx-2 duplicate-id']);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('library:verify — the author’s command', () => {
|
||||||
|
const files = { candidates: { 'biblical.json': [candidate('fx-1'), candidate('fx-2')], 'poetry.json': [candidate('fx-3', { source: { work: 'P', author: 'A Poet', tradition: 'poetry', translation: null } })] }, library: {} };
|
||||||
|
|
||||||
|
it('moves the named candidates into the library file of the same name, stamped with the name and the day', () => {
|
||||||
|
const result = verifyCandidates({ ...files, ids: ['fx-1', 'fx-3'], by: 'Mark', day: '2026-11-02' });
|
||||||
|
expect(result.ok).toBe(true);
|
||||||
|
if (!result.ok) return;
|
||||||
|
expect(result.moved).toEqual(['fx-1', 'fx-3']);
|
||||||
|
expect(Object.keys(result.library).sort()).toEqual(['biblical.json', 'poetry.json']);
|
||||||
|
expect(result.library['biblical.json']).toEqual([asVerified(candidate('fx-1'), 'Mark', '2026-11-02')]);
|
||||||
|
expect(result.candidates['biblical.json']).toEqual([candidate('fx-2')]);
|
||||||
|
expect(result.candidates['poetry.json']).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('adds to what the library already holds, never replaces it', () => {
|
||||||
|
const kept = asVerified(candidate('old-1'), 'Mark', '2026-11-01');
|
||||||
|
const result = verifyCandidates({ ...files, library: { 'biblical.json': [kept] }, ids: ['fx-2'], by: 'Mark', day: '2026-11-02' });
|
||||||
|
expect(result.ok && result.library['biblical.json']).toEqual([kept, asVerified(candidate('fx-2'), 'Mark', '2026-11-02')]);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('refuses, moving nothing, without a person’s name, with an unknown id, or with a line the library would refuse', () => {
|
||||||
|
expect(verifyCandidates({ ...files, ids: ['fx-1'], by: ' ', day: '2026-11-02' })).toMatchObject({ ok: false });
|
||||||
|
expect(verifyCandidates({ ...files, ids: ['fx-1'], by: 'candidate', day: '2026-11-02' })).toMatchObject({ ok: false });
|
||||||
|
expect(verifyCandidates({ ...files, ids: [], by: 'Mark', day: '2026-11-02' })).toMatchObject({ ok: false });
|
||||||
|
expect(verifyCandidates({ ...files, ids: ['fx-1', 'nope'], by: 'Mark', day: '2026-11-02' })).toEqual({ ok: false, problems: ["no candidate 'nope'"] });
|
||||||
|
const bad = { candidates: { 'biblical.json': [candidate('fx-bad', { text: { en: 'A lonely road.' } })] }, library: {} };
|
||||||
|
const result = verifyCandidates({ ...bad, ids: ['fx-bad'], by: 'Mark', day: '2026-11-02' });
|
||||||
|
expect(result.ok).toBe(false);
|
||||||
|
expect(!result.ok && result.problems.join(' ')).toMatch(/forbidden-word/);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -45,7 +45,18 @@ describe('the town list', () => {
|
|||||||
['Anchorage', 'United States of America', 'America/Anchorage'], // Natural Earth: America/Juneau
|
['Anchorage', 'United States of America', 'America/Anchorage'], // Natural Earth: America/Juneau
|
||||||
['Kryvyi Rih', 'Ukraine', 'Europe/Kyiv'], // never Simferopol's Moscow time
|
['Kryvyi Rih', 'Ukraine', 'Europe/Kyiv'], // never Simferopol's Moscow time
|
||||||
['Apia', 'Samoa', 'Pacific/Apia'], // UTC+13 at 172° W
|
['Apia', 'Samoa', 'Pacific/Apia'], // UTC+13 at 172° W
|
||||||
['Pristina', 'Kosovo', 'Europe/Belgrade'] // no ISO code in Natural Earth
|
['Pristina', 'Kosovo', 'Europe/Belgrade'], // no ISO code in Natural Earth
|
||||||
|
// Natural Earth: America/Sao_Paulo, whose fixed UTC-3 once moved the capital onto a
|
||||||
|
// southern zone's clock with no daylight saving (fixed 2026-11-17).
|
||||||
|
['Santiago', 'Chile', 'America/Santiago'],
|
||||||
|
['Valparaíso', 'Chile', 'America/Santiago'],
|
||||||
|
['Puerto Montt', 'Chile', 'America/Santiago'], // north of Aysén: the main clock
|
||||||
|
// Natural Earth predates the regional splits (Magallanes 2016, Aysén 2025).
|
||||||
|
['Coyhaique', 'Chile', 'America/Coyhaique'],
|
||||||
|
['Puerto Aisén', 'Chile', 'America/Coyhaique'],
|
||||||
|
["Villa O'Higgins", 'Chile', 'America/Coyhaique'], // Natural Earth even files it under Argentina's Santa Cruz
|
||||||
|
['Punta Arenas', 'Chile', 'America/Punta_Arenas'],
|
||||||
|
['Puerto Williams', 'Chile', 'America/Punta_Arenas']
|
||||||
])('%s, %s, keeps %s', (name, country, zone) => {
|
])('%s, %s, keeps %s', (name, country, zone) => {
|
||||||
const t = towns.find((x) => x.name === name && x.country === country);
|
const t = towns.find((x) => x.name === name && x.country === country);
|
||||||
expect(t?.timeZone).toBe(zone);
|
expect(t?.timeZone).toBe(zone);
|
||||||
|
|||||||
@@ -3,4 +3,8 @@ export {
|
|||||||
careEvent, careIdentity, judgeCare, newCare, OWN_TRACE, petalsOn, pour, ROSE, roseAt, seeded, stageFor, weedsOn, windOn,
|
careEvent, careIdentity, judgeCare, newCare, OWN_TRACE, petalsOn, pour, ROSE, roseAt, seeded, stageFor, weedsOn, windOn,
|
||||||
type Judged, type Mood, type Needs, type RoseKeys, type RoseNow, type Stage, type Trend
|
type Judged, type Mood, type Needs, type RoseKeys, type RoseNow, type Stage, type Trend
|
||||||
} from './rose/rose.js';
|
} from './rose/rose.js';
|
||||||
export { invitation, nextInvitation, sunDay, type NamedPlace, type Place, type SunDay } from './sun/sun.js';
|
export { invitation, nextInvitation, nextSunEvent, sunDay, type NamedPlace, type Place, type SunDay } from './sun/sun.js';
|
||||||
|
export {
|
||||||
|
goodMoment, newOpened, openedIdentity, PETAL, petalAt, petalOrder, sentenceOpened, type PetalNow, type PetalSentence
|
||||||
|
} from './petal/petal.js';
|
||||||
|
export { touch, TOUCH, UNTOUCHED, type TouchReply, type TouchState } from './touch/touch.js';
|
||||||
|
|||||||
@@ -0,0 +1,142 @@
|
|||||||
|
/**
|
||||||
|
* The rose's folded petal: the day's sentence (.agents/features/day-sentence.md).
|
||||||
|
*
|
||||||
|
* Pure: the log, the library, the clock and the place are parameters. Which sentence
|
||||||
|
* waits is a function of what was opened, never of the days that passed, so a
|
||||||
|
* petal not opened is never lost (CLAUDE.md §5.5) and a gap is never shown.
|
||||||
|
*/
|
||||||
|
import type { HopeSentence, SentenceOpened } from '@rosea/schema';
|
||||||
|
import { seeded, type RoseKeys } from '../rose/rose.js';
|
||||||
|
import { nextInvitation, type Place } from '../sun/sun.js';
|
||||||
|
import { daysBetween, localDay, type LocalDay } from '../time/localDay.js';
|
||||||
|
|
||||||
|
/** The petal's tuning. The author's to change (day-sentence.md P3, P4). */
|
||||||
|
export const PETAL = {
|
||||||
|
/** The last petal opened at most this many local days ago: she also remembers an earlier one. */
|
||||||
|
nearDays: 3,
|
||||||
|
/** The good moment: this long before the sun module's invitation… */
|
||||||
|
beforeMinutes: 60,
|
||||||
|
/** …until this long after it. */
|
||||||
|
afterMinutes: 60
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
const MINUTE = 60_000;
|
||||||
|
|
||||||
|
/** What the petal needs to know of a library sentence. */
|
||||||
|
export interface PetalSentence {
|
||||||
|
readonly id: HopeSentence['id'];
|
||||||
|
readonly use: HopeSentence['use'];
|
||||||
|
readonly source: { readonly verifiedAt: HopeSentence['source']['verifiedAt'] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PetalNow =
|
||||||
|
/** No sunset sentence in the library: no petal, and nothing said about one. */
|
||||||
|
| { readonly kind: 'none' }
|
||||||
|
| { readonly kind: 'folded'; readonly id: string }
|
||||||
|
/** Opened today. `remembered` is an earlier one she recalls, on a nearby day (P3). */
|
||||||
|
| { readonly kind: 'open'; readonly id: string; readonly remembered: string | null };
|
||||||
|
|
||||||
|
const byKeys = (keys: RoseKeys): ReadonlySet<string> => new Set(typeof keys === 'string' ? [keys] : keys);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The one order the petals come in (P1): sunset sentences by the day they were
|
||||||
|
* verified, then by a hash of the id, so the first days are not all one book and a
|
||||||
|
* sentence verified later always comes after the ones already there.
|
||||||
|
*/
|
||||||
|
export function petalOrder(sentences: readonly PetalSentence[]): string[] {
|
||||||
|
const seen = new Set<string>();
|
||||||
|
const sunset: { id: string; day: LocalDay; mix: number }[] = [];
|
||||||
|
for (const s of sentences) {
|
||||||
|
if (!s.use.includes('sunset') || seen.has(s.id)) continue;
|
||||||
|
seen.add(s.id);
|
||||||
|
sunset.push({ id: s.id, day: s.source.verifiedAt, mix: seeded(s.id, s.source.verifiedAt, 'petal') });
|
||||||
|
}
|
||||||
|
sunset.sort((a, b) => (a.day < b.day ? -1 : a.day > b.day ? 1 : a.mix - b.mix || (a.id < b.id ? -1 : 1)));
|
||||||
|
return sunset.map((s) => s.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** The first opening of each local day, in the order they happened (P2). Later ones that day changed nothing. */
|
||||||
|
function dayOpenings(opened: readonly SentenceOpened[], keys: RoseKeys): SentenceOpened[] {
|
||||||
|
const mine = byKeys(keys);
|
||||||
|
const sorted = opened.filter((e) => mine.has(e.from)).sort((a, b) => a.ts - b.ts);
|
||||||
|
const firstOfDay = new Map<LocalDay, SentenceOpened>();
|
||||||
|
for (const e of sorted) if (!firstOfDay.has(e.localDay)) firstOfDay.set(e.localDay, e);
|
||||||
|
return [...firstOfDay.values()];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** The rose's petal at `now`, for the rose named by `keys`. */
|
||||||
|
export function petalAt(
|
||||||
|
sentences: readonly PetalSentence[],
|
||||||
|
opened: readonly SentenceOpened[],
|
||||||
|
keys: RoseKeys,
|
||||||
|
now: number,
|
||||||
|
timeZone: string
|
||||||
|
): PetalNow {
|
||||||
|
const today = localDay(now, timeZone);
|
||||||
|
const days = dayOpenings(opened, keys);
|
||||||
|
const order = petalOrder(sentences);
|
||||||
|
|
||||||
|
const todays = days.find((e) => e.localDay === today);
|
||||||
|
if (todays !== undefined) {
|
||||||
|
const before = days.filter((e) => e.localDay < today);
|
||||||
|
const previous = before.at(-1);
|
||||||
|
let remembered: string | null = null;
|
||||||
|
if (previous !== undefined && daysBetween(previous.localDay, today) <= PETAL.nearDays) {
|
||||||
|
const known = new Set(order);
|
||||||
|
const earlier = [...new Set(before.map((e) => e.messageId))].filter((id) => id !== todays.messageId && known.has(id));
|
||||||
|
if (earlier.length > 0) remembered = earlier[Math.floor(seeded(todays.from, today, 'remember') * earlier.length)] ?? null;
|
||||||
|
}
|
||||||
|
return { kind: 'open', id: todays.messageId, remembered };
|
||||||
|
}
|
||||||
|
|
||||||
|
if (order.length === 0) return { kind: 'none' };
|
||||||
|
const lastOpened = new Map<string, number>();
|
||||||
|
for (const e of days) lastOpened.set(e.messageId, e.ts);
|
||||||
|
const never = order.find((id) => !lastOpened.has(id));
|
||||||
|
if (never !== undefined) return { kind: 'folded', id: never };
|
||||||
|
// Every one has been opened: the one opened longest ago comes round again.
|
||||||
|
let oldest = order[0]!;
|
||||||
|
for (const id of order) if (lastOpened.get(id)! < lastOpened.get(oldest)!) oldest = id;
|
||||||
|
return { kind: 'folded', id: oldest };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The best moment to open the petal (P4): around the sun module's invitation, the
|
||||||
|
* sunset, or in polar day the lowest light, in polar night the brightest twilight.
|
||||||
|
* It changes only what she says.
|
||||||
|
*/
|
||||||
|
export function goodMoment(now: number, place: Place): boolean {
|
||||||
|
const { at } = nextInvitation(now - PETAL.afterMinutes * MINUTE, place);
|
||||||
|
return now >= at - PETAL.beforeMinutes * MINUTE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** The event the log keeps when the petal is opened. The day comes from the one module that computes days. */
|
||||||
|
export function sentenceOpened(p: {
|
||||||
|
readonly now: number;
|
||||||
|
readonly timeZone: string;
|
||||||
|
readonly from: string;
|
||||||
|
readonly messageId: string;
|
||||||
|
readonly clientVersion: string;
|
||||||
|
}): SentenceOpened {
|
||||||
|
return {
|
||||||
|
kind: 'sentence-opened', ts: Math.round(p.now), localDay: localDay(p.now, p.timeZone),
|
||||||
|
from: p.from, messageId: p.messageId, clientVersion: p.clientVersion
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/** What makes two openings the same: the same moment, rose and sentence. */
|
||||||
|
export const openedIdentity = (e: SentenceOpened): string => `${e.ts}|${e.from}|${e.messageId}`;
|
||||||
|
|
||||||
|
/** The openings in `incoming` that `existing` does not hold yet (bringing a rose back twice adds nothing twice). */
|
||||||
|
export function newOpened(existing: readonly SentenceOpened[], incoming: readonly SentenceOpened[]): SentenceOpened[] {
|
||||||
|
const seen = new Set(existing.map(openedIdentity));
|
||||||
|
const out: SentenceOpened[] = [];
|
||||||
|
for (const e of incoming) {
|
||||||
|
const id = openedIdentity(e);
|
||||||
|
if (!seen.has(id)) {
|
||||||
|
seen.add(id);
|
||||||
|
out.push(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return out;
|
||||||
|
}
|
||||||
@@ -159,6 +159,17 @@ export function nextInvitation(now: number, place: Place): { readonly sun: SunDa
|
|||||||
throw new Error(`nextInvitation: no invitation within two days of ${today}`);
|
throw new Error(`nextInvitation: no invitation within two days of ${today}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The next thing to look up for (sunrise.md R1): the sunrise of the next invitation's
|
||||||
|
* day while it is still ahead, otherwise the invitation itself. Built on
|
||||||
|
* `nextInvitation`, so Reykjavík's after-midnight sunset stays tonight's (D2).
|
||||||
|
*/
|
||||||
|
export function nextSunEvent(now: number, place: Place): { readonly sun: SunDay; readonly at: number; readonly kind: 'sunrise' | 'invitation' } {
|
||||||
|
const next = nextInvitation(now, place);
|
||||||
|
if (next.sun.kind === 'sun-sets' && next.sun.sunrise >= now) return { sun: next.sun, at: next.sun.sunrise, kind: 'sunrise' };
|
||||||
|
return { ...next, kind: 'invitation' };
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When the game invites the player outside: the sunset; in polar day the lowest
|
* When the game invites the player outside: the sunset; in polar day the lowest
|
||||||
* light; in polar night noon, when the twilight is brightest (D4; decided by the
|
* light; in polar night noon, when the twilight is brightest (D4; decided by the
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
* Touching her (.agents/features/thorns.md). Pure: the visit's recent touches and the
|
||||||
|
* clock are parameters. Nothing here is recorded: a touch is not care, and no number
|
||||||
|
* grows from it.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** The author's to tune (thorns.md T2, T3). */
|
||||||
|
export const TOUCH = {
|
||||||
|
/** This many touches… */
|
||||||
|
rushCount: 3,
|
||||||
|
/** …within this long is a rush: she says she has thorns. */
|
||||||
|
rushMs: 2000,
|
||||||
|
/** Touches closer than this to the one before are one touch: a tremor or a bounce is never fussing. */
|
||||||
|
sameMs: 250,
|
||||||
|
/** After the thorns line she rests this long; touches meanwhile change nothing. */
|
||||||
|
restMs: 4000
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export interface TouchState {
|
||||||
|
/** The touches that still count towards a rush, oldest first. */
|
||||||
|
readonly recent: readonly number[];
|
||||||
|
/** Until when she rests after a rush; 0 when she is not resting. */
|
||||||
|
readonly restUntil: number;
|
||||||
|
/** Whether a touch has already made her blush in this visit (T4). */
|
||||||
|
readonly blushed: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const UNTOUCHED: TouchState = { recent: [], restUntil: 0, blushed: false };
|
||||||
|
|
||||||
|
export type TouchReply =
|
||||||
|
/** A fond answer. `blush` only on the first of a visit. */
|
||||||
|
| { readonly kind: 'fond'; readonly blush: boolean }
|
||||||
|
| { readonly kind: 'thorns' }
|
||||||
|
/** Resting after a rush, or the same touch again: nothing changes. */
|
||||||
|
| { readonly kind: 'nothing' };
|
||||||
|
|
||||||
|
/** What a touch at `now` does, and the state after it. */
|
||||||
|
export function touch(state: TouchState, now: number): { readonly reply: TouchReply; readonly state: TouchState } {
|
||||||
|
// Resting; a clock that moved back never makes her rest longer than restMs.
|
||||||
|
if (now < state.restUntil && state.restUntil - now <= TOUCH.restMs) return { reply: { kind: 'nothing' }, state };
|
||||||
|
const last = state.recent.at(-1);
|
||||||
|
if (last !== undefined && now - last >= 0 && now - last < TOUCH.sameMs) return { reply: { kind: 'nothing' }, state };
|
||||||
|
|
||||||
|
const recent = [...state.recent.filter((t) => now - t >= 0 && now - t < TOUCH.rushMs), now].slice(-TOUCH.rushCount);
|
||||||
|
if (recent.length >= TOUCH.rushCount) {
|
||||||
|
return { reply: { kind: 'thorns' }, state: { recent: [], restUntil: now + TOUCH.restMs, blushed: state.blushed } };
|
||||||
|
}
|
||||||
|
return { reply: { kind: 'fond', blush: !state.blushed }, state: { recent, restUntil: 0, blushed: true } };
|
||||||
|
}
|
||||||
@@ -0,0 +1,244 @@
|
|||||||
|
import fc from 'fast-check';
|
||||||
|
import type { SentenceOpened } from '@rosea/schema';
|
||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { goodMoment, newOpened, PETAL, petalAt, petalOrder, sentenceOpened, type PetalNow, type PetalSentence } from '../src/petal/petal.js';
|
||||||
|
import { invitation, sunDay, type Place } from '../src/sun/sun.js';
|
||||||
|
import { addDays, localDay } from '../src/time/localDay.js';
|
||||||
|
|
||||||
|
const ZONE = 'Europe/Prague';
|
||||||
|
const ME = 'M'.repeat(43);
|
||||||
|
const BEFORE = 'B'.repeat(43);
|
||||||
|
const SOMEONE = 'S'.repeat(43);
|
||||||
|
const HOUR = 3_600_000;
|
||||||
|
const DAY = 24 * HOUR;
|
||||||
|
const MINUTE = 60_000;
|
||||||
|
/** 10:00 in Prague on 1 March 2026. */
|
||||||
|
const START = Date.parse('2026-03-01T10:00:00+01:00');
|
||||||
|
|
||||||
|
const sentence = (id: string, verifiedAt = '2026-11-01', use: PetalSentence['use'] = ['sunset']): PetalSentence => ({ id, use, source: { verifiedAt } });
|
||||||
|
const LIBRARY: PetalSentence[] = ['a', 'b', 'c', 'd', 'e'].map((id) => sentence(`line-${id}`));
|
||||||
|
|
||||||
|
const open = (ts: number, messageId: string, from = ME): SentenceOpened =>
|
||||||
|
sentenceOpened({ now: ts, timeZone: ZONE, from, messageId, clientVersion: '0.1.0' });
|
||||||
|
const at = (opened: SentenceOpened[], now: number, library = LIBRARY, keys: string | string[] = ME): PetalNow =>
|
||||||
|
petalAt(library, opened, keys, now, ZONE);
|
||||||
|
|
||||||
|
/** Opens whatever is folded, once a day at 10:00, for `n` days from `from`. */
|
||||||
|
function openDaily(n: number, from = START, library = LIBRARY): SentenceOpened[] {
|
||||||
|
const log: SentenceOpened[] = [];
|
||||||
|
for (let i = 0; i < n; i++) {
|
||||||
|
const now = from + i * DAY;
|
||||||
|
const p = at(log, now, library);
|
||||||
|
if (p.kind !== 'folded') throw new Error(`day ${i}: expected a folded petal, got ${p.kind}`);
|
||||||
|
log.push(open(now, p.id));
|
||||||
|
}
|
||||||
|
return log;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('the order (P1)', () => {
|
||||||
|
it('holds only sunset sentences, each once', () => {
|
||||||
|
const order = petalOrder([...LIBRARY, sentence('thanks-only', '2026-11-01', ['thanks']), sentence('line-a')]);
|
||||||
|
expect(order).toHaveLength(5);
|
||||||
|
expect(order).not.toContain('thanks-only');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('puts a sentence verified later after every one verified before it', () => {
|
||||||
|
const order = petalOrder([sentence('late', '2026-12-01'), ...LIBRARY, sentence('early', '2026-10-01')]);
|
||||||
|
expect(order[0]).toBe('early');
|
||||||
|
expect(order.at(-1)).toBe('late');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('mixes sentences verified on the same day, rather than keeping file order', () => {
|
||||||
|
const ids = Array.from({ length: 20 }, (_, i) => `x-${String(i).padStart(2, '0')}`);
|
||||||
|
expect(petalOrder(ids.map((id) => sentence(id)))).not.toEqual(ids);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('the folded petal', () => {
|
||||||
|
it('is absent when the library holds no sunset sentence', () => {
|
||||||
|
expect(at([], START, [])).toEqual({ kind: 'none' });
|
||||||
|
expect(at([], START, [sentence('t', '2026-11-01', ['thanks'])])).toEqual({ kind: 'none' });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('on a first visit is the first in the order', () => {
|
||||||
|
expect(at([], START)).toEqual({ kind: 'folded', id: petalOrder(LIBRARY)[0] });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('once opened stays open for the rest of the local day, and tomorrow the next one is folded', () => {
|
||||||
|
const first = petalOrder(LIBRARY)[0]!;
|
||||||
|
const log = [open(START, first)];
|
||||||
|
expect(at(log, START + 13 * HOUR)).toMatchObject({ kind: 'open', id: first });
|
||||||
|
expect(at(log, START + 14 * HOUR - 1)).toMatchObject({ kind: 'open', id: first }); // 23:59:59.999
|
||||||
|
expect(at(log, START + 14 * HOUR)).toEqual({ kind: 'folded', id: petalOrder(LIBRARY)[1] }); // midnight
|
||||||
|
});
|
||||||
|
|
||||||
|
it('comes round again only when every sentence has been opened, the one opened longest ago first', () => {
|
||||||
|
const log = openDaily(5);
|
||||||
|
expect(new Set(log.map((e) => e.messageId)).size).toBe(5);
|
||||||
|
expect(at(log, START + 5 * DAY)).toEqual({ kind: 'folded', id: log[0]!.messageId });
|
||||||
|
const more = [...log, open(START + 5 * DAY, log[0]!.messageId)];
|
||||||
|
expect(at(more, START + 6 * DAY)).toEqual({ kind: 'folded', id: log[1]!.messageId });
|
||||||
|
});
|
||||||
|
|
||||||
|
it("counts the rose's own keys, past keys too, and nobody else's", () => {
|
||||||
|
const first = petalOrder(LIBRARY)[0]!;
|
||||||
|
expect(at([open(START, first, SOMEONE)], START + DAY)).toEqual({ kind: 'folded', id: first });
|
||||||
|
expect(at([open(START, first, BEFORE)], START + DAY, LIBRARY, [ME, BEFORE])).toEqual({ kind: 'folded', id: petalOrder(LIBRARY)[1] });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('keeps an opening whose sentence has left the library as that day’s petal', () => {
|
||||||
|
expect(at([open(START, 'gone-now')], START + HOUR)).toMatchObject({ kind: 'open', id: 'gone-now' });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('reads the log in the order things happened, whatever order it is stored in', () => {
|
||||||
|
const log = openDaily(4);
|
||||||
|
expect(at([...log].reverse(), START + 4 * DAY)).toEqual(at(log, START + 4 * DAY));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('never lost (CLAUDE.md §5.5)', () => {
|
||||||
|
it('property: with no opening, the folded petal is the same on every day', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.integer({ min: 0, max: 30 }), fc.integer({ min: 1, max: 2000 }), (n, later) => {
|
||||||
|
const log = openDaily(n);
|
||||||
|
const tomorrow = START + n * DAY;
|
||||||
|
expect(at(log, tomorrow + later * DAY)).toEqual(at(log, tomorrow));
|
||||||
|
}),
|
||||||
|
{ numRuns: 60 }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: sentences verified later never change the folded petal while one already there is unopened', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.integer({ min: 0, max: 4 }), fc.array(fc.stringMatching(/^[a-z]{1,8}$/), { maxLength: 10 }), (n, extra) => {
|
||||||
|
const log = openDaily(n);
|
||||||
|
const grown = [...LIBRARY, ...extra.map((id) => sentence(`new-${id}`, '2026-11-20'))];
|
||||||
|
expect(at(log, START + n * DAY, grown)).toEqual(at(log, START + n * DAY));
|
||||||
|
}),
|
||||||
|
{ numRuns: 60 }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: at most one opening counts per local day; a second one that day changes nothing', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.integer({ min: 1, max: 10 }), fc.integer({ min: 1, max: 13 * 60 }), (n, minutesLater) => {
|
||||||
|
const log = openDaily(n);
|
||||||
|
const last = log.at(-1)!;
|
||||||
|
const second = open(last.ts + minutesLater * MINUTE, 'line-e' === last.messageId ? 'line-a' : 'line-e');
|
||||||
|
expect(second.localDay).toBe(last.localDay);
|
||||||
|
const withSecond = [...log, second];
|
||||||
|
expect(at(withSecond, second.ts)).toMatchObject({ kind: 'open', id: last.messageId });
|
||||||
|
expect(at(withSecond, START + n * DAY)).toEqual(at(log, START + n * DAY));
|
||||||
|
}),
|
||||||
|
{ numRuns: 60 }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: no sentence repeats until every one has been opened', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.integer({ min: 1, max: 40 }), fc.array(fc.integer({ min: 0, max: 9 }), { minLength: 1, maxLength: 25 }), (size, gaps) => {
|
||||||
|
const library = Array.from({ length: size }, (_, i) => sentence(`s-${i}`));
|
||||||
|
const log: SentenceOpened[] = [];
|
||||||
|
let now = START;
|
||||||
|
for (const gap of gaps) {
|
||||||
|
now += (1 + gap) * DAY;
|
||||||
|
const p = at(log, now, library);
|
||||||
|
if (p.kind !== 'folded') throw new Error('expected folded');
|
||||||
|
log.push(open(now, p.id));
|
||||||
|
}
|
||||||
|
const ids = log.map((e) => e.messageId);
|
||||||
|
// Opened in rounds of `size`: within a round, every one is different.
|
||||||
|
for (let i = 0; i < ids.length; i += size) {
|
||||||
|
const round = ids.slice(i, i + size);
|
||||||
|
expect(new Set(round).size).toBe(round.length);
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ numRuns: 60 }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('remembering on nearby days (P3)', () => {
|
||||||
|
const openedOn = (dayOffsets: number[]): SentenceOpened[] => {
|
||||||
|
const log: SentenceOpened[] = [];
|
||||||
|
for (const d of dayOffsets) {
|
||||||
|
const p = at(log, START + d * DAY);
|
||||||
|
if (p.kind !== 'folded') throw new Error('expected folded');
|
||||||
|
log.push(open(START + d * DAY, p.id));
|
||||||
|
}
|
||||||
|
return log;
|
||||||
|
};
|
||||||
|
|
||||||
|
it.each([1, 2, 3])('the last petal %i day(s) before: she remembers an earlier one, never today’s own', (gap) => {
|
||||||
|
const log = openedOn([0, 1, 1 + gap]);
|
||||||
|
const today = at(log, START + (1 + gap) * DAY);
|
||||||
|
expect(today.kind).toBe('open');
|
||||||
|
if (today.kind !== 'open') return;
|
||||||
|
expect(today.remembered).not.toBeNull();
|
||||||
|
expect(today.remembered).not.toBe(today.id);
|
||||||
|
expect(log.slice(0, 2).map((e) => e.messageId)).toContain(today.remembered);
|
||||||
|
});
|
||||||
|
|
||||||
|
it(`after a gap of more than ${PETAL.nearDays} days, the day's petal and nothing about the gap`, () => {
|
||||||
|
const log = openedOn([0, 1, 1 + PETAL.nearDays + 1]);
|
||||||
|
expect(at(log, START + (2 + PETAL.nearDays) * DAY)).toMatchObject({ kind: 'open', remembered: null });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('on the very first petal there is nothing to remember', () => {
|
||||||
|
expect(at(openedOn([0]), START)).toMatchObject({ kind: 'open', remembered: null });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('remembers only sentences still in the library', () => {
|
||||||
|
const log = [open(START, 'gone-now'), open(START + DAY, 'line-a')];
|
||||||
|
expect(at(log, START + DAY)).toMatchObject({ kind: 'open', id: 'line-a', remembered: null });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('is the same choice on every replay of the same day', () => {
|
||||||
|
const log = openedOn([0, 1, 2, 3, 4]);
|
||||||
|
expect(at(log, START + 4 * DAY)).toEqual(at(log, START + 4 * DAY + 5 * HOUR));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('the good moment (P4)', () => {
|
||||||
|
const prague: Place = { lat: 50.0755, lon: 14.4378, timeZone: 'Europe/Prague' };
|
||||||
|
const tromso: Place = { lat: 69.6492, lon: 18.9553, timeZone: 'Europe/Oslo' };
|
||||||
|
const sunsetOn = (day: string, place: Place): number => invitation(sunDay(day, place));
|
||||||
|
|
||||||
|
it('is the hour either side of the sunset, and not the minute outside it', () => {
|
||||||
|
const sunset = sunsetOn('2026-03-01', prague);
|
||||||
|
expect(goodMoment(sunset, prague)).toBe(true);
|
||||||
|
expect(goodMoment(sunset - PETAL.beforeMinutes * MINUTE, prague)).toBe(true);
|
||||||
|
expect(goodMoment(sunset + PETAL.afterMinutes * MINUTE, prague)).toBe(true);
|
||||||
|
expect(goodMoment(sunset - PETAL.beforeMinutes * MINUTE - MINUTE, prague)).toBe(false);
|
||||||
|
expect(goodMoment(sunset + PETAL.afterMinutes * MINUTE + MINUTE, prague)).toBe(false);
|
||||||
|
expect(goodMoment(Date.parse('2026-03-01T10:00:00+01:00'), prague)).toBe(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('in polar day is the lowest light, and in polar night the brightest twilight', () => {
|
||||||
|
const lowest = sunsetOn('2026-06-21', tromso);
|
||||||
|
expect(sunDay('2026-06-21', tromso).kind).toBe('polar-day');
|
||||||
|
expect(goodMoment(lowest, tromso)).toBe(true);
|
||||||
|
expect(goodMoment(lowest + 3 * HOUR, tromso)).toBe(false);
|
||||||
|
const noon = sunsetOn('2026-12-21', tromso);
|
||||||
|
expect(sunDay('2026-12-21', tromso).kind).toBe('polar-night');
|
||||||
|
expect(goodMoment(noon, tromso)).toBe(true);
|
||||||
|
expect(goodMoment(noon - 3 * HOUR, tromso)).toBe(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('the event and bringing it back', () => {
|
||||||
|
it('records the local day in the given zone', () => {
|
||||||
|
const lateEvening = Date.parse('2026-03-01T23:30:00+01:00');
|
||||||
|
expect(sentenceOpened({ now: lateEvening, timeZone: ZONE, from: ME, messageId: 'line-a', clientVersion: '0.1.0' })).toEqual({
|
||||||
|
kind: 'sentence-opened', ts: lateEvening, localDay: '2026-03-01', from: ME, messageId: 'line-a', clientVersion: '0.1.0'
|
||||||
|
});
|
||||||
|
expect(localDay(lateEvening, 'UTC')).toBe('2026-03-01');
|
||||||
|
expect(sentenceOpened({ now: lateEvening, timeZone: 'Asia/Tokyo', from: ME, messageId: 'line-a', clientVersion: '0.1.0' }).localDay).toBe(addDays('2026-03-01', 1));
|
||||||
|
});
|
||||||
|
|
||||||
|
it('newOpened adds only what is not there yet', () => {
|
||||||
|
const log = openDaily(3);
|
||||||
|
expect(newOpened(log, log)).toEqual([]);
|
||||||
|
expect(newOpened(log.slice(0, 1), [...log, ...log])).toEqual(log.slice(1));
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import fc from 'fast-check';
|
import fc from 'fast-check';
|
||||||
import { readFileSync } from 'node:fs';
|
import { readFileSync } from 'node:fs';
|
||||||
import { describe, expect, it } from 'vitest';
|
import { describe, expect, it } from 'vitest';
|
||||||
import { invitation, nextInvitation, sunDay, type Place, type SunDay } from '../src/sun/sun.js';
|
import { invitation, nextInvitation, nextSunEvent, sunDay, type Place, type SunDay } from '../src/sun/sun.js';
|
||||||
import { addDays, localDay } from '../src/time/localDay.js';
|
import { addDays, localDay } from '../src/time/localDay.js';
|
||||||
|
|
||||||
/** Recorded by scripts/fetch-sun-golden.ts from the U.S. Naval Observatory. */
|
/** Recorded by scripts/fetch-sun-golden.ts from the U.S. Naval Observatory. */
|
||||||
@@ -255,3 +255,65 @@ describe('sunDay — refusals', () => {
|
|||||||
expect(() => sunDay(day, place)).toThrow(message);
|
expect(() => sunDay(day, place)).toThrow(message);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('nextSunEvent — the next thing to look up for (sunrise.md)', () => {
|
||||||
|
const brno: Place = { lat: 49.1951, lon: 16.6068, timeZone: 'Europe/Prague' };
|
||||||
|
const day = sunDay('2026-03-02', brno);
|
||||||
|
if (day.kind !== 'sun-sets') throw new Error('Brno has a sunset in March');
|
||||||
|
|
||||||
|
it('before sunrise, the sunrise of the same day', () => {
|
||||||
|
const early = Date.parse('2026-03-02T03:00:00+01:00');
|
||||||
|
expect(nextSunEvent(early, brno)).toMatchObject({ kind: 'sunrise', at: day.sunrise });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('from sunrise until the sunset, the sunset, exactly as nextInvitation says', () => {
|
||||||
|
for (const at of [day.sunrise + MINUTE, day.solarNoon, day.sunset]) {
|
||||||
|
expect(nextSunEvent(at, brno)).toEqual({ ...nextInvitation(at, brno), kind: 'invitation' });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
it('after the sunset, tomorrow\'s sunrise', () => {
|
||||||
|
const tomorrow = sunDay('2026-03-03', brno);
|
||||||
|
if (tomorrow.kind !== 'sun-sets') throw new Error('Brno has a sunset in March');
|
||||||
|
expect(nextSunEvent(day.sunset + MINUTE, brno)).toMatchObject({ kind: 'sunrise', at: tomorrow.sunrise });
|
||||||
|
expect(localDay(tomorrow.sunrise, brno.timeZone)).toBe('2026-03-03');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Reykjavík at midsummer, just after midnight: the late sunset still to come, not a sunrise (D2)', () => {
|
||||||
|
const reykjavik: Place = { lat: 64.1466, lon: -21.9426, timeZone: 'Atlantic/Reykjavik' };
|
||||||
|
const midsummer = sunDay('2026-06-21', reykjavik);
|
||||||
|
if (midsummer.kind !== 'sun-sets') throw new Error('Reykjavík has a sunset on 21 June');
|
||||||
|
const justAfterMidnight = Date.parse('2026-06-22T00:01:00Z');
|
||||||
|
expect(justAfterMidnight).toBeLessThan(midsummer.sunset);
|
||||||
|
expect(nextSunEvent(justAfterMidnight, reykjavik)).toMatchObject({ kind: 'invitation', at: midsummer.sunset });
|
||||||
|
});
|
||||||
|
|
||||||
|
it('in polar day and polar night there is no sunrise to name: the invitation, as before', () => {
|
||||||
|
const tromso: Place = { lat: 69.6492, lon: 18.9553, timeZone: 'Europe/Oslo' };
|
||||||
|
for (const at of [Date.parse('2026-06-21T03:00:00+02:00'), Date.parse('2026-12-21T03:00:00+01:00')]) {
|
||||||
|
expect(nextSunEvent(at, tromso)).toEqual({ ...nextInvitation(at, tromso), kind: 'invitation' });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: the event is never in the past, and no sunrise or sunset falls between now and it', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(
|
||||||
|
fc.double({ min: -60, max: 60, noNaN: true }),
|
||||||
|
fc.double({ min: -179, max: 179, noNaN: true }),
|
||||||
|
fc.integer({ min: Date.parse('2026-01-01T00:00:00Z'), max: Date.parse('2026-12-31T00:00:00Z') }),
|
||||||
|
(lat, lon, now) => {
|
||||||
|
const place = zoned(lat, lon);
|
||||||
|
const event = nextSunEvent(now, place);
|
||||||
|
expect(event.at).toBeGreaterThanOrEqual(now);
|
||||||
|
const today = localDay(now, place.timeZone);
|
||||||
|
for (const offset of [-1, 0, 1, 2]) {
|
||||||
|
const s = sunDay(addDays(today, offset), place);
|
||||||
|
if (s.kind !== 'sun-sets') continue;
|
||||||
|
for (const t of [s.sunrise, s.sunset]) expect(t < now || t >= event.at).toBe(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{ numRuns: 300 }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
import fc from 'fast-check';
|
||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { touch, TOUCH, UNTOUCHED, type TouchReply, type TouchState } from '../src/touch/touch.js';
|
||||||
|
|
||||||
|
/** Touches at these moments, from no touch at all; the replies in order. */
|
||||||
|
function replies(times: readonly number[], from: TouchState = UNTOUCHED): { replies: TouchReply['kind'][]; state: TouchState; all: TouchReply[] } {
|
||||||
|
let state = from;
|
||||||
|
const all: TouchReply[] = [];
|
||||||
|
for (const t of times) {
|
||||||
|
const next = touch(state, t);
|
||||||
|
all.push(next.reply);
|
||||||
|
state = next.state;
|
||||||
|
}
|
||||||
|
return { replies: all.map((r) => r.kind), state, all };
|
||||||
|
}
|
||||||
|
|
||||||
|
const T0 = 1_000_000;
|
||||||
|
|
||||||
|
describe('a touch (thorns.md)', () => {
|
||||||
|
it('is answered fondly, and only the first of a visit makes her blush', () => {
|
||||||
|
const r = replies([T0, T0 + 5000, T0 + 10_000]);
|
||||||
|
expect(r.all).toEqual([{ kind: 'fond', blush: true }, { kind: 'fond', blush: false }, { kind: 'fond', blush: false }]);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('three within two seconds: thorns, then she rests, then all is as before', () => {
|
||||||
|
const r = replies([T0, T0 + 600, T0 + 1200, T0 + 1500, T0 + 1200 + TOUCH.restMs - 1, T0 + 1200 + TOUCH.restMs]);
|
||||||
|
expect(r.replies).toEqual(['fond', 'fond', 'thorns', 'nothing', 'nothing', 'fond']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('three touches spanning exactly two seconds are not a rush', () => {
|
||||||
|
expect(replies([T0, T0 + 1000, T0 + 2000]).replies).toEqual(['fond', 'fond', 'fond']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('touches closer than 250 ms to the one before are one touch: a tremor is never fussing', () => {
|
||||||
|
const burst = (at: number): number[] => [at, at + 60, at + 120, at + 180];
|
||||||
|
expect(replies([...burst(T0), ...burst(T0 + 1100)]).replies).toEqual(['fond', 'nothing', 'nothing', 'nothing', 'fond', 'nothing', 'nothing', 'nothing']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('a clock moved back never makes her rest longer than the rest time', () => {
|
||||||
|
const rushed = replies([T0, T0 + 500, T0 + 1000]);
|
||||||
|
expect(rushed.replies.at(-1)).toBe('thorns');
|
||||||
|
expect(touch(rushed.state, T0 - 3_600_000).reply.kind).toBe('fond');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: touches a second or more apart are never a rush', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.array(fc.integer({ min: 1000, max: 60_000 }), { minLength: 1, maxLength: 40 }), (gaps) => {
|
||||||
|
let t = T0;
|
||||||
|
const times = gaps.map((g) => (t += g));
|
||||||
|
expect(replies(times).replies.every((k) => k === 'fond')).toBe(true);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('property: whatever the taps, she keeps no more than a rush of them, and blushes at most once', () => {
|
||||||
|
fc.assert(
|
||||||
|
fc.property(fc.array(fc.integer({ min: 0, max: 3000 }), { maxLength: 60 }), (gaps) => {
|
||||||
|
let t = T0;
|
||||||
|
let state = UNTOUCHED;
|
||||||
|
let blushes = 0;
|
||||||
|
for (const g of gaps) {
|
||||||
|
const next = touch(state, (t += g));
|
||||||
|
if (next.reply.kind === 'fond' && next.reply.blush) blushes++;
|
||||||
|
state = next.state;
|
||||||
|
expect(state.recent.length).toBeLessThan(TOUCH.rushCount);
|
||||||
|
}
|
||||||
|
expect(blushes).toBeLessThanOrEqual(1);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"$id": "https://rosea.invalid/schema/sentence-opened.json",
|
||||||
|
"title": "SentenceOpened",
|
||||||
|
"description": "The rose's folded petal was opened (CLAUDE.md §6.2, .agents/features/day-sentence.md). Append-only, never edited. The first one of a local day is that day's petal.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["kind", "ts", "localDay", "from", "messageId", "clientVersion"],
|
||||||
|
"properties": {
|
||||||
|
"kind": {
|
||||||
|
"const": "sentence-opened"
|
||||||
|
},
|
||||||
|
"ts": {
|
||||||
|
"description": "Epoch milliseconds. Stays on the device.",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"localDay": {
|
||||||
|
"description": "The player's local day, from engine/src/time/localDay.ts and nowhere else.",
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
||||||
|
},
|
||||||
|
"from": {
|
||||||
|
"description": "The key of the rose whose petal it was.",
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[A-Za-z0-9_-]{32,128}$"
|
||||||
|
},
|
||||||
|
"messageId": {
|
||||||
|
"description": "The hope-library id that was in the petal. Never text: the pattern admits no space (CLAUDE.md §5.6 rule 1).",
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
"clientVersion": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,8 +10,9 @@
|
|||||||
import { Ajv, type ErrorObject, type ValidateFunction } from 'ajv';
|
import { Ajv, type ErrorObject, type ValidateFunction } from 'ajv';
|
||||||
import careEvent from '../schemas/care-event.schema.json' with { type: 'json' };
|
import careEvent from '../schemas/care-event.schema.json' with { type: 'json' };
|
||||||
import hopeSentence from '../schemas/hope-sentence.schema.json' with { type: 'json' };
|
import hopeSentence from '../schemas/hope-sentence.schema.json' with { type: 'json' };
|
||||||
|
import sentenceOpened from '../schemas/sentence-opened.schema.json' with { type: 'json' };
|
||||||
import trace from '../schemas/trace.schema.json' with { type: 'json' };
|
import trace from '../schemas/trace.schema.json' with { type: 'json' };
|
||||||
import type { CareEvent, HopeSentence, Trace } from './generated/index.js';
|
import type { CareEvent, HopeSentence, SentenceOpened, Trace } from './generated/index.js';
|
||||||
|
|
||||||
export type SchemaResult<T> =
|
export type SchemaResult<T> =
|
||||||
| { readonly ok: true; readonly value: T }
|
| { readonly ok: true; readonly value: T }
|
||||||
@@ -38,4 +39,5 @@ function describe(error: ErrorObject): string {
|
|||||||
|
|
||||||
export const validateHopeSentence = wrap<HopeSentence>(ajv.compile(hopeSentence));
|
export const validateHopeSentence = wrap<HopeSentence>(ajv.compile(hopeSentence));
|
||||||
export const validateCareEvent = wrap<CareEvent>(ajv.compile(careEvent));
|
export const validateCareEvent = wrap<CareEvent>(ajv.compile(careEvent));
|
||||||
|
export const validateSentenceOpened = wrap<SentenceOpened>(ajv.compile(sentenceOpened));
|
||||||
export const validateTrace = wrap<Trace>(ajv.compile(trace));
|
export const validateTrace = wrap<Trace>(ajv.compile(trace));
|
||||||
|
|||||||