mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Android: Labs › Pick the English model for this phone (off)
Hex measures real dictations and, where English dictation is slow on the
phone, chooses faster English dictation for it (Ryan's decision; plan in
hex-android-model-by-phone-rule-plan.md, L135). Behind a new Labs switch,
off by default; whether it becomes the default, and every word, is Ryan's.
What it measures: only while faster English dictation is off, each
dictation that went in and would go to the faster model were it on
(English, not translated, Automatic with one candidate), on the standard
model, with at least 6 s kept, the model loaded before the tick (already
loaded, or loaded while the person spoke: the decode's wall time then
holds no load) and no second decode without the custom words. Its number
is decode wall time per second kept. MicCapture hands each dictation's
durations to Recognizer.timed; ModelChoice.after is the one place it
decides: median of the last 5 at least 0.5, and the last 20 dictations
all English-routable. One way: once chosen it never decides again.
What it does: the keyboard only records. MainActivity.onResume
(ModelChoice.whenOpened) turns faster English dictation on and starts its
135 MB download. Turning faster English dictation off by hand, or Delete
download, sets fastEnglishOffByHand, and the rule never turns it on again.
Changed behaviour: the 135 MB model is now Wi-Fi-first like the 190 MB
one, whoever asked for it. On a metered network a Labs tap no longer
downloads at once: its row says "135 MB. Starts by itself on Wi-Fi." with
Use mobile data, and Wi-Fi coming back starts it.
What it keeps: the private "modelChoice" preferences (the last 5 ratios,
English dictations in a row up to 20, counts by reason, the choice's
date and median), numbers only; turning the lab off deletes the file and
leaves a setting or download it made. Diagnostics gets a "Model choice:"
line (median, count, threshold, decision and date, N of 20 in a row,
counts not counted by reason). Dictation's speech model card says what is
true while it waits, downloads and once ready. Privacy page (both
copies), policy and site say what is kept (proposals for Ryan).
Debug builds only: setprop log.tag.HexDecodeScale DEBUG (x10) or VERBOSE
(x0.5) scales the measured time.
Verified on anomastudio (OpenJDK 21, SDK 36): testDebugUnitTest passed
362 tests, 0 failures (ModelChoiceTest's 17 among them, with the OnePlus
12's two reports); the R8-minified release and preview dex contain no
"HexDecodeScale" (the debug dex does). Emulator hex-modelrule-vogel (API
36): lab off stores nothing; fast dictations (median 0.30) and one 3.11
outlier don't decide; a Spanish and a translated dictation reset the row;
slow ones decide on the 20th in a row with no download from the keyboard;
on 5G it waits, Wi-Fi starts it, the next dictation runs on faster
English dictation and the rule stops measuring; low memory falls back;
Delete download keeps it off across restarts; a hand tap on 5G waits and
Use mobile data downloads; the lab off deletes the numbers and leaves
the download. Chinese screens checked.
* Android: review fixes for Pick the English model for this phone
From the faster-English helper's review of #2831:
- Turning the lab on clears fastEnglishOffByHand. It is a new request, so
someone who tried faster English dictation before the lab existed and
turned it off no longer gets a lab that silently measures nothing.
Turning faster English dictation off, or Delete download, after that is
still kept for good (ModelChoice.offByHandWhenLabTurned and
offByHandWhenFasterEnglishTurned, used by the Labs rows).
- The site's privacy text moves to its own pull request (#2832), to be
merged when the build that carries the lab is published; dev.anoma.ly
would otherwise describe a lab no published build has. The in-app
policy and both Privacy page copies stay here.
- Diagnostics' "Model choice:" line lists the last five ratios beside the
median, so a pasted report shows a steady set from a spread.
- Tests of behaviour rather than shape: ModelStore.download now asks
startsNow, which the mobile-data test exercises for both models; the
test that re-tested engineFor is removed (MicCapture has no JVM seam:
it needs Android's Looper and AudioRecord), and whenOpened loses its
onScreen parameter, which no caller passed, with its test. Added: the
OnePlus 13's 0.54-0.68 deciding and the emulator's 0.37 never
deciding, as sequences of real-length dictations.
Verified on anomastudio: testDebugUnitTest 365 tests, 0 failures
(ModelChoiceTest 20). Emulator hex-modelrule-vogel: Delete download set
the off by hand; turning the lab on cleared it; five slow (x10) and
fifteen short English dictations decided (ratios 2.91, 2.52, 2.80, 2.86,
2.88, as Diagnostics now lists them); opening Hex turned faster English
dictation on and downloaded it on Wi-Fi.
* Docs: the feature map counts ModelChoiceTest's 20 tests after the review fixes
Documentation only; the count is from the
|
||
| .. | ||
| features | ||
| images | ||
| plans | ||
| releases | ||
| research | ||
| specs | ||
| cli.md | ||
| design-system.md | ||
| downloads.md | ||
| hex-annotation.md | ||
| linux.md | ||
| nix.md | ||
| opencode-compatibility.md | ||
| perf.md | ||
| README.md | ||
| releasing.md | ||
| streams.md | ||
| test-builds.md | ||
| transcript-cli.md | ||
| windows-signing.md | ||
| windows.md | ||
Project Documentation
Start with the document for your task. Plans and archived prototypes do not override shipped behavior.
User Guides
../README.md: install and use Hex on macOS, Windows, and Linux.windows.md: Windows x64 and ARM64 beta requirements, installation, and source builds.linux.md: Linux X11 and native Wayland beta requirements and installation.nix.md: Nix packaging for Linux, development, and per-user autostart.../ios/README.md: build and test the iOS prototype.../sdk/typescript/README.md: use the public TypeScript transcription SDK with an explicitly supplied native helper.
Engineering Reference
../AGENTS.md: architecture, invariants, development commands, and diagnostics. This is the implementation authority.../ROADMAP.md: prioritized product and engineering work.design-system.md: Rune +rune-kit+ OpenCode theme components, Hex pieces, copy rules, and--snapscene verification.features/README.md: existing user-facing capabilities, entry points, available verification, and gaps; detailed dictation and recovery maps.perf.md: strobe benchmarks, the cases that drive the window through its accessibility tree, and how a benchmarked copy of Hex stays isolated.downloads.md: public download paths, R2 custom domains, GitHub release mirrors, and network recovery.opencode-compatibility.md: audited OpenCode V2 source and CLI baseline, integration contract, and validation limits.plans/personal-commands.md: shipped personal command contract and remaining lifecycle work.plans/quickjs.md: why and how configs run in embedded QuickJS instead of Bun, with size and latency measurements.specs/local-transcription-service.md: implemented macOS local-service protocol and lifecycle guarantees.specs/hex-words.md: the Hex words file (.hexwords) that carries vocabulary and word replacements between the desktop, iPhone and Android apps, with shared cases intests/fixtures/hex-words.
Architecture Decisions And Active Plans
plans/rune-ui.md: implemented; Rune desktop UI port, surfaces, goldens, and remaining real-window checklist.plans/single-process.md: implemented; one Hex process per user on macOS, Windows, and Linux hosting Rune windows and overlays.plans/rune-dependency.md: decision record for Rune as a public MIT Git dependency and Nix output-hash updates.plans/shared-desktop-ui.md: implemented; how macOS, Windows, and Linux share one window and one settings file.plans/swift-app-handoff.md: manual download handoff from Swift, without data import or automatic replacement.plans/typescript-sdk.md: published SDK status, remaining signed-helper packaging, and first-consumer validation.plans/linux.md: Linux X11/Wayland validation and later capability slices.plans/meeting-live-transcription.md: evaluation of Apple SpeechTranscriber vs Moonshine for live meeting drafts.plans/granola-import.md: research on importing historical Granola meetings intohex mcp.
When a plan disagrees with AGENTS.md about shipped behavior, update the plan.
Research And Archives
research/transcription-benchmark.md: historical benchmark method and measurements.../prototypes/app-shell/README.md: archived app-shell comparison prototype.
Releases
releases/ contains version-specific release notes and drafts. ../release-notes/ contains legacy inputs from versions
2.0.0 through 2.0.9. Published notes and the SDK changelog describe their release,
not current behavior; preserve them as historical records. A draft note is not
evidence that its release has been published.