[docs] TauriPlatforms: Review, measurements on the tablet and Windows, lessons, gaps
This commit is contained in:
@@ -5,6 +5,7 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
|
||||
| Feature | Phase | Status | Analysis | Review |
|
||||
|:--|:--|:--|:--|:--|
|
||||
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.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) |
|
||||
| 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) |
|
||||
|
||||
+22
-2
@@ -37,8 +37,8 @@ board exist, and the first real picture is the author's to make.
|
||||
| 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.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.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.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. Narrowed 2026-11-17: the apps make PNG/ICO icons from `icon.svg` at build time (`tauri icon`, never committed); the PWA still has none, and the picture is still the placeholder. |
|
||||
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. Since 2026-11-17 the APK and the Windows installer are also built by hand here (G-T7). |
|
||||
| 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`). 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. |
|
||||
@@ -62,6 +62,26 @@ sentences). Nothing in Phase 1 is visible to the player yet.
|
||||
| ~~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.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
|
||||
|
||||
## The platform track — four versions (from 2026-11-17)
|
||||
|
||||
Decided by the author 2026-11-17: the PWA, an Android APK, an iOS app and a desktop app from one
|
||||
Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
||||
[`features/tauri-platforms.md`](features/tauri-platforms.md); review:
|
||||
[`reviews/feature-tauri-platforms.md`](reviews/feature-tauri-platforms.md).
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|:--|:--|:--|
|
||||
| ~~G-T0~~ | ~~No shell, no app on any platform~~ | Closed 2026-11-17 on `feature/tauri-platforms`: `apps/rosea-tauri`; Windows `.exe` + NSIS installer built and checked (watered, closed, reopened, still watered); Android debug APK verified with `aapt2` (no permission, no backup) and checked on the WAVE 10C, Android 16, offline by construction. 40 shell tests; 14 of 14 drills caught. |
|
||||
| G-T1 | iOS | Open. Needs macOS + Xcode, the iOS Rust targets, an Apple developer account. `pnpm tauri:ios` refuses elsewhere. |
|
||||
| G-T2 | macOS and Linux desktop builds | Open. Each on its own system; macOS signing/notarisation. |
|
||||
| G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Open. Phase 6. Keys never in the repository. |
|
||||
| G-T4 | **Keep her safe inside the apps — release blocker** | Open. Measured: *Save her to a file* does nothing on Android; the words say *this browser*; `persist()` is always `false`. Needs app copy and a working save (first plugin). No app reaches a player before this closes. |
|
||||
| G-T5 | Bringing her back from a file inside the apps | Open. The Android file picker opens; no round trip seen. |
|
||||
| G-T6 | WebView2's own traffic not measured for Rosea | Open. Flags from Amicitia's measurement are set; measure before a desktop release. |
|
||||
| G-T7 | No CI for the apps | Open. With G0.22. |
|
||||
| G-T8 | Webview storage eviction | Partly measured: `persist()` is `false` in WebView2 and Android WebView. Pressure eviction of app storage not measured. G-T4 is the answer either way. |
|
||||
| G-T9 | The app icon is the placeholder | Open. With G0.21. |
|
||||
|
||||
## Design questions — answered
|
||||
|
||||
Raised by GAMEPLAY.md and ROADMAP.md, answered by the author 2026-11-01. Details in
|
||||
|
||||
@@ -64,8 +64,9 @@ flowchart LR
|
||||
| D11 | **Per-platform bundle targets** in `tauri.{windows,macos,linux}.conf.json`: NSIS (current user) on Windows; `.app` and `.dmg` on macOS; `.deb` and AppImage on Linux. | One config would try to make targets the machine cannot (MSI needs WiX, a download). |
|
||||
| D12 | **Commands**: `pnpm tauri:dev`, `tauri:build`, `tauri:android` (a debug APK for arm64, then `verify`), `tauri:ios` (refuses off macOS with the reason). No Android dev command yet. | An Android dev build needs `INTERNET` to reach the dev server and `adb reverse` to keep it on 127.0.0.1 (CLAUDE.md §5.7); not needed to test what exists. |
|
||||
|
||||
What did **not** change: every package; the PWA's build, base path, worker, manifest and `<meta>`
|
||||
policy (the PWA's `dist/` is byte-for-byte the same apart from the build hash — checked in the review).
|
||||
What did **not** change: every package; the PWA's base path, worker, manifest and `<meta>` policy,
|
||||
held by the existing e2e and offline suites. (The PWA's bundle is not byte-identical: `__ROSEA_SHELL__`
|
||||
is folded to `'web'` there.)
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
@@ -94,11 +95,11 @@ did not ask to be* (CLAUDE.md §5.1).
|
||||
| G-T1 | **iOS** cannot be built on Windows. | Needs macOS with Xcode (and its command-line tools, CocoaPods not required by Tauri 2), the Rust targets `aarch64-apple-ios` and `aarch64-apple-ios-sim`, and an **Apple developer account**: a free Apple ID can sign for one's own device for 7 days; TestFlight and the App Store need the paid programme. Then `pnpm tauri:ios`. Unknown until measured there: where WKWebView keeps IndexedDB, whether iOS purges it for an unused app, and whether `<a download>` saves her file. **Open.** |
|
||||
| G-T2 | **macOS and Linux desktop builds** are not built. | Each on its own system: `pnpm tauri:build` (`.app`/`.dmg`; `.deb`/AppImage). macOS outside the App Store also needs signing and notarisation with a paid account, or Gatekeeper warns. **Open.** |
|
||||
| G-T3 | **Release signing** for Android (a keystore) and Windows (a code-signing certificate). | Debug builds only today. The keystore and its passwords never enter the repository (CLAUDE.md §5.2). Phase 6. **Open.** |
|
||||
| G-T4 | **Saving her to a file inside an app.** The game saves through `<a download>` on a blob URL. | Android WebView and WKWebView do not save blob downloads by default. Measured on the tablet: see the review. If it does nothing, the design is a small Rust command behind the dialog plugin (`tauri-plugin-dialog` save, write the file), the first plugin, reviewed for network access; or the Android share sheet. **Open** until measured and built. |
|
||||
| G-T5 | **Bringing her back from a file** (`<input type="file">`) inside the apps. | Android WebView needs the app to answer the file chooser; Tauri's Android activity does. Measured on the tablet: see the review. |
|
||||
| G-T4 | **Keep her safe inside the apps — a release blocker.** The game saves through `<a download>` on a blob URL, and its words speak of *this browser*. | **Measured 2026-11-17.** Windows: the save starts a download (`rose-2026-11-17.json`). Android (WAVE 10C, WebView 140): **nothing happens**. And in both apps `persist()` answers `false`, so *Keep her safe* says *This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure.* and offers *Ask the browser to keep her*: wrong words in an app, a worry that is not true of an app's own storage, and on Android a remedy that does nothing. Design for its own feature: app words for *Keep her safe* in `packages/ui/src/copy/` chosen by the shell constant; saving through `tauri-plugin-dialog` + a write (the first plugin, reviewed for network access) or the Android share sheet. **No APK or installer goes to any player before this is closed.** |
|
||||
| G-T5 | **Bringing her back from a file** (`<input type="file">`) inside the apps. | **Measured 2026-11-17 on Android:** the system file picker opens (`com.android.documentsui` `PickActivity`). Reading a chosen file back was not tried (no saved rose on the tablet, see G-T4). Windows: not tried. **Open** until a round trip is seen. |
|
||||
| G-T6 | **WebView2's traffic not measured for Rosea.** | Amicitia's `watch-desktop-network.ps1` approach: run the built exe, list its connections. Before the first desktop release. **Open.** |
|
||||
| G-T7 | **No CI** builds the apps (G0.22). | Builds by hand on this machine; never committed. |
|
||||
| G-T8 | **Storage eviction in WebView2 and Android WebView** is predicted, not measured. | `persist()` is asked after the first care (D9). Measure what `persisted()` answers in each webview (review). |
|
||||
| G-T8 | **Storage eviction in WebView2 and Android WebView.** | **Measured 2026-11-17:** `persist()` and `persisted()` answer `false` in both (Android: quota 70 GB, 3 KB used). An app's webview data lives in the app's own storage and goes with an uninstall or *Clear storage*; whether Chromium's pressure eviction can reach it there was not measured. G-T4 is the answer either way. |
|
||||
| G-T9 | **The icon is the PWA's placeholder.** | G0.21; the art pipeline. Android adaptive icons need a foreground layer then. |
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
@@ -8,11 +8,11 @@ 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. |
|
||||
| `architecture.md` | none yet | Layering, ownership, seams. |
|
||||
| `design.md` | none yet | Wording, silence, empty states. |
|
||||
| [`design.md`](design.md) | 1 | Wording, silence, empty states. |
|
||||
| [`art.md`](art.md) | 3 | The image pipeline. |
|
||||
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
|
||||
| [`technical.md`](technical.md) | 6 | The browser and the build as platforms. |
|
||||
| [`testing.md`](testing.md) | 10 | What makes a test worth having, and how a passing test lies. |
|
||||
| [`technical.md`](technical.md) | 8 | The browser and the build as platforms. |
|
||||
| [`testing.md`](testing.md) | 13 | 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.) |
|
||||
| [`process.md`](process.md) | 4 | Workflow, commits, credentials, honesty about what shipped. |
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Design lessons
|
||||
|
||||
What the player is shown and why: wording, silence, empty states (CLAUDE.md §5.1b).
|
||||
|
||||
## Words that are true in a browser can be false, and frightening, in an app
|
||||
|
||||
**What happened.** In the Android and Windows apps (2026-11-17, `feature/tauri-platforms`) *Keep her
|
||||
safe* said *This browser may clear her if the garden is not opened for a long time. A saved file
|
||||
keeps her for sure.* and offered *Ask the browser to keep her*. In an app there is no browser to ask,
|
||||
`persist()` always answers no, the inactivity warning is not true of an app's own storage, and on
|
||||
Android *Save her to a file* did nothing at all. The comfort became a worry with a broken remedy.
|
||||
|
||||
**Why it bit.** The words were written, carefully, for one place (a browser tab or an installed PWA)
|
||||
and were carried unchanged into another. Copy states facts about the platform; when the platform
|
||||
changes, the facts do.
|
||||
|
||||
**How to apply it.** When the game reaches a new platform, read every sentence that speaks about the
|
||||
device, the browser, storage or files, on that platform, and check that each claim is still true and
|
||||
each offered action still works. A remedy that silently fails is worse than none. Until then the
|
||||
platform is not shipped to players (here: G-T4, a release blocker).
|
||||
@@ -83,3 +83,30 @@ 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.
|
||||
|
||||
## A generated project is newer than anything you made before it
|
||||
|
||||
**What happened.** The first Android APK (2026-11-17) carried Tauri's logo. `scripts/icons.ts` copied
|
||||
Rosea's icons only when the target was older than `icon.svg`, but `tauri android init` had just
|
||||
written its own icon into `gen/android`, newer than both.
|
||||
|
||||
**Why it bit.** A date check answers "has the source changed since?", not "is this file mine?". A
|
||||
generator that runs later wins every date comparison.
|
||||
|
||||
**How to apply it.** Copy what must survive a generator unconditionally, and check it by content
|
||||
(`android.ts check` compares the icon's bytes). Then look at the artefact: the APK's own icon was
|
||||
hashed against ours.
|
||||
|
||||
## The proof of an app's permissions is the built package
|
||||
|
||||
**What happened.** Following Amicitia (its lessons/technical.md), `pnpm tauri:android` ends by reading
|
||||
the APK with `aapt2 dump permissions` and `dump xmltree`, and the device check reads
|
||||
`dumpsys package` on the tablet. The source manifest was right; the APK also held a
|
||||
`DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` that the source never mentions (androidx merges it).
|
||||
|
||||
**Why it bit.** The manifest merge adds what libraries declare. A check on the source would never see
|
||||
a permission a library adds.
|
||||
|
||||
**How to apply it.** Check permissions, backup flags and WebView switches on the APK and on the
|
||||
installed package, and name each allowed exception precisely (this package's own receiver guard,
|
||||
not any app's).
|
||||
|
||||
@@ -146,3 +146,41 @@ 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.
|
||||
|
||||
## A constant the minifier folds cannot be found in the bundle
|
||||
|
||||
**What happened.** The first shell-build test (`apps/rosea-tauri/test/shell-build.test.ts`, 2026-11-17)
|
||||
asserted that the string `"tauri"` was in the built JavaScript, to prove `__ROSEA_SHELL__` was
|
||||
`'tauri'`. Vite replaces the constant, and the minifier then folds `'tauri' === 'tauri'` to `!0`:
|
||||
the string is gone whether the build was right or wrong.
|
||||
|
||||
**Why it bit.** A test that reads build output tests every step of the build, the minifier included.
|
||||
An assertion about a literal that only exists before minification is about the source, not the bundle.
|
||||
|
||||
**How to apply it.** Assert what the bundle must not contain (the constant's name, which would throw
|
||||
in the webview), and prove the behaviour where it runs: here, the device check.
|
||||
|
||||
## A window after a match can read the neighbour's value
|
||||
|
||||
**What happened.** The first APK check looked for a WebView switch's value in the 300 characters
|
||||
after its name in `aapt2 dump xmltree`. The next `<meta-data>` element starts within those 300
|
||||
characters, so a switch turned the wrong way could pass on its neighbour's value.
|
||||
|
||||
**Why it bit.** A fixed window feels safe because the right answer is inside it; so is a wrong one.
|
||||
|
||||
**How to apply it.** Read structured output by its structure (here: the value attribute on the line
|
||||
after the name attribute), and keep a test that flips exactly one value on real output and expects
|
||||
that one name back.
|
||||
|
||||
## A dropped device link is not a failed test, and must not look like a pass either
|
||||
|
||||
**What happened.** On 2026-11-17 the USB link to the Android tablet dropped at least twice within the
|
||||
hour (`device offline`; adb's transport id went 1 → 4 → 5), once between the two visits of the
|
||||
garden check, which then failed on `am force-stop`.
|
||||
|
||||
**Why it bit.** A real device is a second machine with its own life. Retrying everything hides real
|
||||
failures; retrying nothing makes the check a coin toss.
|
||||
|
||||
**How to apply it.** Retry only the failure that names the link (`offline`, `closed`, `no devices`),
|
||||
after `adb wait-for-device`, a bounded number of times; find the device handle again after a drop;
|
||||
let every other failure end the check at once. Report how many runs failed and why.
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
# Review — `feature/tauri-platforms`
|
||||
|
||||
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/tauri-platforms.md`](../features/tauri-platforms.md).
|
||||
Reviewed 2026-11-17 on Windows 10 Pro (19045), Node 22.23.4, Rust 1.99.0 (MSVC), JDK 17.0.20,
|
||||
Android SDK with NDK 27.1, Tauri CLI 2.12.5, tauri 2.12.6, WebView2 157.0.4341.46. The Android device
|
||||
is a WAVE 10C on Android 16 (API 36) with Android System WebView 140.0.7339.207, over USB. There is no
|
||||
PR: the only remote is Gitea.
|
||||
|
||||
## What the author asked, and what exists now
|
||||
|
||||
*"I need also android apk version, desktop version, ios version and pwa version. Put that to claude.md
|
||||
based on the tauri2 framework."*
|
||||
|
||||
| Version | State |
|
||||
|:--|:--|
|
||||
| PWA | Unchanged; the e2e and offline suites pass (counts below). |
|
||||
| Windows desktop | **Built and run.** `pnpm tauri:build` → `rosea-shell.exe` and `Rosea Domi_0.1.0_x64-setup.exe` (NSIS, 1.31 MiB), 5 min 49 s from cold. The check passed: the garden opens, she is watered, the app is closed and opened again, she is still watered. |
|
||||
| Android | **Built, installed and run on the tablet.** `pnpm tauri:android` → `app-universal-debug.apk` (arm64 only, debug, ~122 MB with debug symbols), verified with `aapt2`; installed with `adb install -r`; the check passed: opens, watered, `am force-stop`, opened again, still watered. Offline by construction: the app holds no `INTERNET` permission. |
|
||||
| iOS | **Not possible here.** `pnpm tauri:ios` refuses on Windows with the reason (seen). What it needs is in the analysis, G-T1. |
|
||||
| macOS, Linux desktop | Not built (G-T2). |
|
||||
|
||||
Downloads: the author approved (2026-11-17) the Tauri CLI from npm, crates from crates.io, Gradle
|
||||
artefacts from Google Maven and Maven Central, all expected to come from this machine's caches.
|
||||
pnpm reported **2 packages downloaded** (the CLI and its Windows binary); cargo and Gradle built
|
||||
without visible fetches. Nothing was installed system-wide. On the tablet: only Rosea's debug APK
|
||||
(Playwright's Android support reached the WebView over adb and installed nothing).
|
||||
|
||||
## Gates
|
||||
|
||||
Filled from the run on the branch head:
|
||||
|
||||
GATES
|
||||
|
||||
**The app changed** (CLAUDE.md §5.4) only for the shell: the PWA's `App.svelte` now reads one
|
||||
constant that is `'web'` in its build, so the PWA behaves as before. Rebuilt by the e2e and offline
|
||||
runs; **not deployed** (G0.13). The APK and the installer are on this machine only, not committed.
|
||||
|
||||
## Bug drills
|
||||
|
||||
Each bug put back by script, the named test run, the file restored. One drill spot-checked to fail
|
||||
on the right assertion (the worker left on → *has no service worker and no web manifest*).
|
||||
|
||||
| Put back | Result |
|
||||
|:--|:--|
|
||||
| Tauri's CSP drifts from `csp.ts` (`'unsafe-inline'` added) | CAUGHT |
|
||||
| `useHttpsScheme` flipped to `false` (origin moves, rose left behind) | CAUGHT |
|
||||
| Identifier changed | CAUGHT |
|
||||
| A WebView2 privacy flag dropped | CAUGHT |
|
||||
| The Android build no longer runs the privacy patch | CAUGHT |
|
||||
| A plugin crate added to the shell | CAUGHT |
|
||||
| The service worker left on in the shell build | CAUGHT |
|
||||
| The `<meta>` CSP left in the shell build | CAUGHT |
|
||||
| The shell build under `/Rosea/` | CAUGHT |
|
||||
| The patch forgets to remove `INTERNET` | CAUGHT |
|
||||
| The patch forgets `allowBackup` | CAUGHT |
|
||||
| A rule file stops excluding the database from device transfer | CAUGHT |
|
||||
| The APK check lets any app's receiver-guard permission through | CAUGHT |
|
||||
| The APK check reads a neighbour's meta-data value | CAUGHT |
|
||||
| Tauri's logo left as the launcher icon | CAUGHT by `android.ts check` (exit 1, then 0 after the copy); not a unit test |
|
||||
|
||||
**Not drilled, and no test would catch it:** `App.svelte` not counting the app as installed (D9).
|
||||
Seen only through the check's report (`persist()` is asked; on iOS, the install hint, untestable here).
|
||||
|
||||
## Findings
|
||||
|
||||
| # | Area | Finding | Resolution |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 | **Soul** | Inside the apps, *Keep her safe* says *This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure.*, offers *Ask the browser to keep her* (which always answers no: `persist()` is `false` in both webviews), and on Android *Save her to a file* **does nothing** (measured). A player is told she may be lost, in the wrong words, and the one remedy fails silently. That is a worry the game made, and a broken promise. | **Deferred, as a release blocker** (G-T4): it needs app words in `packages/ui` copy and a working save, which is the first Tauri plugin and its own feature doc and Soul review. Today the APK and installer exist on this machine only, for the author's own play; CLAUDE.md §8 and the analysis say no app goes to a player before G-T4 closes. Offered as the next session. |
|
||||
| 2 | Correctness | The first APK carried **Tauri's logo**: `icons.ts` skipped the copy because `tauri android init` had written its own icon later than ours. | Fixed: the Android icons are copied into `gen/android` on every build, and `android.ts check` compares the bytes; the rebuilt APK's `mipmap-mdpi` icon hashes to ours. |
|
||||
| 3 | Test honesty | The first APK check read a meta-data value from a 300-character window after its name, which could read the next element's value and pass a wrong switch. | Fixed: it reads the value attribute on the line after the name; a test flips one switch on real `aapt2` output and expects its name; drilled. |
|
||||
| 4 | Test honesty | The first APK check let **any** `…DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` through, another app's included. | Fixed: only `<this package>.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`; drilled. |
|
||||
| 5 | Correctness | The first shell-build test asserted the string `"tauri"` in the bundle; the minifier folds `__ROSEA_SHELL__ === 'tauri'` away, so the assertion tested the minifier. | Removed; what the test keeps is that the constant never reaches the webview (it would throw). |
|
||||
| 6 | Correctness | The tablet's USB link dropped three times in an hour (`device offline`, transport ids 1→5), once mid-check. | The check waits for the device and retries a dropped `adb` command, and finds the device again for each visit. A failure for any other reason still fails at once. |
|
||||
| 7 | Test honesty | One tablet run timed out clicking *Her numbers* while the garden animated (Playwright never saw the button stable). | The check activates it by keyboard (focus, Enter). Then two runs in a row passed. Recorded, not hidden: 1 of 5 tablet runs failed this way, 1 on the USB drop. |
|
||||
| 8 | Privacy | WebView2's environment variables (used by the desktop check to open a debugging port and a temporary data folder) **replace** the app's `additionalBrowserArgs` for that run. | Said in the check's header: the desktop check proves the garden, not WebView2's silence (G-T6). |
|
||||
| 9 | Correctness | Tauri creates `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\` at start even when WebView2's data is elsewhere. | The check's run left that folder empty; it was removed after each run. The player's real data lives there (`EBWebView\`), as §4 says. |
|
||||
| 10 | Privacy | The Windows installer's default WebView2 mode downloads the WebView2 bootstrapper from Microsoft if WebView2 is missing. | Noted in the analysis (§3); Windows 10 and 11 ship WebView2. Not changed. |
|
||||
| 11 | Scope | No Android dev command (`tauri android dev`): it would need `INTERNET` back and `adb reverse` to stay on 127.0.0.1. | Deferred (D12); not needed to test what exists. |
|
||||
| 12 | Design | The window is 480 × 800 on the desktop; the garden was designed for a phone. | Kept: portrait like the PWA's manifest. Whether the desktop app should be wider is the author's call after playing it. |
|
||||
|
||||
## Correctness
|
||||
|
||||
- **Second run**: `android.ts apply` is idempotent (test); `icons.ts` copies every time; a second
|
||||
`pnpm tauri:android` rebuilt in seconds and re-verified.
|
||||
- **Clock and DST**: nothing here reads time; the game's own handling is unchanged.
|
||||
- **Partial write, app closed mid-action**: the app is closed with `kill` (desktop) and
|
||||
`am force-stop` (Android) right after the care was **committed** (the check waits for the log);
|
||||
a force-stop *during* the write was not tried. IndexedDB's transactions are the same as in the PWA.
|
||||
- **Two tabs**: an app has one window; two instances of the desktop app share one WebView2 folder and
|
||||
would talk through `BroadcastChannel` like tabs. Not tried.
|
||||
- **Origin is forever**: identifier and `useHttpsScheme` are pinned by tests and drills.
|
||||
|
||||
## Soul
|
||||
|
||||
Finding 1 is the one: a worry and a broken remedy, in the apps only. Nothing else in this change adds
|
||||
a word, a count, a badge or a reminder. The apps do not notify. The window has no title-bar status.
|
||||
|
||||
## Privacy — every path a byte could leave
|
||||
|
||||
| Path | Android | Windows |
|
||||
|:--|:--|:--|
|
||||
| The game's own requests | none (check: 0 outside the origin) | none (check: 0 outside the origin) |
|
||||
| The webview's own traffic | impossible: no `INTERNET` (dumpsys, aapt2) | switched off by flags; **not measured** (G-T6) |
|
||||
| Cloud backup / device transfer | off (`allowBackup=false`, every domain excluded; dumpsys flags) | n/a (WebView2 data is not roamed) |
|
||||
| Plugins, IPC | none; no capabilities | none; no capabilities |
|
||||
| Installer | n/a | may fetch the WebView2 bootstrapper (finding 10) |
|
||||
| Crash reporting, analytics | none in `Cargo.toml` (test) or the game | same |
|
||||
|
||||
## Reachability
|
||||
|
||||
Nothing new: no field reaches anyone, no network.
|
||||
|
||||
## Offline
|
||||
|
||||
Android is offline by construction and was tested so. The desktop check ran with the machine online
|
||||
(WebView2's own flags replaced, finding 8); the game made no request outside its origin.
|
||||
|
||||
## Test honesty
|
||||
|
||||
- 14 of 14 drills caught; one spot-checked for the right assertion.
|
||||
- The device checks are scripts run by hand, not in `pnpm test`: they need the built app and the
|
||||
tablet. Their results above are from this machine on 2026-11-17.
|
||||
- The APK fixtures are real `aapt2` output of the APK built here, saved with the tests.
|
||||
|
||||
## What was NOT verified
|
||||
|
||||
- iOS, macOS, Linux (G-T1, G-T2). WKWebView's storage location and eviction.
|
||||
- WebView2's network silence for Rosea (G-T6).
|
||||
- Bringing a rose back from a file in either app (G-T5: the Android picker opens; nothing was picked).
|
||||
- A force-stop during a write. Two desktop instances at once.
|
||||
- The NSIS installer itself was built, not run: the check ran the `.exe` from `target/release`.
|
||||
- A release (signed) APK; an AAB; any store (G-T3).
|
||||
- Android versions other than 16, phones (only the tablet), other WebView versions.
|
||||
@@ -597,12 +597,12 @@ No timestamp finer than a day, no precise location, no free text, no link to the
|
||||
| **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. |
|
||||
| **`pnpm test` exits 0 having run nothing** | Quote counts per package. |
|
||||
| **Playwright against the dev server** | It never registers the service worker and has never reproduced a caching bug. |
|
||||
| **Base path in the shell** *(predicted)* | The PWA lives under `/Rosea/`; Tauri serves the game at the root of its own origin (`https://tauri.localhost/` on Windows and Android with `useHttpsScheme`, `tauri://localhost/` on macOS and iOS). A shell build with base `/Rosea/` opens a blank window. The shell's copy is built with base `/` into its own folder, so the two can never be mixed up. |
|
||||
| **A service worker inside a webview** *(predicted)* | Inside Tauri the files are already on the device; a worker would cache a second copy, could serve a stale game after an app update, and *A new version of the garden is ready* would offer a refresh that fetches nothing. The shell's build has no worker and no manifest: `vite-plugin-pwa` is disabled there and `registerSW` is its no-op. |
|
||||
| **Two content-security policies** *(predicted)* | The PWA carries its policy in a `<meta>` tag (Pages sends no headers). Tauri can deliver its own policy and adds hashes for the scripts it injects; a page with **both** obeys both, and the `<meta>` would block what Tauri adds. So the shell's build has no `<meta>` policy and Tauri delivers the same string, held equal by `apps/rosea-tauri` test. |
|
||||
| **IndexedDB eviction in a webview** *(predicted)* | WebView2 and Android WebView are Chromium: best-effort storage can be cleared under disk pressure, and an app's data is wiped on uninstall (the Windows uninstaller offers to delete app data). WKWebView on iOS may purge website data of an app that is not used. `persist()` is asked in the shell as in an installed PWA; *Keep her safe* stays the real defence — and on Android and iOS saving a file through `<a download>` does nothing (measure; `tauri-platforms.md` G-T4). |
|
||||
| **The webview phones home** *(measured in Amicitia, 2026-11-08; predicted here)* | A webview talks to its maker on its own: WebView2 to Microsoft and DNS-over-HTTPS providers, Android WebView to Google's metrics and an Autofill server as soon as a field takes focus. Desktop: `additionalBrowserArgs` switches these off (undocumented feature names a runtime update can break). Android: no `INTERNET` permission at all while Rosea has no network feature, plus metrics and Safe Browsing off in the manifest, applied by a committed patch because `gen/` is regenerated. Measure on every release build. |
|
||||
| **Auto Backup sends the garden to a cloud** *(predicted)* | A stock Tauri Android manifest lets Android copy the app's data — the care log, the keys, the chosen town — to the player's cloud backup, without the player choosing it. The patch sets `allowBackup="false"` and excludes every domain from cloud backup and device transfer; *Keep her safe* is how a rose moves. |
|
||||
| **Base path in the shell** *(measured 2026-11-17)* | The PWA lives under `/Rosea/`; Tauri serves the game at the root of its own origin (`https://tauri.localhost/` on Windows and Android with `useHttpsScheme`, `tauri://localhost/` on macOS and iOS). A shell build with base `/Rosea/` would ask for `/Rosea/assets/…` and open a blank window. The shell's copy is built with base `/` into its own folder, so the two can never be mixed up; measured: the garden opens at `https://tauri.localhost/` on Windows and on Android. |
|
||||
| **A service worker inside a webview** *(answered 2026-11-17)* | Inside Tauri the files are already on the device; a worker would cache a second copy, could serve a stale game after an app update, and *A new version of the garden is ready* would offer a refresh that fetches nothing. The shell's build has no worker and no manifest: `vite-plugin-pwa` is disabled there and `registerSW` is its no-op. Measured: no registration in either app. |
|
||||
| **Two content-security policies** *(conflict predicted; the answer measured 2026-11-17)* | The PWA carries its policy in a `<meta>` tag (Pages sends no headers). Tauri can deliver its own policy and adds hashes for the scripts it injects; a page with **both** obeys both, and the `<meta>` would block what Tauri adds. So the shell's build has no `<meta>` policy and Tauri delivers the same string, held equal by `apps/rosea-tauri` test. Measured: no CSP violation and no request outside the origin, on Windows and on Android. |
|
||||
| **IndexedDB eviction in a webview** *(partly measured 2026-11-17)* | WebView2 and Android WebView are Chromium: best-effort storage can be cleared under disk pressure, and an app's data is wiped on uninstall (the Windows uninstaller offers to delete app data). WKWebView on iOS may purge website data of an app that is not used. `persist()` answers `false` in WebView2 and in Android WebView (measured). *Keep her safe* is the real defence — and on Android saving a file through `<a download>` **does nothing** (measured on the tablet), while the words still speak of *this browser*: a release blocker (`tauri-platforms.md` G-T4). |
|
||||
| **The webview phones home** *(measured in Amicitia, 2026-11-08; here: Android closed by construction, Windows unmeasured)* | A webview talks to its maker on its own: WebView2 to Microsoft and DNS-over-HTTPS providers, Android WebView to Google's metrics and an Autofill server as soon as a field takes focus. Desktop: `additionalBrowserArgs` switches these off (undocumented feature names a runtime update can break). Android: no `INTERNET` permission at all while Rosea has no network feature, plus metrics and Safe Browsing off in the manifest, applied by a committed patch because `gen/` is regenerated. Measure on every release build. |
|
||||
| **Auto Backup sends the garden to a cloud** *(answered 2026-11-17)* | A stock Tauri Android manifest lets Android copy the app's data — the care log, the keys, the chosen town — to the player's cloud backup, without the player choosing it. The patch sets `allowBackup="false"` and excludes every domain from cloud backup and device transfer; *Keep her safe* is how a rose moves. Measured: the installed package carries no `ALLOW_BACKUP` flag and no `INTERNET` permission (`dumpsys package`); `pnpm tauri:android` checks the APK itself with `aapt2`. |
|
||||
| **iOS cannot be built on Windows** *(known)* | `tauri ios init` and every iOS build need macOS and Xcode; installing on a phone needs an Apple developer account (free for one's own device, paid for TestFlight and the App Store). `pnpm tauri:ios` refuses on Windows with this reason. |
|
||||
| **The bundle identifier and the origin are forever** | An Android `applicationId` or iOS bundle id cannot change after a release without becoming a different app: the old one keeps the player's rose, the new one starts empty. Chosen once (`cz.mareknovak.domi.rosea`), before the first release, even though the product name may still change. The same holds for `useHttpsScheme` (`true`): flipping it changes the webview's origin, and IndexedDB is per origin, so the rose is left behind. The shell's test pins both. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user