From 806d2d09249220c6c49d7572b470b28ef52228c4 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 16 Oct 2026 12:42:08 +0200 Subject: [PATCH] REPORT: RomM finds its games, Ghost no device lock-out; box walk makes no folder for a passed value Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS --- CHANGELOG.md | 6 ++++ REPORT.md | 82 ++++++++++++++++++++++++++++----------------- scripts/box_walk.py | 9 +++-- 3 files changed, 62 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29fe70d..064b5e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2026-10-16 — box walk: a value the caller passes makes no drive folder + +- `scripts/box_walk.py` `deploy_values` takes the caller's values first, so a passed `HDD_PATH` no longer gets + `DRIVE/` created beside it (two empty folders appeared on demo-hp 9201 during the RomM test; removed). REPORT + overwritten with the RomM / Ghost task. + ## 2026-10-16 — RomM finds its games (R-1089); Ghost no longer locks a household out on a new device (R-1090) - **RomM: measured first** on demo-hp 9201 (felhom.eu `audits/romm-ghost-2026-10-16/A1/`): a file at the drive's diff --git a/REPORT.md b/REPORT.md index 93f98b2..9ca9672 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,38 +1,60 @@ -# REPORT — operator decisions D11 and D12 applied (2026-10-16) +# REPORT — RomM finds its games · Ghost does not lock the household out (2026-10-16) -The night's app-guide report is in git history (`ec864b5`, updated `3b8f0de`) and in felhom.eu -`REPORT-app-guides-2026-10-15.md`. +The task also had a hub part (the floor refuses withdrawn controller builds, hub v0.155.0); that report is felhom.eu +`REPORT-romm-ghost-tags-2026-10-16.md`. Design read: felhom.eu `architecture/09-update-architecture.md` (decision 4 — +template corrections reach installed apps), `07-backup-architecture.md` (RomM's optional legs), `02-controller-module-map.md` +(app e-mail, `smtp_mapping`). Evidence: felhom.eu `documentation/audits/romm-ghost-2026-10-16/`. -## What changed +## 1. RomM (R-1089) -- **D11 (R-1086) — „stop advising the change".** qBittorrent's second first step told the household to set their - own password. The box's media wiring logs in to qBittorrent and Transmission with the generated password, so after a - change Sonarr and Radarr stop getting their downloads handed over, and a safe drive removal cannot pause the torrents. - - qBittorrent first step 2 now: keep the generated password, because the box links the downloader with Sonarr and - Radarr with it (Hungarian and English). - - qBittorrent and Transmission password field descriptions: „change it in the app afterwards" removed; they now say - the box uses it for the link. -- **D12 (R-1091 (1), (2)) — „reword".** - - Cal.com use case: „Calendar sync (Google Calendar, Outlook)" → „Calendar sync with Apple Calendar or a CalDAV - calendar". The compose sets no Google or Outlook keys; Apple Calendar and CalDav are what the app offers here. - - BentoPDF tagline: „your files never leave your own server" → „your files stay on your own device". Use case: „on - your own server" → „in your browser - the file goes neither to the box nor to an outside service". Matches the - guide's own FAQ, written from source at v2.8.6. -- All four apps re-admitted to the copy freeze with the decision as the reason. No guide text changed, so no - `checked_version` moved and no label check was needed. +- **Measured first (A1, demo-hp 9201):** a dummy file at the drive's `roms/gba/` — where the first steps said — gave + „No platforms found”, 0 games. The same file at `roms/roms/gba/` was found. RomM 5.3.1 reads `library/roms//`; + the drive's `roms/` was mounted as `library/` itself. +- **Changed:** `${USERDATA_PATH}/roms:/romm/library/roms`, and a second drive folder `roms-bios` → `library/bios` for + firmware (operator ruling today: it stays on the drive and in the backup, as it was inside `roms/`). `backup` and + `data_paths` gain `roms-bios`. First steps: the „change the password in Settings” step dropped, the scan step names + the profile menu's „Scan”, one BIOS step added. The compose header's stale `admin / admin` replaced. +- **Scenario A (fresh install, new template):** the file at `roms/gba/` is found as a gba game. **Pass.** +- **Scenario B (install made with the OLD template, then the correction + a restart):** the file placed per the old + steps is now found; nothing on the drive moved (same files, same bytes); the data tab lists `roms` and `roms-bios`, + both „a backup is made”. **Pass.** A game uploaded through RomM under the OLD mapping (it lands in `roms/roms//`) + shows as missing in its platform and again under a fake platform „roms” — see §3. +- **BIOS:** a dummy file at `roms-bios/psx/` is read as psx firmware (`scanned_firmware 1`). +- **Who runs RomM (hub `/apps/romm`, read only):** demo-felhom (the N100) and demo-hp. No customer box. -## Did it work +## 2. Ghost (R-1090) -- `catalog_gates.py --fast`: all OK. All 12 test files: rc 0. -- Full run: all OK except `volume-persistence`, which refused to start because DooPlex is not a scratch host (no - container started). Not needed: no volume or image changed. -- Not checked on a box: the copy reaches demo-hp with the next catalog sync (15-minute cycle). Copy only; no behaviour - changed. +- **Measured first (C1):** Ghost 6.67.0 skips the e-mailed code only on a user's very first sign-in + (`api/endpoints/session.js:27`). The next new device got **500 „Failed to send email”**: locked out. +- **Changed:** compose `security__staffDeviceVerification=${GHOST_STAFF_DEVICE_VERIFICATION:-false}` plus the mail + settings (empty unless injected); a new `smtp_mapping` (plaintext shim listener, like cal.com) that turns the mail AND + the check on with app e-mail. One FAQ entry (55 labels checked, 0 missing; `checked_version` unchanged). +- **Scenario E, app e-mail off:** a new device signs in with the password alone (201). **Pass.** +- **Scenario E, app e-mail on:** a new device gets 403 `2FA_NEW_DEVICE_DETECTED`; the shim relayed the mail (hub 200); + it arrived in the catch-all mailbox; the code from it was accepted (200) and the device was signed in. **Pass.** -## Not changed, on purpose +## 3. Readings and decisions -- Other apps' password fields still say „change it in the app afterwards" (grafana, nzbget, kimai, sabnzbd, - paperless-ngx, nextcloud). The box does not log in to those with the install password. grafana and nzbget have their - own fault (the field is ignored or re-applied); that stays in R-1091 (9). +1. The RomM already on 9201 was broken (its Redis files damaged since the 2026-09-24 disk-full; the box stopped it at + every start). **Operator ruling:** remove it through the dashboard, keep the drive folder, test on a fresh install. +2. The BIOS folder: **operator ruling** (new drive folder, not RomM's internal storage). +3. No guide FAQ line for RomM uploads made under the old mapping — the task asked for one if a rescan is needed. Not + followed because a rescan does not fix it (the files must move up one folder), and no customer box runs RomM; the one + box that may hold such files (the N100) is in STATUS for the operator instead. +4. `pytest` is not installed here; the 12 test files were run directly (each has its own runner). -Teardown: provisioned nothing. +## 4. Also changed + +- `scripts/box_walk.py`: a deploy value the caller passes (e.g. `HDD_PATH`) no longer makes a drive folder first. Today + it made two empty folders on 9201 (removed). Small; fixed, not filed. Checked both ways with stand-in calls. + +## 5. Did it work + +Catalog gates (`--fast`) and all 12 test files green before each push. `volume-persistence` (full run) refused to start +on DooPlex (not a scratch host) and was not run; the mount change was proven on the box instead (Scenarios A and B). +Catalog commits: `fb18471` (RomM + Ghost), this one (report + walk fix). + +Teardown on 9201: RomM and Ghost removed (Ghost with its data; RomM keeping the drive folder, which is as found — my test +files deleted by name). App e-mail back to OFF, as found. Left on purpose: two `kept/romm//` folders, the product's +own „start fresh” result (8 KB cover cache). `docker ps` before/after in the evidence: same containers; the only change is +the controller image `0.318.0` → `0.319.0-rc.1`, made by another session during the test. diff --git a/scripts/box_walk.py b/scripts/box_walk.py index 3e6a272..bada603 100644 --- a/scripts/box_walk.py +++ b/scripts/box_walk.py @@ -267,7 +267,7 @@ GENERATED = {} DEPLOYED_THIS_RUN = set() -def deploy_values(name, sub): +def deploy_values(name, sub, given=None): """Fill EVERY required deploy field the way the wizard would, by asking the box what this app asks for — `GET /api/stacks//deploy-fields` — instead of assuming DOMAIN+SUBDOMAIN. @@ -282,7 +282,8 @@ def deploy_values(name, sub): code, d = ctl("GET", f"/api/stacks/{name}/deploy-fields") fields = (((d.get("data") or {}).get("metadata") or {}).get("deploy_fields")) or [] values = {"DOMAIN": DOMAIN, "SUBDOMAIN": sub} - made = [] + values.update(given or {}) # a caller's own value wins, and no drive folder is made for it (2026-10-16: a passed + made = [] # HDD_PATH still got DRIVE/ created, an empty folder nobody asked for) for f in fields: ev, ty = f.get("env_var"), f.get("type") if ev in values: @@ -319,9 +320,7 @@ def deploy(name, sub, extra_values=None): if st.get("deployed"): say(f" [1] {name} already deployed — reusing") return True - values = deploy_values(name, sub) - if extra_values: - values.update(extra_values) + values = deploy_values(name, sub, extra_values) body = {"values": values} if os.environ.get("KEPT"): # decision 36: the household's answer when the drive holds old data ("fresh" moves it aside, deletes nothing) body["kept_data"] = os.environ["KEPT"]