S037: soak, load and hidden-run results, clipboard first-copy fix, features check

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-26 00:56:47 -06:00
commit c83330f799
9 changed files with 179 additions and 16 deletions

View file

@ -11,12 +11,12 @@ Version 1 is solid, light and complete. Was S037 and S038.
- CLAUDE.md §4, docs/CONNECTOR.md, docs/TEST-REPORT.md
## Steps
- [ ] Security review of connector, names, child processes, Metalink and stream parsers, secrets on disk and in logs; fix with one regression test each
- [ ] Short fuzz tests of the parsers: headers, Content-Disposition, HLS, DASH, Metalink, listing, patterns
- [x] Security review of connector, names, child processes, Metalink and stream parsers, secrets on disk and in logs; fix with one regression test each
- [x] Short fuzz tests of the parsers: headers, Content-Disposition, HLS, DASH, Metalink, listing, patterns
- [ ] Start time, idle CPU, memory with 10,000 tasks, frame cost with 50 active, loopback speed against curl; fix what stands out, record before and after
- [ ] Soak script with random faults, pauses, kills and limit changes: 20 minutes, once; every file checked
- [x] Soak script with random faults, pauses, kills and limit changes: 20 minutes, once; every file checked
- [ ] Journeys in one hidden run: first start to finished download; pause, restart, continue; expired link continued; queue with schedule; store of an early commit still opens
- [ ] docs/FEATURES-CHECK.md: one row per version 1 id with proof and result; Results in `docs/tests` count as proof; small gaps fixed here
- [x] docs/FEATURES-CHECK.md: one row per version 1 id with proof and result; Results in `docs/tests` count as proof; small gaps fixed here
- [ ] `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S037: …`, push
## End criteria

View file

@ -13,6 +13,13 @@ use std::sync::{Arc, Mutex};
use std::time::Duration;
use url::Url;
/// What the clipboard holds now, if it is new: not what was there at the start, not the same text again.
fn news(last: &mut Option<String>, text: String) -> Option<String> {
let new = last.as_ref().is_some_and(|l| *l != text);
*last = Some(text.clone());
new.then_some(text)
}
/// False once the clipboard could not be opened.
static WORKS: AtomicBool = AtomicBool::new(true);
@ -73,14 +80,13 @@ impl Watch {
continue;
};
WORKS.store(true, Ordering::Relaxed);
let Ok(text) = b.get_text() else { continue };
if last.is_none() {
last = Some(text);
} else if last.as_deref() != Some(&text) {
last = Some(text.clone());
if *OWN.lock().unwrap() != text && tx.send(text).is_ok() {
ctx.request_repaint();
}
// An empty clipboard has no text: that counts as "" so the first link copied is news.
let text = b.get_text().unwrap_or_default();
if let Some(text) = news(&mut last, text)
&& *OWN.lock().unwrap() != text
&& tx.send(text).is_ok()
{
ctx.request_repaint();
}
}
});
@ -106,6 +112,20 @@ impl Watch {
#[cfg(test)]
mod tests {
use super::news;
/// S037: an empty clipboard at the start (no text) must not swallow the first link copied.
#[test]
fn first_copy_after_empty_start_is_news() {
let mut last = None;
assert_eq!(news(&mut last, String::new()), None);
assert_eq!(news(&mut last, "https://a/x.zip".into()).as_deref(), Some("https://a/x.zip"));
assert_eq!(news(&mut last, "https://a/x.zip".into()), None);
let mut last = None;
assert_eq!(news(&mut last, "there at start".into()), None);
assert_eq!(news(&mut last, "https://b".into()).as_deref(), Some("https://b"));
}
use super::links;
#[test]

View file

@ -213,3 +213,30 @@ async fn loopback_speed() {
let mb = len as f64 / 1048576.0;
println!("LOOPBACK 512 MiB: curl {curl:?} ({:.0} MiB/s), medlar {medlar:?} ({:.0} MiB/s)", mb / curl.as_secs_f64(), mb / medlar.as_secs_f64());
}
/// FEATURES 2.9: B set to start after A waits while A runs and starts once A is done.
#[tokio::test(flavor = "multi_thread")]
async fn after_another_one() {
let server = TestServer::start().await;
let dir = tempfile::tempdir().unwrap();
let manager = Manager::open(config(dir.path(), LIMITS)).unwrap();
let path_a = TestServer::data_path(71, 600 << 10);
server.set_faults(&path_a, Faults { throttle_total: Some(400_000), ..Faults::default() });
let task = |path: &str| Task { url: server.url(path), folder: dir.path().join("files"), ..Task::default() };
let a = manager.send(Command::Add(Box::new(task(&path_a)))).await.unwrap();
let b = manager.send(Command::Add(Box::new(Task { after: Some(a), ..task(&TestServer::data_path(72, 100 << 10)) }))).await.unwrap();
let t = Instant::now();
loop {
let s = manager.snapshot();
let (sa, sb) = (s.get(a).unwrap().state(), s.get(b).unwrap().state());
if sa != State::Done {
assert!(!matches!(sb, State::Running | State::Done), "B {sb:?} while A {sa:?}");
} else if sb == State::Done {
break;
}
assert!(t.elapsed() < Duration::from_secs(30), "A {sa:?} B {sb:?}");
sleep(ms(10)).await;
}
let v = manager.snapshot().get(b).unwrap().clone();
assert_eq!(std::fs::read(v.task.folder.join(&v.task.name)).unwrap(), expected(72, 0, 100 << 10));
}

66
docs/FEATURES-CHECK.md Normal file
View file

@ -0,0 +1,66 @@
# Features check (version 1)
One row per version 1 id of [FEATURES.md](FEATURES.md), written by S037 on 2026-11-26. Proof is a test that ran green
in the S037 suite (`nice cargo test -j 2`), a Result in `docs/tests`, or the S037 hidden runs (`tools/hidden.sh`, release
build, local testserver). Later ids (2.4, 2.5, 3.5, 3.6, 3.7, 6.2, 6.3, 7.5, 7.6, 7.7, 8.2, 8.3 apart from single
instance) are not listed.
Result: pass · gap (works in part, severity) · KNOWN BUG (severity) · not run (why).
| Id | What | Proof | Result |
|---|---|---|---|
| 1.1 | Segmented HTTP/HTTPS, resume, crash | `core/tests/http.rs`, `manager.rs`, `store_kill.rs`; S037 soak (12 in-process restarts, every file checked) | pass |
| 1.2 | Dynamic parts | `core/tests/parts.rs`, `segment.rs` units | pass (parts benchmark flaky under load, passes alone) |
| 1.3 | Adaptive connections | `adapt.rs`, `host.rs` units; `parts.rs` 429/503 cases | pass |
| 1.4 | Caps on parts per download, host, total | `limit.rs` tests; soak with `max_conns` faults | pass |
| 1.5 | Validator check on resume | `http.rs` changed-file cases; soak `ignore_range` faults never written at an offset | pass |
| 1.6 | Retries, backoff, stall, part isolation | `http.rs`, `recover.rs`; soak cut, reset, stall, 503 faults | pass |
| 1.7 | Crash-safe state | `store_kill.rs`; soak restarts | pass |
| 1.8 | Mirrors | `core/tests/mirror.rs` | pass |
| 1.9 | FTP, FTPS, SFTP | `core/tests/ftp`, `sftp` units | pass |
| 1.10 | RTSP and MMS through ffmpeg | `stream.rs` (ffmpeg stub arguments) | pass |
| 1.11 | HLS and DASH | `core/tests/stream.rs`; S037 fuzz of HLS and DASH; DASH period cap fixed | pass |
| 1.12 | Continue from a new link | `core/tests/relink.rs`; S024 8-10 (UI) not run | pass (engine); UI by hand not run, MED |
| 1.13 | Checksums | `verify.rs` units, metalink hashes | pass |
| 1.14 | HTTP/1.1 for parts | D-018: HTTP/1.1 everywhere | pass (by decision) |
| 1.15 | Proxies | `core/tests/auth.rs` against local stubs | pass (proxy-names test flaky under load) |
| 1.16 | Logins, cookies, Secret Service | `auth.rs`, `secret.rs`, `cookie.rs`; S037 fuzz of redaction | pass |
| 1.17 | Error recovery | `recover.rs`, `error.rs`; S017 6-8 (Details error box) not run | pass (engine); UI not run, MED |
| 2.1 | Traffic modes | `settings.rs`, app `main.rs` mode tests; mode grid row test | pass |
| 2.2 | Live limits | `limit.rs`; soak changes global and per-task limits live | pass |
| 2.3 | Priority | `queues.rs` | pass |
| 2.6 | Queues | `queues.rs`; S021 1-18 pass | pass |
| 2.7 | Scheduler | `schedule.rs`, S021 | pass |
| 2.8 | When done | `power.rs`, S021; Control "When done" tab; Power page in Settings has no rows | gap LOW (S021 19 fake-power call not run) |
| 2.9 | Start after another, delayed start | S037 `whole.rs::after_another_one`; `start_at` in `queues.rs` | pass |
| 3.1 | Add dialog | app `add.rs`; S037 hidden run A (one link to finished file, hash equal) | pass |
| 3.2 | Batch, patterns | `batch.rs`, S037 fuzz of patterns; hidden run A (3 links, all equal) | pass |
| 3.3 | Drag and drop | S027 13-17 not run (needs a drag source in the hidden session) | not run, MED |
| 3.4 | Clipboard watcher | S027 1-7 pass; S037 hidden run B found and fixed the first copy being swallowed; S027 8 see its Result | KNOWN BUG MED: no Add window seen in the hidden run, cause not found |
| 3.8 | Duplicates | `duplicate.rs` units | pass |
| 3.9 | Rules | `rules.rs`, S027 1-7 | pass |
| 4.1 | Local port | `control.rs`, S023 1-17; S037 busy answer over 16 connections | pass |
| 4.2 | Browser JSON | `control.rs` with `connector_nacre.json`; S037 fuzz of requests; hidden run A | pass |
| 4.3 | Web pages refused | `control.rs`; S037 fuzz (Origin never 200); hidden run A (Origin POST 403) | pass |
| 4.4 | Add dialog or add without asking | S037 hidden runs: dialog (S024 2), zip added with toast and iso asks (S024 4) | pass |
| 4.5 | Cookies and headers used, kept secret | `auth.rs`, `redact.rs`; S037 fuzz of redaction | pass |
| 4.6 | Continue offered for matching download | `relink.rs`; S024 8-10 not run | pass (engine); UI not run, MED |
| 4.7 | `medlar:` links, single instance | S023; S037 hidden run (second instance hands over and exits, S024 12) | pass |
| 6.1 | Video sites through yt-dlp | `ytdlp.rs` stub tests, S025 1-15, 17 | KNOWN BUG MED: the video page is not wired into the Add dialog and no manager task runs yt-dlp |
| 7.1 | List, search, filters, sort | app `main.rs` (incl. 10,000 rows frame test) | pass |
| 7.2 | Details | S017 14, 17 pass; 1-13, 15, 16, 18 not run | gap MED (most checks not run) |
| 7.3 | Open, open folder, redownload, copy link | app `main.rs` actions | pass |
| 7.4 | Tags, notes, history, file gone | `store` units; S017 8 not run | gap LOW |
| 7.8 | Adopt another manager's partial file | `adopt.rs` units (aria2 and browser files) | pass |
| 8.1 | Tray, notifications, launcher | S033 1-3, 5-12, 14-16, 18 on a private dbus | pass (tray Mode click and window close not run, LOW) |
| 8.3 | Single instance | S023, S037 hidden run | pass |
| 8.4 | Portable mode, autostart, shortcuts | app `shell.rs`, `settings.rs` | pass |
| 8.5 | String catalogue | `strings.rs` test (every key used, none missing) | pass |
| 9.1 | Dynamic colour | app `widgets.rs`, shots light and dark | pass |
| 9.2 | Wavy progress | `visuals.rs` sequence | pass |
| 9.3 | Parts map | `visuals.rs` | pass |
| 9.4 | Expressive shapes | shots | pass |
| 9.5 | Speed graph and number | shots; hidden runs show the graph | pass |
| 9.6 | Completion moment | `visuals.rs`; S034 most motion checks not run | gap LOW |
| 9.7 | Every state designed | shots; Control sheet clipped at 480x360 (no scroll) | KNOWN BUG LOW |
| 9.8 | Motion levels, idle CPU | S037 hidden runs: 0.00 % CPU idle over 5 s, before and after downloads | pass |

View file

@ -246,3 +246,8 @@ Seen: boxes were ticked together after the tests, against rule 3.
- Added stub-yt-dlp tests in `ytdlp.rs`, `tests/ytdlp_real.rs` (ignored), `tests/bus.rs` (fake tray host, Notifications, launcher), scenes for rules, clipboard, notifications, details, control tabs.
- Fixed: yt-dlp region text, all-done after pause, U+2192 glyph panic, Control tab labels, unlabeled switch.
- Not run: clipboard and drop by hand, motion checks, S022/S024 2-16, hidden-session checks.
## S037 whole app
- Security fixes with tests: connector busy answer over 16 connections, DASH cap over all periods and overflow, clipboard first copy. Fuzz of all parsers (`fuzz.rs` modules), `tests/whole.rs` soak, load and loopback.
- Soak 20 min: 606 files, 0 corrupt. `docs/FEATURES-CHECK.md` written. Hidden runs A/B pass except clipboard Ask (KNOWN BUG MED).
- Not done: frame cost with 50 active; UI journeys for pause/restart, expired link, schedule; many HIGH by-hand checks in S017, S021, S024, S027. Soak RSS 50 → 63 MB (doubt).

View file

@ -3,3 +3,4 @@
- S041 details, control, connector: suite green (core, app, auth, parts, settings, shots, main, shell) after fixes. S021 1-18 and S023 1-17 pass; S017 14 and 17 pass; S022, S024 and screen or by-hand checks not run; app start in a hidden session not run (debug build opens no window). Fixed: rules OR semantics, missing S033 settings rows and strings, missing `send` icon, `mode_grid` row test. Parts and auth proxy tests failed once under load, passed on rerun.
- S041 it runs: release build ok (8m47s); `tools/hidden.sh` opens the window (first-run page, 0.00 % CPU idle). Contact sheet of `shots` (all scenes draw, 14 tests pass); `set-browser` and `add-continue` look right. No shots scene exists for the details panel, queues, week grid, countdown or handoff, so S017/S022 screen checks stay not run (fix: add scenes to `SCENES` in `crates/app/tests/shots.rs`).
- S043 video, rules, tray, screens: workspace suite green. New: 14 ytdlp stub tests + 1 ignored real yt-dlp test (S025 1-15, 17 pass), `crates/app/tests/bus.rs` on a private dbus-daemon (S033 1-3, 5-12, 14-16, 18 pass), S027 1-7 pass. Fixed: Region text of yt-dlp not matched; all-done note sent when last one was paused; rules summary used U+2192 (no glyph, panic in shots); Control tab labels cut; unlabeled switch in When done. Not run: S027 8-11, 13-17 (clipboard, drop, hidden), S034 1-6, 8, 10, 11, 14, 15, S022 and S024 2-16, tray Mode click and window close, Power page empty (no rows; hidden from the rail). Control sheet and Details panel clipped at 480x360 in still shots (scroll untested).
- S037 whole app: soak 20 min (606 files, 0 corrupt, 52 restarts); fuzz 40,000 rounds release, no panic; 10,000 tasks reopen 177 ms, 44 MB; loopback Medlar 1213 MiB/s vs curl 849; idle 0.00 % CPU. Fixed: connector drops over 16 connections (now 429 busy), DASH period cap and overflow, clipboard swallowed first copy. Hidden runs: first start to done, list of 3, Origin 403, zip auto-add, iso asks, second instance pass. Open: clipboard Ask shows nothing in the hidden run (MED), video not wired (MED), Control sheet clipped (LOW), S017/S024/S027/S021 HIGH by-hand checks not run.

View file

@ -15,9 +15,9 @@ Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken ·
| # | Risk | Do this | Expect | How | Result |
|---|---|---|---|---|---|
| 1 | HIGH | `medlar:` link and `/x.metalink` through `of_arg`; `--show`, `medlar:nothing` | Request with literal text / list; the last two give none | unit | pass (unit `incoming::tests::arguments`) |
| 2 | HIGH | Hidden run, throwaway home, POST one link to the port | Add dialog opens with the link filled in | by hand | not run: by hand check, no harness written |
| 2 | HIGH | Hidden run, throwaway home, POST one link to the port | Add dialog opens with the link filled in | by hand | pass: S037 hidden run (tools/hidden.sh, release build, testserver) |
| 3 | HIGH | Same with `add_without_asking` off and a `medlar:` link on the socket | Dialog shown, never added silently | by hand | not run: by hand check, no harness written |
| 4 | HIGH | Turn `add_without_asking` on, types `zip`, send a `.zip` and a `.iso` | zip added at once with a toast; iso opens the dialog | by hand | not run: by hand check, no harness written |
| 4 | HIGH | Turn `add_without_asking` on, types `zip`, send a `.zip` and a `.iso` | zip added at once with a toast; iso opens the dialog | by hand | pass: S037 hidden run (tools/hidden.sh, release build, testserver) |
| 5 | MED | `auto_ok` with sizes: min 10 MB, max 100 MB; sizes 5, 50, 500 MB and unknown | false, true, false, true | unit | not run: unit check, no harness written |
| 6 | MED | Send a list of 3 links in one POST | One dialog in batch mode | by hand | not run: by hand check, no harness written |
| 7 | MED | Send 3 POSTs in a row | Dialogs come one after another; the window is raised once | by hand | not run: by hand check, no harness written |
@ -25,7 +25,7 @@ Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken ·
| 9 | HIGH | Task waiting on "open source page" (expired link); send a fresh link | Check runs, the task continues, toast says so, no dialog | by hand | not run: by hand check, no harness written |
| 10 | HIGH | Same, but the fresh link leads to another file | Task stays, error toast with why | by hand | not run: by hand check, no harness written |
| 11 | MED | Settings, Browser: switch off, change port, press Send a test link | State line follows; test opens the Add dialog; log shows the entry | by hand | pass (layout only: shots `set-browser`, state line and Send a test link button visible; switch and port change not clicked) |
| 12 | HIGH | Start a second `medlar medlar:https://a.test/f` with the same home | It ends at once; the first window shows the Add dialog | by hand | not run: by hand check, no harness written |
| 12 | HIGH | Start a second `medlar medlar:https://a.test/f` with the same home | It ends at once; the first window shows the Add dialog | by hand | pass: S037 hidden run (tools/hidden.sh, release build, testserver) |
| 13 | MED | Kill the first with SIGKILL, start again | Starts normally (stale socket removed) | by hand | not run: by hand check, no harness written |
| 14 | HIGH | Nacre with a throwaway home, Medlar on a spare port against testserver; click a download | It arrives and downloads; else replay Nacre's body with curl and say so | by hand | not run: by hand check, no harness written |
| 15 | HIGH | Download, expire the link on testserver, send a fresh one | File completes identical (hash) | by hand | not run: by hand check, no harness written |

View file

@ -19,7 +19,7 @@ Written by the worker that built it, run by the test phase. Nothing here has bee
| 5 | MED | Size unknown against a rule with min 100 MB | the rule still fits | unit | pass (existing) |
| 6 | MED | Add three links of the same template name `a.zip` | names `a.zip`, `a (2).zip`, `a (3).zip` | unit | pass (existing) |
| 7 | MED | `nice cargo test -j 2 -p medlar clipboard` | filters by type and host work | unit | pass |
| 8 | HIGH | Clipboard set to Ask, copy `https://a.test/x.zip` (X11/XWayland or data-control) | Add window opens with the link once; copying it again does nothing | by hand | not run: needs live compositor/clipboard/hidden session |
| 8 | HIGH | Clipboard set to Ask, copy `https://a.test/x.zip` (X11/XWayland or data-control) | Add window opens with the link once; copying it again does nothing | by hand | KNOWN BUG MED: S037 hidden run B (clipboard Ask, wl-copy in nested niri) showed no Add window, also after the first-copy fix; cause not found (data-control in the nested session or the watcher) |
| 9 | HIGH | Clipboard Ask, press copy in Medlar (details value) | no Add window (own copy ignored) | by hand | not run: needs live compositor/clipboard/hidden session |
| 10 | MED | Clipboard Add, copy a link already in the list | nothing is added | by hand | not run: needs live compositor/clipboard/hidden session |
| 11 | MED | Clipboard Off, copy a link, then switch to Ask | the old copy is not offered | by hand | not run: needs live compositor/clipboard/hidden session |

View file

@ -0,0 +1,44 @@
# S037 — Whole app: test file
Written and run by S037 (Phase: test) on 2026-11-26. Results are what was seen in this session.
## Built
- `crates/core/src/connector/mod.rs` · `busy()`: a connection over the 16 allowed gets `429 {"error":"busy"}` instead of being dropped silently.
- `crates/core/src/stream/dash.rs` · `Manifest::media`: the 200,000 segment cap counts all periods together; number and time overflow in templates is an error, not a panic.
- `crates/app/src/clipboard.rs` · `news()`: an empty clipboard at start counts as "", so the first link copied is offered (it was swallowed).
- `crates/core/src/fuzz.rs`, `http/fuzz.rs`, `stream/fuzz.rs`, `connector/fuzz.rs` · mutation fuzz of names, Metalink, listings, patterns, redaction, Content-Disposition, ranges, HLS, DASH, connector requests. `MEDLAR_FUZZ=n` sets rounds (default 2000).
- `crates/core/tests/whole.rs` · `soak`, `ten_thousand`, `loopback_speed` (ignored, run by name in release) and `after_another_one`.
- Hidden drivers for `tools/hidden.sh` (kept outside the repo): run A first start to finished downloads through the port, run B clipboard Ask and add without asking.
## Checks
Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken · LOW = looks or comfort.
| # | Risk | Do this | Expect | How | Result |
|---|---|---|---|---|---|
| 1 | HIGH | Hold 16 silent connections to the port, send a 17th GET | 429 with `busy` | integration (`control.rs::connector_over_16_connections_busy`) | fixed |
| 2 | HIGH | DASH with 50 periods of 150,000 segments; `startNumber` u64::MAX | Error, no panic, no huge memory | unit (`stream::fuzz::dash_many_periods_refused`) | fixed |
| 3 | HIGH | Fuzz all parsers, 2,000 rounds debug and 40,000 rounds release | No panic; names safe; Origin never 200; secrets redacted | unit (`fuzz`) | pass |
| 4 | HIGH | Child processes: yt-dlp and ffmpeg arguments | `--` before links, no shell, cookie jar 0600 in runtime dir, deleted after | review of `ytdlp.rs`, `run.rs` | pass |
| 5 | HIGH | Metalink with entities | No entity expansion (quick-xml) | review + fuzz | pass |
| 6 | HIGH | Soak 20 min, seed 37: random cuts, resets, 503, stalls, throttles, ignored ranges, pauses, limit changes, restarts | Every file equal to the expected bytes | `whole.rs::soak` release | pass: 606 files, 0 corrupt, 0 unfinished, 52 restarts |
| 7 | MED | 10,000 paused tasks added, snapshot, reopen | All there, quick | `whole.rs::ten_thousand` release | pass: add 3.79 s, snapshot 2 µs, reopen 177 ms, RSS 21.7 → 44.3 MB, db 2.5 MB |
| 8 | LOW | 512 MiB from the local server, curl against Medlar | Medlar not much slower | `whole.rs::loopback_speed` release | pass: curl 849 MiB/s, Medlar 1213 MiB/s |
| 9 | MED | Frame with 10,000 rows | Quick | app `main.rs::frame_of_ten_thousand_rows_is_quick` | pass (50 active rows not measured separately) |
| 10 | LOW | Idle CPU in the hidden release run | 0 % | `tools/hidden.sh` `cpu 5` | pass: 0.00 % at first start and after downloads |
| 11 | HIGH | First start, Skip, POST one link, Download | File done, hash equal to the server's | hidden run A | pass |
| 12 | HIGH | POST from a web Origin | 403 | hidden run A | pass |
| 13 | MED | POST a list of 3, Download 3 | All done, hashes right | hidden run A | pass |
| 14 | MED | B set after A | B never runs while A runs; then done and right | `whole.rs::after_another_one` | pass |
| 15 | HIGH | Add without asking on, types zip: send .zip and .iso | zip added with toast, iso opens the dialog | hidden run B (S024 4) | pass |
| 16 | HIGH | Clipboard Ask, empty clipboard at start, copy a .zip link | Add dialog offers it | hidden run B + `clipboard::tests` | KNOWN BUG MED (S027 8) |
| 17 | HIGH | Pause, restart, continue; expired link continued; queue with schedule; old store opens | Files right | engine: soak restarts, `relink.rs`, `queues.rs`, `store` migration tests | pass (engine); not run in the hidden UI |
## Needs
Local testserver only (port 18737 for hidden runs, random ports in tests), throwaway homes under an absolute `TMPDIR`, no network, no build while the soak runs.
## Doubts
- Soak RSS grew from 50 MB to 62.6 MB over 101 rounds with 52 restarts; it may be allocator growth or a slow leak per restart. Not chased.
- Journeys pause/restart, expired link and schedule ran only as engine tests, not clicked through the hidden UI.
- Frame cost with 50 active downloads was not measured; only the 10,000 rows frame test.
- Fuzz is mutation of seeds with a fixed seed, not coverage-guided; deep paths may stay unseen.
- Clipboard fix: a failed read now counts as empty text, so an image copied between two copies of the same link makes the second copy news again.