Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d18ea0afc | |||
| b3076553ef | |||
| 0ab845dcbb | |||
| f5d8d2c581 |
+2
-1
@@ -6,7 +6,8 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
|||||||
| Feature | Phase | Status | Analysis | Review |
|
| Feature | Phase | Status | Analysis | Review |
|
||||||
|:--|:--|:--|:--|:--|
|
|:--|:--|:--|:--|:--|
|
||||||
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
||||||
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | On `feature/android-release-apk`. Blocked: the phone is not paired in Fabrica (G-F5); `rosea-android` does not exist (G-F7) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan only (2026-11-22); no code until Atrium's `APP_CONTRACT.md` v0 | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md) |
|
||||||
|
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
||||||
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
||||||
| 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) |
|
| 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) |
|
| 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) |
|
||||||
|
|||||||
@@ -93,10 +93,16 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
|||||||
| G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. |
|
| G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. |
|
||||||
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. |
|
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. |
|
||||||
| G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). |
|
| G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). |
|
||||||
| G-F5 | The `phone` target has not run | Narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. |
|
| ~~G-F5~~ | ~~The `phone` target has not run~~ | **Closed 2026-11-21:** `fabrica tests run --target phone` through the hub's queue, run `20261121-101158-uckm` 1 passed 0 failed on the Wave 10 (debug APK `bd59ff908125…`, commit f5d8d2c); the planted-fault drill `20261121-102500-crkf` failed as it must. The e2e pipeline's `phone` step still waits for the hub's e2e runner (Mark). Earlier: narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. |
|
||||||
| G-F7 | No key signs the APK | Open (`android-release-apk.md` A6): `rosea-android` is not in Custos's `ANDROID_APPS`, so the release's `apk` step stops at `no_key`. Custos's change (or Mark's *Create Android key*), then the release. The unsigned release APK builds and verifies. |
|
| G-F7 | No key signs the APK | Open (`android-release-apk.md` A6): `rosea-android` is not in Custos's `ANDROID_APPS`, so the release's `apk` step stops at `no_key`. Custos's change (or Mark's *Create Android key*), then the release. The unsigned release APK builds and verifies. **Narrowed 2026-11-22:** Custos 0.25.0's table still has no Rosea row. Its *Android grant* makes the key on a release's first signature, from the repo's own `release` pipeline (signing.rs test `the_android_grant_makes_an_apps_key…`). Per the Aula session, Custos 0.25.2 is installed and Mark gave the grant for `mnovak/*`. This is unverified until the first signature. |
|
||||||
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
|
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
|
||||||
|
|
||||||
|
## Atrium Domi — adoption (`atrium-adoption.md`)
|
||||||
|
|
||||||
|
| Id | Gap | Status / evidence |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | Open, **plan only** (2026-11-22). Inventory: no Tauri invoke or listen, one database (`rosea` IndexedDB), no outgoing request. Step 1 waits for Atrium's `APP_CONTRACT.md` v0, and the later steps wait for their Atrium Day. R1 (keep the origin) and R4 (Rust in the shell) are Mark's. |
|
||||||
|
|
||||||
## Phase 6 — Release
|
## Phase 6 — Release
|
||||||
|
|
||||||
| Id | Gap | Status / evidence |
|
| Id | Gap | Status / evidence |
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ flowchart LR
|
|||||||
| The release APK asks for no permission and allows no backup | build check | `android.ts verify <unsigned apk>` (aapt2) | done: verified; `aapt2 dump badging` shows no `debuggable` and only androidx's own `DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` (the app's own signature permission, not a capability) |
|
| The release APK asks for no permission and allows no backup | build check | `android.ts verify <unsigned apk>` (aapt2) | done: verified; `aapt2 dump badging` shows no `debuggable` and only androidx's own `DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` (the app's own signature permission, not a capability) |
|
||||||
| `reset` and `maxMinutes` are read, and a wrong `reset` is refused | config | `fabrica artifex check` with a planted value | done: refused with `targets[1].reset: clear, uninstall or keep` |
|
| `reset` and `maxMinutes` are read, and a wrong `reset` is refused | config | `fabrica artifex check` with a planted value | done: refused with `targets[1].reset: clear, uninstall or keep` |
|
||||||
| The pipelines are valid | config | `fabrica artifex check` | done: 0 problems |
|
| The pipelines are valid | config | `fabrica artifex check` | done: 0 problems |
|
||||||
| Install, open, first screen, water, close, reopen, still watered | e2e, real phone | the e2e pipeline's `phone` step | **not run**: the phone is not paired in Fabrica |
|
| Install, open, first screen, water, close, reopen, still watered | e2e, real phone | `fabrica tests run --target phone` through the hub's queue (the e2e runner is not yet added, so not the pipeline step) | done 2026-11-21: run `20261121-101158-uckm` **1 passed, 0 failed** (7.9 s; waited 12 s in the queue) on the Wave 10, Android 16, debug APK sha256 `bd59ff908125…`, commit f5d8d2c |
|
||||||
|
| The phone test fails when persistence is wrong | e2e drill | planted `Days of care 2`, run through the queue, restored by copy | done: run `20261121-102500-crkf` **0 passed, 1 failed**, received `Days of care1` after the reopen |
|
||||||
| The spec never reaches for a phone outside the queue | e2e | `test.skip` without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` | by construction |
|
| The spec never reaches for a phone outside the queue | e2e | `test.skip` without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` | by construction |
|
||||||
| The signed APK verifies with `rosea-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key |
|
| The signed APK verifies with `rosea-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key |
|
||||||
| What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists |
|
| What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists |
|
||||||
|
|||||||
@@ -0,0 +1,189 @@
|
|||||||
|
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
|
||||||
|
|
||||||
|
Status: **plan only**, `docs/atrium-adoption`, 2026-11-22. No code changes yet. The brief is Mark's, passed on by the Aula
|
||||||
|
session: prepare Rosea for Atrium Domi. The source is `F:\Akce\Atrium-plan\ROADMAP.md` §1–2 and Appendix A. Rules for when each step may start:
|
||||||
|
|
||||||
|
- Step 1 code waits for Atrium's `docs/APP_CONTRACT.md` v0 on its `main`.
|
||||||
|
- Each later step waits until its Atrium Day lands.
|
||||||
|
- Visual changes wait for `@domi/ui`.
|
||||||
|
|
||||||
|
This file is the inventory Appendix A asks for, plus the decisions those steps would force on Rosea. Its §6 lists the questions for Mark.
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
Atrium Domi is the single free thing a Domi user installs:
|
||||||
|
|
||||||
|
- a tray service that handles updates, licences, backup and the record of *What left this computer*;
|
||||||
|
- a window whose rooms are the Domi apps.
|
||||||
|
|
||||||
|
For Rosea, three things matter to the player:
|
||||||
|
|
||||||
|
- **Backup.** Her rose is backed up with everything else, in one click, with no account. This is a stronger answer to
|
||||||
|
the trap Rosea fears most, a player coming back to find her gone (CLAUDE.md §8), than *Keep her safe* alone.
|
||||||
|
- **The record.** *What left this computer* shows Rosea as having sent nothing, which is the truth.
|
||||||
|
- **Standalone.** The garden opens inside Atrium's window, and the app still opens on its own exactly as today.
|
||||||
|
Atrium is the door, not a lock (ROADMAP §1).
|
||||||
|
|
||||||
|
Nothing about the game changes. The PWA and the Android app are not part of Atrium; Atrium is a Windows desktop
|
||||||
|
service plus a NixOS server edition.
|
||||||
|
|
||||||
|
## 2. Inventory (what Appendix A asks for)
|
||||||
|
|
||||||
|
### 2.1 Direct Tauri invoke/listen in the UI (for `@domi/bridge`, step 2)
|
||||||
|
|
||||||
|
**None.** The shell is *a window and nothing else* (CLAUDE.md §2). Here is what was checked on `main` (b307655):
|
||||||
|
|
||||||
|
- **No Tauri JavaScript API.** No `@tauri-apps/api` dependency anywhere, and no `invoke(`, `listen(` or `__TAURI__`
|
||||||
|
in `apps/rosea/src` or `packages/*/src`.
|
||||||
|
- **No commands, no plugins, no IPC grant.** `apps/rosea-tauri/src-tauri/src/lib.rs` is a bare `tauri::Builder`, and
|
||||||
|
`capabilities/` is absent on purpose, so the page has no IPC at all.
|
||||||
|
- **The one native bridge is Android-only and not Tauri.** It is `window.roseaFile.save(name, text)`, registered
|
||||||
|
with `addJavascriptInterface` in `apps/rosea-tauri/android/java/MainActivity.kt`. It is used by
|
||||||
|
`apps/rosea/src/App.svelte` for *Keep her safe* (`keep-her-safe-apps.md`) and pinned by
|
||||||
|
`apps/rosea-tauri/test/android-bridge.test.ts`. Atrium has no Android part, so it stays.
|
||||||
|
- **The one shell switch is a build-time constant,** `__ROSEA_SHELL__`, read only in `App.svelte`.
|
||||||
|
|
||||||
|
So step 2 has nothing to replace. It becomes a guard: a test that the game still imports no `@tauri-apps/api`
|
||||||
|
(added with step 1 or 3, whichever comes first).
|
||||||
|
|
||||||
|
### 2.2 Data folders and databases (for `rosea.backup.snapshot`, step 4)
|
||||||
|
|
||||||
|
**Rosea writes one thing: the IndexedDB database `rosea`**, through Dexie in `packages/storage` (schema version 2):
|
||||||
|
|
||||||
|
| Store | Contents | Can be remade? |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| `profile` | the rose's name, the gardener, the chosen sunset town (or none), settings, `pastKeys` | the name, gardener and town take a tap each; `pastKeys` cannot be remade |
|
||||||
|
| `events` | the append-only care log, *the truth* (CLAUDE.md §4) | **no** |
|
||||||
|
| `keys` | the identity keypair; the private key is a **non-extractable** WebCrypto key | **no, and it cannot be read out at all** |
|
||||||
|
|
||||||
|
It sits in the webview's profile and is not a file of Rosea's own:
|
||||||
|
|
||||||
|
| Version | Folder |
|
||||||
|
|:--|:--|
|
||||||
|
| Windows (the only one Atrium sees) | `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\EBWebView\` (WebView2's user data folder). The database is LevelDB under `Default\IndexedDB\https_tauri.localhost_0.indexeddb.leveldb` *(this exact path is predicted on Windows; it was seen on Android)* |
|
||||||
|
| macOS, Linux | WKWebView / WebKitGTK data folders *(predicted)*, CLAUDE.md §4 |
|
||||||
|
|
||||||
|
The Rust side writes no file. There is no SQLite.
|
||||||
|
|
||||||
|
### 2.3 Every outgoing network request (for the audit, step 5)
|
||||||
|
|
||||||
|
**None from Rosea.** The evidence:
|
||||||
|
|
||||||
|
| Layer | What holds it |
|
||||||
|
|:--|:--|
|
||||||
|
| The game | no `fetch`, `XMLHttpRequest`, `WebSocket`, `sendBeacon`, `EventSource` or `RTCPeerConnection` in `apps/rosea/src` or `packages/*/src` (grep, b307655) |
|
||||||
|
| The page's policy | CSP `connect-src 'self'` and `default-src 'self'`, from `tauri.conf.json` `app.security.csp`, held equal to the PWA's `<meta>` by the shell's test |
|
||||||
|
| The WebView2 runtime | `additionalBrowserArgs` switches off its own calls home: DoH, SmartScreen, Autofill, Translate, background networking, component update and more (CLAUDE.md §8, *the webview phones home*). **Not yet measured on Windows** |
|
||||||
|
| Android (not in Atrium) | no `INTERNET` permission, checked with `aapt2` on every build |
|
||||||
|
|
||||||
|
What could leave in future:
|
||||||
|
|
||||||
|
- the WebView2 runtime itself, if a runtime update breaks the switches;
|
||||||
|
- Phase 3 friend sync (WebRTC);
|
||||||
|
- Phase 4 `lucerna`.
|
||||||
|
|
||||||
|
Each of those gets its `fundamentum.audit.record` when it arrives. The step-5 test for Rosea is the reverse of the
|
||||||
|
Appendix's: *any* request fails the suite. Today that means a built-app e2e that records every request and expects
|
||||||
|
none outside the origin. The offline suite already comes close.
|
||||||
|
|
||||||
|
### 2.4 Accent and icon (for `domi-app.toml`, step 1)
|
||||||
|
|
||||||
|
| Field | Proposal | Source |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| `id` | `rosea` | the `@rosea/*` scope, `domi-rosea://` |
|
||||||
|
| `name` | `Rosea Domi` | `packages/schema/src/constants.ts`; *Domi* never alone |
|
||||||
|
| `label` | `Rose` *(judgment: a plain word, as Appendix A asks)* | — |
|
||||||
|
| `accent` | `#b4485e` (`--rose`, light); on the dark Domi theme `#e8899b` (`--rose`, dark) | `packages/ui/src/tokens.css`; the web manifest's `theme_color` |
|
||||||
|
| `icon` | `apps/rosea/public/icon.svg`, a **placeholder** (form only). The real icon comes through `docs/ART.md` | the shell's icons are made from it at build time |
|
||||||
|
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
|
||||||
|
| `hostable` | `true`, with the origin rule in R1 | — |
|
||||||
|
| `free` | **Mark's to say** | — |
|
||||||
|
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
||||||
|
|
||||||
|
## 3. Technical architecture (as planned)
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
subgraph atrium["Atrium Domi (not in this repo)"]
|
||||||
|
svc["atrium-service<br/>\\.\pipe\domi-atrium"]
|
||||||
|
win["Atrium window"]
|
||||||
|
end
|
||||||
|
subgraph shell["apps/rosea-tauri (Rust)"]
|
||||||
|
door["service door client<br/>(new, step 1)"]
|
||||||
|
snap["rosea.backup.snapshot<br/>(new, step 4)"]
|
||||||
|
end
|
||||||
|
subgraph game["apps/rosea + packages/* (unchanged)"]
|
||||||
|
store["packages/storage<br/>exportRose / importRose"]
|
||||||
|
idb[("IndexedDB rosea<br/>in WebView2's folder")]
|
||||||
|
end
|
||||||
|
svc <--> door
|
||||||
|
door --> snap
|
||||||
|
snap -. "asks the page" .-> store --> idb
|
||||||
|
win -. "hosts rosea.ui.* (step 3)" .-> shell
|
||||||
|
game -. "imports nothing of Atrium's" .- atrium
|
||||||
|
```
|
||||||
|
|
||||||
|
**The seam stays where it is.** The game never learns Atrium exists, just as it never learns which shell it is in
|
||||||
|
except through `__ROSEA_SHELL__`. Everything Atrium needs lives in `apps/rosea-tauri`. That shell stays deletable,
|
||||||
|
and the PWA stays whole without it.
|
||||||
|
|
||||||
|
### Decisions this forces (proposed; Mark decides those marked so)
|
||||||
|
|
||||||
|
| # | Proposal | Why |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| R1 | **Hosted mode keeps Rosea's own webview and origin.** Atrium shows Rosea's window as a room (`--hosted` = Rosea's process, its WebView2 folder, `https://tauri.localhost`). Atrium does not load `ui_bundle` in a webview of its own. | IndexedDB is per origin and per profile. A bundle loaded by Atrium's webview opens an **empty** database, and the player meets a new rose with hers apparently gone: the cruellest bug this product could have (CLAUDE.md §8, *the origin is forever*). If Atrium can only host by loading the bundle, Rosea is `hostable = false` until a migration is designed. |
|
||||||
|
| R2 | **The snapshot is the care log, taken by the game**: `exportRose`'s `rosea-rose` file (`keep-her-safe.md` K1: keys + events, never the private key, never the town). The shell asks the page for it and writes it into the folder the service gives. | Copying LevelDB from under a running webview is not consistent, and the private key cannot be copied at all. The `rosea-rose` file is the one format already tested to restore additively (K3, K4). |
|
||||||
|
| R3 | **Restore is *bring her back*,** not a byte copy. It goes through `importRose`, which only appends. The restored rose lives under a new key with her old care intact (K2). | Contributions only add, and the log is never rewritten (CLAUDE.md §1, §6.2). |
|
||||||
|
| R4 | **Mark decides:** the shell gains Rust code and a local named-pipe client, the first code beyond *a window*. Step 4 needs one page↔shell channel: one Tauri command, or `eval` plus an event, granted only to Rosea's own origin. | This changes CLAUDE.md §2 (*no Tauri command, no plugin*). The pipe is local, not a network, but it is new surface. It is reviewed like a plugin, for network access. |
|
||||||
|
| R5 | **No badge, and *today* only if Mark wants it.** If there is a `rosea.atrium.today` at all, it is the real sunset time (*points beyond the screen*). It never mentions the rose's state. | A badge is a count, and a count about her waiting is guilt with a ribbon (CLAUDE.md §8). |
|
||||||
|
| R6 | **Export (step 7) is the `rosea-rose` JSON**, an open format, with a README line. | It exists already. |
|
||||||
|
| R7 | **The name gains a fifth place** (`domi-app.toml`). The shell's test holds it equal to the constants, as it does for `tauri.conf.json`. | Renaming stays one commit (CLAUDE.md, header). The list in CLAUDE.md needs that line; it is the author's file. |
|
||||||
|
|
||||||
|
## 4. Risk analysis
|
||||||
|
|
||||||
|
| Risk (a person feeling worse, a location, someone reachable) | Where | Answer |
|
||||||
|
|:--|:--|:--|
|
||||||
|
| Her rose seems gone inside Atrium | hosted mode | R1: same origin and profile, or not hostable; an e2e that opens her in both and sees the same days of care |
|
||||||
|
| A restore takes care away | backup | R3: additive import only, property-tested already (K3) |
|
||||||
|
| The town leaves the device in a backup | snapshot | it is not in the file (K1). Backups are encrypted by Atrium, and the target is the player's |
|
||||||
|
| A badge or a *today* line that blames | Atrium Home | R5 |
|
||||||
|
| The pipe becomes a way in | step 1 | Canalis's Noise handshake with Tessera keys (ROADMAP §2); Rosea serves only `rosea.*` to Atrium |
|
||||||
|
| Atrium not running pulls the player away from her | step 1 | the wait and the *Atrium Domi is not running* card must never stand between a cold open and the garden. Rosea opens first, and the card is a quiet line, never a blocker (*three taps to action, one preferred*) |
|
||||||
|
|
||||||
|
## 5. Gap analysis and steps
|
||||||
|
|
||||||
|
Only the steps whose Atrium Day has landed may start, and Aula says when.
|
||||||
|
|
||||||
|
| Step | Atrium Day | Rosea's work | State |
|
||||||
|
|:--|:--|:--|:--|
|
||||||
|
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | `domi-app.toml` (§2.4), the pipe client in the shell, R7's test | waits for APP_CONTRACT v0 |
|
||||||
|
| 2 Bridge | Day 4 | nothing to replace (§2.1); a guard test | waits |
|
||||||
|
| 3 Hosted mode | Day 4 | `--hosted`, `rosea.ui.*`, R1 | waits; R1 needs Atrium's answer |
|
||||||
|
| 4 Backup snapshot | Day 3 | R2, R3, R4; a test: a snapshot taken while she is watered restores to a consistent, additive state | waits; R4 is Mark's |
|
||||||
|
| 5 Audit | Day 2 | no request to record; a test that none is made (§2.3) | waits |
|
||||||
|
| 6 Today/search | Day 6 (optional) | R5 | Mark's choice |
|
||||||
|
| 7 Export | Day 8 | R6 | waits |
|
||||||
|
| 8 Release | — | through Fabrica, as today | waits for G6.1 and G-F1 |
|
||||||
|
|
||||||
|
Visual changes (the room's look, `@domi/ui`) wait for `@domi/ui`.
|
||||||
|
|
||||||
|
## 6. Questions for Mark (through Aula)
|
||||||
|
|
||||||
|
1. **R4:** may the shell gain Rust code, a local pipe client and one page↔shell channel? This amends CLAUDE.md §2.
|
||||||
|
2. **R1:** can Atrium host a room as the app's own window, keeping its origin? If not, Rosea is `hostable = false` for now.
|
||||||
|
3. Is Rosea **free**?
|
||||||
|
4. **R5:** should Rosea have a *today* line at all, with the sunset time only?
|
||||||
|
|
||||||
|
## 7. Verification matrix (for when the steps are built)
|
||||||
|
|
||||||
|
| Case | Kind |
|
||||||
|
|:--|:--|
|
||||||
|
| The garden opens standalone exactly as before, with Atrium absent and with it present | e2e (built `.exe`) |
|
||||||
|
| A cold open is never blocked by a missing service | e2e |
|
||||||
|
| The hosted room shows the same days of care as the standalone app | e2e, manual |
|
||||||
|
| A snapshot taken mid-watering restores without losing or doubling an act | integration |
|
||||||
|
| A restore of yesterday's snapshot adds, never removes | integration (K3's property test reused) |
|
||||||
|
| `domi-app.toml`'s name equals the constants | unit |
|
||||||
|
| The game imports no `@tauri-apps/api` | unit |
|
||||||
|
| No request leaves the origin | e2e on the built app |
|
||||||
|
| The pipe client refuses a peer without Atrium's key | integration (`canalis-testkit`) |
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# Review: `docs/atrium-adoption` (2026-11-22)
|
||||||
|
|
||||||
|
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md). This branch is a plan only. It changes no
|
||||||
|
code, no config and no player-facing words.
|
||||||
|
|
||||||
|
## What changed
|
||||||
|
|
||||||
|
- New: `.agents/features/atrium-adoption.md`, which holds the inventory, decisions R1–R7, the risks, the steps and
|
||||||
|
four questions for Mark.
|
||||||
|
- `.agents/FEATURES.md`: a new row.
|
||||||
|
- `.agents/GAP_ANALYSIS.md`:
|
||||||
|
- new section G-AT1;
|
||||||
|
- G-F7 narrowed: Custos 0.25.0's Android grant can make `rosea-android`.
|
||||||
|
|
||||||
|
## How the inventory was made
|
||||||
|
|
||||||
|
Everything was checked on `main` b307655.
|
||||||
|
|
||||||
|
- **Tauri calls:** a search of `apps/`, `packages/`, `e2e/`, `scripts/` and `tools/` for `@tauri-apps`,
|
||||||
|
`__TAURI`, `invoke(`, `.listen(`, `addJavascriptInterface` and `__ROSEA_SHELL__`.
|
||||||
|
- Found only `__ROSEA_SHELL__`, the Android `roseaFile` interface and the Tauri CLI dependency.
|
||||||
|
- The only `.listen(` is the e2e static server's.
|
||||||
|
- **Network:** a search of `apps/rosea/src` and `packages/*/src` for `fetch(`, XHR, `WebSocket`, `sendBeacon`,
|
||||||
|
`EventSource`, `RTCPeerConnection` and absolute URLs. It found nothing.
|
||||||
|
- **Accent and icon:** read from `packages/ui/src/tokens.css`, the web manifest in `vite.config.ts` and
|
||||||
|
`apps/rosea/public/icon.svg`.
|
||||||
|
- **Custos 0.25.0:** `git show v0.25.0:apps/desktop/src-tauri/src/signing.rs` in `F:\Akce\Custos`. Read only.
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
1. **The Windows path of the database is predicted, not seen.** The `…\Default\IndexedDB\…leveldb` part was seen
|
||||||
|
on Android only. *Marked (predicted)* in §2.2. Measure it when step 4 is built.
|
||||||
|
2. **"No outgoing request" covers Rosea's code, not the WebView2 runtime.** The switches that silence the runtime
|
||||||
|
are undocumented feature names, and they have never been measured on Windows (CLAUDE.md §8). *Stated* in §2.3.
|
||||||
|
A request capture on the built `.exe` belongs in step 5.
|
||||||
|
3. **Appendix A's hosted mode, read literally, could lose her rose.** If Atrium loads `ui_bundle` into its own
|
||||||
|
webview, it opens another origin and profile, and so an empty database. *R1 written as a condition of
|
||||||
|
`hostable = true`*, and asked of Mark and Atrium (§6 Q2). This is the most important line in the plan.
|
||||||
|
4. **The backup snapshot cannot be a file copy.** LevelDB is live under a running webview, and the private key is
|
||||||
|
non-extractable. *R2 and R3:* the snapshot is the tested `rosea-rose` file, and a restore only adds. The cost:
|
||||||
|
a restored rose lives under a new key, as one brought back by *Keep her safe* does. That is said plainly in R3.
|
||||||
|
5. **Steps 1 and 4 change CLAUDE.md §2's *a window and nothing else*.** *Not decided here.* R4 asks Mark. This
|
||||||
|
branch does not touch CLAUDE.md.
|
||||||
|
6. **A badge would be a count about her waiting.** *R5: no badge.* The *today* line is optional and holds only
|
||||||
|
the sunset time.
|
||||||
|
7. **The *Atrium Domi is not running* card could stand between a cold open and the garden.** *§4: Rosea opens
|
||||||
|
first*, and the card is a line, never a wait.
|
||||||
|
8. **G-F7's narrowing rests on the Aula session's word** that 0.25.2 is installed and the grant is given. *Marked
|
||||||
|
unverified* until the first signature.
|
||||||
|
9. **`label = Rose` is a guess.** It is *marked (judgment)*.
|
||||||
|
|
||||||
|
## Soul, privacy, reachability, offline
|
||||||
|
|
||||||
|
- **Soul:** no change ships. The plan guards against two ways a player could feel worse: R1 (her rose seeming
|
||||||
|
gone) and R5 (a count that blames).
|
||||||
|
- **Privacy:** the snapshot file holds no town (K1). Atrium encrypts the backup, and the target is the player's.
|
||||||
|
- **Reachability:** none. The pipe is local, and Rosea serves only `rosea.*` to Atrium.
|
||||||
|
- **Offline:** unchanged.
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
This branch is docs only, and no gate covers its files. `pnpm lint:copy` reads player copy and the Letter, neither
|
||||||
|
of which changed. Not rerun: `pnpm test`, e2e, offline. The bundle was not rebuilt, and this change is invisible to
|
||||||
|
the player by design.
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
|
||||||
|
- Atrium's `APP_CONTRACT.md` does not exist yet. The field names in §2.4 follow ROADMAP Appendix A and may change.
|
||||||
|
- Whether Atrium can host a room as the app's own window (R1).
|
||||||
@@ -82,3 +82,29 @@ Also run:
|
|||||||
- `pnpm test:e2e` and `test:offline` were **not rerun**. Nothing the browser runs changed: the only code change is
|
- `pnpm test:e2e` and `test:offline` were **not rerun**. Nothing the browser runs changed: the only code change is
|
||||||
one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from
|
one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from
|
||||||
`feature/fabrica-release`, on the same game.
|
`feature/fabrica-release`, on the same game.
|
||||||
|
|
||||||
|
## Addendum, 2026-11-21 (`fix/phone-target-run`): the phone target ran through the queue
|
||||||
|
|
||||||
|
The Fabrica session got the queue working on the Wave 10. The hub's e2e runner is not added yet, so the target
|
||||||
|
ran from this session with `fabrica tests run --target phone --as claude`, which takes the phone through the
|
||||||
|
hub's queue.
|
||||||
|
|
||||||
|
| Run | What | Result |
|
||||||
|
| :-- | :-- | :-- |
|
||||||
|
| `20261121-101158-uckm` | the spec as merged (f5d8d2c), debug APK sha256 `bd59ff908125…` | **1 passed, 0 failed** (7.9 s). Waited 12 s behind Culina's run. Fabrica uninstalled, installed, started; the WebView was drivable. |
|
||||||
|
| `20261121-101303-zvve` | drill: `Days of care 2` planted | **error, 0 run.** Waited 424 s behind Postea and Culina, then `adb install failed` with an empty reason. Not the planted fault. |
|
||||||
|
| `20261121-102500-crkf` | the same drill, once more | **0 passed, 1 failed.** Received `Days of care1` after the close and reopen, so the test checks persistence for real. |
|
||||||
|
|
||||||
|
The spec was restored by copy after each drill, and `git status` was checked after.
|
||||||
|
|
||||||
|
Findings:
|
||||||
|
|
||||||
|
10. **One `adb install` failed with no reason**, on a phone that two other apps' runs had just used. The next
|
||||||
|
run's `pm uninstall` answered `DELETE_FAILED_INTERNAL_ERROR (not installed)`, so nothing was left behind.
|
||||||
|
*Not reproduced; not Rosea's code.* For the Fabrica session: the CLI could print adb's stderr when stdout ends
|
||||||
|
with `:`.
|
||||||
|
11. **The Aula session's interim rule 2 says `reset: keep`** unless the app's data may be wiped. Rosea's data on the
|
||||||
|
test phone may be wiped (CLAUDE.md §3: `check-garden.ts android` already `pm clear`s the test app), and the
|
||||||
|
test needs a first open. *`uninstall` kept* (A3).
|
||||||
|
12. **The drill ran on the Wi-Fi line** (`192.168.100.127:5555`, rule 1 of the same message) and the passing run on
|
||||||
|
USB. Both are the same phone. Nothing to fix.
|
||||||
|
|||||||
@@ -40,3 +40,5 @@ apps/rosea-tauri/src-tauri/icons/
|
|||||||
|
|
||||||
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
||||||
e2e/aula/
|
e2e/aula/
|
||||||
|
# Fabrica's records of `fabrica tests run` (run.json, traces): local evidence, quoted in the reviews, never committed
|
||||||
|
.fabrica/runs/
|
||||||
|
|||||||
+21
-3
@@ -2,14 +2,32 @@
|
|||||||
|
|
||||||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||||
|
|
||||||
## Latest — 2026-11-21: the APK for a release, tested through the phone queue (blocked twice)
|
## Latest — 2026-11-22: the Atrium Domi adoption plan (plan only)
|
||||||
|
|
||||||
|
- **`docs/atrium-adoption`**: [`.agents/features/atrium-adoption.md`](.agents/features/atrium-adoption.md) has the
|
||||||
|
inventory Atrium's Appendix A asks for:
|
||||||
|
- no Tauri invoke or listen;
|
||||||
|
- one database, `rosea` IndexedDB in WebView2's folder;
|
||||||
|
- no outgoing request;
|
||||||
|
- accent `#b4485e` / `#e8899b`; the icon is the placeholder `icon.svg`.
|
||||||
|
- **The plan's decisions:** R1 keep Rosea's own origin when hosted, or her rose seems gone; R2/R3 snapshot and
|
||||||
|
restore as the `rosea-rose` file, additive only. R4 (Rust in the shell) and R1 are Mark's, along with *free* and
|
||||||
|
*today* (G-AT1).
|
||||||
|
- **Code waits** for Atrium's `docs/APP_CONTRACT.md` v0 (the Aula session says when). Visual changes wait for `@domi/ui`.
|
||||||
|
- **The key:** Custos 0.25's *Android grant* (Mark, `mnovak/*`, per Aula) should make `rosea-android` at the first
|
||||||
|
signature (G-F7, unverified).
|
||||||
|
- **The release:** still waits for Mark's own yes in this session to remove G6.1 from CLAUDE.md. The request
|
||||||
|
reached this session only through the Aula session, and CLAUDE.md is not edited on a relayed request.
|
||||||
|
|
||||||
|
## Earlier — 2026-11-21: the APK for a release, tested through the phone queue (blocked twice)
|
||||||
|
|
||||||
- **`feature/android-release-apk`**: the phone target says `reset: uninstall` and `maxMinutes: 20`; the e2e
|
- **`feature/android-release-apk`**: the phone target says `reset: uninstall` and `maxMinutes: 20`; the e2e
|
||||||
pipeline gains `apk` and `phone` (`device: Wave 10`, so the hub queues it); both pipelines name the NDK and put
|
pipeline gains `apk` and `phone` (`device: Wave 10`, so the hub queues it); both pipelines name the NDK and put
|
||||||
Gradle's cache on D:. Analysis: [`.agents/features/android-release-apk.md`](.agents/features/android-release-apk.md).
|
Gradle's cache on D:. Analysis: [`.agents/features/android-release-apk.md`](.agents/features/android-release-apk.md).
|
||||||
Review: [`.agents/reviews/feature-android-release-apk.md`](.agents/reviews/feature-android-release-apk.md).
|
Review: [`.agents/reviews/feature-android-release-apk.md`](.agents/reviews/feature-android-release-apk.md).
|
||||||
- **Blocked on the phone:** the Wave 10 is not paired in Fabrica (`fabrica devices list`), so the `phone` step
|
- **The phone test passed** through the hub's queue (`fabrica tests run --target phone`): run
|
||||||
cannot get it. Pairing is the Fabrica session's; nothing here drove the phone.
|
`20261121-101158-uckm`, 1 passed, 0 failed, on the Wave 10. A planted fault failed as it must. The e2e pipeline's
|
||||||
|
`phone` step still waits for the hub's e2e runner (Mark).
|
||||||
- **Blocked on the key:** `rosea-android` does not exist, and Custos will not make it, because it is not in Custos's
|
- **Blocked on the key:** `rosea-android` does not exist, and Custos will not make it, because it is not in Custos's
|
||||||
`ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or
|
`ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or
|
||||||
Mark's *Create Android key* (G-F7).
|
Mark's *Create Android key* (G-F7).
|
||||||
|
|||||||
Reference in New Issue
Block a user