[tauri] AtriumManifest: Ship domi-app.toml beside rosea-shell.exe for Atrium Domi, built from the name and version; 27 hostile fixtures refused with the parser's codes; no door, by the author's ruling
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
| 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) |
|
||||
| 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) |
|
||||
| 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 merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.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) |
|
||||
| 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) |
|
||||
|
||||
@@ -101,7 +101,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
||||
|
||||
| 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. |
|
||||
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | **Narrowed 2026-11-22** (`feature/atrium-door`): step 1 is the `domi-app.toml` alone (contract v0.1 §8 3e), and Atrium's own parser accepts it; 27 hostile fixtures are refused with the parser's codes. The door is skipped by Mark's ruling (manifest only, no rule changes). Earlier: 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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 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
|
||||
Status: the plan was merged as f4efc9e (PR mnovak/Rosea#4). **Step 1, part A is built** on `feature/atrium-door`, 2026-11-22: the `domi-app.toml` (§8). Part B, the door and the fallback, is skipped by Mark's ruling: manifest only, no rule changes. 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`.
|
||||
@@ -93,11 +93,11 @@ none outside the origin. The offline suite already comes close.
|
||||
| `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 |
|
||||
| `accent` | `#e8899b`: `--rose` on the dark theme. Atrium Domi's window is dark, and its catalogue already names this colour for Rosea (`atrium-registry` `catalogue.rs`). The light `--rose` is `#b4485e` | `packages/ui/src/tokens.css` |
|
||||
| `icon` | `domi-icon.png`: the shell's 256 px icon, `icons/128x128@2x.png`, made from `apps/rosea/public/icon.svg` at build time. A **placeholder** (form only); the real icon comes through `docs/ART.md` | `tauri.windows.conf.json` `bundle.resources` |
|
||||
| `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** | — |
|
||||
| `free` | `true`: Mark's rule, *`free = true` for all apps for now* (via the Aula session, 2026-11-22). Rosea needs no licence anyway (APP_CONTRACT §2.2) | — |
|
||||
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
||||
|
||||
## 3. Technical architecture (as planned)
|
||||
@@ -137,7 +137,7 @@ and the PWA stays whole without it.
|
||||
| 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. |
|
||||
| R7 | **The name gains no new place.** `domi-app.toml` is made before each desktop build from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and the game's version (`scripts/domi-app.ts`), and it is never committed. | Renaming stays one commit (CLAUDE.md, header), and Fabrica's four version files stay four. |
|
||||
|
||||
## 4. Risk analysis
|
||||
|
||||
@@ -156,7 +156,7 @@ 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 |
|
||||
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | A: `domi-app.toml` (§2.4, §8). B: the door client and the fallback | **A built** (`feature/atrium-door`); **B skipped** by Mark's ruling (§8) |
|
||||
| 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 |
|
||||
@@ -187,3 +187,42 @@ Visual changes (the room's look, `@domi/ui`) wait for `@domi/ui`.
|
||||
| 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`) |
|
||||
|
||||
## 8. Step 1 (APP_CONTRACT v0.1, Atrium main 25bed39)
|
||||
|
||||
Contract v0.1 §2.4 gives Rosea `id = "rosea"`, `label = "Rose"`, `accent = "#e8899b"`, and the file uses exactly these.
|
||||
§8 point 3e makes the manifest alone *the lightest step 1* for an app with no IPC, and point 5 records that
|
||||
players without Custos skip the door. Mark approved a public mirror of `atrium-door`'s client side (via the Aula
|
||||
session), so a later door would not need the private repository.
|
||||
|
||||
### A, built: `domi-app.toml`
|
||||
|
||||
- `apps/rosea-tauri/scripts/domi-app.ts` writes `src-tauri/atrium/domi-app.toml` (git-ignored) before `tauri dev` and
|
||||
`tauri build`. `ATRIUM` holds what APP_CONTRACT §7 says may move (`needs`, the icon).
|
||||
- `tauri.windows.conf.json` `bundle.resources` puts it and `domi-icon.png` next to `rosea-shell.exe`, in the folder
|
||||
that the per-user uninstall entry's `DisplayIcon` names (NSIS `installMode: currentUser`). It is Windows only:
|
||||
the shared config does not carry it, so it is not in the APK.
|
||||
- `test/domi-app.test.ts` checks the file against `test/domi-app-rules.ts`, which holds §2's rules in the parser's
|
||||
order, with 27 hostile fixtures in `test/fixtures/domi-app/`, each named `<field>.<reason>`.
|
||||
- The real parser (`atrium_registry::parse_manifest`, Fundamentum main) was run once over the shipped file and
|
||||
every fixture. See the review for the result.
|
||||
|
||||
### B, skipped: the door and the fallback (R4)
|
||||
|
||||
**Mark's ruling (via the Aula session, 2026-11-22):** *manifest only for now, no rule changes.* CLAUDE.md §2 and
|
||||
§4 stay as they are, and the door is skipped. R1, the no-Custos players and the public-repo/private-crates
|
||||
question are with the Atrium session for its contract. What follows is the reason, kept for when he reopens it.
|
||||
|
||||
APP_CONTRACT §4–5, read against Rosea's CLAUDE.md:
|
||||
|
||||
| The contract asks | Rosea's CLAUDE.md says |
|
||||
|:--|:--|
|
||||
| Rust code in the shell: `atrium_door::DoorClient`, `canalis` and `atrium-door` from Git (`canalis-v1.2.0`), from the **private** Fundamentum repo | §2: the shell is *a window and nothing else*. The repo is **public**, and a public checkout could no longer build the desktop app |
|
||||
| the app publishes its signed Canalis manifest to `%LOCALAPPDATA%\Domi\canalis\manifests\rosea.json` at every start | §4: *the Rust side writes no file of its own* |
|
||||
| a Tessera subkey and a Canalis key from Custos | §1: *identity is a locally generated keypair*. Players have no Custos, so the door is skipped for every player (the contract's *NoCustos* path). Only the author's PC would ever say hello |
|
||||
| *"Atrium Domi is not running"* with **Start**, shown in the app | §2: no Tauri command and no `@tauri-apps/api` in the game. Showing it in the garden needs a shell→page channel. Starting another program from Rosea is new too |
|
||||
|
||||
So B is a decision for the author, made in this repository's own session, as with G6.1. Once he decides, B is one
|
||||
module in the shell (`src-tauri/src/atrium.rs`): the hello off the UI thread, and the `NotInstalled` and
|
||||
`NoCustos` paths saying nothing. The fallback would be a quiet line, never a wait before the garden.
|
||||
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
# Review: `feature/atrium-door` (2026-11-22)
|
||||
|
||||
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md) §8. This branch implements step 1 part
|
||||
A of Atrium's Appendix A, the static `domi-app.toml`, under Atrium docs/APP_CONTRACT.md v0.1. Part B, the door, is
|
||||
skipped by Mark's ruling: *manifest only for now, no rule changes* (via the Aula session).
|
||||
|
||||
## What changed
|
||||
|
||||
- `apps/rosea-tauri/scripts/domi-app.ts` (new): builds the manifest from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and
|
||||
the game's version, and writes `src-tauri/atrium/domi-app.toml`. The file is git-ignored.
|
||||
- `apps/rosea-tauri/package.json`: `dev` and `build:desktop` run it before Tauri.
|
||||
- `apps/rosea-tauri/src-tauri/tauri.windows.conf.json`: `bundle.resources` places `domi-app.toml` and
|
||||
`domi-icon.png` next to the `.exe`.
|
||||
- `apps/rosea-tauri/test/domi-app-rules.ts`, `domi-app.test.ts` and 27 fixtures in `test/fixtures/domi-app/`
|
||||
(all new).
|
||||
- `.gitignore`, and the docs: the plan's §8, G-AT1, FEATURES and the handover.
|
||||
|
||||
No game code, no Rust and no CLAUDE.md change. The PWA and the APK are unchanged: the resources are Windows only.
|
||||
|
||||
## Evidence
|
||||
|
||||
- **The shipped file is valid and agrees with Atrium's own parser.** Fundamentum `origin/main` (fbafd7a) was
|
||||
exported with `git archive` to `D:\build\rosea\atrium-check`. Nothing in Fundamentum was touched. A throwaway
|
||||
crate there ran `atrium_registry::parse_manifest` over Rosea's file and the 27 fixtures:
|
||||
- the shipped file: `ok`;
|
||||
- every fixture: refused with the same `field.reason` that its name and Rosea's test expect (28 of 28 agree).
|
||||
- **The test is honest.** Drill: with the `..` rule removed from `domi-app-rules.ts`, exactly
|
||||
`icon.path_dotdot.toml` failed (33 passed, 1 failed). The file was restored by copy, and `git status` was checked.
|
||||
- **Placement:** see *Installer* below.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The rules are a second copy of the parser's.** A change in Atrium's parser would not fail Rosea's test.
|
||||
*Accepted, with a guard:* the agreement was measured against the real parser, and every fixture is named by the
|
||||
parser's reason code. The contract now offers `atrium-registry` at the tag `atrium-v0.1.0` as a dev dependency.
|
||||
That would be a Rust test reaching the private repository from a public one, so it is not taken while Mark's
|
||||
ruling holds.
|
||||
2. **The TOML reader is narrower than TOML.** A valid file using, for example, a quoted key would be
|
||||
`not_toml` here and accepted by the parser. *Accepted:* it only ever reads Rosea's own file and these fixtures,
|
||||
which are within its subset. Being stricter is the safe direction.
|
||||
3. **`domi-app.toml` must not add a place for the name** (CLAUDE.md header). *Fixed by design:* the file is built
|
||||
from the constants and never committed, so a rename changes no extra file.
|
||||
4. **The version must track Fabrica's bump.** It is read from `apps/rosea/package.json` at build time, which is one
|
||||
of the four files `check-version.mjs` names. No fifth version file was added.
|
||||
5. **A value could break out of its string.** *Fixed:* quotes, backslashes and control characters are escaped.
|
||||
A test plants a label carrying a line break and `free = false`, and gets `label control_char` with `free` still
|
||||
`true`.
|
||||
6. **The accent is the dark-theme `--rose`, `#e8899b`, not the light `#b4485e`.** *Kept:* contract v0.1 §2.4 gives
|
||||
Rosea this colour, and Atrium's window is dark.
|
||||
7. **The catalogue calls her `Rosea`, but the product is always *Rosea Domi* in public** (CLAUDE.md, header).
|
||||
The manifest says `Rosea Domi`, and an accepted manifest's name wins in the grid. *For the Atrium session:* the
|
||||
catalogue's name shows only when the manifest is missing.
|
||||
8. **No door means later Days ask again** (contract §8 3e). *Stated* in the handover, as 3e asks.
|
||||
9. **The icon is the placeholder.** *Unchanged* (G-T9). The real one comes through `docs/ART.md`.
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** nothing the player sees changes. Atrium's grid shows a name, a label and a colour.
|
||||
- **Privacy:** the file holds the product's name and version only. It names no person, no town and no key. Rosea
|
||||
reads nothing of Atrium's and sends nothing.
|
||||
- **Reachability:** none. No IPC was added.
|
||||
- **Offline:** unchanged.
|
||||
|
||||
## Installer
|
||||
|
||||
- `pnpm tauri:build` was run with Cargo's target and TEMP under `D:\build\rosea`. It produced
|
||||
`Rosea Domi_0.1.0_x64-setup.exe` (1.31 MiB, sha256 `63856129ea0a69f1…`).
|
||||
- The wrapper script reported exit 1, because PowerShell's `ErrorActionPreference = Stop` treats Tauri's first
|
||||
stderr `Info` line as an error.
|
||||
- The build itself finished: the installer and `rosea-shell.exe` both date from 23:09.
|
||||
- The generated `installer.nsi` writes, in `Section Install` with `SetOutPath $INSTDIR`:
|
||||
- `File "/oname=domi-app.toml"` and `File "/oname=domi-icon.png"`, beside `File "${MAINBINARYSRCPATH}"`
|
||||
(`MAINBINARYNAME` is `rosea-shell`);
|
||||
- `DisplayIcon` = `$INSTDIR\rosea-shell.exe` under the per-user key (`INSTALLMODE currentUser`). So the manifest
|
||||
sits exactly in the folder that APP_CONTRACT §3 says Atrium reads.
|
||||
- The uninstaller deletes both files.
|
||||
- `7z l` on the installer lists `rosea-shell.exe`, `domi-app.toml` (189 bytes) and `domi-icon.png`, and nothing
|
||||
else of Rosea's.
|
||||
- Extracted with `7z e` into the scratchpad, never installed:
|
||||
- the shipped `domi-app.toml` is the file above, and Atrium's parser says `ok`;
|
||||
- `domi-icon.png` starts with the PNG signature and is 4,698 bytes, under the 1 MiB cap.
|
||||
|
||||
## Gates (this branch, 2026-11-22)
|
||||
|
||||
- `pnpm test`: **642 passed**. By package: cpu-guard 13, identity 5, schema 19, content 88, storage 70,
|
||||
art-prep 80, release 8, engine 179, tauri 92 (58 before + 34 new), ui 88.
|
||||
- The first full run had `@rosea/tauri` fail under turbo, though all its files reported passing. It did not
|
||||
happen again: the package's own run and a second full run were both green. *Not explained*, and stated here.
|
||||
- `pnpm lint`: clean, after adding `.fabrica/runs/**` to the ESLint ignores. Fabrica's git-ignored run records
|
||||
carry its own `reporter.cjs`, which ESLint was reading (six errors, none in Rosea's code).
|
||||
- `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems. `pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||
- **Not rerun:** `test:e2e` and `test:offline`. Nothing the browser runs changed: the game is the same, and only
|
||||
the Windows bundle gains two files. `fabrica artifex check` was also not rerun, since `.fabrica/` is unchanged.
|
||||
|
||||
## Not verified
|
||||
|
||||
- Atrium Domi showing Rosea in its grid: that needs an installed Rosea and an installed Atrium Domi on this PC. The
|
||||
installer writes the real HKCU uninstall entry (as G-F4), so it was not run.
|
||||
Reference in New Issue
Block a user