From 96d154cce79c02ac5e28411070601a5fe8bdf5dc Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 26 Nov 2026 13:18:00 -0600 Subject: [PATCH] S046: packages, results, progress Co-Authored-By: Claude Sonnet 5.5 --- Plans/INDEX.md | 2 +- docs/HANDOFF.md | 34 +++++++++++++---------------- docs/PROGRESS.md | 5 +++++ docs/tests/S046-fixes-0.1.1.md | 39 +++++++++++++++++++--------------- packaging/arch/.SRCINFO | 2 +- packaging/arch/PKGBUILD | 2 +- 6 files changed, 45 insertions(+), 39 deletions(-) diff --git a/Plans/INDEX.md b/Plans/INDEX.md index 029f97b..0060088 100644 --- a/Plans/INDEX.md +++ b/Plans/INDEX.md @@ -66,7 +66,7 @@ Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H ## 10 Distribution - [x] [S045](10%20Distribution/S045-installer-arch.md) installer.sh and Arch package -- [ ] [S046](10%20Distribution/S046-fixes-0.1.1.md) 0.1.1: names from the server, raise on arrival, copy in fields +- [x] [S046](10%20Distribution/S046-fixes-0.1.1.md) 0.1.1: names from the server, raise on arrival, copy in fields - [ ] [S047](10%20Distribution/S047-close-to-tray-wayland.md) Close to tray that works on Wayland ## Later (after version 1; not run by /orchestrate) diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index ab5f79b..d400d31 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -1,29 +1,25 @@ -# Handoff (2026-11-26, overnight run done) +# Handoff (2026-11-26, after 0.1.0 and the 0.1.1 fixes) -**Goal**: version 1 of Medlar, a tested AppImage and tar.gz, published on Astar Hub only after the user's yes (S039). +**Goal**: Medlar 0.1.1 with the user's fixes, installed on this PC through pacman, then a bug hunt. Releases on Astar Hub only after the user's yes. -**Phase**: version 1 done; 0.1.0 released on Astar Hub (2026-11-26, user's yes), three files with matching sizes, notes set. Next: distro packages and installer.sh (user asked). +**Phase**: version 1 done; 0.1.0 released (AppImage, tar.gz, Arch package, SHA256SUMS). Category 10 Distribution in progress. Work happens on branch `claude/orchestrate-019859` (worktree `.claude/worktrees/orchestrate-019859`); `main` is fast-forwarded after each finished category or release (D-014/D-052). -**Done this run** (branch `claude/orchestrate-019859`, pushed; worktree `.claude/worktrees/orchestrate-019859`) -- S025 video (yt-dlp), S027 rules/clipboard/drop, S033 tray/notify/autostart, S034 motion pass. -- S041, S043, S037 tests; S044 fix plan: every HIGH row in `docs/tests` passes; video page wired into the Add dialog and the manager. -- S039 up to checksums: `dist/Medlar-0.1.0-Linux-x86_64.tar.gz`, `dist/Medlar-0.1.0-x86_64.AppImage`, `dist/SHA256SUMS-0.1.0` (git-ignored; a copy is in `~/Projects/Medlar/dist/`). Both smoke-tested hidden (download from testserver, hash right, idle 0 % CPU). `README.md`, `docs/releases/0.1.0.md`, `docs/tests/S039-package-release.md`. -- `main` was fast-forwarded after categories 06, 07, 08; not after 09 (S039 not finished). +**Done** +- S045: `installer.sh`, `packaging/arch/PKGBUILD` (`medlar-bin`), `tools/package.sh` builds the Arch package. +- S046 (0.1.1, check its INDEX line): sender names like `output.bin` give way to the server's name; arrivals raise the window (Focus + RequestUserAttention); Ctrl+C/Ctrl+A go to focused text fields; speed number smoothed and held ~1 s; Appearance setting "Progress bar: One bar / One per part"; snail mode capped at 8 kB/s (old 32 KiB default migrated) with a drawn snail button bottom right. Builds in `dist/` (git-ignored). **Next three** -1. User decides the glibc question (below) and says yes or no to 0.1.0. -2. On yes: copy the three files to `releases/v0.1.0/`, `ssh root@192.168.1.71 'hub-release notes Medlar v0.1.0' < docs/releases/0.1.0.md`, check the page. -3. `docs/STATUS.md`, PROGRESS, tick S039 and INDEX, commit, fast-forward `main` (D-014/D-052). +1. S047 (`Plans/10 Distribution/S047-close-to-tray-wayland.md`, Opus): close to tray on Wayland via eframe `run_and_return` and a session owned by `main`. +2. Rebuild 0.1.1 packages after S047; give the user `sudo pacman -U ~/Projects/Medlar/dist/Medlar-0.1.1-arch-x86_64.pkg.tar.zst` (sudo needs their password; never type it); tell them to quit the running AppImage first. Ask yes/no for publishing 0.1.1 (version, contents, known bugs). +3. Bug hunt: write a plan (S048) that walks every screen and flow the user uses (Nacre hand-off, settings, modes, snail, tray) and fixes what it finds. **Known bugs and gaps** -- Binary needs **glibc 2.44** (built on Arch): no older distros. An older build host needs a distro rootfs download, which D-011 forbids without the user's yes. -- Not run: hidden UI journeys (engine-tested only), many MED screen and motion checks (S022, S034, parts of S027/S033), real yt-dlp through the manager, AppImage via FUSE and portable `$APPIMAGE`, older distros. -- yt-dlp gets no cookies and no global speed limit; a playlist task is named after its last file. -- Soak memory 50 → 63 MB over 52 restarts (possible slow leak, not chased). -- Flaky under load: parts benchmark, auth proxy names. Tests need an absolute `TMPDIR`. +- Binary needs glibc 2.44; no .deb/.rpm (user chose Arch + installer only). +- Not run: many MED screen and motion checks, real yt-dlp through the manager, `pacman -U`, real sudo `--system` install. +- yt-dlp gets no cookies or global limit; playlist task named after its last file; soak memory 50 → 63 MB over 52 restarts. -**Commands**: `nice cargo test -j 2` (absolute TMPDIR), `nice cargo build --release -j 2` (never both), `tools/hidden.sh`, `tools/package.sh`. +**Commands**: `nice cargo test -j 2` (absolute TMPDIR), `nice cargo build --release -j 2` (never both), `tools/hidden.sh`, `tools/package.sh` (`ARCH_ONLY=1` for the package only). -**Decisions**: S044 added by the orchestrator as the gate fix plan. yt-dlp and ffmpeg are not bundled (README says so). +**Decisions**: the user's Medlar runs on 17616 from the 0.1.0 AppImage: tests use a spare port and throwaway home. The browser (Nacre) sends `filename` at click time, so it is only a hint. -**Open questions**: publish 0.1.0 with the glibc 2.44 limit, or build on an older host first? +**Open questions**: none. diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index 6560257..3aa3851 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -270,3 +270,8 @@ Seen: boxes were ticked together after the tests, against rule 3. ## S045 — installer.sh and Arch package - `installer.sh` (user/system/DESTDIR, uninstall/purge, glibc and checksum checks); `packaging/arch/PKGBUILD` + `.SRCINFO`; `tools/package.sh` adds `dist/Medlar-0.1.0-arch-x86_64.pkg.tar.zst` (`ARCH_ONLY=1` keeps other bytes). - Tested in throwaway HOME/DESTDIR and makepkg offline. Not done: real sudo/pacman -U, shellcheck/namcap (absent), `--url`, releases/. + +## S046 — Fixes 0.1.1 +- Server name beats placeholder (`output.bin`), window raised on arrival, Ctrl+C/A in fields, readable speed (2 s mean, 1 s hold), setting "One bar / One per part", snail cap 8 kB/s (migrated) and a snail button. +- Version 0.1.1; `dist/` has tar.gz, AppImage, Arch package, SHA256SUMS-0.1.1; notes in `docs/releases/0.1.1.md`. Nothing in releases/. +- Suite passed except one mirror timing flake under load. Not done: tray tooltip smoothing, live Wayland raise, snail covers pause icon at 480x360. diff --git a/docs/tests/S046-fixes-0.1.1.md b/docs/tests/S046-fixes-0.1.1.md index 51547bd..82f2107 100644 --- a/docs/tests/S046-fixes-0.1.1.md +++ b/docs/tests/S046-fixes-0.1.1.md @@ -11,23 +11,23 @@ ## Checks | # | Risk | Do this | Expect | How | Result | |---|---|---|---|---|---| -| 1 | HIGH | Engine: hint `output.bin`, server sends Content-Disposition `game.zip` | file is `game.zip` | integration `a_placeholder_name_gives_way_to_the_servers` | RESULT1 | -| 2 | HIGH | Same, hint `mine.7z` | file stays `mine.7z` | integration (same test) | RESULT1 | -| 3 | MED | Hint `download`, redirect to `other.iso` | file is `other.iso` | integration (same test) | RESULT1 | -| 4 | MED | `prefer` with placeholders and real names | only a placeholder gives way, never to another placeholder | unit `hints_give_way` | RESULT1 | -| 5 | MED | Hidden run: POST `{url, filename:"output.bin"}` to the connector on a spare port | Add window shows the name `game.zip`-style real name, window is up | by hand (hidden.sh) | RESULT2 | -| 6 | MED | Raise on arrival | commands Visible, Minimized(false), Focus, attention | unit `raising_shows_focuses_and_asks_for_attention` | RESULT1 | -| 7 | HIGH | Focused field, Ctrl+C and Ctrl+A | app shortcuts do not fire | unit `a_focused_field_keeps_copy_and_select_all` | RESULT1 | -| 8 | MED | Noisy speed fed for 10 s | at most one change per hold; jumps pass at once | unit `a_noisy_speed_changes_at_most_once_per_hold` | RESULT1 | -| 9 | LOW | Idle (speed 0) | no repaint requested | unit (odometer) | RESULT1 | -| 10 | MED | Settings file without `bar` | loads with Parts | unit settings tests | RESULT1 | -| 11 | MED | Settings row "bar" | Look page lists it, texts exist, key is real | integration `every_row_has_its_texts_and_real_keys` | RESULT1 | -| 12 | LOW | Shots `main-onebar`, light and dark | one bar per row | screen | RESULT3 | -| 13 | HIGH | Stored snail 32768 / user value 5000 | 8000 / 5000 | unit `snail_moves_to_8_kb_unless_changed` | RESULT1 | -| 14 | HIGH | Snail toggled during a download against testserver | speed held at cap, no connection dropped | integration `modes_change_live_without_reconnecting` | RESULT1 | -| 15 | MED | Snail button off / on | off asks no frames; on asks a slow loop | unit `off_asks_for_no_frames_and_on_asks_for_a_slow_loop` | RESULT1 | -| 16 | LOW | Shots `main-snail`, light/dark, 480x360 and 1080x720 | button bottom right, on/off look | screen | RESULT3 | -| 17 | MED | Hidden run idle with the new build | CPU near 0 % | by hand | RESULT2 | +| 1 | HIGH | Engine: hint `output.bin`, server sends Content-Disposition `game.zip` | file is `game.zip` | integration `a_placeholder_name_gives_way_to_the_servers` | pass (full suite) | +| 2 | HIGH | Same, hint `mine.7z` | file stays `mine.7z` | integration (same test) | pass (full suite) | +| 3 | MED | Hint `download`, redirect to `other.iso` | file is `other.iso` | integration (same test) | pass (full suite) | +| 4 | MED | `prefer` with placeholders and real names | only a placeholder gives way, never to another placeholder | unit `hints_give_way` | pass (full suite) | +| 5 | MED | Hidden run: POST `{url, filename:"output.bin"}` to the connector on a spare port | Add window shows the name `game.zip`-style real name, window is up | by hand (hidden.sh) | pass: hidden, port 17999, Add window shows game.zip over output.bin | +| 6 | MED | Raise on arrival | commands Visible, Minimized(false), Focus, attention | unit `raising_shows_focuses_and_asks_for_attention` | pass (full suite) | +| 7 | HIGH | Focused field, Ctrl+C and Ctrl+A | app shortcuts do not fire | unit `a_focused_field_keeps_copy_and_select_all` | pass (full suite) | +| 8 | MED | Noisy speed fed for 10 s | at most one change per hold; jumps pass at once | unit `a_noisy_speed_changes_at_most_once_per_hold` | pass (full suite) | +| 9 | LOW | Idle (speed 0) | no repaint requested | unit (odometer) | pass (full suite) | +| 10 | MED | Settings file without `bar` | loads with Parts | unit settings tests | pass (full suite) | +| 11 | MED | Settings row "bar" | Look page lists it, texts exist, key is real | integration `every_row_has_its_texts_and_real_keys` | pass (full suite) | +| 12 | LOW | Shots `main-onebar`, light and dark | one bar per row | screen | pass (contact sheet seen) | +| 13 | HIGH | Stored snail 32768 / user value 5000 | 8000 / 5000 | unit `snail_moves_to_8_kb_unless_changed` | pass (full suite) | +| 14 | HIGH | Snail toggled during a download against testserver | speed held at cap, no connection dropped | integration `modes_change_live_without_reconnecting` | pass (full suite) | +| 15 | MED | Snail button off / on | off asks no frames; on asks a slow loop | unit `off_asks_for_no_frames_and_on_asks_for_a_slow_loop` | pass (full suite) | +| 16 | LOW | Shots `main-snail`, light/dark, 480x360 and 1080x720 | button bottom right, on/off look | screen | pass (contact sheet seen) | +| 17 | MED | Hidden run idle with the new build | CPU near 0 % | by hand | not run: CPU 11 % measured with the Add dialog open (software render); empty idle list not measured | ## Needs Testserver on loopback; throwaway home and spare port 17999 for hidden runs. The user's running Medlar (17616) is never touched. @@ -37,3 +37,8 @@ Testserver on loopback; throwaway home and spare port 17999 for hidden runs. The - Real Wayland focus on arrival cannot be proven in a nested session. - At 480x360 the snail button covers the pause icon of the last row. - Tray tooltip speed is not smoothed. Snail crawl motion not watched live. + +## Results +Full workspace suite (`--no-fail-fast`): all pass except `a_fast_mirror_brings_more_than_a_slow_one` (mirror.rs) once under load (fast 147457, slow 49153); alone it passed twice. Timing flake, not touched by S046; not fixed. +Fix found by the suite: the Settings row "bar" listed non-setting keys (fixed). Smoke note: a server name like `data-1.bin` counts as a placeholder, so the hint stays; the smoke used `/data/1/3k/game.zip`. +Packages: tar.gz 13989774 B, AppImage 13740536 B, Arch pkg 13637062 B, SHA256SUMS-0.1.1 297 B (dist/). Packaged apps not launched by hand beyond the release binary smoke. diff --git a/packaging/arch/.SRCINFO b/packaging/arch/.SRCINFO index c1025b7..ec55860 100644 --- a/packaging/arch/.SRCINFO +++ b/packaging/arch/.SRCINFO @@ -24,6 +24,6 @@ pkgbase = medlar-bin options = !strip options = !debug source = Medlar-0.1.1-Linux-x86_64.tar.gz::https://archlinux.tail7c4f5e.ts.net/git/astar76/Medlar/releases/download/v0.1.1/Medlar-0.1.1-Linux-x86_64.tar.gz - sha256sums = 066b6bc684810d478f2cd6f64acae42b91dec1e9ba3a56d570519f981798ae2f + sha256sums = e89db7fc43b55ec4dc5c919914ffb95702176561eb83a4037ccab21499a2d484 pkgname = medlar-bin diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index da68e53..09407f4 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -15,7 +15,7 @@ conflicts=('medlar') options=('!strip' '!debug') # MEDLAR_TARBALL points at a local copy (offline build); default is the release download. source=("Medlar-$pkgver-Linux-x86_64.tar.gz::${MEDLAR_TARBALL:-$url/releases/download/v$pkgver/Medlar-$pkgver-Linux-x86_64.tar.gz}") -sha256sums=('066b6bc684810d478f2cd6f64acae42b91dec1e9ba3a56d570519f981798ae2f') +sha256sums=('e89db7fc43b55ec4dc5c919914ffb95702176561eb83a4037ccab21499a2d484') package() { cd "$srcdir/medlar-$pkgver"