6.6 KiB
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 fromPRODUCT_NAME,PRODUCT_SHORT_NAMEand the game's version, and writessrc-tauri/atrium/domi-app.toml. The file is git-ignored.apps/rosea-tauri/package.json:devandbuild:desktoprun it before Tauri.apps/rosea-tauri/src-tauri/tauri.windows.conf.json:bundle.resourcesplacesdomi-app.tomlanddomi-icon.pngnext to the.exe.apps/rosea-tauri/test/domi-app-rules.ts,domi-app.test.tsand 27 fixtures intest/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 withgit archivetoD:\build\rosea\atrium-check. Nothing in Fundamentum was touched. A throwaway crate there ranatrium_registry::parse_manifestover Rosea's file and the 27 fixtures:- the shipped file:
ok; - every fixture: refused with the same
field.reasonthat its name and Rosea's test expect (28 of 28 agree).
- the shipped file:
- The test is honest. Drill: with the
..rule removed fromdomi-app-rules.ts, exactlyicon.path_dotdot.tomlfailed (33 passed, 1 failed). The file was restored by copy, andgit statuswas checked. - Placement: see Installer below.
Findings
- 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-registryat the tagatrium-v0.1.0as 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. - The TOML reader is narrower than TOML. A valid file using, for example, a quoted key would be
not_tomlhere 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. domi-app.tomlmust 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.- The version must track Fabrica's bump. It is read from
apps/rosea/package.jsonat build time, which is one of the four filescheck-version.mjsnames. No fifth version file was added. - 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 getslabel control_charwithfreestilltrue. - 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. - The catalogue calls her
Rosea, but the product is always Rosea Domi in public (CLAUDE.md, header). The manifest saysRosea 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. - No door means later Days ask again (contract §8 3e). Stated in the handover, as 3e asks.
- 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:buildwas run with Cargo's target and TEMP underD:\build\rosea. It producedRosea Domi_0.1.0_x64-setup.exe(1.31 MiB, sha25663856129ea0a69f1…).- The wrapper script reported exit 1, because PowerShell's
ErrorActionPreference = Stoptreats Tauri's first stderrInfoline as an error. - The build itself finished: the installer and
rosea-shell.exeboth date from 23:09.
- The wrapper script reported exit 1, because PowerShell's
- The generated
installer.nsiwrites, inSection InstallwithSetOutPath $INSTDIR:File "/oname=domi-app.toml"andFile "/oname=domi-icon.png", besideFile "${MAINBINARYSRCPATH}"(MAINBINARYNAMEisrosea-shell);DisplayIcon=$INSTDIR\rosea-shell.exeunder 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 lon the installer listsrosea-shell.exe,domi-app.toml(189 bytes) anddomi-icon.png, and nothing else of Rosea's.- Extracted with
7z einto the scratchpad, never installed:- the shipped
domi-app.tomlis the file above, and Atrium's parser saysok; domi-icon.pngstarts with the PNG signature and is 4,698 bytes, under the 1 MiB cap.
- the shipped
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/taurifail 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.
- The first full run had
pnpm lint: clean, after adding.fabrica/runs/**to the ESLint ignores. Fabrica's git-ignored run records carry its ownreporter.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:e2eandtest:offline. Nothing the browser runs changed: the game is the same, and only the Windows bundle gains two files.fabrica artifex checkwas 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.