hex/docs/features/README.md
2026-10-22 14:44:56 -04:00

1050 lines
61 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# HEX Feature Map
What can the user do, how do they reach it, and what would prove it works?
This maps existing behavior. [ROADMAP.md](../../ROADMAP.md) owns future work;
[AGENTS.md](../../AGENTS.md) owns implementation invariants.
Initial source baseline: September 1, 2026, `9e9da53aa9ed`. Public macOS release:
[2.3.1](../releases/2.3.1.md), with custom-domain downloads, a GitHub DMG mirror,
and model-download recovery guidance. The initial map was source-only. Listed checks are
locators unless an executed result is explicitly recorded, as in the
[keyboard-layout verification](recovery.md#keyboard-layout-resolution).
## Product Map
```ts
HEX // macOS release
├── Get ready // install, permissions, local model
├── Dictate // hold OR double-tap lock
├── Use the result // paste, Send, paste-last, History
├── Adjust behavior // shortcut, microphone, recording preferences
├── Process text // context-selected Modes
├── Opt in // Voice Action, Commands, Meetings: separately off
├── Recover // prove the next attempt works
└── Maintain the app // menu bar, login, updates, quit
```
[Dictation](dictation.md), [Voice Commands](commands.md),
[Voice Action](voice-action.md), [Meetings](meetings.md), and [Recovery](recovery.md)
have detailed maps.
The other capabilities stay here until they need their own verification recipe.
## Get Ready
Install the signed macOS app with `brew install --cask anomalyco/tap/hex` or the
[manual DMG](../../README.md#install-hex). The cask uses a versioned, checksum-pinned
DMG, requires Apple silicon/macOS 15+, and keeps Sparkle updates enabled. It does
not require Bun or OpenCode, launch the app automatically, migrate the legacy
Swift app, or forcibly replace an existing app destination. Homebrew uninstall
leaves runtime settings, models, and retained data intact.
```ts
Download Hex // setup.download-recovery
├── hex.kitlangton.com names the visitor's platform // setup.download-button
│ ├── Mac -> DMG | Intel Mac -> disabled, "needs Apple silicon"
│ ├── Windows x64 / ARM64 (UA-CH) -> HEX-Setup-<version>-<arch>.exe + SmartScreen note
│ ├── Linux -> copyable `curl … install-linux.sh | sh` + Arch/glibc requirement
│ ├── Phone -> Send yourself the link
│ └── Other platforms -> every build, Homebrew, the GitHub release
├── hex.kitlangton.dev/* -> 301 same path on .com
├── Website / README / installers -> downloads.hex.kitlangton.com -> R2 bytes
├── Apps, feeds, appcast, Homebrew -> downloads.hex.kitlangton.dev -> same R2 bytes
├── GitHub app-v<version> -> identical DMG, Setup.exe, and Linux bytes
└── Older app cannot reach its update feed -> manually install the DMG
Install on Windows // setup.windows-installer
├── Setup.exe, per user, no admin -> managed versions\<version>\hex.exe
│ ├── x64 without vulkan-1.dll -> stop with driver guidance
│ ├── newer self-updated version installed -> refuse, nothing changed
│ └── finish -> Open Hex -> first-run tour downloads a model
└── Settings › Apps -> uninstall every version, shortcut, Launch at login; keep data
Install on Linux // setup.linux-installer
└── curl … | sh -> signed feed -> verified artifact -> launcher + hex.service
└── cannot start -> name the glibc floor or the missing Arch packages
Prepare local models // separate network dependency
├── Dictation -> huggingface.co and its download CDN
└── Commands -> download.moonshine.ai
└── Transfer fails -> host-specific guidance -> restore access -> Retry
```
The website shows the pinned macOS version and platform requirements beside its
download links. App mirrors use explicit `app-v…` release tags rather than GitHub's
repository-wide latest release, which may refer to the SDK. The legacy `r2.dev`
endpoint remains available for installed clients. New builds use the custom host
for Sparkle and Linux updates; the signed Linux payload and verification key are
unchanged. Hosting does not guarantee access through every corporate policy.
The site's hero is an animated, optional show: an idle head and an ⌥ keycap until
the visitor presses it, then a voiced demo of messages, OpenCode prompts and fixes
(WebGPU, with a Canvas 2D fallback). Audio loads only after that press; the website
has no microphone button or microphone access. Reduced motion keeps a still until
the press and then plays only the calm stage. See [site authoring](../../site/README.md).
Headless Chromium renders of the WebGPU, Canvas 2D, reduced-motion and phone paths
showed no console errors; a deterministic 60 fps capture was reviewed frame by
frame. These checks do not exercise real speakers or a physical phone.
The Windows installer is silently installed, reinstalled, refused as a
downgrade, and uninstalled on x64 and ARM64 runners by
[test-windows-installer.ps1](../../scripts/test-windows-installer.ps1); no
interactive install, SmartScreen prompt, or first launch on a real PC has been
observed. The Linux library diagnosis has no automated check. The site's
platform states were captured once in headless Chromium with `?platform=`.
Sources: [website](../../site/src/Download.tsx), [installer](../../packaging/windows/hex.iss),
[download publisher](../../scripts/publish-desktop-downloads.sh),
[mirror publisher](../../scripts/publish-app-mirror.sh),
[macOS release publisher](../../scripts/release-app.sh),
[Linux installer](../../scripts/install-linux-release.sh), and
[Linux updater](../../src/linux_updater.rs). The macOS publisher verifies the
downloaded R2 artifacts and GitHub mirror before publishing the appcast.
Model transfer failures in [transcription_models.rs](../../src/transcription_models.rs)
and [moonshine.rs](../../src/moonshine.rs) explain the source host, retry, and
separate prerequisites. These messages do not diagnose a particular firewall
or establish a successful subsequent model download.
Executed hosting checks and deployment details are recorded in
[Download Hosting](../downloads.md). In-app feed defaults and recovery copy ship
with 2.1.17; the initial 2.1.16 mirror preserves that release's original bytes.
```ts
Launch Hex, setup incomplete // setup.tour; full-window, own column
├── Tour opens -> speech model download starts at once // setup.background-download
│ ├── Model -> the selection recommended for the system's first preferred
│ │ language (English -> Parakeet Unified English; e.g. French ->
│ │ Parakeet v3, Japanese -> Qwen3-ASR); no picker in the tour
│ ├── Progress sits beside the step dots on every step; failure -> Retry
│ └── Change or delete the model later in Settings // setup.delete-model
├── Welcome -> Get started // looping keycap + listening rings
├── Setup: one screen, every permission // setup.checklist; skipped when granted
│ ├── Every row -> Allow; asked -> pulse + Allow; granted -> Allowed // setup.permission-control
│ ├── Microphone -> macOS prompt; refused -> Privacy pane + "switch Hex on" guide
│ ├── Input Monitoring / Accessibility -> Privacy pane + drag guide
│ │ └── macOS 27 names the list "Device Control and Data Access"; row and guide follow
│ ├── Rows re-read every 400 ms and flip to a check as macOS grants
│ ├── The first unfinished row carries the screen's one accent
│ └── Last grant -> 0.7 s beat -> Give it a try (Continue also works)
├── Give it a try // setup.practice; macOS only
│ ├── Model still downloading -> "Hex starts listening once…" + footer progress
│ ├── Focused practice field; hold the shortcut, speak, release
│ ├── Started -> "Listening…" ; Transcribing -> "Transcribing…"
│ ├── Discarded before transcribing -> quick-tap hint
│ ├── Discarded after transcribing -> nothing-heard hint (mic, distance)
│ ├── Pasted -> words land in the field + success -> Continue
│ └── Skip -> Done // practice is never required
├── Listener cannot start after setup // setup.relaunch; event tap refused
│ ├── First time -> Hex records a marker, reopens itself, resumes at Give it a try
│ └── Within 2 min of that relaunch -> "Reopen Hex" button; dev binaries ask to reopen
└── Done -> paste last, Voice Action, Modes tips -> Start using Hex
// Windows and Linux: Welcome -> Setup (the model row only) -> Done
Settings > Local transcription
-> Prepare candidate
├── Success -> Save selection
└── Failure -> Preserve previous selection and show error
Permissions revoked later
-> Settings > Permissions needed: the same rows and Allow control as the tour
```
Apple silicon, macOS 15+. Choices come from the compiled model/language catalog;
Apple Speech is currently excluded from the desktop picker.
```ts
Choose a supported language // setup.language-conditioning; macOS + Linux picker
├── Parakeet v3 -> Detect language from audio; selected language does not constrain output
└── Whisper -> Use selected language to guide decoding; accuracy is not guaranteed
```
```ts
Settings picker or setup > model card // setup.model-card; shared by every desktop root
├── Title row -> Name, recommendation tag, "Streams" tag // at most two tags
│ ├── Recommendation -> Per language from the catalog (English: Unified English first)
│ └── Streams -> Catalog `streams` (pinned artifact advertises streaming)
├── Detail line -> "Transcribes while you speak" (non-macOS: "… on a GPU"),
│ coverage when it differs, benchmark, timestamps, Installed
├── Trailing edge -> Active as dot + label; Cancel while preparing; else Use/Download
├── Preparing -> Progress bar with its "Downloading 37%" / "Loading model" label
└── Speed · Size · WER
```
Only Parakeet Unified English is marked `streams`
(`only_the_buffered_parakeet_artifact_is_marked_streaming`). The mark describes
the artifact; dictation still streams only after the load probe succeeds on a GPU
device ([Streaming Finish](dictation.md#streaming-finish)). The menu bar lists
names only and shows no tags. Preview:
`voice-control preview transcription-picker --language en --model-state installed`
(also `missing`, `downloading`).
Parakeet v3 remains available for Portuguese and its other existing language
choices. Its card explains the limitation and suggests Whisper for
language-guided transcription. This does not change saved selections or expand
the Auto picker choices. Multilingual audio support is not language conditioning:
the pinned v3 GGUF has no `stt.parakeet.prompt.num_prompts` metadata, which gates
language prompting in `transcribe-cpp-sys` 0.1.3.
Sources: [model catalog](../../src/transcription_models.rs),
[shared picker](../../src/desktop_transcription_picker.rs), and the runtime
options in [parakeet.rs](../../src/parakeet.rs) and
[local_transcriber.rs](../../src/local_transcriber.rs). The regression
`parakeet_v3_supports_portuguese_without_language_conditioning` checks that the
Portuguese selection remains valid and available, sends no runtime language
hint, and contrasts Whisper's `pt` hint. It does not run inference.
The regression was observed failing with the old metadata and passing after the
correction. The macOS release picker preview built, but screenshot capture was
blocked by missing Screen Recording access; visual layout remains unverified.
**Unreproduced recognition report:** [#68](https://github.com/anomalyco/hex/issues/68)
reports Portuguese speech misrecognized as English. Source and pinned-model
metadata inspection establish the prompting limitation, not the cause or repair
of those transcripts. No v3 audio reproduction or transcription-quality fix has
been demonstrated.
Checks start in [onboarding.rs](../../src/onboarding.rs),
[transcription.rs](../../src/transcription.rs), and
[transcription_models.rs](../../src/transcription_models.rs). Setup/picker previews
prove rendering, not clean-account permission grants or model preparation.
The tour is the pure `onboarding::Flow` (steps, row states, background
download, practice hints, one-relaunch guard) drawn by
[tour.rs](../../src/app_window/tour.rs), which also owns `permission_control`,
the one Allow / pulse / Allowed control Settings and Meetings reuse. The guide
beside System Settings is [permission_guide.m](../../native/permission_guide.m).
Unit tests (`onboarding::tests`) cover step order, the download starting on the
welcome screen and retrying from any step, permissions-only setup with the
model waiting for practice, the auto-advance beat, live row flips, a refused
microphone, platforms without permissions or practice, practice hints, resume,
and the relaunch guard and resume marker. Every step is capturable with
`voice-control preview onboarding --step <welcome|setup|setup-progress|setup-denied|setup-ready|setup-download-failed|try-it-downloading|try-it|try-it-listening|try-it-short|try-it-silent|try-it-landed|try-it-reopen|done>`.
The default model comes from `desktop_i18n::preferred_language` (macOS:
`NSLocale.preferredLanguages`) through `recommended_selection`; existing
settings keep their saved model.
Not yet observed: a clean-account run with real grants, a real practice paste
into the field, or a real self-relaunch after an event-tap refusal. Windows and
Linux show the model row only and skip the practice step.
```ts
Menu bar > Transcription Model // setup.quick-model-switch; macOS
├── Downloaded models -> Last selected language shown beside each model
├── Choose -> Verify installed artifact -> Prewarm -> Save selection
│ ├── Success -> Checkmark moves; Settings reflects the saved selection
│ └── Failure -> Previous selection remains; open Settings for the error
├── Preparing -> Cancel Model Switch // never cancels dictation/output jobs
└── Manage Models… -> Settings picker // downloads and language changes
```
The menu does not open Settings merely to switch models, download a missing model,
or replace a corrupt artifact. Each model retains one last-used language/hints
selection in `transcription_recents`; the current selection takes precedence.
Older settings start with no remembered alternatives. Select an alternative's
language in Settings once to establish it. No additional model is loaded at startup
just to populate the menu, and the checkmark means selected, not live-worker readiness.
[transcription_preparation.rs](../../src/transcription_preparation.rs) is shared
by Settings and the menu bar: one worker plus one replaceable pending choice.
Closing Settings does not abandon preparation. A superseded/cancelled completion
cannot save, and delivered menu controls are drained before accepting completions.
The desktop root commits through an existing editor to retain unrelated unsaved
settings, or through persisted settings when no window exists.
Sources: [status_item.rs](../../src/status_item.rs),
[meeting_watcher.rs](../../src/meeting_watcher.rs), and
[app_window.rs](../../src/app_window.rs). Key checks are
`preparation_has_one_worker_and_only_keeps_the_latest_pending_choice`,
`cancelling_a_completed_unpolled_preparation_never_commits_it`,
`model_switches_remember_language_and_hints_without_changing_other_settings`, and
`failed_model_selection_save_preserves_selection_recents_and_unsaved_edits` in
the preparation owner and [app_settings.rs](../../src/app_settings.rs).
Additional checks cover worker failure/retry, installed-only checksum verification,
and menu choice/tag projection. These do not establish a physical menu click or
an installed-app switch. Remembering a language does not change the language
conditioning limitations described above.
**Observed September 4, 2026 (2.1.16):** all 455 Rust tests
passed in debug and release, with ten opt-in tests skipped per profile. All twelve
keyboard-layout child scenarios passed per profile; formatting, strict
all-target/all-feature Clippy in both profiles, and the release build passed.
The Cohere fixture inference check was run separately; see
[dictation model windows](dictation.md#ongoing-jobs-and-output). Native menu
interaction, installed-app switching, and Linux runtime behavior were not exercised.
```ts
Settings picker > Downloaded model card // setup.delete-model; macOS
├── Delete -> "Delete <size>?" -> Delete again
│ ├── Success -> Model file, receipt, and partial download removed; card offers Download
│ └── Download in progress -> Nothing removed; "Model could not be deleted." with reason
├── Selected dictation model (any language) -> No Delete
├── Preparing or Apple Speech model -> No Delete
└── Language change, model choice, or closing the picker -> Confirmation cleared
```
Deletion takes the shared model-directory download lock without waiting, so it
cannot race a Settings, menu-bar, or local API download. The menu bar drops a
deleted model because it reads installation state when it builds the menu. Linux
Settings does not offer deletion: the service owns model files and has no delete
request yet.
Sources: [shared picker](../../src/desktop_transcription_picker.rs),
`remove_installed` in [transcription_models.rs](../../src/transcription_models.rs),
and [app_window.rs](../../src/app_window.rs). Checks are
`removing_a_model_deletes_its_artifacts_unless_a_download_is_active` (real files
and lock) and `model_deletion_confirms_first_and_spares_the_dictation_model`
(preview state, no disk access). Preview: `voice-control preview
transcription-picker --model-state installed --confirm-model-deletion`.
**Known gap:** `is_installed` checks size, not checksum. Not every native-load
path requires verification. Picker Active means selected/installed, not live
worker readiness; a later worker-load failure does not roll back saved selection.
## Dictate
```ts
Saved shortcut // dictation; Option by default
├── Hold -> Speak -> Release
├── Tap, tap -> Speak hands-free -> Press again // Double-tap to lock enabled
└── Escape
├── Capture active -> Cancel that capture
└── Otherwise -> Cancel newest cancellable job
Settings > Double-tap only // optional for key bindings
-> Disable single-hold activation
-> Keep the double-tap hands-free path
```
The [detailed map](dictation.md) covers timing, successive captures, output
commitment, named checks, and native-proof gaps. Optional
[spoken entry and controls](commands.md#spoken-dictation-controls) belong to Commands.
The macOS CLI entry is `hex listen`, with an optional authoritative `--device`.
Do not start it beside an existing listener.
## Use The Result
```ts
Completed output // output
├── Paste -> Current focus, in submission order
├── Spoken Send -> Paste, then Enter // requires Commands and voice capture
├── Paste Last Dictation // menu or Option-Shift-V / saved binding
│ └── Last completed dictation, not Voice Action
└── History
├── Inspect / search / copy / delete
├── Retention -> Seven days by default, always hard-capped
├── Off -> Stop new entries; preserve existing entries
└── Clear all -> Explicit deletion
```
Checks in [paste.rs](../../src/paste.rs), [parakeet.rs](../../src/parakeet.rs), and
[history.rs](../../src/history.rs) cover output and retention boundaries.
They do not prove that an arbitrary target consumed its clipboard contents.
Send is not an atomic target-app transaction. Chromium browsers get a 150 ms
pause before ⌘V for a [Chrome 155 paste bug](dictation.md#ongoing-jobs-and-output).
**Easy to misread:** History Off does not stop diagnostic logging. Diagnostic
logs are separate and currently unbounded on disk. See the
[privacy guide](../../README.md#privacy-and-local-data).
Opening or reopening Settings does not read the diagnostic event log. Commands
and developer Activity load it on demand through `AppWindow::reload_events`.
The shared `EventReader` streams a file-length snapshot in 16 KiB chunks rather
than copying the entire log into memory. It retains up to 1,024 event rows and
the latest context, even when that context predates the retained rows.
Diagnostic records over 1 MiB are skipped through their terminating newline;
the original log and dictation output remain intact. Partial UTF-8 records carry
over to the next refresh, and truncation or file replacement resets the reader.
Checks: `activity_log_is_only_read_when_an_observing_pane_needs_it` in
[app_window.rs](../../src/app_window.rs) and the `reader_*` regressions in
[events.rs](../../src/events.rs). These exercise synthetic files, not an
installed Settings session. A first Commands/Activity refresh still scans the
full log snapshot; disk rotation and background parsing remain separate work.
Observed September 26, 2026: the reader and pane-loading regressions passed.
An optimized isolated harness using the production reader and a synthetic
64 MiB log reduced peak process RSS from about 204 MB to 2.4 MB; refresh took
254 ms before and 222 ms after. This is reader evidence, not a native Settings
latency measurement.
## Adjust Behavior
```ts
Settings // settings
├── Dictation shortcut -> Capture a replacement binding
├── Microphone -> Automatic or saved device
│ ├── Automatic -> Compiled preferences, then the macOS default
│ │ └── Default is a Bluetooth headset -> Built-in mic when present // avoids the call profile
│ └── Open menu covers the controls beneath it; click elsewhere dismisses
├── Microphone mode
│ ├── Keep ready (fast) -> Open while idle; pre-roll available
│ └── Release when idle -> Open on press; no pre-roll; startup delay
│ └── Commands enabled? -> Confirm turning Commands off
├── While dictating -> Mute / Pause media / Do nothing
│ ├── Intentional capture only, not ordinary shortcut chords
│ └── Pause/resume only players already reported running by macOS
└── Sound volume -> Immediate feedback setting; zero suppresses tones
Intentional recording // recording.environment
├── Acquire native macOS no-idle-sleep assertion
│ └── Failure -> Warn and continue recording
└── Finish/cancel -> Release the assertion
// no caffeinate child process or executable-policy dialog
```
Successful settings saves persist and project changes at safe runtime boundaries.
Immediate settings controls commit a candidate before changing the saved UI
choice or applying dependent native/history effects. A failed shortcut save
stays in capture instead of showing Saved; failed retention saves keep the old
choice and surface the error. Failed debounced text saves retain their drafts
for a subsequent edit or close-time flush. The regressions
`failed_shortcut_save_stays_in_capture_and_preserves_pending_edits` and
`failed_retention_save_keeps_previous_choice_and_reports_the_error` in
[app_window.rs](../../src/app_window.rs) inject persistence failure in an
in-memory GPUI window; they do not simulate disk failure in an installed app.
Persistence, conflict, and ownership checks live in
[app_settings.rs](../../src/app_settings.rs),
[recording_environment.rs](../../src/recording_environment.rs), and
[audio.rs](../../src/audio.rs). Settings previews do not prove physical device
switching or native mute support; muting is best-effort, not universal. The
recording-environment ownership checks cover overlapping acquisition and release,
not a managed-device policy or native power assertion. The pause-script regression
checks that inactive players are absent before AppleScript application resolution;
when no supported player is running, acquisition skips AppleScript entirely.
The script check does not prove subprocess avoidance or exercise Music, Spotify,
or VLC through Automation. An opt-in native
assertion smoke exercises IOKit without starting microphone capture.
**Fixed after 2.1.22:** Automatic selection opened a Bluetooth headset when it was
the macOS default input, which switches AirPods and similar headsets into a
low-quality call profile for all audio, including music
([#106](https://github.com/anomalyco/hex/issues/106),
[#88](https://github.com/anomalyco/hex/issues/88)). It now prefers a built-in
microphone and keeps the headset only when none exists; an explicitly saved
headset is still opened. `automatic_input_prefers_built_in_over_a_bluetooth_default`
in [audio.rs](../../src/audio.rs) covers the choice, not CoreAudio's transport
report or a connected headset.
**Fixed after 2.1.20:** through 2.1.20 the microphone menu was painted without
occluding the panel, so hovering or clicking a device also reached the setting
under the pointer ([#94](https://github.com/anomalyco/hex/issues/94)), and it
only closed by choosing or reopening. The menu is now anchored to its button,
occludes the controls beneath it, and closes on any outside mouse-down.
`microphone_picker_occludes_the_controls_beneath_it` in
[app_window.rs](../../src/app_window.rs) renders the production menu over a
hoverable, clickable control and fails without the occlusion; it does not prove
a native pointer session. The recognition-hints editor also now uses the compact
multiline height, so it no longer overlaps the shortcut row for Whisper models.
Screen Recording was unavailable, so that layout is unverified visually.
**Easy to misread:** an open microphone is not an active recording. Sleeping
Commands still needs open input; it is not Release when idle.
## Process Text With Modes
```ts
Modes // modes
├── Select a row -> Edit that mode // does NOT manually activate it
└── Foreground context -> Select processing
├── Matching Brave website
├── Otherwise matching application
└── Otherwise Global
Selected mode // replaces Global, does not layer over it
-> Corrections
-> OpenCode transformation // optional provider-backed rewrite
-> Transformations // ordered text chain
-> Paste or Send
Stage fails -> Preserve its input // failed chain discards partial results
```
Built-in text transformations run natively. Custom transformations require the
managed Bun workspace, not Commands enabled. OpenCode rewriting sends documented
context to the configured provider; speech transcription stays local.
The built-ins are Lowercase, SpongeBob case, and No trailing punctuation. The
last removes only the final contiguous run of sentence marks (including
full-width marks), preserving internal punctuation, trailing whitespace, and
closing quotes/brackets. Punctuation inside a final closing quote is preserved.
Select it after Lowercase for lowercase messages without the final period.
The `no_trailing_punctuation_*` and `built_in_transformations_chain_in_selected_order`
tests in [personal_commands.rs](../../src/personal_commands.rs) cover text behavior
and native dispatch, not a live custom-host or target-app paste.
Selection and stage checks start in
[dictation_processor.rs](../../src/dictation_processor.rs),
[text_replacements.rs](../../src/text_replacements.rs), and
[personal_commands.rs](../../src/personal_commands.rs). They do not prove live
provider availability or real application/Brave context changes.
GUI executable discovery also checks `~/.vite-plus/bin/opencode2` when it is
absent from the inherited PATH. `standard_install_location_finds_opencode_outside_the_gui_path`
in [dictation_processor.rs](../../src/dictation_processor.rs) covers this with
a temporary executable; it does not run an installed Vite Plus shim or provider.
`ordinary_processing_snapshots_modes_before_stage_and_keeps_transformations` in
[parakeet.rs](../../src/parakeet.rs) checks processing-time profile acquisition,
conditional Processing-stage emission, and retained transformation selection.
It uses controlled profiles, not a live provider or custom transformation host.
`mode_rows_preserve_edits_across_add_delete_and_supersede_old_debounces` in
[app_window.rs](../../src/app_window.rs) covers mode-editor changes and stale
debounced saves with one row owning its draft and inputs. It does not exercise
native typing or foreground mode activation.
Application activations compare the picker's bundle name with the foreground
application's localized name. When Finder shows all filename extensions, the
picker name arrives as `Ghostty.app`; [context.rs](../../src/context.rs) strips
that suffix on both sides and [app_settings.rs](../../src/app_settings.rs)
rewrites already persisted activations on load, checked by
`application_matching_ignores_finder_bundle_extensions` and
`loading_strips_finder_bundle_extensions_from_mode_applications`.
**Fixed in 2.1.14:** through 2.1.13, a mode saved with that Finder
preference enabled never activates and every dictation falls back to Global.
Update to repair saved selections automatically. For older builds, the workaround
is to quit HEX, remove the `.app` suffix from
`dictation_processing.modes[].applications` in `settings.json`, then relaunch.
## Use Voice Action
[Voice Action](voice-action.md) maps the separate opt-in, hold-only shortcut,
optional selection, local transcript-to-OpenCode-to-paste path, and cancellation
boundary. It owns the mode-bypass/last-result rules, checks, and
[cold modifier-order gap](voice-action.md#cold-modifier-order).
## Speak Commands
[Voice Commands](commands.md) maps the command opt-in and separate Moonshine
model, awake/sleep state, contextual catalog, personal config, and
[spoken dictation controls](commands.md#spoken-dictation-controls).
It owns the checks and [host/startup gaps](commands.md#gaps-and-constraints);
actual capture and output remain in [Dictation](dictation.md).
## Record Meetings
[Meetings (beta)](meetings.md) maps the Settings opt-in, call detection and the
focus-free offer, menu-bar recording state, rolling transcription, echo
suppression, and the Markdown copy in the user's transcript folder.
## Experimental: Hex Microphone And Fun
```ts
HEX_EXPERIMENTAL_MIC=1 or experimental.hex_microphone = true // fun.hex-microphone; macOS
├── Sidebar -> Fun pane + Settings > Experimental: Hex microphone
├── Hex Microphone card
│ ├── Driver status -> Installed v<ver> / In use by <app> + Uninstall
│ │ ├── Version mismatch -> v<old> installed + Update + Uninstall
│ │ ├── Not installed -> Install -> macOS admin prompt -> copies bundled HexMicrophone.driver + restarts coreaudiod
│ │ └── Inline state -> Installing… / Uninstalling… / Cancelled / Failed with reason
│ ├── Mode while dictating -> Muffled (default), Muted, Quiet, Normal, Chipmunk, Robot, Walkie, Underwater, Far
│ ├── Key sliders -> Live mode tuning + Effect strength + Reset
│ └── Try it -> Example clip OR Record 5s (in-memory only)
│ ├── Dual waveform -> You vs Call hears with highlighted dictation span
│ └── Explicit playback -> Play what call hears | Play your voice
├── Live microphone capture -> Raw audio to Hex transcription (unmodified)
│ └── Lock-free ring -> 48 kHz virtual sink -> Raised-cosine fade on intentional hold
└── Offline CLI -> hex dev voice-filter render <in.wav> --mode <m> --dictation <start>-<end> -o <out.wav>
```
Sources: [voice_filter.rs](../../src/voice_filter.rs),
[hex_microphone.rs](../../src/hex_microphone.rs),
[HexMicrophoneDriver.c](../../macos/HexMicrophoneDriver/HexMicrophoneDriver.c),
[build-app.sh](../../scripts/build-app.sh),
and [app_window.rs](../../src/app_window.rs). Checks:
`muffled_mode_attenuates_high_frequencies_and_preserves_length`,
`muted_mode_with_comfort_noise_drops_speech_to_room_tone_floor`,
`all_modes_produce_finite_bounded_samples`,
`ring_buffer_transfers_samples_and_handles_underflow_and_overflow`,
`driver_plugin_loopback_streams_at_48khz_under_20ms_latency`,
`driver_plist_version_and_status_mismatch_are_detected`,
`osascript_failure_classifies_user_cancel_and_errors`,
`audio_service_restart_interrupts_stream_and_recovers`, and
`experimental_fun_pane_appears_only_when_enabled`. Previews:
`./scripts/capture-preview.sh /tmp/hex-fun.png fun` (with `--fun-driver-missing`
and `--fun-mode <mode>`) and `./scripts/capture-preview.sh /tmp/hex-settings-mic.png settings --experimental-mic`.
Proof limit: in-process `dlopen` loopback proves the compiled driver's 48 kHz
`WriteMix`/`ReadInput` path at 5.33 ms (256 frames), not an interactive macOS
admin authorization prompt or an active Slack/Zoom call.
## Recover And Maintain
```ts
Cancellation / interruption / failure // recovery
-> Scoped stop, fallback, or error
-> Retry or fresh gesture
-> Next capture succeeds // this is the proof, not a cleared error
Menu bar and Settings // maintenance
├── Icon -> 18 pt monochrome Hex mark template (recording variant + elapsed time)
├── Settings / Paste Last -> Reachable with Dock icon hidden
├── Launch at Login -> macOS owns registration state
├── Check for Updates -> Signed packaged-app Sparkle lifecycle
└── Quit -> Orderly shutdown
```
```ts
Launch Hex // maintain.startup
├── Setup incomplete / permissions or model missing -> Open setup or Settings
├── Show Dock icon on -> Open Settings
└── Show Dock icon off + usable menu-bar item -> No startup window
├── Dictation starts independently of the Settings window
└── Menu-bar Settings / Finder or Spotlight reopen -> Open or focus the window
Menu-bar installation fails -> Show Dock icon and open the window // recovery access
Show Dock icon off // maintain.dock-policy
├── Settings window open -> Dock icon stays // hiding it would deactivate HEX
└── Settings window closes -> Menu-bar only
```
```ts
Settings > Launch at login // maintain.login-item
├── Open -> Checking until macOS returns the initial state
├── Refresh / toggle / Open settings -> One persistent background worker
│ └── One active request; latest pending user action precedes the next refresh
├── Failed toggle -> Show error and reconcile with actual macOS state when available
└── Close Settings -> Release channels without waiting for an active native call
```
[login_item.rs](../../src/login_item.rs) serializes ServiceManagement calls on one
window-owned worker, with bounded request and response channels and an autorelease
pool per operation. Settings reads responses without blocking every 500 ms;
refreshes do not accumulate while macOS is busy. The toggle is unavailable until
the first successful status lookup. macOS owns registration state; no login
Boolean is persisted. Preview controls never start the worker or call macOS.
The worker tests in `login_item.rs` exercise thread reuse, nonblocking polling,
latest-action coalescing, action priority, and closing during a blocked call.
`login_item_response_reconciles_optimistic_toggle_and_unknown_state` in
[app_window.rs](../../src/app_window.rs) checks initial status, error rollback
including redraw, unchanged errors, error-only clearing, approval, and external
enablement. Native `RequiresApproval` and error transitions remain unverified;
the simulated checks do not establish Developer ID signed distribution behavior.
Observed September 23, 2026, on `d1930b5` after the final simplifications: the
full debug suite passed 486 tests and the release suite passed 485, each with
twelve opt-in tests ignored and all twelve keyboard-layout child scenarios
passing. Formatting, strict debug all-target/all-feature Clippy, and diff
whitespace checks passed.
Computer-use checks on an ad-hoc signed temporary bundle of the optimized build
confirmed shortcut capture/cancellation, Settings/Modes navigation, registration
and unregistration, the final state after three consecutive toggle clicks, and
refresh after removing that bundle's login item in macOS Settings. The temporary
item was left disabled/removed; no new microphone, input, or Accessibility grants
were made. A five-second `sample` profile found `SMAppService` frames on the
`login-item` worker and none on the main thread. This is sampled-stack evidence,
not an input-to-frame latency measurement or a signed-release smoke test.
Closing Settings left the app process alive with zero `login-item` threads;
reopening produced one new worker. An earlier apparent surviving worker came
from computer-use observation reopening the window. Cmd+Q and Quit HEX each
terminated the process. Local profiles are `/tmp/hex-login-worker-current.sample.txt`
and `/tmp/hex-login-cycle-{before,closed-no-observe,reobserved}.sample.txt`.
The tested temporary executable's SHA-256 is
`d1a3be1e219e7371726273937eeef6c7e16434637e4297ae183f9bdaf4d28b04`.
No Developer ID signing identity was available for a new distribution build.
The existing **Show Dock icon** preference controls quiet startup; there is no
additional launch-window setting. This applies to normal and login launches,
does not change login registration, and does not hide an already open window
when the preference changes. Any open Settings window keeps the Dock icon: macOS
deactivates an app asynchronously when it becomes menu-bar only, which dropped
the window behind other applications ([#103](https://github.com/anomalyco/hex/issues/103)).
Turning the preference off therefore takes effect when Settings closes. Explicit previews always open their requested pane.
Checks in [meeting_watcher.rs](../../src/meeting_watcher.rs):
`dockless_startup_stays_quiet_only_when_setup_and_menu_bar_are_ready` and
`dock_visible_startup_always_opens_the_app` cover the startup decision. The
existing `on_reopen` and status-item `OpenSettings` paths bypass that decision.
These checks do not establish signed-app login behavior or native Finder/Spotlight
reopening; those still need an installed-app smoke test. This addresses the
menu-bar-only case in [#64](https://github.com/anomalyco/hex/issues/64), not an
independent window preference for users keeping the Dock icon visible.
**Executed September 3, 2026:** 441 Rust tests passed (nine opt-in tests ignored),
along with all twelve keyboard-layout child scenarios, formatting, and Clippy.
The release Settings preview built and launched, but window screenshot capture
failed; no visual or installed-app startup verification is claimed.
```ts
Update available // maintain.updates
├── Sidebar Update -> Sparkle update dialog
└── Menu bar > Check for Updates -> Same dialog
Remind Me Later -> Dismiss this offer -> Manual update -> Reopen the offer
DisableUpdates = true at launch // maintain.managed-updates
├── Sparkle never loads -> No background or manual checks, downloads, or installs
├── App menu -> Check for Updates omitted
└── Menu bar -> Disabled "Updates Managed by Your Organization"
```
Administrators set the `DisableUpdates` Boolean in the `com.kitlangton.hex2`
domain, normally through a configuration profile
([#100](https://github.com/anomalyco/hex/issues/100)). HEX reads the effective
`NSUserDefaults` value once at launch, so a forced profile value wins over a local
one and a change applies after relaunch. Speech-model downloads are unaffected.
No automated check covers it; the read is a single preference lookup in
[sparkle.rs](../../src/sparkle.rs).
The sidebar uses window-local deferred action dispatch in
[app_window.rs](../../src/app_window.rs). The executed
`sidebar_update_click_dispatches_only_outside_preview` regression clicks the
production control in an active in-memory GPUI window: zero actions before the
fix, one afterward, and no action in a preview. It does not start Sparkle.
**Fixed in 2.1.13:** older releases through 2.1.12 used app-global dispatch from
inside the sidebar click, losing the action while the active window was borrowed.
The click regression passed in debug and optimized release builds. The menu-bar
path was exercised on the installed local 2.1.11 build and opened the native
Software Update window; no installation was performed. That path remains the
workaround for older versions, including after Remind Me Later. A repaired
installed-sidebar click remains unverified.
The [historical release verification](release-verification.md) records publication
evidence through 2.1.20, including signing, artifact checks, CI results, and skipped
native checks. Those release-specific results do not verify the current working
tree, installed-app behavior, or physical Linux compatibility; retain each entry's
stated limits when using it as evidence.
[Recovery](recovery.md) separates supported recovery from known defects.
[login_item.rs](../../src/login_item.rs), [status_item.rs](../../src/status_item.rs),
[sparkle.rs](../../src/sparkle.rs), the
[identity test](../../scripts/test-app-identity.sh), and
[app validation](../../scripts/validate-app.sh) are maintenance evidence starting
points. Preview badges do not prove installed-app login registration or a signed
update from an older supported build.
## Other Platforms And Consumers
```ts
Linux beta // not macOS feature parity
├── hex start -> Per-user service -> Alt-Space capture -> Stream (Vulkan GPU) -> Paste
│ └── CPU or a model that cannot stream -> Transcribe the whole clip after release
├── hex app -> Settings client; closing it leaves the runtime running
├── Recording sounds -> Shortcut press / capture stop / active cancellation
├── Shortcuts -> One state machine, three sources // linux.shortcuts
│ ├── X11 -> Root-window key grabs; Settings records the chord
│ ├── Wayland + GlobalShortcuts portal -> Desktop grants the triggers
│ │ ├── Settings shows the granted trigger (GNOME/KDE may assign another)
│ │ └── Refused shortcut -> "Not granted" + error; the rest keep working
│ ├── Wayland without the portal -> Bind `hex` commands in the desktop
│ │ └── Settings hides shortcut rows and lists the commands
│ └── Listener starting or stopped -> `hex status` reports Unregistered,
│ never the X11 mode
├── hex dictation start|stop|toggle|cancel, hex voice-action start|stop|toggle,
│ hex paste-last -> Same events as a shortcut // linux.commands
│ ├── Idempotent: start while recording / stop while idle -> Nothing
│ └── Service missing or not listening -> One-line error, non-zero exit
│ // as for hex start|stop|restart|status
├── Escape -> Cancel active capture, not newest accepted job
│ ├── Bound only while recording (portal: own session, also with held modifiers)
│ └── X11 grab conflict / portal refusal -> Warn without stopping dictation
├── Voice Action (opt-in) -> Hold its shortcut or `hex voice-action` -> Instruction
│ └── Selected text from the primary selection -> OpenCode -> Paste the reply
├── X11 -> No tray or recording HUD; service status and sounds remain available
├── Microphone failure -> Listener exits, not macOS automatic recovery
│ └── Overload (Xrun) glitch -> Logged; not a failure
└── Paste -> Retain transcript clipboard, not restore previous contents
```
```ts
Windows beta // x64 (Vulkan GPU) and ARM64 (CPU)
├── Install -> install-windows.ps1 -> per-architecture signed feed -> hex.exe
├── HEX app -> Settings, tray, HUD; Enabled = shortcut works in every app
├── Launch again -> Running app shows its window; hidden (login) launch -> no-op
├── Ctrl+Space -> Hold or Toggle -> Capture -> Stream (GPU) -> Paste
├── Escape -> Cancel; a held modifier alone never ends or cancels a capture
├── Paste -> Waits for Shift, Alt, and Win; a held Ctrl is kept and harmless
└── Modes, Voice Action, History, Activity, transformations -> as on macOS
```
No Windows Commands, Meetings, or local transcription API. See the
[Windows guide](../windows.md) for the parity table, streaming notes, and
release flow; [check-windows](../../.github/workflows/check-windows.yml) builds,
lints, and tests x64 and builds and tests ARM64 on every pull request. Physical
smoke tests on Windows 10 and on ARM64 hardware have not been run.
No Linux voice Commands or meetings. `hex listen` instead prints Moonshine
transcripts. Wayland shortcuts need either the desktop's GlobalShortcuts portal
or the user's own keybindings for the `hex` commands; Hex reads no input
devices. Click-through and a physical portal or keybinding press still need
native evidence. Its [smoke](../../scripts/test-wayland-paste.sh) explicitly
isolates `HEX_APPLICATION_SUPPORT_DIR`, pastes while another keyboard holds
Ctrl and Alt, and checks that Settings can exit without stopping the service.
Shortcut rules are pure and tested once for every source in
[linux_input.rs](../../src/linux_input.rs): hold, double-tap lock, toggle,
double-tap only, Escape, Paste Last, Voice Action, and command idempotence,
plus X11 auto-repeat filtering. The X11 grab tests run on an isolated display in
CI; `commands_and_grabs_share_the_x11_listener` drives grabs and commands
through one listener. [scripts/test-linux-service.py](../../scripts/test-linux-service.py)
checks that commands fail without a listening service.
On 2026-10-22 the portal path was observed on niri with xdg-desktop-portal-gnome
using synthetic uinput keys against an isolated service: granted triggers,
hold and Escape while held, double-tap lock, Paste Last, and commands. A
physical keyboard press has not been recorded.
See the [Linux guide](../linux.md), [linux_app.rs](../../src/linux_app.rs),
[linux_portal.rs](../../src/linux_portal.rs), and
[Linux CI](../../.github/workflows/check-linux.yml) for existing checks.
The [direct installer/updater](../../src/linux_updater.rs) and
[installer tests](../../scripts/test-install-linux-release.sh) do not establish
a published, supported-host-validated signed release. [Nix](../nix.md) owns its
package updates; HEX updates only managed direct installs.
```ts
Linux runtime // maintain.linux-service
├── hex start / desktop autostart -> systemd --user hex.service; no Settings or tray
├── Settings / CLI -> Same-user, owner-only Unix socket -> Typed commands and snapshots
├── Close/crash Settings -> Keep microphone, accepted jobs, and model preparation
│ └── Uncommitted shortcut capture -> Cancel and restore the prior listening state
├── Service restart -> Client reconnects; uncertain commands are not replayed
├── hex restart without a display (SSH) -> Keep the saved session.env
└── hex stop / systemctl --user stop hex -> Stop workers and release devices
```
Sources: the service owner and client in [linux_app.rs](../../src/linux_app.rs),
[linux_service.rs](../../src/linux_service.rs), and the managed installer/Nix
user units. `hex status` queries the running service; `--lines` explicitly reads
historical observations. `hex app --hidden` is a compatibility alias for starting
the service. GUI exit does not mean Disable; the Settings card's Enable/Disable listener and
service controls retain separate meanings. No root daemon or new input grants.
Listener starts consume the service-owned settings snapshot; the foreground
`hex dictate` command loads its own snapshot once. Invalid startup settings leave
defaults available only for editing and block capture until a successful settings
commit or a service restart with valid settings. Dismissing the load error does
not authorize recording with defaults. Feedback is initialized at these entry
points, so a delayed listener start cannot reset a newer live volume selection.
Checks: [test-linux-service.py](../../scripts/test-linux-service.py) exercises
real IPC and process lifetime without a display, installed model, or audio device.
`closing_a_client_does_not_stop_normal_dictation` and
`client_disconnect_cancels_its_edit_and_restores_previous_listening` use controlled
runtime workers. The virtual-microphone and Wayland scripts now run separate
service/client processes. These checks do not establish a physical desktop logout,
cross-version signed update, or microphone/target-app success on the user's devices.
`malformed_settings_cannot_start_even_after_dismissing_the_error` in
[linux_app.rs](../../src/linux_app.rs) checks the failure gate and recovery after a
simulated successful settings commit. It selects a model never installed on
Linux, so the resumed start stops at `Model required` instead of opening the
microphone on a machine with the real model; it passed on apollo on 2026-10-22
beside the live service.
`listener_startup_ignores_the_previous_session_until_a_new_one_arrives` checks the
listener owner's startup observation and stop signal; the exact production owner
and test passed in an isolated standard-library-only Rust harness on macOS. That
harness does not compile the Linux application or prove its runtime integration;
the test has **not been executed on Linux**. These checks do not exercise physical
devices or persistence failure on disk.
The [September 4 service-build evidence](release-verification.md#linux-service-build)
records an Arch/i3 client-independent ownership check, not transcription accuracy
or physical logout, Wayland, or signed cross-version update proof.
```ts
Linux Settings > Sound volume // dictate.feedback.linux; X11 + Wayland
├── Default / older settings -> 50%
├── Off -> No recording tones
└── 25% / 50% / 75% / 100% -> Save and apply live; preview the start sound
Capture // hex app and hex dictate
├── Shortcut starts capture -> Queue start sound immediately, before audio arrives
├── Hold passes 300 ms -> While dictating mute/pause begins, never at the press
├── Finish retained recording -> Stop sound at the release, while the 200 ms
│ tail is still captured; a muted output unmutes first // dictate.stop-tone
│ └── Clip turns out near-silent -> Stop sound already played, nothing pasted
├── Brief discarded tap -> Start sound, but no stop sound or transcription
└── Cancel active capture -> Cancel sound; idle Escape stays silent
```
The shared [feedback player](../../src/feedback.rs) uses the bundled recording
sounds on both platforms; only macOS wake/sleep/error tones use `afplay`.
Decoding happens before the Linux capture loop; the output device opens for
the first tone and is released five minutes after the last one, as described
in [macOS feedback](dictation.md#feedback). Playback admission is bounded and
nonblocking. Output preparation failures are
logged without blocking dictation. The Settings window saves the volume to
`settings.json` and the service reloads it without restarting the listener. The start sound does not wait
for the 300 ms capture-retention threshold; input delivery and audio-device
latency still apply. **While dictating** mute or pause does: the audio loop
requests it when the capture's audio reaches 300 ms past the press, and not
during a release tail. Until 2026-10-22 the service muted at the press. This
ordering is checked by reading the loop, not by a test or a muted device.
Checks: `bundled_recording_sounds_decode_without_an_audio_device` and
`feedback_admission_never_waits_for_playback` in the player, plus
`files_that_predate_a_setting_keep_the_beta_defaults` and
`a_muted_beta_keeps_the_remembered_volume` in
[linux_migration.rs](../../src/linux_migration.rs) for settings that predate
`settings.json`.
`start_sound_precedes_audio_and_does_not_change_short_tap_discard` in
[linux_dictation.rs](../../src/linux_dictation.rs) exercises the production start
path with a sound spy: immediate feedback without any audio, while a 100 ms tap
still discards. Existing timing checks in [dictation.rs](../../src/dictation.rs)
cover the unchanged intentional-hold boundary. These are not proof of audible
native playback or physical hotkey-to-sound timing.
The [September 4 sound-build evidence](release-verification.md#linux-recording-sounds-builds)
records the initial and immediate-start builds. It does not establish audible
native playback, measured physical key-to-sound latency, or Wayland UI behavior.
Both Linux CI triggers include `tests/**`, and the
[Nix source fileset](../../nix/package.nix) includes those sources. The
`keyboard_layout` harness skips on Linux; packaging it does not provide macOS
layout evidence.
```ts
TypeScript SDK + macOS local service
├── Caller records audio -> Explicit helper -> Raw transcription
├── Running desktop capture API -> Separate microphone ownership protocol
│ └── No silence gate // raw model output, unlike hotkey dictation
└── Distribution
├── SDK 0.3.0 -> Published
└── Turnkey signed helper -> Unfinished
```
The [SDK guide](../../sdk/typescript/README.md),
[service contract](../specs/local-transcription-service.md), and
[SDK tests](../../sdk/typescript/test) distinguish those paths. Helper-only service
mode is not a physical hotkey/microphone test. Embedded/packaged service smokes
now expect API 2, matching service/SDK compatibility checks. Helper packaging
requires an explicit signing team and notarization profile, with the same
Developer ID identity validation as the app; identity fixtures do not establish
a signed helper distribution. Low-level blocking-peek and
FIN/half-close limitations in [local_api.rs](../../src/local_api.rs) must not be
generalized to every SDK cancellation path.
Model progress and dictation levels share bounded SSE framing in
[sse.ts](../../sdk/typescript/src/sse.ts). In-memory
[SDK regressions](../../sdk/typescript/test/sse.test.ts) cover transport-chunk
independence, line/event limits, callback cancellation, reader cleanup, and
bounded level observations. A CR-delimited terminal event is also checked with
an open response body, so completion does not depend on EOF or subsequent data.
These checks do not establish live service or
microphone behavior.
## Developer And Prototype Surfaces
```ts
macOS debug runtime // not release navigation
├── Meetings -> Always available; release builds need the Settings opt-in
└── Activity / HUD Lab / hex dev -> Observation and developer controls
Desktop previews -> Rendered fixtures // not proof capture/download/update happened
Linux `hex app --ui rune` (--features rune-ui) -> the Linux window on Rune // dev.rune-ui
├── Same hex.service client as GPUI Settings: saves settings.json, then ReloadSettings
├── Sidebar: Settings, Modes, Voice Action, History (the panes Linux GPUI shows)
├── Transcription picker -> ChooseModel / CancelModel; progress from the snapshot
├── First-run setup -> onboarding::Flow without permissions or practice
└── Not yet: app file chooser, app icons, drag reorder, right-click delete
Windows `hex app --ui rune` (--features rune-ui) -> one tray process, Rune window // dev.rune-ui-windows
├── Runtime thread owns WindowsDesktopHost + TranscriptionPreparation (no service)
├── Named event: a second launch shows the window; tray Show / Enable-Disable / Quit
├── Close hides the window (WM_CLOSE intercepted); Quit or no tray ends the process
├── Settings adds Launch at login and Check now; no terminal paste; chord capture polls
└── Not yet: HUD (no Rune overlay window), custom caption, website rules, hidden start without a flash
iOS prototype -> Record/transcribe/copy and keyboard handoff
Unmerged Windows / deferred features -> Not part of this map
```
Sources: [meeting.rs](../../src/meeting.rs),
[meeting_watcher.rs](../../src/meeting_watcher.rs),
[developer_control.rs](../../src/developer_control.rs),
[capture-preview.sh](../../scripts/capture-preview.sh), [iOS guide](../../ios/README.md).
iOS physical-device proof and temporary-WAV failure cleanup remain gaps;
best-effort deletion is not guaranteed deletion.
`dev.rune-ui` lives in [rune_ui.rs](../../src/rune_ui.rs) and its pane modules;
its tests drive the Rune runtime headlessly (navigation; Settings rows per
shortcut source, saves with `ReloadSettings`, microphone-release
confirmation, shortcut recording and Escape, conflicts; Voice Action opt-in
and its conflict refusal, model choice; History select, delete, two-step
clear, copy; Modes add/delete, corrections, transformations, application
conflicts; the picker's ChooseModel/CancelModel; setup's download; draft
saves) and compare 19 offscreen GPU renders (every pane, light and dark) with
[tests/golden](../../tests/golden). They skip the goldens without a GPU
adapter and do not prove a real window, input method, or physical shortcut.
A headless script against an isolated `hex service` saved a new mode, a
correction, and Voice Action, and the service adopted them. See
[the Rune port plan](../plans/rune-ui.md) for what was observed.
`dev.rune-ui-windows` lives in [windows_rune.rs](../../src/windows_rune.rs) and
[rune_ui/windows_host.rs](../../src/rune_ui/windows_host.rs). It has only
been cross-compiled (`cargo xwin check` and `clippy -D warnings` for
`x86_64-pc-windows-msvc`, with the transcribe.cpp build stubbed out); it has
never run on Windows, and no test covers it.
`incremental_projection_matches_snapshot_after_updates_and_partial_writes` in
[meeting_live.rs](../../src/meeting_live.rs) compares the incremental transcript
reader with snapshot projection across updates, partial writes, and source
ordering. This checks filesystem/projection behavior, not native meeting capture.
`production_navigation_keeps_commands_available_as_an_opt_in` and
`developer_navigation_appends_developer_panes_in_order` in
[app_window.rs](../../src/app_window.rs) check exact pane availability and order
from the developer-feature flag and the Meetings opt-in; they do not exercise
native navigation clicks.
Desktop previews use a deterministic microphone list. Their settings controls do
not change global shortcut-capture suspension or Dock policy, or play preview
sounds. The
in-memory editor regressions use these fixtures; they do not establish native
device discovery or installed-app behavior.
`default_paste_hotkeys_follow_build_capabilities` in
[app_settings.rs](../../src/app_settings.rs) checks the production default runtime
and settings projections: Paste Last remains available in both build profiles;
meeting paste is present in debug or after the Meetings opt-in. `meeting_paste_is_only_active_in_developer_builds`
in [suppression.rs](../../src/suppression.rs) checks the corresponding constructed
hotkey event, including ordinary-chord discard in release. These replace an
unconditional debug-only expectation and a test-only copy of the reservation rule;
they do not establish native keyboard delivery or meeting insertion.
`structural_event_equality_preserves_serialized_identity` in
[events.rs](../../src/events.rs) covers Activity's full-event equality across
event variants, equal timestamps, non-ASCII text, and optional/error payloads.
It does not exercise native Activity selection or scrolling.
**Executed September 3, 2026, source simplification pass:** 444 Rust tests passed
in both debug and release (nine opt-in tests ignored in each), with all twelve
keyboard-layout child scenarios passing in each profile. Formatting and strict
Clippy passed in both profiles. These checks cover the working-tree cleanup, not
a new published app; no installed-app, microphone, or native Linux test was run.
## September 22, 2026 Cleanup Verification
The working-tree cleanup passed 481 Rust tests in debug and 480 in release, with
twelve opt-in tests ignored in each profile and all twelve keyboard-layout child
scenarios passing per profile. Strict all-target/all-feature Clippy, formatting,
app/helper signing-input guards, and changed shell-script syntax checks passed.
The command SDK passed 52 tests; the public SDK passed 56; both typechecks and
builds passed. A packed public SDK imported both Promise and Effect entry points
from an isolated consumer.
The isolated embedded-service smoke passed API 2 handoff, health/models routes,
absence of discovery-file publication, and shutdown on host-lease closure. It did
not open a microphone or run inference. No signed helper artifact, installed-app
settings flow, provider, physical capture/paste, or Linux integration was tested.
The Linux listener-owner harness and source review do not replace Linux CI.
The optimized Modes preview built and launched, but screenshot capture failed
with `could not create image from window`; native visual layout is unverified.
## Grow The Map
```ts
One feature file
├── Sub-features -> Small action/outcome diagrams with stable IDs
├── Entry points -> Every user route and its prerequisites
├── Existing checks -> Source/test links and what they do not prove
└── Gotchas -> Exceptions, known defects, missing native proof
```
This is the map-only stage of the verification workflow, not a working driver.
Keep checks beside the behavior and tests with the implementation. Split new
files only when useful; link shared failure behavior to Recovery.
Future evidence should name the behavior ID, entry point, revision/binary,
platform, prerequisites, outcome, and artifact location. Report skipped paths.
Never publish tokens, personal transcripts, or unredacted diagnostics as proof.
This map does not authorize operating a live installation.