49 Commits
Author SHA1 Message Date
Kit Langton 1b4a18e943 chore: prune dead modules, fixtures, and stale docs across repo (#3180)
Removes 28 dead or duplicate files, prunes unused dependencies and inactive feature flags, ratchets file-size ceilings down by 369 lines, scrubs private paths/hostnames/model codenames/dated logs across tests and docs, and fixes pre-existing rustfmt drift.
2026-11-30 16:21:25 -08:00
Kit Langton d936b20738 docs(repo): prune AGENTS.md and finished plans (#2905) 2026-11-26 09:31:04 -08:00
Kit Langton 012bdbbebe Site: /hex/changelog, the stable changelog built from docs/releases (#2884)
Every docs/releases/<X.Y.Z>.md becomes an entry on one static page, newest
first, with its anchor, GitHub release link, sections, and callouts. The
landing page's footer and /hex/dev link it, and it is in the sitemap and
llms.txt.

Docs after 3.5.0: drop the lifted release freeze, describe the release
thread cadence in docs/releasing.md, and say README's download links are
version-less.
2026-11-25 23:06:52 -08: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 Raad 7476ecf30f ci: dispatch hex releases from dev 2026-11-11 13:23:54 -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 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
Kit Langton ffea9ef19e Keep the old Sparkle key so 2.3.1 and Swift Hex can update into the new Hex (t1217) (#1092) 2026-11-02 21:44:19 -08: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 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
Kit Langton 7ed8da3ed3 Release prep: Hex 3.0.0 version and notes (#474) 2026-10-30 07:21:48 -07:00
Kit Langton 5d9c397d3a Stage the redirect from Kit's old download hosts to anoma.ly/hex/files (#472) 2026-10-30 07:11:06 -07: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
Kit Langton 7009a07025 Drop Input Monitoring; Accessibility covers the shortcut (t496)
* Drop Input Monitoring: Accessibility covers the shortcut taps (t496)

* Regenerate goldens without the Input Monitoring row (t496)

* Regenerate the permissions golden after merging dev (t496)
2026-10-28 13:59:57 -07:00
Dax 93ebefcaef Release: dev releases never cancel each other (#307)
cancel-in-progress is now false for every channel: a running release finishes, and GitHub keeps only the newest pending run in the channel's group, replacing older pending ones. Before, each push to dev cancelled the release in progress, so with frequent merges nothing published (the QuickJS release was cancelled at its last step). Stable was already false; the reusable workflows and .github/release/ set no concurrency; installers.yml already queues.
2026-10-28 15:27:29 -04:00
Dax 25c9be7185 Installers: serve the current install scripts at the production URLs; default to dev until there is a stable release (#298)
https://anoma.ly/hex/files/install-linux.sh and install-windows.ps1 still served the 2.3.1 installers (Kit's frozen feed, ~/.local/share/voice-control). A new Installers workflow tests scripts/install-linux-release.sh and install-windows.ps1 without secrets and uploads them over those keys with .github/release/r2-put.sh, on every change to them on dev. Nothing else reads those keys: the 2.3.1 updaters read the frozen feeds and appcast. With HEX_INSTALL_CHANNEL unset, the installers now install the stable release, or the newest dev build (on the Dev update channel, with a message) while the release service has none, so the README's command works today.
2026-10-28 13:48:03 -04:00
Kit Langton 89ede6c3a5 Local builds never offer updates and show their commit (#259) 2026-10-27 21:10:08 -07:00
Dax 197ea1883c Linux ARM64, .deb, and .rpm releases (#239)
* Linux ARM64, .deb, and .rpm releases

Both Linux architectures build natively on Ubuntu 24.04 runners (glibc 2.39
floor, Vulkan on both), publish linux-arm64 plus linux-<arch>-deb and -rpm
(hex.deb, hex.rpm) built with nfpm and installed on Ubuntu and Fedora in the
build job. hex-bin gains aarch64. Package installs report deb-<arch> or
rpm-<arch> through dpkg/rpm ownership and get the stable update command.

* build-linux.sh prints only the executable's path

* Linux releases link no system BLAS, as the Arch build shipped

* Linux build: keep libopenblas-dev for build.rs's dropped -lopenblas
2026-10-27 21:50:19 -04:00
Dax 4d804b8fb7 fix(site): deploy the site from a secretless build through a locked script (#248)
Security finding #528: Site ran site/ code (bun install, build.ts, vite)
in the release environment with a Cloudflare token that can write every
Worker. Site deploy now builds without an environment or secret, uploads
the Build Output with its SHA256SUMS digest, and deploys it from a job
that checks out only .github/release/, verifies the digest, and runs
deploy-site.sh: it refuses any Worker, route, or binding other than the
mode's site Worker and deploys with the cf CLI locked in
.github/release/cf/. Legacy appcast checks out only .github/release/ and
the appcast, and r2-put.sh moves under the boundary.

The deploy token is now hex-site-deploy (Scripts + anoma.ly Routes, no
R2) and the appcast key hex-r2-production-files (one bucket).
2026-10-27 21:19:57 -04:00
Dax 9ce414d264 Rename the Release workflow to release.yml, like OpenCode (#236) 2026-10-27 19:56:46 -04:00
Dax Raad 58e7d6724b ci(release): tag and create the GitHub release with GITHUB_TOKEN; no tag ruleset or deploy key
Tags trigger nothing, so v* tags are unrestricted. The release deploy key, its HEX_RELEASE_TAG_KEY secret, and the tag ruleset are gone. The final job (contents: write, no environment) pushes v<version> on the released commit with the built-in token after everything published, then creates the GitHub release; a check run pushes and deletes a throwaway v0.0.0-test-<run> tag with the same token.
2026-10-27 18:35:45 -04:00
Dax Raad b6d3676384 ci(release): tags never start a release; stable tags v<version> last, like OpenCode
Release no longer runs on tag pushes; stable is a dispatch from production only and refuses a version already tagged v<version> or app-v<version>. After every platform and the release service published, a tag job pushes v<version> on the released commit with the release deploy key (HEX_RELEASE_TAG_KEY, admitted by the new v* tag ruleset), then the GitHub release mirrors the files on that tag; a failed run leaves no tag. A check run pushes and deletes a throwaway v0.0.0-test-<run> tag to prove the ruleset admits the key. The release environment now admits only dev and production.
2026-10-27 18:09:05 -04:00
Dax Raad 099070a20c ci(release): unpack a lone artifact under its name, keep Windows builds' tree clean; CODEOWNERS for .github
download-artifact unpacks a single matching artifact straight into the download folder; verify-artifacts.sh now files it under the name whose reported digest its SHA256SUMS has. The Windows build checks out into source/ because the Vulkan SDK installs into the workspace. verify-macos runs only after sign-macos succeeds. .github/CODEOWNERS names @thdxr; docs describe the split release.
2026-10-27 17:26:20 -04:00
Dax Raad b2db0c71ab ci(release): one release environment, like OpenCode
Dev-channel, check, and stable runs all use release, which no longer requires a reviewer and admits dev, production, and app-v* tags; the release service ties the dev channel to dev and stable to production/app-v*. release-dev is retired.
2026-10-27 16:53:08 -04:00
Dax Raad fbc75abd67 ci(release): dev builds are 0.0.0-dev-<run>, like OpenCode; installers install what is asked
Dev and check runs stamp 0.0.0-dev-$GITHUB_RUN_NUMBER with no tag lookup; versions are display text that the release service and the updater never compare, so builds numbered below 2.3.1 are fine. macOS dev builds take the run number as CFBundleVersion. The Linux and Windows installers and the Windows Setup.exe no longer refuse to install a lower version than the one installed. Docs describe following the channel's current release, required releases, rollbacks, and confirmed channel switches. Also drops an unused import that failed Check macOS.
2026-10-27 16:25:18 -04:00
Dax Raad 7cc5c8bd6b ci(release): Hex never uses the release service's dev stage
dev.anoma.ly/release only tests the release service itself. The staging channel is gone: channel=check builds, signs, and verifies without publishing, and builds are tested before stable on anoma.ly/release's dev channel. The site (both environments), the Windows installer test, and the publish script read only anoma.ly/release. The installers take HEX_INSTALL_CHANNEL=dev to install the newest dev build onto the Dev update channel.
2026-10-27 14:07:09 -04:00
Dax Raad d6e4e70733 feat(release): every push to dev publishes a dev-channel build; Dev installs check every 10 minutes
Release runs on pushes to dev (not docs- or site-only ones) in the new release-dev environment, which needs no approval and which the release service lets publish only the dev channel; a newer push cancels a dev run in progress, and the nightly schedule is gone. Dev builds publish only signed platforms: macOS and Windows targets wait for their signing values in release-dev. Stable stays in release, behind Dax's approval. The updater checks the Dev channel every 10 minutes and when the window gains focus (at most once a minute).
2026-10-27 13:33:36 -04:00
Kit Langton a885ac0315 Add a dev update channel: Settings and hex settings choose Stable or Dev, Release publishes dev builds to anoma.ly/release, and /hex/download/dev links the newest Mac dev build 2026-10-27 08:32:08 -07:00
Dax Raad b468fc9fb8 ci(release): publish the Homebrew cask from the Release workflow
A homebrew job renders anomalyco/tap/hex from the published DMG (anomaly.hex, auto_updates, release-service livecheck, zap paths), checks it with brew style and brew audit on a macOS runner, and on stable pushes it to anomalyco/homebrew-tap with the deploy key github-actions-hex-homebrew; record-brew then records the brew distribution. The manual cask step and the brew-version dispatch are gone.
2026-10-27 09:42:17 -04:00
Kit Langton 0ed8354414 Move to dev and production branches
Work lands on dev, the default branch. production holds what was released
(app-v2.3.1) and moves only by a fast-forward from dev. Pushes to dev run the
checks, test builds, and the dev site deploy; stable releases run only from
production or an app-v tag, and the TypeScript SDK's version pull request
targets dev while publishing waits for production.
2026-10-25 06:46:14 -07:00
Dax Raad 135852bb31 ci(release): staging builds report the <version>-dev.<run> they publish
The updater refuses an update whose binary reports another version than the manifest, so staging stamps the prerelease into Cargo.toml and Cargo.lock before building; the AUR package spells it as pkgver X.Y.Z_dev.N.
2026-10-24 12:04:51 -04:00
Dax Raad aa592adde9 docs(releasing): the legacy appcast version and the Windows signer check 2026-10-24 11:23:46 -04:00
Dax Raad f606522abd docs(releasing): the cask keeps auto_updates true 2026-10-24 11:22:49 -04:00
Dax Raad fa0a7f89c9 ci(release): staging publishes <version>-dev.<run> on the dev service's dev channel; reruns are idempotent 2026-10-24 10:51:33 -04:00
Dax Raad 2d222022a5 feat(release): publish every platform to the Anomaly release service
The Release workflow uploads each target and the release to anoma.ly/release (dev.anoma.ly/release for staging) with curl and its GitHub OIDC token, records the AUR, Homebrew, and Nix distributions, mirrors the files to GitHub, and builds hex-bin from the published file. The ed25519 feeds, appcast generation, and Sparkle ZIP naming are gone; the 2.3.1 feeds stay frozen. Builds and installers use the release service names, the installers read the stable manifest and write the direct-install receipt, and the site reads its download links from the manifest.
2026-10-24 10:15:59 -04:00
Dax Raad df7f567dd8 feat(macos): the app is anomaly.hex, a new app to macOS, from the first Anomaly-signed release 2026-10-23 14:57:13 -04:00
Dax Raad df3f504756 packaging(aur): name the package hex-bin
It is the Hex voice dictation app, not a prebuilt of extra/hex (a hex dump tool that installs /usr/bin/hx), so it neither provides nor conflicts with it, and its description says so.
2026-10-23 14:51:18 -04:00
Dax Raad 3824b5a466 feat(site): name the Workers hex-dev-site and hex-production-site 2026-10-23 09:52:14 -04:00
Dax Raad cad5c0d541 docs(releasing): the Hex buckets are created once by hand 2026-10-23 09:38:55 -04:00
Dax Raad c88793b11a feat(release): serve Hex at anoma.ly/hex with its files at /hex/files
One site/cloudflare.config.ts defines the production Worker hex (anoma.ly/hex, bucket hex-production-files) and the dev Worker hex-dev (dev.anoma.ly/hex, bucket hex-dev-files), deployed only from CI with cf deploy --prebuilt --mode. The Worker serves the site and the release bucket; apps, scripts, the release workflow, and docs use https://anoma.ly/hex/files. Staging releases publish to the dev bucket; stable releases deploy the production site.
2026-10-23 08:57:57 -04:00
Dax Raad eba32f9e8d packaging(aur): depend on what the Rune build loads; note staging expiry 2026-10-23 00:59:09 -04:00
Dax Raad f57f610a34 ci(release): make the publish scripts executable 2026-10-23 00:02:08 -04:00
Dax Raad cd6a6db519 ci(release): one workflow builds, signs, and publishes to Anomaly's bucket, GitHub, and the AUR
A staging channel dry-runs the whole pipeline under staging/<run-id>/ with a draft GitHub release; uploads use the bucket-scoped R2 S3 credentials. Adds the hex-voice-bin AUR package and docs/releasing.md.
2026-10-22 23:34:46 -04:00