Dezio/docs/DECISIONS.md
astar76 ef26f7ff12 Covers and artist photos with fallbacks, tag IDs first
Covers come from the release in the player's own tags (Cover Art
Archive), then ListenBrainz's match, the release group, Deezer and
iTunes. Deezer and iTunes results count only when the artist and title
match. Artist photos come from Deezer, then MusicBrainz/Wikimedia.
Missing album names are looked up on Deezer. Play counts and Who Knows
match by MusicBrainz ID before names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:44:39 -06:00

4.6 KiB

Decisions

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

  • D-001 — 2026-11-12 — Uploads are sized by the measured upload speed: a file must upload in about 60-90 s, and stay under Discord's limit for that server; anything bigger is sent as a website link (hosted.rs). — Upload time, not Discord's size limit, is what fails on the ~114 KB/s line. — 01 Network.
  • D-002 — 2026-11-12 — Network work covers Discord uploads, all outbound HTTP and child-process fetches, gateway/voice/music recovery and the upload shaping script, plus anything else found on the way. — Owner asked for all of it. — 01 Network.
  • D-003 — 2026-11-12 — /image and D!fx are removed with every effect and filter. Only /speechbubble and /caption remain (plus D! versions), working like the well-known caption bots (Assyst-style: caption = white band with text above the picture; speech bubble = bubble shape cut into the top). /convert and /petpet stay. — Owner request. — 02 Image commands.
  • D-004 — 2026-11-12 — Security test scope: website and dashboard, media inputs, commands and abuse, dependency audit (installing cargo-audit/cargo-deny is allowed). Attack traffic only against a local copy (127.0.0.1), never the live site. — Owner choice. — 03 Security.
  • D-005 — 2026-11-12 — Plan sessions may use the Chromebook over ssh: read logs, measure, deploy the binary, restart dezio-bot and reinstall dezio-shape, after telling the orchestrator and backing up. — Owner choice. — all.
  • D-006 — 2026-11-12 — The owner personally checks only /speechbubble and /caption in Discord. Everything else ends on local tests and server logs. One plan session at a time. — Owner choice. — all.
  • D-007 — 2026-11-12 — /speechbubble follows the owner's reference screenshot: options source-attachment (attachment), source-link (link) and solid (boolean, "make the speech bubble solid"); with no source it uses the replied/latest chat picture like the other media commands. Default output cuts a transparent bubble shape out of the top of the picture (wide ellipse across the top edge with a tail pointing down, toward the right third), so the result needs an alpha-capable format (PNG, or GIF with transparency for animated input); solid fills the same shape white instead. /caption takes the same two source options plus text. — Owner reference image, 2026-11-12. — 02 Image commands.
  • D-008 — 2026-11-12 — Adds to D-007 (owner reference assets/reference/speechbubble-bsm.gif, BSM-bot style): the bubble is a wide white ellipse with a black outline hanging off the edge, its tail pointing into the picture, the picture's edge clipped to the bubble's curve. Options on /speechbubble: position top|bottom (bubble hangs off that edge, tail points inward), flip (mirrors the tail to the other side), solid (white fill; without it the bubble is cut out transparent where the format allows). Inputs and outputs cover many media types: PNG, JPG, WebP (still and animated), GIF and video (MP4/WebM/MOV); animated input stays animated (every frame gets the bubble), video comes back as GIF or video in the same format. /caption takes the same input types. Both are also D!speechbubble / D!caption. — Owner reference, 2026-11-12. — 02 Image commands.
  • D-009 — 2026-11-12 — The Assyst-style output described in D-007 (transparent cutout, no outline, tail toward the right) is saved as assets/reference/speechbubble-assyst.gif, next to the BSM-style speechbubble-bsm.gif (D-008). Compare the drawn bubbles against both. — Owner request. — 02 Image commands.
  • D-010 — 2026-12-01 — The fm commands read ListenBrainz (free, no key) instead of the Last.fm API, which needs Pro for everything but scrobbling from 2026-12-01. Same commands and cards; links are stored separately in data/listenbrainz.json (data/lastfm.json is kept, untouched); song links still go to the Last.fm website (free, and the Listen button reads them). Lyrics song search uses Deezer (popularity-ranked, no key). The Last.fm version is the git tag lastfm-api-backup. — Owner request. — all fm commands.
  • D-011 — 2026-12-01 — Covers come from a chain (src/commands/lastfm/covers.rs): the release ID in the player's own tags (Cover Art Archive) → ListenBrainz's match → the release group → Deezer → iTunes; Deezer/iTunes results count only when artist and title match. Artist photos: Deezer → MusicBrainz/Wikimedia. Play counts match by MusicBrainz ID before names. — MusicBrainz art alone left many covers blank; owner asked for the most reliable sources with fallbacks. — fm commands.