S036: real-world checklist (checks pending)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
astar76 2026-11-19 05:18:34 -06:00
commit 1cca81ead8
2 changed files with 54 additions and 1 deletions

View file

@ -10,7 +10,7 @@ The checks only the user can do (D-003, D-013): real pkexec password prompt, iPh
docs/DECISIONS.md D-003, D-013, D-014, D-018; docs/PROGRESS.md (known bugs).
## Steps
- [ ] Write `docs/real-world-checks.md`: a short checklist per area with exact steps and what to look for; send it to the user.
- [x] Write `docs/real-world-checks.md`: a short checklist per area with exact steps and what to look for; send it to the user.
- [ ] 🧑 Elevation: user retries a root-owned operation and types the password into the polkit prompt.
- [ ] 🧑 Devices: iPhone (pair, browse, copy both ways) and Android (browse, copy both ways).
- [ ] 🧑 Native DnD and clipboard: drag a file into Discord and a browser, drop from them into Tunal, copy/paste with another app — on Wayland and X11.

53
docs/real-world-checks.md Normal file
View file

@ -0,0 +1,53 @@
# Real-world checks
Things only a person with the hardware, the other apps and a real server can check (D-003, D-009). Install first (`bash scripts/install.sh`, then the printed `sudo install` line for the polkit policy; for the elevation check `tunal` must be at `/usr/bin/tunal`). Write pass or fail and what you saw next to each line; paste failures to the session that runs S036.
Run Tunal from a terminal so its stderr is visible; the lines named below are printed there.
## 1. Elevation (polkit)
1. In a terminal: `sudo mkdir /root-test-tunal && sudo touch /root-test-tunal/a.txt`.
2. In Tunal open `/` and try to rename `root-test-tunal` (or create a folder inside it).
3. Expect: a plain "needs administrator" error with a button to retry as administrator.
4. Press it. Expect: the system polkit dialog (not a Tunal field) asks for your password. Type it there.
5. Expect: the operation works; a second one soon after does not ask again (auth_admin_keep).
6. Cancel the dialog once on purpose. Expect: a clear message, nothing changed.
7. Check `journalctl -b | grep -i tunal` and the terminal for your password: it must not appear.
8. Clean up: `sudo rm -r /root-test-tunal`.
## 2. iPhone
1. `systemctl status usbmuxd` is running. Plug the phone in, unlock it.
2. Expect: the phone shows in Places. Tap "Trust" on the phone when asked.
3. Open it. Expect: the Photos (DCIM) and other AFC folders list.
4. Copy a photo to your PC, then a small file into a folder that accepts files (for example Downloads or Books), both by paste and by drag.
5. Unplug while a copy runs. Expect: an error toast, no hang; the place disappears.
## 3. Android phone
1. Phone unlocked, USB mode "File transfer".
2. Expect: the phone shows in Places. If it says no permission, you need the usual MTP udev rule (a `uaccess` rule or the `android-udev` package).
3. Browse the internal storage, open a folder with 1000+ files (Camera): the list stays smooth.
4. Copy a file to the PC and one back. Rename it on the phone, then delete it.
5. Expect: nothing else (file manager apps, gvfs) holds the device; if "another program is using the device", stop gvfs-mtp-volume-monitor and retry.
## 4. Drag and drop and clipboard with other apps
Do it once on Wayland and once on X11 (log in to the other session type, or run `env -u WAYLAND_DISPLAY tunal` under XWayland).
1. Drag a file from Tunal onto a browser upload page and into Discord. Expect: the file is accepted (copy).
2. Drag a file from the desktop or another file manager into a Tunal folder. Expect: the folder glows, the drop menu or the copy happens.
3. Drag an image from a browser tab into Tunal. Expect: nothing breaks (a file may or may not arrive).
4. Copy a file in Tunal, paste it in another file manager. Copy there, paste in Tunal. Cut in one, paste in the other: the source must go away.
5. Copy a file in Tunal and paste into a text field of another app: the path or file name arrives.
## 5. SFTP
Only connect to hosts you own.
1. A host from `~/.ssh/config`: open the Network section, click it.
2. First connection to a host not in known_hosts: expect the host key prompt with the fingerprint. Compare it with `ssh-keygen -lf` of the server's key. "Cancel" refuses; "Connect once" does not save; "Trust and connect" writes `~/.config/tunal/known_hosts` only (never `~/.ssh`).
3. Key auth through the agent (`ssh-add -l` lists a key) and through a key file.
4. A saved connection with Password: expect the password prompt; the field is empty after sending; wrong password → asked again, three times at most.
5. Browse, copy a file both ways, rename, delete, make a folder. Pull the network cable or `sudo systemctl stop sshd` mid-listing: expect an error with "Try again", then recovery after the server is back.
6. grep the terminal output and `~/.config/tunal/` for the password: it must not appear.