feat(voice): wire OMB web/desktop + Android dictation to cfx-mgmt realtime STT (#32) #34

Closed
orchestra wants to merge 0 commits from omb32-stt-wiring into main
Contributor

Refs #32

Points OMB dictation at the shared cfx-mgmt realtime STT (wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly). Tailscale-only, with a manual listen toggle and no auto endpointing.

Flush semantic (the same in every client): while the toggle is on, mic PCM16 at 16 kHz streams and partials update live. On toggle-off the mic keeps streaming for STT_PAUSE_FLUSH_MS = 1000, then {type:"stop"} is sent and the server's final (post.text, else text) is committed. If the socket drops, or no final arrives within 15 s, the last partial is kept.

File Why
src/lib/remote-stt.ts (+test) Web/desktop client: endpoint, tailnet-only guard (*.ts.net, 100.64/10), AudioWorklet capture, session start/flush/stop
src/components/Composer.tsx Remote STT comes before the macOS helper and also covers companion browsers; the mic stays visible while listening so it can be toggled off
android/core/.../RemoteStt.kt (+test) Wire protocol, STT_PAUSE_FLUSH_MS, STT_FINAL_TIMEOUT_MS
android/app/.../RemoteSttEngine.kt (+test) OkHttp WebSocket + AudioRecord engine; streams 1000 ms after toggle-off, then sends stop
android/app/.../SpeechDictation.kt (+test) Toggle-off triggers finish; remote STT is the first opener, with on-device/platform recognizers as fallback

No server, deploy, Cloudflare or route changes.

Evidence

  • tsc -b clean; oxlint clean on the changed files.
  • vitest run src: 235 files, 2147 tests passed. The full-repo run (server suites) hit the 10-minute agent limit and was not completed.
  • Android (nix shell nixpkgs#jdk17 -c ./gradlew --offline): :app:testDebugUnitTest 962/962 passed; :core:test --tests '*RemoteStt*' 9/9 passed. The unfiltered :core:test has 1 failure, ConnectionTest.zonedIpv6UsesScopedAddressOnTheRealOkHttpConnectPath. It's a container IPv6 test this PR doesn't touch, and I didn't run it on main to confirm the failure is there too.
  • Live run of the real remote-stt.ts against the cfx-mgmt endpoint with a synthetic espeak clip: partials from 1.8 s; the 1000 ms flush after toggle-off caught the last words; final "Hello, this is a test on the remote speech-to-text wiring" 1.37 s after toggle-off.

Untested: Electron/browser UI by hand, and a real Android device.

🤖 Generated with Claude Code

Refs #32 Points OMB dictation at the shared cfx-mgmt realtime STT (`wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly`). Tailscale-only, with a manual listen toggle and no auto endpointing. **Flush semantic (the same in every client):** while the toggle is on, mic PCM16 at 16 kHz streams and partials update live. On toggle-off the mic keeps streaming for `STT_PAUSE_FLUSH_MS = 1000`, then `{type:"stop"}` is sent and the server's final (`post.text`, else `text`) is committed. If the socket drops, or no final arrives within 15 s, the last partial is kept. | File | Why | |---|---| | `src/lib/remote-stt.ts` (+test) | Web/desktop client: endpoint, tailnet-only guard (`*.ts.net`, 100.64/10), AudioWorklet capture, session start/flush/stop | | `src/components/Composer.tsx` | Remote STT comes before the macOS helper and also covers companion browsers; the mic stays visible while listening so it can be toggled off | | `android/core/.../RemoteStt.kt` (+test) | Wire protocol, `STT_PAUSE_FLUSH_MS`, `STT_FINAL_TIMEOUT_MS` | | `android/app/.../RemoteSttEngine.kt` (+test) | OkHttp WebSocket + AudioRecord engine; streams 1000 ms after toggle-off, then sends stop | | `android/app/.../SpeechDictation.kt` (+test) | Toggle-off triggers finish; remote STT is the first opener, with on-device/platform recognizers as fallback | No server, deploy, Cloudflare or route changes. **Evidence** - `tsc -b` clean; oxlint clean on the changed files. - `vitest run src`: 235 files, 2147 tests passed. The full-repo run (server suites) hit the 10-minute agent limit and was not completed. - Android (`nix shell nixpkgs#jdk17 -c ./gradlew --offline`): `:app:testDebugUnitTest` 962/962 passed; `:core:test --tests '*RemoteStt*'` 9/9 passed. The unfiltered `:core:test` has 1 failure, `ConnectionTest.zonedIpv6UsesScopedAddressOnTheRealOkHttpConnectPath`. It's a container IPv6 test this PR doesn't touch, and I didn't run it on main to confirm the failure is there too. - Live run of the real `remote-stt.ts` against the cfx-mgmt endpoint with a synthetic espeak clip: partials from 1.8 s; the 1000 ms flush after toggle-off caught the last words; final "Hello, this is a test on the remote speech-to-text wiring" 1.37 s after toggle-off. **Untested:** Electron/browser UI by hand, and a real Android device. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Composer dictation streams to the fleet STT service
(wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly)
with a manual listen toggle: tap to stream partials, tap again to keep
feeding the mic for STT_PAUSE_FLUSH_MS (1000 ms) before sending stop and
committing the server's final transcript. No silence endpointing.

Remote STT takes priority over the macOS helper and also serves
companion browsers, which have no native bridge. Only tailnet hosts
(*.ts.net, 100.64.0.0/10) are accepted; an optional scoped token rides
the `token` query parameter like companion pairing links.

Refs #32

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(android): companion dictation via cfx-mgmt realtime STT (#32)
Some checks failed
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
CI / typecheck + lint (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (macos-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (ubuntu-latest, shard 4/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 1/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 2/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 3/4) (pull_request) Has been cancelled
CI / vitest (windows-latest, shard 4/4) (pull_request) Has been cancelled
CI / packaged server smoke (macos-latest) (pull_request) Has been cancelled
CI / packaged server smoke (ubuntu-latest) (pull_request) Has been cancelled
CI / packaged server smoke (windows-latest) (pull_request) Has been cancelled
CI / Windows CUA host smoke (pull_request) Has been cancelled
CI / Electron smokes (macOS) (pull_request) Has been cancelled
CI / typecheck + test (macos-latest) (pull_request) Has been cancelled
CI / typecheck + test (ubuntu-latest) (pull_request) Has been cancelled
CI / typecheck + test (windows-latest) (pull_request) Has been cancelled
CI / cloudflared installer (Linux ARM64) (pull_request) Has been cancelled
CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
CI / renderer smoke (control-omb ui, Ubuntu 24.04) (pull_request) Has been cancelled
CI / package + smoke (Ubuntu 24.04 x64) (pull_request) Has been cancelled
CI / Swift tests + iOS build + thread UI (pull_request) Has been cancelled
CI / Kotlin tests + Android build (pull_request) Has been cancelled
7172de85ec
The composer's dictation opens the shared Tailscale-only STT endpoint
(wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly)
first, degrading to on-device and platform recognizers when it fails.
Manual listen toggle, no endpointing: partials replace the transcript
while listening; toggle-off keeps streaming mic audio for
STT_PAUSE_FLUSH_MS (1000 ms), then sends stop and commits the server's
final. If no final arrives within STT_FINAL_TIMEOUT_MS the session ends
and the last partial stays.

Refs #32

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Contributor

CI cause: this isn't a test failure, so no CI runs at all. Every ci.yml run in donach/openmausbot has ended cancelled/blocked after 0 s with no job started, main pushes included (#6533, #6523, #6519, …). The workflows are upstream GitHub ones, .github/workflows/ci.yml. They need ubuntu-latest, macos-latest, windows-latest and ubuntu-24.04-arm runners, and no Forgejo runner advertises those labels. On 2026-11-04 13:23 Forgejo cancelled the stale queued jobs and posted them as failure ("Has been cancelled"). Re-triggering would only queue jobs that get cancelled again. A real fix means adding a Forgejo workflow (.forgejo/workflows/ci.yml) on the fleet nix-ci runner label, as bitpartner/nixos-llm does: typecheck plus Linux vitest/gradle. That changes CI for the whole repo, so it needs D.H.'s go-ahead; I haven't done it.

Local evidence for this head (7172de85) is in the PR body: tsc -b clean, vitest src 2147/2147, Android app 962/962, RemoteStt core 9/9. The leftover dirty Android files in the openmausbot-stt32 worktree are byte-identical to this head, so there's nothing more to fold in.

**CI cause: this isn't a test failure, so no CI runs at all.** Every `ci.yml` run in donach/openmausbot has ended `cancelled`/`blocked` after 0 s with no job started, `main` pushes included (#6533, #6523, #6519, …). The workflows are upstream GitHub ones, `.github/workflows/ci.yml`. They need `ubuntu-latest`, `macos-latest`, `windows-latest` and `ubuntu-24.04-arm` runners, and no Forgejo runner advertises those labels. On 2026-11-04 13:23 Forgejo cancelled the stale queued jobs and posted them as `failure` ("Has been cancelled"). Re-triggering would only queue jobs that get cancelled again. A real fix means adding a Forgejo workflow (`.forgejo/workflows/ci.yml`) on the fleet `nix-ci` runner label, as bitpartner/nixos-llm does: typecheck plus Linux vitest/gradle. That changes CI for the whole repo, so it needs D.H.'s go-ahead; I haven't done it. Local evidence for this head (7172de85) is in the PR body: `tsc -b` clean, vitest `src` 2147/2147, Android app 962/962, RemoteStt core 9/9. The leftover dirty Android files in the `openmausbot-stt32` worktree are byte-identical to this head, so there's nothing more to fold in.
Author
Contributor

Proposal (draft only, not applied): Forgejo CI for donach/openmausbot

Why every run is cancelled: .github/workflows/* come from upstream and need GitHub-hosted ubuntu-latest, macos-latest, windows-latest and ubuntu-24.04-arm runners. No Forgejo runner offers those labels, so jobs queue until Forgejo cancels them. That's the "mass failure" on #34 on 2026-11-04 and the stuck "blocked" run on #33.

Proposal: add .forgejo/workflows/ci.yml on the fleet nix-ci runner, the way bitpartner/nixos-llm does. Forgejo reads only .forgejo/workflows/ when that directory exists, so the upstream .github/ files stay in the tree for rebases but stop queueing jobs here.

Coverage is Linux only: static checks, the renderer vitest suite, and the Android JVM unit tests. macOS/Windows packaging and the arm smoke have no fleet runner and would stay uncovered.

name: omb-ci
on:
  pull_request:
    branches: [main]
  push:
    branches: [main]
env:
  GIT_TERMINAL_PROMPT: "0"
jobs:
  web:
    name: typecheck + lint + vitest (linux)
    runs-on: nix-ci
    timeout-minutes: 40
    steps:
      - name: Checkout
        env: { CI_TOKEN: "${{ github.token }}" }
        run: |
          set -euo pipefail
          basic="$(printf 'x-access-token:%s' "$CI_TOKEN" | base64 -w0)"
          git init -q . && git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
          git -c "http.extraheader=Authorization: basic $basic" fetch -q --depth=1 origin "$GITHUB_SHA"
          git checkout -q FETCH_HEAD
      - name: Install, typecheck, lint, test
        run: |
          nix shell nixpkgs#nodejs_24 nixpkgs#pnpm_10 -c bash -euo pipefail -c '
            pnpm install --frozen-lockfile
            pnpm i18n:check
            pnpm typecheck
            pnpm lint
            pnpm exec vitest run
          '
  android:
    name: android unit tests
    runs-on: nix-ci
    timeout-minutes: 30
    steps:
      - name: Checkout
        env: { CI_TOKEN: "${{ github.token }}" }
        run: |
          set -euo pipefail
          basic="$(printf 'x-access-token:%s' "$CI_TOKEN" | base64 -w0)"
          git init -q . && git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
          git -c "http.extraheader=Authorization: basic $basic" fetch -q --depth=1 origin "$GITHUB_SHA"
          git checkout -q FETCH_HEAD
      - name: Gradle unit tests
        working-directory: android
        run: nix shell nixpkgs#jdk17 -c ./gradlew --no-daemon :core:test :app:testDebugUnitTest

Open questions before applying:

  • Capacity. The full vitest run took over 10 minutes here. Is nix-ci capacity fine for that per PR, or should we shard it, or run only vitest run src?
  • A known failure. Locally, :core:test has one failure, a zoned-IPv6 ConnectionTest that depends on the container network. It may need excluding on the runner.
  • Branch protection. Do the required checks on main need to change? The upstream gate names won't exist any more.

Applying means one commit that adds this single file, on a branch, with a PR. Say go and I'll open it. #33 and #34 then need a rebase or re-push to pick it up.

## Proposal (draft only, not applied): Forgejo CI for donach/openmausbot **Why every run is cancelled:** `.github/workflows/*` come from upstream and need GitHub-hosted `ubuntu-latest`, `macos-latest`, `windows-latest` and `ubuntu-24.04-arm` runners. No Forgejo runner offers those labels, so jobs queue until Forgejo cancels them. That's the "mass failure" on #34 on 2026-11-04 and the stuck "blocked" run on #33. **Proposal:** add `.forgejo/workflows/ci.yml` on the fleet `nix-ci` runner, the way bitpartner/nixos-llm does. Forgejo reads only `.forgejo/workflows/` when that directory exists, so the upstream `.github/` files stay in the tree for rebases but stop queueing jobs here. Coverage is Linux only: static checks, the renderer vitest suite, and the Android JVM unit tests. macOS/Windows packaging and the arm smoke have no fleet runner and would stay uncovered. ```yaml name: omb-ci on: pull_request: branches: [main] push: branches: [main] env: GIT_TERMINAL_PROMPT: "0" jobs: web: name: typecheck + lint + vitest (linux) runs-on: nix-ci timeout-minutes: 40 steps: - name: Checkout env: { CI_TOKEN: "${{ github.token }}" } run: | set -euo pipefail basic="$(printf 'x-access-token:%s' "$CI_TOKEN" | base64 -w0)" git init -q . && git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" git -c "http.extraheader=Authorization: basic $basic" fetch -q --depth=1 origin "$GITHUB_SHA" git checkout -q FETCH_HEAD - name: Install, typecheck, lint, test run: | nix shell nixpkgs#nodejs_24 nixpkgs#pnpm_10 -c bash -euo pipefail -c ' pnpm install --frozen-lockfile pnpm i18n:check pnpm typecheck pnpm lint pnpm exec vitest run ' android: name: android unit tests runs-on: nix-ci timeout-minutes: 30 steps: - name: Checkout env: { CI_TOKEN: "${{ github.token }}" } run: | set -euo pipefail basic="$(printf 'x-access-token:%s' "$CI_TOKEN" | base64 -w0)" git init -q . && git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" git -c "http.extraheader=Authorization: basic $basic" fetch -q --depth=1 origin "$GITHUB_SHA" git checkout -q FETCH_HEAD - name: Gradle unit tests working-directory: android run: nix shell nixpkgs#jdk17 -c ./gradlew --no-daemon :core:test :app:testDebugUnitTest ``` **Open questions before applying:** - **Capacity.** The full vitest run took over 10 minutes here. Is `nix-ci` capacity fine for that per PR, or should we shard it, or run only `vitest run src`? - **A known failure.** Locally, `:core:test` has one failure, a zoned-IPv6 `ConnectionTest` that depends on the container network. It may need excluding on the runner. - **Branch protection.** Do the required checks on `main` need to change? The upstream gate names won't exist any more. Applying means one commit that adds this single file, on a branch, with a PR. Say go and I'll open it. #33 and #34 then need a rebase or re-push to pick it up.
ci(forgejo): Nix-native fleet CI for Linux and Android (#34)
Some checks failed
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Has been cancelled
Fleet CI / packaged server smoke (Linux) (pull_request) Has been cancelled
Fleet CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Has been cancelled
Fleet CI / fleet CI gate (pull_request) Has been cancelled
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Has been cancelled
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Has been cancelled
02d9633d02
Forgejo reads .forgejo/workflows instead of .github/workflows. Per the
owner's revised scope, run Linux and Android CI on the fleet's nix-ci
runner and drop the Windows and macOS legs (ARM deferred). .github
workflows stay unchanged for GitHub.

- .forgejo/workflows/ci.yml: plain-git checkout (token only to this
  Forgejo, via env), sandboxed `nix build` of the app package plus a
  --rebuild reproducibility check, static, vitest 4 shards
  (+ broker and Electron unit tests), packaged-server, FOSS,
  control-plane, Android core+app JVM tests with debug/preview APKs,
  and a fail-closed gate requiring every job.
- nix/ci-shells.nix: pinned dev shells (Node 24, pnpm 10, nixpkgs
  Electron 43 via ELECTRON_OVERRIDE_DIST_PATH, Pillow, xvfb-run,
  OpenSSH; JDK 17 + Android SDK 37 with the SDK aapt2).
- scripts/ci/forgejo-job.sh: per-job throwaway HOME/caches/TMPDIR/ports,
  no sudo, docker or runner HOME, and fail-closed capability checks
  (ssh, Pillow, X display, nix-ld shim, IPv4+IPv6 loopback).
- Three tests that self-skipped on a missing tool now fail under
  OMB_REQUIRE_TEST_CAPABILITIES=1; vps-ssh also finds ssh on PATH.
- docs/forgejo-ci.md: scope, adaptations and explicit exclusions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): bounded, non-prompting checkout with failure diagnostics
Some checks failed
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 7m59s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 10m15s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Failing after 12m36s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Failing after 15m5s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Failing after 12m30s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 3m19s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 2m27s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 2m19s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Failing after 18m37s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Failing after 7m43s
Fleet CI / fleet CI gate (pull_request) Failing after 0s
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
fa7e2fe230
Run 72's first two jobs sat in the checkout step with no output past the
script echo. A 401 or stalled fetch makes git wait for a username on the
job's pty with nothing in the log (the fleet's own nixos-llm CI hit the
same in run #1134). Set GIT_TERMINAL_PROMPT=0 workflow-wide, bound the
fetch (timeout 600, low-speed abort, 15-min step cap), and on failure
print the elapsed time and the HTTP status of an authenticated
info/refs probe (header passed to curl on stdin, never argv). Also set
NIX_CONFIG flakes features as the fleet CI does, and document why the
legacy contributors run waits on PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): fix run 74 failures on the NixOS runner, each cause proven
Some checks failed
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 6m11s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 7m50s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 7m39s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 8m50s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 11m18s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 1m48s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 3m42s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Failing after 14m18s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 6m31s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Successful in 10m27s
Fleet CI / fleet CI gate (pull_request) Failing after 1s
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
3441cae9b6
Run 74 failed in all four vitest shards and in Android. Each cause was
reproduced locally with the runner's layout, then fixed. No test is skipped
and no assertion or timeout is changed.

- Test TMPDIR: `nix develop` nests nix-shell.XXXXXX inside the runner's
  /var/lib/atticd/ci-tmp. This had two effects:
  - Fixture Unix socket paths were 115-130 bytes, over Linux's 107. The
    permission broker's listen failed with EINVAL and every fake agent
    turn timed out.
  - The DEB hooks accept a test root only under /tmp.
  Tests now get a short private /tmp/omb-ci.XXXXXX, as on GitHub's Ubuntu.
  Stores stay in the runner's TMPDIR (OMB_CI_TMPDIR). Preflight fails
  closed if the socket path would be too long.
- Android: the JVM took user.home from the DynamicUser passwd entry ("/").
  Robolectric then failed with "Couldn't create lock file
  /.robolectric-download-lock" (MavenDependencyResolver:111). Every JVM now
  gets -Duser.home=<job home> through JAVA_TOOL_OPTIONS.
- Electron: ELECTRON_OVERRIDE_DIST_PATH now points at the real
  electron_43-bin dist dir, not its bin/ wrapper. require("electron") then
  matches Electron's process.execPath, which local-computer-proxy asserts.
- Host binaries missing on NixOS:
  - The engine-install and registry fake npms get `node` beside them in
    their own PATH dir.
  - The fifo test uses mkfifo from PATH when /usr/bin/mkfifo is absent.
  - The escape test in linux-after-install no longer assumes
    os.tmpdir() is exactly /tmp. It now passes a genuinely unnormalized
    /tmp/.../.. path.
- Product: container-computer looked for docker/podman only with
  /usr/bin/which, so NixOS never found a Local VM runtime. It now falls
  back to the `which` on PATH, only when /usr/bin/which does not exist.
  A new unit test covers this and fails with the fallback removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The pinned CI shell now provides dbus-run-session (nixpkgs dbus), and
  preflight requires it. electron/vendor-updater.node-test.mjs's
  single-instance relaunch test used to skip itself without a session bus;
  it now runs and passes.
  - Local test:electron: 437 tests, 432 pass, 0 fail, 5 skipped.
  - Run 76 had 431 pass and 6 skipped.
  - The 5 remaining skips are inherent to Linux: 3 are Windows-only and
    2 need a case- or normalization-insensitive filesystem.
- docs: the DEB hook tests (scripts/linux-after-install.test.mjs) fail on
  the Nixos runner with "chmod: Operation not permitted" on chrome-sandbox.
  The runner's systemd DynamicUser implies RestrictSUIDSGID, which refuses
  to set setuid bits, and the tests assert mode 04755. The tests are not
  skipped, mocked or weakened. This is an open blocker for the owner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): run the browser UI e2e suite with pinned agent-browser; report skips, Android counts and APK digests
Some checks failed
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 4m13s
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 5m12s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Failing after 18m45s
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Has been cancelled
Fleet CI / packaged server smoke (Linux) (pull_request) Has been cancelled
Fleet CI / open-source edition builds without enterprise/ (pull_request) Has been cancelled
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Has been cancelled
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Has been cancelled
Fleet CI / fleet CI gate (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Has been cancelled
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Has been cancelled
e65a08b023
- The ci shell pins nixpkgs agent-browser (0.38.1, wrapping nixpkgs
  Chromium). Preflight requires it, and jobs set OMB_UI_E2E=1, so the 20
  scripts/testing/*.e2e.test.ts files run instead of skipping. A missing
  browser now fails the job rather than shrinking the suite.
  - Run 76 skipped them (6 files in shard 1), as GitHub's Linux shards do.
  - Locally: 20 files, 22/22 tests pass, including the opt-in
    routine-run-feedback UI test.
  - This expands Linux coverage beyond GitHub. It does not replace the
    separate ui-smoke job.
- scripts/ci/test-report.py (pinned Python) prints:
  - after each vitest shard, every skipped or todo test by name, from
    vitest's JSON report;
  - after Android, the JUnit tests, failures, errors and skips per module,
    each skipped test, and each APK's size and SHA-256.
  Missing result files or APKs are an error. A failing vitest run still
  fails the job, after the list is printed.
- The android shell gains python3 for the report.

The DEB hook tests stay red. The runner's RestrictSUIDSGID refuses their
setuid chmod; see docs/forgejo-ci.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's scope decision, relayed by the CoS on card t372s1745
(2026-11-07 18:59 CET): exclude DEB-specific packaging tests from this
Nix-native CI, document the exclusion, and keep the runner's security
settings.

- The vitest shards pass exactly one exclusion:
  --exclude scripts/linux-after-install.test.mjs.
- Measured with `vitest list`: 710 -> 709 files and 8941 -> 8914 tests.
  The 27 removed tests are all from that file, and no test appears or
  disappears anywhere else.
- Those tests set mode 04755 on a job-owned chrome-sandbox fixture. The
  runner's DynamicUser implies RestrictSUIDSGID, which refuses that
  (run 76: "chmod: Operation not permitted"; bitpartner/nixos-llm
  d34cf97d, modules/apps/forgejo-runner/nixos-llm.nix).
- The test file and the hook are unchanged and still run under
  `pnpm test` elsewhere. docs/forgejo-ci.md records the exclusion and why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): give the UI e2e harness pinned nixpkgs Chromium instead of a Chrome download
Some checks failed
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 13m9s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 7m0s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 12m48s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 11m10s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 8m35s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 2m41s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 2m41s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 13m0s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m59s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Failing after 4m16s
Fleet CI / fleet CI gate (pull_request) Failing after 0s
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
885471e155
Run 78 failed 7 UI tests in shard 2 alone, with timeouts in shards 1
and 2. The error was "agent-browser open failed: Chrome exited early 127,
no DevToolsActivePort", with the browser under
.omb-scratch/verify-tools/.agent-browser/browsers/chrome-...

Cause: the pinned agent-browser 0.38.1 is a bare binary with no browser
of its own; e65a08b0's note that it wraps Chromium was wrong. With no
AGENT_BROWSER_EXECUTABLE_PATH, the harness
(scripts/testing/control-omb-ui.ts ensureUiBrowser) downloads Chrome for
Testing. That is an unpinned generic Linux build, and on NixOS it cannot
start (exit 127). An earlier local run reused a Chrome for Testing an
older run had already downloaded, so it did not exercise this path.

Fix: the ci shell sets AGENT_BROWSER_EXECUTABLE_PATH to nixpkgs Chromium
(154.0.8037.57), and preflight fails if it is missing. The harness then
takes its explicit-browser branch and never downloads.

Validated in a fresh worktree, starting with no .omb-scratch, one worker:
- all 20 UI e2e files and 22/22 tests pass, including team-canvas,
  bot-tools, control-omb, team-lifecycle and thinking-timer;
- no browsers directory was created under .omb-scratch/verify-tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 80's android job failed only because Maven Central answered HTTP 429
to a Robolectric jar (nativeruntime-dist-compat 1.0.18). Nothing in the
job is downloaded any more:

- nix/android-deps.json pins every remote file the CI tasks need by URL
  and SHA-256: 1,292 Maven files (Google Maven, Maven Central, plugin
  portal) and Robolectric's android-all-instrumented jars for SDK 26, 30
  and 34, which Robolectric fetches itself outside Gradle.
- nix/android-deps.nix fetches them as fixed-output derivations into a
  Maven-layout directory and a flat Robolectric directory, plus the
  Gradle 9.5.0 distribution the wrapper names (the job fails if they
  diverge). The fleet builder pushes realised paths to the cluster Attic
  cache, which every fleet host substitutes from.
- The job runs `gradle --offline` with an init script that puts the
  pinned repository first, and Robolectric with robolectric.offline and
  robolectric.dependency.dir via JAVA_TOOL_OPTIONS. A file missing from
  the pin fails the build instead of being downloaded.
- scripts/ci/android-deps.py regenerates the pin from one online build:
  URLs from Gradle's download index, hashes from the files, cross-checked
  against Gradle's verification metadata; it fails rather than write a
  partial pin.

android/ is unchanged; all tasks, tests and APKs are the same.

Validated locally with no network (a network namespace with only lo):
87/87 tasks executed, :app:testDebugUnitTest 962 tests / 0 failures
(Robolectric included), both APKs built (39085098 and 39083967 bytes, as
in run 76). :core:test ran 598 with only the known host-only zoned-IPv6
failure, which passes on the fleet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): keep companion APKs as artifacts; prerelease them from main
Some checks failed
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 9m17s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 5m25s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Failing after 2m37s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 11m4s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 11m18s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 2m27s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 5m7s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 14m49s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m3s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Failing after 6m44s
Fleet CI / fleet CI gate (pull_request) Failing after 0s
Fleet CI / companion APK prerelease (main) (pull_request) Has been skipped
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
120b3f91a5
- android job: copies app-debug.apk and app-preview.apk with a SHA256SUMS
  file to ci-artifacts/android and uploads them as companion-apks-<sha>
  (14 days) on every run, with Forgejo's upload-artifact fork pinned by
  commit (GitHub's v4 refuses a non-GitHub server). Both fleet runners
  have nodejs in their host packages for it.
- companion-release job: on pushes to main only, after the fleet CI gate
  passed, downloads that artifact, checks SHA256SUMS, and attaches the
  three files to the prerelease companion-<commit date UTC>-<sha12>
  (scripts/ci/forgejo-release.sh, in a minimal pinned shell). A rerun of
  the same commit replaces that release's assets.
- Auth is only the workflow job token (permissions: contents: write). If
  Forgejo does not grant release write, the job fails naming the status
  and the need; no other credential is used. The token goes to curl
  through a stdin config, never argv.
- Signing is the build's per-job Android debug key, so successive builds
  do not install over each other; a stable key would be a new
  credential and is left to the owner (docs/forgejo-ci.md).

Release script exercised against a local TLS mock of the Forgejo API:
create, rerun (assets replaced), read-only token (fails naming HTTP 403
and the need), tampered APK (fails before any request); uploaded bytes
match SHA256SUMS and the token appears in no logged request line.
The upload/download actions and the real release run first on Forgejo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci(forgejo): pin forgejo upload/download-artifact tips that disable GHES check
Some checks failed
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 7m41s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 5m50s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 12m34s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 11m14s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 9m19s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 4m39s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 13m56s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 4m44s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m58s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Successful in 8m50s
Fleet CI / fleet CI gate (pull_request) Successful in 9s
Fleet CI / companion APK prerelease (main) (pull_request) Has been skipped
Fleet CI / nix build (sandboxed app package, rebuild check) (push) Successful in 8m52s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (push) Successful in 6m27s
Fleet CI / vitest (Linux, shard 1/4) (push) Failing after 9m23s
Fleet CI / vitest (Linux, shard 2/4) (push) Successful in 10m54s
Fleet CI / vitest (Linux, shard 3/4) (push) Successful in 8m39s
Fleet CI / packaged server smoke (Linux) (push) Successful in 2m47s
Fleet CI / vitest (Linux, shard 4/4) (push) Successful in 13m16s
Fleet CI / open-source edition builds without enterprise/ (push) Successful in 5m6s
Fleet CI / control-plane check + workerd tests + dry run (push) Successful in 5m8s
Fleet CI / Kotlin tests + Android debug / preview build (push) Successful in 9m44s
Fleet CI / fleet CI gate (push) Has been cancelled
Fleet CI / companion APK prerelease (main) (push) Has been cancelled
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled
675468a778
Run 82's android job built and tested everything offline (core 598/0,
app 962/0, both APKs), then failed uploading the APKs with
GHESNotSupportedError. The pinned v4.3.1 (upload) and v4.1.4 (download)
tags of Forgejo's forks still carry upstream's GHES refusal; the fix is
the next commit on each fork's branch-v4, "v4.3.1: disable GHES check"
(16871d9e) and "v4.1.4: disable GHES check" (d8d0a990), which make
isGhes() return false in the shipped dist bundle. Verified upstream:
each is on branch-v4 with its tag commit as direct parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grok closed this pull request 2026-11-09 12:48:56 +01:00
Some checks failed
Fleet CI / nix build (sandboxed app package, rebuild check) (pull_request) Successful in 7m41s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (pull_request) Successful in 5m50s
Fleet CI / vitest (Linux, shard 1/4) (pull_request) Successful in 12m34s
Fleet CI / vitest (Linux, shard 2/4) (pull_request) Successful in 11m14s
Fleet CI / vitest (Linux, shard 3/4) (pull_request) Successful in 9m19s
Fleet CI / packaged server smoke (Linux) (pull_request) Successful in 4m39s
Fleet CI / vitest (Linux, shard 4/4) (pull_request) Successful in 13m56s
Fleet CI / open-source edition builds without enterprise/ (pull_request) Successful in 4m44s
Fleet CI / control-plane check + workerd tests + dry run (pull_request) Successful in 3m58s
Fleet CI / Kotlin tests + Android debug / preview build (pull_request) Successful in 8m50s
Fleet CI / fleet CI gate (pull_request) Successful in 9s
Fleet CI / companion APK prerelease (main) (pull_request) Has been skipped
Fleet CI / nix build (sandboxed app package, rebuild check) (push) Successful in 8m52s
Fleet CI / i18n + typecheck + lint + check:electron + vite build (push) Successful in 6m27s
Fleet CI / vitest (Linux, shard 1/4) (push) Failing after 9m23s
Fleet CI / vitest (Linux, shard 2/4) (push) Successful in 10m54s
Fleet CI / vitest (Linux, shard 3/4) (push) Successful in 8m39s
Fleet CI / packaged server smoke (Linux) (push) Successful in 2m47s
Fleet CI / vitest (Linux, shard 4/4) (push) Successful in 13m16s
Fleet CI / open-source edition builds without enterprise/ (push) Successful in 5m6s
Fleet CI / control-plane check + workerd tests + dry run (push) Successful in 5m8s
Fleet CI / Kotlin tests + Android debug / preview build (push) Successful in 9m44s
Fleet CI / fleet CI gate (push) Has been cancelled
Fleet CI / companion APK prerelease (main) (push) Has been cancelled
contributors / CLA for enterprise/ changes (pull_request_target) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/openmausbot!34
No description provided.