hex/docs/features
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kit Langton 7bfb51dfa8 fix(feedback): ring the start tone on the shortcut press
The start tone waited for the 300 ms intentional hold and then rodio's
50 ms output buffer, so it sounded ~345 ms after the press (~375 ms cold)
where the Swift app rang on key-down. The press now requests a provisional
tone: the worker opens the output immediately, waits out a 40 ms chord grace,
and plays through a 512-frame buffer (~50 ms after the press). A chord,
short tap, cancel, paste chord, or Voice Action takeover retracts it, silently
inside the grace or with a 20 ms fade. Mute, media pause, and idle-sleep
prevention still begin only at the hold threshold. Windows and Linux share
the same rule; release-while-idle keeps the tone for the open microphone.
2026-10-21 08:59:16 -07:00
..
commands.md feat(ui): consolidate the desktop design system (#138) 2026-10-18 16:59:43 -07:00
dictation.md fix(feedback): ring the start tone on the shortcut press 2026-10-21 08:59:16 -07:00
meetings.md fix(meetings): finalize recorded audio when SCStream loses its capture source (#162) 2026-10-21 02:33:56 -07:00
README.md Fix meeting offer detection for helper audio processes and use Hex menu-bar mark (#164) 2026-10-20 21:28:47 -07:00
recovery.md fix(paste): delay Cmd-V for Chromium browsers to avoid Chrome 155 dropped pastes (#137) 2026-10-18 17:44:24 -07:00
release-verification.md docs: record the first Linux and Windows releases 2026-10-19 16:35:15 -07:00
voice-action.md feat: default OpenCode processing to ranked fast models with fallback 2026-10-07 10:59:59 -07:00

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 owns future work; AGENTS.md owns implementation invariants.

Initial source baseline: September 1, 2026, 9e9da53aa9ed. Public macOS release: 2.3.0, 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.

Product Map

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, Voice Commands, Voice Action, Meetings, and Recovery 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. 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.

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. 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; 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, installer, download publisher, mirror publisher, macOS release publisher, Linux installer, and Linux updater. The macOS publisher verifies the downloaded R2 artifacts and GitHub mirror before publishing the appcast. Model transfer failures in transcription_models.rs and 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. In-app feed defaults and recovery copy ship with 2.1.17; the initial 2.1.16 mirror preserves that release's original bytes.

Launch Hex, setup incomplete              // setup.tour; full-window, own column
├── Welcome -> Get started                // looping keycap + listening rings
├── How Hex works -> hold, speak, release // follows the shortcut and Hold/Toggle mode
├── Setup: one screen, every requirement  // setup.checklist
│   ├── Microphone -> Allow -> macOS prompt; denied -> Open settings
│   ├── Input Monitoring / Accessibility -> Allow -> Privacy pane + drag guide
│   │   └── Asked -> "Waiting for macOS" + drag/switch hint; reopen the pane
│   ├── Speech model -> Download (progress %) | Change -> picker; failure -> Retry
│   ├── Rows re-read every 400 ms and flip to a check as macOS grants
│   ├── The first unfinished row carries the screen's one accent
│   └── All ready -> listener starts, completion recorded -> Continue
├── Give it a try                         // setup.practice; macOS only
│   ├── 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

Settings > Local transcription
  -> Prepare candidate
     ├── Success -> Save selection
     └── Failure -> Preserve previous selection and show error

Permissions revoked later
  -> Settings shows the missing access and repair action

Apple silicon, macOS 15+. Choices come from the compiled model/language catalog; Apple Speech is currently excluded from the desktop picker.

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
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). 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, shared picker, and the runtime options in parakeet.rs and 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 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, transcription.rs, and 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, practice hints, one-relaunch guard) drawn by tour.rs. Its unit tests (onboarding::tests) cover step order, live row flips, denied and failed recovery, 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|how-it-works|setup|setup-progress|setup-ready|try-it|try-it-listening|try-it-short|try-it-silent|try-it-landed|try-it-reopen|done>. 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.

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 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, meeting_watcher.rs, and 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. 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. Native menu interaction, installed-app switching, and Linux runtime behavior were not exercised.

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, remove_installed in transcription_models.rs, and 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

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 covers timing, successive captures, output commitment, named checks, and native-proof gaps. Optional spoken entry and 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

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, parakeet.rs, and 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.

Easy to misread: History Off does not stop diagnostic logging. Diagnostic logs are separate and currently unbounded on disk. See the privacy guide.

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 and the reader_* regressions in 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

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 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, recording_environment.rs, and 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, #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 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), 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 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

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 cover text behavior and native dispatch, not a live custom-host or target-app paste.

Selection and stage checks start in dictation_processor.rs, text_replacements.rs, and 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 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 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 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 strips that suffix on both sides and 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 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.

Speak Commands

Voice Commands maps the command opt-in and separate Moonshine model, awake/sleep state, contextual catalog, personal config, and spoken dictation controls. It owns the checks and host/startup gaps; actual capture and output remain in Dictation.

Record Meetings

Meetings (beta) 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

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, hex_microphone.rs, HexMicrophoneDriver.c, build-app.sh, and 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

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
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
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 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 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). Turning the preference off therefore takes effect when Settings closes. Explicit previews always open their requested pane.

Checks in 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, 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.

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). 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.

The sidebar uses window-local deferred action dispatch in 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 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 separates supported recovery from known defects. login_item.rs, status_item.rs, sparkle.rs, the identity test, and app validation 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

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
├── X11 -> No tray or recording HUD; service status and sounds remain available
├── Wayland -> evdev + compositor protocols; keys observed, not suppressed
│   └── Mouse-classified nodes excluded; live modifiers reused for paste
├── Escape -> Cancel active capture, not newest accepted job
│   └── X11 grab conflict -> Try plain Escape; otherwise warn without stopping dictation
├── Microphone failure -> Listener exits, not macOS automatic recovery
│   └── Overload (Xrun) glitch -> Logged; not a failure
└── Paste -> Retain transcript clipboard, not restore previous contents
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
├── 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 for the parity table, streaming notes, and release flow; check-windows 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 Commands, Voice Action, Modes processing, retained History, or meetings. hex listen instead prints Moonshine transcripts. Wayland needs explicit broad input-device access; physical reconnect and click-through still need native evidence. Its smoke explicitly isolates HEX_APPLICATION_SUPPORT_DIR and checks that Settings can exit without stopping the service.

Wayland discovery checks every event node for the required broad read access, then excludes udev mouse-classified nodes even when Logitech-style receivers advertise synthetic keyboard keys. Stable rejected nodes are cached until their device identity changes. The active keyboard monitor publishes aggregate modifier state to paste, avoiding two full device scans after every dictation. mouse_nodes_are_not_monitored_even_when_the_receiver_advertises_keyboard_keys and live_modifier_snapshot_tracks_edges_and_device_loss cover those policies; the nested-compositor smoke remains the native insertion check.

See the Linux guide, linux_app.rs, linux_wayland_input.rs, and Linux CI for existing checks. The direct installer/updater and installer tests do not establish a published, supported-host-validated signed release. Nix owns its package updates; HEX updates only managed direct installs.

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 stop / systemctl --user stop hex -> Stop workers and release devices

Sources: the service owner and client in linux_app.rs, 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 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 checks the failure gate and recovery after a simulated successful settings commit. It has not been executed on Linux. 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 records an Arch/i3 client-independent ownership check, not transcription accuracy or physical logout, Wayland, or signed cross-version update proof.

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
├── Finish retained recording -> Stop sound, before transcription/paste
├── Brief discarded tap -> Start sound, but no stop sound or transcription
└── Cancel active capture -> Cancel sound; idle Escape stays silent

The shared feedback player 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. 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.

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 for settings that predate settings.json. start_sound_precedes_audio_and_does_not_change_short_tap_discard in 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 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 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 includes those sources. The keyboard_layout harness skips on Linux; packaging it does not provide macOS layout evidence.

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, service contract, and SDK tests 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 must not be generalized to every SDK cancellation path.

Model progress and dictation levels share bounded SSE framing in sse.ts. In-memory SDK regressions 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

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
iOS prototype -> Record/transcribe/copy and keyboard handoff
Unmerged Windows / deferred features -> Not part of this map

Sources: meeting.rs, meeting_watcher.rs, developer_control.rs, capture-preview.sh, iOS guide. iOS physical-device proof and temporary-WAV failure cleanup remain gaps; best-effort deletion is not guaranteed deletion.

incremental_projection_matches_snapshot_after_updates_and_partial_writes in 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 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 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 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 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

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.