Dezio/PLAN.md
2026-12-01 21:56:45 -06:00

1.8 KiB

Dezio — vision

Goal

Make the deployed bot dependable on the Chromebook's slow line and safe to expose. Deliverable: the bot running on the Chromebook with the fixes below, committed and pushed to Astar Hub; the owner checks the new image commands in Discord.

Current state

The Rust port is complete and deployed (see ROADMAP.md). Problems seen on 2026-11-12: /download uploads of 7-9 MB videos take minutes and can time out three times in a row (792 s handler). The upload is about 114 KB/s, shared with voice and capped at 800 kbit by dezio-shape. Network calls have no shared policy for timeouts, retries and sizes. No security test has been done beyond earlier spot fixes. /image (D!fx) bundles 10 effects and 14 filters.

Phases

  • Phase 1 — Network: every upload sized and timed by the measured upload speed (too-big results become a website link), retries only when they can help, every outbound call with a timeout and clear errors, gateway/voice/music recovering from drops, shaping tuned with the bot.
  • Phase 2 — Image commands: /image and D!fx removed; /speechbubble and /caption (and their D! versions) work like the well-known caption bots.
  • Phase 2b — fm commands: every fm feature gets its data from ListenBrainz and MusicBrainz (plus the cover fallbacks), with no leftover Last.fm API logic; only song links still point to the Last.fm website.
  • Phase 2c — Website path: all of Dezio's website moves to /dezio/ on the Tailscale URL; the root gets a minimal landing page (to be improved later).
  • Phase 3 — Security: website and dashboard, media inputs, commands and abuse, dependency audit; fixes for what is found; tested on a local copy only.
  • Phase 4 — Deploy and owner check in Discord.

Out of scope

New features beyond the above, a faster internet line, moving off the Chromebook, attacks on the live site.