Files
Rosea/.agents/reviews/feature-atrium-door.md
T

6.6 KiB

Review: feature/atrium-door (2026-11-22)

Analysis: ../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.