132 Commits
Author SHA1 Message Date
Ryan VogelandKit Langton 8bc6e45a6b Set up Hex Mobile internal TestFlight releases (#1997)
* iOS: move Hex for iPhone to Anomaly's Apple team

(cherry picked from commit 09061502ff)

* Cut Hex Mobile TestFlight betas with a dedicated release tag

Connect the Anomaly app record and pin the mobile package graph. Cut ios-beta prereleases from dev at the scheduled windows or on dispatch, skipping unchanged mobile inputs instead of creating desktop releases or allocating build numbers locally. Prepare the generated project for the Cloud archive after clone.

Verified actionlint, duplicate and desktop-only skips, strict SwiftPM resolution, and an unsigned Release device archive containing the app, keyboard, and widgets. First Xcode Cloud onboarding and signed distribution are still pending.

---------

Co-authored-by: Kit Langton <kit.langton@gmail.com>
2026-11-19 11:48:49 -05:00
Dax 538d16f668 windows: sign the setup engine so smart app control can run setup (#1987)
* windows: sign the setup engine so smart app control can run setup

Setup extracts a copy of its engine to %TEMP% at launch and writes the
installed uninstaller from the same bytes. Signing only the outer
hex-setup-*.exe left both unsigned, and Windows 11 Smart App Control
blocked the extracted copy ("Unable to execute file in the temporary
directory", error 4551).

SignedUninstaller embeds the engine's signature, but the signature has to
exist before the compile that uses it, and the compile job holds no
credentials. So the release signs it in two passes: the new
windows-setup-engine.yml compiles once with SignedUninstaller=yes and keeps
the unsigned uninst-*.e32 ISCC asks to be signed (ISCC leaves it and aborts
as a compile failure, exit 2); sign-windows-engine signs and verifies it in
the release environment; windows-installers.yml then compiles with the
signed engine and asserts the installed uninstaller's signature.

Test builds and runs without the Azure values keep the unsigned single
compile. Inno Setup is pinned to 6.7.1, read from the compiler's own banner
(ISCC.exe's version resource is 0.0.0), so both passes use one compiler.

* windows: harden the setup engine passes

Review fixes for the signed setup engine:

- sign-windows-engine requires sign-windows to have succeeded, and its
  steps are unguarded like sign-windows-installers, so it can never upload
  an empty digest.
- setup-engine runs only when Windows is signed (it waits for
  sign-windows), so unsigned runs really do a single compile with no
  engine pass at all.
- the Inno re-pin uses choco upgrade --allow-downgrade, because choco
  install --version treats a preinstalled package as already installed.
- Invoke-Iscc collects native stderr safely under Windows PowerShell 5.1
  and pwsh with $PSNativeCommandUseErrorActionPreference on, and echoes
  the compiler's lines so build logs stay readable.
- the version probe compiles a minimal script from standard input into a
  throwaway OutputDir, so it never touches the caller's -OutDir.
- only .e32 exists for the engine; drop the unused .e64 handling.
- the uninstaller signature test also checks the release publisher, and
  the test-builds doc warns that Smart App Control cannot be turned back
  on without resetting Windows.

* windows: correct the setup engine comments
2026-11-19 02:38:03 -05:00
Dax e83fad2a12 Release: retry connection resets on release reads (#1919)
* Release: retry connection resets on release reads

* Release: keep the stored-file check fast; fail stalled verification downloads
2026-11-16 16:24:57 -05:00
Dax 77b474d7ab ci: key the windows target cache on the msvc toolset (#1863) 2026-11-15 13:17:53 -05:00
Dax 5f122bb6fe key the windows test-build cache on the msvc toolset (#1853) 2026-11-15 09:13:49 -05:00
Dax db338045f3 fix: find build output under cargo 1.100's new build-dir layout (#1734) 2026-11-12 14:37:40 -05:00
Dax a049e3f290 deploy dev to the anomaly-dev account (#1706) 2026-11-11 18:10:50 -05:00
Dax 7a21e6680b ci: run macos build jobs on blacksmith (#1702)
github team caps us at 5 concurrent macos jobs, so macos jobs queue behind
each other. blacksmith has no concurrency cap and the same arm64 macos images.

converted: compile macos, check-macos test, release build-macos/verify-macos,
test-builds macos, release homebrew-stage.

sign-macos stays on github-hosted macos-26, like sign-windows: it holds the
release signing identity.
2026-11-11 16:21:42 -05:00
Dax Raad 7476ecf30f ci: dispatch hex releases from dev 2026-11-11 13:23:54 -05:00
Dax 8752c0f745 linux: recolor the tray mark with the panel's text color (#1691)
KDE's color-scheme portal describes window colors, so a mixed theme such
as Breeze Twilight picked a black mark for a dark panel. Bump rune for
TraySpec::icon_name, write anomaly.hex-symbolic.svg into the user's
hicolor theme at startup, and serve that name beside the pixmap so Plasma
6, GNOME's AppIndicator extension, and Waybar draw the mark in their own
text color. The icon keeps the old white/black default for hosts that
don't recolor, and the installer removes only a marked file.

Goldens follow the rune bump.
2026-11-11 10:46:08 -05:00
Dax Raad 9e7d5d1d8d ci: deploy from the dev and production environments 2026-11-11 01:52:06 -05:00
Dax Raad 1b82cc0127 ci: harden release and deploy workflows 2026-11-10 10:58:00 -05:00
Dax Raad 23ae5a1f3a ci: deploy the site from infra environments
The site deploy job ran in the release environment and assumed role/github/hex-release, whose token could write every Worker on the account. It now runs in infra-dev or infra-production (picked from the mode, each admitting only its own branch) and assumes role/github/hex-infra-<mode>, which mints a token for that mode's Worker only. Release jobs stay in release.
2026-11-10 10:16:12 -05:00
Dax 5a2009e16f site: deploy with a short-lived cloudflare token from the issuer (#1642)
The deploy job assumed role/github/hex-release and then read the long-lived
hex/release/CLOUDFLARE_API_TOKEN from Secrets Manager. It now mints a
15-minute token from the token issuer after assuming the role, masks it
before writing $GITHUB_OUTPUT, and passes it only to the Deploy step.
2026-11-10 08:37:26 -05:00
Dax 7093b03f2c ci: publish dev notes when the dev-notes branch doesn't exist yet (#1617) 2026-11-09 17:43:51 -05:00
Dax 8201a4ce1c ci: read release secrets from aws secrets manager (#1606)
* ci: read release secrets from aws secrets manager

* ci: read the linux signing key from hex/release/RELEASE_SIGNING_KEY

* ci: hex's own aur and homebrew keys; the signing cert has no password

* ci: the signing certificate has no password

* ci: use the shared aur and homebrew keys

* docs: the shared homebrew deploy key is anomaly-release

* docs: the shared homebrew deploy key is anomaly-release

* site: own /hex/files, drop the r2 write credential (#1611)

* site: own /hex/files for installers, appcast, and dev notes

The site build now copies install-linux.sh, install-windows.ps1, and
packaging/macos/legacy-appcast.xml into its Worker assets, so the same
Worker serves them at /hex/files with the Content-Type and Cache-Control
the bucket objects had. The Installers and Legacy appcast workflows,
r2-put.sh, and their R2 write credential are gone.

The dev notes move to the one-commit dev-notes branch, published by
Release's dev-notes job with GITHUB_TOKEN only; the Worker proxies that
file at /hex/files/dev-notes.json (falling back to the bucket copy until
the first dev release creates the branch) and renders /hex/dev from it.

Both site Workers now bind hex-production-files, read-only in code, for
the frozen 2.3.1 feeds and artifacts, which lets hex-dev-files go. The
Site build runs the installer test and appcast check the removed
workflows ran, and the verify job compares the served bytes.

* docs: the site owns /hex/files and needs no R2 write credential

Hosting, secrets, old clients, and Linux packages describe the built
installers and appcast, the dev-notes branch, and the read-only bucket.
2026-11-09 15:18:26 -05:00
Dax 5316493413 fix(linux): name the missing wl-copy before a Wayland paste fails (#1491)
* fix(linux): name the missing wl-copy before a Wayland paste

* fix(linux): address review on wl-copy warning

* fix(settings): show the wl-copy notice apart from dictation failures
2026-11-07 10:12:33 -05:00
Dax 3d87d0d7de fix(nix): truncate Cargo.lock stanzas in the pin check (#1408)
Stop a package stanza at the next table header, so a sourceless workspace
crate cannot borrow a following [[patch.unused]] Git source.

Assert the exact multi-crate problems instead of a string the script never
prints, and cover a sourceless package and a trailing patch table. Match the
test file in the compile path filter and the agent policy.
2026-11-05 14:52:49 -05:00
Dax b07b1a2083 fix(nix): follow Cargo.lock fragments in the pin check (#1405)
Read the resolved commit from the fragment, so branch, tag, short-rev, and
bare Git sources all work. Parse Cargo.lock's package stanzas with re so the
check runs on macOS's Python 3.9, reject lib.fakeHash, and normalize a .git
suffix when grouping repositories.

Add tests for each source form, a multi-crate repository, a stale revision,
and a fake hash. Flag the pin check itself in the agent policy.
2026-11-05 14:15:57 -05:00
Dax 83dcd3943b fix(nix): hash Rune's current revision and guard git pins (#1399)
The Rune 7d3ee6ca bump updated the Nix pin but not its output hash, so
nix build failed with a fixed-output mismatch.

cargoGitDependencies now records each Git dependency's revision beside its
output hash, and scripts/check-nix-git-pins.py fails when Cargo.lock names a
different revision. compile.yml runs it for Cargo.lock and nix changes.

Fixes #1397.
2026-11-05 13:03:19 -05:00
Dax a3edf83818 macOS DMG: retry hdiutil create, which intermittently fails on hosted runners (#1375) 2026-11-05 07:12:12 -05:00
Dax 6958927696 Windows: hex.com console entry point beside the GUI hex.exe (#1374)
* Windows: ship hex.com, a console entry point beside the GUI hex.exe, on PATH

* lock, fmt, legacy adoption

* clippy

* build hex-console in its own cargo run: -p hex is ambiguous with the hex crate

* hex.com returns once the app starts; Ctrl+C only; install script and Setup replace a running hex.com; hex-console checks in Compile

* fmt

* installer test: exit 0 once every check passed
2026-11-05 06:52:51 -05:00
Dax 6cfefd3cd1 Windows: open with no console window or white flash (#850) (#1373)
hex.exe is now a GUI program. Commands run from a terminal join it
(AttachConsole) and print there; the app leaves it after startup errors
have had their chance to print. Rune 31dbcad cloaks a window until its
first frame presents. Release checks assert the GUI subsystem.
2026-11-05 05:42:29 -05:00
Dax 5caffe90d5 linux installer: print an uninstall command that works after a piped install (#1311) (#1312) 2026-11-04 13:45:05 -05:00
Dax 9193c40ac0 windows: start without a Vulkan 1.2 driver (#1240) (#1249)
* windows: delay-load vulkan-1.dll and fall back to CPU without a Vulkan 1.2 driver (#1240)

* windows: note vulkan-1.dll is delay-loaded in restrict_dll_search
2026-11-04 03:51:13 -05:00
Dax 2626560c84 Legacy appcast: tell 2.3.1 Macs about Hex 3.3.0 (informational, no enclosure) (#1059) 2026-11-02 14:23:40 -05:00
Dax 1c70d227b5 Linux releases run on Debian 12 (glibc 2.36) (#1043)
* Linux releases run on glibc 2.36 (Debian 12) (#1026)

* Linux installer works with Debian 12's curl

* Linux build image: shaderc 2026.1 and Vulkan headers 1.4.341; fresh test-build cache

* Address review: capped stable probe, apt update, toolchain path, cache key
2026-11-02 11:45:38 -05:00
Dax fbd05ffdf7 GitHub's Latest release is the stable app release, never the SDK (#1004) (#1007)
* GitHub's Latest release is the stable app release, never the SDK (#1004)

* docs/releasing.md: the stable app release is Latest
2026-11-02 08:40:49 -05:00
Dax a8e00135d8 CI is minimal: pull requests compile, dev pushes run no checks, full suites in Release's check and stable (#923) 2026-11-01 16:11:07 -05:00
Dax c782f5e39e Onboarding gates stable releases: scene goldens and a clean first run (#864)
* Onboarding gates stable releases: scene goldens and a clean first run (scripts/check-onboarding.sh), wired into Release

* Onboarding check: hero drawn, mic scenes, no false passes, locale pinned, dispatchable Check macOS

* Onboarding goldens: dark found scenes after #865

* Onboarding walkthrough: say what the fixture window doesn't do
2026-11-01 13:44:03 -05:00
Dax e041186c0d Linux: Background portal for running in the background and Launch at login (#812); launcher entry written once (#810) (#824)
* Linux: use the Background portal for running in the background and Launch at login (#812); fallback entry written once (#810)

* test names

* Docs: Background portal and Launch at login (#812)

* Background portal: only once registered (1.20+), symlinked entries are the user's, serialize entry writes and login changes

* doc comment
2026-11-01 07:41:50 -05:00
Dax 47efc1a661 Dev builds say what's new: notes from PR titles in the dev feed, /hex/dev, and Restart to update (#763) (#774)
* Dev builds say what's new: notes from PR titles in the dev feed, /hex/dev, and Restart to update (#763)

* Dev notes: keep ReadyToRestart's wire format; canonical upload; script and refetch fixes from review

* Sidebar update in its own module (code-shape)
2026-11-01 01:56:38 -05:00
Dax 476c4bbb0c Release: skip brew audits that don't fit the content-addressed hex cask (#730) 2026-10-31 21:48:41 -04:00
Dax 46c3c76260 Linux: ship Hex's icon as anomaly.hex everywhere (#652) (#655)
* Linux: ship Hex's icon as anomaly.hex everywhere (#652)

* Linux icons: mark Hex-written PNGs, keep the user's own, tidy autostart Icon (review)

* AGENTS: icon mark

* Installer: touch hicolor best-effort
2026-10-31 15:33:04 -04:00
Dax ab2e819f1a x86_64: keep ggml on x86-64-v3; refuse older CPUs with a clear message (#592) (#614)
* x86_64: keep ggml on x86-64-v3 and refuse older CPUs with a clear message (#592)

Reverts #595's Ivy Bridge floor: it slowed CPU transcription for everyone. ggml goes back to its x86-64-v3 defaults (AVX2, BMI2, FMA, F16C). Hex's own Rust stays baseline x86-64, and the first thing main does on Linux and Windows x86_64 is check AVX2/BMI2/FMA/F16C with is_x86_feature_detected!. Without them Hex prints and shows "Hex needs a 2013 or newer processor (Intel Haswell / AMD Excavator or later) with AVX2. This PC's processor isn't supported." (a native MessageBox on Windows; stderr, which the journal logs, and zenity, kdialog or notify-send on Linux) and exits 1. Every command is covered except --version and --help, which installers and the updater run. ggml-cpu has no static constructors, so nothing runs v3 code before main.

The release guard now asserts the opposite: ggml's CPU libraries must hold AVX2 and FMA (the build targets v3) and no AVX-512 or AMX. Docs state the requirement.

* cpu_floor: harden DLL search first; no dialog under systemd, in a terminal or for hex service; guard rejects AVX-VNNI

* cpu_floor: always exit 1; Windows always shows the message box; Linux skips the dialog in a terminal, under NOTIFY_SOCKET, or for hex service
2026-10-31 13:20:56 -04:00
Dax 8a130e63e5 Lowercase release file names; README downloads by channel (#456) (#601)
* Lowercase release file names; README downloads by channel (#456)

Release builds and the GitHub release mirror now name files hex-<version>-macos-arm64.{zip,dmg}, hex-<version>-windows-<arch>.exe and hex-setup-<version>-windows-<arch>.exe (Linux was already lowercase), as @vixalien asked in #456. Already-published files and the frozen 2.3.1 feeds keep their names; the release service's published names (hex, Hex.dmg, Hex.zip, hex.exe, HexSetup.exe) and the bundle (Hex.app) are unchanged, so the updater, installers, Homebrew cask, AUR and Nix are unaffected.

The README downloads table has Stable and Dev columns for every target, including the updater files. The site Worker serves /hex/download/dev/<target> (the dev alias) beside /hex/download/<target> (stable, or dev while there is none), and both now cover the bare updater files.

* Lowercase names in two remaining examples

* Lowercase the Windows executable in the CPU check step
2026-10-31 12:51:09 -04:00
Dax 34b74d3e42 x86_64 releases: build ggml for the Ivy Bridge floor; guard against BMI2/AVX2/FMA (#592) (#595)
* x86_64 releases: build ggml for the Ivy Bridge floor and fail on BMI2/AVX2/FMA (issue #592)

GGML_NATIVE=OFF alone leaves ggml's GGML_AVX2/BMI2/FMA/F16C on, so Hex 3.0.0 on Windows x64 died with 0xc000001d (illegal instruction) on an Ivy Bridge Xeon E3-1220 V2 once transcription started (reported by @Hc-Web-Dev). Linux and Windows x86_64 release builds now pin SSE4.2 + AVX + F16C and turn AVX2, BMI2, FMA, AVX-VNNI, AVX-512 and AMX off (scripts/ggml-x86-baseline.txt), the floor transcribe.cpp already uses on Intel Macs. Runtime dispatch (GGML_BACKEND_DL + GGML_CPU_ALL_VARIANTS) needs shared ggml libraries, which our single static executable can't ship. CPU transcription on newer x86 CPUs loses AVX2/FMA kernels; Vulkan is unaffected.

.github/release/check-x86-baseline.sh guards both build jobs: the executable may hold no BMI2 instruction (3.0.0's Linux build holds 100; Rust crates that use AVX2/FMA/AVX-512 behind run-time detection use none), and the ggml static libraries no AVX2, BMI2, FMA or AVX-512. No crate sets target-cpu; the only rustflags are +crt-static; no other C/C++ dependency builds with -march=native or AVX2 (Moonshine/ONNX are gone).

* check-x86-baseline: fail on missing inputs or empty disassembly; match llvm-objdump's suffixed BMI2 mnemonics
2026-10-31 12:21:26 -04:00
Dax 1018aecdbb Linux: ship the desktop entry as anomaly.hex.desktop (#582)
* Linux: ship the desktop entry as anomaly.hex.desktop (#579)

* Linux desktop entries: keep symlinks, tidy fallbacks at startup, address review

* fmt
2026-10-31 09:00:45 -04:00
Dax b2034d5bc0 Release: trust anomalyco/tap before checking the cask (Homebrew 6) (#528)
Homebrew 6 refuses to load casks from untrusted third-party taps, so the Hex 3.0.0 release's Homebrew check failed. The secretless check job now trusts our own tap after rendering the cask, guarded for Homebrew versions without brew trust. Second review: console-google/gemini-4-carbon-eap approved (session ses_e7096ffdfffeiCEi7ni1qQSPeP).
2026-10-30 20:48:48 -04:00
Dax 934b0d69aa Release: stop expecting libmoonshine in Hex.app; a failed macOS signing no longer blocks dev publishing (#496)
#424 removed Moonshine (and #430 Smart Turn's onnxruntime), but sign-macos.sh still required libmoonshine.dylib, so every Release since 0.0.0-dev-249 failed at sign-macos and nothing published. The bundle's code allowlist now requires only hex, scrawl-helper, and the microphone driver, and accepts libonnxruntime only if a build still bundles it. On the dev channel, publish no longer waits on macOS: when signing or verification fails, Linux and Windows still publish (only a verified macOS build is ever included), and the run still fails visibly. Stable still requires every platform.
2026-10-30 12:58:57 -04:00
Dax 5f0170e47b Site: a push to production deploys the production site; the mode follows the branch (#403)
site.yml runs on pushes to dev and production (site/ and the installers it copies) and derives the mode from the ref: production -> production, dev -> dev; dispatch follows the ref too, with no mode input. site-deploy.yml refuses a deploy whose mode doesn't match its branch.
2026-10-29 16:30:16 -04:00
Dax 72a7e631e6 chore: drop the last kitlangton URLs (#379) 2026-10-29 11:25:32 -04:00
Dax 3f1582985b Add hex-agent-policy check for issue-pipeline pull requests (#371)
Deterministic gate for agent/* pull requests: Dax-only paths always fail, flagged patches need the pipeline's strict reviewer. The script lives under .github so changing it needs Dax.
2026-10-29 11:06:51 -04:00
Dax f9ab7b5a9c Security: sign Linux releases, lock the installers, vendor the release client, pin actions and download hosts (#370)
From the 2026-10-29 security review:
- H1: Release signs each Linux executable with Anomaly's ed25519 key (HEX_RELEASE_SIGNING_KEY, .github/release/sign-linux.sh, which refuses a key that does not match linux-signing.pub) and publishes the signature as the linux-<arch>-sig target. The updater (updater/linux.rs SIGNING_KEY) and install-linux.sh refuse an executable without a valid signature over its SHA-256, before downloading it. Installed builds that predate this ignore the extra target, so the transition needs nothing from them.
- H3: the installers move to the locked .github/release/ (CODEOWNERS @thdxr); the Installers workflow publishes them from a sparse checkout of that directory.
- M1: the release service client is vendored as .github/release/release-client.sh instead of piping anoma.ly/release/client.sh into bash.
- M2: check-windows.yml gets permissions: contents: read; every third-party action is pinned by SHA.
- M3: resolve_url accepts only URLs on the manifest's host.
2026-10-29 11:06:30 -04:00
Dax 847314564b docs: contributions through issues, not outside PRs (#366) 2026-10-29 10:44:27 -04:00
Dax e79e65588f Release: sign scrawl-helper, which every macOS bundle now carries (#329) 2026-10-28 21:41:05 -04:00
Kit Langton a619374faf Release: lay out the DMG window from packaging/macos/dmg (t423) (#304)
build-macos ships the background TIFF and Finder's .DS_Store beside Hex.app.zip; sign-macos.sh checks both by magic number and size and copies them into the DMG as data.
2026-10-28 20:59:45 -04:00
Dax 2962074bfa Captures on Linux (portal, PipeWire, VA-API); capture compiled into macOS and Linux builds (#320)
* Captures on Linux: portal, PipeWire and VA-API behind the engine's platform seam; capture compiled into macOS and Linux builds

The capture engine's OS adapter gains capture/linux.rs: the screen-cast
portal (zbus) picks the screen (remembered with its restore token) or a
window, libpipewire and libva are loaded at run time, frames are imported
as DMA-BUFs and scaled and H.264-encoded on the GPU, and ffmpeg muxes and
reads movies back. Software x264 is the fallback.

capture_host, the capsule, the pane, routing and the CLI are shared; the
Linux listener feeds a ListenerTimeline, its portal or X11 grabs bind the
capture shortcut, and the summary goes through Hex's Linux clipboard.
The capture feature flag is gone: macOS and Linux always compile the
experiment, off by default.

* Docs: captures on Linux, the experiment in every macOS and Linux build; token path from Hex

* Capture portal: register Hex's app id so the desktop keeps its screen choice

* Fix macOS test build after the capture seam

* Linux: size X11 shortcut state for the capture shortcut; keep macOS-layout capsule tests on macOS

* Windows: the capture word timestamps field is Linux's
2026-10-28 20:58:27 -04:00
Dax e3f18e3240 Release: publish through the release service's shared client (publish sessions), replacing per-request OIDC tokens (#325) 2026-10-28 20:40:35 -04:00
Dax bda7591ff1 Release: retry release service requests in the script, each with a fresh OIDC token (#322)
curl's own --retry reused the request's token, so a retry after a slow or
stalled upload could still hit 401 token expired. Retries now happen in the
script (up to 4 attempts on a failed transfer or a 429/5xx, each logged),
every attempt mints its own token, and a transfer stalled below 1 KB/s for a
minute is abandoned and retried. Multipart part PUTs and the finalize POST go
through the same path. Ports anomalyco/hokum 86d5ce3.
2026-10-28 20:11:09 -04:00