Skip to content

Dictation history ​

Safety and evidence ​

Run automation only in a disposable environment with a synthetic HOME, explicit config, private XDG data/runtime directories, no production D-Bus/compositor sockets, no microphone/input devices, and capture-only output fixtures. Use a private PTY for the terminal viewer and a private headless display/D-Bus for GTK/QML. Do not use the user's clipboard, current focused app, existing history or installed daemon as a fixture.

Pin the complete source archive/tree, toolchain image, actual producer exits, executable and external QML/package bytes. Retain original failures. A corrected capture harness is a separate result, not a retroactive pass. Decode PTY cursor positioning before checking layout; token presence in raw output is not layout acceptance. Never add repeated runs to the count of distinct regression cases.

This catalogue describes acceptance checks, not a record that they passed. Mark each case passed, failed, blocked or not exercised in the candidate's private evidence report.

Cases ​

IDCheckRequired result
H01Load a synthetic old config without [history]; inspect a newly generated config separatelyOld config stays off; new template opts in; explicit false survives unrelated saves
H02Enable, pause, resume and disable using the real CLI and a disposable configValidated writes preserve unrelated keys/comments; readback agrees; next daemon session applies the change without restart
H03Drive delivered, no-speech, too-short, empty, timeout, cancelled, transcription-error and output-error daemon paths with synthetic capture/transcriber/output fixturesExactly one entry per completed session; no duplicate at repeated idle; correct outcome/error and ended_by; no history when off or paused
H04Inspect raw/processed/corrected text and runtime metadata on those entriesOriginal text and automatic edits preserved; actual engine/model/backend/language/timing/output information recorded where supplied; unknown values not invented from the binary's capabilities
H05Pause during a session and while its writer waitsSuppressed entry reaches neither day file nor index; queued-pause regression remains enforced
H06Simulate supported compositor replies for excluded apps at either end, missing/invalid replies and timeoutsExcluded entries absent; titles opt-in; unknown-app behavior matches documented default and does not claim exclusion protection
H07List/show/search with JSON, including a synthetic meeting matchEvery subcommand accepts --json; stdout parses; errors have nonzero exits; one default search includes both sources
H08Copy and paste again through capture-only fixtures, including failed entries and empty correctionsCorrect text and normal output hooks/fallback are used; paste delay observed; no new history entry created; no real clipboard or typing
H09Correct and delete a dictation, then search and rebuildOriginal fields remain; intentional empty correction stays empty; deleted result disappears from day file and derived index; newer-schema correction fails without losing bytes
H10Test plain/gzipped days, corrupt lines, unterminated tails, retention 30 and 0Gzip remains readable/editable/searchable; unrelated corrupt bytes preserved; append stays parseable; retention removes complete old days; 0 keeps everything
H11Exercise private permissions, symlink boundaries, exclusive rewrite temporaries and a concurrent writer lockNo linked target is modified; private modes enforced; reopening cannot remove an active writer's temporary
H12Hold a SQLite reader while deleting, then release it and retry cleanupInitial incomplete WAL cleanup is reported; retry succeeds; stale terms do not survive an unrelated corrupt day or missed append/delete synchronization
H13Exercise the real terminal reader through a private PTY and configurator through disposable file-layer stateDay groups, source/app/model/failure/correction markers, shared search, diff, row actions and off/paused states work; editing shortcuts do not escape the editor; settings persist without changing unrelated values
H14Exercise QML and GTK with real CLI calls on synthetic historyDay groups/search/expansion/copy/paste/correct/delete and enable/pause/resume are usable; invalid operations display errors; empty, failed, corrected, off and paused screenshots retained
H15Invoke tray and standalone/integrated deep links using the extracted candidate packageCorrect frontend opens the history view; missing frontend fails or falls back honestly; actual helper/QML files are packaged at the versioned entry path; enable/live state/pause/copy actions preserve the config override
H16Run setup guidance and documented recovery commands on private fixturesUpgrade enable hint and paused state are accurate; unknown-focus and deletion/WAL limits are disclosed; failed writes are not reported as successful

Automated starting points ​

bash
cargo test --locked --no-default-features --lib history
cargo test --locked --no-default-features --test history_cli
cargo test --locked --no-default-features --test history_privacy

These commands are examples for the isolated approved builder, not permission to run contributor tests on a working desktop. The filtered library command is not the full regression suite. GTK/QML, terminal layout and extracted-package checks require their own producer records; unit tests alone do not pass H13-H15.

Released under the MIT License