Tunal/docs/DECISIONS.md
astar76 811a22d4f0 plans: Tunal phases 1-13 (S001-S037)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 09:18:19 -06:00

4.8 KiB

Decisions

D-NNN — date — decision — why — plans affected. Never rewrite an entry; supersede it with a new one.

D-001 — 2026-11-18 — Brief decisions adopted as binding: name Tunal / binary tunal; Slint 1.19 with own components on Theme + Motion globals; zbus blocking portal + material-colors 0.5; Material Symbols Rounded by codepoint; MusicBrainz + Cover Art Archive (1 req/s, User-Agent); lofty; russh + russh-sftp preferred — PROMPT.md §Decisions — all plans. D-002 — 2026-11-18 — Workflow: at most 2 parallel sessions, look-ahead 3, Sonnet medium by default and Opus high for theming/motion, elevation, devices and SFTP; git local only (no remote, no push) — user's answers at setup — all plans. D-003 — 2026-11-18 — 🧑 checkpoints: visual review at end of phases 2, 3, 6; real-password sudo test (phase 5); real devices (phase 9); every C library before it is added — user's answers at setup — phases 2, 3, 5, 6, 8, 9. D-004 — 2026-11-18 — Video frame thumbnails: run the installed ffmpeg/ffprobe CLI as a subprocess (no linking); missing ffmpeg → plain icon — user, plan-generate — S017, S018. D-005 — 2026-11-18 — Audio: symphonia decoding (pure Rust) + cpal output (links alsa-lib, approved) — user — S022, S023. D-006 — 2026-11-18 — iOS: idevice crate over the system usbmuxd socket (approved); usbmuxd missing → iOS hidden — user — S024. D-007 — 2026-11-18 — Android: own pure-Rust MTP/PTP client on nusb (no libmtp) — user — S025, S026. D-008 — 2026-11-18 — Extras in scope: Open / Open with (portal OpenURI, .desktop apps), details + icon grid views, type-to-filter (no recursive search), desktop entry + install script — user — S008, S009, S012, S037. D-009 — 2026-11-18 — Phases restructured: 11 Native drag and drop, 12 Testing, 13 Packaging added; 🧑 checks of D-003 all move to phase 12 (S035 visual, S036 password/devices/apps/server) — user ("testing after there's a solid app") — all plans; supersedes the timing in D-003. D-010 — 2026-11-18 — Models: D-002 categories get Opus high; other design-heavy plans (location layer, ops, views, shell, DnD, tag UI, player) Opus medium; well-specified work Sonnet — plan-generate — all plans. D-011 — 2026-11-18 — Tag editor edits one or many files (mixed values shown as Keep); lookup applies per release — user — S019–S021. D-012 — 2026-11-18 — Planner defaults: config in $XDG_CONFIG_HOME/tunal/*.toml; own bookmarks file seeded from XDG user dirs; shared freedesktop thumbnail cache; trash browsable as trash:///; video frame at 10% of duration by default; delete on devices/SFTP is permanent with confirm; reduced motion follows portal enable-animations with an app override; removable drives (UDisks) and recursive search are Later — plan-generate, shown to user — S002, S003, S007, S010, S013, S017, S024–S029. D-013 — 2026-11-18 — Less testing while building: feature plans (phases 1–11) add no tests and verify with build, clippy, fmt and a smoke run/screenshot; automated tests, the screenshot matrix, /unslop, /improve-animations and all 🧑 checks run in phase 12 once the app is solid — user — all plans; supersedes CLAUDE.md §3 "new pure logic gets a test" for phases 1–11. D-014 — 2026-11-18 — Drag and drop: in-app (S014) plus native in/out with other apps on Wayland (wl_data_device on Slint's own libwayland connection, our own wl_pointer/wl_keyboard for serials) and X11 (XDND via x11rb); Move/Copy/Link/Cancel menu on drop, Shift = move, Ctrl = copy, Ctrl+Shift = link; file clipboard interop in the same plans. Slint 1.19's winit backend has no native DnD, hence own code — user — S014, S030, S031, S036. D-015 — 2026-11-18 — License: GPL-3.0-or-later — user — S001. D-016 — 2026-11-18 — No extra system packages: all crates compile into the tunal binary; only libraries a desktop already has are used (libwayland/libX11 via Slint, fontconfig, alsa-lib); optional runtime tools (ffmpeg, usbmuxd, polkit agent) disable only their feature when missing, without errors — user — all plans. D-017 — 2026-11-18 — .directory: standard [Desktop Entry] Icon and Name; our view settings and Material glyph in an [X-Tunal] group; never write another app's groups — plan-generate — S015. D-018 — 2026-11-18 — Elevation via pkexec/polkit: tunal --elevated-helper over stdin/stdout pipes; the polkit agent asks for the password, Tunal never sees it; policy file in assets/polkit, installed by the install script (needs root, printed not run) — user — S016, S036, S037. D-019 — 2026-11-18 — TLS and SSH crypto on rustls + ring (no aws-lc-rs, no OpenSSL) — user — S020, S028. D-020 — 2026-11-18 — Accepted SSH host keys go to $XDG_CONFIG_HOME/tunal/known_hosts, read together with ~/.ssh/known_hosts; Tunal never writes under ~/.ssh — plan-generate — S027–S029.