diff --git a/.github/actions/cloud-sql-rollout-lease/action-contract.test.mjs b/.github/actions/cloud-sql-rollout-lease/action-contract.test.mjs
deleted file mode 100644
index 4acfc3552da..00000000000
--- a/.github/actions/cloud-sql-rollout-lease/action-contract.test.mjs
+++ /dev/null
@@ -1,23 +0,0 @@
-import assert from 'node:assert/strict'
-import { readFileSync } from 'node:fs'
-import { test } from 'node:test'
-
-const here = new URL('./', import.meta.url)
-const action = readFileSync(new URL('action.yml', here), 'utf8')
-
-test('is a node24 JavaScript action with an always-run post step', () => {
- // A composite action has no `post:`, so the lease could never be released on cancel or failure.
- assert.match(action, /^ {2}using: node24$/m)
- assert.doesNotMatch(action, /using: composite/)
- assert.match(action, /^ {2}main: main\.mjs$/m)
- assert.match(action, /^ {2}post: post\.mjs$/m)
- assert.match(action, /^ {2}post-if: always\(\)$/m)
-})
-
-test('declares the inputs the wave-chain callers depend on', () => {
- for (const input of ['bucket:', 'object:', 'holder-key:', 'release:']) {
- assert.match(action, new RegExp(`^ {2}${input}$`, 'm'), input)
- }
- assert.match(action, /default: \$\{\{ github\.repository \}\}\/\$\{\{ github\.run_id \}\}/)
- assert.match(action, /default: 'true'/)
-})
diff --git a/.github/actions/cloud-sql-rollout-lease/storage-lease.test.mjs b/.github/actions/cloud-sql-rollout-lease/storage-lease.test.mjs
index 73d1a1e6e78..469f64291d4 100644
--- a/.github/actions/cloud-sql-rollout-lease/storage-lease.test.mjs
+++ b/.github/actions/cloud-sql-rollout-lease/storage-lease.test.mjs
@@ -234,18 +234,6 @@ test('fails closed when the bucket answers 5xx', async () => {
assert.equal(storage.state.requests.filter((request) => request.method !== 'GET').length, 0)
})
-test('fails closed when permission is denied', async () => {
- const storage = fakeStorage({
- faults: [{ when: (request) => request.method === 'GET', status: 403 }]
- })
-
- const error = await leaseFor(storage)
- .acquire(HOLDER)
- .catch((thrown) => thrown)
-
- assert.match(error.message, /lease inspection failed: 403/)
-})
-
test('treats an unreadable record as held, not free', async () => {
const storage = fakeStorage({
object: { generation: '1500', body: { holder_key: 'stablyai/orca/9001' } }
diff --git a/.github/workflows/mobile-android-release.yml b/.github/workflows/mobile-android-release.yml
index f8c00264af7..ed0820862a5 100644
--- a/.github/workflows/mobile-android-release.yml
+++ b/.github/workflows/mobile-android-release.yml
@@ -284,10 +284,22 @@ jobs:
"${{ steps.apk.outputs.checksum }}"
fi
- # Keep site bump advisory after publication; failure only leaves its download link on the prior APK.
- bump-apk-download:
+ # Advisory like the site bump: a failed mirror only leaves onorca.dev's "mirror link" on the prior APK.
+ release-mirror-r2:
needs: android-build
if: needs.android-build.outputs.publish_release == 'true'
+ uses: ./.github/workflows/release-mirror-r2.yml
+ with:
+ tag: mobile-android-v${{ needs.android-build.outputs.version }}
+ assets: app-release.apk
+ secrets: inherit
+
+ # Keep site bump advisory after publication; failure only leaves its download link on the prior APK.
+ # Why after the mirror: the site's mirror link uses the bumped version, so upload the APK first
+ # (success not required, so a mirror outage never blocks the bump).
+ bump-apk-download:
+ needs: [android-build, release-mirror-r2]
+ if: ${{ !cancelled() && needs.android-build.outputs.publish_release == 'true' }}
runs-on: ubuntu-latest
continue-on-error: true
permissions:
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml
index 9c0dce4ed7d..0f39b9c1f4a 100644
--- a/.github/workflows/mobile.yml
+++ b/.github/workflows/mobile.yml
@@ -298,8 +298,19 @@ jobs:
echo 'should_run=true' >> "$GITHUB_OUTPUT"
fi
- - name: Setup Bun for tests
+ - name: Find installed Bun
+ id: installed-bun
if: steps.test-scope.outputs.should_run != 'false'
+ shell: bash
+ working-directory: .
+ run: |
+ bun="$GITHUB_WORKSPACE/node_modules/.bin/bun"
+ if [ -x "$bun" ] && [ "$("$bun" --version)" = "$(cat config/.bun-version)" ]; then
+ echo "$GITHUB_WORKSPACE/node_modules/.bin" >> "$GITHUB_PATH"
+ echo 'found=true' >> "$GITHUB_OUTPUT"
+ fi
+ - name: Setup Bun for tests
+ if: steps.test-scope.outputs.should_run != 'false' && steps.installed-bun.outputs.found != 'true'
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: config/.bun-version
@@ -431,7 +442,18 @@ jobs:
run: node scripts/check-tests-typecheck-ratchet.mjs
# Run all golden consumers, including mutant/page-bridge suites; failures name the recording and rpc:record command.
+ - name: Find installed Bun
+ id: installed-bun
+ shell: bash
+ working-directory: .
+ run: |
+ bun="$GITHUB_WORKSPACE/node_modules/.bin/bun"
+ if [ -x "$bun" ] && [ "$("$bun" --version)" = "$(cat config/.bun-version)" ]; then
+ echo "$GITHUB_WORKSPACE/node_modules/.bin" >> "$GITHUB_PATH"
+ echo 'found=true' >> "$GITHUB_OUTPUT"
+ fi
- name: Setup Bun for tests
+ if: steps.installed-bun.outputs.found != 'true'
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: config/.bun-version
diff --git a/.github/workflows/node-server-tests.yml b/.github/workflows/node-server-tests.yml
index 4d704d4437e..18334d1e587 100644
--- a/.github/workflows/node-server-tests.yml
+++ b/.github/workflows/node-server-tests.yml
@@ -183,8 +183,18 @@ jobs:
# Design D7 upgrade and rollback: the last Bun orcad, built from a main commit that shipped
# it, using the current Bun pin beside this checkout's Node slot; hand-over skips once PROTOCOL_VERSION
# moves past the Bun daemon's. Install its pinned dependencies independently of this checkout.
- - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
+ - name: Find installed Bun
+ id: installed-bun
if: runner.os == 'Linux'
+ shell: bash
+ run: |
+ bun="$GITHUB_WORKSPACE/node_modules/.bin/bun"
+ if [ -x "$bun" ] && [ "$("$bun" --version)" = "$(cat config/.bun-version)" ]; then
+ echo "$GITHUB_WORKSPACE/node_modules/.bin" >> "$GITHUB_PATH"
+ echo 'found=true' >> "$GITHUB_OUTPUT"
+ fi
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
+ if: runner.os == 'Linux' && steps.installed-bun.outputs.found != 'true'
with:
bun-version-file: config/.bun-version
no-cache: true
diff --git a/.github/workflows/orca-server-artifact.yml b/.github/workflows/orca-server-artifact.yml
new file mode 100644
index 00000000000..2840ad7caa7
--- /dev/null
+++ b/.github/workflows/orca-server-artifact.yml
@@ -0,0 +1,133 @@
+name: Server-only Linux artifact
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ paths:
+ - 'config/scripts/orcad-distribution/server-artifact/**'
+ - '.github/workflows/orca-server-artifact.yml'
+ # The launcher relies on how the CLI picks and starts its serve runtime.
+ - 'src/cli/runtime/launch.ts'
+ - 'src/cli/runtime/orca-app-executable.ts'
+ - 'src/cli/runtime/serve-orcad-launch.ts'
+ - 'src/shared/orcad-local-serve-selection.ts'
+ - 'src/shared/orcad-artifacts.ts'
+ # Catch serve regressions on main between releases.
+ schedule:
+ - cron: '45 11 * * *'
+ workflow_dispatch:
+ # Releases pass the qualified template this run already built, so the tarball ships its exact bytes.
+ workflow_call:
+ inputs:
+ ref:
+ description: Git ref to check out, e.g. the release tag
+ type: string
+ required: true
+ template_artifact:
+ description: Name of this run's qualified orcad-template artifact; blank builds the host slot
+ type: string
+ default: ''
+ outputs:
+ packed:
+ description: "'true' when both tarballs were packed and passed the smoke"
+ value: ${{ jobs.package.outputs.packed }}
+
+permissions:
+ contents: read
+
+concurrency:
+ group: orca-server-artifact-${{ inputs.ref && format('run-{0}', github.run_id) || github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ !inputs.ref }}
+
+jobs:
+ package:
+ if: github.event_name != 'pull_request' || github.event.pull_request.draft != true
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - arch: x64
+ runner: ubuntu-24.04
+ - arch: arm64
+ runner: ubuntu-24.04-arm
+ runs-on: ${{ matrix.runner }}
+ timeout-minutes: 30
+ permissions:
+ contents: read
+ actions: read
+ env:
+ ORCA_BACKGROUND_LAUNCH: '1'
+ TARGET: linux-${{ matrix.arch }}-glibc
+ outputs:
+ packed: ${{ steps.smoke.outcome == 'success' }}
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ ref: ${{ inputs.ref }}
+ persist-credentials: false
+ # A release cut from a ref older than this workflow has nothing to pack; skip instead of failing.
+ - name: Check the ref can pack the tarball
+ id: supported
+ run: |
+ if [ -f config/scripts/orcad-distribution/server-artifact/pack-orcad-server-artifact.mjs ]; then
+ echo 'supported=true' >> "$GITHUB_OUTPUT"
+ else
+ echo '::notice::This ref predates the server-only tarball; skipping it.'
+ fi
+ - uses: ./.github/actions/install-node-dependencies
+ if: steps.supported.outputs.supported == 'true'
+ with:
+ cache-pnpm-store: ${{ !inputs.ref }}
+ - name: Use the qualified release template
+ if: steps.supported.outputs.supported == 'true' && inputs.template_artifact != ''
+ uses: actions/download-artifact@v8
+ with:
+ name: ${{ inputs.template_artifact }}
+ path: out/orcad-template
+ # Without a release template, build this runner's slot the way the desktop template does.
+ - uses: ./.github/actions/build-mobile-web-bundle
+ if: steps.supported.outputs.supported == 'true' && inputs.template_artifact == ''
+ - name: Build this runner's template slot
+ if: steps.supported.outputs.supported == 'true' && inputs.template_artifact == ''
+ run: pnpm build:orcad-template --targets "$TARGET"
+ - name: Pack the tarball
+ if: steps.supported.outputs.supported == 'true'
+ run: |
+ pnpm build:packages
+ SOURCE_DATE_EPOCH="$(git log -1 --format=%ct)" node config/scripts/orcad-distribution/server-artifact/pack-orcad-server-artifact.mjs --template out/orcad-template --target "$TARGET" --out-dir out/orca-server
+ {
+ echo "### orca-server-linux-${{ matrix.arch }}"
+ echo '```'
+ ls -l out/orca-server
+ cat out/orca-server/*.sha256
+ echo '```'
+ } >> "$GITHUB_STEP_SUMMARY"
+ - name: Start and pair on the runner
+ if: steps.supported.outputs.supported == 'true'
+ run: node config/scripts/orcad-distribution/server-artifact/smoke-orcad-server-artifact.mjs --archive "out/orca-server/orca-server-linux-${{ matrix.arch }}.tar.gz"
+ # Bare images with no Node, display, GTK or X11: the tarball's own Node runs the smoke.
+ - name: Start and pair on minimal images
+ id: smoke
+ if: steps.supported.outputs.supported == 'true'
+ run: |
+ for image in ubuntu:24.04 debian:12-slim; do
+ echo "::group::$image"
+ docker run --rm --init \
+ -v "$PWD/out/orca-server:/artifacts:ro" \
+ -v "$PWD/config/scripts/orcad-distribution/server-artifact:/smoke:ro" \
+ "$image" sh -ec '
+ mkdir -p /tmp/runtime
+ tar -xzf /artifacts/orca-server-linux-${{ matrix.arch }}.tar.gz -C /tmp/runtime --strip-components=1
+ /tmp/runtime/runtimes/node-*/bin/node /smoke/smoke-orcad-server-artifact.mjs --archive /artifacts/orca-server-linux-${{ matrix.arch }}.tar.gz
+ '
+ echo '::endgroup::'
+ done
+ - uses: actions/upload-artifact@v7
+ if: steps.supported.outputs.supported == 'true'
+ with:
+ name: orca-server-linux-${{ matrix.arch }}
+ path: |
+ out/orca-server/orca-server-linux-${{ matrix.arch }}.tar.gz
+ out/orca-server/orca-server-linux-${{ matrix.arch }}.tar.gz.sha256
+ if-no-files-found: error
+ retention-days: 7
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 578dcdd68d9..13bed76ed0c 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -1111,7 +1111,6 @@ jobs:
src/main/browser/guest-lifecycle/popups/presentation/popup-origin-chrome.electron.test.ts
src/main/browser/guest-lifecycle/navigation/browser-link-materialization.electron.test.ts
src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-compatibility.electron.test.ts
- src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-adapter-compatibility.electron.test.ts
src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-native-compatibility.electron.test.ts
src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-background-compatibility.electron.test.ts
src/main/browser/extensions/api-runtime/browser-extension-api.electron.test.ts
diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml
index 5a98aa59bc7..01ed0b8ffe1 100644
--- a/.github/workflows/release-cut.yml
+++ b/.github/workflows/release-cut.yml
@@ -1039,6 +1039,21 @@ jobs:
ref: refs/tags/${{ needs.cut.outputs.tag }}
fast_runners: false
+ # Server-only Linux tarballs from the same qualified template. Nothing depends on this job, so a
+ # failure here never holds the desktop release.
+ orca-server-artifact:
+ needs:
+ - cut
+ - orcad-template
+ if: ${{ !cancelled() && needs.cut.outputs.should_release == 'true' && needs.orcad-template.result == 'success' }}
+ permissions:
+ contents: read
+ actions: read
+ uses: ./.github/workflows/orca-server-artifact.yml
+ with:
+ ref: refs/tags/${{ needs.cut.outputs.tag }}
+ template_artifact: orcad-template
+
# Gate SignPath artifact requests behind blocking tests to avoid approvals for unpublishable builds.
release-preflight:
needs:
@@ -2241,6 +2256,39 @@ jobs:
--prerelease="$prerelease" \
--repo "$GITHUB_REPOSITORY"
+ # After publish: the draft's asset checks and undraft never see these, and a failure here only
+ # leaves the server tarballs missing from an already published release.
+ publish-orca-server-artifact:
+ needs:
+ - cut
+ - publish-release
+ - orca-server-artifact
+ if: ${{ !cancelled() && needs.publish-release.result == 'success' && needs.orca-server-artifact.result == 'success' && needs.orca-server-artifact.outputs.packed == 'true' && needs.cut.outputs.tag != '' }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@v8
+ with:
+ pattern: orca-server-linux-*
+ path: orca-server
+ merge-multiple: true
+ - name: Write the checksum manifest and upload
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ TAG: ${{ needs.cut.outputs.tag }}
+ working-directory: orca-server
+ run: |
+ set -euo pipefail
+ cat orca-server-linux-x64.tar.gz.sha256 orca-server-linux-arm64.tar.gz.sha256 > orca-server-sha256sums.txt
+ sha256sum -c orca-server-sha256sums.txt
+ gh release upload "$TAG" \
+ orca-server-linux-x64.tar.gz \
+ orca-server-linux-arm64.tar.gz \
+ orca-server-sha256sums.txt \
+ --clobber --repo "$GITHUB_REPOSITORY"
+
post-release-e2e:
needs:
- cut
@@ -2305,6 +2353,17 @@ jobs:
echo "::error::Failed to dispatch docs deployment for $TAG after 3 attempts."
exit 1
+ release-mirror-r2:
+ needs:
+ - cut
+ - publish-release
+ # Why stable-only: onorca.dev's mirror link tracks GitHub's latest release, which skips RCs.
+ if: ${{ !cancelled() && needs.publish-release.result == 'success' && needs.cut.outputs.tag != '' && !contains(needs.cut.outputs.tag, '-rc.') && startsWith(needs.cut.outputs.tag, 'v') }}
+ uses: ./.github/workflows/release-mirror-r2.yml
+ with:
+ tag: ${{ needs.cut.outputs.tag }}
+ secrets: inherit
+
homebrew-bump-published-rc-draft:
needs:
- cut
diff --git a/.github/workflows/release-mirror-r2.yml b/.github/workflows/release-mirror-r2.yml
new file mode 100644
index 00000000000..1c26596b29a
--- /dev/null
+++ b/.github/workflows/release-mirror-r2.yml
@@ -0,0 +1,64 @@
+name: Release Mirror (R2)
+
+# Copy published release downloads to the public R2 bucket behind https://downloads.onorca.dev.
+# onorca.dev keeps GitHub as the default download and offers this as an opt-in "mirror link"
+# for when GitHub release downloads return 5xx. Called by release-cut (stable desktop tags) and
+# mobile-android-release after publishing; dispatch manually to backfill a tag.
+
+on:
+ workflow_call:
+ inputs:
+ tag:
+ description: Published release tag to mirror (e.g. v1.4.254 or mobile-android-v0.0.64)
+ required: true
+ type: string
+ assets:
+ description: Space-separated asset names (blank = the onorca.dev download assets)
+ required: false
+ default: ''
+ type: string
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: Published release tag to mirror (e.g. v1.4.254 or mobile-android-v0.0.64)
+ required: true
+ type: string
+ assets:
+ description: Space-separated asset names (blank = the onorca.dev download assets)
+ required: false
+ default: ''
+ type: string
+
+# Why: two releases landing close together must not interleave writes to latest/.
+concurrency:
+ group: release-mirror-r2
+ cancel-in-progress: false
+
+jobs:
+ mirror:
+ runs-on: ubuntu-latest
+ timeout-minutes: 60
+ permissions:
+ contents: read
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+
+ - name: Mirror release assets
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ REPO: ${{ github.repository }}
+ TAG: ${{ inputs.tag }}
+ ASSETS: ${{ inputs.assets }}
+ # R2 S3 API keys with Object Read & Write on the orca-downloads bucket.
+ R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
+ R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
+ WORK_DIR: ${{ runner.temp }}/release-mirror
+ run: |
+ set -euo pipefail
+ if [[ -z "$R2_ACCESS_KEY_ID" || -z "$R2_SECRET_ACCESS_KEY" ]]; then
+ echo "::error::Set the R2_ACCESS_KEY_ID and R2_SECRET_ACCESS_KEY secrets to mirror releases to R2."
+ exit 1
+ fi
+ read -r -a assets <<<"$ASSETS"
+ config/scripts/release/publication/mirror-release-to-r2.sh "$TAG" "${assets[@]}"
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 671ab785da7..0473b42de3b 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -94,7 +94,17 @@ jobs:
run: |
ELECTRON_RUN_AS_NODE=1 "$(node -p "require('electron')")" --version
+ - name: Find installed Bun
+ id: installed-bun
+ shell: bash
+ run: |
+ bun="$GITHUB_WORKSPACE/node_modules/.bin/bun"
+ if [ -x "$bun" ] && [ "$("$bun" --version)" = "$(cat config/.bun-version)" ]; then
+ echo "$GITHUB_WORKSPACE/node_modules/.bin" >> "$GITHUB_PATH"
+ echo 'found=true' >> "$GITHUB_OUTPUT"
+ fi
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
+ if: steps.installed-bun.outputs.found != 'true'
with:
bun-version-file: config/.bun-version
no-cache: true
diff --git a/README.md b/README.md
index fb1c8fac524..8daff8adc7b 100644
--- a/README.md
+++ b/README.md
@@ -32,20 +32,6 @@
-### Orchestrate Agents
-
-Hand a big task to one agent. It splits the work, starts worker agents in their own workspaces, and brings their results back to you.
-
-[Docs →](https://www.onorca.dev/docs/cli/orchestration)
-
-
-
-
-
-
-
-
-
### Chat or Terminal
Run any agent in Chat UI or as the raw CLI, and move a conversation between the two without losing context.
@@ -60,6 +46,20 @@ Run any agent in Chat UI or as the raw CLI, and move a conversation between the
+### Orchestrate Agents
+
+Hand a big task to one agent. It splits the work, starts worker agents in their own workspaces, and brings their results back to you.
+
+[Docs →](https://www.onorca.dev/docs/cli/orchestration)
+
+
+
+
+
+
+
+
+
### Run Anywhere
Pair a Remote Orca Server, work on any SSH host, or give a worktree its own cloud VM. Your agents keep running when your laptop sleeps.
diff --git a/cloud/dev/scripts/run-relay-tests.test.mjs b/cloud/dev/scripts/run-relay-tests.test.mjs
index 1f806f183dc..70a332ea205 100644
--- a/cloud/dev/scripts/run-relay-tests.test.mjs
+++ b/cloud/dev/scripts/run-relay-tests.test.mjs
@@ -110,8 +110,7 @@ for (const [name, options] of [
{ env: { ORCA_IDLE_REHOME_POSTGRES_URL: 'postgres://localhost:55440/relay' } }
],
['application database', { env: { DATABASE_URL: databaseUrl } }],
- ['one CPU', { parallelism: 1 }],
- ['two CPUs', { parallelism: 2 }]
+ ['one CPU', { parallelism: 1 }]
]) {
test(`retains the original single run for ${name}`, async (t) => {
const h = start(t, options)
diff --git a/config/build-plugins/cli-main-entry-names.ts b/config/build-plugins/cli-main-entry-names.ts
index 56905221b8e..4c11dc043b1 100644
--- a/config/build-plugins/cli-main-entry-names.ts
+++ b/config/build-plugins/cli-main-entry-names.ts
@@ -12,6 +12,9 @@ export const CLI_MAIN_ENTRY_NAMES = [
'orcad/orcad-stale-lock-reclaim',
'orcad/orcad-host-identity-reset',
'plugins/plugin-authoring-checks',
+ // `orca vm env doctor` runs its checks in the CLI process.
+ 'environment-doctor/environment-doctor',
+ 'environment-doctor/environment-doctor-host',
...[
'access',
'active-location',
diff --git a/config/build-plugins/main-build-entry-points.ts b/config/build-plugins/main-build-entry-points.ts
index 1521adc3dc3..819c08e1680 100644
--- a/config/build-plugins/main-build-entry-points.ts
+++ b/config/build-plugins/main-build-entry-points.ts
@@ -5,7 +5,6 @@ import { CLI_MAIN_ENTRY_NAMES } from './cli-main-entry-names'
/** Main-build Rollup inputs: output file name (without .js) to its source entry. */
export const MAIN_BUILD_ENTRY_POINTS: Record = {
index: resolve('src/main/index.ts'),
- 'browser-extension-preload': resolve('src/preload/browser-extension-preload.ts'),
'browser-extension-native-host-supervisor-entry': resolve(
'src/main/browser/extensions/native-messaging/browser-extension-native-host-supervisor-entry.ts'
),
diff --git a/config/build-plugins/sandboxed-script-bundles.ts b/config/build-plugins/sandboxed-script-bundles.ts
index 9b1bd0e1f21..3bef5c5c96e 100644
--- a/config/build-plugins/sandboxed-script-bundles.ts
+++ b/config/build-plugins/sandboxed-script-bundles.ts
@@ -8,7 +8,14 @@ import {
type BundledScript = { code: string; moduleIds: string[] }
+// Unminified preload keeps dependency JSDoc whose em dashes would force two-byte storage in every renderer.
+export const ONE_BYTE_UNMINIFIED_OUTPUT = {
+ charset: 'ascii',
+ comments: { legal: true, annotation: true, jsdoc: false }
+} as const
+
const GUEST_PRELOADS = [
+ { entry: 'src/preload/browser-extension-preload.ts', fileName: 'browser-extension-preload.js' },
{ entry: 'src/preload/browser-guest.ts', fileName: 'browser-guest-preload.js' },
{ entry: 'src/preload/doc-preview-link.ts', fileName: 'doc-preview-link-preload.js' },
{ entry: 'src/preload/plugin-frame-guest.ts', fileName: 'plugin-frame-guest-preload.js' }
@@ -46,7 +53,7 @@ async function bundleScript(
name: 'orcaBrowserExtensionScript',
fileName: () => fileName
},
- rollupOptions: { external: ['electron'] }
+ rollupOptions: { external: ['electron'], output: ONE_BYTE_UNMINIFIED_OUTPUT }
}
})
for (const output of Array.isArray(result) ? result : [result]) {
diff --git a/config/electron-builder.config.cjs b/config/electron-builder.config.cjs
index face51a2e73..b4655ee824e 100644
--- a/config/electron-builder.config.cjs
+++ b/config/electron-builder.config.cjs
@@ -20,9 +20,12 @@ const {
assertPackagedNativeVariantsInstalled,
assertProcessHostOutputBuilt,
createPackagedRuntimeNodeModuleResources,
+ normalizeElectronArchitecture,
prunePackagedRuntimeNodeModules,
+ readPackage,
verifyPackagedMainRuntimeDeps
} = require('./packaged-runtime-node-modules.cjs')
+const { copyPackagedTranscribeCpp } = require('./packaged-transcribe-cpp.cjs')
const {
assertNoWindowsExecutablesInRuntimeNodeModules
} = require('./packaged-windows-only-runtime-files.cjs')
@@ -171,19 +174,6 @@ const commonExtraResources = [
nativeChatVisualsResource,
emojiShortcodeDatasetResource
]
-// Native speech addons need real disk paths; copy only the artifact target’s variant.
-const macSpeechNativeResource = {
- from: 'node_modules/sherpa-onnx-darwin-${arch}',
- to: 'node_modules/sherpa-onnx-darwin-${arch}'
-}
-const linuxSpeechNativeResource = {
- from: 'node_modules/sherpa-onnx-linux-${arch}',
- to: 'node_modules/sherpa-onnx-linux-${arch}'
-}
-const winSpeechNativeResource = {
- from: 'node_modules/sherpa-onnx-win-x64',
- to: 'node_modules/sherpa-onnx-win-x64'
-}
// electron-builder replaces these defaults when `depends` is configured; retain
// Electron's loader requirements alongside Orca's headless-host dependencies.
const debElectronRuntimeDependencies = [
@@ -329,8 +319,8 @@ module.exports = {
'!resources/native-chat-visuals/**',
// extraResources already ships plugin bytes; exclude source duplicates.
'!resources/plugins/launch/**',
- // Platform extraResources selects speech natives; asar would duplicate it and ship other variants.
- '!node_modules/sherpa-onnx*{,/**/*}',
+ // afterPack copies the target's speech engine to resources/node_modules; asar would duplicate it and ship other variants.
+ '!node_modules/{transcribe-cpp,@transcribe-cpp,koffi,@koromix}{,/**/*}',
// CLI shim belongs beside resources/bin/orca.exe; unpacking source creates a second .cmd without its executable (#7351).
'!resources/win32{,/**/*}'
],
@@ -359,6 +349,8 @@ module.exports = {
'out/main/orca-profiles/profile-index-store.js',
'out/main/persistence/profile-state/**',
'out/main/plugins/plugin-authoring-checks.js',
+ 'out/main/environment-doctor/environment-doctor.js',
+ 'out/main/environment-doctor/environment-doctor-host.js',
// `orca plugin test` and `orca plugin check` load the runtime, kit and hooks in Node.
'resources/plugins/declarative/*.mjs',
'out/main/skills/bundled-skill-install/bundled-skill-local-host.js',
@@ -448,6 +440,13 @@ module.exports = {
writeMacBuildCompatibility(resourcesDir, { version, commit, architecture })
}
stampPackagedCliVersion(resourcesDir, context.packager.appInfo.version)
+ // Before the prune, which drops the copied packages' type declarations too.
+ copyPackagedTranscribeCpp(
+ readPackage,
+ resourcesDir,
+ context.electronPlatformName,
+ normalizeElectronArchitecture(context.arch)
+ )
prunePackagedRuntimeNodeModules(resourcesDir, context.electronPlatformName, context.arch)
assertNoWindowsExecutablesInRuntimeNodeModules(resourcesDir, context.electronPlatformName)
// Gate native glibc floor after pruning foreign CPU variants; GLIBC_2.34 once broke Ubuntu 20.04 startup (#9902).
@@ -551,7 +550,6 @@ module.exports = {
extraResources: [
...commonExtraResources,
...windowsRuntimeResources,
- winSpeechNativeResource,
{
from: 'resources/win32/bin/orca.cmd',
to: 'bin/orca.cmd'
@@ -608,7 +606,8 @@ module.exports = {
rank: 'Alternate'
}))
],
- // Bundled ONNX Runtime (speech) needs macOS 13.4 (#22690); the update-manifest gate reads this from Info.plist.
+ // Set for ONNX Runtime (#22690, #39135), now gone; transcribe-cpp needs 11.0, Electron 12.0. Kept until
+ // Kelvin decides. The update-manifest gate reads this from Info.plist.
minimumSystemVersion: '13.4',
icon: 'resources/build/icon.icns',
entitlements: 'resources/build/entitlements.mac.plist',
@@ -631,7 +630,6 @@ module.exports = {
extraResources: [
...commonExtraResources,
...createPackagedRuntimeNodeModuleResources('darwin'),
- macSpeechNativeResource,
{
from: 'resources/darwin/bin/orca',
to: 'bin/orca'
@@ -696,7 +694,6 @@ module.exports = {
extraResources: [
...commonExtraResources,
...createPackagedRuntimeNodeModuleResources('linux'),
- linuxSpeechNativeResource,
{
from: 'native/wayland-clipboard/.build/${arch}/orca-wayland-clipboard',
to: 'bin/orca-wayland-clipboard'
diff --git a/config/flaky-test-pattern-baseline.txt b/config/flaky-test-pattern-baseline.txt
index f6bcf6ca71e..ae202c028d9 100644
--- a/config/flaky-test-pattern-baseline.txt
+++ b/config/flaky-test-pattern-baseline.txt
@@ -73,9 +73,7 @@
1 test-no-polling-loop:src/main/windows/windows-pty-job.win32.test.ts
1 test-no-polling-loop:src/main/worker-thread-child-process/worker-thread-child-process.test.ts
1 test-no-polling-loop:src/main/workspaces/removal/local-worktree-removal-recovery-live.test.ts
-1 test-no-polling-loop:src/main/wsl/orcad/wsl-orcad-connection.test.ts
1 test-no-polling-loop:src/main/wsl/orcad/wsl-orcad-real-distro-lane.test.ts
-1 test-no-polling-loop:src/main/wsl/orcad/wsl-orcad-stdio-bridge.test.ts
1 test-no-polling-loop:src/renderer/src/components/terminal-pane/pty-connection/emulation/fish-color-scheme-child-stdin.node-pty.test.ts
2 test-no-polling-loop:src/shared/__tests__/process-host/windows-tree-kill-late-taskkill.win32.test.ts
1 test-no-polling-loop:src/shared/darwin-terminal-names-real-ps.test.ts
@@ -149,7 +147,6 @@
2 test-no-real-time-wait:src/main/agent-hooks/server/testing/http/server-transport-interference.test.ts
1 test-no-real-time-wait:src/main/agent-hooks/server/testing/main-agent/server-turn-ended-at.test.ts
1 test-no-real-time-wait:src/main/agent-hooks/server/testing/main-agent/server-turn-started-at.test.ts
-5 test-no-real-time-wait:src/main/agent-hooks/wsl-relay/wsl-hook-relay-manager.test.ts
1 test-no-real-time-wait:src/main/ai-vault/scanners/opencode/reader-transport/session-scanner-opencode-sqlite-process.test.ts
2 test-no-real-time-wait:src/main/ai-vault/scanners/opencode/sqlite/session-scanner-opencode-sqlite-scan-scope.test.ts
1 test-no-real-time-wait:src/main/antigravity/windows-hook-json-post.test.ts
@@ -263,10 +260,7 @@
1 test-no-real-time-wait:src/main/workspaces/creation/preparation/worktree-create-preparation-cancellation.test.ts
1 test-no-real-time-wait:src/main/workspaces/removal/local-worktree-removal-recovery-live.test.ts
2 test-no-real-time-wait:src/main/wsl/execution/wsl-command-loop.test.ts
-1 test-no-real-time-wait:src/main/wsl/orcad/wsl-orcad-connection.test.ts
2 test-no-real-time-wait:src/main/wsl/orcad/wsl-orcad-real-distro-lane.test.ts
-1 test-no-real-time-wait:src/main/wsl/orcad/wsl-orcad-stdio-bridge.test.ts
-3 test-no-real-time-wait:src/main/wsl/orcad/wsl-orcad-watch.test.ts
4 test-no-real-time-wait:src/renderer/src/components/activity/activity-auto-mark-read-loop.react185.test.tsx
1 test-no-real-time-wait:src/renderer/src/components/editor/DiagramViewerModal.test.tsx
1 test-no-real-time-wait:src/renderer/src/components/editor/combined-diff/load-sections/combined-diff-stale-analysis-work-budget.test.tsx
@@ -463,7 +457,6 @@
1 test-no-wall-clock:src/cli/runtime/status-caller.test.ts
2 test-no-wall-clock:src/main/agent-hooks/installation/scripts/managed-hook-timeout.test.ts
2 test-no-wall-clock:src/main/agent-hooks/installation/scripts/posix-hook-json-stdin-reader.test.ts
-1 test-no-wall-clock:src/main/agent-hooks/server/testing/providers/codex/server-codex-capacity.test.ts
1 test-no-wall-clock:src/main/agent-hooks/server/testing/http/server-endpoint-file-lifecycle.test.ts
3 test-no-wall-clock:src/main/agent-hooks/server/testing/structured-ingress/server-ingest-structured-status.test.ts
4 test-no-wall-clock:src/main/agent-hooks/server/testing/identity/server-launch-resume-identity.test.ts
@@ -565,7 +558,7 @@
1 test-no-wall-clock:src/main/pty/history/terminal-history-gc-fs-call-count.test.ts
2 test-no-wall-clock:src/main/pty/process-retirement/posix-pty-process-groups.integration.test.ts
4 test-no-wall-clock:src/main/pty/process-retirement/windows-live-tree-kill.win32.test.ts
-17 test-no-wall-clock:src/main/rate-limits/service/service-account-target-selection.test.ts
+5 test-no-wall-clock:src/main/rate-limits/service/service-account-target-selection.test.ts
1 test-no-wall-clock:src/main/rate-limits/service/service-cursor-usage.test.ts
3 test-no-wall-clock:src/main/rate-limits/service/service-minimax-usage.test.ts
3 test-no-wall-clock:src/main/rate-limits/service/service-refresh-orchestration.test.ts
@@ -646,7 +639,6 @@
1 test-no-wall-clock:src/renderer/src/components/native-chat/session/structured/delivery/NativeChatMessageList.unsent-message.test.tsx
3 test-no-wall-clock:src/renderer/src/components/native-chat/surfaces/integration/NativeChatMessageList.test.tsx
2 test-no-wall-clock:src/renderer/src/components/native-chat/tools/tasks/NativeChatStructuredSessionStatus.test.tsx
-1 test-no-wall-clock:src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.test.tsx
3 test-no-wall-clock:src/renderer/src/components/sidebar/workspace-card/review/use-workspace-reference-details.test.tsx
1 test-no-wall-clock:src/renderer/src/components/sidebar/worktree-list/listing/WorktreeList.lineage-agent-expansion-coupling.test.tsx
2 test-no-wall-clock:src/renderer/src/components/task-page/jira/task-page-jira-cache-selectors.test.ts
@@ -661,10 +653,9 @@
1 test-no-wall-clock:src/renderer/src/lib/paired-runtime-closed-tab-resume.test.ts
2 test-no-wall-clock:src/renderer/src/lib/use-tab-agent-observed-signal-dispatch.test.tsx
2 test-no-wall-clock:src/renderer/src/lib/wake-sleeping-agents-live-unmounted-pane.test.ts
-1 test-no-wall-clock:src/renderer/src/lib/workspace-terminal-host-authority.test.ts
+1 test-no-wall-clock:src/renderer/src/lib/workspace/ownership/workspace-terminal-host-authority.test.ts
1 test-no-wall-clock:src/renderer/src/lib/workspace/activation/worktree-activation-emptied-workspace-reseed.test.ts
2 test-no-wall-clock:src/renderer/src/runtime/native-chat/tab-retirement/structured-agent-session-tab-retirement.test.ts
-1 test-no-wall-clock:src/renderer/src/runtime/web-session-tabs-sync/closing/close-mirrored-editor-tab.test.ts
2 test-no-wall-clock:src/renderer/src/store/github/pull-requests/github-pr-branch-linked-pr-divergence.test.ts
6 test-no-wall-clock:src/renderer/src/store/slices/jira/jira.test.ts
5 test-no-wall-clock:src/renderer/src/store/slices/worktrees/metadata/worktree-meta-hosted-review.test.ts
@@ -698,7 +689,6 @@
2 test-timeout-needs-reason:src/main/acp/journal/acp-structured-broken-stream.test.ts
4 test-timeout-needs-reason:src/main/agent-hooks/server/testing/http/server-transport-interference.test.ts
1 test-timeout-needs-reason:src/main/agent-hooks/wsl-relay/testing/wsl-hook-relay-live.integration.test.ts
-1 test-timeout-needs-reason:src/main/agent-hooks/wsl-relay/wsl-hook-relay-manager.test.ts
1 test-timeout-needs-reason:src/main/ai-vault/parse-cache/session-parse-cache-large-scan.test.ts
1 test-timeout-needs-reason:src/main/antigravity/native-macos-credentials.real.test.ts
1 test-timeout-needs-reason:src/main/antigravity/posix-hook-invocation.test.ts
@@ -713,7 +703,7 @@
1 test-timeout-needs-reason:src/main/browser/cookies/browser-cookie-import-validated-partition.electron.test.ts
1 test-timeout-needs-reason:src/main/browser/guest-lifecycle/find/browser-find-frame-traversal.electron.test.ts
1 test-timeout-needs-reason:src/main/browser/identity/wire-probes/browser-session-ua-wire-identity-cross-context.electron.test.ts
-2 test-timeout-needs-reason:src/main/browser/identity/wire-probes/browser-session-ua-wire-identity.electron.test.ts
+1 test-timeout-needs-reason:src/main/browser/identity/wire-probes/browser-session-ua-wire-identity.electron.test.ts
3 test-timeout-needs-reason:src/main/claude-usage/scanner-incremental-reader.test.ts
1 test-timeout-needs-reason:src/main/claude/claude-agent-sdk-exit-proof.test.ts
1 test-timeout-needs-reason:src/main/claude/claude-background-run-isolation-real-cli.test.ts
@@ -793,7 +783,6 @@
1 test-timeout-needs-reason:src/renderer/src/lib/source-control/checks/check-run-details-log-normalization-performance.test.ts
1 test-timeout-needs-reason:src/shared/__tests__/process-host/windows-tree-kill-late-taskkill.win32.test.ts
1 test-timeout-needs-reason:src/shared/dsh-real-cli.test.ts
-1 test-timeout-needs-reason:src/shared/source-control/checks/logs/check-job-log-text-performance.test.ts
1 test-timeout-needs-reason:src/shared/workspace-disk-space/workspace-space-entry-traversal.test.ts
1 test-timeout-needs-reason:src/shared/wsl-login-shell-command.test.ts
1 test-timeout-needs-reason:tests/e2e/active-view-restart-restore.spec.ts
diff --git a/config/focus-setting-read-baseline.txt b/config/focus-setting-read-baseline.txt
index 9e6d01f833d..4b3f4c25346 100644
--- a/config/focus-setting-read-baseline.txt
+++ b/config/focus-setting-read-baseline.txt
@@ -222,14 +222,14 @@
2 src/renderer/src/lib/browser/workspace/workspace-browser-tab-open.ts
1 src/renderer/src/lib/client-creation-action-error.ts
2 src/renderer/src/lib/client-creation-action-policy.ts
-1 src/renderer/src/lib/default-creation-host.ts # the sanctioned reader of the default host
+1 src/renderer/src/runtime/hosts/selection/default-creation-host.ts # the sanctioned reader of the default host
1 src/renderer/src/lib/launch-ai-vault-session.ts
1 src/renderer/src/lib/local-preflight-context.ts
2 src/renderer/src/runtime/hosts/observations/provider-runtime-context.ts
-2 src/renderer/src/lib/repo-runtime-owner.ts
-1 src/renderer/src/lib/runtime-session-mirror-owners.ts
+2 src/renderer/src/lib/workspace/ownership/repo-runtime-owner.ts
+1 src/renderer/src/lib/workspace/ownership/runtime-session-mirror-owners.ts
1 src/renderer/src/lib/runtime-session-mirror-targets.ts
-1 src/renderer/src/lib/single-runtime-legacy-owner.ts
+1 src/renderer/src/lib/workspace/ownership/single-runtime-legacy-owner.ts
1 src/renderer/src/lib/skill-runtime-command.ts
1 src/renderer/src/lib/terminal-close-route.ts
4 src/renderer/src/lib/terminal-worktree-route.ts # resolveTerminalPtyOwner: teardown, close and PTY identity read spawn's attribution (round 3 F8), which retired the deprecated resolver's readers
@@ -239,7 +239,7 @@
1 src/renderer/src/lib/work-items/linear/linear-issue-write.ts
1 src/renderer/src/lib/workspace/activation/worktree-activation.ts
1 src/renderer/src/lib/workspace/ownership/worktree-runtime-owner.ts # a setup terminal with no row spawns on the focused runtime
-1 src/renderer/src/lib/worktree-jump-navigation.ts
+1 src/renderer/src/lib/workspace/activation/worktree-jump-navigation.ts
17 src/renderer/src/runtime/jira/runtime-jira-client.ts
2 src/renderer/src/runtime/jira/runtime-jira-summary-client.ts
5 src/renderer/src/runtime/jira/runtime-jira-user-fields-client.ts
diff --git a/config/legacy-relay-compat-tags-baseline.txt b/config/legacy-relay-compat-tags-baseline.txt
index c168b52ead7..3ed5dc0a23e 100644
--- a/config/legacy-relay-compat-tags-baseline.txt
+++ b/config/legacy-relay-compat-tags-baseline.txt
@@ -15,7 +15,6 @@ src/main/managed-server/migration/cutover/orcad-migration-delta-move.ts
src/main/managed-server/migration/linking/orcad-migration-repository-link.test.ts
src/main/ssh/migration-source/orcad-migration-terminal-gate.test.ts
src/main/ssh/migration-source/orcad-migration-terminal-gate.ts
-src/main/ssh/host-server/ssh-host-server-on-connect.test.ts
src/main/ssh/host-server/ssh-host-server-on-connect.ts
src/main/ssh/targets/ssh-target-orcad-preflight.ts
src/preload/api-types.ts
diff --git a/config/legacy-relay-importers-baseline.txt b/config/legacy-relay-importers-baseline.txt
index ef18c667b27..c48864aa1ed 100644
--- a/config/legacy-relay-importers-baseline.txt
+++ b/config/legacy-relay-importers-baseline.txt
@@ -14,4 +14,3 @@ tests/e2e/cross-version-wire/legacy-relay-bridge.unit.test.ts
tests/e2e/helpers/legacy-relay-docker-host.ts
src/main/managed-server/install/remote-install-model.ts
src/main/ssh/system-transport/ssh-system-transport.integration.test.ts
-src/main/ssh/migration-source/orcad-migration-bridged-panes.test.ts
diff --git a/config/main-layout-writer-baseline.txt b/config/main-layout-writer-baseline.txt
index 096973f7717..00c1afab41e 100644
--- a/config/main-layout-writer-baseline.txt
+++ b/config/main-layout-writer-baseline.txt
@@ -32,6 +32,7 @@
2 src/main/persistence/migrating-orcad-catalog/orcad-destination-client-state.ts
1 src/main/persistence/migrating-orcad-catalog/orcad-destination-workspace-session.ts
3 src/main/persistence/migrating-orcad-catalog/orcad-dormant-state-records.ts
+1 src/main/persistence/migrating-orcad-catalog/orcad-migration-source-retention.ts
2 src/main/persistence/migrating-orcad-catalog/orcad-source-client-subtraction.ts
1 src/main/persistence/migrating-orcad-catalog/orcad-source-dormant-state.ts
1 src/main/persistence/migrating-orcad-catalog/orcad-source-scrollback-state.ts
@@ -53,11 +54,11 @@
2 src/main/pty/scrollback/terminal-scrollback-snapshots.ts
1 src/main/runtime/browser/client-pages/client-hosted-browser-page-persistence.ts
1 src/main/runtime/client/runtime-client-state.ts
-1 src/main/runtime/session-tabs/headless-editor-tabs.ts
4 src/main/runtime/orchestration/terminal-authority/runtime-legacy-worker-terminal-recovery-persistence.ts
2 src/main/runtime/session-graph/session-graph-promotion.ts
2 src/main/runtime/session-lifecycle/projection/apply-mobile-session-tab-navigation.ts
2 src/main/runtime/session-lifecycle/projection/build-headless-mobile-session-browser-tabs.ts
+1 src/main/runtime/session-tabs/headless-editor-tabs.ts
2 src/main/runtime/session-tabs/headless-tab-group-moves.ts
6 src/main/runtime/session-tabs/headless-tab-properties.ts
2 src/main/runtime/session-tabs/headless-terminal-tab-titles.ts
@@ -72,5 +73,4 @@
3 src/main/runtime/terminal/surface/mobile-session-layout-projection.ts
1 src/main/runtime/workspaces/session-hosts/get-runtime-id.ts
1 src/main/runtime/workspaces/session-hosts/runtime-workspace-session-controller.ts
-1 src/main/persistence/migrating-orcad-catalog/orcad-migration-source-retention.ts
1 src/main/ssh/targets/ssh-target-id-migration.ts
diff --git a/config/main-sync-fs-baseline.txt b/config/main-sync-fs-baseline.txt
index 19952926799..605c56591c3 100644
--- a/config/main-sync-fs-baseline.txt
+++ b/config/main-sync-fs-baseline.txt
@@ -116,7 +116,7 @@
1 src/main/codex-accounts/codex-login-auth-snapshot.ts
5 src/main/codex-accounts/codex-managed-home-lifecycle.ts
6 src/main/codex-accounts/codex-managed-home-path.ts
-17 src/main/codex-accounts/fs-utils.ts
+17 src/main/filesystem/atomic-file-publication.ts
1 src/main/codex-accounts/guest-codex-account-homes.ts
6 src/main/codex-accounts/host-codex-managed-home-ownership.ts
2 src/main/codex-accounts/legacy-shared-auth-migration.ts
@@ -496,9 +496,10 @@
10 src/main/speech/openai-api-key-store.ts
2 src/main/speech/speech-model-download-cleanup.ts
1 src/main/speech/speech-model-download-transport.ts
+1 src/main/speech/speech-model-files.ts
2 src/main/speech/speech-model-http-download.ts
-1 src/main/speech/stt-worker-model-config.ts
-2 src/main/speech/stt-worker-paths.ts
+1 src/main/speech/speech-vad-model.ts
+2 src/main/speech/stt-gpu-failure-marker.ts
2 src/main/sqlite/harden-database-files.ts
1 src/main/sqlite/row-cache/keyed-json-row-cache.ts
2 src/main/sqlite/row-cache/legacy-json-source.ts
@@ -608,6 +609,7 @@
7 src/shared/serve-bundle-park.ts
1 src/shared/serve-user-data-path.ts
3 src/shared/source-scan/source-tree-scan.ts
+2 src/shared/speech-recognizer-package.ts
5 src/shared/startup-command-staging.ts
1 src/shared/terminal/pty/native-process/pty-process-ceiling-state.ts
8 src/shared/windows-breakaway-launcher.ts
diff --git a/config/main-sync-spawn-baseline.txt b/config/main-sync-spawn-baseline.txt
index c9d69eefb60..3c1aa15b528 100644
--- a/config/main-sync-spawn-baseline.txt
+++ b/config/main-sync-spawn-baseline.txt
@@ -9,7 +9,7 @@
1 src/main/browser/network/egress/browser-route-egress-electron-launch.ts
1 src/main/browser/routing/partitions/browser-route-partition-binding-store.ts
1 src/main/claude-accounts/runtime-auth-service.ts
-3 src/main/codex-accounts/fs-utils.ts
+3 src/main/filesystem/atomic-file-publication.ts
2 src/main/codex-accounts/legacy-wsl-runtime-auth-drain-recovery-script-harness.ts
2 src/main/codex-accounts/legacy-wsl-runtime-auth-drain-script-harness.ts
1 src/main/codex-accounts/runtime-home-service-home-routing.ts
diff --git a/config/packaged-runtime-node-modules.cjs b/config/packaged-runtime-node-modules.cjs
index a5a9ed3bb33..5a3893af9e5 100644
--- a/config/packaged-runtime-node-modules.cjs
+++ b/config/packaged-runtime-node-modules.cjs
@@ -15,6 +15,7 @@ const {
} = require('./scripts/native-build/windows/windows-pe-machine.cjs')
const { adoptPackagedNativeBuildEntries } = require('./packaged-native-build-entries.cjs')
const { runtimePackageExcludeFilter } = require('./packaged-windows-only-runtime-files.cjs')
+const { missingTranscribeCppPackages } = require('./packaged-transcribe-cpp.cjs')
const {
NATIVE_BUILD_PACKAGES,
TRANSIENT_NATIVE_BUILD_ENTRY_FILTER
@@ -81,7 +82,6 @@ const PACKAGED_MAIN_REQUIRED_FILES = [
const PACKAGED_MAIN_SOURCE_RE = /^out\/main\/.+\.js$/
const TYPE_DECLARATION_ARTIFACT_RE = /\.d\.(?:c|m)?ts(?:\.map)?$/
const JS_SOURCE_MAP_ARTIFACT_RE = /\.(?:c|m)?js\.map$/
-const VERSIONED_ONNXRUNTIME_DYLIB_RE = /^libonnxruntime\.\d[\d.]*\.dylib$/
const NODE_BUILTINS = new Set([
...builtinModules,
@@ -518,31 +518,6 @@ function prunePackagedRuntimeTypeAndSourceMapArtifacts(resourcesDir) {
pruneMatchingFiles(nodeModulesDir, isPrunableTypeOrSourceMapArtifact)
}
-function prunePackagedSherpaOnnx(resourcesDir, electronPlatformName) {
- if (electronPlatformName !== 'darwin') {
- return
- }
- const nodeModulesDir = join(resourcesDir, 'node_modules')
- if (!existsSync(nodeModulesDir)) {
- return
- }
- for (const entry of readdirSync(nodeModulesDir, { withFileTypes: true })) {
- if (!entry.isDirectory() || !entry.name.startsWith('sherpa-onnx-darwin-')) {
- continue
- }
- const packageDir = join(nodeModulesDir, entry.name)
- const packageEntries = readdirSync(packageDir)
- const hasVersionedOnnxRuntime = packageEntries.some((filename) =>
- VERSIONED_ONNXRUNTIME_DYLIB_RE.test(filename)
- )
- if (hasVersionedOnnxRuntime) {
- // Why: darwin sherpa-onnx binaries link to the versioned ONNX Runtime
- // install name; the unversioned dylib is a duplicate fallback copy.
- rmSync(join(packageDir, 'libonnxruntime.dylib'), { force: true })
- }
- }
-}
-
function prunePackagedZodSources(resourcesDir) {
// Why: Zod's src tree is TypeScript source only selected by the @zod/source
// condition; packaged runtime import/require paths resolve to built JS.
@@ -556,17 +531,7 @@ function assertPackagedNativeVariantsInstalled(electronPlatformName, electronArc
const isInstalled = (name) => existsSync(join(nodeModulesDir, name, 'package.json'))
const missing = []
- const rootOptionalDependencies =
- JSON.parse(readFileSync(join(projectDir, 'package.json'), 'utf8')).optionalDependencies ?? {}
- // Why win32 is always x64: winSpeechNativeResource packages sherpa-onnx-win-x64 for every
- // Windows target (there is no sherpa-onnx-win-arm64; it runs under emulation).
- const sherpaName =
- electronPlatformName === 'win32'
- ? 'sherpa-onnx-win-x64'
- : `sherpa-onnx-${electronPlatformName}-${architecture}`
- if (sherpaName in rootOptionalDependencies && !isInstalled(sherpaName)) {
- missing.push(sherpaName)
- }
+ missing.push(...missingTranscribeCppPackages(readPackage, electronPlatformName, architecture))
// Why prefix, not equality: linux variants carry a libc suffix (watcher-linux-x64-glibc),
// mirroring what prunePackagedParcelWatcher keeps.
@@ -634,7 +599,6 @@ function prunePackagedRuntimeNodeModules(resourcesDir, electronPlatformName, ele
// Why before the filename walk: zod/src is deleted wholesale, so walking it first is wasted work.
prunePackagedZodSources(resourcesDir)
prunePackagedRuntimeTypeAndSourceMapArtifacts(resourcesDir)
- prunePackagedSherpaOnnx(resourcesDir, electronPlatformName)
}
function pruneMatchingFiles(directory, shouldPrune) {
@@ -656,13 +620,14 @@ module.exports = {
createPackagedRuntimeNodeModuleResources,
findAsarEntry,
isPackagedExternalSpecifier,
+ normalizeElectronArchitecture,
normalizeNodePtyWindowsArch,
packageNameFromSpecifier,
prunePackagedNodePty,
prunePackagedParcelWatcher,
prunePackagedRuntimeNodeModules,
prunePackagedRuntimeTypeAndSourceMapArtifacts,
- prunePackagedSherpaOnnx,
prunePackagedZodSources,
+ readPackage,
verifyPackagedMainRuntimeDeps
}
diff --git a/config/packaged-transcribe-cpp.cjs b/config/packaged-transcribe-cpp.cjs
new file mode 100644
index 00000000000..2fe3334a712
--- /dev/null
+++ b/config/packaged-transcribe-cpp.cjs
@@ -0,0 +1,97 @@
+const { cpSync, existsSync } = require('node:fs')
+const { execFileSync } = require('node:child_process')
+const { join } = require('node:path')
+
+const TRANSCRIBE_CPP_PACKAGES = require('../src/shared/transcribe-cpp-packages.json')
+// transcribe.dll needs MSVC runtime >= 14.40 (older ones crash in std::mutex); the system copy may be older.
+const WINDOWS_CRT_DLLS = ['msvcp140.dll', 'vcruntime140.dll', 'vcruntime140_1.dll']
+const MIN_WINDOWS_CRT_VERSION = [14, 40]
+
+/**
+ * The packages the speech host loads transcribe-cpp from, in load order: the ESM binding, koffi
+ * (its FFI), koffi's prebuilt addon, and the target's native libraries. Each resolves from the
+ * previous one's directory, as Node does at runtime. Null where the target ships no transcribe-cpp.
+ */
+function transcribeCppRuntimePackages(readPackage, electronPlatformName, architecture) {
+ const native = TRANSCRIBE_CPP_PACKAGES[`${electronPlatformName}-${architecture}`]
+ if (!native) {
+ return null
+ }
+ const binding = readPackage('transcribe-cpp')
+ const koffi = readPackage('koffi', binding.packageDir)
+ const koffiAddon = readPackage(
+ `@koromix/koffi-${electronPlatformName}-${architecture}`,
+ koffi.packageDir
+ )
+ const nativeLibraries = readPackage(native, binding.packageDir)
+ return [binding, koffi, koffiAddon, nativeLibraries]
+}
+
+function readFileVersion(dll) {
+ const version = execFileSync(
+ 'powershell.exe',
+ ['-NoProfile', '-Command', `(Get-Item -LiteralPath '${dll}').VersionInfo.FileVersion`],
+ { encoding: 'utf8' }
+ ).trim()
+ return version.split(/[.,\s]+/).map((part) => Number.parseInt(part, 10))
+}
+
+function copyWindowsCrt(nativeDir) {
+ const systemDir = join(process.env.SystemRoot || 'C:\\Windows', 'System32')
+ for (const name of WINDOWS_CRT_DLLS) {
+ const source = join(systemDir, name)
+ if (!existsSync(source)) {
+ throw new Error(
+ `Packaging transcribe-cpp needs ${source} (Visual C++ 2015-2022 x64 runtime).`
+ )
+ }
+ const [major, minor] = readFileVersion(source)
+ if (!Number.isFinite(major) || !Number.isFinite(minor)) {
+ throw new Error(`Cannot read the file version of ${source}.`)
+ }
+ const [minMajor, minMinor] = MIN_WINDOWS_CRT_VERSION
+ if (major < minMajor || (major === minMajor && minor < minMinor)) {
+ throw new Error(
+ `${source} is ${major}.${minor}; transcribe-cpp needs ${MIN_WINDOWS_CRT_VERSION.join('.')}+. ` +
+ 'Install the latest Visual C++ 2015-2022 x64 redistributable on the build host.'
+ )
+ }
+ // App-local beside transcribe.dll, which loads its dependencies from its own directory.
+ cpSync(source, join(nativeDir, name))
+ }
+}
+
+/** Copy transcribe-cpp into the slice's resources/node_modules, outside asar where koffi can dlopen it. */
+function copyPackagedTranscribeCpp(readPackage, resourcesDir, electronPlatformName, architecture) {
+ // beforePack's assertPackagedNativeVariantsInstalled already failed any real build missing these;
+ // only an afterPack driven without it (packaging tests) gets here without them.
+ if (missingTranscribeCppPackages(readPackage, electronPlatformName, architecture).length > 0) {
+ return
+ }
+ const packages = transcribeCppRuntimePackages(readPackage, electronPlatformName, architecture)
+ if (!packages) {
+ return
+ }
+ for (const { name, packageDir } of packages) {
+ const target = join(resourcesDir, 'node_modules', ...name.split('/'))
+ cpSync(packageDir, target, { recursive: true, dereference: true })
+ }
+ if (electronPlatformName === 'win32') {
+ copyWindowsCrt(join(resourcesDir, 'node_modules', ...packages[3].name.split('/')))
+ }
+}
+
+/** The transcribe-cpp packages a target needs that this install lacks (install:release adds other CPUs). */
+function missingTranscribeCppPackages(readPackage, electronPlatformName, architecture) {
+ try {
+ transcribeCppRuntimePackages(readPackage, electronPlatformName, architecture)
+ return []
+ } catch (error) {
+ return [String(error.message ?? error)]
+ }
+}
+
+module.exports = {
+ copyPackagedTranscribeCpp,
+ missingTranscribeCppPackages
+}
diff --git a/config/react-compiler-bailout-baseline.txt b/config/react-compiler-bailout-baseline.txt
index c4cd51da520..d1bc3f33bea 100644
--- a/config/react-compiler-bailout-baseline.txt
+++ b/config/react-compiler-bailout-baseline.txt
@@ -386,6 +386,7 @@
1 src/renderer/src/components/right-sidebar/use-right-sidebar-activity-items.ts
3 src/renderer/src/components/right-sidebar/use-right-sidebar-tab-routing.ts
1 src/renderer/src/components/runtime-access/RuntimeRepairDialog.tsx
+1 src/renderer/src/components/session-search/use-session-search-status.ts
8 src/renderer/src/components/settings/accounts/AccountsPane.tsx
3 src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
1 src/renderer/src/components/settings/accounts/providers/CursorAccountsSection.tsx
@@ -422,14 +423,14 @@
1 src/renderer/src/components/settings/privacy/PrivacyPane.tsx
1 src/renderer/src/components/settings/quick-commands/QuickCommandsPane.tsx
1 src/renderer/src/components/settings/repository/RepositoryFormatterSection.tsx
-2 src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx
3 src/renderer/src/components/settings/repository/RepositoryJiraProjectSection.tsx
-2 src/renderer/src/components/settings/repository/source-control/RepositoryForkSyncSection.tsx
3 src/renderer/src/components/settings/repository/hosts/RepositoryHostSetupActions.tsx
-2 src/renderer/src/components/settings/repository/worktrees/SparsePresetSettingsSection.tsx
2 src/renderer/src/components/settings/repository/identity/RepositoryIconPicker.tsx
1 src/renderer/src/components/settings/repository/mcp/McpConfigSection.tsx
+2 src/renderer/src/components/settings/repository/source-control/RepositoryForkSyncSection.tsx
+2 src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx
9 src/renderer/src/components/settings/repository/source-control/repository-source-control-ai-global-ux.ts
+2 src/renderer/src/components/settings/repository/worktrees/SparsePresetSettingsSection.tsx
1 src/renderer/src/components/settings/runtime-environments/catalog/use-runtime-environment-catalog.ts
3 src/renderer/src/components/settings/runtime-environments/catalog/use-runtime-environment-connection-actions.ts
2 src/renderer/src/components/settings/runtime-environments/catalog/use-runtime-environment-mutation-actions.ts
@@ -441,7 +442,6 @@
1 src/renderer/src/components/settings/session-history/SessionHistoryServerRow.tsx
2 src/renderer/src/components/settings/session-history/SessionHistorySettingsPane.tsx
1 src/renderer/src/components/settings/session-history/SessionSearchAdvancedSection.tsx
-1 src/renderer/src/components/session-search/use-session-search-status.ts
1 src/renderer/src/components/settings/shortcuts/ShortcutRecorderButton.tsx
2 src/renderer/src/components/settings/source-control/AutoRenameBranchFromWorkSetting.tsx
1 src/renderer/src/components/settings/source-control/CommitMessageAiPane.tsx
@@ -449,7 +449,6 @@
1 src/renderer/src/components/settings/ssh/SshPane.tsx
1 src/renderer/src/components/settings/ssh/server-actions/SshHostDeltaMoveDialog.tsx
1 src/renderer/src/components/settings/ssh/server-actions/SshHostKeepServerVersionDialog.tsx
-1 src/renderer/src/components/ssh-host-recovery/SshHostMoveAnywayAction.tsx
1 src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.tsx
1 src/renderer/src/components/settings/ssh/server-actions/SshHostRestartServerAction.tsx
1 src/renderer/src/components/settings/ssh/ssh-hosts-header-slot.tsx
@@ -501,7 +500,7 @@
2 src/renderer/src/components/sidebar/useRenderedSetupScriptPromptState.ts
2 src/renderer/src/components/sidebar/workspace-actions/context-menu/use-worktree-context-menu-commands.ts
1 src/renderer/src/components/sidebar/workspace-actions/context-menu/use-worktree-context-menu-secondary-actions.ts
-2 src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
+1 src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
1 src/renderer/src/components/sidebar/workspace-actions/deletion/RemovalUnsavedFilesNotice.tsx
1 src/renderer/src/components/sidebar/workspace-actions/deletion/WorktreeForceDeleteButton.tsx
1 src/renderer/src/components/sidebar/workspace-actions/deletion/use-delete-worktree-status-hydration.ts
@@ -554,6 +553,7 @@
1 src/renderer/src/components/skills/use-reviewed-skill-plan.ts
1 src/renderer/src/components/skills/use-skill-delete-flow.ts
1 src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
+1 src/renderer/src/components/ssh-host-recovery/SshHostMoveAnywayAction.tsx
2 src/renderer/src/components/star-nag/StarNagAgentValueMomentObserver.tsx
1 src/renderer/src/components/stats/ShareUsageButton.tsx
2 src/renderer/src/components/status-bar/ClaudeSwitcherForOwner.tsx
diff --git a/config/reliability-gates.jsonc b/config/reliability-gates.jsonc
index 76de250ab2b..744d4f96f31 100644
--- a/config/reliability-gates.jsonc
+++ b/config/reliability-gates.jsonc
@@ -459,10 +459,10 @@
"invariant": "A prompt occurrence leaves the input region only when an accepted reply answers it (a current host's provider acknowledgment, or an older host's whole-write acceptance as before) or the user collapses it to a strip above the composer, which writes nothing and keeps the card mounted with its partial answer; status-backed occurrences are told apart by the host wait's start, so view toggles and remounts preserve them while real clear/replacement supersedes them, and a transcript-only one is dropped when the view stops observing it; obsolete results cannot change replacements; selector groups wait for complete writes before pacing; refusal or unknown handoff never causes replay; a card retires an unsubmitted composer send without writing under it or losing its text, and the hidden composer cannot send or interrupt; Collapse or Escape folds a card without writing, never during an in-flight answer, and a new occurrence shows expanded again; the phone blocks only Send while a card is expanded and shows one card per occurrence; cancellation stops unsent groups and active dictation can stop.",
"oracle": "Audit2251 narrows agent-paste-draft.test.ts from 25 authored cases (26 literal cases) to four. Retained cases cover buffered readiness on PTY binding, separate spawn/composer lifetimes, real per-PTY paste/Enter serialization against a competing paste, and frame closure/no Enter after a rejected content chunk. Intentionally lost alarms include agent marker and fallback examples, direct-write failure/rejection, missing-PTY and Codex process-only timeout paths, exact nonprimary-PTY routing, full large-body chunk reconstruction, escaping/CRLF samples, internal laziness/yield work assertions, oversized preflight refusal, and exact configured delay/budget counts. No equivalent replacement, new execution, real PTY/provider delivery, rendered/native UI, deployment, measured performance or cross-platform result is claimed. Historical prior account (preserved verbatim): Mobile owner-layout policy retires whole tests and mixed registrations without equivalent replacement coverage. Retained callbacks and reduced selectors need fresh execution at their stated scope; prior measurements do not validate them. Historical oracle: Audit2003: Remove agent-prompt absence routing, throwing/live/missing-probe and cached-probe-count examples from the stale-leaf source. Controller-proven absence, unknown-liveness admission, obsolete-absence clearing and same-ID respawn fences remain at a supplied provider/row seam. Preserve the independent wire-codec receipt only in its original scope. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1991: Remove partial-runtime terminal-send guard/status/floor/query projection and argument-inventory samples. Retained RPC viewport admission, authenticated-client spoof refusal, text admission and stale-binding fences remain bounded mock-boundary behavior. The unchanged wire-codec receipt remains valid only for its original command; it does not validate this reduced RPC selector. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1908 removes the complete prompt-presentation hook and literal interactive-protocol mapping suites and narrows the interactive card and prompt-card input suites. Lost alarms include replacement approval A settling after answered B; collapse/expand composer ownership and partial-answer presentation; identical new waits after an unmounted view; collapsed transcript re-reads; answered/dismissed status-backed persistence and retirement; and literal answer-to-PTY byte arrays. The retained stale-PTY acknowledgment, cancellation/answer retry, and answered-approval remount/rebind assertions remain meaningful but are not equivalent replacement coverage. No fresh reduced-selector result, physical provider, rendered/native-focus, mixed-version deployment, soak, or measured-budget validation is claimed. The unchanged wire-codec receipt remains valid only for its exact command. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Retained unchanged-selector receipts are the only current execution evidence. Reduced-source assertions await validation. Historical prior oracle: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): After acknowledged phone replies with stale host status, the exact card disappears and Send is enabled; unknown, refused or unverifiable-settlement replies retain enabled choices, while an older host's accepted reply dismisses like an acknowledged one; a same-occurrence view toggle retains pending acknowledgment and real replacements discard it. A slow 32 KiB SSH answer completes all chunks before Enter; cancellation preserves issued bytes but omits remaining groups. Paired settlement invokes the actual provider and lost callbacks remain unknown; older hosts deliver ordinary messages, launch and selector groups once and their accepted answers dismiss as before. An answered card stays hidden across a view remount; a collapsed card is a strip that frees the composer and expands back; an identical question in a new wait shows again; a composer send caught by a new card keeps its bubble without submitting or clearing the line under it. Audit2450 removes the MobileNativeChatView failure-banner callback-only example whose old banner is supplied unchanged by its props. Retain fatal-read gating and the ordering test that preserves a new delivery notice. The removed false-send/old-banner combination has no equivalent replacement; prior raw receipts and budgets retain their original source scope. No new soak, platform, performance or red/green claim.",
"commands": [
- "ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/native-chat/prompts/NativeChatInteractiveCard.test.tsx src/renderer/src/components/native-chat/prompts/NativeChatResolvedView.prompt-card-input.test.tsx src/renderer/src/components/native-chat/surfaces/integration/NativeChatResolvedView.prompt-card-composer.test.tsx src/renderer/src/components/native-chat/conversation/turns/NativeChatResolvedView.turn-status.test.tsx src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-inspection.test.ts src/renderer/src/lib/agent-paste-draft.test.ts src/renderer/src/lib/agent-paste-draft-submit-retry.test.ts src/main/ipc/pty/ipc/write-input-user-input.test.ts src/main/ipc/pty/pty-write-ipc-validation.test.ts src/main/runtime/terminal/input/runtime-terminal-writer.test.ts src/main/runtime/rpc/terminal-send.test.ts src/main/runtime/terminal/input/terminal-send-stale-leaf-liveness.test.ts --maxWorkers=2",
+ "ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/native-chat/prompts/NativeChatInteractiveCard.test.tsx src/renderer/src/components/native-chat/prompts/NativeChatResolvedView.prompt-card-input.test.tsx src/renderer/src/components/native-chat/surfaces/integration/NativeChatResolvedView.prompt-card-composer.test.tsx src/renderer/src/components/native-chat/conversation/turns/NativeChatResolvedView.turn-status.test.tsx src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-inspection.test.ts src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft.test.ts src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft-submit-retry.test.ts src/main/ipc/pty/ipc/write-input-user-input.test.ts src/main/ipc/pty/pty-write-ipc-validation.test.ts src/main/runtime/terminal/input/runtime-terminal-writer.test.ts src/main/runtime/rpc/terminal-send.test.ts src/main/runtime/terminal/input/terminal-send-stale-leaf-liveness.test.ts --maxWorkers=2",
"ORCA_BACKGROUND_LAUNCH=1 mobile/node_modules/.bin/vitest run --config mobile/vitest.config.ts mobile/src/session/native-chat/MobileNativeChatView.prompt-presentation.test.ts mobile/src/session/native-chat/MobileNativeChatView.failure-banner.test.ts mobile/src/session/mobile-prompt-controller.test.ts --maxWorkers=2",
"ORCA_BACKGROUND_LAUNCH=1 pnpm test tests/e2e/cross-version-wire/cross-version-terminal-wire.unit.test.ts --maxWorkers=1",
- "ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/native-chat/prompts/NativeChatInteractiveCard.test.tsx src/renderer/src/components/native-chat/prompts/NativeChatResolvedView.prompt-card-input.test.tsx src/renderer/src/components/native-chat/conversation/turns/NativeChatResolvedView.turn-status.test.tsx src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-inspection.test.ts src/renderer/src/lib/agent-paste-draft.test.ts src/renderer/src/lib/agent-paste-draft-submit-retry.test.ts src/main/ipc/pty/ipc/write-input-user-input.test.ts src/main/ipc/pty/pty-write-ipc-validation.test.ts --maxWorkers=2",
+ "ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/native-chat/prompts/NativeChatInteractiveCard.test.tsx src/renderer/src/components/native-chat/prompts/NativeChatResolvedView.prompt-card-input.test.tsx src/renderer/src/components/native-chat/conversation/turns/NativeChatResolvedView.turn-status.test.tsx src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-inspection.test.ts src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft.test.ts src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft-submit-retry.test.ts src/main/ipc/pty/ipc/write-input-user-input.test.ts src/main/ipc/pty/pty-write-ipc-validation.test.ts --maxWorkers=2",
"ORCA_BACKGROUND_LAUNCH=1 mobile/node_modules/.bin/vitest run --config mobile/vitest.config.ts mobile/src/session/native-chat/MobileNativeChatView.prompt-presentation.test.ts mobile/src/session/native-chat/MobileNativeChatView.failure-banner.test.ts --maxWorkers=2"
],
"testFiles": [
@@ -471,8 +471,8 @@
"src/renderer/src/components/native-chat/surfaces/integration/NativeChatResolvedView.prompt-card-composer.test.tsx",
"src/renderer/src/components/native-chat/conversation/turns/NativeChatResolvedView.turn-status.test.tsx",
"src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-inspection.test.ts",
- "src/renderer/src/lib/agent-paste-draft.test.ts",
- "src/renderer/src/lib/agent-paste-draft-submit-retry.test.ts",
+ "src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft.test.ts",
+ "src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft-submit-retry.test.ts",
"src/main/ipc/pty/ipc/write-input-user-input.test.ts",
"src/main/ipc/pty/pty-write-ipc-validation.test.ts",
"src/main/runtime/terminal/input/runtime-terminal-writer.test.ts",
@@ -2175,13 +2175,13 @@
"providers": ["local", "daemon", "wsl", "ssh", "remote-runtime"],
"coveredPlatforms": ["linux"],
"coveredProviders": [],
- "coverageNotes": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2065 (sources2063/2064): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/startup/pty-connection-startup-cwd-fallback-notice.spec.ts: prints a terminal notice when the startup cwd fell back to the workspace root. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-coalesce.test.ts: surfaces working frames when many spinner frames arrive in one chunk. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-spinner.test.ts: surfaces normalized working and idle labels across a spinner cycle; surfaces working even when a single chunk contains multiple spinner frames. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionStartupCwdFallbackNoticeTests } from '../startup/pty-connection-startup-cwd-fallback-notice.spec'; registerPtyConnectionStartupCwdFallbackNoticeTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2061 (sources2059/2060): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-agent-trust-hold.test.ts: spawns only after the answer, carrying \"let agents ask\" to main for this launch; reattaches a section terminal without asking or changing trust; spawns with today's default when the prompt is released without an answer. src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-ssh-hook-status-authority.spec.ts: leaves SSH IPC OSC 9999 status ownership in the main runtime. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionSshHookStatusAuthorityTests } from '../host-ownership/pty-connection-ssh-hook-status-authority.spec'; registerPtyConnectionSshHookStatusAuthorityTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-spawn-intent.test.ts: declares the intent only when the spawn resumes an agent; reports a deferral to the pane instead of an error toast. src/renderer/src/components/terminal-pane/pty-connection/startup/in-place-resume-hold.test.ts: owns the record while the start runs, through a nested start, and releases on settle; holds nothing for a start not resuming a record, or once the pane is disposed. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): The existing directory-level pnpm test selector includes eleven changed source files and automatically omits the three whole deletions. Keep this nonempty discovery command unchanged; no dated receipt uses this broad path. Removed agent admission fields, mock transport routing and terminal-id projection alarms are lost. Retained foreground state, actual headless xterm, redraw, abort/rebind reader and bridge claim progression remain scoped to their unchanged callbacks. No current-source execution, independent replacement, native transport or physical provider result is assigned. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally reduces src/renderer/src/components/terminal-pane/pty-connection/main-pane-start-wait.test.ts: Loses joined waiter invocation/failure notification and raw terminal error/paired-host readable sentence alarms; survivors preserve hold detection and card clearing. deletes src/renderer/src/components/terminal-pane/pty-connection-hidden-tui-snapshot-replay.spec.ts: Loses rich hidden snapshot sequence replay/grid resize and forced repaint after hidden snapshot alarms, including live-trigger deduplication. deletes src/renderer/src/components/terminal-pane/pty-connection-pi-synchronized-input.test.ts: Loses typed-input forced synchronized-frame presentation alarm; setup implements the parser behavior it claims to exercise. deletes src/renderer/src/components/terminal-pane/pty-connection-unserved-ssh-pane.test.ts: Loses automatic SSH dial deduplication, passphrase gating, stale pane exclusion, and disposal cancellation alarms. deletes src/renderer/src/components/terminal-pane/pty-connection-remote-snapshot-source-grid.test.ts: Loses source grid before frame and destination grid restoration ordering alarm. deletes src/renderer/src/components/terminal-pane/pty-connection-restart-replacement.spec.ts: Loses wrapper-level hidden/visible restart resume, dispose/rebind suppression and finished-turn replay alarms; manual pipeline and mock-implemented binding invalidate the whole callbacks. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1391 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1361 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): macOS daemon-backed Electron journey verifies same PID and terminal identity plus rendered output. Focused renderer contracts pass on Linux, Windows and WSL. Neighboring SSH model and replay contracts pass locally; no new live SSH or paired-runtime journey. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-unanswered-command-finish.spec.ts removed. Unanswered SSH shell finish keeps/drops mocked agent row matrix disappears. src/renderer/src/components/terminal-pane/pty-connection-split-cwd-resolution.test.ts reduced. Happy inherited-cwd wait and transport-option forwarding sample loses its individual alarm. src/renderer/src/components/terminal-pane/pty-connection-command-input-agent-identity.spec.ts removed. Typed Droid versus process/launch identity and SSH/runtime process-evidence matrices disappear. src/renderer/src/components/terminal-pane/pty-connection/reattach-success-settle.test.ts removed. Success/no-ID/expired/superseded attach-settlement bag alarms disappear. src/renderer/src/components/terminal-pane/pty-transport-user-input.test.ts reduced. Every-write kind forwarding and synchronous driving-attempt observer/rejection/ACK call counts disappear. src/renderer/src/components/terminal-pane/pty-connection-codex-restart-input-lookup.spec.ts removed. No global tab enumeration on ordinary/stale input and known restart notice input-block mock-call alarms. src/renderer/src/components/terminal-pane/pty-connection-layout-owner-wake.test.ts removed. Hidden-to-visible single-pane start request, attach-only argument and negative local wake-record alarms are intentionally dropped; no real server wake/ack occurs. src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. src/renderer/src/components/terminal-pane/pty-connection-command-finished-cleanup.spec.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. src/renderer/src/components/terminal-pane/pty-connection-terminal-input-gating.spec.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1361: src/renderer/src/components/terminal-pane/pty-connection/foreground-output-scan.test.ts reduced. Internal searched-character budget and ordinary/malformed no-op controls. No equivalent replacement coverage is claimed. Audit1365: focused Linux unit selection passed on source head 8880357cb420c45f1b808ae545a5bc609324624d. This new result has its own exact command; historical results keep their prior scope. Intentional test losses remain recorded in knownGaps. No physical-provider, native input, rendered E2E, p95, soak or replacement-coverage claim. Audit1369: src/renderer/src/components/terminal-pane/pty-connection/disposed-spawn-retention.test.ts removed. Rootless/removed/moved tabs, missing leaves, queued deletion and host-qualified/legacy deletion eligibility fixtures. No equivalent replacement coverage is claimed. Audit1391: src/renderer/src/components/terminal-pane/pty-connection-remote-pause-drop-notice.spec.ts reduced. Lose repeated quiet switches avoiding snapshots and legacy host without drop-report capability requesting a snapshot. Retained imported registrar uses fake transport/xterm writes, exercising real gap/restore lifecycle rather than actual terminal rendering. No equivalent replacement coverage is claimed. Audit1396: src/renderer/src/components/terminal-pane/pty-connection-pending-spawn.spec.ts reduced. Lose standalone debug-state retention/log silence alarm. React StrictMode is not mounted; bindings manually simulate remount over mocked transport. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1400: src/renderer/src/components/terminal-pane/pty-connection/terminal-input-echo-delay.test.ts reduced. Removes two fabricated-binding pipeline registrations; retains timestamp-policy outcomes without wall-clock speed assertions. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1402: src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts reduced. Loses basic paired serialize/initial replay forwarding check; hidden alt-frame grid/precedence policy remains. No real terminal renderer claim. src/renderer/src/components/terminal-pane/pty-connection/main-pane-resume-banner.test.ts reduced. Loses subscription-budget and attach-start generation predicate alarms; actual restored-banner renderer is not exercised. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result.",
+ "coverageNotes": "Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The retained directory-level discovery command continues to discover the reduced family; historical wrapper mentions are not fresh import-closure or execution evidence. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2065 (sources2063/2064): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/startup/pty-connection-startup-cwd-fallback-notice.spec.ts: prints a terminal notice when the startup cwd fell back to the workspace root. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-coalesce.test.ts: surfaces working frames when many spinner frames arrive in one chunk. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-spinner.test.ts: surfaces normalized working and idle labels across a spinner cycle; surfaces working even when a single chunk contains multiple spinner frames. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionStartupCwdFallbackNoticeTests } from '../startup/pty-connection-startup-cwd-fallback-notice.spec'; registerPtyConnectionStartupCwdFallbackNoticeTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2061 (sources2059/2060): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-agent-trust-hold.test.ts: spawns only after the answer, carrying \"let agents ask\" to main for this launch; reattaches a section terminal without asking or changing trust; spawns with today's default when the prompt is released without an answer. src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-ssh-hook-status-authority.spec.ts: leaves SSH IPC OSC 9999 status ownership in the main runtime. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionSshHookStatusAuthorityTests } from '../host-ownership/pty-connection-ssh-hook-status-authority.spec'; registerPtyConnectionSshHookStatusAuthorityTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-spawn-intent.test.ts: declares the intent only when the spawn resumes an agent; reports a deferral to the pane instead of an error toast. src/renderer/src/components/terminal-pane/pty-connection/startup/in-place-resume-hold.test.ts: owns the record while the start runs, through a nested start, and releases on settle; holds nothing for a start not resuming a record, or once the pane is disposed. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): The existing directory-level pnpm test selector includes eleven changed source files and automatically omits the three whole deletions. Keep this nonempty discovery command unchanged; no dated receipt uses this broad path. Removed agent admission fields, mock transport routing and terminal-id projection alarms are lost. Retained foreground state, actual headless xterm, redraw, abort/rebind reader and bridge claim progression remain scoped to their unchanged callbacks. No current-source execution, independent replacement, native transport or physical provider result is assigned. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally reduces src/renderer/src/components/terminal-pane/pty-connection/main-pane-start-wait.test.ts: Loses joined waiter invocation/failure notification and raw terminal error/paired-host readable sentence alarms; survivors preserve hold detection and card clearing. deletes src/renderer/src/components/terminal-pane/pty-connection-hidden-tui-snapshot-replay.spec.ts: Loses rich hidden snapshot sequence replay/grid resize and forced repaint after hidden snapshot alarms, including live-trigger deduplication. deletes src/renderer/src/components/terminal-pane/pty-connection-pi-synchronized-input.test.ts: Loses typed-input forced synchronized-frame presentation alarm; setup implements the parser behavior it claims to exercise. deletes src/renderer/src/components/terminal-pane/pty-connection-unserved-ssh-pane.test.ts: Loses automatic SSH dial deduplication, passphrase gating, stale pane exclusion, and disposal cancellation alarms. deletes src/renderer/src/components/terminal-pane/pty-connection-remote-snapshot-source-grid.test.ts: Loses source grid before frame and destination grid restoration ordering alarm. deletes src/renderer/src/components/terminal-pane/pty-connection-restart-replacement.spec.ts: Loses wrapper-level hidden/visible restart resume, dispose/rebind suppression and finished-turn replay alarms; manual pipeline and mock-implemented binding invalidate the whole callbacks. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1391 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1361 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): macOS daemon-backed Electron journey verifies same PID and terminal identity plus rendered output. Focused renderer contracts pass on Linux, Windows and WSL. Neighboring SSH model and replay contracts pass locally; no new live SSH or paired-runtime journey. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-unanswered-command-finish.spec.ts removed. Unanswered SSH shell finish keeps/drops mocked agent row matrix disappears. src/renderer/src/components/terminal-pane/pty-connection-split-cwd-resolution.test.ts reduced. Happy inherited-cwd wait and transport-option forwarding sample loses its individual alarm. src/renderer/src/components/terminal-pane/pty-connection-command-input-agent-identity.spec.ts removed. Typed Droid versus process/launch identity and SSH/runtime process-evidence matrices disappear. src/renderer/src/components/terminal-pane/pty-connection/reattach-success-settle.test.ts removed. Success/no-ID/expired/superseded attach-settlement bag alarms disappear. src/renderer/src/components/terminal-pane/pty-transport-user-input.test.ts reduced. Every-write kind forwarding and synchronous driving-attempt observer/rejection/ACK call counts disappear. src/renderer/src/components/terminal-pane/pty-connection-codex-restart-input-lookup.spec.ts removed. No global tab enumeration on ordinary/stale input and known restart notice input-block mock-call alarms. src/renderer/src/components/terminal-pane/pty-connection-layout-owner-wake.test.ts removed. Hidden-to-visible single-pane start request, attach-only argument and negative local wake-record alarms are intentionally dropped; no real server wake/ack occurs. src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. src/renderer/src/components/terminal-pane/pty-connection-command-finished-cleanup.spec.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. src/renderer/src/components/terminal-pane/pty-connection-terminal-input-gating.spec.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1361: src/renderer/src/components/terminal-pane/pty-connection/foreground-output-scan.test.ts reduced. Internal searched-character budget and ordinary/malformed no-op controls. No equivalent replacement coverage is claimed. Audit1365: focused Linux unit selection passed on source head 8880357cb420c45f1b808ae545a5bc609324624d. This new result has its own exact command; historical results keep their prior scope. Intentional test losses remain recorded in knownGaps. No physical-provider, native input, rendered E2E, p95, soak or replacement-coverage claim. Audit1369: src/renderer/src/components/terminal-pane/pty-connection/disposed-spawn-retention.test.ts removed. Rootless/removed/moved tabs, missing leaves, queued deletion and host-qualified/legacy deletion eligibility fixtures. No equivalent replacement coverage is claimed. Audit1391: src/renderer/src/components/terminal-pane/pty-connection-remote-pause-drop-notice.spec.ts reduced. Lose repeated quiet switches avoiding snapshots and legacy host without drop-report capability requesting a snapshot. Retained imported registrar uses fake transport/xterm writes, exercising real gap/restore lifecycle rather than actual terminal rendering. No equivalent replacement coverage is claimed. Audit1396: src/renderer/src/components/terminal-pane/pty-connection-pending-spawn.spec.ts reduced. Lose standalone debug-state retention/log silence alarm. React StrictMode is not mounted; bindings manually simulate remount over mocked transport. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1400: src/renderer/src/components/terminal-pane/pty-connection/terminal-input-echo-delay.test.ts reduced. Removes two fabricated-binding pipeline registrations; retains timestamp-policy outcomes without wall-clock speed assertions. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1402: src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts reduced. Loses basic paired serialize/initial replay forwarding check; hidden alt-frame grid/precedence policy remains. No real terminal renderer claim. src/renderer/src/components/terminal-pane/pty-connection/main-pane-resume-banner.test.ts reduced. Loses subscription-budget and attach-start generation predicate alarms; actual restored-banner renderer is not exercised. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result.",
"motivatingLinks": [
"https://github.com/user-attachments/assets/e8c6d1dc-6150-4c3d-b55a-3d12efefdd04",
"https://github.com/user-attachments/assets/b0328f88-34ac-4d51-8119-9efe17072435"
],
"invariant": "Adopting a prestarted terminal preserves its existing process and paints snapshot-covered startup output once while retaining subsequent live output. Missing sequence proof or blank snapshots must not authorize dropping output.",
- "oracle": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2065 (sources2063/2064): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/startup/pty-connection-startup-cwd-fallback-notice.spec.ts: prints a terminal notice when the startup cwd fell back to the workspace root. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-coalesce.test.ts: surfaces working frames when many spinner frames arrive in one chunk. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-spinner.test.ts: surfaces normalized working and idle labels across a spinner cycle; surfaces working even when a single chunk contains multiple spinner frames. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionStartupCwdFallbackNoticeTests } from '../startup/pty-connection-startup-cwd-fallback-notice.spec'; registerPtyConnectionStartupCwdFallbackNoticeTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2061 (sources2059/2060): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-agent-trust-hold.test.ts: spawns only after the answer, carrying \"let agents ask\" to main for this launch; reattaches a section terminal without asking or changing trust; spawns with today's default when the prompt is released without an answer. src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-ssh-hook-status-authority.spec.ts: leaves SSH IPC OSC 9999 status ownership in the main runtime. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionSshHookStatusAuthorityTests } from '../host-ownership/pty-connection-ssh-hook-status-authority.spec'; registerPtyConnectionSshHookStatusAuthorityTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-spawn-intent.test.ts: declares the intent only when the spawn resumes an agent; reports a deferral to the pane instead of an error toast. src/renderer/src/components/terminal-pane/pty-connection/startup/in-place-resume-hold.test.ts: owns the record while the start runs, through a nested start, and releases on settle; holds nothing for a start not resuming a record, or once the pane is disposed. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): The existing directory-level pnpm test selector includes eleven changed source files and automatically omits the three whole deletions. Keep this nonempty discovery command unchanged; no dated receipt uses this broad path. Removed agent admission fields, mock transport routing and terminal-id projection alarms are lost. Retained foreground state, actual headless xterm, redraw, abort/rebind reader and bridge claim progression remain scoped to their unchanged callbacks. No current-source execution, independent replacement, native transport or physical provider result is assigned. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Pass snapshot sequence and proven zero keyboard flags through real IPC transport projection. Deliver snapshot-covered and newer output before reattach resolves; drain replay parse callbacks and require one startup marker and the newer output. Repeat with no sequence and blank snapshot to retain unproven bytes. In Electron select a prestarted workspace, type a generated marker and compare PID and stable terminal identities before and after.",
+ "oracle": "Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The retained directory-level discovery command continues to discover the reduced family; historical wrapper mentions are not fresh import-closure or execution evidence. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2065 (sources2063/2064): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/startup/pty-connection-startup-cwd-fallback-notice.spec.ts: prints a terminal notice when the startup cwd fell back to the workspace root. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-coalesce.test.ts: surfaces working frames when many spinner frames arrive in one chunk. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-spinner.test.ts: surfaces normalized working and idle labels across a spinner cycle; surfaces working even when a single chunk contains multiple spinner frames. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionStartupCwdFallbackNoticeTests } from '../startup/pty-connection-startup-cwd-fallback-notice.spec'; registerPtyConnectionStartupCwdFallbackNoticeTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2061 (sources2059/2060): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-agent-trust-hold.test.ts: spawns only after the answer, carrying \"let agents ask\" to main for this launch; reattaches a section terminal without asking or changing trust; spawns with today's default when the prompt is released without an answer. src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-ssh-hook-status-authority.spec.ts: leaves SSH IPC OSC 9999 status ownership in the main runtime. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionSshHookStatusAuthorityTests } from '../host-ownership/pty-connection-ssh-hook-status-authority.spec'; registerPtyConnectionSshHookStatusAuthorityTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-spawn-intent.test.ts: declares the intent only when the spawn resumes an agent; reports a deferral to the pane instead of an error toast. src/renderer/src/components/terminal-pane/pty-connection/startup/in-place-resume-hold.test.ts: owns the record while the start runs, through a nested start, and releases on settle; holds nothing for a start not resuming a record, or once the pane is disposed. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): The existing directory-level pnpm test selector includes eleven changed source files and automatically omits the three whole deletions. Keep this nonempty discovery command unchanged; no dated receipt uses this broad path. Removed agent admission fields, mock transport routing and terminal-id projection alarms are lost. Retained foreground state, actual headless xterm, redraw, abort/rebind reader and bridge claim progression remain scoped to their unchanged callbacks. No current-source execution, independent replacement, native transport or physical provider result is assigned. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Pass snapshot sequence and proven zero keyboard flags through real IPC transport projection. Deliver snapshot-covered and newer output before reattach resolves; drain replay parse callbacks and require one startup marker and the newer output. Repeat with no sequence and blank snapshot to retain unproven bytes. In Electron select a prestarted workspace, type a generated marker and compare PID and stable terminal identities before and after.",
"commands": [
"pnpm test src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-connect-spawn.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts",
"pnpm test src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-connect-spawn.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-visibility-and-exit.test.ts",
@@ -2242,6 +2242,7 @@
"Exercise live SSH and paired-runtime snapshot adoption before claiming full provider coverage."
],
"knownGaps": [
+ "Audit2694 intentional coverage losses (source-only, no replacement): src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-command-finished-interrupt-arbitration.spec.ts: 'drops the command-finished status when pending interrupt inference is rejected': Loses the standalone rejected-inference-to-drop alarm; the delayed-write rows remain but are not equivalent to this immediate rejection example. src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-bell-query-reply-and-stale-input.spec.ts: 'forwards raw onData after a bell as a query reply': Loses raw onData forwarding after the manually raised bell, including its hibernation-counter expectations. src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-bell-query-reply-and-stale-input.spec.ts: 'blocks onData on a stale codex pane': The real isCodexPaneStale guard executes, and removing it would allow the typed a to reach transport. Intentionally loses this genuine stale-account typing refusal alarm. No retained query-reply test is claimed equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'omits byte-parser callbacks from the local transport options': Loses local main-authority callback omission and lifecycle callback presence checks. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'keeps byte-parser callbacks on remote-runtime transports': Loses remote-runtime parser callback preservation and factory-argument alarm, including this compatibility boundary; no mixed-version execution is covered. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'consumes pty:sideEffect facts with the live-path policy after spawn': Loses title/bell fact routing and exact 250ms delayed fake notification example. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'schedules the completion notification for genuine working→idle facts': Loses positive main-fact working-to-idle scheduling alarm. Retained stale/race cases do not replace this positive example. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'drops the agent status from a command-finished fact like the byte path did': Loses command-finished fact-to-drop routing and removeAgentStatus noncall alarm. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'routes pr-link facts to the worktree PR observer': Loses PR-link fact forwarding, worktree/tab/PTY arguments alarm; retained raw-byte nonconsumption is not equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'seeds and settles Command Code status from command-code facts': Real Command Code seed/settle policy runs. Loses positive seed, prompt payload, and 1499+1ms completion boundary alarm; retained newer-working cancellation is not equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'does not byte-scan Command Code output — facts are the only consumer': Loses Command Code-specific no-byte-parser alarm. Retained PR/OSC raw-byte exclusion does not cover this parser. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-notification-settings-gating.spec.ts: 'shares one raw store subscriber for agent-complete notification settings across panes': Actual shared subscribe/unsubscribe runs. Loses shared single-subscription and final-pane unsubscribe lifetime alarm, with no replacement claimed. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-task-complete-dispatch.spec.ts: 'dispatches agent-task-complete for generic Codex spinner titles after process identity is confirmed': Real coordinator evidence path runs over fake process answers. Loses positive generic-title/confirmed-Codex completion and inspectProcess-argument alarm. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-task-complete-dispatch.spec.ts: 'normalizes Pi-compatible remote titles to authoritative OMP launch identity': Real owner-compatible normalization runs. Loses Pi-to-OMP title/status normalization, active tab label, OSC observation, and retained launch-identity example; no real remote transport or equivalent replacement. Wrapper cleanup removes only the deleted bell factory import and its registration-only describe block; no additional authored removal credit. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The retained directory-level discovery command continues to discover the reduced family; historical wrapper mentions are not fresh import-closure or execution evidence.",
"Audit2133 current-parent preparation (988 authored removals; independently reviewed2099/2107/2115/2116 decisions; upstream clear-buffer and recovery-image regressions retained): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts: structural support changed only; no new authored removal credit. src/renderer/src/components/terminal-pane/pty-connection/spawn/unbound-pane-spawn-recovery.test.ts: requests a tab remount for an unbound spawn; leaves recovery to a remote transport that armed its own retry; requests a remount when the transport reports no recovery of its own; settles the spawn as failed before requesting a remount; prefers the restored leaf id when reporting the anomaly; falls back to the pane leaf id when no restored leaf exists. src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-dropped-output-snapshot-healing.spec.ts: repaints from the main-owned snapshot when main drops pending output at the cap. src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-deferred-input-forwarding.spec.ts: routes terminal input through deferPtyInput so the host can withhold it; forwards terminal input directly when the host supplies no deferPtyInput. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-mode2031-raw-subscription.spec.ts: records a mode 2031 subscribe from the raw chunk boundary without answering. src/renderer/src/components/terminal-pane/pty-connection/output/pty-connection-fresh-native-follow-reset.spec.ts: retries a fresh-spawn native follow reset when renderer dimensions return. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-terminal-bell-attention.spec.ts: forwards onBell to pane attention and notification policy; hands the bell to the attention module with its pane even when pane attention is off. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-foreground-agent.test.ts: remove only literal registration import/call pairs import { registerPtyConnectionDeferredInputForwardingTests } from '../input/pty-connection-deferred-input-forwarding.spec', registerPtyConnectionDeferredInputForwardingTests(); no additional authored credit. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-input-and-repaint.test.ts: remove only literal registration import/call pairs import { registerPtyConnectionFreshNativeFollowResetTests } from '../output/pty-connection-fresh-native-follow-reset.spec', registerPtyConnectionFreshNativeFollowResetTests(); no additional authored credit. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: remove only literal registration import/call pairs import { registerPtyConnectionTerminalBellAttentionTests } from '../notifications/pty-connection-terminal-bell-attention.spec', registerPtyConnectionTerminalBellAttentionTests(); no additional authored credit. Current changed source bytes, wrapper registrations and reduced selectors have no fresh execution or red/green credit. Unrelated surviving receipt objects keep their original narrow scope; current literal graph reachability does not establish historical import closure or equivalent replacement coverage. Current conservative command/import graph reaches src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts, src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-dropped-output-snapshot-healing.spec.ts, src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-mode2031-raw-subscription.spec.ts, src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-deferred-input-forwarding.spec.ts, src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-terminal-bell-attention.spec.ts, src/renderer/src/components/terminal-pane/pty-connection/output/pty-connection-fresh-native-follow-reset.spec.ts, src/renderer/src/components/terminal-pane/pty-connection/spawn/unbound-pane-spawn-recovery.test.ts, src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-foreground-agent.test.ts, src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-input-and-repaint.test.ts, src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts. Unresolved local/computed edges remain explicit debt.",
"Audit2065 (sources2063/2064): Intentionally retire these low-value alarms without replacement: src/renderer/src/components/terminal-pane/pty-connection/startup/pty-connection-startup-cwd-fallback-notice.spec.ts: prints a terminal notice when the startup cwd fell back to the workspace root. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-coalesce.test.ts: surfaces working frames when many spinner frames arrive in one chunk. src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-pi-spinner.test.ts: surfaces normalized working and idle labels across a spinner cycle; surfaces working even when a single chunk contains multiple spinner frames. src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionStartupCwdFallbackNoticeTests } from '../startup/pty-connection-startup-cwd-fallback-notice.spec'; registerPtyConnectionStartupCwdFallbackNoticeTests(). Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence.",
"Composer draft creation and cancellation are not implemented by this gate.",
@@ -2378,23 +2379,23 @@
"providers": ["local", "ssh", "remote-runtime"],
"coveredPlatforms": ["macos"],
"coveredProviders": [],
- "coverageNotes": "Audit2266 reduces cmd-j-host-qualified-candidate-ownership.test.ts to the scoped open-tab hidden same-ID legacy ambiguity refusal. Separate browser/simulator paired-runtime alias and current-row projections, generic workspace host projection and hostless explicit-owner refusal examples are removed without equivalent replacement. No fresh gate execution, browser activation, physical host, simulator or remote delivery evidence is claimed. Historical dated receipts and budgets remain raw-byte exact. Prior coverage account: Audit1899 replays sealed Audit1895: workspace-session-schema.test.ts keeps only cross-workspace truncated-tab salvage and legacy browser-history cap normalization. Four current commands and testFiles retain that reduced source; no current assertionRef or active receipt selects it. SSH file-owner, isolated browser partition, launch/title/quick-command fields, recency, structured-chat/view-mode and remote browser identity hydration alarms are intentionally lost. Existing retired receipt strings and unrelated active receipts remain verbatim. No equivalent replacement, new Cmd-J gate execution, native simulator or remote/browser restore proof is claimed. Historical coverage account before Audit1899: Audit1494 removes use-open-tab-search.test.ts. Supplied host/worktree/title/ranking projections, simple subscription updates and result-array identity alarms are retired. No actual activation or navigation occurred in that suite. No equivalent replacement coverage or fresh Cmd-J gate validation is claimed. Historical receipts remain scoped to their original selectors. Audit1433 narrows worktree-checks-review-index.test.ts to same-ID local/SSH object-key review isolation. Local provider/cache lookup, GitLab preference, suppression/legacy fallback, explicit-PR authority, physical-versus-runtime review isolation, and branchless-workspace alarms are intentionally removed. No equivalent replacement coverage is claimed. Historical receipts and commands remain unchanged and do not certify the reduced source. Historical coverage account: Audit1396 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic candidate-builder contracts inject local and paired-runtime worktrees with the same bare id into the real aggregated tab buckets, including folder workspaces and a paired runtime transporting an SSH-owned worktree. A mirror contract preserves distinct same-id runtime tabs. A paired Electron journey verifies both visible browser rows and both visible simulator rows, then requires each selection to render its owning active tab and update backing host-qualified state. The test-value audit narrowed simulator-palette-search.test.ts to the recency tie, same-id host isolation, ambiguous legacy host rejection and oversized-input getter tripwire. Supplied timestamp, empty-query context ordering, host projection, alias/range, metadata matching, active-tab score, over-token/whitespace and malformed display-name fallback examples were removed. Their separate alarms are lost; retained candidate and activation contracts do not establish equivalent coverage. Historical run commands and results remain historical. The audit also removed the standalone workspace-tab-palette-search suite: supplied row, title, metadata, alias, range, ranking and ownership examples no longer provide their separate alarms. Other retained contracts are not replacement coverage. The mirror-identity fixture now retains same-id sibling-runtime isolation and the repeated-frame subscriber tripwire only. Supplied field, owner, alias and mapping examples are removed; their separate alarms are lost. The retained sibling-runtime case is not equivalent coverage for them. The test-value audit removed tabs-open-close-lifecycle host-stamping examples and ordinary tab/group operations from tabs-pane-layout-operations. Local-null, explicit-runtime and SSH-without-active-host stamp assertions are lost; retained mobile/MRU and subscriber/atomic split cases do not replace them. Candidate and live Cmd-J evidence retains its own scope. Historical commands, outcomes and narratives remain historical. Audit1308: src/renderer/src/lib/browser-palette-search.test.ts removed. Browser-palette token and pasted-query size-guard work alarms disappear. No equivalent replacement coverage is claimed. Audit1386: src/renderer/src/lib/open-mobile-emulator-tab.test.ts reduced. Duplicate attach count and null-tab creation retry/guard reset standalone alarms removed; no simulator device used. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1396: src/renderer/src/lib/simulator-palette-search.test.ts reduced. Lose simulator-specific lastFocusedAt tie-order alarm; identity/routing and pre-scan size fence remain. No native simulator or real remote launch claim. No equivalent replacement coverage is claimed. Audit1402: src/renderer/src/runtime/web-session-tabs-sync-mirror-identity.test.ts reduced. Loses repeated no-op frame store-notification budget; independent cross-runtime resource preservation remains. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.",
+ "coverageNotes": "Audit2729 reduces browser-page-palette-activation.test.ts: separate SSH/paired-runtime alias forwarding, distinct multigroup views accepted, and remote-folder activation forwarding alarms are removed. Collision refusal, preactivation address-bar focus capture, owning-group activation state and missing-tab refusal remain byte-identical. No equivalent replacement, fresh gate execution or actual host/browser delivery evidence is claimed. Prior coverage account: Audit2697 browser source review (metadata followup2702): Reduce src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts by four authored/expanded cases without replacement. The remaining three cases preserve only their existing same-ID execution-host separation, absent stamped-owner refusal and ambiguous legacy-bucket refusal scope. Intentionally lose duplicate backing-tab-ID suppression, multiple unified-browser claims of one workspace, foreign-worktree unified-tab rejection, and the 1000-workspace output/internal getter-read budget alarm. These are real removed alarms; the retained host cases are not equivalent replacements. Current test-value policy rejects internal getter/read budgets; no replacement performance or measured-cost claim is made. Keep existing nonempty selectors and the retained same-ID browser assertionRef. No fresh gate execution or reduced-source validation is supplied; dated receipts, results, commands and historical coverage accounts remain within their original source scope. No live browser activation, physical provider, mixed-version execution, mobile, native UI, platform hardware, soak or timing result is added. Prior coverage account (preserved verbatim): Audit2266 reduces cmd-j-host-qualified-candidate-ownership.test.ts to the scoped open-tab hidden same-ID legacy ambiguity refusal. Separate browser/simulator paired-runtime alias and current-row projections, generic workspace host projection and hostless explicit-owner refusal examples are removed without equivalent replacement. No fresh gate execution, browser activation, physical host, simulator or remote delivery evidence is claimed. Historical dated receipts and budgets remain raw-byte exact. Prior coverage account: Audit1899 replays sealed Audit1895: workspace-session-schema.test.ts keeps only cross-workspace truncated-tab salvage and legacy browser-history cap normalization. Four current commands and testFiles retain that reduced source; no current assertionRef or active receipt selects it. SSH file-owner, isolated browser partition, launch/title/quick-command fields, recency, structured-chat/view-mode and remote browser identity hydration alarms are intentionally lost. Existing retired receipt strings and unrelated active receipts remain verbatim. No equivalent replacement, new Cmd-J gate execution, native simulator or remote/browser restore proof is claimed. Historical coverage account before Audit1899: Audit1494 removes use-open-tab-search.test.ts. Supplied host/worktree/title/ranking projections, simple subscription updates and result-array identity alarms are retired. No actual activation or navigation occurred in that suite. No equivalent replacement coverage or fresh Cmd-J gate validation is claimed. Historical receipts remain scoped to their original selectors. Audit1433 narrows worktree-checks-review-index.test.ts to same-ID local/SSH object-key review isolation. Local provider/cache lookup, GitLab preference, suppression/legacy fallback, explicit-PR authority, physical-versus-runtime review isolation, and branchless-workspace alarms are intentionally removed. No equivalent replacement coverage is claimed. Historical receipts and commands remain unchanged and do not certify the reduced source. Historical coverage account: Audit1396 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic candidate-builder contracts inject local and paired-runtime worktrees with the same bare id into the real aggregated tab buckets, including folder workspaces and a paired runtime transporting an SSH-owned worktree. A mirror contract preserves distinct same-id runtime tabs. A paired Electron journey verifies both visible browser rows and both visible simulator rows, then requires each selection to render its owning active tab and update backing host-qualified state. The test-value audit narrowed simulator-palette-search.test.ts to the recency tie, same-id host isolation, ambiguous legacy host rejection and oversized-input getter tripwire. Supplied timestamp, empty-query context ordering, host projection, alias/range, metadata matching, active-tab score, over-token/whitespace and malformed display-name fallback examples were removed. Their separate alarms are lost; retained candidate and activation contracts do not establish equivalent coverage. Historical run commands and results remain historical. The audit also removed the standalone workspace-tab-palette-search suite: supplied row, title, metadata, alias, range, ranking and ownership examples no longer provide their separate alarms. Other retained contracts are not replacement coverage. The mirror-identity fixture now retains same-id sibling-runtime isolation and the repeated-frame subscriber tripwire only. Supplied field, owner, alias and mapping examples are removed; their separate alarms are lost. The retained sibling-runtime case is not equivalent coverage for them. The test-value audit removed tabs-open-close-lifecycle host-stamping examples and ordinary tab/group operations from tabs-pane-layout-operations. Local-null, explicit-runtime and SSH-without-active-host stamp assertions are lost; retained mobile/MRU and subscriber/atomic split cases do not replace them. Candidate and live Cmd-J evidence retains its own scope. Historical commands, outcomes and narratives remain historical. Audit1308: src/renderer/src/lib/browser-palette-search.test.ts removed. Browser-palette token and pasted-query size-guard work alarms disappear. No equivalent replacement coverage is claimed. Audit1386: src/renderer/src/lib/open-mobile-emulator-tab.test.ts reduced. Duplicate attach count and null-tab creation retry/guard reset standalone alarms removed; no simulator device used. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1396: src/renderer/src/lib/simulator-palette-search.test.ts reduced. Lose simulator-specific lastFocusedAt tie-order alarm; identity/routing and pre-scan size fence remain. No native simulator or real remote launch claim. No equivalent replacement coverage is claimed. Audit1402: src/renderer/src/runtime/web-session-tabs-sync-mirror-identity.test.ts reduced. Loses repeated no-op frame store-notification budget; independent cross-runtime resource preservation remains. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.",
"motivatingLinks": [
"https://linear.app/stably/issue/STA-4965",
"https://github.com/stablyai/orca/pull/15371"
],
"invariant": "Candidate identity is the tuple of execution-host identity and worktree identity: same-id sibling hosts retain separate correct browser, simulator, and workspace tabs, each tab appears exactly once, and selection activates its owning host.",
- "oracle": "Audit2266 current retained source checks only that scoped open-tab search rejects hostless legacy browser, simulator and workspace tabs when a hidden same-ID sibling host remains in the ownership catalog. Reduced selectors require fresh validation; existing historical receipts do not validate the changed source. Prior oracle account: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Aggregate two hosts' tabs under one intentionally colliding worktree id, stamp each unified tab with its execution host, and require exactly one candidate per owner. Repeat with an SSH physical owner transported by a paired-runtime alias. Independently require each browser and simulator Cmd-J selection to update activeWorkspaceExecutionHostId plus its owning workspace/group and render the selected tab active. Ambiguous legacy tabs without ownership fail closed.",
+ "oracle": "Audit2697 browser source review (metadata followup2702): Reduce src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts by four authored/expanded cases without replacement. The remaining three cases preserve only their existing same-ID execution-host separation, absent stamped-owner refusal and ambiguous legacy-bucket refusal scope. Intentionally lose duplicate backing-tab-ID suppression, multiple unified-browser claims of one workspace, foreign-worktree unified-tab rejection, and the 1000-workspace output/internal getter-read budget alarm. These are real removed alarms; the retained host cases are not equivalent replacements. Current test-value policy rejects internal getter/read budgets; no replacement performance or measured-cost claim is made. Keep existing nonempty selectors and the retained same-ID browser assertionRef. No fresh gate execution or reduced-source validation is supplied; dated receipts, results, commands and historical coverage accounts remain within their original source scope. No live browser activation, physical provider, mixed-version execution, mobile, native UI, platform hardware, soak or timing result is added. Prior coverage account (preserved verbatim): Audit2266 current retained source checks only that scoped open-tab search rejects hostless legacy browser, simulator and workspace tabs when a hidden same-ID sibling host remains in the ownership catalog. Reduced selectors require fresh validation; existing historical receipts do not validate the changed source. Prior oracle account: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Aggregate two hosts' tabs under one intentionally colliding worktree id, stamp each unified tab with its execution host, and require exactly one candidate per owner. Repeat with an SSH physical owner transported by a paired-runtime alias. Independently require each browser and simulator Cmd-J selection to update activeWorkspaceExecutionHostId plus its owning workspace/group and render the selected tab active. Ambiguous legacy tabs without ownership fail closed.",
"commands": [
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/worktree-checks-review-index.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator-palette-search.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator-palette-search.test.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator-tab-palette-activation.test.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/worktree-checks-review-index.test.ts src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator-tab-palette-activation.test.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/worktree-checks-review-index.test.ts src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator-tab-palette-activation.test.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts src/renderer/src/lib/open-mobile-emulator-tab.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/simulator-tab-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/worktree-checks-review-index.test.ts src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/simulator-tab-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/worktree-checks-review-index.test.ts src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/simulator-tab-palette-activation.test.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts src/renderer/src/lib/simulator/launch/open-mobile-emulator-tab.test.ts src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts src/shared/workspace-session/workspace-session-schema.test.ts",
"pnpm exec playwright test tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
"SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1"
],
@@ -2403,11 +2404,11 @@
"src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx",
"src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts",
"src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts",
- "src/renderer/src/lib/simulator-palette-search.test.ts",
+ "src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts",
"src/renderer/src/lib/browser/palette/browser-page-palette-activation.test.ts",
- "src/renderer/src/lib/simulator-tab-palette-activation.test.ts",
- "src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts",
- "src/renderer/src/lib/open-mobile-emulator-tab.test.ts",
+ "src/renderer/src/lib/simulator/tabs/simulator-tab-palette-activation.test.ts",
+ "src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts",
+ "src/renderer/src/lib/simulator/launch/open-mobile-emulator-tab.test.ts",
"src/renderer/src/runtime/web-session-tabs-sync/identity/web-session-tabs-sync-mirror-identity.test.ts",
"tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts",
"src/shared/workspace-session/workspace-session-schema.test.ts"
@@ -2425,7 +2426,7 @@
]
},
{
- "file": "src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts",
+ "file": "src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts",
"assertions": [
"same-id folder simulator reuse selects the active owning host",
"inactive local simulator creation remains host-stamped amid a collision",
@@ -2485,7 +2486,7 @@
"result": "failed",
"durationSeconds": 0.8,
"summary": "The final-review oracle failed 4/16 before the follow-up: same-id folder simulator reuse selected no owning tab, inactive local simulator creation was unstamped, the paired SSH/runtime alias resolved local metadata, and an explicit unknown owner fell back locally. Historical command preserved after the test-value audit removed the palette repo resolver suite. currentCommand is an administrative link to a remaining gate command; this historical run has not validated that command or equivalent coverage.",
- "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts"
+ "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts"
},
{
"date": "2026-08-20",
@@ -2495,7 +2496,7 @@
"result": "failed",
"durationSeconds": 0.1,
"summary": "The final reviewer repo-label oracle failed 1/6 before the follow-up: a paired SSH worktree resolved the local bare-id repository instead of its runtime-owned repository. Historical command preserved after the test-value audit removed the palette repo resolver suite. currentCommand is an administrative link to a remaining gate command; this historical run has not validated that command or equivalent coverage.",
- "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts"
+ "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts"
},
{
"date": "2026-08-20",
@@ -2505,7 +2506,7 @@
"result": "failed",
"durationSeconds": 0.1,
"summary": "The final clean-round fail-closed oracle failed 1/7 before the follow-up: an unavailable explicit runtime owner borrowed physical SSH repository metadata. Historical command preserved after the test-value audit removed the palette repo resolver suite. currentCommand is an administrative link to a remaining gate command; this historical run has not validated that command or equivalent coverage.",
- "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts"
+ "currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts"
},
{
@@ -2570,6 +2571,8 @@
"Add a live paired-runtime-over-SSH journey when the E2E harness can provision that combined topology."
],
"knownGaps": [
+ "Audit2729 retires browser palette standalone paired-runtime SSH alias forwarding, multigroup-view acceptance and remote-folder forwarding alarms without equivalent replacement. The retained partial suite has no fresh execution result; existing exact receipts and budgets stay scoped to their unchanged selectors.",
+ "Audit2697/2702 intentional palette coverage losses: 'omits a browser row whose backing tab id is duplicated': Remove malformed duplicate unified-tab-ID fixture and its empty result. Real duplicate-ID suppression alarm is lost; this narrow private inventory has no palette selection or activation flow. 'omits a workspace claimed by more than one unified browser tab': Remove two unified browser claims of one workspace. Real first-indexed-foreign-versus-later-owned collision rejection alarm is lost; same-host and ambiguous legacy cases do not replace it. 'omits a workspace whose single unified browser tab is not owned by this worktree': Remove one unique workspace backed by foreign-worktree unified tab fixture. Real foreign-tab/worktree rejection alarm is lost; stamped host tests are not equivalent to foreign worktree mismatch. 'indexes workspace tabs when building a large browser palette': Remove internal getter read budget over1000workspaces: current main policy explicitly rejects getter/Proxy/read counts and says performance changes get correctness tests only. Loses direct quadratic-indexing cost alarm and positive1000workspace output check; no equivalent replacement claimed. The same source review also deletes browser-link-profile-isolation.test.ts (two authored/five expanded) and removes two HTTP-routing declarations (three expanded). Exact tracked-tree filename/case search finds no active gate selector/assertionRef for those navigation sources; their local profile isolation/reuse, deferred minted-profile privacy/lifetime, foreground view/group projection and contextless must-create-page alarms still disappear without replacement. This palette gate is not credited with coverage of those unrelated navigation cases. Historical shard timings are retained unchanged. Audit2697 browser source review (metadata followup2702): Reduce src/renderer/src/lib/browser/palette/browser-palette-page-entries.test.ts by four authored/expanded cases without replacement. The remaining three cases preserve only their existing same-ID execution-host separation, absent stamped-owner refusal and ambiguous legacy-bucket refusal scope. Intentionally lose duplicate backing-tab-ID suppression, multiple unified-browser claims of one workspace, foreign-worktree unified-tab rejection, and the 1000-workspace output/internal getter-read budget alarm. These are real removed alarms; the retained host cases are not equivalent replacements. Current test-value policy rejects internal getter/read budgets; no replacement performance or measured-cost claim is made. Keep existing nonempty selectors and the retained same-ID browser assertionRef. No fresh gate execution or reduced-source validation is supplied; dated receipts, results, commands and historical coverage accounts remain within their original source scope. No live browser activation, physical provider, mixed-version execution, mobile, native UI, platform hardware, soak or timing result is added.",
"Live Linux, Windows, and paired-runtime-over-SSH journeys are not collected; the SSH/runtime dual-owner topology is deterministic renderer coverage.",
"The paired Electron simulator path seeds renderer state because remote web clients cannot launch a native emulator.",
"The paired Electron journey proves a real host mirror stamp before injecting the same-id sibling state; it does not create the collision through the wire.",
@@ -4448,7 +4451,7 @@
"oracle": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2043: Remove the registration-wait, webview-security, preview-authorization, guest-lifecycle and grant-IPC unit suites and the sibling-directory assertion reference. Runtime and browser capability consumers also lose removed imported examples. Remaining document-policy, file-reader and grant-registry assertions do not replace those alarms. Preserve the 27 independent dated receipts at their original unchanged selectors; reduced prospective unit selectors have no fresh result or equivalent replacement claim. Historical prior account (preserved verbatim): Audit1973: Delete the browser RPC forwarding/schema/scalar suite and its prospective selector. Preserve all27 unrelated dated receipts; no actual browser operation alarm is replaced. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): The complete terminal-file-link-actions suite is removed. Lose supplied local/remote menu-row inventories, browser label/order/download/reveal callback forwarding, platform-copy and source-group pinning examples. No OS reveal/download, real remote preview or browser navigation was exercised; the other real document-preview sources are not equivalent replacements. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1709 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: Audit1687 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: Audit1421 narrows renderer unit coverage as recorded in coverageNotes. Prior oracle descriptions are historical for the changed suite. The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Retained unchanged-selector receipts are the only current execution evidence. Reduced-source assertions await validation. Historical prior oracle: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): In paired Electron, write an HTML fixture that declares its own title on the host, invoke the Explorer preview action on the client, and require the document text to be readable out of the orca-preview guest before judging any absence. With that presence established, require the client to hold exactly one browser workspace more than its baseline and that workspace to be the document one: page and tab url blank, the document path mirrored onto both, the tab named by the document's title, the chip naming the file, no editor row of the retired preview species anywhere, and the guest URL carrying the orca-preview scheme. Ask the host through its own page registry as well as through the tab snapshot, and in the same run open an ordinary URL browser tab from the same client and require that one to arrive in both — the presence precondition without which “the host gained nothing” is satisfied just as well by an oracle that cannot see browser pages at all. Require the preview to sit in a group other than the source editor's while the active group and tab remain the source editor's. Then click away to the terminal, click the preview tab, require it to reactivate and still render, close it with its own X, and require the document tab to be gone while the host still holds only the URL tab and the source group, source editor and terminal survive. Quit the client with a document tab open and relaunch it on the same profile: require the same workspace row to come back, blank and named by the document, rendering the document again over a grant URL that differs from the one that was quit, with no preview-scheme or document-named page anywhere in what the host holds. Prove the halves are live by flipping one product property at a time and requiring the run to fail: publish document workspaces to the host like ordinary ones, and stop mirroring the document onto the workspace row. Have the fixture document attempt its own egress on every load — an unattended window.open and location.href to an off-machine URL, plus an inline ICE gathering probe — and require the same baseline counts and a candidate count of zero, so the document's own attempts are measured rather than assumed. Then, as a separate phase after the close oracle has already run, bring the client window to the front, press the document's heading with a real mouse event, and require the document to report that the same press drove it to attempt a second window.open and location.href while both browser counts stay at that phase's baseline and nothing routes — the case a recent-input gate cannot distinguish from the press's own effect. Only then press the target=_blank link with a real mouse event and require both a recorded routing call that returned success and a browser count above that baseline, with the preview tab still open. Drive the preload's click policy as a unit oracle over a real document: a dispatched click, a trusted press on an external anchor, an anchor reached through what it wraps, an SVG animated href, a sibling preview link, fragment and percent-encoded fragment targets, a bare hash, and a middle click. Create a browser page located by a workspace document, handing creation a live grant URL, and require its stored url, its mirrored tab url and the written session payload all to be blank with no orca-preview string anywhere in what was written, while an ordinary page created the same way keeps the URL it was given and asks for the address bar the document page never does. Parse the written page and tab through the session schema and require the document to survive both halves. Hydrate them back and require the document page to return blank and still named — including when its page row was salvaged away and only the tab's own copy remains, and when a foreign session carried a grant URL into both rows. Drive the mirror across a page switch out of the document and back, and across a repair in which the document is the only mirrored field that differs. Name a document page from its document and require the tab to take that name, name it with an empty title and require the file, name it with a live grant URL and require the file again with no preview scheme anywhere in the written session, and require an ordinary blank browser tab beside it to still be called New Tab. Dispatch a title update out of a rendered preview's own guest and require it to reach the page state while the identity chip still reads the document's workspace-relative path. Attach a browsing guest and a workspace-document guest through the same method in one run and require the browsing one to take clicked-link routing, popup handling and auth-identity detach tracking while the document guest takes none of them, stays inside the grant it is showing, denies every window it asks for, and is dropped from the page-keyed document registry by the same teardown that frees its id for a later attach. Register a browsing guest and attach a workspace-document guest in one run against the real manager, require the one door to answer each page with the guest of its own half, and require the document page to be absent from the browsing map and from its enumeration. Drive both browsing registration entry points with a page the document half already holds and require them to register nothing, and drive the mint channel with a page the browsing half already holds and require it to refuse; and drive the offscreen one with a guest that is missing and with one already destroyed, requiring the same refusal. Arm a grab on a live preview target, drive the unregister channel at that same target in the window before the queued operation runs, and require the grab to reach the guest anyway — then drive the same sequence for an ordinary browser page and require its grab state to be disposed after all. Hold one viewport-bridge op open, queue a second behind it, swap the page's guest while that second op waits, and require the injection to land in the guest the page has then. Revoke a grant after a tool has run against its page and require that page's grab state to be cancelled and disposed. Ask a tool for a document page whose guest has not attached, require the request to park in the registration wait, attach the guest, and require the same request to arm on it; require a page nothing ever renders to answer not-ready once that wait elapses. With a document open, ask a tool for a browsing page id and require it to be answered by the browsing half or not at all, with the same channel reaching the document guest under the page it really renders. Drive open-externally for a document whose per-file owner is remote while the workspace-scoped owner is unresolved, for a runtime-owned worktree whose preview tab carries no runtime id of its own, and for a worktree that resolves no runtime owner while the tab still carries one, requiring the download route in each; and for an owner that cannot be resolved at all, and for an unknown workspace root while nothing names another host, requiring a refusal that neither opens nor downloads. Drive the headless backend with a page the document half already holds and require it to reject, destroy the window, and unregister nothing — then shut the backend down and require it still to have unregistered nothing. Navigate a bound preview guest at a second grant through both latch events and require it to stay on the grant it bound to. Mount a preview while a renderer drag is already in flight and require its guest to be click-through at the moment it is appended, not a turn later. Render the editor panel shell in each remaining tab mode and require the path header exactly where the surface does not already name itself. Drive the preview action and require a browser tab located by the document rather than an editor tab, require a second open of the same document to activate the tab it is already in, and require closing that tab to revoke its grant while a URL tab closed beside it revokes none. Publish a worktree holding a document tab and a URL tab and require only the URL tab to reach the mobile snapshot. Install the shared partition policies for a preview partition and for an ordinary browsing partition in the same run, fire each one's own will-download listener, and require the preview's to cancel while the browsing one still reaches the download router — then require the preview protocol installer to be what asks for that deny. In the same run, require the cancelled download to raise a reader-facing notice and the routed one to raise none. require the guest registry to name the bound grant for a live preview guest and nothing for a contents that is not one, has committed no document, or is gone. Drive the shell with a refusal and require one fixed sentence, still one row after three more refusals, standing beside an asset failure rather than being counted with it, gone behind the failure panel, and ignored when it names another preview's grant. Drive the main-side report gate directly for a sender that is no preview guest, a guest with no bound or a revoked grant, a genuine press Electron's webview focus flag misreports as unfocused, and non-web URLs; drive the reader-facing confirmation for accept, cancel, and a confirmed tab the browser refuses; and drive will-attach-webview in both preload directions. Run the per-owner reader, grant-containment, scheme-admission, guest-policy, and plan-routing contracts as unit oracles, including a host-reported truncation, an over-cap binary, and an out-of-worktree paired path. Drive the reader-facing component with the payloads the reader can actually produce — the entry document fails only as truncated or unreadable, a subresource additionally as a refused format — and require the asset case to leave the guest mounted. Drive the closed-tab cleanup hook, the window installer, and the grant IPC handlers directly, requiring the grant to be released when the preview tab closes, cleared at window creation and on a cross-document main-frame navigation, and refused to any sender that is not the trusted renderer. For the browser creations this gate still owns, run the unchanged contract oracle for direct create and side-preview callers with absent status, unknown capabilities, and a mixed-version host, requiring the original unsupported error or visible toast, zero RPCs, and no retained new split; hold a real navigation response beyond the 15-second client deadline after host creation and require the first RPC to return the exact host inventory page ID, one host page, and no retry; repeat reconciliation faults against headless serve and retain the separate exact-page reconciliation rollback oracle. Audit2452 removes the whole fake-effect browser-close routing suite. Active selectors and assertion references no longer select it. Its requested-worktree default close, sibling-page close and explicit missing-page typed reply alarms are intentionally retired without equivalent replacement. Prior dated receipts remain unchanged and scoped to their original sources; no fresh execution of the reduced gate, rendered browser, live remote, mobile or cross-platform validation is claimed.",
"commands": [
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/browser/client-pages/orca-runtime-browser.test.ts src/renderer/src/runtime/web-session-tabs-sync/navigation/web-session-tabs-sync-focus-intent.test.ts src/renderer/src/runtime/web-session-tabs-sync/placement/web-session-tabs-sync-browser-tabs.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/main/browser/document-preview/doc-preview-grant-registry.test.ts src/main/browser/document-preview/doc-preview-file-reader.test.ts src/main/browser/document-preview/doc-preview-guest-policy.test.ts src/main/browser/document-preview/doc-preview-failure-notice.test.ts src/shared/document-preview/doc-preview-scheme.test.ts src/renderer/src/lib/doc-preview-grants.test.ts src/renderer/src/components/browser-pane/workspace-doc/doc-preview-external-link-confirmation.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/main/browser/document-preview/doc-preview-grant-registry.test.ts src/main/browser/document-preview/doc-preview-file-reader.test.ts src/main/browser/document-preview/doc-preview-guest-policy.test.ts src/main/browser/document-preview/doc-preview-failure-notice.test.ts src/shared/document-preview/doc-preview-scheme.test.ts src/renderer/src/lib/browser/documents/doc-preview-grants.test.ts src/renderer/src/components/browser-pane/workspace-doc/doc-preview-external-link-confirmation.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/sessions/partition-policies/browser-session-partition-policies.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/sessions/partition-policies/browser-session-partition-policies.test.ts src/main/browser/document-preview/doc-preview-guest-policy.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/document-preview/doc-preview-guest-policy.test.ts",
@@ -4487,7 +4490,7 @@
"src/renderer/src/components/browser-pane/workspace-doc/use-doc-preview-guest-tools.test.ts",
"src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.toolbar.test.tsx",
"src/shared/document-preview/doc-preview-scheme.test.ts",
- "src/renderer/src/lib/doc-preview-grants.test.ts",
+ "src/renderer/src/lib/browser/documents/doc-preview-grants.test.ts",
"src/renderer/src/components/browser-pane/workspace-doc/doc-preview-external-link-confirmation.test.ts",
"src/renderer/src/components/link-actions/LinkActionPopover.test.tsx",
"src/renderer/src/runtime/sync-runtime-graph/sync-runtime-graph-editor-diff-tabs.test.ts",
@@ -4991,7 +4994,7 @@
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/browser/browser-client-host-reconciliation.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/client-pages/execution/browser-client-page-command-executor.test.ts src/main/browser/client-pages/execution/browser-client-page-command-integration.test.ts src/main/browser/client-pages/lifecycle/browser-client-page-inventory.test.ts src/main/browser/client-hosts/lifecycle/paired-runtime-browser-client-host-composition.test.ts src/main/browser/client-hosts/leases/paired-runtime-browser-host-lease.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts src/main/runtime/rpc/methods/browser/browser-client-host.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/client-pages/lifecycle/browser-client-page-reconciliation-adapters.test.ts src/main/browser/routing/sessions/browser-route-prepared-page-rekey.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/shared/browser-network-tunnel-protocol.test.ts src/main/browser/network/tunnels/browser-network-tunnel-session.test.ts src/main/browser/network/tunnels/remote-browser-socks-server.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/shared/browser/network/tunnels/browser-network-tunnel-protocol.test.ts src/main/browser/network/tunnels/browser-network-tunnel-session.test.ts src/main/browser/network/tunnels/remote-browser-socks-server.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/network/tunnels/browser-network-tunnel-client.test.ts src/main/browser/network/execution-routes/paired-runtime-browser-network-route.test.ts src/main/runtime/rpc/methods/browser/browser-network-tunnel.test.ts src/main/runtime/browser/network/browser-network-tunnel-paired-runtime.integration.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/browser/network/tunnels/browser-network-tunnel-outbound-memory-budget.test.ts src/main/browser/network/tunnels/browser-network-tunnel-session-aggregate-memory.test.ts src/shared/ws-outbound-backpressure-queue.test.ts src/shared/remote-runtime/remote-runtime-client.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/shared/ws-outbound-backpressure-queue.test.ts src/shared/remote-runtime/remote-runtime-client.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts src/main/runtime/rpc/server/runtime-rpc-browser-host-admission.test.ts src/main/runtime/rpc/methods/browser/browser-client-host.test.ts src/main/runtime/rpc/methods/browser/browser-network-tunnel.test.ts src/main/browser/client-hosts/leases/paired-runtime-browser-host-lease.test.ts src/main/browser/network/execution-routes/paired-runtime-browser-network-route.test.ts src/main/runtime/browser/network/browser-network-tunnel-paired-runtime.integration.test.ts src/main/browser/network/tunnels/browser-network-tunnel-client.test.ts src/main/browser/network/tunnels/browser-network-tunnel-session.test.ts src/main/browser/network/tunnels/browser-network-tunnel-session-aggregate-memory.test.ts src/main/browser/network/tunnels/browser-network-tunnel-outbound-memory-budget.test.ts src/main/browser/network/tunnels/remote-browser-socks-server.test.ts",
@@ -5013,7 +5016,7 @@
"testFiles": [
"src/main/browser/routing/guest-authority/browser-route-webcontents-registry.test.ts",
"src/main/runtime/browser/client-pages/runtime-browser-client-page-recovery.test.ts",
- "src/shared/browser-network-tunnel-protocol.test.ts",
+ "src/shared/browser/network/tunnels/browser-network-tunnel-protocol.test.ts",
"src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts",
"src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts",
"src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts",
@@ -5152,7 +5155,7 @@
]
},
{
- "file": "src/shared/browser-network-tunnel-protocol.test.ts",
+ "file": "src/shared/browser/network/tunnels/browser-network-tunnel-protocol.test.ts",
"assertions": [
"remote DNS names round-trip without client resolution",
"unknown versions, opcodes, oversized payloads, and length mismatches fail closed"
@@ -7371,7 +7374,7 @@
"providers": ["local", "daemon", "ssh", "wsl", "remote-runtime"],
"coveredPlatforms": ["macos"],
"coveredProviders": ["local", "daemon", "ssh", "wsl", "remote-runtime"],
- "coverageNotes": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1495 intentionally deletes the orphan-owner suite: explicit owner/host predicate examples are retired; no equivalent replacement coverage or fresh result is claimed. Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/agent-completion-coordinator-pending-title-inspection.test.ts: Loses obsolete pending title process races, inspection failure suppression, explicit completion precedence and delayed remote inspection alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audits1301 and1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic macOS tests cover controller claims, daemon and SSH/relay operation replay, mixed-version selection, runtime ownership, exact provisional handoff, durable terminal retirement, two independent viewer mirrors, guarded adoption of legacy live PTYs, and completion classification when either the outer remote transport or authoritative host/provider process inspection becomes unreachable. The adoption harness models v1.4.150 agent/setup/shell tabs, current-generation restart and reconnect, exact handle/incarnation/worktree/host checks, topology CAS, competing clients, split-pane/group restoration, WSL ownership, and SSH owner rejection. The secondary parity repro runs independent clients against one headless remote Orca runtime over encrypted pairing and a real daemon-backed PTY, with tokened fixture-process identity separated from unrelated Codex app-server startup probes. The automated primary topology runs an isolated headed macOS Orca desktop server plus a separate paired web client and proves viewer-local fresh/resume focus, exact legacy placement, writable PTYs, unrelated-terminal survival, and host/client cleanup. SSH coverage is provider/relay contract and fault-injection coverage only; it does not substitute for paired-server coverage. Live Windows, Linux, WSL, SSH, and physical paired-Linux hosts remain gaps. The isolated intent-owner ledger suite was removed. web-runtime-session.test.ts retains exact post-create handoff confirmation only; its previous fresh/resume presentation and publication-replay assertions are no longer current references. Those direct owner-partition, cap and RPC/focus alarms are lost; other agent-session evidence does not establish equivalence. Structured handoff and adopted-leaf focus references now point to their dedicated surviving fixtures. Mixed-version recovery retains actual old-host recovery followed by a new CLI tab; its unsupported/missing-evidence tables are removed. Orphan recovery retains in-flight adoption-conflict serialization only; previous topology/pruning and absence/adoption examples are removed. These removed projection, capability and adoption-shape alarms are lost; retained cases do not replace them. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1308: src/renderer/src/runtime/web-session-tabs-sync-agent-handoff.test.ts removed. Exact provisional replacement and post-create exit confirmation handoff pipeline alarms disappear. No equivalent replacement coverage is claimed. Audit1313: src/main/runtime/terminal-orphan-topology.test.ts: Retain actual topology merge algorithms preserving disjoint subtrees and grafted/ambiguous shared anchors with independent expected trees. Remove duplicate leaf validator and empty/no-change passthrough examples. Lose basic validation and no-group/noop characterization; no renderer layout proof. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.",
+ "coverageNotes": "Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1495 intentionally deletes the orphan-owner suite: explicit owner/host predicate examples are retired; no equivalent replacement coverage or fresh result is claimed. Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/agent-completion-coordinator-pending-title-inspection.test.ts: Loses obsolete pending title process races, inspection failure suppression, explicit completion precedence and delayed remote inspection alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audits1301 and1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic macOS tests cover controller claims, daemon and SSH/relay operation replay, mixed-version selection, runtime ownership, exact provisional handoff, durable terminal retirement, two independent viewer mirrors, guarded adoption of legacy live PTYs, and completion classification when either the outer remote transport or authoritative host/provider process inspection becomes unreachable. The adoption harness models v1.4.150 agent/setup/shell tabs, current-generation restart and reconnect, exact handle/incarnation/worktree/host checks, topology CAS, competing clients, split-pane/group restoration, WSL ownership, and SSH owner rejection. The secondary parity repro runs independent clients against one headless remote Orca runtime over encrypted pairing and a real daemon-backed PTY, with tokened fixture-process identity separated from unrelated Codex app-server startup probes. The automated primary topology runs an isolated headed macOS Orca desktop server plus a separate paired web client and proves viewer-local fresh/resume focus, exact legacy placement, writable PTYs, unrelated-terminal survival, and host/client cleanup. SSH coverage is provider/relay contract and fault-injection coverage only; it does not substitute for paired-server coverage. Live Windows, Linux, WSL, SSH, and physical paired-Linux hosts remain gaps. The isolated intent-owner ledger suite was removed. web-runtime-session.test.ts retains exact post-create handoff confirmation only; its previous fresh/resume presentation and publication-replay assertions are no longer current references. Those direct owner-partition, cap and RPC/focus alarms are lost; other agent-session evidence does not establish equivalence. Structured handoff and adopted-leaf focus references now point to their dedicated surviving fixtures. Mixed-version recovery retains actual old-host recovery followed by a new CLI tab; its unsupported/missing-evidence tables are removed. Orphan recovery retains in-flight adoption-conflict serialization only; previous topology/pruning and absence/adoption examples are removed. These removed projection, capability and adoption-shape alarms are lost; retained cases do not replace them. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1308: src/renderer/src/runtime/web-session-tabs-sync-agent-handoff.test.ts removed. Exact provisional replacement and post-create exit confirmation handoff pipeline alarms disappear. No equivalent replacement coverage is claimed. Audit1313: src/main/runtime/terminal-orphan-topology.test.ts: Retain actual topology merge algorithms preserving disjoint subtrees and grafted/ambiguous shared anchors with independent expected trees. Remove duplicate leaf validator and empty/no-change passthrough examples. Lose basic validation and no-group/noop characterization; no renderer layout proof. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.",
"motivatingLinks": [
"https://github.com/stablyai/orca/issues/8878",
"https://github.com/stablyai/orca/issues/9151",
@@ -7381,10 +7384,10 @@
"https://github.com/stablyai/orca/pull/10193"
],
"invariant": "For every claim-capable execution route, one provider-session identity has at most one live PTY owner and one canonical host surface across concurrent clients, retries, reconnects, and stale publications. For paired structured fresh and resume requests, the authenticated owning runtime creates in background without a renderer window; activate=true focuses the exact requested leaf only on the requesting viewer, while activate=false changes no viewer focus. A live orphan may be adopted only when the controller proves its exact handle and incarnation, its worktree and host owner match, no competing visual owner exists, and a host topology CAS wins. A viewer may classify completion only from successful host/provider inspection or explicit lifecycle evidence; transport, handle, or provider unavailability remains unknown and breaks any consecutive-idle proof. A physical exit retires that exact incarnation durably so stale client state and host restart cannot recreate it. Mixed-version routes select the unchanged legacy request before any authority side effect or execution-owner-local filesystem access.",
- "oracle": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Race independent clients and repeated operation IDs, then assert one physical spawn and one canonical PTY/surface; inject exit-before-reply, provider disconnect, conflicting claim scope, old daemon/relay capabilities, reused handles, stale incarnations, owner mismatch, and topology revision conflict; assert safe adoption or explicit failure without a second spawn or wrong-process attachment. Run fresh/resume with activate true/false against an isolated headed desktop host and a separate paired client, then against isolated headless serve: assert host presentation stays background, only the requesting viewer focuses the exact leaf, inactive calls preserve client/DOM focus, a same-version publication replay cannot lose focus intent, and sibling-first split publication cannot consume exact-leaf intent. Restore legacy split panes and groups beside a newer host-owned tab, preserving exact predecessor/new/successor order, output, input, resize, titles, tab/leaf identity, active group, and multi-client convergence. For completion, drive a known running agent through outer transport loss, authoritative provider rejection, reconnect, explicit stop, real exit status, and successful hook completion; assert unavailable evidence never dispatches completion and two fresh authoritative idle samples are required after the gap. After exact exit, assert terminal and tab listings omit the surface, a stale publication cannot restore it, restart cannot resurrect it, exact tokened fixture PIDs are dead, and unrelated tabs/processes survive until scoped cleanup.",
+ "oracle": "Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Race independent clients and repeated operation IDs, then assert one physical spawn and one canonical PTY/surface; inject exit-before-reply, provider disconnect, conflicting claim scope, old daemon/relay capabilities, reused handles, stale incarnations, owner mismatch, and topology revision conflict; assert safe adoption or explicit failure without a second spawn or wrong-process attachment. Run fresh/resume with activate true/false against an isolated headed desktop host and a separate paired client, then against isolated headless serve: assert host presentation stays background, only the requesting viewer focuses the exact leaf, inactive calls preserve client/DOM focus, a same-version publication replay cannot lose focus intent, and sibling-first split publication cannot consume exact-leaf intent. Restore legacy split panes and groups beside a newer host-owned tab, preserving exact predecessor/new/successor order, output, input, resize, titles, tab/leaf identity, active group, and multi-client convergence. For completion, drive a known running agent through outer transport loss, authoritative provider rejection, reconnect, explicit stop, real exit status, and successful hook completion; assert unavailable evidence never dispatches completion and two fresh authoritative idle samples are required after the gap. After exact exit, assert terminal and tab listings omit the surface, a stale publication cannot restore it, restart cannot resurrect it, exact tokened fixture PIDs are dead, and unrelated tabs/processes survive until scoped cleanup.",
"commands": [
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session.test.ts src/renderer/src/runtime/web-session-tabs-sync/navigation/web-session-tabs-sync-focus-intent.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/shared/claimed-agent-pty-owner.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/runtime/session-construction/agent-session/orca-runtime-agent-session-operation.test.ts src/main/runtime/session-construction/agent-session/remote-agent-session-host-authority.integration.test.ts src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/shared/claimed-agent-pty-owner.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/runtime/session-construction/agent-session/orca-runtime-agent-session-operation.test.ts src/main/runtime/session-construction/agent-session/remote-agent-session-host-authority.integration.test.ts src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts tests/e2e/remote-terminal-tab-retirement.unit.test.ts",
"pnpm run build:cli && pnpm run build:electron-vite && node config/scripts/diagnostics/remote-agent-authority/remote-agent-session-authority-repro.mjs",
"node --check config/scripts/development/remote-session-cleanup/remote-agent-session-process-cleanup.mjs && node config/scripts/diagnostics/remote-agent-authority/remote-agent-session-authority-repro.mjs",
@@ -7413,7 +7416,6 @@
"src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts",
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts",
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts",
- "src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts",
"src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session.test.ts",
"tests/e2e/remote-agent-session-focus-authority.spec.ts",
"config/scripts/diagnostics/remote-agent-authority/remote-agent-session-authority-repro.mjs",
@@ -7593,6 +7595,7 @@
"Add live SSH/WSL provider evidence before claiming full provider coverage; Docker SSH proves only the SSH provider/relay path."
],
"knownGaps": [
+ "Audit2694 intentional coverage losses (source-only, no replacement): src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-command-finished-interrupt-arbitration.spec.ts: 'drops the command-finished status when pending interrupt inference is rejected': Loses the standalone rejected-inference-to-drop alarm; the delayed-write rows remain but are not equivalent to this immediate rejection example. src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-bell-query-reply-and-stale-input.spec.ts: 'forwards raw onData after a bell as a query reply': Loses raw onData forwarding after the manually raised bell, including its hibernation-counter expectations. src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-bell-query-reply-and-stale-input.spec.ts: 'blocks onData on a stale codex pane': The real isCodexPaneStale guard executes, and removing it would allow the typed a to reach transport. Intentionally loses this genuine stale-account typing refusal alarm. No retained query-reply test is claimed equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'omits byte-parser callbacks from the local transport options': Loses local main-authority callback omission and lifecycle callback presence checks. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'keeps byte-parser callbacks on remote-runtime transports': Loses remote-runtime parser callback preservation and factory-argument alarm, including this compatibility boundary; no mixed-version execution is covered. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'consumes pty:sideEffect facts with the live-path policy after spawn': Loses title/bell fact routing and exact 250ms delayed fake notification example. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'schedules the completion notification for genuine working→idle facts': Loses positive main-fact working-to-idle scheduling alarm. Retained stale/race cases do not replace this positive example. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'drops the agent status from a command-finished fact like the byte path did': Loses command-finished fact-to-drop routing and removeAgentStatus noncall alarm. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'routes pr-link facts to the worktree PR observer': Loses PR-link fact forwarding, worktree/tab/PTY arguments alarm; retained raw-byte nonconsumption is not equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'seeds and settles Command Code status from command-code facts': Real Command Code seed/settle policy runs. Loses positive seed, prompt payload, and 1499+1ms completion boundary alarm; retained newer-working cancellation is not equivalent. src/renderer/src/components/terminal-pane/pty-connection/emulation/pty-connection-main-side-effect-authority.spec.ts: 'does not byte-scan Command Code output — facts are the only consumer': Loses Command Code-specific no-byte-parser alarm. Retained PR/OSC raw-byte exclusion does not cover this parser. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-notification-settings-gating.spec.ts: 'shares one raw store subscriber for agent-complete notification settings across panes': Actual shared subscribe/unsubscribe runs. Loses shared single-subscription and final-pane unsubscribe lifetime alarm, with no replacement claimed. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-task-complete-dispatch.spec.ts: 'dispatches agent-task-complete for generic Codex spinner titles after process identity is confirmed': Real coordinator evidence path runs over fake process answers. Loses positive generic-title/confirmed-Codex completion and inspectProcess-argument alarm. src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-task-complete-dispatch.spec.ts: 'normalizes Pi-compatible remote titles to authoritative OMP launch identity': Real owner-compatible normalization runs. Loses Pi-to-OMP title/status normalization, active tab label, OSC observation, and retained launch-identity example; no real remote transport or equivalent replacement. Wrapper cleanup removes only the deleted bell factory import and its registration-only describe block; no additional authored removal credit. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories.",
"Audit2145 accepts removal of canned runtime metadata/guard/forwarding, fake in-memory persistence, private work-count and wrapper-duplication tests from the construction/orca-runtime.test.ts aggregate, plus the two automation run-context guards from runtime-workspace-launch-contracts.test.ts. Retained race, framing, physical completion and ownership callbacks remain byte-identical. Existing commands remain valid selectors; historical receipts stay unchanged and provide no fresh validation or replacement coverage for the reduced suites.",
"Audit2133 current-parent preparation (988 authored removals; independently reviewed2099/2107/2115/2116 decisions; upstream clear-buffer and recovery-image regressions retained): Intentionally retire these low-value alarms without replacement: src/main/runtime/construction/orca-runtime.test.ts: remove only literal registration import/call pairs await import('../orca-runtime-tests/worktree-setup-and-startup.spec'), await import('../orca-runtime-tests/gitlab-and-pr-bases.spec'); no additional authored credit. src/main/runtime/orca-runtime-tests/targeting-and-resilience.spec.ts: routes tab switch and capture start by explicit page id; accepts focus on tab switch without altering bridge args (focus is main-side concern); keeps terminal cwd resolution fail-soft when the provider is unavailable. src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-04.spec.ts: drops the bounded scan cache when orphan-cleanup removal completes; clears optimistic reconcile tokens when a CLI worktree removal succeeds; emits drift without mutating when the fetched base fast-forwards created HEAD; emits base_changed without mutation when the fetched base rewrote history; skips stale-token reconciles without mutating or emitting stale status; emits unknown without mutation when fetch fails or the base ref is missing. src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-03.spec.ts: routes runtime preserved-branch force-delete through the selected WSL project runtime; replies to a waiting client with the error of a delete that fails after acceptance; treats forced runtime deletion of an already-missing unregistered worktree as cleanup; treats normal runtime deletion of an already-missing unregistered worktree as cleanup. src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-02.spec.ts: warns that a missing-repo removal only forgot the workspace; restores runtime watchers when CLI worktree deletion fails after teardown; does not re-spend the drain budget on a removal after a wedged install was abandoned; routes runtime worktree removal through the selected WSL project runtime; force-deletes a branch that was preserved by runtime worktree removal. src/main/runtime/orca-runtime-tests/gitlab-and-pr-bases-part-02.spec.ts: records GitLab pasted-project recents only after successful runtime lookup; threads explicit origin preference through runtime WSL PR base resolution; resolves local GitLab fork MR bases from the target project MR head ref; captures the fork MR head from a dedicated ref, not the shared FETCH_HEAD; keeps the durable MR head when the head fetch fails but the local ref resolves; routes runtime GitLab fork MR base git calls through the selected WSL project runtime. src/main/runtime/orca-runtime-tests/gitlab-and-pr-bases.spec.ts: passes SSH connection ids through GitLab task operations; routes runtime GitLab issue, MR, work-item, and todo actions through the selected WSL project runtime; routes runtime GitLab MR details, review-management, job, and pasted URL actions through the selected WSL project runtime; normalizes runtime GitLab issue list arguments like the desktop IPC path. src/main/runtime/orca-runtime-tests/worktree-setup-and-startup-part-03.spec.ts: does not warn when setup is explicitly skipped for CLI-created worktrees; puts the agent a create starts in the first default tab, as the window does; keeps the 8s main-runtime startup readiness budget for agents without an override; gives OpenCode the 20s main-runtime startup readiness budget; launches explicit startup agents with prompts for CLI-created worktrees. src/main/runtime/orca-runtime-tests/worktree-setup-and-startup.spec.ts: returns a setup launch payload for CLI-created worktrees when hooks are explicitly enabled; does not hand the window a setup main never tried to start; passes the selected Windows setup shell into runtime runner generation; follows normal setup policy for CLI-created worktrees without activating them; uses returned WSL setup shell metadata when runtime spawns setup; uses the shell-aware setup runner for windowless creates without a startup command; reports the in-process setup hook as running when nothing can launch the runner. src/main/runtime/orca-runtime-tests/terminal-sleep-and-teardown-part-02.spec.ts: coalesces two clients sleeping the same host worktree; stops exactly the expected live PTYs for a worktree; explains a refused workspace close instead of throwing the raw refusal enum. src/main/runtime/orca-runtime-tests/mobile-summaries-part-03.spec.ts: marks the desktop-active worktree as isActive; includes SSH-backed worktrees in the mobile worktree summary; caches repeated malformed path misses before normalizing them again. src/main/runtime/orca-runtime-tests/mobile-summaries-part-02.spec.ts: keeps title-only foreground work ahead of monitoring in another pane; keeps a local hook row while a connected PTY still backs its pane; keeps an OSC row via its connected PTY after the pane binding is cleared. src/main/runtime/orca-runtime-tests/mobile-summaries.spec.ts: resolves files through a source-visible linked-checkout worktree; marks saved session tabs with live PTYs as host sidebar activity; attributes live legacy PTYs from saved layout bindings when their panes are hidden; marks saved browser tabs as host sidebar activity like desktop; falls back to the path-keyed GitHub cache entry; includes folder workspaces in compact worktree summaries for mobile; attaches inline agent rows from the latest OSC 9999 status; projects monitoring over a title-derived working status. src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-03.spec.ts: pushes to an idle pane when the only live waiter filters out the message type; resolves a registered waiter without PTY-injecting when the leaf is already idle; keeps already-idle status after tui-idle wait for immediate message delivery; resolves message waiters when notifyMessageArrived is called; does not resolve type-filtered message waiters for unrelated message types; removes message waiter abort listeners after message arrival; resolves message waiters on timeout when no message arrives. src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-02.spec.ts: delivers pending mail via notifyMessageArrived when the recipient is already idle; does not keep retrying when every pending row was already pointed; repoints pending rows restored with a live-idle coordinator. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-13.spec.ts: rolls back a half-created terminal whose surface never publishes. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-12.spec.ts: rejects startup prompts for agents that require post-ready stdin; uses portable Unix quoting for mobile agent launch commands in WSL project runtimes; keeps PowerShell quoting for mobile agent launch commands in Windows host runtimes; uses cmd.exe quoting for mobile agent launch commands in local Windows host runtimes; publishes headless mobile session agent identity with synthesized PTY status; rejects disabled mobile session agent launches before spawning; validates mobile terminal insertion anchors before resolving agent launch commands. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-11.spec.ts: coalesces a reconnect close burst onto one authoritative PTY inventory; keeps an explicit user close destructive while the PTY is live; builds mobile session agent launch commands on the runtime host; injects mobile quick-command prompts into the host-built agent startup command. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-10.spec.ts: closes persisted headless terminal parents before any prior list call; tears down a serve-owned headless tab on close while a renderer is attached so it cannot resurrect; defers a renderer-published pending tab to the renderer instead of tearing it down; returns a delegated close outcome with no selection tombstone when the renderer owns the outcome; tears down a runtime pending shell the renderer never adopted on close. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-08.spec.ts: materializes a plain shell when the pending tab has no launch agent; hydrates legacy persisted terminal tabs without layout entries; reads and indexes the full agent-status snapshot once per mobile projection; kills persisted SSH PTYs when closing hydrated headless tabs before pane metadata is restored; materializes hydrated pending headless terminals with the persisted session identity. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-07.spec.ts: hydrates a persisted SSH-owned pane before an attached renderer publishes its graph. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-05.spec.ts: publishes the desktop's tab name over the live agent title, and the live title without one; uses fresh neutral PTY titles over stale mobile snapshot and OSC titles; operates PTY-backed mobile session terminals without a renderer graph; reuses pane close for live PTYs that do not own a renderer tab; lists PTY-backed mobile session terminals without a renderer graph; shows and resolves active PTY-backed mobile session terminals without a renderer graph. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-04.spec.ts: creates mobile session terminals for folder workspaces in a headless runtime server; spawns fresh headless SSH mobile session terminals instead of reattaching synthetic local ids; hydrates headless mobile session terminals from the host workspace session; keeps live headless mobile session terminals when a desktop renderer publishes without them; publishes laptop-created remote runtime split terminals to phone session tabs. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-02.spec.ts: does not report headless wake degradation without sleeping records; does not wake slept agents for non-mobile session-only activation; does not rewrite unread metadata when a mobile activation finds the worktree already read; returns unread:false from worktree.ps after a mobile activation clears the flag; materializes pending mobile session terminals without focusing desktop clients; closes browser mobile session tabs when addressed by browser workspace id. src/main/runtime/orca-runtime-tests/mobile-session-tabs.spec.ts: resolves mobile terminal surfaces by exact split leaf; closes the matching mobile terminal UUID leaf without closing the whole tab; closes the whole mobile terminal tab when addressed by parent tab id; activates the active split leaf when addressed by parent tab id; clears unread metadata on mobile worktree activation without focusing desktop clients; wakes slept agents on the host renderer when a phone activates a worktree. src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-05.spec.ts: publishes the hook provider session on a headless mobile tab so native chat can address the transcript; recovers the agent type from the hook row when the pane was launched without an agent hint; reads one agent-status snapshot per projection, not one per terminal tab; waits for unknown-launch foreground owner before publishing Pi-compatible mobile status; keeps Pi-compatible mobile session status as Pi for an unknown-launch foreground pi PTY; keeps renderer-vetted mobile agent status for custom-titled terminals. src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-04.spec.ts: publishes terminal surface agent status for paired web clients; preserves authoritative OMP identity for Pi-compatible remote terminal snapshots; normalizes a remote OMP title without republishing omitted launch identity; skips the foreground-process probe when the PTY launch agent is already known; probes the foreground process only on a status transition for unknown launch agents; passes the client signal and the slept-worktree refusal to the spawn. src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-03.spec.ts: does not use stale runtime-created PTY status when a neutral PTY title exists; recognizes runtime-created Codex PTY handles from the ready prompt; recognizes runtime-created Antigravity PTY handles from the ready prompt; recognizes live leaf Antigravity terminals from the ready prompt; recognizes a later Antigravity header with a prompt but no model line; keeps mobile terminal surfaces visible while their leaf handle is pending. src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-02.spec.ts: lets Claude agents management titles clear stale runtime-created title status; does not recognize live Claude agents panes from a Claude foreground process; does not let stale tab-level agent titles override current neutral pane titles; lists live terminals with fresh pane titles over stale tab titles; lets adopted neutral pane titles use non-shell foreground fallback; lets adopted neutral pane titles retry wrapper foregrounds until recognized; authorizes settled CLI prompts only after positive %s foreground identity; does not recognize arbitrary foreground TUIs as running agents; lets live neutral pane titles retry wrapper foregrounds until recognized; lets current Claude agents PTY titles override stale runtime-created OSC titles; does not let stale Claude agents OSC titles suppress current PTY title activity. src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status.spec.ts: keeps preallocated terminal handles valid across renderer reloads; preserves runtime-created PTY process identity after graph unavailable; keeps prompt bindings fenced across runtime restarts without provider incarnation; recognizes runtime-created PTY handles with agent launch titles; does not treat a bare Cursor Agent native title as a running agent session; uses stale runtime-created PTY status when there is no title or foreground evidence. src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-07.spec.ts: keeps orphaned list and show writability aligned with the send gate. src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-04.spec.ts: cancels a coalesced SSH worker recovery retry when its provider disconnects. src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-03.spec.ts: retries renderer reveal before clearing an adopted legacy worker sleeping record. src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-02.spec.ts: recovers exported ORCA_TERMINAL_HANDLE from discovered live PTY sessions. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-12.spec.ts: applies ANSI erase-from-start line controls in retained previews; applies ANSI stripping for private or intermediate CSI line controls; applies ANSI stripping for unsupported erase-line modes; reveals an agent terminal under the pane the caller reserved; keeps a fresh %s pane host-owned when a desktop window is available; keeps desktop publication %s separate from the reserved host spawn; mints its own pane when the reserved leaf is malformed, and reports the one it used; starts an agent terminal with the model the caller picked; starts an agent terminal without a model flag when no pick was made; attributes a startup-agent launch named %s as %s; attributes a fresh agent session the host builds as unknown; leaves a bare agent command the user typed out of launch attribution. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-11.spec.ts: trims oversized terminal output bursts without per-line array shifts; builds terminal previews without mapping the full retained tail; keeps recent PTY replay output capped without needing previous data for large chunks; applies terminal redraw controls before retaining previews; applies ANSI terminal redraw controls before retaining previews; retains multi-line ANSI footer redraws instead of appending old frames; keeps the cursor column when erasing full lines in multi-line redraws; applies ANSI split redraw controls without leaking raw params. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-10.spec.ts: returns renderer visible screen lines through terminal.read RPC JSON result; separates composer drafts from provider-owned terminal screens. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-09.spec.ts: reports an in-flight PTY focus as not navigated when its notifier disappears; reports graph-leaf focus as not navigated without a host notifier; grounds the provider mode tracker before a later chunk, in the emulator order; grounds an in-flight provider snapshot capture so it cannot publish the pre-reset screen; waits for terminal exit and resolves with the exit status; keeps terminal read payloads bounded while retained output remains pageable; trims terminal read preview character budget without per-line array shifts. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-08.spec.ts: submits a silent Claude composer once after the bounded render fallback; chunks large terminal.send text before provider writes; yields chunked terminal input through immediates between writes; yields while validating accepted large terminal.send text before provider writes; reveals a background terminal session when focusing its handle; replays captured launch config when focusing a background agent session; reveals background terminal sessions with the freshest PTY title; renames background terminal handles without requiring a visible tab; keeps a background terminal handle stable while reveal adoption is racing. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-07.spec.ts: resolves tui-idle when a stale Codex prompt is followed by Antigravity readiness; returns an agent-neutral blocked wait result for update prompts; returns an agent-neutral blocked wait result for workspace trust prompts; returns an agent-neutral blocked wait result for cwd selection prompts; returns a blocked wait result for Codex model migration prompts; returns a blocked wait result for Codex startup hook review prompts; returns an agent-neutral blocked wait result for generic interactive prompts; splits text and enter writes for background terminal handles; types the lead line for %s: %s; submits through the agent-specific PTY timing policy for %s. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-06.spec.ts: waits for exit on background terminal handles; keeps retained PTY transcript memory when controller refresh fails; resolves tui-idle from an Antigravity ready prompt preview; resolves Antigravity ready prompts with newline-heavy pasted tails without splitting; resolves live-leaf tui-idle from an Antigravity ready prompt preview. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-03.spec.ts: spawns the available Qoder command for a captured same-session resume: %s; does not use the local Windows shell setting for remote Windows bare agent creates; matches canonical bare agent commands when a command override is configured; keeps non-bare agent command terminal creates unchanged; keeps disabled bare agent command terminal creates unchanged; injects runtime hook receiver env into terminal sessions; creates background terminal sessions for a $label; creates background terminal sessions for a $label; enables Claude Agent Teams only for direct Claude launches when configured in-process; reveals Claude Agent Teams launches with the rewritten launch config; preserves Claude Agent Teams for sequenced Claude launches. src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness.spec.ts: creates visible terminal sessions without asking the renderer to focus a tab; asks the pty controller for the requested shell instead of a startup command; knows the agent a flagged launch command names before any process read; retires a flagged command pane identity when the command exits; retires only receipted restored PTY authority on command completion and exit; forgets synthetic handles when disconnected PTY records are pruned. src/main/runtime/orca-runtime-tests/headless-snapshots.spec.ts: returns OSC titles from headless main terminal snapshots; adopts renderer-seeded titles into headless main terminal snapshots; returns cwd metadata from seeded headless main terminal snapshots; adopts OSC7 host metadata from seeded headless terminal scrollback; falls back to the renderer snapshot for hidden-output recovery without headless state; keeps an empty headless snapshot authoritative for hidden-output recovery; advances the absolute output sequence across a daemon stream gap; emits explicit OSC 9999 agent status from runtime PTY data. src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-02.spec.ts: falls back to the provider snapshot for a restored PTY with no mounted renderer; falls back to the available mirror when authoritative provider history is unavailable; keeps an empty renderer snapshot when the provider has no retained content; keeps restored provider history authoritative after later live output; uses provider alternate-screen state while a partial model is unsafe; prefers the tracked title over the headless emulator lastTitle; keeps the cursor-agent literal in record-fallback snapshots only without a tracker title; touches mobile snapshots once for decorative spinner ticks, again on idle. src/main/runtime/orca-runtime-tests/local-worktree-creation-part-02.spec.ts: creates a same-repo PR branch override from a resolved head SHA and matching push target; skips broad remote fetch for an existing full-SHA PR base; creates a selected Bitbucket PR branch override from a matching remote branch; suffixes an existing PR when a matching push target lacks selected PR metadata; suffixes a matching push target branch when selected PR metadata has no PR number; suffixes a matching push target branch when the existing PR is different; suffixes a selected PR remote conflict when the PR lookup fails; checks out an unused runtime PR branch only when it is at the resolved head SHA; suffixes only the runtime worktree path when an exact PR branch checkout path exists. src/main/runtime/orca-runtime-tests/local-worktree-creation.spec.ts: returns runtime local base update suggestions from addWorktree; creates a runtime local worktree from a usable persisted local branch base; does not create a runtime local worktree when the refresh fails and no local base ref exists; creates a branchNameOverride worktree from the selected matching remote base ref. Current changed source bytes, wrapper registrations and reduced selectors have no fresh execution or red/green credit. Unrelated surviving receipt objects keep their original narrow scope; current literal graph reachability does not establish historical import closure or equivalent replacement coverage. Current conservative command/import graph reaches src/main/runtime/construction/orca-runtime.test.ts, src/main/runtime/orca-runtime-tests/targeting-and-resilience.spec.ts, src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-04.spec.ts, src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-03.spec.ts, src/main/runtime/orca-runtime-tests/worktree-removal-and-reconciliation-part-02.spec.ts, src/main/runtime/orca-runtime-tests/gitlab-and-pr-bases-part-02.spec.ts, src/main/runtime/orca-runtime-tests/gitlab-and-pr-bases.spec.ts, src/main/runtime/orca-runtime-tests/worktree-setup-and-startup-part-03.spec.ts, src/main/runtime/orca-runtime-tests/worktree-setup-and-startup.spec.ts, src/main/runtime/orca-runtime-tests/terminal-sleep-and-teardown-part-02.spec.ts, src/main/runtime/orca-runtime-tests/mobile-summaries-part-03.spec.ts, src/main/runtime/orca-runtime-tests/mobile-summaries-part-02.spec.ts, src/main/runtime/orca-runtime-tests/mobile-summaries.spec.ts, src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-03.spec.ts, src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-02.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-13.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-12.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-11.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-10.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-08.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-07.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-05.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-04.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-02.spec.ts, src/main/runtime/orca-runtime-tests/mobile-session-tabs.spec.ts, src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-05.spec.ts, src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-04.spec.ts, src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-03.spec.ts, src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-02.spec.ts, src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status.spec.ts, src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-07.spec.ts, src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-04.spec.ts, src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-03.spec.ts, src/main/runtime/orca-runtime-tests/terminal-output-and-worker-recovery-part-02.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-12.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-11.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-10.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-09.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-08.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-07.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-06.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-03.spec.ts, src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness.spec.ts, src/main/runtime/orca-runtime-tests/headless-snapshots.spec.ts, src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-02.spec.ts, src/main/runtime/orca-runtime-tests/local-worktree-creation-part-02.spec.ts, src/main/runtime/orca-runtime-tests/local-worktree-creation.spec.ts. Unresolved local/computed edges remain explicit debt.",
"Audit2095 current-parent preparation2126 (approved2092/2093 removals; source refresh2109/independent2112): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-sleep-and-teardown-part-03.spec.ts: rejects exact terminal stop for multiple expected PTYs before stopping anything; omits stale renderer leaves when fresh PTY liveness is required; omits unbound renderer placeholders when fresh PTY liveness is required; captures the event method before the nested sleep receipt changes it; returns the close receipt without requiring a PTY stop; uses the same stop result as an empty explicit stop. src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-04.spec.ts: builds a compact worktree summary from persisted and live runtime state; reads the linked-PR state from the renderer repoId-keyed GitHub cache; carries persisted worktree host ownership in mobile summaries; emits only instance- and boundary-validated lineage parents in mobile summaries; resolves WSL platforms only for repos represented in mobile summaries; omits worktrees hidden by the host visibility policy from mobile summaries; applies linked-checkout source visibility to mobile summaries. src/main/runtime/orca-runtime-tests/hooks-and-hosted-review-part-02.spec.ts: routes runtime GitHub PR details and actions through the selected WSL project runtime; passes SSH connection context through hosted review creation flows; routes local WSL project hosted review flows through runtime git options; treats SSH worktree drift as unknown without local git probes. src/main/runtime/orca-runtime-tests/terminal-listing.spec.ts: emits one mobile session terminal tab per live PTY even if two tabs resolve to it; resolves projected split authority from the parent layout PTY binding; keeps explicit-id terminal lists from resolving all worktrees; keeps explicit-id cold-cache terminal lists from classifying unrelated same-repo worktrees; keeps unknown bare terminal-list ids on the no-scan exact-id path; matches explicit-id cwd PTYs for folder workspace instance IDs; routes PTY output through the PTY leaf index in large terminal graphs. src/main/runtime/orca-runtime-tests/window-authority.spec.ts: claims the first window as authoritative and ignores later windows; transfers authority from the headless sentinel to the first real window; relays terminal browser launches only while headless owns the graph; marks live headless PTYs for renderer reattach before desktop promotion; reports the activation gate state while no desktop window is available; bumps the epoch and enters reloading when the authoritative window reloads; can mark the graph ready for the authoritative window; drops back to unavailable and clears authority when the window disappears; hands the graph back to headless when a promoted serve window closes (#27292); keeps a crashed promoted serve renderer on its own window while the window is open; stays unavailable during initial loads before a graph is published. Current changed source bytes, wrapper registrations and reduced selectors have no fresh execution or red/green credit. Unrelated surviving receipt objects keep their original narrow scope; current literal graph reachability does not establish historical import closure or equivalent replacement coverage. Current conservative command/import graph reaches src/main/runtime/orca-runtime-tests/terminal-sleep-and-teardown-part-03.spec.ts, src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-04.spec.ts, src/main/runtime/orca-runtime-tests/hooks-and-hosted-review-part-02.spec.ts, src/main/runtime/orca-runtime-tests/terminal-listing.spec.ts, src/main/runtime/orca-runtime-tests/window-authority.spec.ts. Unresolved local/computed edges remain explicit debt.",
@@ -7643,7 +7646,8 @@
"Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/mobile-session-tabs-part-14.spec'). src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-03.spec.ts: arms the stale-title timer for a seeded working title; arms the Command Code scrape from the noted spawn command; prefers the tracked title over a stale renderer lastTitle in the hydration seed; writes recent output into the current runtime output map; uses a later title handler replacement with the runtime receiver; calls the current injected listener with the runtime receiver; keeps optional reconciliation lazy after its callback is removed. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-14.spec.ts: lists them, so a paired client can mirror a migrated editor; closes one by retiring it from the host session; keeps an unsaved draft unless the close is forced; shares aggregate work but leaves a replacement pending promise alone; lets a targeted refresh finish while an aggregate refresh waits; refuses a close when the store lacks %s before the guard; keeps a later missing %s on the original caught failure path. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed.",
"Audit2061 (sources2059/2060): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/mobile-session-tabs-headless-chat-rebuild.spec'); await import('./orca-runtime-tests/mobile-session-tabs-cold-serve-hydrate.spec'); await import('./orca-runtime-tests/worktree-removal-execution-host.spec'); await import('./orca-runtime-tests/terminal-spawn-dispatch.spec'). src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts: ordinary registration cleanup removes only import { registerPtyConnectionSshHookStatusAuthorityTests } from '../host-ownership/pty-connection-ssh-hook-status-authority.spec'; registerPtyConnectionSshHookStatusAuthorityTests(). src/main/runtime/orca-runtime-tests/headless-snapshots-part-02.spec.ts: replaces a cwd parsed before late WSL context with the provider cwd; keeps a live WSL cwd that arrives during late-context snapshot recovery; infers local reconstructed WSL context from a WSL UNC worktree; clears stale terminal file URI hostnames after empty-host OSC7 cwd updates; serializes SSH headless OSC7 cwd as POSIX when the desktop runtime is on Windows; keeps Windows SSH OSC7 cwd as a drive path when the desktop runtime is POSIX; serializes Windows SSH headless OSC7 cwd as a drive path on POSIX desktops; infers restored SSH connection identity from app-scoped PTY ids. src/main/runtime/orca-runtime-tests/mobile-session-tabs-headless-chat-rebuild.spec.ts: survives the rebuild that closing a saved editor tab forces; keeps its place in the tab order when the host lists the workspace again; lists tabs to phones in the order desktop clients draw after a rebuild; keeps the place a window gave a chat across a graph resend before the chat is restored. src/main/runtime/orca-runtime-tests/mobile-session-tabs-cold-serve-hydrate.spec.ts: lists every persisted terminal of a windowless host after a cold restart; lists every persisted terminal in the all-worktrees inventory after a cold restart; lists persisted editor tabs beside the terminals after a cold restart; restores a persisted split group layout on the cold rebuild; restores the saved active group of a split even when it is not the first group; falls back to the active tab group when the saved active group was not restored; keeps the headless group active when there is no persisted split; keeps phone and CLI creates in the group they joined across a cold restart. src/main/runtime/orca-runtime-tests/worktree-removal-failed-retry.spec.ts: lists the leftover with its error, though Git no longer does; takes the normal delete once Git registers a checkout at the path again; joins a retry another client started while this Delete listed Git; shows the failed row with its error, not the scan cached before the delete. src/main/runtime/orca-runtime-tests/worktree-removal-execution-host.spec.ts: refuses an SSH row whose host is unreachable instead of deleting here; refuses a runtime row with no nested SSH target rather than deleting locally; refuses a runtime row that also names a nested SSH target; retains runtime purge dispatch in a recovery job; uses the runtime helper override before resuming an interrupted removal; uses the runtime helper override before retrying a failed removal; captures the watcher callback and retains its job-host receiver; reads the current runtime removal queue. src/main/runtime/orca-runtime-tests/terminal-spawn-dispatch.spec.ts: reports the spawn request before it leaves for the pty controller; reports it even when the spawn itself then fails; does not report it when the create fails before any spawn request; captures the admission method before reading the incarnation; captures the record method before evaluating its state object; skips database payload serialization when no database exists; skips a throwing database payload when no database exists; keeps the database method and receiver captured before its payload; captures the canonical map method before a binding getter changes it; completes the captured replacement fence without another map lookup. src/renderer/src/components/terminal-pane/pty-connection/host-ownership/pty-connection-ssh-hook-status-authority.spec.ts: leaves SSH IPC OSC 9999 status ownership in the main runtime. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed.",
"Module layout policy correction: retire the remaining program-status-osc.spec.ts event-projection case (production/mock-derived pane-key oracle) and sign-in timeout case (real setTimeout wait with Date-only fake clocks). The runtime test registrar no longer imports that file. No replacement coverage or fresh execution is claimed for these losses; historical receipts retain their original source scope.",
- "Module layout policy correction: retire the two remaining worktree-ps-agent-row-dismissal.spec.ts registrations. The remint/dismissal/exit case computed expected snapshotVersion increments from a production snapshot and used real-clock vi.waitFor; the legacy OSC case derived its expected paneKey from the production layout-owner switch. The runtime registrar no longer imports this file. These public projection scenarios have no replacement coverage or fresh execution claimed; all historical receipts and earlier loss notes retain their original source scope."
+ "Module layout policy correction: retire the two remaining worktree-ps-agent-row-dismissal.spec.ts registrations. The remint/dismissal/exit case computed expected snapshotVersion increments from a production snapshot and used real-clock vi.waitFor; the legacy OSC case derived its expected paneKey from the production layout-owner switch. The runtime registrar no longer imports this file. These public projection scenarios have no replacement coverage or fresh execution claimed; all historical receipts and earlier loss notes retain their original source scope.",
+ "Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Original prospective command before removal: pnpm exec vitest run --config config/vitest.config.ts src/shared/claimed-agent-pty-owner.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/runtime/session-construction/agent-session/orca-runtime-agent-session-operation.test.ts src/main/runtime/session-construction/agent-session/remote-agent-session-host-authority.integration.test.ts src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session.test.ts"
],
"demotionRule": "Keep experimental or demote if the focused gate flakes without a product or harness bug, if a retry can physically spawn twice, if a stale exit/publication can replace or resurrect a terminal, or if mixed-version fallback occurs after an authority side effect."
},
@@ -9622,7 +9626,7 @@
"providers": ["ssh", "remote-runtime", "wsl"],
"coveredPlatforms": ["macos"],
"coveredProviders": ["ssh", "remote-runtime"],
- "coverageNotes": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/ssh/connection/ssh-connection-manager.test.ts: tears a failed startup down quietly, so its error is not replaced by a disconnect; marks a dial that never reached the host, so setup reports SSH’s reason; removes the registration when bulk teardown fails; leaves a connection whose own reconnect is asking the user alone; clears the pool entry when the closed connection is still the registered one; still reuses a connection that is already up; dials a user's connection test. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2052 (sources2049/2050/2051): Remove complete low-value restored-pane-title and pane-visibility-identity suites and their current selectors. Their supplied snapshot/title and nullable identity-comparison alarms are intentionally lost without replacement. Unrelated dated evidenceRuns remain unchanged and do not validate the reduced commands. No fresh gate execution, actual PTY/provider, rendered, remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the terminal-create idempotency forwarding suite and its prospective selector. Preserve2 unrelated receipts without claiming the lost forwarding alarm was replaced. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Delete complete transport-unmount and queued-initial-CWD helper suites: despite lifecycle-shaped fixtures, the unmount owner returns a Boolean PTY-id predicate, while CWD cases check nullish field selection and callback counts. Lose their detach/destroy/teardown and one-shot-CWD supplied examples. Partial queued-pane-startup loses three identical/empty/nonowner identity examples, retaining four exact one-shot/replacement ownership callbacks. No assertion object maps to these three sources, so unrelated alias objects remain byte-exact. Preserve the current81ed prior removal of pane-split-startup; stale bd948 source metadata snapshots are not replayed. No actual process/PTY startup, transport shutdown, live SSH or rendered recovery is proven by this metadata change. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Delete the sole supplied public-SSH-state spread/sanitized-error projection and its provider-authority-pair alias. Also delete the complete tiny one-shot split-startup wrapper suite: callback-visible temporary field/reset, sequential payload and thrown-sentinel reset alarms disappear. No SSH provider epoch handoff, connection, process startup or actual terminal split was performed by either deleted suite. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1903 removes whole mocked detach, supplied geometry and/or close-request suites selected by this gate. Their pending-CWD/PTY-binding argument/order, fabricated hit-test and close bookkeeping alarms are intentionally lost without replacement. Valid remaining selectors/assertions and unchanged-selector execution receipts retain their original scope. Reduced unit selections have no fresh broad gate, real PTY/provider, rendered focus, or measured-budget validation. Historical prior account (preserved verbatim): Audit1645 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1301 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic renderer coverage proves retained native and runtime SSH payloads are admitted through production routes only with valid complete authority, stale cleanup cannot unregister a replacement runtime terminal, direct SSH Git and folder panes keep their PTY bindings through disconnect and reconnect, one authority chain stops after two automatic attempts even when each timeout exceeds the rolling window, rejected acknowledgements mutate no store maps, and one shared exact attempt admits every concurrent split-pane spawn and reattach while preserving the first PTY as the tab fallback. A later sibling failure rotates the tab once, stale callbacks from the prior attempt mutate no state, split remount activity suppression is counted per leaf, primary PTY exit promotes a bound survivor or preserves an empty continuation gap for a late sibling, and primary, non-primary, or null-PTY detach preserves exact authority on both resulting tabs. Intentional pane disposal cancels its settlement timer without breaking StrictMode remount timeout ownership. A mounted remote-runtime terminal survives repeated transport partitions without changing PTY identity. A real encrypted-WebSocket oracle proves a successful reachability probe can replace a pre-ready shared-control socket without rejecting or duplicating the waiting RPC. Direct SSH coordinator tests cover immediate terminal finalization, hydration correction, damping, bounded retry, and telemetry non-interference. Client/server heartbeat tests cover timer suspension, socket generations fence stale callbacks, cold restored-terminal attachment retries, cached pixels remain unhealthy until authoritative replay, automatic retries stop after one minute, manual reconnect preserves the PTY, and pane closure releases recovery UI state. Current-transport recovery clears every error that transport surfaced without clearing or displaying a sibling pane's errors, while transport suppression, pane retention, and the rendered surface are independently bounded. Current macOS Electron journeys against an ephemeral Linux Docker SSH target cover exact-authority repo/worktree hydration, live terminal recovery after disconnect/reconnect, and eager six-terminal remount after renderer reload. A Windows remote-runtime smoke covers reachability and PTY round-trip. Multi-target live fanout, paired-close, WSL, and patched live partition journeys remain gaps. The test-value audit narrowed resolved-worktree-execution-host.test.ts to cache reuse and invalidation. Its direct hydrated-worktree, missing-folder, restored-owner, host-stamp and empty-runtime selection alarms are lost. Other routing and recovery suites do not establish equivalent selector coverage; historical run commands and results remain historical. The test-value audit removes standalone unwritten/released renderer-authority and cross-scope request-count examples. The retained synthetic mirror/store/sidebar and pending-inventory checks do not establish real PTY byte ownership, SSH reconnection or equivalent replacement coverage; historical commands and results remain historical. The test-value audit removes direct join/label ledgers, immediate failure and negative-only stale/removal/partial-authority examples, plus the standalone retained/live event projection. Retained synthetic store/hydration compositions do not establish real SSH continuity, remote authority delivery or equivalent replacement alarms. Historical commands and results remain historical. The renderer scheduling fixture retains in-flight coalescing only. Its immediate publication and negative stale-SSH-cleanup call ledgers were removed; the retained SSH recovery evidence does not replace those alarms. The accepted-handle-events observer suite is removed, including its scoped listener and settlement-release assertions. These observer alarms are lost; retained SSH/transport journeys are not equivalent replacement coverage. The test-value audit removed repeated remote-handle rotation inventories and snapshot-first pending-restart migration examples from terminal-pty-identity-replacement.test.ts, plus direct foreground metadata setter, confirmation, evidence-enum, and prefix/worktree cleanup examples. Those rotation, pending-restart, snapshot-first migration, and foreground scalar-update alarms are lost. The retained replacement case observes pane and tab identities in one subscriber publication; it does not establish equivalent migration, process-evidence, or input-routing coverage. Historical commands and results remain historical. The test-value audit narrows terminals-hydration.test.ts to a real reconnect batch with one measured store publication and hydration-seeded history consumed by a subsequent visit/Back check. Direct split-layout, runtime/folder/floating restoration, dead-leaf focus, cold/known-absent SSH deferral, title, default-tab marker, navigation initialization, and hydrationSucceeded scalar examples are removed; those specific alarms are lost. No actual target-removal transition, live SSH connection, session writer, or persisted restart is exercised by the retained cases. The old target-scoped/snapshot assertion references are retired because the current file does not contain those oracles. Other suites and historical runs do not establish equivalent replacement coverage. Audit1299 removes tests/e2e/terminal-cold-activation-deferral.spec.ts. Private-state/work-budget/assembled-fixture alarms are intentionally lost; retained suites are not equivalent replacement coverage. No new runtime/platform evidence is claimed. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/hooks/ipc-events/direct-ssh-connect-reply-routing.test.ts removed. Initial and event-triggered partial-authority hydration fixture alarms disappear. src/renderer/src/components/terminal-pane/terminal-error-accumulation.test.ts removed. Multiline dedup/storm bounds, resource classification/collision, scoped clear/reconnect strip and1000-pane map count alarms disappear. No equivalent replacement coverage is claimed. Audit1396: src/renderer/src/components/terminal-pane/pty-connection-pending-spawn.spec.ts reduced. Lose standalone debug-state retention/log silence alarm. React StrictMode is not mounted; bindings manually simulate remount over mocked transport. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1400: src/main/ipc/ssh/ssh.test.ts reduced. Lose trivial missing target and mocked publication inventory. Preexisting unresolved ../ssh/ssh-port-scanner mock is recorded, not fixed. src/renderer/src/runtime/sync-runtime-graph-scheduling.test.ts removed. Removes whole coalescing call-count suite; no newest-state delivery or replacement claim. src/renderer/src/store/slices/terminal-pty-identity-replacement.test.ts reduced. Removes three no-op/work-count registrations; retains externally observed ownership consistency. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1412: src/main/ssh/ssh-provider-authority.test.ts removed. Loses real AbortController revocation/target isolation/reentrancy outcomes, recreated-target generation-floor/session rollover behavior, stale mutation refusal and settled-registration cleanup alarms. These useful alarms are deliberately lost; no equivalent cancellation coverage is claimed. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1743 removes the standalone line-height clamp/default and pane cwd fallback helper tests (5 authored cases). These trivial-helper alarms are intentionally lost, with no equivalent replacement. Only current commands/testFiles lose the deleted selectors; historical receipts and evidenceRuns remain unchanged and do not validate the reduced commands.",
+ "coverageNotes": "Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/ssh/connection/ssh-connection-manager.test.ts: tears a failed startup down quietly, so its error is not replaced by a disconnect; marks a dial that never reached the host, so setup reports SSH’s reason; removes the registration when bulk teardown fails; leaves a connection whose own reconnect is asking the user alone; clears the pool entry when the closed connection is still the registered one; still reuses a connection that is already up; dials a user's connection test. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2052 (sources2049/2050/2051): Remove complete low-value restored-pane-title and pane-visibility-identity suites and their current selectors. Their supplied snapshot/title and nullable identity-comparison alarms are intentionally lost without replacement. Unrelated dated evidenceRuns remain unchanged and do not validate the reduced commands. No fresh gate execution, actual PTY/provider, rendered, remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the terminal-create idempotency forwarding suite and its prospective selector. Preserve2 unrelated receipts without claiming the lost forwarding alarm was replaced. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Delete complete transport-unmount and queued-initial-CWD helper suites: despite lifecycle-shaped fixtures, the unmount owner returns a Boolean PTY-id predicate, while CWD cases check nullish field selection and callback counts. Lose their detach/destroy/teardown and one-shot-CWD supplied examples. Partial queued-pane-startup loses three identical/empty/nonowner identity examples, retaining four exact one-shot/replacement ownership callbacks. No assertion object maps to these three sources, so unrelated alias objects remain byte-exact. Preserve the current81ed prior removal of pane-split-startup; stale bd948 source metadata snapshots are not replayed. No actual process/PTY startup, transport shutdown, live SSH or rendered recovery is proven by this metadata change. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Delete the sole supplied public-SSH-state spread/sanitized-error projection and its provider-authority-pair alias. Also delete the complete tiny one-shot split-startup wrapper suite: callback-visible temporary field/reset, sequential payload and thrown-sentinel reset alarms disappear. No SSH provider epoch handoff, connection, process startup or actual terminal split was performed by either deleted suite. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1903 removes whole mocked detach, supplied geometry and/or close-request suites selected by this gate. Their pending-CWD/PTY-binding argument/order, fabricated hit-test and close bookkeeping alarms are intentionally lost without replacement. Valid remaining selectors/assertions and unchanged-selector execution receipts retain their original scope. Reduced unit selections have no fresh broad gate, real PTY/provider, rendered focus, or measured-budget validation. Historical prior account (preserved verbatim): Audit1645 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1301 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic renderer coverage proves retained native and runtime SSH payloads are admitted through production routes only with valid complete authority, stale cleanup cannot unregister a replacement runtime terminal, direct SSH Git and folder panes keep their PTY bindings through disconnect and reconnect, one authority chain stops after two automatic attempts even when each timeout exceeds the rolling window, rejected acknowledgements mutate no store maps, and one shared exact attempt admits every concurrent split-pane spawn and reattach while preserving the first PTY as the tab fallback. A later sibling failure rotates the tab once, stale callbacks from the prior attempt mutate no state, split remount activity suppression is counted per leaf, primary PTY exit promotes a bound survivor or preserves an empty continuation gap for a late sibling, and primary, non-primary, or null-PTY detach preserves exact authority on both resulting tabs. Intentional pane disposal cancels its settlement timer without breaking StrictMode remount timeout ownership. A mounted remote-runtime terminal survives repeated transport partitions without changing PTY identity. A real encrypted-WebSocket oracle proves a successful reachability probe can replace a pre-ready shared-control socket without rejecting or duplicating the waiting RPC. Direct SSH coordinator tests cover immediate terminal finalization, hydration correction, damping, bounded retry, and telemetry non-interference. Client/server heartbeat tests cover timer suspension, socket generations fence stale callbacks, cold restored-terminal attachment retries, cached pixels remain unhealthy until authoritative replay, automatic retries stop after one minute, manual reconnect preserves the PTY, and pane closure releases recovery UI state. Current-transport recovery clears every error that transport surfaced without clearing or displaying a sibling pane's errors, while transport suppression, pane retention, and the rendered surface are independently bounded. Current macOS Electron journeys against an ephemeral Linux Docker SSH target cover exact-authority repo/worktree hydration, live terminal recovery after disconnect/reconnect, and eager six-terminal remount after renderer reload. A Windows remote-runtime smoke covers reachability and PTY round-trip. Multi-target live fanout, paired-close, WSL, and patched live partition journeys remain gaps. The test-value audit narrowed resolved-worktree-execution-host.test.ts to cache reuse and invalidation. Its direct hydrated-worktree, missing-folder, restored-owner, host-stamp and empty-runtime selection alarms are lost. Other routing and recovery suites do not establish equivalent selector coverage; historical run commands and results remain historical. The test-value audit removes standalone unwritten/released renderer-authority and cross-scope request-count examples. The retained synthetic mirror/store/sidebar and pending-inventory checks do not establish real PTY byte ownership, SSH reconnection or equivalent replacement coverage; historical commands and results remain historical. The test-value audit removes direct join/label ledgers, immediate failure and negative-only stale/removal/partial-authority examples, plus the standalone retained/live event projection. Retained synthetic store/hydration compositions do not establish real SSH continuity, remote authority delivery or equivalent replacement alarms. Historical commands and results remain historical. The renderer scheduling fixture retains in-flight coalescing only. Its immediate publication and negative stale-SSH-cleanup call ledgers were removed; the retained SSH recovery evidence does not replace those alarms. The accepted-handle-events observer suite is removed, including its scoped listener and settlement-release assertions. These observer alarms are lost; retained SSH/transport journeys are not equivalent replacement coverage. The test-value audit removed repeated remote-handle rotation inventories and snapshot-first pending-restart migration examples from terminal-pty-identity-replacement.test.ts, plus direct foreground metadata setter, confirmation, evidence-enum, and prefix/worktree cleanup examples. Those rotation, pending-restart, snapshot-first migration, and foreground scalar-update alarms are lost. The retained replacement case observes pane and tab identities in one subscriber publication; it does not establish equivalent migration, process-evidence, or input-routing coverage. Historical commands and results remain historical. The test-value audit narrows terminals-hydration.test.ts to a real reconnect batch with one measured store publication and hydration-seeded history consumed by a subsequent visit/Back check. Direct split-layout, runtime/folder/floating restoration, dead-leaf focus, cold/known-absent SSH deferral, title, default-tab marker, navigation initialization, and hydrationSucceeded scalar examples are removed; those specific alarms are lost. No actual target-removal transition, live SSH connection, session writer, or persisted restart is exercised by the retained cases. The old target-scoped/snapshot assertion references are retired because the current file does not contain those oracles. Other suites and historical runs do not establish equivalent replacement coverage. Audit1299 removes tests/e2e/terminal-cold-activation-deferral.spec.ts. Private-state/work-budget/assembled-fixture alarms are intentionally lost; retained suites are not equivalent replacement coverage. No new runtime/platform evidence is claimed. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/hooks/ipc-events/direct-ssh-connect-reply-routing.test.ts removed. Initial and event-triggered partial-authority hydration fixture alarms disappear. src/renderer/src/components/terminal-pane/terminal-error-accumulation.test.ts removed. Multiline dedup/storm bounds, resource classification/collision, scoped clear/reconnect strip and1000-pane map count alarms disappear. No equivalent replacement coverage is claimed. Audit1396: src/renderer/src/components/terminal-pane/pty-connection-pending-spawn.spec.ts reduced. Lose standalone debug-state retention/log silence alarm. React StrictMode is not mounted; bindings manually simulate remount over mocked transport. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1400: src/main/ipc/ssh/ssh.test.ts reduced. Lose trivial missing target and mocked publication inventory. Preexisting unresolved ../ssh/ssh-port-scanner mock is recorded, not fixed. src/renderer/src/runtime/sync-runtime-graph-scheduling.test.ts removed. Removes whole coalescing call-count suite; no newest-state delivery or replacement claim. src/renderer/src/store/slices/terminal-pty-identity-replacement.test.ts reduced. Removes three no-op/work-count registrations; retains externally observed ownership consistency. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1412: src/main/ssh/ssh-provider-authority.test.ts removed. Loses real AbortController revocation/target isolation/reentrancy outcomes, recreated-target generation-floor/session rollover behavior, stale mutation refusal and settled-registration cleanup alarms. These useful alarms are deliberately lost; no equivalent cancellation coverage is claimed. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1743 removes the standalone line-height clamp/default and pane cwd fallback helper tests (5 authored cases). These trivial-helper alarms are intentionally lost, with no equivalent replacement. Only current commands/testFiles lose the deleted selectors; historical receipts and evidenceRuns remain unchanged and do not validate the reduced commands.",
"motivatingLinks": [
"https://linear.app/stably/issue/STA-3107",
"https://github.com/stablyai/orca/pull/12664",
@@ -9640,7 +9644,7 @@
"oracle": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/ssh/connection/ssh-connection-manager.test.ts: tears a failed startup down quietly, so its error is not replaced by a disconnect; marks a dial that never reached the host, so setup reports SSH’s reason; removes the registration when bulk teardown fails; leaves a connection whose own reconnect is asking the user alone; clears the pool entry when the closed connection is still the registered one; still reuses a connection that is already up; dials a user's connection test. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2052 (sources2049/2050/2051): Remove complete low-value restored-pane-title and pane-visibility-identity suites and their current selectors. Their supplied snapshot/title and nullable identity-comparison alarms are intentionally lost without replacement. Unrelated dated evidenceRuns remain unchanged and do not validate the reduced commands. No fresh gate execution, actual PTY/provider, rendered, remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the terminal-create idempotency forwarding suite and its prospective selector. Preserve2 unrelated receipts without claiming the lost forwarding alarm was replaced. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Delete complete transport-unmount and queued-initial-CWD helper suites: despite lifecycle-shaped fixtures, the unmount owner returns a Boolean PTY-id predicate, while CWD cases check nullish field selection and callback counts. Lose their detach/destroy/teardown and one-shot-CWD supplied examples. Partial queued-pane-startup loses three identical/empty/nonowner identity examples, retaining four exact one-shot/replacement ownership callbacks. No assertion object maps to these three sources, so unrelated alias objects remain byte-exact. Preserve the current81ed prior removal of pane-split-startup; stale bd948 source metadata snapshots are not replayed. No actual process/PTY startup, transport shutdown, live SSH or rendered recovery is proven by this metadata change. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Delete the sole supplied public-SSH-state spread/sanitized-error projection and its provider-authority-pair alias. Also delete the complete tiny one-shot split-startup wrapper suite: callback-visible temporary field/reset, sequential payload and thrown-sentinel reset alarms disappear. No SSH provider epoch handoff, connection, process startup or actual terminal split was performed by either deleted suite. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1903 removes whole mocked detach, supplied geometry and/or close-request suites selected by this gate. Their pending-CWD/PTY-binding argument/order, fabricated hit-test and close bookkeeping alarms are intentionally lost without replacement. Valid remaining selectors/assertions and unchanged-selector execution receipts retain their original scope. Reduced unit selections have no fresh broad gate, real PTY/provider, rendered focus, or measured-budget validation. Historical prior account (preserved verbatim): Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Deterministic tests cover bounded stale-handle replacement, suspended heartbeat clocks, cold and established subscription failure, ten partition/recovery cycles, automatic-recovery cutoff, manual reconnect, and direct SSH binding retention. They assert SSH state changes leave PTY bindings in place, relay identity survives, and another target/local/WSL/runtime panes remain byte-identical through target snapshot hydration and reconnect. Both remount callbacks consume split-count activity suppression, intentional dispose emits no failure/timeout, and a same-attempt StrictMode remount still owns one timeout. Hydration clears an untrusted PTY hint without clearing its current pending owner, healthy current-authority bindings suppress correction, hydration finalizes once, and reconnect emits no paired close lifecycle. A provider-level session-ID reattach returns an incarnation, then a legacy exit without an incarnation must resolve to that returned identity rather than minting a fallback identity. The shared-control oracle withholds the first encrypted ready frame, starts one RPC, triggers the successful-probe refresh, then requires exactly two client connections, one host request, a successful response, zero pending calls, and zero retained request bytes. Tests also assert one unsubscribe per remote-runtime epoch, observable recovery phases, stable PTY identity, resumed snapshot/output/input, no healthy state before replay, no retry or input after cutoff, a new manual epoch against the same PTY, quiet recovery UI with an explicit Reconnect action, pane-close state cleanup, one stable create mutation id, old-runtime no-retry behavior, cross-process PTY adoption, and bounded in-flight coordination. A focused recovery oracle surfaces two distinct failures through one transport, completes authoritative replay, and requires both matching clear callbacks; pane-state tests require only the active pane's error to render, matching-pane recovery to preserve sibling and unrelated errors, dismissal to re-admit later failures, and distinct storms to retain only the newest eight messages within 24 lines and 4,000 characters. The retained store replacement assertion observes one atomic pane/tab subscriber publication; repeated rotations and snapshot-first pending-restart migration no longer have their direct store examples.",
"commands": [
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/paired-reconnect-multi-pane-materialization.test.ts src/renderer/src/runtime/web-session-tabs-sync/agent-status/paired-reconnect-sidebar-agent-count.test.ts --reporter=dot",
- "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/resolved-worktree-execution-host.test.ts src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts src/renderer/src/components/terminal-pane/mounting/queued-pane-startup.test.ts src/renderer/src/components/terminal-pane/parking/one-shot-park-replay.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts src/renderer/src/store/terminals/terminal-pty-identity-replacement.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/resolved-worktree-execution-host.test.ts src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts src/renderer/src/components/terminal-pane/mounting/queued-pane-startup.test.ts src/renderer/src/components/terminal-pane/parking/one-shot-park-replay.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/store/terminals/terminal-pty-identity-replacement.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-reattach-admission.test.ts src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-detach-attach-handoff.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-attach-subscription.test.ts --reporter=dot",
"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/TerminalRemoteRuntimeReconnectBanner.test.tsx src/shared/remote-runtime/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/terminal/launch/orca-runtime-terminal-create-idempotency.test.ts",
@@ -9668,7 +9672,6 @@
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts",
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/remote-runtime-pty-recovery-state.test.ts",
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/TerminalRemoteRuntimeReconnectBanner.test.tsx",
- "src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts",
"src/renderer/src/store/terminals/terminal-pty-identity-replacement.test.ts",
"src/shared/remote-runtime/remote-runtime-socket-liveness.test.ts",
"src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts",
@@ -9927,7 +9930,8 @@
"Audit1983 historical original commands object, preserved verbatim; retired objects are not active execution evidence or replacement coverage:\n\"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-attach-subscription.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-expired-pane-recovery.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-outcome-recovery.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-create-handoff.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/remote-runtime-pty-recovery-state.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/TerminalRemoteRuntimeReconnectBanner.test.tsx src/shared/remote-runtime/remote-runtime-socket-liveness.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-socket-generation.test.ts src/shared/remote-runtime/remote-runtime-client-error-classification.test.ts src/main/runtime/rpc/remote-runtime-server-heartbeat.test.ts src/main/runtime/rpc/methods/terminal/terminal-create-idempotency.test.ts src/main/runtime/terminal/launch/orca-runtime-terminal-create-idempotency.test.ts\"",
"Audit1983 historical original testFiles object, preserved verbatim; retired objects are not active execution evidence or replacement coverage:\n\"src/main/runtime/rpc/methods/terminal/terminal-create-idempotency.test.ts\"",
"Audit2052 (sources2049/2050/2051): Remove complete low-value restored-pane-title and pane-visibility-identity suites and their current selectors. Their supplied snapshot/title and nullable identity-comparison alarms are intentionally lost without replacement. Unrelated dated evidenceRuns remain unchanged and do not validate the reduced commands. No fresh gate execution, actual PTY/provider, rendered, remote/mobile or cross-platform result is claimed.",
- "Audit2195 removes the low-value startup admission boolean and host deferral predicate inventories from background-terminal-worktree-mount.test.ts. The reduced source retains concrete targeted mount, prune and reveal ownership transitions, not those oracle assertions. Existing selectors remain unexecuted here; no equivalent replacement or new runtime/provider/platform/budget result is claimed. Original retired assertion object verbatim:\n{\n \"file\": \"src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts\",\n \"assertions\": [\n \"startup waits for hydration before mounting terminal panes while degraded mode remains interactive\",\n \"only an explicit local execution host can defer cold activation\",\n \"SSH, remote-runtime, and unresolved owners remain eager\"\n ]\n }"
+ "Audit2195 removes the low-value startup admission boolean and host deferral predicate inventories from background-terminal-worktree-mount.test.ts. The reduced source retains concrete targeted mount, prune and reveal ownership transitions, not those oracle assertions. Existing selectors remain unexecuted here; no equivalent replacement or new runtime/provider/platform/budget result is claimed. Original retired assertion object verbatim:\n{\n \"file\": \"src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts\",\n \"assertions\": [\n \"startup waits for hydration before mounting terminal panes while degraded mode remains interactive\",\n \"only an explicit local execution host can defer cold activation\",\n \"SSH, remote-runtime, and unresolved owners remain eager\"\n ]\n }",
+ "Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Original prospective command before removal: pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/resolved-worktree-execution-host.test.ts src/renderer/src/components/terminal/background-terminal-worktree-mount.test.ts src/renderer/src/components/terminal-pane/mounting/queued-pane-startup.test.ts src/renderer/src/components/terminal-pane/parking/one-shot-park-replay.test.ts src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-spawn-and-startup.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-surface-replacement.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts src/renderer/src/store/terminals/terminal-pty-identity-replacement.test.ts"
],
"demotionRule": "Cannot promote if provider failure can close panes or if the oracle is screenshot-only."
},
@@ -10883,7 +10887,7 @@
"providers": ["local", "daemon", "ssh", "wsl", "remote-runtime"],
"coveredPlatforms": ["macos"],
"coveredProviders": [],
- "coverageNotes": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. NEXT136 retains only unchanged execution receipts at their original scopes. Reduced-source selectors and retained static assertions have no new execution or equivalent replacement credit.",
+ "coverageNotes": "Audit2923 accepts loss of the first/replayed attested legacy worker_done CLI acceptance alarms, including exact send parameters, sender pane proof, lifecycle-wait flag and minted mutation identity. The removed fixture supplied settled runtime verdicts; it did not execute settlement authority, durable replay or outage recovery. Reduced selectors have no new execution, fault-control or equivalent replacement credit. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. NEXT136 retains only unchanged execution receipts at their original scopes. Reduced-source selectors and retained static assertions have no new execution or equivalent replacement credit.",
"motivatingLinks": [
"https://github.com/stablyai/orca/pull/11107#discussion_r3663321387",
"https://github.com/stablyai/orca/issues/13858",
@@ -10893,11 +10897,11 @@
"https://linear.app/stably/issue/STA-4022"
],
"invariant": "Starting a worker in the coordinator's current workspace must materialize one inactive terminal tab before worker-start returns, preserve coordinator focus, and remain exactly once after workspace re-entry. After an app update or restart, an exact live legacy worker must fence automatic provider resume, adopt its original PTY into its original background pane, retain readable output, and clear the resume record without spawning, writing, signalling, interrupting, replacing, or focusing the worker. A current-contract worker whose renderer graph identity is temporarily absent must retain its Dispatch capability and settle exactly once from exact hook-attested handle, pane, and process evidence; otherwise only an exact attested coordinator may take over. A worker_done caller may report success only after the owning runtime returns an explicit lifecycle verdict or authoritative reads prove that the exact Task, Dispatch, and worker report receipt settled the expected outcome. Federated terminal settlement must remain replay-eligible until the worker durably acknowledges it, and identical same-outcome retries must converge idempotently. Independently updated clients and worker servers must preserve the negotiated protocol: current peers use Run-home lifecycle settlement, while protocol v1/v2 peers retain their legacy completion path without receiving newer-only fields. A federated worker may accept only the authority defined by its negotiated protocol. An exact existing target workspace must receive a discoverable tab without stealing coordinator focus; if renderer reveal fails, worker-start must expose that the live worker remains background-only. Run and Dispatch checks must resolve through the caller's stable pane identity when a terminal handle is reminted, while a live handle outranks mismatched pane metadata. A nested worker's creator edge requires the current creator pane, process incarnation, and owning Run generation; reminting and rebinding that pane to another Run must remove the stale edge. Explicit legacy terminal inspection remains handle-scoped, and remote or headless worker presentation remains background-only.",
- "oracle": "Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Retained assertion references and unchanged receipts keep their original scopes; retired callbacks and archived receipts provide no current coverage.",
+ "oracle": "Audit2923 accepts loss of the first/replayed attested legacy worker_done CLI acceptance alarms, including exact send parameters, sender pane proof, lifecycle-wait flag and minted mutation identity. The removed fixture supplied settled runtime verdicts; it did not execute settlement authority, durable replay or outage recovery. Reduced selectors have no new execution, fault-control or equivalent replacement credit. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Retained assertion references and unchanged receipts keep their original scopes; retired callbacks and archived receipts provide no current coverage.",
"commands": [
"ORCA_BACKGROUND_LAUNCH=1 npx vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/orchestration/messaging/check-worker-federated-attachment.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/cli/handlers/orchestration.test.ts src/cli/handlers/orchestration-check-identity.test.ts src/cli/handlers/orchestration-worker-cli.test.ts src/main/runtime/rpc/methods/orchestration/worker/composed-workers.test.ts src/main/runtime/rpc/methods/orchestration/messaging/check.test.ts src/main/runtime/rpc/methods/orchestration/messaging/send.test.ts",
- "pnpm exec vitest run --config config/vitest.config.ts src/cli/handlers/orchestration-lifecycle-rejection.test.ts src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts src/cli/handlers/orchestration-migration.test.ts",
+ "pnpm exec vitest run --config config/vitest.config.ts src/cli/handlers/orchestration-lifecycle-rejection.test.ts src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/orchestration/federation/federation.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/orchestration/federation/federation-lifecycle-settlement.test.ts --reporter=dot",
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orchestration/db/federation/federation-acknowledgment-migration.test.ts --reporter=dot",
@@ -10911,7 +10915,6 @@
"src/cli/handlers/orchestration.test.ts",
"src/cli/handlers/orchestration-lifecycle-rejection.test.ts",
"src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts",
- "src/cli/handlers/orchestration-migration.test.ts",
"src/cli/handlers/orchestration-check-identity.test.ts",
"src/cli/handlers/orchestration-worker-cli.test.ts",
"src/main/runtime/rpc/methods/orchestration/worker/composed-workers.test.ts",
@@ -10946,12 +10949,6 @@
"file": "src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts",
"assertions": ["a rejected lifecycle verdict is emitted as a JSON ok=false envelope"]
},
- {
- "file": "src/cli/handlers/orchestration-migration.test.ts",
- "assertions": [
- "first and replayed legacy worker_done settlements are accepted from their authoritative runtime verdict"
- ]
- },
{
"file": "src/cli/handlers/orchestration-check-identity.test.ts",
"assertions": [
@@ -11034,15 +11031,6 @@
"result": "passed",
"durationSeconds": 20,
"summary": "The combined candidate passed one real Electron and compiled-CLI journey: wrong worker identity exited nonzero with ok=false while Dispatch stayed dispatched, the exact worker received an explicit completed verdict, and runtime state independently reached completed."
- },
- {
- "date": "2026-08-11",
- "runner": "local",
- "platform": "macos",
- "command": "pnpm exec vitest run --config config/vitest.config.ts src/cli/handlers/orchestration-lifecycle-rejection.test.ts src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts src/cli/handlers/orchestration-migration.test.ts",
- "result": "passed",
- "durationSeconds": 0.4,
- "summary": "Three focused files passed 12 deterministic tests covering explicit current and Run-home verdicts, JSON failure output, exact report and terminal-state verification for stripped responses, stale/stopped rejection, idempotent retry, and first/replayed attested legacy settlements."
}
],
"runtimeBudget": {
@@ -11068,6 +11056,8 @@
"Attach saved intentional-break artifacts for hidden local presentation and dropped stable-pane delivery."
],
"knownGaps": [
+ "Audit2923 accepts loss of the first/replayed attested legacy worker_done CLI acceptance alarms, including exact send parameters, sender pane proof, lifecycle-wait flag and minted mutation identity. The removed fixture supplied settled runtime verdicts; it did not execute settlement authority, durable replay or outage recovery. Reduced selectors have no new execution, fault-control or equivalent replacement credit.",
+ "Audit2923 retires this entire mixed three-file receipt from current evidenceRuns because its selector included the removed migration suite. Preserved verbatim original JSON object (historical only; no reduced-selector validation):\n{\n \"date\": \"2026-08-11\",\n \"runner\": \"local\",\n \"platform\": \"macos\",\n \"command\": \"pnpm exec vitest run --config config/vitest.config.ts src/cli/handlers/orchestration-lifecycle-rejection.test.ts src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts src/cli/handlers/orchestration-migration.test.ts\",\n \"result\": \"passed\",\n \"durationSeconds\": 0.4,\n \"summary\": \"Three focused files passed 12 deterministic tests covering explicit current and Run-home verdicts, JSON failure output, exact report and terminal-state verification for stripped responses, stale/stopped rejection, idempotent retry, and first/replayed attested legacy settlements.\"\n }",
"Audit2086 (sources2082/2083): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-06.spec.ts: suppresses saved mobile agent status when live evidence is the Claude agents screen; suppresses saved mobile agent status when the current terminal title is neutral; suppresses saved mobile agent status when fresh live OSC title is Claude agents; keeps saved PTY bindings pending until the runtime knows the PTY is connected; refreshes daemon PTY liveness before publishing mobile session tabs; does not invalidate a newly spawned SSH pane from an overlapping stale process list. src/main/runtime/orca-runtime-tests/pty-title-status.spec.ts: associates controller PTYs with mixed-case Windows and UNC cwd paths; uses OSC titles rather than controller process names for rendererless PTYs; ignores the bare cursor-agent native title so synthesized spinner state survives; only records the bare Cursor native title via the stale-working clear; refuses a bare Cursor title while the foreground read is unavailable; does not treat a bare Cursor title as an agent once the shell owns the foreground; accepts a bare Cursor title when the foreground read confirms cursor-agent; refuses a bare Cursor title on a runtime pty with no controller attached; clears a stale working title after 3s of title-less output; cancels the stale-title timer when the PTY exits; keeps stale-title timers isolated per PTY. src/main/runtime/orca-runtime-tests/paired-settings.spec.ts: projects runtime-backed settings to paired clients; updates quick commands without widening general paired settings payloads; applies native-chat option deltas atomically on the runtime host; keeps a future-launch default when an older client asks to prune from inventory; preserves concurrent additions after forty quick commands; accepts runtime-backed setting updates from paired clients; broadcasts visibility default changes to paired clients; reconciles hooks only when paired-client hook settings change; rejects relative paths for runtime nested repo scan/import. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence.",
"Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence.",
"Audit2070 (sources2068/2069): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/hooks-and-hosted-review.spec'). src/main/runtime/orca-runtime-tests/worktree-removal-archive-hook-gate.spec.ts: removes and records the waiver when the failure is explicitly overridden; removes without an override record when the hook succeeds; removes when the hook is configured but not requested; removes when no archive hook is configured; holds a desktop removal in the same repo until this one is accepted; joins a desktop removal of the same worktree accepted while this one waited. src/main/runtime/orca-runtime-tests/worktree-ps-agent-row-dismissal.spec.ts: drops the row as soon as the user dismisses it, without waiting for the PTY to exit; tells paired clients to republish on the transition and on the dismissal; rejoins a row through its %s handle after pane ownership clears. src/main/runtime/orca-runtime-tests/hooks-and-hosted-review.spec.ts: reports an error when the SSH filesystem provider is unavailable; reports an SSH orca.yaml as an error without reading any filesystem; reports ok for a local repo hook check; reads SSH issue commands as absent and drops writes without touching any filesystem; allows host integration slug helpers for SSH repos through provider-aware GitHub clients; routes runtime GitHub repo identity helpers through the selected WSL project runtime; routes runtime GitHub issue and work-item actions through the selected WSL project runtime; pins explicit origin preference on runtime open-by-number work item lookups; forwards check-details cancellation without local Git overrides. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence.",
diff --git a/config/renderer-layout-writer-baseline.txt b/config/renderer-layout-writer-baseline.txt
index 96f667bb196..1c132f4e79c 100644
--- a/config/renderer-layout-writer-baseline.txt
+++ b/config/renderer-layout-writer-baseline.txt
@@ -27,6 +27,7 @@
3 src/renderer/src/lib/workspace/persistence/workspace-session-staged-browser-tabs.ts
1 src/renderer/src/lib/workspace/persistence/workspace-session-unified-tabs.ts
17 src/renderer/src/lib/workspace/persistence/workspace-session.ts
+13 src/renderer/src/runtime/browser/creation/testing/web-runtime-browser-creation-placement-test-rig.ts
3 src/renderer/src/runtime/hosted-terminals/recovery/adoption/web-session-terminal-recovery-snapshot-validation.ts
1 src/renderer/src/runtime/hosted-terminals/recovery/surfaces/web-session-terminal-orphan-recovery-surface.ts
2 src/renderer/src/runtime/hosted-terminals/recovery/surfaces/web-session-terminal-orphan-topology.ts
@@ -35,15 +36,14 @@
10 src/renderer/src/runtime/sync-runtime-graph/mobile-session-group-projection.ts
2 src/renderer/src/runtime/sync-runtime-graph/mobile-session-snapshots.ts
2 src/renderer/src/runtime/sync-runtime-graph/sync-key.ts
-13 src/renderer/src/runtime/browser/creation/testing/web-runtime-browser-creation-placement-test-rig.ts
-1 src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session-snapshot.ts
-3 src/renderer/src/runtime/web-session-tabs-sync/placement/web-session-client-owned-tab-placement.ts
1 src/renderer/src/runtime/web-session-tabs-sync/agent-status-primitives.ts
8 src/renderer/src/runtime/web-session-tabs-sync/apply-active-state.ts
18 src/renderer/src/runtime/web-session-tabs-sync/apply-final-patch.ts
2 src/renderer/src/runtime/web-session-tabs-sync/apply-preparation-groups.ts
5 src/renderer/src/runtime/web-session-tabs-sync/apply-terminal-records.ts
4 src/renderer/src/runtime/web-session-tabs-sync/apply-worktree-records.ts
+1 src/renderer/src/runtime/web-session-tabs-sync/inventory/web-runtime-session-snapshot.ts
+3 src/renderer/src/runtime/web-session-tabs-sync/placement/web-session-client-owned-tab-placement.ts
2 src/renderer/src/runtime/web-session-tabs-sync/session-tabs-inventory-absence.ts
10 src/renderer/src/store/slices/browser/cleanup/browser-close-actions.ts
2 src/renderer/src/store/slices/browser/create-browser-slice.ts
@@ -57,7 +57,7 @@
9 src/renderer/src/store/slices/editor/checks/check-run-details-actions.ts
6 src/renderer/src/store/slices/editor/closing/close-file-action.ts
10 src/renderer/src/store/slices/editor/closing/recently-closed-editor-tabs.ts
-3 src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-ids.ts
+1 src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-ids.ts
2 src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-selection.ts
1 src/renderer/src/store/slices/editor/file-ids/open-file-path-rekey.ts
2 src/renderer/src/store/slices/editor/file-ids/rekey-open-files-action.ts
@@ -82,7 +82,7 @@
4 src/renderer/src/store/slices/tabs/tab-group-state.ts
9 src/renderer/src/store/slices/tabs/tabs-close-actions.ts
14 src/renderer/src/store/slices/tabs/tabs-create-actions.ts
-23 src/renderer/src/store/slices/tabs/tabs-drag-preview-actions.ts
+22 src/renderer/src/store/slices/tabs/tabs-drag-preview-actions.ts
11 src/renderer/src/store/slices/tabs/tabs-drop-actions.ts
8 src/renderer/src/store/slices/tabs/tabs-empty-workspace.ts
4 src/renderer/src/store/slices/tabs/tabs-focus-actions.ts
@@ -91,11 +91,13 @@
1 src/renderer/src/store/slices/tabs/tabs-hydration.ts
8 src/renderer/src/store/slices/tabs/tabs-label-actions.ts
10 src/renderer/src/store/slices/tabs/tabs-move-actions.ts
-9 src/renderer/src/store/slices/tabs/tabs-reconciliation.ts
+4 src/renderer/src/store/slices/tabs/tabs-reconciliation-batch.ts # split from tabs-reconciliation.ts (9 -> 2 + 4)
+2 src/renderer/src/store/slices/tabs/tabs-reconciliation.ts
4 src/renderer/src/store/slices/tabs/tabs-session-actions.ts
1 src/renderer/src/store/slices/tabs/tabs-split-ratio-actions.ts
5 src/renderer/src/store/slices/tabs/tabs-surface.ts
-24 src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts
+19 src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts
+3 src/renderer/src/store/slices/tabs/worktree-terminal-tab-respawn.ts # moved unchanged out of worktree-layout-lifecycle.ts (24 -> 19 + 3)
5 src/renderer/src/store/slices/worktrees/session/set-active-worktree.ts
2 src/renderer/src/store/slices/worktrees/session/worktree-slice-lookups.ts
6 src/renderer/src/store/terminals/create-terminal-slice.ts
@@ -112,7 +114,7 @@
10 src/renderer/src/store/terminals/terminal-tab-creation.ts
7 src/renderer/src/store/terminals/terminal-tab-navigation.ts
3 src/renderer/src/store/terminals/terminal-tab-presentation.ts
-4 src/renderer/src/store/terminals/terminal-tab-title-batch.ts
+2 src/renderer/src/store/terminals/terminal-tab-title-batch.ts
5 src/renderer/src/store/terminals/workspace-terminal-hydration-patch.ts
2 src/renderer/src/store/terminals/workspace-terminal-hydration.ts
2 src/renderer/src/store/terminals/workspace-terminal-reconnect.ts
diff --git a/config/scripts/ci/sharding/ci-shard-timings.json b/config/scripts/ci/sharding/ci-shard-timings.json
index da79a66c8cf..afd1ef5bf40 100644
--- a/config/scripts/ci/sharding/ci-shard-timings.json
+++ b/config/scripts/ci/sharding/ci-shard-timings.json
@@ -102,9 +102,7 @@
"config/scripts/locale-catalog/locale-repair-catalog-missing-leaves.test.mjs": 159,
"config/scripts/locale-catalog/locale-translation-policy-ko-round5.test.mjs": 154,
"config/scripts/locale-catalog/locale-translation-policy.es-pr.test.mjs": 91,
- "config/scripts/locale-catalog/locale-translation-policy.es-round5.test.mjs": 153,
"config/scripts/locale-catalog/locale-translation-policy.ja-relocalization.test.mjs": 116,
- "config/scripts/locale-catalog/locale-translation-policy.ja-round5.test.mjs": 209,
"config/scripts/locale-catalog/locale-translation-policy.test.mjs": 189,
"config/scripts/localization/source-extraction/localization-extraction-call-syntax.test.mjs": 317,
"config/scripts/localization/extraction-policy/localization-extraction-change-scope.test.mjs": 732,
@@ -313,7 +311,6 @@
"src/cli/automation-owner-conflict-recovery.test.ts": 448,
"src/cli/automation-runs-paging.test.ts": 569,
"src/cli/browser/browser-empty-values.test.ts": 313,
- "src/cli/browser/browser.test.ts": 431,
"src/cli/codex-command-classification.test.ts": 65,
"src/cli/command-suggestion-budget.test.ts": 132,
"src/cli/command-suggestion-destructive-families.test.ts": 226,
@@ -331,7 +328,6 @@
"src/cli/handlers/automation-owner-fencing.test.ts": 529,
"src/cli/handlers/computer-action-validation.test.ts": 317,
"src/cli/handlers/computer-state-formatting.test.ts": 337,
- "src/cli/handlers/connector.test.ts": 781,
"src/cli/handlers/core.test.ts": 194,
"src/cli/handlers/data-account-commands.test.ts": 431,
"src/cli/handlers/emulator.test.ts": 303,
@@ -348,21 +344,13 @@
"src/cli/handlers/orchestration-legacy-read-only.test.ts": 526,
"src/cli/handlers/orchestration-lifecycle-json-rejection.test.ts": 555,
"src/cli/handlers/orchestration-lifecycle-rejection.test.ts": 781,
- "src/cli/handlers/orchestration-migration.test.ts": 536,
- "src/cli/handlers/orchestration-request-show-cli.test.ts": 581,
- "src/cli/handlers/orchestration-send-receipt-warnings.test.ts": 565,
- "src/cli/handlers/orchestration-task-create-cli.test.ts": 652,
"src/cli/handlers/orchestration-task-list-brief.test.ts": 494,
- "src/cli/handlers/orchestration-windows-ask-cli.test.ts": 801,
"src/cli/handlers/orchestration-worker-cli.test.ts": 706,
- "src/cli/handlers/orchestration-worker-show-wait-cli.test.ts": 748,
"src/cli/handlers/orchestration.test.ts": 543,
"src/cli/handlers/orchestration/agent-view.test.ts": 511,
"src/cli/handlers/orchestration/concise-list-row-size.test.ts": 492,
"src/cli/handlers/orchestration/mutation-request.test.ts": 4146,
"src/cli/handlers/orchestration/older-runtime-run-binding.test.ts": 547,
- "src/cli/handlers/orchestration/terminal-identity-codex-filtered.test.ts": 409,
- "src/cli/handlers/orchestration/worker-list-run-scope.test.ts": 495,
"src/cli/handlers/orchestration/worker-output.test.ts": 79,
"src/cli/handlers/orchestration/worker-start-implicit-coordinator.test.ts": 522,
"src/cli/handlers/plugin-dev-watch.test.ts": 942,
@@ -374,13 +362,10 @@
"src/cli/handlers/profile-state-recovery-admission.test.ts": 2149,
"src/cli/handlers/profile-state.test.ts": 1045,
"src/cli/handlers/repo-visibility.test.ts": 419,
- "src/cli/handlers/search.test.ts": 578,
- "src/cli/handlers/serve-restore.test.ts": 120,
"src/cli/handlers/serve-service.test.ts": 200,
"src/cli/handlers/skill-guide-host-gate.test.ts": 596,
"src/cli/handlers/skill-sharing.test.ts": 423,
"src/cli/handlers/speech.test.ts": 454,
- "src/cli/handlers/terminal-daemon.test.ts": 426,
"src/cli/handlers/terminal-set-pane-title.test.ts": 623,
"src/cli/handlers/terminal-split.test.ts": 452,
"src/cli/handlers/terminal-switch-paired-reveal.test.ts": 487,
@@ -394,7 +379,6 @@
"src/cli/index-omitted-host-scope-selectors.test.ts": 6719,
"src/cli/index-orchestration.test.ts": 659,
"src/cli/index-terminal-commands.test.ts": 466,
- "src/cli/index-vm-recipe-doctor.test.ts": 459,
"src/cli/index-workspace-owner-choice-scaling.test.ts": 10154,
"src/cli/index-workspace-owner-choice.test.ts": 1072,
"src/cli/index-worktree-create-agent.test.ts": 582,
@@ -417,7 +401,6 @@
"src/cli/plugin-authoring/plugin-test-node.test.ts": 110,
"src/cli/plugin-authoring/plugin-test-runner.test.ts": 6256,
"src/cli/plugin-authoring/plugin-type-files-symlink.test.ts": 743,
- "src/cli/plugin-authoring/plugin-type-files.test.ts": 372,
"src/cli/plugin-authoring/plugin-worker-panel-template.test.ts": 1469,
"src/cli/plugin-dev-watch/plugin-dev-watch-approval.test.ts": 544,
"src/cli/plugin-dev-watch/plugin-dev-watch-check.test.ts": 427,
@@ -456,7 +439,6 @@
"src/cli/runtime/serve-update-supervisor-gate.test.ts": 73,
"src/cli/runtime/status-caller.test.ts": 488,
"src/cli/runtime/status.test.ts": 1406,
- "src/cli/runtime/terminal-prompt-mutation-recovery-plugin-denied.test.ts": 125,
"src/cli/runtime/transport-framing.test.ts": 194,
"src/cli/runtime/transport.test.ts": 462,
"src/cli/runtime/types.test.ts": 62,
@@ -468,17 +450,14 @@
"src/cli/skills-reference-selector.test.ts": 528,
"src/cli/skills.test.ts": 386,
"src/cli/specs/account.test.ts": 95,
- "src/cli/specs/bundled-guide-flags.test.ts": 246,
"src/cli/specs/cli-command-names-parity.test.ts": 205,
"src/cli/specs/profile-state.test.ts": 102,
"src/cli/terminal-format.test.ts": 84,
- "src/cli/terminal-list-host-scope-format.test.ts": 127,
"src/cli/terminal-read-screen.test.ts": 660,
"src/cli/worktree-ps-program-status.test.ts": 65,
"src/cli/worktree-ps-terminal-verdict.test.ts": 60,
"src/cli/worktree-selector-caller-host.test.ts": 107,
"src/cli/worktree-selector-wsl-posix-path.test.ts": 134,
- "src/cli/wsl-distro-cli-refusal.test.ts": 74,
"src/main/acp/process/acp-agent-connection.test.ts": 407,
"src/main/acp/discovery/acp-at-rest-commands.test.ts": 1400,
"src/main/acp/transport/acp-json-rpc-peer.test.ts": 195,
@@ -551,55 +530,39 @@
"src/main/agent-hooks/installation/configuration/managed-toml-ownership.test.ts": 52,
"src/main/agent-hooks/installation/scripts/posix-hook-json-stdin-reader.test.ts": 3479,
"src/main/agent-hooks/server/testing/presence/server-agent-presence.test.ts": 1257,
- "src/main/agent-hooks/server/testing/tool-events/server-agent-tool-plugin-hooks.test.ts": 717,
"src/main/agent-hooks/server/testing/identity/server-ai-vault-liveness.test.ts": 643,
- "src/main/agent-hooks/server/testing/providers/amp/server-amp-normalization.test.ts": 607,
"src/main/agent-hooks/server/testing/providers/antigravity/server-antigravity-resume-identity.test.ts": 820,
- "src/main/agent-hooks/server/testing/providers/claude/server-claude-blocked-prompt.test.ts": 681,
"src/main/agent-hooks/server/testing/permissions/server-claude-child-permission-lifecycle.test.ts": 681,
- "src/main/agent-hooks/server/testing/providers/claude/server-claude-config-dir-observation.test.ts": 696,
"src/main/agent-hooks/server/testing/interruptions/server-claude-helper-kill.test.ts": 10279,
"src/main/agent-hooks/server/testing/interruptions/server-claude-helper-recovery.test.ts": 34523,
- "src/main/agent-hooks/server/testing/providers/claude/server-claude-normalization.test.ts": 683,
"src/main/agent-hooks/server/testing/task-wakeup/server-claude-owed-notification-expiry.test.ts": 877,
- "src/main/agent-hooks/server/testing/permissions/server-claude-permission-tool-failure.test.ts": 674,
- "src/main/agent-hooks/server/testing/permissions/server-claude-permission-visibility.test.ts": 765,
"src/main/agent-hooks/server/testing/identity/server-claude-session-continuation.test.ts": 675,
"src/main/agent-hooks/server/testing/http/server-claude-statusline.test.ts": 679,
"src/main/agent-hooks/server/testing/task-wakeup/server-claude-task-wakeup-lifecycle.test.ts": 5451,
"src/main/agent-hooks/server/testing/interruptions/server-claude-terminal-interrupt.test.ts": 802,
"src/main/agent-hooks/server/testing/authority/server-closed-tab-suppression.test.ts": 895,
- "src/main/agent-hooks/server/testing/providers/codex/server-codex-capacity.test.ts": 671,
"src/main/agent-hooks/server/testing/providers/codex/server-codex-interrupt-hook.test.ts": 679,
"src/main/agent-hooks/server/testing/normalization/server-provider-normalization.test.ts": 741,
"src/main/agent-hooks/server/testing/providers/codex/server-codex-review-turn-end.test.ts": 860,
"src/main/agent-hooks/server/testing/providers/codex/server-codex-side-thread.test.ts": 847,
"src/main/agent-hooks/server/testing/providers/codex/server-codex-subagent-transcript.test.ts": 706,
- "src/main/agent-hooks/server/testing/providers/codex/server-codex-turn-interruption.test.ts": 716,
"src/main/agent-hooks/server/testing/transcripts/server-transcript-result-retry.test.ts": 1125,
"src/main/agent-hooks/server/testing/identity/server-copilot-resume-identity.test.ts": 729,
- "src/main/agent-hooks/server/testing/providers/cursor/server-cursor-normalization.test.ts": 645,
"src/main/agent-hooks/server/testing/http/server-endpoint-file-lifecycle.test.ts": 801,
"src/main/agent-hooks/server/testing/providers/grok/server-grok-background-status.test.ts": 723,
- "src/main/agent-hooks/server/testing/providers/grok/server-grok-cancel.test.ts": 692,
"src/main/agent-hooks/server/testing/providers/grok/server-grok-discovery.test.ts": 723,
"src/main/agent-hooks/server/testing/identity/server-hermes-resume-identity.test.ts": 941,
"src/main/agent-hooks/server/testing/http/server-hook-http-ingest.test.ts": 719,
"src/main/agent-hooks/server/testing/identity/server-hook-session-binding.test.ts": 2674,
"src/main/agent-hooks/server/testing/presence/server-http-owner-probe-lifecycle.test.ts": 1088,
"src/main/agent-hooks/server/testing/presence/server-idle-process-owner.test.ts": 1014,
- "src/main/agent-hooks/server/testing/remote-ingress/server-ingest-remote-codex-question.test.ts": 656,
"src/main/agent-hooks/server/testing/remote-ingress/server-ingest-remote-codex-transcript.test.ts": 647,
- "src/main/agent-hooks/server/testing/remote-ingress/server-ingest-remote.test.ts": 653,
"src/main/agent-hooks/server/testing/structured-ingress/server-ingest-structured-state-clock.test.ts": 723,
"src/main/agent-hooks/server/testing/structured-ingress/server-ingest-structured-status.test.ts": 697,
"src/main/agent-hooks/server/testing/terminal-ingress/server-ingest-terminal-status.test.ts": 673,
"src/main/agent-hooks/server/testing/interruptions/server-interrupt-inference-guards.test.ts": 685,
"src/main/agent-hooks/server/testing/interruptions/server-interrupt-inference-resurrection.test.ts": 759,
"src/main/agent-hooks/server/testing/persistence/server-last-status-child-held-main-agent.test.ts": 937,
- "src/main/agent-hooks/server/testing/persistence/server-last-status-hydrate-confirmation.test.ts": 713,
- "src/main/agent-hooks/server/testing/persistence/server-last-status-hydrate-validation.test.ts": 737,
- "src/main/agent-hooks/server/testing/persistence/server-last-status-lead-boundary.test.ts": 768,
"src/main/agent-hooks/server/testing/persistence/server-last-status-main-agent-fact.test.ts": 813,
"src/main/agent-hooks/server/testing/persistence/server-last-status-restored-children.test.ts": 818,
"src/main/agent-hooks/server/testing/persistence/server-last-status-write.test.ts": 745,
@@ -607,13 +570,10 @@
"src/main/agent-hooks/server/testing/main-agent/server-main-agent-turn-verdicts.test.ts": 1716,
"src/main/agent-hooks/server/testing/providers/muse/server-muse-session-log-poll.test.ts": 2772,
"src/main/agent-hooks/server/testing/identity/server-nested-agent-boundaries.test.ts": 657,
- "src/main/agent-hooks/server/testing/identity/server-nested-agent-consumers.test.ts": 660,
"src/main/agent-hooks/server/testing/identity/server-nested-agent-model.test.ts": 665,
"src/main/agent-hooks/server/testing/identity/server-nested-same-provider-owner.test.ts": 708,
- "src/main/agent-hooks/server/testing/persistence/server-observation-provenance.test.ts": 672,
"src/main/agent-hooks/server/testing/authority/server-omp-retired-ingress.test.ts": 641,
"src/main/agent-hooks/server/testing/authority/server-omp-retirement-ack.test.ts": 676,
- "src/main/agent-hooks/server/testing/providers/opencode/server-opencode-tui-identity.test.ts": 843,
"src/main/agent-hooks/server/testing/identity/server-opencode-writer-observation.test.ts": 681,
"src/main/agent-hooks/server/testing/authority/server-pane-authority.test.ts": 762,
"src/main/agent-hooks/server/testing/terminal-ingress/server-process-lifetime-status.test.ts": 852,
@@ -624,7 +584,6 @@
"src/main/agent-hooks/server/testing/authority/server-removed-worktree-foreign-authority.test.ts": 764,
"src/main/agent-hooks/server/testing/authority/server-removed-worktree-status.test.ts": 687,
"src/main/agent-hooks/server/testing/replay/server-replay-evidence-clock.test.ts": 643,
- "src/main/agent-hooks/server/testing/persistence/server-restored-agent-status.test.ts": 694,
"src/main/agent-hooks/server/testing/authority/server-retired-pane-new-turn.test.ts": 666,
"src/main/agent-hooks/server/testing/http/server-startup-lifecycle.test.ts": 718,
"src/main/agent-hooks/server/testing/http/server-startup-prompt-control.test.ts": 697,
@@ -637,7 +596,6 @@
"src/main/agent-hooks/server/testing/http/server-transport-interference.test.ts": 1814,
"src/main/agent-hooks/server/testing/main-agent/server-turn-ended-at.test.ts": 990,
"src/main/agent-hooks/server/testing/main-agent/server-turn-started-at.test.ts": 898,
- "src/main/agent-hooks/server/program-status/hook-precedence.test.ts": 45,
"src/main/agent-hooks/server/testing/replay/spool.test.ts": 999,
"src/main/agent-hooks/server/testing/identity/terminal-handle-row-identity.test.ts": 669,
"src/main/agent-hooks/installation/commands/windows-batch-hook-launcher.test.ts": 108,
@@ -645,15 +603,12 @@
"src/main/agent-hooks/installation/commands/windows-hook-payload-delivery.test.ts": 345,
"src/main/agent-hooks/installation/commands/windows-native-hook-exe-hosts.test.ts": 262,
"src/main/agent-hooks/installation/commands/windows-powershell-hook-launcher.test.ts": 44,
- "src/main/agent-hooks/wsl-relay/wsl-guest-plugin-install.test.ts": 64,
"src/main/agent-hooks/wsl-relay/wsl-hook-relay-idle-stop.test.ts": 1235,
"src/main/agent-hooks/wsl-relay/testing/wsl-hook-relay-live.integration.test.ts": 2231,
"src/main/agent-hooks/wsl-relay/wsl-hook-relay-manager.test.ts": 3176,
"src/main/agent-hooks/wsl-relay/wsl-hook-relay-reattach.test.ts": 1280,
- "src/main/agent-hooks/wsl-relay/wsl-hook-relay-recovery.test.ts": 1529,
"src/main/agent-hooks/wsl-relay/wsl-hook-relay-sentinel.test.ts": 62,
"src/main/agent-hooks/wsl-relay/wsl-opencode-settings-lifetime.test.ts": 1951,
- "src/main/agent-hooks/wsl-relay/wsl-opencode-settings.test.ts": 1364,
"src/main/agent-launch/agent-launch-account-env.test.ts": 958,
"src/main/agent-launch/agent-launch-executor-cancel.test.ts": 1455,
"src/main/agent-launch/agent-launch-mode-settings.test.ts": 4041,
@@ -941,8 +896,6 @@
"src/main/browser/cookies/browser-google-cookie-clear-target.test.ts": 6235,
"src/main/browser/element-grab/browser-grab-payload.test.ts": 55,
"src/main/browser/guest-lifecycle/devtools/browser-guest-devtools-dock.test.ts": 57,
- "src/main/browser/guest-lifecycle/input/shortcuts/browser-guest-shortcut-plugin-frame.test.ts": 280,
- "src/main/browser/guest-lifecycle/input/shortcuts/browser-guest-shortcut-precedence.test.ts": 411,
"src/main/browser/guest-lifecycle/input/browser-guest-target-url.test.ts": 50,
"src/main/browser/guest-lifecycle/input/browser-guest-wheel-zoom-scroll.test.ts": 45,
"src/main/browser/client-hosts/leases/browser-host-client-identity.test.ts": 97,
@@ -950,24 +903,18 @@
"src/main/browser/identity/mode/browser-identity-mode-store.test.ts": 95,
"src/main/browser/guest-lifecycle/prompts/browser-javascript-dialogs.test.ts": 54,
"src/main/browser/guest-lifecycle/manager/viewport/browser-manager-annotation-bridge.test.ts": 603,
- "src/main/browser/guest-lifecycle/manager/navigation/browser-manager-auth-user-agent.test.ts": 555,
"src/main/browser/guest-lifecycle/manager/downloads/browser-manager-client-hosted-downloads.test.ts": 670,
- "src/main/browser/guest-lifecycle/manager/downloads/browser-manager-destroyed-guest-downloads.test.ts": 589,
"src/main/browser/guest-lifecycle/manager/registration/browser-manager-destroyed-guest.test.ts": 633,
"src/main/browser/guest-lifecycle/manager/devtools/browser-manager-devtools-retirement.test.ts": 551,
"src/main/browser/guest-lifecycle/manager/downloads/browser-manager-downloads.test.ts": 592,
- "src/main/browser/guest-lifecycle/manager/grab/browser-manager-grab-capture.test.ts": 516,
"src/main/browser/guest-lifecycle/manager/grab/browser-manager-grab-mode.test.ts": 567,
"src/main/browser/guest-lifecycle/manager/grab/browser-manager-grab-selection.test.ts": 584,
- "src/main/browser/guest-lifecycle/manager/registration/browser-manager-guest-unload.test.ts": 534,
"src/main/browser/guest-lifecycle/manager/browser-manager-guest-visibility.test.ts": 543,
"src/main/browser/guest-lifecycle/manager/navigation/browser-manager-load-failure-replay.test.ts": 549,
"src/main/browser/guest-lifecycle/manager/registration/browser-manager-page-prompt-routing.test.ts": 560,
"src/main/browser/guest-lifecycle/manager/popups/browser-manager-popup-child.test.ts": 503,
"src/main/browser/guest-lifecycle/manager/popups/browser-manager-popup-routing.test.ts": 575,
"src/main/browser/guest-lifecycle/manager/viewport/browser-manager-tab-identity.test.ts": 619,
- "src/main/browser/guest-lifecycle/manager/viewport/browser-manager-viewport-override.test.ts": 597,
- "src/main/browser/guest-lifecycle/manager/viewport/browser-manager-viewport-ownership.test.ts": 550,
"src/main/browser/network/execution-routes/browser-network-deferred-socket.test.ts": 101,
"src/main/browser/network/execution-routes/browser-network-execution-route.test.ts": 272,
"src/main/browser/network/tunnels/browser-network-tunnel-client.test.ts": 127,
@@ -1007,8 +954,6 @@
"src/main/browser/sessions/partition-policies/browser-session-partition-policies.test.ts": 979,
"src/main/browser/sessions/partition-policies/browser-session-partition-proxy-install.test.ts": 477,
"src/main/browser/sessions/proxy/browser-session-proxy.test.ts": 857,
- "src/main/browser/sessions/profiles/browser-session-registry-identity.persistence.test.ts": 603,
- "src/main/browser/sessions/profiles/browser-session-registry-startup-metadata.test.ts": 478,
"src/main/browser/sessions/profiles/browser-session-registry.test.ts": 883,
"src/main/browser/identity/wire-probes/browser-session-ua-wire-identity-cross-context.electron.test.ts": 7167,
"src/main/browser/identity/wire-probes/browser-session-ua-wire-identity.electron.test.ts": 8280,
@@ -1336,7 +1281,7 @@
"src/main/codex-accounts/codex-login-session-wsl-open.test.ts": 184,
"src/main/codex-accounts/codex-managed-home-path-wsl-check.test.ts": 71,
"src/main/codex-accounts/codex-reset-credit-ledger.test.ts": 283,
- "src/main/codex-accounts/fs-utils.test.ts": 127,
+ "src/main/filesystem/atomic-file-publication.test.ts": 127,
"src/main/codex-accounts/guest-codex-account-homes.test.ts": 86,
"src/main/codex-accounts/host-codex-managed-home-ownership.test.ts": 51,
"src/main/codex-accounts/legacy-shared-auth-migration.test.ts": 134,
@@ -4173,7 +4118,6 @@
"src/main/ssh/connection/ssh-connection-reconnect-ladder.test.ts": 570,
"src/main/ssh/connection/ssh-connection-sftp-namespace.test.ts": 1290,
"src/main/ssh/connection/ssh-connection-sftp-wire.test.ts": 481,
- "src/main/ssh/targets/ssh-connection-store-orcad-ownership.test.ts": 324,
"src/main/ssh/targets/ssh-connection-store-route-dedupe.test.ts": 350,
"src/main/ssh/targets/ssh-connection-store.test.ts": 377,
"src/main/ssh/connection/ssh-connection-system-transport.test.ts": 458,
@@ -4191,7 +4135,6 @@
"src/main/ssh/legacy-relay/bridge/legacy-relay-client.test.ts": 109,
"src/main/ssh/legacy-relay/bridge/legacy-relay-hidden-output.test.ts": 179,
"src/main/ssh/legacy-relay/bridge/legacy-relay-target-bridge.test.ts": 167,
- "src/main/ssh/migration-source/orcad-migration-bridged-panes.test.ts": 322,
"src/main/ssh/legacy-relay/endpoints/ssh-host-relay-census-for-target.test.ts": 53,
"src/main/ssh/legacy-relay/endpoints/ssh-host-relay-windows-census.test.ts": 232,
"src/main/ssh/legacy-relay/endpoints/ssh-host-relay-windows-inventory.test.ts": 178,
@@ -4221,7 +4164,6 @@
"src/main/managed-server/migration/transfers/orcad-migration-snapshot-coordinator.test.ts": 309,
"src/main/ssh/migration-source/orcad-migration-source-fence.test.ts": 2000,
"src/main/persistence/migrating-orcad-catalog/orcad-migration-source-retention.test.ts": 2297,
- "src/main/ssh/migration-source/orcad-migration-ssh-relay-source.test.ts": 1903,
"src/main/managed-server/migration/cutover/orcad-migration-stuck-host-profiles.test.ts": 2402,
"src/main/ssh/migration-source/orcad-migration-terminal-gate.test.ts": 63,
"src/main/managed-server/install/orcad-remote-deploy.test.ts": 537,
@@ -4705,7 +4647,6 @@
"src/renderer/src/components/NativeChatResumeOnRestartGroups.test.tsx": 3472,
"src/renderer/src/components/NewWorkspaceComposerCard.quick-file-drop.test.tsx": 4557,
"src/renderer/src/components/NewWorkspaceComposerCard.set-location.test.tsx": 1301,
- "src/renderer/src/components/NotificationCardStack.test.tsx": 272,
"src/renderer/src/components/QuickOpen.selection.test.tsx": 1046,
"src/renderer/src/components/SelectedTextCopyMenu.test.tsx": 329,
"src/renderer/src/components/TerminalSearch.test.tsx": 458,
@@ -4723,15 +4664,12 @@
"src/renderer/src/components/activity/activity-scope-filter.test.ts": 734,
"src/renderer/src/components/activity/activity-search-query.test.tsx": 2286,
"src/renderer/src/components/activity/activity-terminal-portal-publication-loop.react185.test.tsx": 222,
- "src/renderer/src/components/activity/activity-thread-grouping.status-order.test.ts": 759,
- "src/renderer/src/components/activity/activity-thread-list-pane-collapsible.test.tsx": 3688,
"src/renderer/src/components/activity/activity-thread-list-pane.multi-select.test.tsx": 4699,
"src/renderer/src/components/activity/activity-thread-list-pane.virtualization.test.tsx": 4863,
"src/renderer/src/components/activity/useActivityUnreadCount.freshness.test.tsx": 1990,
"src/renderer/src/components/activity/useActivityUnreadCount.test.ts": 1633,
"src/renderer/src/components/agent-session-continuation/agent-session-continuation-selection.test.ts": 56,
"src/renderer/src/components/agent-tab-shortcut-launch.test.ts": 369,
- "src/renderer/src/components/agent/AgentLaunchPickerMenu.language.test.tsx": 2115,
"src/renderer/src/components/agent/AgentLaunchPickerMenu.search.test.tsx": 2090,
"src/renderer/src/components/artifacts/ArtifactCollection.test.tsx": 1833,
"src/renderer/src/components/artifacts/ArtifactPreview.test.tsx": 474,
@@ -4743,14 +4681,12 @@
"src/renderer/src/components/automations/AutomationRunsTable.test.tsx": 668,
"src/renderer/src/components/automations/AutomationSchedulePicker.test.ts": 431,
"src/renderer/src/components/automations/AutomationTimeField.test.tsx": 654,
- "src/renderer/src/components/automations/AutomationsListPanel.test.tsx": 2441,
"src/renderer/src/components/automations/AutomationsPage.behavior.test.tsx": 3389,
"src/renderer/src/components/automations/AutomationsPage.edit-destination.test.tsx": 2932,
"src/renderer/src/components/automations/AutomationsPage.run-navigation.test.tsx": 3056,
"src/renderer/src/components/automations/ExternalAutomationManagers.test.tsx": 852,
"src/renderer/src/components/automations/automation-captured-owner.test.ts": 379,
"src/renderer/src/components/automations/automation-create-projects.test.ts": 42,
- "src/renderer/src/components/automations/automation-detail-tab-navigation.test.ts": 201,
"src/renderer/src/components/automations/automation-host-cache-controller.test.ts": 411,
"src/renderer/src/components/automations/automation-host-cache-error.test.ts": 391,
"src/renderer/src/components/automations/automation-host-cache-health.test.ts": 52,
@@ -4766,14 +4702,11 @@
"src/renderer/src/components/automations/automation-host-recovery.test.ts": 51,
"src/renderer/src/components/automations/automation-host-scale-gates.test.ts": 638,
"src/renderer/src/components/automations/automation-host-scheduler.test.ts": 439,
- "src/renderer/src/components/automations/automation-host-status-descriptors.test.ts": 231,
"src/renderer/src/components/automations/automation-legacy-schedule-editing.test.ts": 449,
"src/renderer/src/components/automations/automation-list-focus-recovery.test.ts": 48,
- "src/renderer/src/components/automations/automation-list-keyboard-navigation.test.ts": 61,
"src/renderer/src/components/automations/automation-list-row-identity.test.ts": 626,
"src/renderer/src/components/automations/automation-list-search.test.ts": 75,
"src/renderer/src/components/automations/automation-list-view.test.ts": 257,
- "src/renderer/src/components/automations/automation-project-groups.test.ts": 54,
"src/renderer/src/components/automations/automation-run-context.test.ts": 58,
"src/renderer/src/components/automations/automation-run-history-keyboard-navigation.test.ts": 434,
"src/renderer/src/components/automations/automation-run-open-target.test.ts": 442,
@@ -4797,7 +4730,6 @@
"src/renderer/src/components/browser-pane/ClientHostedBrowserPagePane.failure-remount.test.tsx": 3085,
"src/renderer/src/components/browser-pane/ClientHostedBrowserPagePane.markup.test.tsx": 4575,
"src/renderer/src/components/browser-pane/ClientHostedBrowserPagePane.test.tsx": 6541,
- "src/renderer/src/components/browser-pane/ReopenBrowserPageOnServerButton.test.tsx": 497,
"src/renderer/src/components/browser-pane/annotate/MarkupOverlay.test.tsx": 1124,
"src/renderer/src/components/browser-pane/annotate/browser-annotation-output.test.ts": 74,
"src/renderer/src/components/browser-pane/annotate/browser-grab-toast-owner-cleanup.test.tsx": 1007,
@@ -4815,7 +4747,6 @@
"src/renderer/src/components/browser-pane/assemble-chrome/browser-workspace-pane.retention-props.test.tsx": 3808,
"src/renderer/src/components/browser-pane/assemble-chrome/use-browser-chrome-tool-fold.test.tsx": 307,
"src/renderer/src/components/browser-pane/assemble-chrome/use-browser-page-find-shortcuts.test.tsx": 1874,
- "src/renderer/src/components/browser-pane/browser-client-hosted-download-notices.test.tsx": 1020,
"src/renderer/src/components/browser-pane/browser-client-page-attachment-scan-budget.test.ts": 464,
"src/renderer/src/components/browser-pane/browser-client-page-metadata-publisher.test.ts": 315,
"src/renderer/src/components/browser-pane/browser-client-page-profile-staging.test.ts": 434,
@@ -4831,9 +4762,7 @@
"src/renderer/src/components/browser-pane/history/use-browser-history-shortcut.test.tsx": 1990,
"src/renderer/src/components/browser-pane/host-guest/agent-input-focus-guard.test.ts": 228,
"src/renderer/src/components/browser-pane/host-guest/browser-automation-visibility.test.ts": 45,
- "src/renderer/src/components/browser-pane/host-guest/browser-focus.test.ts": 180,
"src/renderer/src/components/browser-pane/host-guest/browser-guest-eviction-veto.test.ts": 1724,
- "src/renderer/src/components/browser-pane/host-guest/browser-guest-paint-policy.test.ts": 2035,
"src/renderer/src/components/browser-pane/host-guest/browser-page-evicted-guest-recovery.test.ts": 1839,
"src/renderer/src/components/browser-pane/host-guest/browser-page-guest-recovery.test.ts": 515,
"src/renderer/src/components/browser-pane/host-guest/browser-page-registration-ownership.test.ts": 2197,
@@ -5001,13 +4930,10 @@
"src/renderer/src/components/editor/save/queue/editor-save-lossless-baseline.test.ts": 1990,
"src/renderer/src/components/editor/save/transforms/editor-save-plugin-hook.test.ts": 2122,
"src/renderer/src/components/editor/save/queue/editor-save-queue-bytes-owner.test.ts": 1667,
- "src/renderer/src/components/editor/save/queue/editor-save-queue-closed-view-records.test.ts": 2137,
"src/renderer/src/components/editor/save/queue/editor-save-queue-closed-view.test.ts": 2075,
- "src/renderer/src/components/editor/save/queue/editor-save-queue-records.test.ts": 2036,
"src/renderer/src/components/editor/save/queue/editor-save-queue-shared-records.test.ts": 2043,
"src/renderer/src/components/editor/save/queue/editor-save-queue.test.ts": 1814,
"src/renderer/src/components/editor/save/queue/editor-save-shared-model-dirty.test.ts": 1250,
- "src/renderer/src/components/editor/save/queue/editor-save-shared-model.test.ts": 1239,
"src/renderer/src/components/editor/model-lifetime/buffer-text/editor-shared-record-clean-view.test.ts": 1998,
"src/renderer/src/components/editor/save/commands/editor-untitled-save-lifecycle.test.ts": 1485,
"src/renderer/src/components/editor/image-png-export.chromium.test.ts": 212,
@@ -5591,7 +5517,6 @@
"src/renderer/src/components/settings/chat/ChatSettingsSection.test.tsx": 2718,
"src/renderer/src/lib/skill-runtime-command.test.ts": 1670,
"src/renderer/src/components/settings/virtual-machines/recipes/EphemeralVmsPane.test.tsx": 1025,
- "src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.test.tsx": 623,
"src/renderer/src/components/settings/accounts/sign-in/HostAccountSignInPrompt.test.tsx": 309,
"src/renderer/src/components/settings/agents/launch/HostAgentLaunchSettings.test.tsx": 7498,
"src/renderer/src/components/settings/developer-permissions/LocalNetworkConnectionTest.test.tsx": 592,
@@ -5612,7 +5537,6 @@
"src/renderer/src/components/settings/ssh/SshPane.test.tsx": 1699,
"src/renderer/src/components/settings/ssh/targets/SshTargetForm.test.tsx": 1014,
"src/renderer/src/components/settings/ssh/targets/SshTargetList.test.tsx": 2093,
- "src/renderer/src/components/settings/tasks/TaskSourceProviderCard.test.tsx": 467,
"src/renderer/src/components/settings/tasks/TaskSourceSimpleSetup.test.tsx": 527,
"src/renderer/src/components/settings/TerminalAppearanceSection.ghostty.test.ts": 549,
"src/renderer/src/components/settings/terminal/appearance/TerminalContrastSetting.test.tsx": 798,
@@ -5857,7 +5781,6 @@
"src/renderer/src/components/task-page/gitlab/use-task-page-gitlab-loading.test.tsx": 1504,
"src/renderer/src/components/task-page/jira/Content.board-owner.test.tsx": 2582,
"src/renderer/src/components/task-page/jira/IssueAssigneeField.test.tsx": 1122,
- "src/renderer/src/components/task-page/jira/TaskPageJiraStatusFilters.test.tsx": 923,
"src/renderer/src/components/task-page/jira/task-page-jira-board-detail-integration.test.tsx": 2192,
"src/renderer/src/components/task-page/jira/task-page-jira-board-transitions.test.ts": 69,
"src/renderer/src/components/task-page/jira/task-page-jira-board-view.test.tsx": 2287,
@@ -5927,7 +5850,6 @@
"src/renderer/src/components/terminal-pane/pty-connection/startup/launch-parity-window-tab.test.ts": 17426,
"src/renderer/src/components/terminal-pane/layout-serialization.test.ts": 109,
"src/renderer/src/components/terminal-pane/pty-transport/legacy-relay/legacy-relay-bridge-transport.test.ts": 358,
- "src/renderer/src/components/terminal-pane/session-restore/newer-daemon/newer-daemon-hold-banner.test.tsx": 477,
"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/paired-reconnect-multi-pane-materialization.test.ts": 1040,
"src/renderer/src/components/terminal-pane/pty-connection/agent-identity/foreground-process/pane-delayed-agent-startup.test.ts": 285,
"src/renderer/src/components/terminal-pane/pty-connection/agent-identity/foreground-process/pane-foreground-agent-tracker.test.ts": 486,
@@ -6014,7 +5936,6 @@
"src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-reattach-admission.test.ts": 1636,
"src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-recycled-pty-incarnation.test.ts": 787,
"src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-spawn-errors.test.ts": 1218,
- "src/renderer/src/components/terminal-pane/pty-transport/ipc/pty-transport-user-input.test.ts": 953,
"src/renderer/src/components/terminal-pane/input/focus/regular-terminal-focus-ownership.test.ts": 208,
"src/renderer/src/components/terminal-pane/pty-connection/output-restore/remote-hidden-output-restore-outcomes.test.ts": 2794,
"src/renderer/src/components/terminal-pane/pty-connection/output-restore/remote-hidden-output-restore-unavailable-banner.repro.test.ts": 2355,
@@ -6376,9 +6297,9 @@
"src/renderer/src/i18n/ui-intl-formatters.test.ts": 208,
"src/renderer/src/lib/activate-ai-vault-structured-session-host.test.ts": 589,
"src/renderer/src/lib/activate-ai-vault-structured-session-reveal.test.ts": 2099,
- "src/renderer/src/lib/activate-tab-and-focus-pane.test.ts": 54,
- "src/renderer/src/lib/active-agent-note-send-explicit-target.test.ts": 980,
- "src/renderer/src/lib/active-agent-note-send-focused-session.test.ts": 536,
+ "src/renderer/src/lib/workspace/tabs/activate-tab-and-focus-pane.test.ts": 54,
+ "src/renderer/src/lib/agent-session/messaging/terminal/active-agent-note-send-explicit-target.test.ts": 980,
+ "src/renderer/src/lib/agent-session/messaging/terminal/active-agent-note-send-focused-session.test.ts": 536,
"src/renderer/src/lib/activity-thread-display.test.ts": 134,
"src/renderer/src/lib/agent-account-restart-startup.test.ts": 1780,
"src/renderer/src/lib/agent-session/launch/background/agent-background-session-launch-host.test.ts": 1910,
@@ -6395,10 +6316,10 @@
"src/renderer/src/lib/agent-session/launch/pane/agent-launch-tab-main-written.test.ts": 2084,
"src/renderer/src/lib/agent-session/launch/pane/agent-launch-tab-publication.test.ts": 1855,
"src/renderer/src/lib/agent-session/launch/pane/agent-launch-through-host.test.ts": 1975,
- "src/renderer/src/lib/agent-message-send.test.ts": 182,
- "src/renderer/src/lib/agent-paste-draft-submit-retry.test.ts": 315,
- "src/renderer/src/lib/agent-paste-draft.test.ts": 445,
- "src/renderer/src/lib/agent-resume-launch-target.test.ts": 3911,
+ "src/renderer/src/lib/agent-session/messaging/agent-message-send.test.ts": 182,
+ "src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft-submit-retry.test.ts": 315,
+ "src/renderer/src/lib/agent-session/messaging/paste/agent-paste-draft.test.ts": 445,
+ "src/renderer/src/lib/agent-session/resume/agent-resume-launch-target.test.ts": 3911,
"src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-after-failure.test.ts": 870,
"src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-close-race.test.ts": 983,
"src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-create-message.test.ts": 2521,
@@ -6417,10 +6338,9 @@
"src/renderer/src/lib/agent-session/structured-agent-session-draft-position-lifetime.test.tsx": 3166,
"src/renderer/src/lib/agent-session/structured-agent-session-ordinary-draft.test.tsx": 9907,
"src/renderer/src/lib/agent-session/structured-agent-session-provisional-tab.test.ts": 3672,
- "src/renderer/src/lib/agent-skill-cli-prerequisite.test.ts": 219,
- "src/renderer/src/lib/agent-startup-delayed-delivery-perf.test.ts": 1708,
- "src/renderer/src/lib/agent-status-evidence-clock.test.ts": 88,
- "src/renderer/src/lib/agent-status.test.ts": 172,
+ "src/renderer/src/lib/agent-session/launch/startup/agent-startup-delayed-delivery-perf.test.ts": 1708,
+ "src/shared/agent-status/contracts/agent-status-evidence-clock.test.ts": 88,
+ "src/shared/agent-status/title/agent-title-tracker.test.ts": 172,
"src/renderer/src/lib/agent-session/resume/history/ai-vault-antigravity-reference-host.test.ts": 678,
"src/renderer/src/lib/agent-session/resume/history/ai-vault-resume-command.drop-repin.test.ts": 541,
"src/renderer/src/lib/agent-session/resume/history/ai-vault-resume-command.test.ts": 665,
@@ -6451,7 +6371,6 @@
"src/renderer/src/lib/clipboard-image-copy.test.ts": 243,
"src/renderer/src/lib/cmd-j-host-qualified-candidate-ownership.test.ts": 526,
"src/renderer/src/lib/cmd-j-linear-issue-intent.test.ts": 42,
- "src/renderer/src/lib/code-editor-theme.test.ts": 101,
"src/renderer/src/lib/code-host-error-copy.test.ts": 297,
"src/renderer/src/lib/codex-pane-selection-lane.test.ts": 543,
"src/renderer/src/lib/agent-session/accounts/codex/codex-session-restart-shell-flap.test.ts": 1745,
@@ -6461,24 +6380,22 @@
"src/renderer/src/lib/comment-body-line-count.test.ts": 84,
"src/renderer/src/lib/comment-body-submit-state.test.ts": 55,
"src/renderer/src/lib/composer-submit-cancellation.test.ts": 41,
- "src/renderer/src/lib/connection-context.test.ts": 1817,
+ "src/renderer/src/lib/workspace/ownership/connection-context.test.ts": 1817,
"src/renderer/src/lib/crash-diagnostics.test.ts": 176,
"src/renderer/src/lib/create-untitled-markdown.test.ts": 566,
"src/renderer/src/lib/desktop-created-server-tabs.test.ts": 1933,
- "src/renderer/src/lib/direct-ssh-target-scope.test.ts": 48,
+ "src/renderer/src/lib/workspace/ownership/direct-ssh-target-scope.test.ts": 48,
"src/renderer/src/lib/workspace/creation/work-item/direct-work-item-setup-callers.test.tsx": 2436,
"src/renderer/src/lib/workspace/creation/work-item/direct-work-item-setup.test.ts": 2072,
- "src/renderer/src/lib/doc-preview-grants.test.ts": 2094,
- "src/renderer/src/lib/editor-file-operation-owner.test.ts": 2848,
- "src/renderer/src/lib/workspace/activation/initial-surface/empty-workspace-default-agent-chat.test.ts": 1895,
+ "src/renderer/src/lib/browser/documents/doc-preview-grants.test.ts": 2094,
+ "src/renderer/src/lib/editor/file-operations/editor-file-operation-owner.test.ts": 2848,
"src/renderer/src/lib/emulator-error-copy.test.ts": 415,
"src/renderer/src/lib/ensure-hooks-confirmed.test.ts": 799,
- "src/renderer/src/lib/ensure-simulator-tab-behavior.test.ts": 3601,
- "src/renderer/src/lib/execute-open-editor-path-move.test.ts": 2458,
- "src/renderer/src/lib/execution-host-facts.test.ts": 1796,
+ "src/renderer/src/lib/simulator/tabs/ensure-simulator-tab-behavior.test.ts": 3601,
+ "src/renderer/src/runtime/hosts/platform/execution-host-facts.test.ts": 1796,
"src/renderer/src/lib/feature-education-telemetry.test.ts": 52,
"src/renderer/src/lib/feedback-image-attachments.test.ts": 557,
- "src/renderer/src/lib/file-preview-link-open.test.ts": 2311,
+ "src/renderer/src/lib/browser/documents/file-preview-link-open.test.ts": 2311,
"src/renderer/src/lib/file-search-selection.test.ts": 51,
"src/renderer/src/lib/find-query-bounds.test.ts": 45,
"src/renderer/src/lib/finished-agent-resume-resurrection.test.ts": 1872,
@@ -6517,11 +6434,10 @@
"src/renderer/src/lib/lazy-with-retry.test.ts": 282,
"src/renderer/src/lib/linear-board-drag-payload.test.ts": 58,
"src/renderer/src/lib/work-items/linear/linear-issue-context-snapshot.test.ts": 55,
- "src/renderer/src/lib/work-items/linear/linear-issue-url-lookup.test.ts": 374,
"src/renderer/src/lib/work-items/linear/linear-issue-workspace-attachment.test.ts": 99,
"src/renderer/src/lib/link-source-local-open-owner.test.ts": 433,
"src/renderer/src/lib/linked-work-item-context.test.ts": 64,
- "src/renderer/src/lib/monaco-editor-gutter-disposal.test.ts": 295,
+ "src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts": 295,
"src/renderer/src/lib/monaco-languages/markdown-heading-outline.test.ts": 70,
"src/renderer/src/lib/monaco-languages/monarch-embed-entry-recursion.test.ts": 697,
"src/renderer/src/lib/monaco-languages/plugin-grammar-tokenization.test.ts": 282,
@@ -6540,7 +6456,7 @@
"src/renderer/src/lib/non-secure-context-crypto.repro.test.ts": 1691,
"src/renderer/src/lib/onboarding-folder-cancellation.test.ts": 2486,
"src/renderer/src/lib/open-agent-message-sender.test.ts": 1497,
- "src/renderer/src/lib/open-mobile-emulator-tab.test.ts": 545,
+ "src/renderer/src/lib/simulator/launch/open-mobile-emulator-tab.test.ts": 545,
"src/renderer/src/lib/orca-yaml-trust-prompt-slot-eviction.test.ts": 884,
"src/renderer/src/lib/order-empty-query-worktrees.test.ts": 62,
"src/renderer/src/lib/os-file-drop-cancellation-guard.test.ts": 204,
@@ -6620,7 +6536,7 @@
"src/renderer/src/lib/react-commit-cascade-observer.test.ts": 189,
"src/renderer/src/lib/react-commit-cascade-telemetry.test.ts": 159,
"src/renderer/src/lib/react-error-boundary-reporting.test.ts": 55,
- "src/renderer/src/lib/remap-open-editor-tabs-for-path-change.test.ts": 2178,
+ "src/renderer/src/lib/editor/file-operations/remap-open-editor-tabs-for-path-change.test.ts": 2178,
"src/renderer/src/lib/rename-user-named-tab-access.test.ts": 2804,
"src/renderer/src/lib/renderer-agent-status-observation-ingress.test.ts": 81,
"src/renderer/src/lib/renderer-app-platform.test.ts": 197,
@@ -6651,11 +6567,11 @@
"src/renderer/src/lib/sidebar-ended-creations.test.ts": 1889,
"src/renderer/src/lib/sidebar-pending-layer.test.ts": 338,
"src/renderer/src/lib/sidebar-shadow/workspace-activity-shadow.test.ts": 1728,
- "src/renderer/src/lib/simulator-launch-coordination.test.ts": 43,
- "src/renderer/src/lib/simulator-palette-search.test.ts": 515,
- "src/renderer/src/lib/simulator-pane-shutdown-scheduler.test.ts": 1679,
- "src/renderer/src/lib/simulator-tab-layout-owner.test.ts": 2398,
- "src/renderer/src/lib/simulator-tab-palette-activation.test.ts": 1903,
+ "src/renderer/src/lib/simulator/launch/simulator-launch-coordination.test.ts": 43,
+ "src/renderer/src/lib/simulator/search/simulator-palette-search.test.ts": 515,
+ "src/renderer/src/lib/simulator/tabs/simulator-pane-shutdown-scheduler.test.ts": 1679,
+ "src/renderer/src/lib/simulator/tabs/simulator-tab-layout-owner.test.ts": 2398,
+ "src/renderer/src/lib/simulator/tabs/simulator-tab-palette-activation.test.ts": 1903,
"src/renderer/src/lib/sleeping-agent-session-launch-windows-quoting.test.ts": 547,
"src/renderer/src/lib/source-control/remote/source-control-remote-error.test.ts": 340,
"src/renderer/src/lib/ssh-config-passive-sync.test.ts": 1513,
@@ -6690,7 +6606,7 @@
"src/renderer/src/lib/windows-terminal-capabilities-race.test.ts": 450,
"src/renderer/src/lib/windows-terminal-capabilities.test.ts": 585,
"src/renderer/src/lib/windows-terminal-capability-reprobe.test.ts": 198,
- "src/renderer/src/lib/workspace-activation-path-gate.test.ts": 2107,
+ "src/renderer/src/lib/workspace/activation/workspace-activation-path-gate.test.ts": 2107,
"src/renderer/src/lib/browser/workspace/workspace-browser-tab-open-placement.test.ts": 1996,
"src/renderer/src/lib/workspace-doc-address-input.test.ts": 470,
"src/renderer/src/lib/workspace-file-drag.test.ts": 70,
@@ -6701,7 +6617,7 @@
"src/renderer/src/lib/workspace/persistence/workspace-session-ssh-partition-ownership.test.ts": 309,
"src/renderer/src/lib/workspace/persistence/workspace-session-ssh-partition-round-trip.test.ts": 1775,
"src/renderer/src/lib/workspace/search/tabs/workspace-tab-palette-activation.store.test.ts": 1994,
- "src/renderer/src/lib/workspace-terminal-host-authority.test.ts": 2066,
+ "src/renderer/src/lib/workspace/ownership/workspace-terminal-host-authority.test.ts": 2066,
"src/renderer/src/lib/workspace/activation/worktree-activation-automation-filter.test.ts": 2431,
"src/renderer/src/lib/workspace/activation/worktree-activation-created-agent.test.ts": 2295,
"src/renderer/src/lib/workspace/activation/worktree-activation-emptied-workspace-reseed.test.ts": 3630,
@@ -6709,26 +6625,24 @@
"src/renderer/src/lib/workspace/activation/worktree-activation-structured-chat-surface.test.ts": 2043,
"src/renderer/src/lib/workspace/activation/worktree-activation-web-runtime.test.ts": 2768,
"src/renderer/src/lib/workspace/activation/worktree-agent-activation-seam.test.ts": 3440,
- "src/renderer/src/lib/workspace/activation/worktree-agent-live-surface-adoption-layout-owner.test.ts": 1898,
"src/renderer/src/lib/workspace/creation/worktree-creation-backend-startup-focus.test.ts": 2267,
"src/renderer/src/lib/workspace/creation/worktree-creation-initial-surface.test.ts": 5258,
"src/renderer/src/lib/workspace/creation/worktree-creation-structured-session-lifecycle.test.ts": 2633,
"src/renderer/src/lib/workspace/creation/worktree-creation-structured-session-prompts.test.tsx": 4554,
- "src/renderer/src/lib/worktree-live-terminal-surface-owners.test.ts": 266,
- "src/renderer/src/lib/worktree-operation-route-index.test.ts": 262,
- "src/renderer/src/lib/worktree-operation-route.test.ts": 342,
+ "src/renderer/src/lib/workspace/ownership/worktree-live-terminal-surface-owners.test.ts": 266,
+ "src/renderer/src/lib/workspace/ownership/worktree-operation-route-index.test.ts": 262,
+ "src/renderer/src/lib/workspace/ownership/worktree-operation-route.test.ts": 342,
"src/renderer/src/lib/workspace/search/worktrees/worktree-palette-comment-snippet.test.ts": 53,
"src/renderer/src/lib/workspace/search/worktrees/worktree-palette-titleless-review.test.ts": 198,
- "src/renderer/src/lib/workspace/search/worktrees/worktree-palette-runtime-owner-identity.test.ts": 425,
"src/renderer/src/lib/workspace/search/worktrees/worktree-palette-search.test.ts": 206,
"src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts": 165,
- "src/renderer/src/lib/worktree-reactivation-preserved-pane-replacement.test.ts": 2268,
- "src/renderer/src/lib/worktree-reactivation-tab-forkbomb.test.ts": 4131,
+ "src/renderer/src/lib/workspace/activation/worktree-reactivation-preserved-pane-replacement.test.ts": 2268,
+ "src/renderer/src/lib/workspace/activation/worktree-reactivation-tab-forkbomb.test.ts": 4131,
"src/renderer/src/lib/workspace/ownership/worktree-runtime-owner-index.detected.test.ts": 121,
"src/renderer/src/lib/workspace/ownership/worktree-runtime-owner.test.ts": 380,
"src/renderer/src/lib/worktree-status-spinner-launch-agent.test.ts": 271,
"src/renderer/src/lib/worktree-status.test.ts": 306,
- "src/renderer/src/lib/wsl-move-renderer-store-rewrites.test.ts": 1072,
+ "src/renderer/src/lib/workspace/persistence/wsl-move-renderer-store-rewrites.test.ts": 1072,
"src/renderer/src/runtime/rpc/calls/abortable-runtime-environment-call.test.ts": 189,
"src/renderer/src/runtime/provider-accounts/observations/claude-agent-view-observations.test.ts": 105,
"src/renderer/src/runtime/web-session-tabs-sync/closing/close-mirrored-editor-tab.test.ts": 397,
@@ -6744,7 +6658,6 @@
"src/renderer/src/runtime/native-chat/naming/legacy-chat-rename-migration.test.tsx": 3834,
"src/renderer/src/runtime/local-structured-session-tabs-sync/local-structured-session-tabs-sync.test.ts": 2643,
"src/renderer/src/runtime/web-session-tabs-sync/agent-status/mirrored-agent-status-clock-skew.test.ts": 1839,
- "src/renderer/src/runtime/hosted-terminals/mounted-surfaces/mounted-terminal-tab-registry.test.ts": 634,
"src/renderer/src/runtime/web-session-tabs-sync/agent-status/paired-reconnect-sidebar-agent-count.test.ts": 1905,
"src/renderer/src/runtime/web-session-tabs-sync/closing/paired-terminal-tab-close-environment-removal.test.ts": 1897,
"src/renderer/src/runtime/web-session-tabs-sync/closing/paired-terminal-tab-close-reload.test.ts": 1943,
@@ -6758,8 +6671,6 @@
"src/renderer/src/runtime/hosted-terminals/streams/remote-runtime-terminal-stale-stream-frames.test.ts": 234,
"src/renderer/src/runtime/hosted-terminals/streams/remote-runtime-terminal-stall-recovery.test.ts": 826,
"src/renderer/src/runtime/hosts/updates/remote-server-restart-wait.test.ts": 49,
- "src/renderer/src/runtime/browser/client-hosting/restored-client-hosted-browser-host-attach.test.ts": 43,
- "src/renderer/src/runtime/browser/client-hosting/restored-client-hosted-browser-host-restart-attach.test.ts": 474,
"src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts": 64,
"src/renderer/src/runtime/files/reads/runtime-directory-page-client.test.ts": 268,
"src/renderer/src/runtime/rpc/environment-revisions/runtime-environment-pairing-refresh.test.ts": 109,
@@ -6770,7 +6681,6 @@
"src/renderer/src/runtime/files/reads/runtime-file-range-client.test.ts": 444,
"src/renderer/src/runtime/files/mutations/runtime-file-write-disk-precondition.test.ts": 478,
"src/renderer/src/runtime/source-control/git/runtime-git-client.test.ts": 513,
- "src/renderer/src/runtime/provider-accounts/sign-in/runtime-host-account-sign-in-client.test.ts": 487,
"src/renderer/src/runtime/hosts/connections/runtime-host-contact-regained.test.ts": 413,
"src/renderer/src/runtime/jira/runtime-jira-image-client.test.ts": 214,
"src/renderer/src/runtime/jira/runtime-jira-payload-stream.test.ts": 192,
@@ -6945,7 +6855,6 @@
"src/renderer/src/store/slices/editor/git/editor-remote-branch-actions.test.ts": 935,
"src/renderer/src/store/slices/editor/hydration/editor-session-duplicate-restore.test.ts": 1931,
"src/renderer/src/store/slices/editor/focus/editor-set-active-file-guard.test.ts": 895,
- "src/renderer/src/store/slices/editor/tabs/editor-state-worktree-purge-leak.test.ts": 1740,
"src/renderer/src/store/slices/editor/tabs/editor-tab-layout-owner.test.ts": 1883,
"src/renderer/src/store/slices/editor/tabs/editor-tab-placement.test.ts": 1837,
"src/renderer/src/store/slices/editor/tabs/editor-tab-shared-project-owner.test.ts": 954,
@@ -6964,7 +6873,6 @@
"src/renderer/src/store/github/pull-requests/github-pr-branch-direct-refresh-scope.test.ts": 667,
"src/renderer/src/store/github/pull-requests/github-pr-branch-fallback-results.test.ts": 658,
"src/renderer/src/store/github/pull-requests/github-pr-branch-linked-pr-divergence.test.ts": 662,
- "src/renderer/src/store/github/checks/github-pr-checks-fetch.test.ts": 766,
"src/renderer/src/store/github/comments/github-pr-comment-read-order.test.ts": 570,
"src/renderer/src/store/github/comments/github-pr-comments.test.ts": 746,
"src/renderer/src/store/github/pull-requests/github-pr-host-scope.test.ts": 1030,
@@ -6973,7 +6881,6 @@
"src/renderer/src/store/github/pull-requests/github-pr-request-lifetime.test.ts": 1458,
"src/renderer/src/store/github/projects/github-project-view-tables.test.ts": 656,
"src/renderer/src/store/github/repositories/github-repo-lookup-index.test.ts": 51,
- "src/renderer/src/store/github/review-threads/github-review-thread-actions.test.ts": 574,
"src/renderer/src/store/github/review-threads/github-review-thread-rollback.test.ts": 663,
"src/renderer/src/store/github/task-records/github-task-record-retries.test.ts": 758,
"src/renderer/src/store/github/task-records/github-task-records.test.ts": 807,
@@ -6983,7 +6890,6 @@
"src/renderer/src/store/github/work-items/github-work-items-twin-cache-host.test.ts": 672,
"src/renderer/src/store/slices/hosted-review/hosted-review-request-lifetime.test.ts": 110,
"src/renderer/src/store/slices/hosted-review/hosted-review.test.ts": 320,
- "src/renderer/src/store/repos/issue-source-preference-twin.test.ts": 1858,
"src/renderer/src/store/slices/jira/jira-status-filter-cache.test.ts": 1770,
"src/renderer/src/store/slices/jira/jira-web-client-status.test.ts": 1901,
"src/renderer/src/store/slices/jira/jira.test.ts": 312,
@@ -7034,7 +6940,7 @@
"src/renderer/src/store/slices/settings/settings.test.ts": 1938,
"src/renderer/src/store/slices/worktrees/create/sparse-presets.test.ts": 217,
"src/renderer/src/store/slices/ssh/ssh.test.ts": 1843,
- "src/renderer/src/lib/active-worktree-removal-successor.test.ts": 1867,
+ "src/renderer/src/lib/workspace/activation/active-worktree-removal-successor.test.ts": 1867,
"src/renderer/src/store/slices/worktrees/session/store-active-worktree-selection.test.ts": 2039,
"src/renderer/src/store/terminals/store-create-tab-start-in-main.test.ts": 1801,
"src/renderer/src/store/slices/tabs/store-open-to-side-layout-owner.test.ts": 1919,
@@ -7061,7 +6967,6 @@
"src/renderer/src/store/slices/tabs/tabs-unread-and-focus.test.ts": 1801,
"src/renderer/src/store/slices/tabs/structured-chat-close-owner.test.ts": 1866,
"src/renderer/src/store/slices/tabs/tabs-reconciliation-empty-groups.test.ts": 1703,
- "src/renderer/src/store/terminals/terminal-input-activity-store-write.test.ts": 1726,
"src/renderer/src/store/terminals/terminal-layout-pty-ownership.test.ts": 1734,
"src/renderer/src/store/terminals/terminal-pane-detach-agent-identity.test.ts": 1627,
"src/renderer/src/store/terminals/terminal-pane-detach-agent-retention.test.ts": 2846,
@@ -7074,7 +6979,6 @@
"src/renderer/src/store/terminals/terminals-hydration-canonical-pty-overlap.test.ts": 1946,
"src/renderer/src/store/terminals/terminals-hydration-canonical-rows.test.ts": 1680,
"src/renderer/src/store/slices/ui/ui-agent-send-target.test.ts": 760,
- "src/renderer/src/store/slices/ui/ui-feature-interactions.test.ts": 648,
"src/renderer/src/store/slices/ui/ui-host-filter-sync.test.ts": 597,
"src/renderer/src/store/slices/ui/ui-host-workspace-statuses.test.ts": 1695,
"src/renderer/src/store/slices/ui/ui-modal-slot-dismissal.test.ts": 662,
@@ -7098,7 +7002,6 @@
"src/renderer/src/store/slices/settings/worktree-visibility-settings-write.test.ts": 307,
"src/renderer/src/store/slices/worktrees/teardown/worktrees-always-force-delete.test.ts": 1611,
"src/renderer/src/store/slices/worktrees/teardown/worktrees-background-removal.test.ts": 2011,
- "src/renderer/src/store/slices/worktrees/create/worktrees-create-base-status.test.ts": 1252,
"src/renderer/src/store/slices/worktrees/create/worktrees-create-captured-host.test.ts": 1148,
"src/renderer/src/store/slices/worktrees/listing/worktrees-fetch-listing-merge.test.ts": 1311,
"src/renderer/src/store/slices/worktrees/listing/worktrees-fetch-owner-routing.test.ts": 2038,
@@ -7127,7 +7030,6 @@
"src/renderer/src/store/slices/worktrees/session/worktrees-terminal-reference-origins.test.ts": 1218,
"src/renderer/src/store/slices/worktrees/session/worktrees-terminal-reference-source-race.test.ts": 1063,
"src/renderer/src/store/slices/workspace-attention/worktrees-unread-state.test.ts": 1704,
- "src/renderer/src/store/slices/worktrees/session/worktrees-workspace-selection-state.test.ts": 1170,
"src/renderer/src/store/slices/worktrees/host-scoped-row-merges.test.ts": 1805,
"src/renderer/src/store/slices/worktrees/listing/detected-worktree-meta.test.ts": 318,
"src/renderer/src/store/slices/worktrees/listing/stale-listing-purges-created-worktree.test.ts": 1828,
@@ -7196,7 +7098,6 @@
"src/shared/agent-cli-install-dir-fallback.test.ts": 130,
"src/shared/agent-launch/startup/agent-command-line-intent.test.ts": 95,
"src/shared/agent-status/title/agent-detection.test.ts": 188,
- "src/shared/agent-hook-listener/transport/agent-hook-endpoint-file.test.ts": 58,
"src/shared/agent-hook-listener/transport/agent-hook-endpoint-temp-cleanup.test.ts": 55,
"src/shared/agent-hook-listener/normalization/agent-hook-listener-claude-elicitation.test.ts": 229,
"src/shared/agent-hook-listener/normalization/agent-hook-listener-codex-approval-ownership.test.ts": 258,
@@ -7302,7 +7203,6 @@
"src/shared/agent-status/transport/agent-status-osc-pending-retention.test.ts": 154,
"src/shared/agent-status/transport/agent-status-osc.test.ts": 104,
"src/shared/agent-status/store/agent-status-store-reopen.test.ts": 199,
- "src/shared/agent-status/contracts/agent-status-subject.test.ts": 171,
"src/shared/agent-status/title/agent-status-tracker-program-activity.test.ts": 77,
"src/shared/agent-launch/startup/agent-tui-input-clear.test.ts": 57,
"src/shared/ai-vault/resume/ai-vault-resume-command.test.ts": 70,
@@ -7331,13 +7231,13 @@
"src/shared/automation-schedules.test.ts": 174,
"src/shared/automation-session-reuse.test.ts": 51,
"src/shared/bounded-map.test.ts": 69,
- "src/shared/browser-annotation-viewport-live-target.test.ts": 259,
+ "src/shared/browser/annotations/browser-annotation-viewport-live-target.test.ts": 259,
"src/shared/browser/extensions/browser-extension-permission-warnings.test.ts": 57,
"src/shared/browser/extensions/browser-extension-url.test.ts": 278,
"src/shared/browser/extensions/browser-extension-webstore.test.ts": 235,
"src/shared/browser-load-failure.test.ts": 238,
- "src/shared/browser-network-tunnel-protocol.test.ts": 47,
- "src/shared/browser-network-tunnel-stream-framing.test.ts": 1645,
+ "src/shared/browser/network/tunnels/browser-network-tunnel-protocol.test.ts": 47,
+ "src/shared/browser/network/tunnels/browser-network-tunnel-stream-framing.test.ts": 1645,
"src/shared/browser-url.test.ts": 268,
"src/shared/bundled-web-client-manifest.test.ts": 66,
"src/shared/source-control/checks/logs/check-job-log-excerpt.test.ts": 114,
@@ -8357,7 +8257,6 @@
"tests/e2e/git-history-tooltip-wrap.spec.ts": 22900,
"tests/e2e/git-no-upstream-polling-churn.spec.ts": 22600,
"tests/e2e/github-cli-stall-repro.spec.ts": 18200,
- "tests/e2e/github-created-issue-start-prefill.spec.ts": 43100,
"tests/e2e/github-url-smart-input-transition.spec.ts": 58200,
"tests/e2e/golden-agent-tui-launch.spec.ts": 27300,
"tests/e2e/golden-core-flows.spec.ts": 91100,
diff --git a/config/scripts/ci/unit-selection/check-test-file-runners.mjs b/config/scripts/ci/unit-selection/check-test-file-runners.mjs
index 24993494bd6..09f620398b7 100644
--- a/config/scripts/ci/unit-selection/check-test-file-runners.mjs
+++ b/config/scripts/ci/unit-selection/check-test-file-runners.mjs
@@ -34,13 +34,6 @@ const NON_UNIT_TEST_RUNNERS = [
sources: ['tests/e2e/vitest.config.ts'],
mirrors: ["'tests/e2e/computer-*.e2e.ts'"]
},
- {
- name: 'agent-status benchmark',
- manual: true,
- include: ['config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts'],
- sources: ['config/vitest.agent-status-benchmark.config.ts'],
- mirrors: ["'config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts'"]
- },
{
name: 'mobile',
include: ['mobile/src/**/*.test.ts', 'mobile/src/**/*.test.tsx', 'mobile/scripts/**/*.test.ts'],
diff --git a/config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs b/config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs
index 567d2c83bf9..0f946b7faba 100644
--- a/config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs
+++ b/config/scripts/ci/unit-selection/dependency-graph/ci-unit-files.mjs
@@ -53,7 +53,6 @@ export const UNIT_EXCLUDE = [
'src/main/browser/client-pages/renderer/browser-client-page-renderer-lifecycle.electron.test.ts',
'src/main/persistence/profile-state/profile-state-writer-stall.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-compatibility.electron.test.ts',
- 'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-adapter-compatibility.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-native-compatibility.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-background-compatibility.electron.test.ts',
'src/main/browser/extensions/api-runtime/browser-extension-api.electron.test.ts',
diff --git a/config/scripts/locale-catalog/locale-translation-policy-ko-round5.test.mjs b/config/scripts/locale-catalog/locale-translation-policy-ko-round5.test.mjs
index e03157e0bc6..6d8561bcdcc 100644
--- a/config/scripts/locale-catalog/locale-translation-policy-ko-round5.test.mjs
+++ b/config/scripts/locale-catalog/locale-translation-policy-ko-round5.test.mjs
@@ -3,147 +3,6 @@ import { describe, expect, it } from 'vitest'
import { repairTranslatedValue } from './locale-translation-policy.mjs'
describe('locale-translation-policy ko round 5', () => {
- it('fixes Korean round 5 review, integration, and search keyword regressions', () => {
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.workspace.status.409528031f',
- enValue: 'Review',
- localeValue: '검토',
- locale: 'ko'
- })
- ).toBe('리뷰')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.workspace.status.6c1efa2cf8',
- enValue: 'In review',
- localeValue: '검토 중',
- locale: 'ko'
- })
- ).toBe('리뷰 중')
- expect(
- repairTranslatedValue({
- key: 'auto.components.TaskPage.524f095d55',
- enValue: 'Needs review',
- localeValue: '검토 필요',
- locale: 'ko'
- })
- ).toBe('리뷰 필요')
- expect(
- repairTranslatedValue({
- key: 'auto.components.onboarding.IntegrationsStep.277f30eb34',
- enValue:
- 'Linear, GitLab, Bitbucket, Azure DevOps, Gitea, and Jira live in Settings > Integrations.',
- localeValue:
- 'Linear, GitLab, Bitbucket, Azure DevOps, Gitea 및 Jira는 설정 > 통합에 있습니다.',
- locale: 'ko'
- })
- ).toBe('Linear, GitLab, Bitbucket, Azure DevOps, Gitea 및 Jira는 설정 > 연동에 있습니다.')
- expect(
- repairTranslatedValue({
- key: 'auto.components.settings.general.search.244e3fb4c8',
- enValue: 'Install the Orca skill so agents know to use the Orca CLI.',
- localeValue: '에이전트가 Orca CLI 사용 방법을 알 수 있도록 Orca 기술을 설치합니다.',
- locale: 'ko'
- })
- ).toBe('에이전트가 Orca CLI를 사용하도록 Orca 스킬을 설치하세요.')
- expect(
- repairTranslatedValue({
- key: 'auto.components.editor.MarkdownPreview.322afab6ff',
- enValue: 'Review notes',
- localeValue: '메모 검토',
- locale: 'ko'
- })
- ).toBe('리뷰 노트')
- expect(
- repairTranslatedValue({
- key: 'auto.components.right.sidebar.source.control.repo.icon.ecf63ec3ef',
- enValue: 'Launch',
- localeValue: '시작하다',
- locale: 'ko'
- })
- ).toBe('실행')
- expect(
- repairTranslatedValue({
- key: 'auto.components.GitHubItemDialog.485609c4f2',
- enValue: 'check #',
- localeValue: '확인하다 #',
- locale: 'ko'
- })
- ).toBe('체크 #')
- expect(
- repairTranslatedValue({
- key: 'auto.lib.automation.templates.maintenance.prompt',
- enValue:
- 'Check for stuck work, stale generated files, failing validation, and anything that needs human attention. Report only actionable issues.',
- localeValue:
- '작업 중단, 오래 생성된 파일, 유효성 검사 실패 및 사람의 주의가 필요한 모든 사항을 확인하세요. 실행 가능한 문제만 보고하세요.',
- locale: 'ko'
- })
- ).toBe(
- '작업 중단, 오래 생성된 파일, 유효성 검사 실패 및 사람의 주의가 필요한 모든 사항을 확인하세요. 실행 가능한 이슈만 보고하세요.'
- )
- expect(
- repairTranslatedValue({
- key: 'auto.components.GitLabItemDialog.02cbe2de44',
- enValue: 'Pipeline',
- localeValue: '파이프라인',
- locale: 'ko'
- })
- ).toBe('파이프라인')
- })
-
- // Why: #12113 — brand names stay Latin, but generic workflow nouns keep their Korean.
- it('keeps brand names English and generic workflow terms translated', () => {
- expect(
- repairTranslatedValue({
- key: 'auto.components.feature.wall.BrowserAnimatedVisual.04096318ab',
- enValue: 'Terminal 1',
- localeValue: '터미널 1',
- locale: 'ko'
- })
- ).toBe('터미널 1')
- expect(
- repairTranslatedValue({
- key: 'auto.components.skills.SkillsPage.38e0951c3a',
- enValue: 'Agent Skills',
- localeValue: '에이전트 스킬',
- locale: 'ko'
- })
- ).toBe('에이전트 스킬')
- expect(
- repairTranslatedValue({
- key: 'auto.components.LinearIssueMarkdownDescriptionEditor.d9c47069ef',
- enValue: 'Markdown',
- localeValue: '가격 인하',
- locale: 'ko'
- })
- ).toBe('Markdown')
- expect(
- repairTranslatedValue({
- key: 'auto.components.workspace.cleanup.WorkspaceCleanupDialog.9623a5107d',
- enValue: 'Unpushed commits',
- localeValue: '푸시되지 않은 커밋',
- locale: 'ko'
- })
- ).toBe('푸시되지 않은 커밋')
- expect(
- repairTranslatedValue({
- key: 'auto.components.workspace.cleanup.WorkspaceCleanupDialog.0b1766738a',
- enValue: 'Repo',
- localeValue: '레포',
- locale: 'ko'
- })
- ).toBe('레포')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.add.repo.local.start.actions.fb4fc5380e',
- enValue: 'Local project, Git repo, or folder with many repos',
- localeValue: '로컬 프로젝트, Git 저장소 또는 저장소가 많은 폴더',
- locale: 'ko'
- })
- ).toBe('로컬 프로젝트, Git 저장소 또는 저장소가 많은 폴더')
- })
-
it('re-glues Korean particles after Latin terms without gluing content words', () => {
// A wrong space before the 에 particle is re-glued onto the Latin term.
expect(
diff --git a/config/scripts/locale-catalog/locale-translation-policy.es-round5.test.mjs b/config/scripts/locale-catalog/locale-translation-policy.es-round5.test.mjs
deleted file mode 100644
index 3bf5a77fb3a..00000000000
--- a/config/scripts/locale-catalog/locale-translation-policy.es-round5.test.mjs
+++ /dev/null
@@ -1,65 +0,0 @@
-import { describe, expect, it } from 'vitest'
-
-import { repairTranslatedValue } from './locale-translation-policy.mjs'
-
-describe('locale-translation-policy es round 5', () => {
- // Why: #12113 — brand names stay Latin, but generic workflow nouns keep their Spanish.
- it('keeps brand names English and generic workflow terms translated', () => {
- expect(
- repairTranslatedValue({
- key: 'auto.components.LinearIssueMarkdownDescriptionEditor.d9c47069ef',
- enValue: 'Markdown',
- localeValue: 'Reducción',
- locale: 'es'
- })
- ).toBe('Markdown')
- expect(
- repairTranslatedValue({
- key: 'auto.components.TaskPage.7f3f7b4c18',
- enValue: 'Description (optional, markdown)',
- localeValue: 'Descripción (opcional, rebaja)',
- locale: 'es'
- })
- ).toBe('Descripción (opcional, markdown)')
- expect(
- repairTranslatedValue({
- key: 'auto.components.right.sidebar.source.control.primary.action.ed93b4f14f',
- enValue: 'Commit',
- localeValue: 'Comprometerse',
- locale: 'es'
- })
- ).toBe('Commit')
- expect(
- repairTranslatedValue({
- key: 'auto.components.right.sidebar.GitHistoryPanel.cf7cad58d2',
- enValue: 'No commits yet',
- localeValue: 'Aún no hay compromisos',
- locale: 'es'
- })
- ).toBe('Aún no hay commits')
- expect(
- repairTranslatedValue({
- key: 'auto.components.right.sidebar.SourceControl.b94112eb9e',
- enValue: 'Commit message',
- localeValue: 'mensaje de confirmación',
- locale: 'es'
- })
- ).toBe('mensaje de confirmación')
- expect(
- repairTranslatedValue({
- key: 'auto.components.workspace.cleanup.WorkspaceCleanupDialog.0b1766738a',
- enValue: 'Repo',
- localeValue: 'repositorio',
- locale: 'es'
- })
- ).toBe('repositorio')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.add.repo.local.start.actions.fb4fc5380e',
- enValue: 'Local project, Git repo, or folder with many repos',
- localeValue: 'Proyecto local, repositorio de Git o carpeta con muchos repositorios',
- locale: 'es'
- })
- ).toBe('Proyecto local, repositorio de Git o carpeta con muchos repositorios')
- })
-})
diff --git a/config/scripts/locale-catalog/locale-translation-policy.ja-relocalization.test.mjs b/config/scripts/locale-catalog/locale-translation-policy.ja-relocalization.test.mjs
index 433a3e4b537..0ab813ce684 100644
--- a/config/scripts/locale-catalog/locale-translation-policy.ja-relocalization.test.mjs
+++ b/config/scripts/locale-catalog/locale-translation-policy.ja-relocalization.test.mjs
@@ -6,16 +6,6 @@ const ja = (enValue, localeValue, key = 'auto.test.relocalization') =>
repairTranslatedValue({ key, enValue, localeValue, locale: 'ja' })
describe('locale-translation-policy ja relocalization', () => {
- it('heals generic terms the brand revert left in Latin mid-sentence', () => {
- expect(ja('Close terminal?', 'この terminal を閉じますか?')).toBe('このターミナルを閉じますか?')
- expect(ja('New Terminal', '新規 Terminal')).toBe('新規ターミナル')
- expect(ja('Stop the agent?', 'この agent を停止しますか?')).toBe('この Agent を停止しますか?')
- expect(ja('Nothing to commit.', 'commit するものはありません。')).toBe(
- 'コミットするものはありません。'
- )
- expect(ja('Open the repo', 'repo を開く')).toBe('リポジトリを開く')
- })
-
it('leaves the second word of a two-word command in Latin', () => {
expect(ja('a commit hook or git commit fails', 'コミットフックまたは git commit が失敗')).toBe(
'コミットフックまたは git commit が失敗'
@@ -36,21 +26,6 @@ describe('locale-translation-policy ja relocalization', () => {
expect(ja('Run git commit -m', 'git commit -m を実行')).toBe('git commit -m を実行')
})
- it('keeps commands and identifiers in English so they still run', () => {
- expect(shouldPreserveEnglishValue('pnpm install')).toBe(true)
- expect(shouldPreserveEnglishValue('glab auth login')).toBe(true)
- expect(shouldPreserveEnglishValue("gh pr list --json number -q '.[0].number'")).toBe(true)
- expect(shouldPreserveEnglishValue('--model sonnet')).toBe(true)
- expect(shouldPreserveEnglishValue('localhost, 127.0.0.1, *.internal')).toBe(true)
- expect(shouldPreserveEnglishValue('stale-agent-row-{{value0}}')).toBe(true)
- expect(shouldPreserveEnglishValue('text-foreground')).toBe(true)
- expect(shouldPreserveEnglishValue('{basePrompt}')).toBe(true)
- expect(shouldPreserveEnglishValue('{firstPrompt}')).toBe(true)
- expect(shouldPreserveEnglishValue('{assistantMessage}')).toBe(true)
- expect(shouldPreserveEnglishValue('/pricing')).toBe(true)
- expect(shouldPreserveEnglishValue('/signup')).toBe(true)
- })
-
it('repairs translated code examples back to executable values', () => {
expect(ja('--model sonnet', '--モデルソネット')).toBe('--model sonnet')
expect(
@@ -68,78 +43,10 @@ describe('locale-translation-policy ja relocalization', () => {
expect(shouldPreserveEnglishValue('e.g. {{value0}}')).toBe(false)
})
- it('normalizes Japanese typography and settled terminology', () => {
- expect(ja('Loading…', '読み込み中...')).toBe('読み込み中…')
- expect(ja('Merge conflict', 'マージ紛争')).toBe('マージ競合')
- // Why: MT inserts a Microsoft-style separator space that Japanese compounds do not use.
- expect(ja('Status bar', 'ステータス バー')).toBe('ステータスバー')
- expect(ja('Missing credentials', '資格情報がありません')).toBe('認証情報がありません')
- expect(ja('Unknown', '未知')).toBe('不明')
- expect(ja('Restart the server', 'サーバを再起動')).toBe('サーバーを再起動')
- expect(ja('Open the browser', 'ブラウザーを開く')).toBe('ブラウザを開く')
- })
-
- it('preserves translated Japanese Skills labels', () => {
- expect(
- ja(
- 'Filter by agent',
- 'エージェントで絞り込み',
- 'auto.components.skills.SkillsPage.filterProvider'
- )
- ).toBe('エージェントで絞り込み')
- })
-
- it('preserves the native chat subagent label', () => {
- expect(ja('Subagent', 'サブエージェント', 'components.native-chat.tool.row.subagent')).toBe(
- 'サブエージェント'
- )
- })
-
it('leaves ranges and token samples out of the ellipsis rule', () => {
expect(ja('Compare main...HEAD', 'main...HEAD を比較')).toBe('main...HEAD を比較')
})
- it('spaces the Latin terms the phrase fixes write back in', () => {
- expect(ja('Clear cookies', 'クッキーを消去')).toBe('Cookie を消去')
- expect(ja('Safely fast-forward the branch', 'ブランチを安全に早送りします')).toBe(
- 'ブランチを安全に fast-forward します'
- )
- })
-
- it('uses ホスト for host, and leaves サーバー alone when English says server', () => {
- expect(ja('Host path', 'サーバーパス')).toBe('ホストパス')
- expect(ja('Enter a path that exists on the selected host.', 'ランタイムサーバー上のパス')).toBe(
- 'ホスト上のパス'
- )
- // Why: host and server are deliberately distinct wherever the English uses both.
- expect(ja('Save the server host', 'サーバーを保存')).toBe('サーバーを保存')
- })
-
- it('restores Git vocabulary and brand names the MT localized', () => {
- expect(ja('Branch upstream', 'ブランチの上流')).toBe('ブランチの upstream')
- expect(ja('origin has commits', '起源にコミットがあります')).toBe('origin にコミットがあります')
- expect(ja('Discard all staged changes?', '段階的な変更を破棄しますか?')).toBe(
- 'ステージ済みの変更を破棄しますか?'
- )
- expect(ja('Create Hermes automation', 'エルメスオートメーションを作成')).toBe(
- 'Hermes オートメーションを作成'
- )
- expect(ja('Delete the worktree', 'worktree を削除')).toBe('ワークツリーを削除')
- })
-
- it('keeps class strings, refs, and fixture filenames in English', () => {
- for (const value of [
- 'size-4 text-muted-foreground',
- 'text-amber-700 dark:text-amber-300',
- 'origin/main',
- 'upstream/main',
- 'login.spec.ts',
- 'bastion.example.com'
- ]) {
- expect(shouldPreserveEnglishValue(value)).toBe(true)
- }
- })
-
it('preserves a selector that has no declaration block', () => {
for (const value of [
'div.pricing-grid > div.card.starter:nth-of-type(1) > a.cta',
diff --git a/config/scripts/locale-catalog/locale-translation-policy.ja-round5.test.mjs b/config/scripts/locale-catalog/locale-translation-policy.ja-round5.test.mjs
deleted file mode 100644
index 1955a9eef24..00000000000
--- a/config/scripts/locale-catalog/locale-translation-policy.ja-round5.test.mjs
+++ /dev/null
@@ -1,157 +0,0 @@
-import { describe, expect, it } from 'vitest'
-
-import { repairTranslatedValue } from './locale-translation-policy.mjs'
-
-describe('locale-translation-policy ja round 5', () => {
- it('fixes inline, launch, action, MR, and status chip regressions', () => {
- expect(
- repairTranslatedValue({
- key: 'auto.components.GitHubItemDialog.6e43a16435',
- enValue: 'Inline',
- localeValue: '列をなして',
- locale: 'ja'
- })
- ).toBe('インライン')
- expect(
- repairTranslatedValue({
- key: 'auto.components.repo.repo.icon.ecf63ec3ef',
- enValue: 'Launch',
- localeValue: '打ち上げ',
- locale: 'ja'
- })
- ).toBe('起動')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.workspace.status.2c19d1db33',
- enValue: 'Play',
- localeValue: '遊ぶ',
- locale: 'ja'
- })
- ).toBe('再生')
- expect(
- repairTranslatedValue({
- key: 'auto.components.TaskPage.8396825a14',
- enValue: 'Action',
- localeValue: 'アクション',
- locale: 'ja'
- })
- ).toBe('操作')
- expect(
- repairTranslatedValue({
- key: 'auto.components.TaskPage.456b8512da',
- enValue: 'MergeRequest',
- localeValue: 'マージリクエスト',
- locale: 'ja'
- })
- ).toBe('MR')
- expect(
- repairTranslatedValue({
- key: 'auto.components.github.PRFilterDropdowns.7f1ba66c3e',
- enValue: 'Reviewed by',
- localeValue: 'レビュー者',
- locale: 'ja'
- })
- ).toBe('レビュアー')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.workspace.status.caebe3c10f',
- enValue: 'Conductor Review',
- localeValue: '指揮者のレビュー',
- locale: 'ja'
- })
- ).toBe('Conductor レビュー')
- expect(
- repairTranslatedValue({
- key: 'auto.components.github.pr.merge.state.bf5e4c6c92',
- enValue: 'Blocked',
- localeValue: 'ブロック',
- locale: 'ja'
- })
- ).toBe('ブロック中')
- expect(
- repairTranslatedValue({
- key: 'auto.components.settings.IntegrationsPane.027440e1cb',
- enValue: 'Merge requests, issues, todos, and pipelines via the',
- localeValue: 'リクエスト、イシュー、ToDo、パイプラインをマージします。',
- locale: 'ja'
- })
- ).toBe('MR、Issue、ToDo、パイプラインは')
- expect(
- repairTranslatedValue({
- key: 'auto.components.GitLabItemDialog.98718490e4',
- enValue: 'MR title is required.',
- localeValue: 'MRの肩書きは必須です。',
- locale: 'ja'
- })
- ).toBe('MR タイトルは必須です。')
- expect(
- repairTranslatedValue({
- key: 'auto.components.settings.terminal.search.d5e6c7fab1',
- enValue: 'font features',
- localeValue: 'フォントの特徴',
- locale: 'ja'
- })
- ).toBe('フォント特性')
- expect(
- repairTranslatedValue({
- key: 'auto.components.GitHubItemDialog.f05d237049',
- enValue: 'Add a project first',
- localeValue: 'まずプロジェクトを追加してください',
- locale: 'ja'
- })
- ).toBe('まずプロジェクトを追加')
- })
-
- // Why: #12113 — brand names stay Latin, but generic workflow nouns keep their Japanese.
- it('keeps brand names English and generic workflow terms translated', () => {
- expect(
- repairTranslatedValue({
- key: 'auto.components.status.bar.WorkspaceSpaceManagerPanel.e9528a89b3',
- enValue: 'Terminals',
- localeValue: '端末',
- locale: 'ja'
- })
- ).toBe('ターミナル')
- expect(
- repairTranslatedValue({
- key: 'auto.components.skills.SkillsPage.38e0951c3a',
- enValue: 'Agent Skills',
- localeValue: 'Agent のスキル',
- locale: 'ja'
- })
- ).toBe('Agent のスキル')
- expect(
- repairTranslatedValue({
- key: 'auto.components.tab.bar.TabBar.3d5d6c960d',
- enValue: 'New Markdown',
- localeValue: '新規マークダウン',
- locale: 'ja'
- })
- ).toBe('新規 Markdown')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.local.base.ref.suggestion.toast.commits',
- enValue: 'commits',
- localeValue: 'コミット',
- locale: 'ja'
- })
- ).toBe('コミット')
- expect(
- repairTranslatedValue({
- key: 'auto.components.mobile.slides.WorktreeListSlide.22971156df',
- enValue: 'Repo',
- localeValue: 'リポ',
- locale: 'ja'
- })
- ).toBe('リポ')
- expect(
- repairTranslatedValue({
- key: 'auto.components.sidebar.add.repo.local.start.actions.fb4fc5380e',
- enValue: 'Local project, Git repo, or folder with many repos',
- localeValue:
- 'ローカル プロジェクト、Git リポジトリ、または多数のリポジトリを含むフォルダー',
- locale: 'ja'
- })
- ).toBe('ローカルプロジェクト、Git リポジトリ、または多数のリポジトリを含むフォルダー')
- })
-})
diff --git a/config/scripts/native-build/linux/verify-linux-glibc-floor.cjs b/config/scripts/native-build/linux/verify-linux-glibc-floor.cjs
index a82ff3b1f3e..ab288f7ea91 100644
--- a/config/scripts/native-build/linux/verify-linux-glibc-floor.cjs
+++ b/config/scripts/native-build/linux/verify-linux-glibc-floor.cjs
@@ -43,9 +43,6 @@ const COMPAT_SLOT_GLIBC_FLOOR = glibcFloorProfile(
[1, 3, 7]
)
-// Lazy speech-worker sherpa prebuilt requires GCC11 GLIBCXX_3.4.29; exempt C++ floor only, retain glibc gate because it is not launch-critical.
-const LIBSTDCXX_FLOOR_EXEMPT = /(?:^|[/\\])sherpa-onnx/
-
// VER_FLG_WEAK needs may resolve null and use fallback; they must not raise required floor.
const VER_FLG_WEAK = 0x2
@@ -118,15 +115,9 @@ function isLibstdcxxNode(name) {
return name.startsWith('GLIBCXX_') || name.startsWith('CXXABI_')
}
-// Gate load-time requirements; exempt sherpa C++ needs only, never its glibc needs.
-function findFloorViolations(needs, filePath = '', glibcFloor = DESKTOP_GLIBC_FLOOR) {
- const exemptLibstdcxx = LIBSTDCXX_FLOOR_EXEMPT.test(filePath)
- return needs.filter(
- (need) =>
- !need.weak &&
- isVersionNodeAboveFloor(need.name, glibcFloor) &&
- !(exemptLibstdcxx && isLibstdcxxNode(need.name))
- )
+// Gate load-time requirements; weak needs can resolve to null and fall back.
+function findFloorViolations(needs, glibcFloor = DESKTOP_GLIBC_FLOOR) {
+ return needs.filter((need) => !need.weak && isVersionNodeAboveFloor(need.name, glibcFloor))
}
// Ubuntu20.04 keeps openpty/forkpty in libutil until glibc2.34 merge: require DT_NEEDED even when newer libc compat aliases satisfy link-time floor.
@@ -402,7 +393,7 @@ function verifyLinuxGlibcFloor(rootDir, options = {}) {
const { versionNeeds, neededLibraries, isStatic } = readDynamicInfo(filePath, objdumpPath)
const isMuslTarget = isMuslTemplatePayload(filePath, neededLibraries, versionNeeds)
// Remote musl payloads use their host's C++ runtime, not Ubuntu's libstdc++ or libutil.
- const floorViolations = findFloorViolations(versionNeeds, filePath, glibcFloor).filter(
+ const floorViolations = findFloorViolations(versionNeeds, glibcFloor).filter(
(need) => !isMuslTarget || !isLibstdcxxNode(need.name)
)
// Inspect dynamic symbols only if relocated provider is absent from DT_NEEDED; healthy case avoids extra objdump.
diff --git a/config/scripts/orcad-distribution/server-artifact/pack-orcad-server-artifact.mjs b/config/scripts/orcad-distribution/server-artifact/pack-orcad-server-artifact.mjs
new file mode 100644
index 00000000000..7dd14db6070
--- /dev/null
+++ b/config/scripts/orcad-distribution/server-artifact/pack-orcad-server-artifact.mjs
@@ -0,0 +1,273 @@
+#!/usr/bin/env node
+// Packs one target's qualified template slot, its pinned Node and a launcher into the server-only
+// tarball `orca serve` runs from on hosts without the desktop app.
+// node pack-orcad-server-artifact.mjs --template out/orcad-template --target linux-x64-glibc [--out-dir out/orca-server]
+import { createHash } from 'node:crypto'
+import {
+ chmodSync,
+ copyFileSync,
+ mkdirSync,
+ readFileSync,
+ readdirSync,
+ rmSync,
+ writeFileSync
+} from 'node:fs'
+import { dirname, join, relative, resolve } from 'node:path'
+import { c as createTar } from 'tar'
+import {
+ ORCAD_NODE_RUNTIME_DIR_PREFIX,
+ ORCAD_RUNTIMES_DIRNAME,
+ ORCAD_SERVER_ENTRY_FILENAME,
+ ORCAD_TEMPLATE_MANIFEST_FILENAME,
+ ORCAD_TEMPLATE_TARGETS_DIR,
+ ORCAD_VERSION_FILENAME,
+ ORCAD_CLI_ENTRY_FILENAME,
+ orcadNodeRuntimeExecutable,
+ orcadTemplateCommonFilenames,
+ orcadTemplateTargetFilenames
+} from '../../../../src/shared/orcad-artifacts.ts'
+import { ORCAD_LOCAL_SERVE_SELECTION_ENTRY } from '../../../../src/shared/orcad-local-serve-selection.ts'
+import {
+ NODE_RUNTIME_PIN,
+ nodeRuntimeExecutablePath,
+ nodeRuntimeReleaseUrl,
+ pinnedNodeRuntimeAsset
+} from '../../../../src/shared/node-runtime-pin.ts'
+import {
+ ensurePinnedNodeExecutable,
+ fetchPinnedFile,
+ pinnedNodeCacheDir
+} from '../prebuilds/pinned-node-downloads.mjs'
+import { extract } from '../../node-runtime/archive-identity/update-node-runtime-pin.mjs'
+import { computeOrcadFullVersion } from '../server-bundle/orcad-artifact-version.mjs'
+import { assertNotDarkBuild } from '../../../dark-build-switches.cjs'
+import { isDirectInvocation } from '../../tool-invocation/script-entry-detection.mjs'
+
+const root = resolve(import.meta.dirname, '../../../..')
+const SLOT_DIR = 'orcad'
+const LAUNCHER = 'bin/orca-ide'
+
+/** Published name without the libc suffix: only glibc slots are published. */
+export function orcaServerArtifactName(target) {
+ const match = /^(linux|darwin)-(x64|arm64)(?:-glibc)?$/.exec(target)
+ if (!match) {
+ throw new Error(
+ `No server-only artifact for ${target}; use linux-x64-glibc or linux-arm64-glibc`
+ )
+ }
+ return `orca-server-${match[1]}-${match[2]}`
+}
+
+function sha256(path) {
+ return createHash('sha256').update(readFileSync(path)).digest('hex')
+}
+
+function isExecutable(filename) {
+ return /(?:^|\/)(?:rg|spawn-helper)$/.test(filename)
+}
+
+function copyVerified(source, destination, expectedSha256, executable) {
+ mkdirSync(dirname(destination), { recursive: true })
+ copyFileSync(source, destination)
+ const actual = sha256(destination)
+ if (actual !== expectedSha256) {
+ throw new Error(`${source} hashed ${actual}; the template manifest expects ${expectedSha256}`)
+ }
+ if (executable) {
+ chmodSync(destination, 0o755)
+ }
+}
+
+/** Copies exactly the slot files the desktop deploys over SSH, each checked against the manifest. */
+function stageSlot(templateDir, target, slotDir) {
+ const manifest = JSON.parse(
+ readFileSync(join(templateDir, ORCAD_TEMPLATE_MANIFEST_FILENAME), 'utf8')
+ )
+ const targetManifest = manifest.targets?.[target]
+ if (!targetManifest) {
+ throw new Error(`${templateDir} has no ${target} slot`)
+ }
+ const mobileWebAssets = Object.keys(manifest.commonSha256).filter((name) =>
+ name.startsWith('out/mobile-web/')
+ )
+ const common = orcadTemplateCommonFilenames([])
+ const commonFiles = [...new Set([...common, ...mobileWebAssets])]
+ for (const filename of commonFiles) {
+ const expected = manifest.commonSha256[filename]
+ if (!expected) {
+ throw new Error(`Template manifest omits ${filename}`)
+ }
+ copyVerified(
+ join(templateDir, ...filename.split('/')),
+ join(slotDir, ...filename.split('/')),
+ expected,
+ isExecutable(filename)
+ )
+ }
+ for (const filename of orcadTemplateTargetFilenames(target)) {
+ const expected = targetManifest.files?.[filename]
+ if (!expected) {
+ throw new Error(`Template manifest omits ${target} ${filename}`)
+ }
+ copyVerified(
+ join(templateDir, ORCAD_TEMPLATE_TARGETS_DIR, target, ...filename.split('/')),
+ join(slotDir, ...filename.split('/')),
+ expected,
+ isExecutable(filename)
+ )
+ }
+ // Hashed like a desktop slot without the optional browser, which this tarball omits.
+ const version = computeOrcadFullVersion(slotDir, { target, agentBrowserFilename: null })
+ writeFileSync(join(slotDir, ORCAD_VERSION_FILENAME), `${version}\n`)
+ return version
+}
+
+// Why sh: it must run before any Node exists on the host. ELECTRON_RUN_AS_NODE=1 is how the packaged
+// app's CLI runs, and the CLI strips it from the server's environment; the other two would point
+// `serve` at a desktop app this install does not have.
+function launcherScript(nodeRelativePath) {
+ return `#!/bin/sh
+# Orca server-only launcher: runs the bundled Orca CLI under the bundled Node.
+set -e
+self=$0
+if command -v readlink >/dev/null 2>&1 && resolved=$(readlink -f -- "$self" 2>/dev/null); then
+ self=$resolved
+fi
+root=$(CDPATH= cd -- "$(dirname -- "$self")/.." && pwd -P)
+node="$root/${nodeRelativePath}"
+unset ORCA_APP_EXECUTABLE ORCA_SERVE_RUNTIME
+ELECTRON_RUN_AS_NODE=1
+export ELECTRON_RUN_AS_NODE
+exec "$node" "$root/${SLOT_DIR}/${ORCAD_CLI_ENTRY_FILENAME}" "$@"
+`
+}
+
+// The CLI asks `/out/main/.js` which server to run; here the answer is fixed.
+function selectionEntryScript() {
+ return `'use strict'
+// Answers \`orca serve\`'s runtime question for the server-only artifact (src/shared/orcad-local-serve-selection.ts).
+const { readFileSync } = require('node:fs')
+const { join } = require('node:path')
+const flag = process.argv.indexOf('--app-root')
+const root = flag === -1 ? join(__dirname, '..', '..', '..') : process.argv[flag + 1]
+const slot = join(root, ${JSON.stringify(SLOT_DIR)})
+let selection
+try {
+ const version = readFileSync(join(slot, ${JSON.stringify(ORCAD_VERSION_FILENAME)}), 'utf8').trim()
+ selection = { kind: 'orcad', runtime: process.execPath, entry: join(slot, ${JSON.stringify(ORCAD_SERVER_ENTRY_FILENAME)}), version }
+} catch (error) {
+ process.stderr.write('This Orca server install is incomplete; extract the release archive again.\\n')
+ process.exit(1)
+}
+process.stdout.write('ORCA_SERVE_RUNTIME ' + JSON.stringify(selection) + '\\n')
+`
+}
+
+/** Node's notice ships with its binary; it comes from the same hash-checked archive. */
+async function copyNodeLicense(target, destination) {
+ const asset = pinnedNodeRuntimeAsset(target)
+ const cacheDir = pinnedNodeCacheDir()
+ const archive = await fetchPinnedFile({
+ url: nodeRuntimeReleaseUrl(asset.source, asset.archive),
+ destination: join(cacheDir, asset.archive),
+ sha256: asset.archiveSha256
+ })
+ const topLevel = nodeRuntimeExecutablePath(target, asset.archive).replace(/\/bin\/node$/, '')
+ const extractDir = join(cacheDir, `license-${asset.archiveSha256.slice(0, 12)}`)
+ extract(archive, extractDir, `${topLevel}/LICENSE`)
+ copyFileSync(join(extractDir, topLevel, 'LICENSE'), destination)
+}
+
+function listEntries(dir, base = dir) {
+ const entries = []
+ for (const name of readdirSync(dir, { withFileTypes: true }).sort((a, b) =>
+ a.name < b.name ? -1 : a.name > b.name ? 1 : 0
+ )) {
+ const path = join(dir, name.name)
+ entries.push(relative(base, path))
+ if (name.isDirectory()) {
+ entries.push(...listEntries(path, base))
+ }
+ }
+ return entries
+}
+
+export async function packOrcaServerArtifact({ templateDir, target, outDir }) {
+ // A dark build's template must never ship as a server either.
+ assertNotDarkBuild([templateDir])
+ const name = orcaServerArtifactName(target)
+ const { version: appVersion } = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'))
+ const topDir = `orca-server-${appVersion}-${name.slice('orca-server-'.length)}`
+ const stagingRoot = join(outDir, '.staging')
+ const staging = join(stagingRoot, topDir)
+ rmSync(stagingRoot, { recursive: true, force: true })
+ mkdirSync(staging, { recursive: true })
+
+ const orcadVersion = stageSlot(templateDir, target, join(staging, SLOT_DIR))
+ const runtimeAsset = pinnedNodeRuntimeAsset(target)
+ const nodeRelativePath = [
+ ORCAD_RUNTIMES_DIRNAME,
+ `${ORCAD_NODE_RUNTIME_DIR_PREFIX}${runtimeAsset.executableSha256}`,
+ orcadNodeRuntimeExecutable(target)
+ ].join('/')
+ copyVerified(
+ await ensurePinnedNodeExecutable({ target }),
+ join(staging, ...nodeRelativePath.split('/')),
+ runtimeAsset.executableSha256,
+ true
+ )
+ const launcher = join(staging, ...LAUNCHER.split('/'))
+ mkdirSync(dirname(launcher), { recursive: true })
+ writeFileSync(launcher, launcherScript(nodeRelativePath), { mode: 0o755 })
+ chmodSync(launcher, 0o755)
+ const selectionEntry = join(staging, 'out', 'main', `${ORCAD_LOCAL_SERVE_SELECTION_ENTRY}.js`)
+ mkdirSync(dirname(selectionEntry), { recursive: true })
+ writeFileSync(selectionEntry, selectionEntryScript())
+ writeFileSync(
+ join(staging, 'VERSION'),
+ `orca ${appVersion}\norcad ${orcadVersion}\nnode ${NODE_RUNTIME_PIN.version}\ntarget ${target}\n`
+ )
+ copyFileSync(join(root, 'LICENSE'), join(staging, 'LICENSE'))
+ await copyNodeLicense(target, join(staging, ORCAD_RUNTIMES_DIRNAME, 'NODE-LICENSE'))
+
+ const archive = join(outDir, `${name}.tar.gz`)
+ rmSync(archive, { force: true })
+ createTar(
+ {
+ file: archive,
+ sync: true,
+ cwd: stagingRoot,
+ gzip: { level: 9 },
+ portable: true,
+ noDirRecurse: true,
+ // Fixed mtime: rebuilding the same tag yields the same bytes.
+ mtime: new Date(Number(process.env.SOURCE_DATE_EPOCH ?? 0) * 1000)
+ },
+ [topDir, ...listEntries(staging).map((entry) => `${topDir}/${entry}`)]
+ )
+ rmSync(stagingRoot, { recursive: true, force: true })
+ const digest = sha256(archive)
+ writeFileSync(`${archive}.sha256`, `${digest} ${name}.tar.gz\n`)
+ return { archive, sha256: digest, topDir, orcadVersion }
+}
+
+function argument(argv, name) {
+ const index = argv.indexOf(name)
+ return index === -1 ? null : (argv[index + 1] ?? null)
+}
+
+if (isDirectInvocation(import.meta.url, process.argv[1])) {
+ const templateDir = argument(process.argv, '--template')
+ const target = argument(process.argv, '--target')
+ if (!templateDir || !target) {
+ throw new Error(
+ 'Usage: pack-orcad-server-artifact.mjs --template --target [--out-dir ]'
+ )
+ }
+ const result = await packOrcaServerArtifact({
+ templateDir: resolve(templateDir),
+ target,
+ outDir: resolve(argument(process.argv, '--out-dir') ?? join(root, 'out', 'orca-server'))
+ })
+ process.stdout.write(`${JSON.stringify(result)}\n`)
+}
diff --git a/config/scripts/orcad-distribution/server-artifact/smoke-orcad-server-artifact.mjs b/config/scripts/orcad-distribution/server-artifact/smoke-orcad-server-artifact.mjs
new file mode 100644
index 00000000000..c4c96330aac
--- /dev/null
+++ b/config/scripts/orcad-distribution/server-artifact/smoke-orcad-server-artifact.mjs
@@ -0,0 +1,135 @@
+#!/usr/bin/env node
+// Installs a server-only tarball the documented way, starts `orca serve --recipe-json`, then pairs a
+// second CLI profile with the printed code. Uses only node: builtins so the archive's own Node can run it
+// on an image that has nothing else.
+// node smoke-orcad-server-artifact.mjs --archive out/orca-server/orca-server-linux-x64.tar.gz
+import { execFileSync, spawnSync } from 'node:child_process'
+import { createHash } from 'node:crypto'
+import {
+ closeSync,
+ existsSync,
+ mkdirSync,
+ mkdtempSync,
+ openSync,
+ readFileSync,
+ rmSync
+} from 'node:fs'
+import { tmpdir } from 'node:os'
+import { basename, join, resolve } from 'node:path'
+
+const argv = process.argv.slice(2)
+const archiveArg = argv[argv.indexOf('--archive') + 1]
+if (!argv.includes('--archive') || !archiveArg) {
+ fail('Usage: smoke-orcad-server-artifact.mjs --archive ')
+}
+const archive = resolve(archiveArg)
+const work = mkdtempSync(join(tmpdir(), 'orca-server-smoke-'))
+const install = join(work, 'install')
+const projectRoot = join(work, 'project')
+const serverProfile = join(work, 'server-profile')
+const clientProfile = join(work, 'client-profile')
+// Linux names the CLI orca-ide, like the desktop package.
+const orca = join(install, 'bin', 'orca-ide')
+
+try {
+ verifyChecksum()
+ for (const dir of [install, projectRoot, serverProfile, clientProfile]) {
+ mkdirSync(dir, { recursive: true })
+ }
+ execFileSync('tar', ['-xzf', archive, '-C', install, '--strip-components=1'], {
+ stdio: 'inherit'
+ })
+ const version = run([orca, '--version'], serverProfile)
+ assert(version.status === 0, `orca --version failed:\n${version.stderr}`)
+ console.log(`installed ${version.stdout.trim()}`)
+
+ const started = Date.now()
+ const serve = run(
+ [orca, 'serve', '--recipe-json', '--project-root', projectRoot, '--port', '0'],
+ serverProfile,
+ { timeout: 120_000 }
+ )
+ assert(serve.status === 0, `serve --recipe-json exited ${serve.status}:\n${serve.stderr}`)
+ const recipe = JSON.parse(serve.stdout.trim().split('\n').at(-1))
+ const pairingCode = recipe.pairingCode ?? recipe.connection?.pairingCode
+ assert(
+ typeof pairingCode === 'string' && pairingCode.length > 0,
+ `no pairing code: ${serve.stdout}`
+ )
+ assert(
+ (recipe.projectRoot ?? recipe.connection?.projectRoot) === projectRoot,
+ `recipe JSON names another project root: ${serve.stdout}`
+ )
+ console.log(`PASS serve --recipe-json printed a pairing code in ${Date.now() - started} ms`)
+
+ const status = run([orca, '--pairing-code', pairingCode, 'status', '--json'], clientProfile, {
+ timeout: 60_000
+ })
+ assert(status.status === 0, `paired status failed:\n${status.stderr}\n${status.stdout}`)
+ const result = JSON.parse(status.stdout).result ?? {}
+ assert(
+ result.runtime?.state === 'ready' && result.runtime?.reachable !== false,
+ `paired client did not reach a ready server: ${status.stdout}`
+ )
+ console.log(
+ `PASS a second profile paired and saw runtime ${result.runtime.runtimeId ?? ''} ready`
+ )
+} finally {
+ stopServersFrom(install)
+ rmSync(work, { recursive: true, force: true })
+}
+
+function verifyChecksum() {
+ const sums = `${archive}.sha256`
+ if (!existsSync(sums)) {
+ return
+ }
+ const [expected, name] = readFileSync(sums, 'utf8').trim().split(/\s+/)
+ const actual = createHash('sha256').update(readFileSync(archive)).digest('hex')
+ assert(name === basename(archive) && actual === expected, `${archive} does not match ${sums}`)
+ console.log('PASS checksum')
+}
+
+// stderr goes to a file: the detached server keeps it open, and a pipe would hold spawnSync until timeout.
+function run(command, profile, { timeout = 30_000 } = {}) {
+ const [program, ...args] = command
+ const log = join(work, `${basename(profile)}.stderr.log`)
+ const fd = openSync(log, 'a')
+ try {
+ const result = spawnSync(program, args, {
+ cwd: projectRoot,
+ encoding: 'utf8',
+ timeout,
+ stdio: ['ignore', 'pipe', fd],
+ env: { ...process.env, ORCA_USER_DATA_PATH: profile, ORCA_BACKGROUND_LAUNCH: '1' }
+ })
+ return { ...result, stderr: readFileSync(log, 'utf8').slice(-4000) }
+ } finally {
+ closeSync(fd)
+ }
+}
+
+// --recipe-json leaves the server running on purpose; this smoke must not.
+function stopServersFrom(dir) {
+ const listing = spawnSync('ps', ['-eo', 'pid=,args='], { encoding: 'utf8' })
+ for (const line of (listing.stdout ?? '').split('\n')) {
+ const match = /^\s*(\d+)\s+(.*)$/.exec(line)
+ if (match && match[2].includes(dir) && Number(match[1]) !== process.pid) {
+ try {
+ process.kill(Number(match[1]), 'SIGKILL')
+ } catch {}
+ }
+ }
+}
+
+function assert(condition, message) {
+ if (!condition) {
+ fail(message)
+ }
+}
+
+function fail(message) {
+ console.error(`FAIL ${message}`)
+ process.exitCode = 1
+ throw new Error(message)
+}
diff --git a/config/scripts/orcad-distribution/server-bundle/orcad-child-artifacts.test.mjs b/config/scripts/orcad-distribution/server-bundle/orcad-child-artifacts.test.mjs
deleted file mode 100644
index 0ab57b04a53..00000000000
--- a/config/scripts/orcad-distribution/server-bundle/orcad-child-artifacts.test.mjs
+++ /dev/null
@@ -1,12 +0,0 @@
-import { expect, it } from 'vitest'
-import { ORCAD_ARTIFACTS } from '../../../../src/shared/orcad-artifacts.ts'
-import { ORCAD_CHILD_ENTRY_POINTS, orcadChildOutputFilename } from './orcad-entry-build.mjs'
-
-// A child built but not listed never reaches remote hosts, so its client fails there.
-it.each(Object.entries(ORCAD_CHILD_ENTRY_POINTS))(
- 'ships the %s child bundle as an orcad artifact',
- (_name, entryPoint) => {
- const filenames = ORCAD_ARTIFACTS.map((artifact) => artifact.filename)
- expect(filenames).toContain(orcadChildOutputFilename(entryPoint))
- }
-)
diff --git a/config/scripts/performance/agent-lineage/agent-inspection-cadence-batching-benchmark.mjs b/config/scripts/performance/agent-lineage/agent-inspection-cadence-batching-benchmark.mjs
deleted file mode 100644
index ac0f0ec31af..00000000000
--- a/config/scripts/performance/agent-lineage/agent-inspection-cadence-batching-benchmark.mjs
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/usr/bin/env node
-// Measure real cadence picker against independent ±10% jitter over simulated time.
-// TTL-deduped same-tick work shares one capture, so count distinct wake instants rather than pane wakes.
-import { spawnSync } from 'node:child_process'
-import fs from 'node:fs'
-import nodeModule from 'node:module'
-import path from 'node:path'
-import process from 'node:process'
-import { fileURLToPath, pathToFileURL } from 'node:url'
-
-if (!process.execArgv.includes('--experimental-transform-types')) {
- const result = spawnSync(
- process.execPath,
- ['--experimental-transform-types', '--no-warnings', import.meta.filename],
- { stdio: 'inherit' }
- )
- process.exit(result.status ?? 1)
-}
-
-nodeModule.registerHooks({
- resolve(specifier, context, nextResolve) {
- if (specifier.startsWith('.') && !/\.[cm]?[jt]s$/.test(specifier) && context.parentURL) {
- const candidate = new URL(`${specifier}.ts`, context.parentURL)
- if (fs.existsSync(fileURLToPath(candidate))) {
- return { url: candidate.href, shortCircuit: true }
- }
- }
- return nextResolve(specifier, context)
- }
-})
-
-const ROOT = path.resolve(import.meta.dirname, '../../../..')
-const WINDOW_MS = Number(process.env.ORCA_INSPECTION_BENCH_WINDOW_MS ?? '60000')
-const PANE_COUNTS = (process.env.ORCA_INSPECTION_BENCH_PANES ?? '1,2,4,8')
- .split(',')
- .map((value) => Number(value.trim()))
-
-if (!Number.isSafeInteger(WINDOW_MS) || WINDOW_MS <= 0) {
- throw new Error(`ORCA_INSPECTION_BENCH_WINDOW_MS must be a positive integer, got ${WINDOW_MS}`)
-}
-for (const paneCount of PANE_COUNTS) {
- if (!Number.isSafeInteger(paneCount) || paneCount <= 0) {
- throw new Error(`ORCA_INSPECTION_BENCH_PANES entries must be positive, got ${paneCount}`)
- }
-}
-
-const { nextCadenceInspectionDelayMs } = await import(
- pathToFileURL(
- path.join(
- ROOT,
- 'src/renderer/src/components/terminal-pane/agent-completion/agent-completion-poll-interval.ts'
- )
- ).href
-)
-const { POLL_TIER_INTERVAL_MS } = await import(
- pathToFileURL(
- path.join(
- ROOT,
- 'src/renderer/src/components/terminal-pane/agent-completion/agent-completion-poll-cadence.ts'
- )
- ).href
-)
-const { PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS } = await import(
- pathToFileURL(path.join(ROOT, 'src/shared/process-table-snapshot-reader.ts')).href
-)
-
-// Pre-change: independent ±10% jitter per pane, re-rolled on every reschedule.
-function baselineDelayMs(baseMs) {
- return Math.round(baseMs * (1 + (Math.random() * 0.2 - 0.1)))
-}
-
-function simulate(paneCount, baseMs, pickDelay) {
- const startedAt = 1_700_000_000_000
- const wakes = []
- for (let pane = 0; pane < paneCount; pane += 1) {
- // Panes mount at arbitrary moments, which is what spreads them apart in the first place.
- let clock = startedAt + Math.floor(Math.random() * baseMs)
- while ((clock += pickDelay(baseMs, clock)) < startedAt + WINDOW_MS) {
- wakes.push(clock)
- }
- }
- // Snapshot TTL starts at actual capture, not epoch grid; nearby wakes reuse it.
- let captures = 0
- let snapshotExpiresAt = -Infinity
- for (const wakeAt of wakes.sort((left, right) => left - right)) {
- if (wakeAt >= snapshotExpiresAt) {
- captures += 1
- snapshotExpiresAt = wakeAt + PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS
- }
- }
- return captures
-}
-
-function medianOf(rounds, run) {
- const samples = Array.from({ length: rounds }, run).sort((left, right) => left - right)
- return samples[Math.floor(samples.length / 2)]
-}
-
-const baseMs = POLL_TIER_INTERVAL_MS.idle
-console.log(
- `Agent-completion cadence — whole-host \`ps\` captures over ${WINDOW_MS / 1000}s at the idle tier (${baseMs}ms)\n`
-)
-console.log('| visible panes | before | after | reduction |')
-console.log('| --- | --- | --- | --- |')
-for (const paneCount of PANE_COUNTS) {
- const before = medianOf(21, () => simulate(paneCount, baseMs, baselineDelayMs))
- const after = medianOf(21, () =>
- simulate(paneCount, baseMs, (base, now) =>
- nextCadenceInspectionDelayMs({
- baseMs: base,
- hasConsecutiveErrors: false,
- alignToSharedGrid: true,
- now
- })
- )
- )
- // Short windows may yield no baseline captures; avoid meaningless division by zero.
- const reduction = before > 0 ? `${(((before - after) / before) * 100).toFixed(0)}%` : 'n/a'
- console.log(`| ${paneCount} | ${before} | ${after} | ${reduction} |`)
-}
-
-// Detection latency must not regress: the grid deadline is always within one interval.
-let worstDelay = 0
-for (let sample = 0; sample < 100_000; sample += 1) {
- const now = 1_700_000_000_000 + sample * 7
- worstDelay = Math.max(
- worstDelay,
- nextCadenceInspectionDelayMs({
- baseMs,
- hasConsecutiveErrors: false,
- alignToSharedGrid: true,
- now
- })
- )
-}
-if (worstDelay > baseMs) {
- throw new Error(`grid alignment delayed a poll to ${worstDelay}ms, above the ${baseMs}ms tier`)
-}
-console.log(
- `\nWorst observed wait: ${worstDelay}ms (tier interval ${baseMs}ms) — no inspection is ever delayed.`
-)
diff --git a/config/scripts/performance/agent-lineage/agent-lineage-cycle-cleanup-benchmark.mjs b/config/scripts/performance/agent-lineage/agent-lineage-cycle-cleanup-benchmark.mjs
deleted file mode 100644
index 0693bc025a0..00000000000
--- a/config/scripts/performance/agent-lineage/agent-lineage-cycle-cleanup-benchmark.mjs
+++ /dev/null
@@ -1,90 +0,0 @@
-// Run: node --expose-gc config/scripts/agent-lineage-cycle-cleanup-benchmark.mjs [baseline-ref]
-import assert from 'node:assert/strict'
-import { execFileSync } from 'node:child_process'
-import { readFile } from 'node:fs/promises'
-import { performance } from 'node:perf_hooks'
-import { transform } from 'esbuild'
-import { buildCounterbalancedSchedule } from '../measurement/counterbalanced-benchmark-schedule.mjs'
-
-const sourcePath = 'src/renderer/src/components/dashboard/agent-row-lineage-model.ts'
-const baseline = process.argv[2] ?? '20ab9950654'
-const beforeSource = execFileSync('git', ['show', `${baseline}:${sourcePath}`], {
- encoding: 'utf8',
- windowsHide: true
-})
-async function load(source) {
- const { code } = await transform(source, { loader: 'ts', format: 'esm' })
- return (await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`))
- .buildAgentRowLineageTree
-}
-const before = await load(beforeSource)
-const after = await load(await readFile(sourcePath, 'utf8'))
-
-function row(index, parent) {
- return {
- paneKey: `pane-${index}`,
- entry: {
- terminalHandle: `term-${index}`,
- orchestration: parent === undefined ? undefined : { parentPaneKey: `pane-${parent}` }
- }
- }
-}
-
-// Exercise duplicate keys, disconnected cycles, missing parents, and handle fallback.
-let seed = 7391
-function random(max) {
- seed = (Math.imul(seed, 1664525) + 1013904223) >>> 0
- return seed % max
-}
-for (let sample = 0; sample < 500; sample++) {
- const rows = Array.from({ length: 40 }, () => {
- const value = row(random(30), random(40))
- value.entry.orchestration.parentTerminalHandle = `term-${random(40)}`
- value.entry.orchestration.coordinatorHandle = `term-${random(40)}`
- return value
- })
- if (sample % 2 === 0) {
- rows.unshift(row('root', undefined))
- }
- assert.deepEqual(after(rows), before(rows))
-}
-
-const results = []
-for (const [topology, count] of [
- ['flat', 1000],
- ['all-cycles', 1000],
- ['mixed-cycles', 100],
- ['mixed-cycles', 500],
- ['mixed-cycles', 1000]
-]) {
- const rows = Array.from({ length: count }, (_, index) =>
- row(index, topology === 'flat' ? undefined : index ^ 1)
- )
- if (topology === 'mixed-cycles') {
- rows.unshift(row('root', undefined))
- }
- assert.deepEqual(after(rows), before(rows))
- for (let warmup = 0; warmup < 30; warmup++) {
- before(rows)
- after(rows)
- }
- const samples = { before: [], after: [] }
- for (const pair of buildCounterbalancedSchedule(8, 'before', 'after')) {
- for (const arm of pair) {
- global.gc?.()
- const run = arm === 'before' ? before : after
- const cpu = process.cpuUsage()
- const start = performance.now()
- for (let iteration = 0; iteration < 30; iteration++) {
- run(rows)
- }
- const wallMs = (performance.now() - start) / 30
- const used = process.cpuUsage(cpu)
- samples[arm].push({ wallMs, cpuMs: (used.user + used.system) / 30_000 })
- }
- }
- results.push({ topology, count, samples })
-}
-console.log(
- JSON.stringify({ baseline, node: process.version, parityGraphs: 500, results }, null, 2)
-)
diff --git a/config/scripts/performance/agent-lineage/agent-lineage-reachability-benchmark.mjs b/config/scripts/performance/agent-lineage/agent-lineage-reachability-benchmark.mjs
deleted file mode 100644
index bf881a2be79..00000000000
--- a/config/scripts/performance/agent-lineage/agent-lineage-reachability-benchmark.mjs
+++ /dev/null
@@ -1,118 +0,0 @@
-import assert from 'node:assert/strict'
-import { readFileSync } from 'node:fs'
-import { performance } from 'node:perf_hooks'
-import { transform } from 'esbuild'
-import { buildCounterbalancedSchedule } from '../measurement/counterbalanced-benchmark-schedule.mjs'
-import { summarizeBenchmarkSamples } from '../measurement/benchmark-sample-summary.mjs'
-
-// git show :src/renderer/src/components/dashboard/agent-row-lineage-model.ts | node config/scripts/agent-lineage-reachability-benchmark.mjs
-async function load(source) {
- const { code } = await transform(source, { loader: 'ts', format: 'esm' })
- return (await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`))
- .buildAgentRowLineageTree
-}
-const implementations = {
- before: await load(readFileSync(0, 'utf8')),
- after: await load(
- readFileSync('src/renderer/src/components/dashboard/agent-row-lineage-model.ts', 'utf8')
- )
-}
-function orderedTree(tree) {
- return {
- roots: tree.rootRows,
- children: [...tree.childrenByParentPaneKey],
- childKeys: [...tree.childPaneKeys]
- }
-}
-
-let seed = 42
-const random = (max) => {
- seed = (Math.imul(seed, 1664525) + 1013904223) >>> 0
- return Math.floor((seed / 2 ** 32) * max)
-}
-let differentialCases = 0
-for (let trial = 0; trial < 5000; trial += 1) {
- const count = random(100)
- const rows = Object.freeze(
- Array.from({ length: count }, (_, index) =>
- Object.freeze({
- paneKey: `pane-${random(count + 4)}`,
- index,
- entry: Object.freeze({
- terminalHandle: random(2) ? `term-${random(count)}` : undefined,
- orchestration: Object.freeze({
- parentPaneKey: random(3) ? `pane-${random(count + 4)}` : undefined,
- parentTerminalHandle: random(2) ? `term-${random(count)}` : undefined,
- coordinatorHandle: random(2) ? `term-${random(count)}` : undefined
- })
- })
- })
- )
- )
- assert.deepEqual(
- orderedTree(implementations.after(rows)),
- orderedTree(implementations.before(rows))
- )
- differentialCases += 1
-}
-
-const results = []
-for (const count of [8, 32, 128, 512, 1024]) {
- for (const topology of ['flat', 'fanout', 'balanced', 'chain']) {
- const rows = Array.from({ length: count }, (_, index) => {
- const parent =
- topology === 'fanout'
- ? 0
- : topology === 'balanced'
- ? Math.floor((index - 1) / 4)
- : index - 1
- return {
- paneKey: `pane-${index}`,
- entry: {
- orchestration:
- index > 0 && topology !== 'flat' ? { parentPaneKey: `pane-${parent}` } : undefined
- }
- }
- })
- const expected = orderedTree(implementations.before(rows))
- assert.deepEqual(orderedTree(implementations.after(rows)), expected)
- const iterations = Math.max(5, Math.floor(10_000 / count))
- for (let warmup = 0; warmup < 20; warmup += 1) {
- implementations.before(rows)
- implementations.after(rows)
- }
- /** @type {{ before: number[], after: number[] }} */
- const samples = { before: [], after: [] }
- for (const pair of buildCounterbalancedSchedule(8, 'before', 'after')) {
- for (const arm of pair) {
- let result
- const started = performance.now()
- for (let repeat = 0; repeat < iterations; repeat += 1) {
- result = implementations[arm](rows)
- }
- samples[arm].push(performance.now() - started)
- assert.deepEqual(orderedTree(result), expected)
- }
- }
- results.push({
- count,
- topology,
- iterations,
- meanMicrosecondsPerTree: Object.fromEntries(
- Object.entries(samples).map(([arm, values]) => [
- arm,
- (values.reduce((sum, ms) => sum + ms, 0) * 1000) / values.length / iterations
- ])
- ),
- before: summarizeBenchmarkSamples(samples.before),
- after: summarizeBenchmarkSamples(samples.after)
- })
- }
-}
-console.log(
- JSON.stringify(
- { node: process.version, platform: process.platform, differentialCases, results },
- null,
- 2
- )
-)
diff --git a/config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts b/config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts
deleted file mode 100644
index 774c2411787..00000000000
--- a/config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts
+++ /dev/null
@@ -1,255 +0,0 @@
-// Compare identical benchmark APIs on baseline/candidate; separate instrumented allocation counts from clean timing to avoid patch-induced deoptimization.
-// Run: ORCA_BACKGROUND_LAUNCH=1 pnpm exec vitest run --config config/vitest.agent-status-benchmark.config.ts
-// Reported-user scale: 423 worktrees/634 tabs, rather than the 100-worktree fixture.
-import { writeFileSync } from 'node:fs'
-import { tmpdir } from 'node:os'
-import { join } from 'node:path'
-import { describe, expect, it } from 'vitest'
-import type { AppState } from '@/store/types'
-import type { AgentStatusBatchUpdate } from '@/store/slices/agent-status/agent-status-contract'
-import '@/store/slices/agent-status/agent-status'
-import { MAX_LIVE_AGENT_STATUSES } from '@/store/slices/agent-status/agent-status-capacity-eviction'
-import type { createTestStore } from '@/store/testing/app-store-test-fixture'
-import {
- createAgentStatusPaneRoutingIndex,
- resolvePaneKeyFromRoutingIndex
-} from '@/hooks/ipc-events/agent-status-pane-routing-index'
-import { buildAgentStatusScaleFixture } from '@/store/slices/agent-status/agent-status-scale.test-fixture'
-import { resolvePaneKey } from '@/hooks/ipc-events/agent-status-routing'
-
-const WORKTREES = 423
-const EVENTS = 1_000
-const BATCH_SIZE = 8
-const BASE_TIME = 2_000_000_000
-
-const counters = { maps: 0, sets: 0, tabComparisons: 0 }
-
-const NativeMap = globalThis.Map
-const NativeSet = globalThis.Set
-
-function withAllocationCounting(run: () => T): T {
- class CountingMap extends NativeMap {
- constructor(entries?: Iterable | null) {
- super(entries)
- counters.maps += 1
- }
- }
- class CountingSet extends NativeSet {
- constructor(values?: Iterable | null) {
- super(values)
- counters.sets += 1
- }
- }
- counters.maps = 0
- counters.sets = 0
- globalThis.Map = CountingMap
- globalThis.Set = CountingSet
- try {
- return run()
- } finally {
- globalThis.Map = NativeMap
- globalThis.Set = NativeSet
- }
-}
-
-function buildFixture(countTabIteration: boolean) {
- const fixture = buildAgentStatusScaleFixture(
- countTabIteration
- ? () => {
- counters.tabComparisons += 1
- }
- : undefined
- )
- fixture.store.setState({ setGeneratedTabTitlesFromAgentPrompts: () => {} })
- return fixture
-}
-
-function measure(run: () => void): number {
- const start = performance.now()
- run()
- return performance.now() - start
-}
-
-function per1k(value: number): number {
- return Math.round((value / EVENTS) * 1000)
-}
-
-/** One burst-shaped pass: a fresh index per batch, one pane resolution per event. */
-function runIndexedRouting(store: ReturnType, paneKeys: string[]): void {
- for (let event = 0; event < EVENTS; event += 1) {
- if (event % BATCH_SIZE === 0) {
- store.setState({ agentStatusEpoch: event })
- }
- const index = createAgentStatusPaneRoutingIndex(store.getState())
- resolvePaneKeyFromRoutingIndex(index, paneKeys[event % paneKeys.length])
- }
-}
-
-function runStandaloneRouting(state: AppState, paneKeys: string[]): void {
- for (let event = 0; event < EVENTS; event += 1) {
- resolvePaneKey(state, paneKeys[event % paneKeys.length])
- }
-}
-
-function buildBatches(
- owners: { tabId: string; worktreeId: string }[],
- paneKeys: string[]
-): AgentStatusBatchUpdate[][] {
- const batches: AgentStatusBatchUpdate[][] = []
- for (let event = 0; event < EVENTS; event += 1) {
- const batchIndex = Math.floor(event / BATCH_SIZE)
- const owner = owners[event % owners.length]
- batches[batchIndex] ??= []
- batches[batchIndex].push({
- paneKey: paneKeys[event % paneKeys.length],
- payload: { state: 'working', prompt: `turn ${event}`, agentType: 'claude' },
- timing: { updatedAt: BASE_TIME + event, stateStartedAt: BASE_TIME + event },
- routing: { tabId: owner.tabId, worktreeId: owner.worktreeId }
- })
- }
- return batches
-}
-
-const nextTick = (): Promise =>
- new Promise((resolve) => {
- queueMicrotask(resolve)
- })
-
-async function runCommitPass(
- store: ReturnType,
- batches: AgentStatusBatchUpdate[][],
- onBatch?: (elapsed: number) => void
-): Promise {
- for (const batch of batches) {
- const elapsed = measure(() => {
- store.getState().setAgentStatuses(batch)
- })
- onBatch?.(elapsed)
- // Each 33 ms burst is its own tick in production; let the deferred freshness scan run.
- await nextTick()
- }
-}
-
-describe('agent-status hot path benchmark', () => {
- it('reports routing, resolution and commit cost at 423 worktrees', async () => {
- const report: Record = {}
- const fixture = buildFixture(false)
- const index = createAgentStatusPaneRoutingIndex(fixture.store.getState())
- for (const [position, paneKey] of fixture.paneKeys.entries()) {
- const resolved = resolvePaneKeyFromRoutingIndex(index, paneKey)
- expect(resolved).toMatchObject({
- exists: true,
- owningWorktreeId: fixture.owners[position].worktreeId
- })
- expect(resolved).toEqual(resolvePaneKey(fixture.store.getState(), paneKey))
- }
-
- {
- const alloc = buildFixture(false)
- withAllocationCounting(() => runIndexedRouting(alloc.store, alloc.paneKeys))
- report['routing.indexed.mapAllocationsPer1kEvents'] = per1k(counters.maps)
- report['routing.indexed.setAllocationsPer1kEvents'] = per1k(counters.sets)
-
- const warm = buildFixture(false)
- runIndexedRouting(warm.store, warm.paneKeys)
- const clean = buildFixture(false)
- report['routing.indexed.ms'] = Number(
- measure(() => runIndexedRouting(clean.store, clean.paneKeys)).toFixed(2)
- )
- }
-
- {
- const alloc = buildFixture(true)
- counters.tabComparisons = 0
- withAllocationCounting(() => runStandaloneRouting(alloc.store.getState(), alloc.paneKeys))
- report['routing.standalone.tabComparisonsPer1kEvents'] = per1k(counters.tabComparisons)
- report['routing.standalone.mapAllocationsPer1kEvents'] = per1k(counters.maps)
-
- const warm = buildFixture(false)
- runStandaloneRouting(warm.store.getState(), warm.paneKeys)
- const clean = buildFixture(false)
- report['routing.standalone.ms'] = Number(
- measure(() => runStandaloneRouting(clean.store.getState(), clean.paneKeys)).toFixed(2)
- )
- }
-
- {
- const alloc = buildFixture(true)
- counters.tabComparisons = 0
- runIndexedRouting(alloc.store, alloc.paneKeys)
- report['routing.indexed.tabComparisonsPer1kEvents'] = per1k(counters.tabComparisons)
- }
-
- // Store commits: 1,000 updates folded in 125 transactions, one microtask tick per transaction.
- {
- const counted = buildFixture(false)
- const nativeObjectAssign = Object.assign
- const nativeObjectValues = Object.values
- let objectAssignCalls = 0
- let objectAssignPropertyCopies = 0
- let freshnessEntryVisits = 0
- // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: `Object.assign` is an overload set no single arrow can satisfy; this wrapper only counts calls and forwards every argument to the captured native implementation.
- Object.assign = ((
- target: Record,
- ...sources: readonly Record[]
- ) => {
- objectAssignCalls += 1
- for (const source of sources) {
- if (source && typeof source === 'object') {
- objectAssignPropertyCopies += Object.keys(source).length
- }
- }
- return nativeObjectAssign(target, ...sources)
- }) as typeof Object.assign
- // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: same overload-set limit as the `Object.assign` wrapper above; this one counts visited entries and returns the native result unchanged.
- Object.values = ((value: Record) => {
- const result = nativeObjectValues(value)
- freshnessEntryVisits += result.length
- return result
- }) as typeof Object.values
- const countedBatches = buildBatches(counted.owners, counted.paneKeys)
- try {
- await runCommitPass(counted.store, countedBatches)
- } finally {
- Object.assign = nativeObjectAssign
- Object.values = nativeObjectValues
- }
- report['commit.objectAssignCallsPer1kUpdates'] = per1k(objectAssignCalls)
- report['commit.stagedPropertyCopiesPer1kUpdates'] = per1k(objectAssignPropertyCopies)
- report['commit.freshnessEntryVisitsPer1kUpdates'] = per1k(freshnessEntryVisits)
- report['commit.transactions'] = countedBatches.length
- const committed = counted.store.getState().agentStatusByPaneKey
- const expected = new Map(
- countedBatches
- .flat()
- .slice(-MAX_LIVE_AGENT_STATUSES)
- .map((update) => [update.paneKey, update])
- )
- expect(Object.keys(committed).sort()).toEqual([...expected.keys()].sort())
- for (const [paneKey, update] of expected) {
- expect(committed[paneKey]).toMatchObject({
- ...update.payload,
- ...update.timing,
- ...update.routing
- })
- }
-
- const warm = buildFixture(false)
- await runCommitPass(warm.store, buildBatches(warm.owners, warm.paneKeys))
- const clean = buildFixture(false)
- let elapsed = 0
- await runCommitPass(clean.store, buildBatches(clean.owners, clean.paneKeys), (batchMs) => {
- elapsed += batchMs
- })
- report['commit.ms'] = Number(elapsed.toFixed(2))
- }
-
- const outputPath =
- process.env.ORCA_AGENT_STATUS_BENCH_OUTPUT ??
- join(tmpdir(), 'agent-status-hot-path-benchmark.json')
- writeFileSync(
- outputPath,
- `${JSON.stringify({ worktrees: WORKTREES, events: EVENTS, report }, null, 2)}\n`
- )
- })
-})
diff --git a/config/scripts/performance/claude-usage/claude-usage-cache-representation-check.mjs b/config/scripts/performance/claude-usage/claude-usage-cache-representation-check.mjs
deleted file mode 100644
index 212ec5a974b..00000000000
--- a/config/scripts/performance/claude-usage/claude-usage-cache-representation-check.mjs
+++ /dev/null
@@ -1,162 +0,0 @@
-#!/usr/bin/env node
-import assert from 'node:assert/strict'
-import { appendFile, mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
-import { createHash } from 'node:crypto'
-import { tmpdir } from 'node:os'
-import { join } from 'node:path'
-import { fileURLToPath } from 'node:url'
-import { parseArgs } from 'node:util'
-import { runProcessSync } from '@orca/process-host'
-import {
- loadClaudeUsageBenchmarkScanner,
- readClaudeUsageBenchmarkBaselineSources
-} from './claude-usage-benchmark-scanner.mjs'
-
-const ROOT = fileURLToPath(new URL('../../../..', import.meta.url))
-const STORE_PATH = 'src/main/claude-usage/store.ts'
-const { values } = parseArgs({
- options: {
- 'baseline-ref': { type: 'string', default: '51e7181850b022bae2d41091fe1229accef4bd50' },
- 'usage-keys': { type: 'string', default: '16384' },
- output: { type: 'string' }
- }
-})
-const usageKeys = Number(values['usage-keys'])
-assert(
- Number.isSafeInteger(usageKeys) && usageKeys > 7,
- 'usage-keys must be an integer above seven'
-)
-process.env.ORCA_CLAUDE_USAGE_APPEND_BENCH_BASELINE = values['baseline-ref']
-
-function serializationIndent(source) {
- const indent = /jsonIndent:\s*(\d+)/.exec(source)
- return indent ? Number(indent[1]) : undefined
-}
-
-function sourceHash(source) {
- return createHash('sha256').update(source).digest('hex')
-}
-
-function persistedState(result) {
- return {
- schemaVersion: 6,
- worktreeFingerprint: '[]',
- processedFiles: result.processedFiles,
- sessions: result.sessions,
- dailyAggregates: result.dailyAggregates,
- scanState: {
- enabled: true,
- lastScanStartedAt: 1,
- lastScanCompletedAt: 2,
- lastScanError: null
- }
- }
-}
-
-function usageRecord(cwd, index, inputTokens = 100) {
- return `${JSON.stringify({
- type: 'assistant',
- sessionId: 'active-session',
- timestamp: new Date(Date.UTC(2026, 9, 9, 12, 0, index)).toISOString(),
- requestId: `request-${index}`,
- cwd,
- gitBranch: 'benchmark',
- message: {
- id: `message-${index}`,
- model: 'claude-sonnet-4-6',
- usage: {
- input_tokens: inputTokens,
- output_tokens: 10,
- cache_read_input_tokens: 0,
- cache_creation_input_tokens: 20,
- cache_creation: { ephemeral_1h_input_tokens: 5 }
- }
- }
- })}\n`
-}
-
-const home = await mkdtemp(join(tmpdir(), 'orca-claude-cache-representation-'))
-try {
- const project = join(home, '.claude', 'projects', 'benchmark')
- const cwd = join(home, 'repo')
- await mkdir(project, { recursive: true })
- await mkdir(cwd)
- const transcriptPath = join(project, 'active-session.jsonl')
- const history = Array.from({ length: usageKeys }, (_, index) => usageRecord(cwd, index)).join('')
- const baseline = await readClaudeUsageBenchmarkBaselineSources()
- const storeRead = runProcessSync({
- program: 'git',
- args: ['show', `${baseline.baselineCommit}:${STORE_PATH}`],
- cwd: ROOT,
- timeoutMs: 10_000,
- maxOutputBytes: 1024 * 1024,
- env: { ...process.env, ORCA_BACKGROUND_LAUNCH: '1' }
- })
- assert.equal(storeRead.code, 0, storeRead.stderr)
- const currentStore = await readFile(join(ROOT, ...STORE_PATH.split('/')), 'utf8')
- const stores = { baseline: storeRead.stdout, current: currentStore }
- const loaded = await Promise.all([
- loadClaudeUsageBenchmarkScanner(home, baseline.sources, new Map(), baseline.baselineCommit),
- loadClaudeUsageBenchmarkScanner(home)
- ])
- const arms = {}
- const results = []
- for (const [index, arm] of ['baseline', 'current'].entries()) {
- const { scanner, bundleSha256, sourceFingerprints } = loaded[index]
- await writeFile(transcriptPath, history)
- const cold = await scanner.scanClaudeUsageFiles([], [], undefined, [])
- await appendFile(transcriptPath, usageRecord(cwd, 7, 2_000))
- const result = await scanner.scanClaudeUsageFiles(
- [],
- JSON.parse(JSON.stringify(cold.processedFiles)),
- undefined,
- []
- )
- const fresh = await scanner.scanClaudeUsageFiles([], [], undefined, [])
- assert.deepEqual(result, fresh, `${arm} resume differs from a fresh scan`)
- assert.equal(result.processedFiles[0].ownedDedupeKeys.length, usageKeys)
- assert.equal(result.sessions[0].totalInputTokens, usageKeys * 100 + 1_900)
- const state = persistedState(result)
- const compact = JSON.stringify(state)
- const indented = JSON.stringify(state, null, 2)
- const indent = serializationIndent(stores[arm])
- assert.deepEqual(JSON.parse(compact), JSON.parse(indented))
- assert.deepEqual(structuredClone(state), state)
- arms[arm] = {
- compactFullStateBytes: Buffer.byteLength(compact),
- indentedFullStateBytes: Buffer.byteLength(indented),
- productionFullStateBytes: Buffer.byteLength(JSON.stringify(state, null, indent)),
- productionIndent: indent ?? null,
- storeSha256: sourceHash(stores[arm]),
- ownedKeys: result.processedFiles[0].ownedDedupeKeys.length,
- bundleSha256,
- sourceFingerprints
- }
- results.push(result)
- }
- assert.deepEqual(results[0].sessions, results[1].sessions)
- assert.deepEqual(results[0].dailyAggregates, results[1].dailyAggregates)
- const report = {
- purpose: 'Actual scanner cache representation byte counts; no timing or peak-memory claim.',
- node: process.version,
- platform: process.platform,
- arch: process.arch,
- baselineRef: baseline.baselineRef,
- baselineCommit: baseline.baselineCommit,
- usageKeys,
- historyBytes: Buffer.byteLength(history),
- stateFields: 'schema v6; source cache, session/daily projections and fixed scan-state metadata',
- exactColdParity: true,
- crossArmProjectionParity: true,
- serializationParity: true,
- structuredCloneParity: true,
- toolingSha256: sourceHash(await readFile(import.meta.filename)),
- arms
- }
- if (values.output) {
- await writeFile(values.output, `${JSON.stringify(report, null, 2)}\n`)
- }
- console.log(JSON.stringify(report))
-} finally {
- await rm(home, { recursive: true, force: true })
-}
diff --git a/config/scripts/performance/native-chat/native-chat-live-session-benchmark.ts b/config/scripts/performance/native-chat/native-chat-live-session-benchmark.ts
deleted file mode 100644
index bb1db7cef21..00000000000
--- a/config/scripts/performance/native-chat/native-chat-live-session-benchmark.ts
+++ /dev/null
@@ -1,291 +0,0 @@
-// Run pnpm exec tsx config/scripts/native-chat-live-session-benchmark.ts. Synthetic 2KB messages stress fallback-key normalization.
-// Excludes parsing, IPC/remote latency, React/DOM; results are not average production size or end-to-end frame latency.
-
-import { deepStrictEqual, strictEqual } from 'node:assert'
-import { performance } from 'node:perf_hooks'
-import type {
- NativeChatMessage,
- NativeChatSession
-} from '../../../../src/shared/native-chat/native-chat-types'
-import { getVerifiedNativeChatCommands } from '../../../../src/shared/native-chat/native-chat-agent-profiles'
-import { surfaceSkillInvocationUserTurns } from '../../../../src/shared/native-chat/native-chat-command-envelope'
-import { prepareNativeChatLiveMessages } from '../../../../src/renderer/src/components/native-chat/session/terminal/assembly/native-chat-live-message-preparation'
-import { mergeNativeChatLiveSession } from '../../../../src/shared/native-chat/native-chat-live-status'
-import { assembleNativeChatSession } from '../../../../src/renderer/src/components/native-chat/session/terminal/assembly/native-chat-session-assembler'
-
-type Operation = (index: number) => number
-type ExpectedChecksum = (iterations: number) => number
-type Calibration = { iterations: number; elapsedMs: number; capped: boolean }
-
-const TARGET_SAMPLE_MS = 50
-const MAX_ITERATIONS = 16_777_216
-const ROUNDS = 10
-let checksum = 0
-let expectedChecksum = 0
-let validatedCases = 0
-let cappedCalibrations = 0
-const sessionSink: { value: NativeChatSession | null } = { value: null }
-let messageArraySink: NativeChatMessage[] | null = null
-let contentSink = ''
-const benchmarkStartedAt = performance.now()
-
-function proseFixture(count: number, bytes: number, withTurnId: boolean): NativeChatMessage[] {
- const payload = 'Ab Cd '.repeat(Math.ceil(bytes / 7)).slice(0, bytes)
- return Array.from({ length: count }, (_, index) => ({
- id: `message-${index}`,
- role: index % 2 === 0 ? ('user' as const) : ('assistant' as const),
- blocks: [{ type: 'text' as const, text: `${payload}-${index}` }],
- timestamp: index,
- source: 'transcript' as const,
- ...(withTurnId ? { turnId: `turn-${index}` } : {})
- }))
-}
-
-function toolFixture(count: number): NativeChatMessage[] {
- return Array.from({ length: count }, (_, index) => ({
- id: `tool-${index}`,
- role: index % 2 === 0 ? ('assistant' as const) : ('tool' as const),
- blocks:
- index % 2 === 0
- ? [
- {
- type: 'tool-call' as const,
- name: 'read',
- input: { path: `${index}.txt`, context: 'x'.repeat(512) }
- }
- ]
- : [{ type: 'tool-result' as const, output: `result-${index}-${'x'.repeat(512)}` }],
- timestamp: index,
- source: 'transcript' as const
- }))
-}
-
-function legacySession(messages: NativeChatMessage[]): NativeChatSession {
- return assembleNativeChatSession({
- sources: { transcript: messages },
- sessionId: 'benchmark',
- agent: 'claude'
- })
-}
-
-function legacyMessageUpdateSession(messages: NativeChatMessage[]): NativeChatSession {
- const commandNames = new Set(
- getVerifiedNativeChatCommands('claude').map((command) => command.name)
- )
- return legacySession(surfaceSkillInvocationUserTurns(messages, commandNames))
-}
-
-function directMessageUpdateSession(messages: NativeChatMessage[]): NativeChatSession {
- return mergeNativeChatLiveSession({
- messages: prepareNativeChatLiveMessages(messages, 'claude'),
- sessionId: 'benchmark',
- agent: 'claude',
- hookState: null
- })
-}
-
-function blockContent(message: NativeChatMessage): string {
- const block = message.blocks[0]
- if (!block) {
- return ''
- }
- if (block.type === 'text') {
- return block.text
- }
- if (block.type === 'tool-call') {
- return block.name
- }
- if (block.type === 'tool-result') {
- return block.output
- }
- if (block.type === 'image-ref') {
- return block.path ?? block.url ?? block.alt ?? ''
- }
- return block.type === 'background-task' ? block.taskId : block.groupId
-}
-
-function messageWeight(message: NativeChatMessage, content: string): number {
- const idTail = message.id.length > 0 ? message.id.charCodeAt(message.id.length - 1) : 0
- const contentTail = content.length > 0 ? content.charCodeAt(content.length - 1) : 0
- return message.id.length + idTail + message.role.charCodeAt(0) + content.length + contentTail
-}
-
-function consumeSession(session: NativeChatSession, index: number): number {
- sessionSink.value = session
- messageArraySink = session.messages
- const message = session.messages[index % session.messages.length]
- if (!message) {
- contentSink = ''
- return session.status.charCodeAt(0)
- }
- contentSink = blockContent(message)
- return session.status.charCodeAt(0) + messageWeight(message, contentSink)
-}
-
-function cyclicChecksum(values: readonly number[], iterations: number): number {
- if (values.length === 0) {
- return 0
- }
- const cycle = values.reduce((sum, value) => sum + value, 0)
- const fullCycles = Math.floor(iterations / values.length)
- let total = cycle * fullCycles
- for (let index = 0; index < iterations % values.length; index += 1) {
- total += values[index]!
- }
- return total
-}
-
-function sessionExpectedChecksum(session: NativeChatSession): ExpectedChecksum {
- const statusWeight = session.status.charCodeAt(0)
- const weights = session.messages.map((message) => {
- const content = blockContent(message)
- return messageWeight(message, content)
- })
- return (iterations) => statusWeight * iterations + cyclicChecksum(weights, iterations)
-}
-
-function runSample(operation: Operation, expected: ExpectedChecksum, iterations: number): number {
- let sampleChecksum = 0
- const startedAt = performance.now()
- for (let index = 0; index < iterations; index += 1) {
- sampleChecksum += operation(index)
- }
- const elapsedMs = performance.now() - startedAt
- checksum += sampleChecksum
- expectedChecksum += expected(iterations)
- return elapsedMs
-}
-
-function median(samples: number[]): number {
- return [...samples].sort((left, right) => left - right)[Math.floor(samples.length / 2)]!
-}
-
-function calibrate(operation: Operation, expected: ExpectedChecksum): Calibration {
- let iterations = 1
- let reachedTarget = false
- while (true) {
- const elapsedMs = runSample(operation, expected, iterations)
- if (elapsedMs >= TARGET_SAMPLE_MS) {
- if (reachedTarget) {
- return { iterations, elapsedMs, capped: false }
- }
- reachedTarget = true
- continue
- }
- if (iterations >= MAX_ITERATIONS) {
- return { iterations, elapsedMs, capped: true }
- }
- reachedTarget = false
- iterations = Math.min(iterations * 2, MAX_ITERATIONS)
- }
-}
-
-function benchmark(
- name: string,
- baseline: Operation,
- optimized: Operation,
- expected: ExpectedChecksum
-): void {
- const baselineValue = baseline(0)
- const optimizedValue = optimized(0)
- strictEqual(optimizedValue, baselineValue, `${name}: timed arms returned different checksums`)
- validatedCases += 1
- const baselineCalibration = calibrate(baseline, expected)
- const optimizedCalibration = calibrate(optimized, expected)
- cappedCalibrations += Number(baselineCalibration.capped) + Number(optimizedCalibration.capped)
- const baselineSamples: number[] = []
- const optimizedSamples: number[] = []
- for (let round = 0; round < ROUNDS; round += 1) {
- if (round % 2 === 0) {
- baselineSamples.push(
- runSample(baseline, expected, baselineCalibration.iterations) /
- baselineCalibration.iterations
- )
- optimizedSamples.push(
- runSample(optimized, expected, optimizedCalibration.iterations) /
- optimizedCalibration.iterations
- )
- } else {
- optimizedSamples.push(
- runSample(optimized, expected, optimizedCalibration.iterations) /
- optimizedCalibration.iterations
- )
- baselineSamples.push(
- runSample(baseline, expected, baselineCalibration.iterations) /
- baselineCalibration.iterations
- )
- }
- }
- const baselineMs = median(baselineSamples)
- const optimizedMs = median(optimizedSamples)
- const speedup = baselineMs / Math.max(optimizedMs, Number.EPSILON)
- console.log(
- `${name}\t${baselineCalibration.iterations}\t${optimizedCalibration.iterations}\t${baselineCalibration.elapsedMs.toFixed(1)}\t${optimizedCalibration.elapsedMs.toFixed(1)}\t${baselineMs.toFixed(6)}\t${optimizedMs.toFixed(6)}\t${speedup.toFixed(1)}x`
- )
-}
-
-function benchmarkSessionArms(
- name: string,
- baselineSession: () => NativeChatSession,
- optimizedSession: () => NativeChatSession
-): void {
- const expectedSession = baselineSession()
- deepStrictEqual(optimizedSession(), expectedSession, `${name}: session mismatch`)
- const expected = sessionExpectedChecksum(expectedSession)
- benchmark(
- name,
- (index) => consumeSession(baselineSession(), index),
- (index) => consumeSession(optimizedSession(), index),
- expected
- )
-}
-
-function benchmarkMessageUpdate(name: string, messages: NativeChatMessage[]): void {
- benchmarkSessionArms(
- name,
- () => legacyMessageUpdateSession(messages),
- () => directMessageUpdateSession(messages)
- )
-}
-
-const prose300 = proseFixture(300, 2_048, false)
-const fixtures = [
- ['300 x 2KB prose, no turnId', prose300],
- ['300 x 2KB prose, with turnId', proseFixture(300, 2_048, true)],
- ['300 tool-heavy, no turnId', toolFixture(300)],
- ['100 x 2KB prose, no turnId', proseFixture(100, 2_048, false)],
- ['500 x 2KB prose, no turnId', proseFixture(500, 2_048, false)]
-] as const
-
-console.log(
- `Node ${process.version}; ${ROUNDS} alternating interleaved median rounds; ${TARGET_SAMPLE_MS} ms calibration target; ${MAX_ITERATIONS} iteration cap`
-)
-console.log(
- 'case\tbaseline iters\toptimized iters\tbaseline cal ms\toptimized cal ms\tbaseline ms/op\toptimized ms/op\tspeedup'
-)
-
-for (const [name, messages] of fixtures) {
- benchmarkMessageUpdate(name, messages)
-}
-
-benchmarkSessionArms(
- '300 x 2KB status-only frame',
- () => legacySession(prose300),
- () =>
- mergeNativeChatLiveSession({
- messages: prose300,
- sessionId: 'benchmark',
- agent: 'claude',
- hookState: null
- })
-)
-
-strictEqual(checksum, expectedChecksum, 'benchmark checksum accounting drifted')
-strictEqual(sessionSink.value?.sessionId, 'benchmark', 'session outputs did not escape')
-strictEqual(Array.isArray(messageArraySink), true, 'message arrays did not escape')
-strictEqual(contentSink.length > 0, true, 'message content did not escape')
-console.log(
- `validated=${validatedCases} cases, checksum=${checksum}, capped calibrations=${cappedCalibrations}, runtime=${(
- performance.now() - benchmarkStartedAt
- ).toFixed(0)} ms`
-)
diff --git a/config/scripts/performance/session-search/session-search-pass-benchmark.ts b/config/scripts/performance/session-search/session-search-pass-benchmark.ts
deleted file mode 100644
index 143ab0b6eda..00000000000
--- a/config/scripts/performance/session-search/session-search-pass-benchmark.ts
+++ /dev/null
@@ -1,87 +0,0 @@
-import assert from 'node:assert/strict'
-import { mkdir, mkdtemp, rename, rm } from 'node:fs/promises'
-import { tmpdir } from 'node:os'
-import { basename, join } from 'node:path'
-import { isolatedScanRoots } from '../../../../src/main/ai-vault/session-scanner-test-fixtures'
-import { resetSessionParseCacheForTests } from '../../../../src/main/ai-vault/parse-cache/session-parse-cache-store'
-import { resetTranscriptConsumersForTests } from '../../../../src/main/ai-vault/transcripts/session-transcript-consumers'
-import { SessionSearchIndexer } from '../../../../src/main/ai-vault-search/session-search-indexer'
-import { writeSyntheticTranscriptCorpus } from '../../../../src/main/ai-vault-search/session-search-synthetic-corpus'
-
-// Bundle with esbuild --bundle --platform=node and run on target host over synthetic corpus only; never use real transcripts.
-// Price warm stat-only cycle/sweep used to choose reconcile interval, without setting it or reading already-current content.
-
-const SESSIONS = 5_000
-const TURNS_PER_SESSION = 4
-const PROJECTS = 40
-
-const corpus = await writeSyntheticTranscriptCorpus({
- sessions: SESSIONS,
- turnsPerSession: TURNS_PER_SESSION
-})
-const root = await mkdtemp(join(tmpdir(), 'orca-search-pass-'))
-const roots = isolatedScanRoots(root)
-const databasePath = join(root, 'index', 'session-search.sqlite')
-
-try {
- // Spread synthetic corpus over project dirs to model discovery’s readdir cost instead of one flat listing.
- for (let index = 0; index < PROJECTS; index++) {
- await mkdir(join(roots.claudeProjectsDir, `project-${index}`), { recursive: true })
- }
- await Promise.all(
- corpus.files.map((path, index) =>
- rename(path, join(roots.claudeProjectsDir, `project-${index % PROJECTS}`, basename(path)))
- )
- )
-
- resetSessionParseCacheForTests()
- resetTranscriptConsumersForTests()
- const errors: unknown[] = []
- const indexer = new SessionSearchIndexer({
- databasePath,
- roots,
- historyDays: null,
- // Finish cold indexing before warm measurement; deadline would contaminate timings with backlog.
- passDeadlineMs: Number.MAX_SAFE_INTEGER,
- onError: (error) => errors.push(error)
- })
- try {
- const coldStarted = performance.now()
- await indexer.start()
- const coldMs = performance.now() - coldStarted
- assert.deepEqual(errors, [])
- assert.equal(indexer.status().filesIndexed, SESSIONS, 'indexed file count')
-
- const sweepStarted = performance.now()
- await indexer.reconcile({ full: true })
- const sweepMs = performance.now() - sweepStarted
-
- const cycleStarted = performance.now()
- await indexer.reconcile({ full: false })
- const cycleMs = performance.now() - cycleStarted
-
- assert.deepEqual(errors, [])
- assert.equal(indexer.status().filesDue, 0, 'nothing owed after a warm sweep')
- console.log(
- JSON.stringify(
- {
- transcripts: SESSIONS,
- projectDirectories: PROJECTS,
- transcriptMb: Math.round((corpus.transcriptBytes / (1024 * 1024)) * 100) / 100,
- coldBuildMs: Math.round(coldMs),
- warmSweepMs: Math.round(sweepMs),
- warmCycleMs: Math.round(cycleMs)
- },
- null,
- 2
- )
- )
- } finally {
- indexer.close()
- resetTranscriptConsumersForTests()
- resetSessionParseCacheForTests()
- }
-} finally {
- await rm(corpus.root, { recursive: true, force: true })
- await rm(root, { recursive: true, force: true })
-}
diff --git a/config/scripts/performance/session-search/session-search-retention-benchmark.ts b/config/scripts/performance/session-search/session-search-retention-benchmark.ts
deleted file mode 100644
index 7ad77f618ae..00000000000
--- a/config/scripts/performance/session-search/session-search-retention-benchmark.ts
+++ /dev/null
@@ -1,143 +0,0 @@
-import assert from 'node:assert/strict'
-import { mkdtemp, rm, stat } from 'node:fs/promises'
-import { tmpdir } from 'node:os'
-import { join } from 'node:path'
-import { setImmediate as yieldToEventLoop } from 'node:timers/promises'
-import {
- syntheticCandidate,
- syntheticSession,
- userMessages
-} from '../../../../src/main/ai-vault-search/session-search-index-test-fixture'
-import { SessionSearchStore } from '../../../../src/main/ai-vault-search/session-search-store'
-import SyncDatabase from '../../../../src/main/sqlite/sync-database'
-
-// Bundle with esbuild --bundle --platform=node and run on target host. All arms seed through store; only whole-file baseline bypasses shipped purge.
-
-const ROWS = 60_000
-
-/** The purge yields with `setImmediate` between chunks, so a peer chain samples each gap. */
-async function sampleLoopStalls(running: () => boolean, intervals: number[]): Promise {
- let previous = performance.now()
- while (running()) {
- await yieldToEventLoop()
- const now = performance.now()
- intervals.push(now - previous)
- previous = now
- }
-}
-
-/** What a search would still return: rows whose session row is still there. */
-function visibleRows(db: SyncDatabase): number {
- return (
- db
- .prepare(`SELECT count(*) AS n FROM messages m JOIN sessions s ON s.id = m.session_row_id`)
- .get() as { n: number }
- ).n
-}
-
-const root = await mkdtemp(join(tmpdir(), 'orca-search-retention-bench-'))
-try {
- for (const mode of ['whole-file', 'batched', 'batched-pinned-reader']) {
- const path = join(root, `${mode}.sqlite`)
- const errors: unknown[] = []
- const store = new SessionSearchStore(path, (error) => errors.push(error))
- let reader: SyncDatabase | null = null
- try {
- const write = store.beginWrite(syntheticCandidate(), 'replace', 0)!
- for (const message of userMessages(
- 'synthetic benchmark needle repeated context for a representative coding conversation with commands and paths src/example.ts',
- ROWS
- )) {
- write.add(message)
- }
- assert.equal(
- write.commit({
- session: syntheticSession(),
- byteOffset: 4096,
- incomplete: false
- }),
- true
- )
- assert.deepEqual(errors, [])
- // Truncating first is what makes walBytes below the purge's own growth.
- const checkpoint = new SyncDatabase(path)
- checkpoint.pragma('wal_checkpoint(TRUNCATE)')
- checkpoint.close()
- if (mode === 'batched-pinned-reader') {
- reader = new SyncDatabase(path, { readonly: true })
- reader.exec('BEGIN')
- reader.prepare('SELECT count(*) FROM messages').get()
- }
- const probe = new SyncDatabase(path, { readonly: true })
- const intervals: number[] = []
- const started = performance.now()
- if (mode === 'whole-file') {
- const raw = new SyncDatabase(path)
- try {
- raw.exec('BEGIN IMMEDIATE')
- const ids = raw.prepare('SELECT id FROM messages').all() as {
- id: number
- }[]
- for (const { id } of ids) {
- raw.prepare('DELETE FROM messages_fts WHERE rowid=?').run(id)
- }
- raw.exec('DELETE FROM messages; DELETE FROM sessions; DELETE FROM files; COMMIT')
- } finally {
- raw.close()
- }
- intervals.push(performance.now() - started)
- } else {
- let purging = true
- const purge = store.purgeOlderThan(Date.now() + 60_000)
- // First transaction cuts session from file, hiding search results immediately before chunked deletion finishes.
- const hiddenEarly = yieldToEventLoop().then(() => visibleRows(probe))
- const sampler = sampleLoopStalls(() => purging, intervals)
- await purge
- purging = false
- await sampler
- assert.equal(await hiddenEarly, 0)
- assert.deepEqual(errors, [])
- }
- const wallMs = performance.now() - started
- probe.close()
- reader?.exec('COMMIT')
- reader?.close()
- reader = null
- const after = new SyncDatabase(path, { readonly: true })
- try {
- for (const table of ['messages_fts']) {
- assert.equal(
- (
- after.prepare(`SELECT count(*) AS n FROM ${table}`).get() as {
- n: number
- }
- ).n,
- 0
- )
- }
- } finally {
- after.close()
- }
- const walBytes = (await stat(`${path}-wal`)).size
- intervals.sort((a, b) => a - b)
- console.log(
- JSON.stringify({
- mode,
- platform: process.platform,
- node: process.version,
- rows: ROWS,
- wallMs: Math.round(wallMs),
- samples: intervals.length,
- maxStepMs: Math.round(intervals.at(-1) ?? 0),
- p95StepMs: Math.round(intervals[Math.floor(intervals.length * 0.95)] ?? 0),
- walBytes
- })
- )
- } finally {
- reader?.close()
- store.close()
- }
- }
-} finally {
- await rm(root, { recursive: true, force: true })
-}
diff --git a/config/scripts/performance/session-transcripts/markdown-note-line-scan-benchmark.mjs b/config/scripts/performance/session-transcripts/markdown-note-line-scan-benchmark.mjs
index 1cbb8c3b037..811fa997a3b 100644
--- a/config/scripts/performance/session-transcripts/markdown-note-line-scan-benchmark.mjs
+++ b/config/scripts/performance/session-transcripts/markdown-note-line-scan-benchmark.mjs
@@ -6,11 +6,12 @@ import { performance } from 'node:perf_hooks'
import { build } from 'esbuild'
import { buildCounterbalancedSchedule } from '../measurement/counterbalanced-benchmark-schedule.mjs'
-const sourcePath = 'src/renderer/src/lib/markdown-review-notes.ts'
+const sourcePath = 'src/renderer/src/lib/editor/markdown/review-notes/markdown-review-notes.ts'
+const baselineSourcePath = 'src/renderer/src/lib/markdown-review-notes.ts'
const baseline = process.argv[2] ?? '20ab9950654'
-async function load(contents) {
+async function load(contents, inputPath) {
const result = await build({
- stdin: { contents, loader: 'ts', resolveDir: dirname(resolve(sourcePath)) },
+ stdin: { contents, loader: 'ts', resolveDir: dirname(resolve(inputPath)) },
bundle: true,
platform: 'node',
format: 'esm',
@@ -21,9 +22,10 @@ async function load(contents) {
)
}
const before = await load(
- execFileSync('git', ['show', `${baseline}:${sourcePath}`], { encoding: 'utf8' })
+ execFileSync('git', ['show', `${baseline}:${baselineSourcePath}`], { encoding: 'utf8' }),
+ baselineSourcePath
)
-const after = await load(readFileSync(sourcePath, 'utf8'))
+const after = await load(readFileSync(sourcePath, 'utf8'), sourcePath)
const results = []
for (const [name, lineCount, width, count, iterations] of [
['small', 20, 40, 1, 1000],
diff --git a/config/scripts/performance/terminal-stream/codex-capacity-status-benchmark.ts b/config/scripts/performance/terminal-stream/codex-capacity-status-benchmark.ts
deleted file mode 100644
index 006dcc785a1..00000000000
--- a/config/scripts/performance/terminal-stream/codex-capacity-status-benchmark.ts
+++ /dev/null
@@ -1,137 +0,0 @@
-// Run: ORCA_BACKGROUND_LAUNCH=1 node --import tsx config/scripts/codex-capacity-status-benchmark.ts
-import { readFileSync } from 'node:fs'
-import { performance } from 'node:perf_hooks'
-import { createCodexCapacityNoticeTracker } from '../../../../src/shared/codex-native-notice'
-import { HeadlessEmulator } from '../../../../src/main/daemon/emulation/headless-emulator'
-import { observeCodexCapacityTerminalStatus } from '../../../../src/main/runtime/terminal/output/codex-notice-terminal-status'
-
-const fixture = readFileSync(
- new URL(
- '../../../../src/main/runtime/__fixtures__/codex-model-capacity-fullscreen.txt',
- import.meta.url
- ),
- 'utf8'
-)
-const notice = fixture.indexOf('■ Selected model')
-if (notice === -1) {
- throw new Error('Capacity notice missing from benchmark fixture')
-}
-const redraw = fixture.slice(0, fixture.lastIndexOf('\x1b[?2026h', notice))
-const scenarios = [
- { name: 'plain-4K', data: 'x'.repeat(4096), iterations: 30_000 },
- { name: 'captured-TUI', data: redraw, iterations: 30_000 },
- {
- name: 'warning-footer',
- data: '\x1b[?2026h\x1b[21;1H⚠ 1 warning · f2 to view\x1b[?2026l',
- iterations: 30_000
- },
- { name: 'tiny-typing', data: 'a', iterations: 30_000 },
- { name: 'marker-flood', data: '■'.repeat(4096), iterations: 1000 },
- {
- name: 'large-after-warning',
- data: `⚠ unrelated\n${'x'.repeat(1024 * 1024)}`,
- iterations: 128
- }
-]
-
-function measure(iterations: number, observe: () => void): number {
- const start = performance.now()
- for (let index = 0; index < iterations; index++) {
- observe()
- }
- return performance.now() - start
-}
-
-for (const scenario of scenarios) {
- const run = () => {
- const tracker = createCodexCapacityNoticeTracker()
- let screenReads = 0
- const readScreen = () => {
- screenReads++
- return []
- }
- const elapsedMs = measure(scenario.iterations, () => tracker.observe(scenario.data, readScreen))
- if (screenReads !== 0) {
- throw new Error(`${scenario.name} read the screen ${screenReads} times`)
- }
- return elapsedMs
- }
- run()
- const samples = Array.from({ length: 5 }, run).sort((left, right) => left - right)
- const elapsedMs = samples[2]
- textResult(scenario.name, elapsedMs, scenario.iterations, scenario.data.length)
-}
-
-for (const launchAgent of [undefined, 'codex'] as const) {
- const emulator = new HeadlessEmulator({ cols: 80, rows: 24 })
- const data = 'x'.repeat(4096)
- const iterations = 30_000
- let statusReads = 0
- const readStatus = () => {
- statusReads++
- return undefined
- }
- try {
- const observe = () =>
- observeCodexCapacityTerminalStatus(
- emulator,
- data,
- 'node /some/wrapper.cjs',
- launchAgent,
- readStatus,
- 1
- )
- measure(iterations, observe)
- const samples = Array.from({ length: 5 }, () => measure(iterations, observe)).sort(
- (left, right) => left - right
- )
- if (statusReads !== 0) {
- throw new Error(`Ordinary output read status ${statusReads} times`)
- }
- textResult(launchAgent ?? 'unrelated-terminal', samples[2], iterations, data.length)
- } finally {
- emulator.dispose()
- }
-}
-
-async function measureScreenRead(): Promise {
- const emulator = new HeadlessEmulator({ cols: 40, rows: 24 })
- try {
- await emulator.write(fixture)
- for (const name of ['screen-only', 'capacity-parse-and-screen']) {
- const observe = () => {
- if (name === 'screen-only') {
- emulator.getVisibleLines()
- } else if (
- !createCodexCapacityNoticeTracker().observe(fixture, () => emulator.getVisibleLines())
- ) {
- throw new Error('Captured capacity notice was not detected')
- }
- }
- measure(1000, observe)
- const samples = Array.from({ length: 5 }, () => measure(1000, observe)).sort(
- (left, right) => left - right
- )
- textResult(name, samples[2], 1000, fixture.length)
- }
- } finally {
- emulator.dispose()
- }
-}
-
-void measureScreenRead().catch((error: unknown) => {
- console.error(error)
- process.exitCode = 1
-})
-
-function textResult(name: string, elapsedMs: number, iterations: number, chars: number): void {
- console.log(
- JSON.stringify({
- name,
- chars,
- iterations,
- microsecondsPerChunk: Number(((elapsedMs * 1000) / iterations).toFixed(3)),
- millisecondsPerMiB: Number((elapsedMs / ((chars * iterations) / 1048576)).toFixed(3))
- })
- )
-}
diff --git a/config/scripts/performance/transport/benchmark-browser-tunnel-framing.mjs b/config/scripts/performance/transport/benchmark-browser-tunnel-framing.mjs
index e91fd0887f6..902d64115b2 100644
--- a/config/scripts/performance/transport/benchmark-browser-tunnel-framing.mjs
+++ b/config/scripts/performance/transport/benchmark-browser-tunnel-framing.mjs
@@ -4,10 +4,19 @@ import { readFileSync } from 'node:fs'
import { stripTypeScriptTypes } from 'node:module'
import { performance } from 'node:perf_hooks'
-// Run from the worktree root: node config/scripts/benchmark-browser-tunnel-framing.mjs [base-ref]
-const path = 'src/shared/browser-network-tunnel-stream-framing.ts'
+// Run from the worktree root: node config/scripts/performance/transport/benchmark-browser-tunnel-framing.mjs [base-ref]
+const path = 'src/shared/browser/network/tunnels/browser-network-tunnel-stream-framing.ts'
+const historicalPath = 'src/shared/browser-network-tunnel-stream-framing.ts'
const baselineRef = process.argv[2] ?? 'HEAD'
-const beforeSource = execFileSync('git', ['show', `${baselineRef}:${path}`], {
+const baselinePaths = execFileSync(
+ 'git',
+ ['ls-tree', '--name-only', baselineRef, '--', path, historicalPath],
+ { encoding: 'utf8' }
+)
+ .trim()
+ .split('\n')
+const baselinePath = baselinePaths.includes(path) ? path : historicalPath
+const beforeSource = execFileSync('git', ['show', `${baselineRef}:${baselinePath}`], {
encoding: 'utf8'
})
const afterSource = readFileSync(path, 'utf8')
diff --git a/config/scripts/preflight/changed-checks/check-changed-selection.mjs b/config/scripts/preflight/changed-checks/check-changed-selection.mjs
index 99d3c46bff0..f8f576a27a5 100644
--- a/config/scripts/preflight/changed-checks/check-changed-selection.mjs
+++ b/config/scripts/preflight/changed-checks/check-changed-selection.mjs
@@ -47,6 +47,7 @@ const RATCHET_INPUTS = {
'check-render-path-translate-ratchet.mjs': ['src/renderer/src/'],
'check-repo-host-read-ratchet.mjs': ['src/cli/', 'src/main/', 'src/shared/'],
'check-runtime-electron-ratchet.mjs': ['src/main/', 'src/cli/', 'src/shared/'],
+ 'check-tab-map-seam-ratchet.mjs': ['src/renderer/src/'],
'check-unproven-pty-retirement-ratchet.mjs': ['src/main/'],
'check-workspace-record-read-ratchet.mjs': ['src/renderer/src/'],
'check-worktree-id-composer-ratchet.mjs': ['src/', 'mobile/src/']
diff --git a/config/scripts/preflight/changed-checks/run-lint.mjs b/config/scripts/preflight/changed-checks/run-lint.mjs
index 0a2bbe3c723..e882fcb03d2 100644
--- a/config/scripts/preflight/changed-checks/run-lint.mjs
+++ b/config/scripts/preflight/changed-checks/run-lint.mjs
@@ -39,6 +39,7 @@ export const LINT_STEPS = [
'check:mobile-shared-dependency-versions',
'check:ts-nocheck-ratchet',
'check:workspace-record-read-ratchet',
+ 'check:tab-map-seam-ratchet',
'check:unproven-pty-retirement-ratchet',
'check:daemon-blocking-call-ratchet',
'check:main-sync-fs-ratchet',
diff --git a/config/scripts/release/publication/mirror-release-to-r2.sh b/config/scripts/release/publication/mirror-release-to-r2.sh
new file mode 100755
index 00000000000..f32992eaafd
--- /dev/null
+++ b/config/scripts/release/publication/mirror-release-to-r2.sh
@@ -0,0 +1,187 @@
+#!/usr/bin/env bash
+# Needs bash 4+ (mapfile); on macOS use Homebrew bash.
+# Mirror Orca release assets from GitHub Releases to the public R2 bucket
+# served at https://downloads.onorca.dev. onorca.dev's "Download started" page
+# offers these as an opt-in "mirror link" for when GitHub returns 5xx.
+# Run by .github/workflows/release-mirror-r2.yml after each published release.
+#
+# Usage:
+# mirror-release-to-r2.sh # latest desktop release, website assets
+# mirror-release-to-r2.sh v1.4.254 # a specific desktop tag
+# mirror-release-to-r2.sh mobile-android-v0.0.64 app-release.apk
+# ALL_ASSETS=1 mirror-release-to-r2.sh # every asset except sourcemaps
+#
+# Layout written to the bucket:
+# releases// immutable, versioned copy
+# latest/ stable desktop tags (vX.Y.Z) only — what the mirror link points at
+# android/latest/ mobile-android-v* tags only
+# latest/release.json {tag, mirroredAt, assets[]} for the desktop alias
+#
+# Requires: gh (authenticated), curl, jq, and an uploader:
+# - aws CLI + R2 S3 keys (R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY): preferred,
+# multipart uploads, no size limit. Create keys in Cloudflare dashboard →
+# R2 → Manage API tokens (Object Read & Write on orca-downloads).
+# - otherwise wrangler (authenticated), which caps each file at 300 MiB.
+# Downloads are retried aggressively and resumed, and every file is checked
+# against the size and sha256 digest GitHub reports before upload.
+
+set -euo pipefail
+
+REPO="${REPO:-stablyai/orca}"
+BUCKET="${BUCKET:-orca-downloads}"
+PUBLIC_BASE="${PUBLIC_BASE:-https://downloads.onorca.dev}"
+WEBSITE_ASSETS=(orca-macos-arm64.dmg orca-macos-x64.dmg orca-windows-setup.exe orca-linux.AppImage)
+CLOUDFLARE_ACCOUNT_ID="${CLOUDFLARE_ACCOUNT_ID:-57e6ddd3bb755dbf8e8dc7ff557e9014}"
+R2_ENDPOINT="https://$CLOUDFLARE_ACCOUNT_ID.r2.cloudflarestorage.com"
+# wrangler r2 object put caps single uploads at 300 MiB; the S3 path has no such cap.
+WRANGLER_MAX_BYTES=$((300 * 1024 * 1024))
+if [[ -n "${R2_ACCESS_KEY_ID:-}" && -n "${R2_SECRET_ACCESS_KEY:-}" ]]; then
+ UPLOADER="s3"
+ export AWS_ACCESS_KEY_ID="$R2_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$R2_SECRET_ACCESS_KEY"
+ export AWS_DEFAULT_REGION=auto AWS_EC2_METADATA_DISABLED=true
+ # Newer aws CLIs send extra default checksums R2 has rejected; only send them when required.
+ export AWS_REQUEST_CHECKSUM_CALCULATION=when_required AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
+else
+ UPLOADER="wrangler"
+fi
+
+log() { printf '[mirror] %s\n' "$*" >&2; }
+
+# Retry any command with backoff: GitHub's 504s come and go.
+retry() {
+ local attempts="$1"; shift
+ local n=1 delay=3
+ until "$@"; do
+ if (( n >= attempts )); then log "giving up after $n attempts: $*"; return 1; fi
+ log "attempt $n failed, retrying in ${delay}s: $*"
+ sleep "$delay"; n=$((n + 1)); delay=$(( delay < 60 ? delay * 2 : 60 ))
+ done
+}
+
+TAG="${1:-}"
+shift || true
+REQUESTED_ASSETS=("$@")
+
+if [[ -z "$TAG" ]]; then
+ TAG="$(retry 10 gh api "repos/$REPO/releases/latest" --jq .tag_name)"
+fi
+log "release: $TAG (uploading via $UPLOADER)"
+
+RELEASE_JSON="$(retry 10 gh api "repos/$REPO/releases/tags/$TAG")"
+
+if (( ${#REQUESTED_ASSETS[@]} == 0 )); then
+ if [[ "${ALL_ASSETS:-0}" == "1" ]]; then
+ mapfile -t REQUESTED_ASSETS < <(jq -r '.assets[].name | select(startswith("orca-sourcemaps") | not)' <<<"$RELEASE_JSON")
+ elif [[ "$TAG" == v* ]]; then
+ REQUESTED_ASSETS=("${WEBSITE_ASSETS[@]}")
+ else
+ mapfile -t REQUESTED_ASSETS < <(jq -r '.assets[].name' <<<"$RELEASE_JSON")
+ fi
+fi
+
+# Why: GitHub's /releases/latest skips RCs, so an RC must never move latest/.
+if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ ALIAS_PREFIX="latest"
+elif [[ "$TAG" == mobile-android-v* ]]; then
+ ALIAS_PREFIX="android/latest"
+else
+ ALIAS_PREFIX=""
+fi
+
+WORK_DIR="${WORK_DIR:-${TMPDIR:-/tmp}/orca-release-mirror/$TAG}"
+mkdir -p "$WORK_DIR"
+log "working dir: $WORK_DIR"
+
+sha256_of() {
+ if command -v sha256sum >/dev/null; then sha256sum "$1" | cut -d' ' -f1; else shasum -a 256 "$1" | cut -d' ' -f1; fi
+}
+
+content_type_for() {
+ case "$1" in
+ *.dmg) echo "application/x-apple-diskimage" ;;
+ *.exe) echo "application/vnd.microsoft.portable-executable" ;;
+ *.apk) echo "application/vnd.android.package-archive" ;;
+ *.yml) echo "text/yaml" ;;
+ *.json) echo "application/json" ;;
+ *.zip) echo "application/zip" ;;
+ *.deb) echo "application/vnd.debian.binary-package" ;;
+ *.rpm) echo "application/x-rpm" ;;
+ *) echo "application/octet-stream" ;;
+ esac
+}
+
+verify() {
+ local file="$1" size="$2" digest="$3"
+ [[ -f "$file" ]] || return 1
+ local actual_size
+ actual_size="$(wc -c <"$file" | tr -d ' ')"
+ [[ "$actual_size" == "$size" ]] || { log "size mismatch for $file: $actual_size != $size"; return 1; }
+ if [[ "$digest" == sha256:* ]]; then
+ [[ "$(sha256_of "$file")" == "${digest#sha256:}" ]] || { log "sha256 mismatch for $file"; return 1; }
+ fi
+}
+
+download() {
+ local url="$1" out="$2" size="$3" digest="$4"
+ # -C - resumes partial downloads; a corrupt partial is discarded and refetched.
+ curl -fL --retry 8 --retry-all-errors --retry-delay 5 --connect-timeout 20 \
+ -H "Accept: application/octet-stream" -C - -o "$out" "$url" || true
+ verify "$out" "$size" "$digest" && return 0
+ rm -f "$out"
+ return 1
+}
+
+upload() {
+ local file="$1" key="$2" cache="$3" type="$4"
+ local disposition
+ disposition="attachment; filename=\"$(basename "$file")\""
+ if [[ "$UPLOADER" == "s3" ]]; then
+ # aws s3 cp switches to multipart above the threshold, so file size is unbounded.
+ retry 5 aws s3 cp "$file" "s3://$BUCKET/$key" --endpoint-url "$R2_ENDPOINT" \
+ --content-type "$type" --cache-control "$cache" --content-disposition "$disposition" \
+ --only-show-errors
+ else
+ retry 5 wrangler r2 object put "$BUCKET/$key" --remote --file "$file" \
+ --content-type "$type" --cache-control "$cache" --content-disposition "$disposition" >/dev/null
+ fi
+ log "uploaded $PUBLIC_BASE/$key"
+}
+
+MIRRORED=()
+for name in "${REQUESTED_ASSETS[@]}"; do
+ asset="$(jq -c --arg n "$name" '.assets[] | select(.name == $n)' <<<"$RELEASE_JSON")"
+ if [[ -z "$asset" ]]; then log "asset not in $TAG: $name"; exit 1; fi
+ size="$(jq -r .size <<<"$asset")"
+ digest="$(jq -r '.digest // ""' <<<"$asset")"
+ url="https://github.com/$REPO/releases/download/$TAG/$name"
+ out="$WORK_DIR/$name"
+
+ if [[ "$UPLOADER" == "wrangler" ]] && (( size > WRANGLER_MAX_BYTES )); then
+ log "$name is $size bytes, over wrangler's 300 MiB limit — set R2_ACCESS_KEY_ID/R2_SECRET_ACCESS_KEY to upload via S3 multipart"
+ exit 1
+ fi
+
+ if verify "$out" "$size" "$digest" 2>/dev/null; then
+ log "already downloaded: $name"
+ else
+ log "downloading $name ($size bytes)"
+ retry 10 download "$url" "$out" "$size" "$digest"
+ fi
+
+ type="$(content_type_for "$name")"
+ upload "$out" "releases/$TAG/$name" "public, max-age=31536000, immutable" "$type"
+ if [[ -n "$ALIAS_PREFIX" ]]; then
+ # Short TTL so the alias moves to the next release quickly.
+ upload "$out" "$ALIAS_PREFIX/$name" "public, max-age=300" "$type"
+ fi
+ MIRRORED+=("$name")
+done
+
+if [[ -n "$ALIAS_PREFIX" ]]; then
+ manifest="$WORK_DIR/release.json"
+ jq -n --arg tag "$TAG" --arg at "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
+ '{tag: $tag, mirroredAt: $at, assets: $ARGS.positional}' --args "${MIRRORED[@]}" >"$manifest"
+ upload "$manifest" "$ALIAS_PREFIX/release.json" "public, max-age=60" application/json
+fi
+
+log "done: ${#MIRRORED[@]} assets from $TAG"
diff --git a/config/scripts/runtime-verification/desktop-transport/verify-computer-native.mjs b/config/scripts/runtime-verification/desktop-transport/verify-computer-native.mjs
index 574e3f6984e..f0c1e76f622 100644
--- a/config/scripts/runtime-verification/desktop-transport/verify-computer-native.mjs
+++ b/config/scripts/runtime-verification/desktop-transport/verify-computer-native.mjs
@@ -54,12 +54,6 @@ const checks = [
],
enabled: process.platform === 'linux'
},
- {
- name: 'Linux set_value tests',
- command: 'python3',
- args: ['native/computer-use-linux/set_value_test.py'],
- enabled: true
- },
{
name: 'Windows provider PowerShell parse',
command: process.platform === 'win32' ? 'powershell.exe' : 'pwsh',
@@ -83,7 +77,7 @@ const checks = [
enabled: process.platform === 'win32'
},
{
- name: 'Windows snapshot renderer tests',
+ name: 'Windows pointer safety tests',
command: 'powershell.exe',
args: [
'-NoLogo',
@@ -91,7 +85,7 @@ const checks = [
'-ExecutionPolicy',
'Bypass',
'-File',
- 'native/computer-use-windows/runtime-render.test.ps1'
+ 'native/computer-use-windows/runtime-pointer.test.ps1'
],
enabled: process.platform === 'win32'
},
diff --git a/config/scripts/static-analysis/ratchets/renderer-state/check-layout-writer-ratchets.mjs b/config/scripts/static-analysis/ratchets/renderer-state/check-layout-writer-ratchets.mjs
index 29b0247827e..009f48c981c 100644
--- a/config/scripts/static-analysis/ratchets/renderer-state/check-layout-writer-ratchets.mjs
+++ b/config/scripts/static-analysis/ratchets/renderer-state/check-layout-writer-ratchets.mjs
@@ -320,6 +320,24 @@ function isSameNameCopy(property, name) {
return ts.isPropertyAccessExpression(value) && value.name.text === name
}
+// The transition seam names the fields it tracks in `const SEAM_*_FIELDS = [...] as const` lists; names, not writes.
+function isSeamFieldNameConstant(literal) {
+ let list = literal.parent
+ if (!ts.isArrayLiteralExpression(list)) {
+ return false
+ }
+ let declaration = list.parent
+ while (ts.isAsExpression(declaration) || ts.isSatisfiesExpression(declaration)) {
+ declaration = declaration.parent
+ }
+ return (
+ ts.isVariableDeclaration(declaration) &&
+ ts.isIdentifier(declaration.name) &&
+ /^SEAM_[A-Z_]+_FIELDS$/.test(declaration.name.text) &&
+ (declaration.parent.flags & ts.NodeFlags.Const) !== 0
+ )
+}
+
/** Layout writes in one file under one ratchet's rules. */
export function countLayoutWrites(sourceText, ratchet, fileName = 'file.tsx') {
const names = [...ratchet.writerNames, ...ratchet.assignedFields]
@@ -392,7 +410,8 @@ export function countLayoutWrites(sourceText, ratchet, fileName = 'file.tsx') {
node.parent.expression.expression.text === 'Object' &&
node.parent.expression.name.text === 'hasOwn'
) &&
- !ts.isLiteralTypeNode(node.parent)
+ !ts.isLiteralTypeNode(node.parent) &&
+ !isSeamFieldNameConstant(node)
) {
count += 1
}
diff --git a/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.mjs b/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.mjs
new file mode 100644
index 00000000000..c6743a1ae76
--- /dev/null
+++ b/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.mjs
@@ -0,0 +1,380 @@
+import fs from 'node:fs'
+import path from 'node:path'
+import process from 'node:process'
+import { pathToFileURL } from 'node:url'
+import ts from 'typescript-api'
+
+// The tab-map transition seam (store/keyed-record-transitions.ts) only works if its writers annotate and its
+// consumers enumerate whole maps only on named cold paths; this pins both for the repaired modules, nothing wider.
+
+const R = 'src/renderer/src/'
+const STATUS = `${R}components/native-chat/session/status/`
+
+/**
+ * Repaired consumers: the only functions allowed to walk a whole map (`coldPaths`), which callers
+ * may reach a cold helper (`helpers`), and the only values they may import, so a new walking helper
+ * can't arrive through an import unreviewed.
+ */
+export const CONSUMERS = new Map([
+ [
+ `${STATUS}structured-agent-session-tabs.ts`,
+ {
+ coldPaths: new Set(['rebuildFromSnapshot']),
+ helpers: { rebuildFromSnapshot: ['advance'] },
+ imports: new Set(['structuredAgentSessionPaneKey', 'isStructuredTab', 'readTabMapChanges'])
+ }
+ ],
+ [
+ `${STATUS}StructuredAgentSessionStatusBridge.tsx`,
+ {
+ coldPaths: new Set(['reconcileFromSnapshot']),
+ helpers: {
+ getStructuredAgentSessionTabs: ['reconcileFromSnapshot'],
+ reconcileFromSnapshot: ['reconcile']
+ },
+ imports: new Set([
+ 'useEffect',
+ 'projectStatus',
+ 'getStructuredAgentSessionLaunchLifecycle',
+ 'subscribeStructuredAgentLaunchStatus',
+ 'getStructuredAgentSessionLaunchFailedAt',
+ 'useAppStore',
+ 'structuredAgentSessionTargetForHost',
+ 'getStructuredAgentSessionStatusFeed',
+ 'structuredAgentSessionStatusFeedKey',
+ 'getStructuredAgentSessionTabs',
+ 'getStructuredAgentSessionTabsInWorkspace',
+ 'readTabMapChanges',
+ 'createTabOwnerCache',
+ 'ownerInputChanged',
+ 'ownerInputs',
+ 'createStructuredSessionMembership',
+ 'sameSemanticTab'
+ ])
+ }
+ ],
+ [
+ `${STATUS}structured-agent-session-status-membership.ts`,
+ {
+ coldPaths: new Set(),
+ helpers: { getStructuredAgentSessionTabs: [] },
+ imports: new Set(['structuredAgentSessionPaneKey'])
+ }
+ ]
+])
+const ENUMERATING_CALLS = new Set(['keys', 'values', 'entries'])
+
+/** Shared tab-map writers wired to the seam: a raw record literal for these fields bypasses provenance. */
+export const WRITERS = [
+ 'src/renderer/src/runtime/web-session-tabs-sync/scoped-patch-annotation.ts',
+ 'src/renderer/src/runtime/web-session-tabs-sync/store-patch.ts',
+ 'src/renderer/src/runtime/workspace-layout/frames/workspace-layout-frame-sync.ts',
+ 'src/renderer/src/store/slices/browser/pages/browser-page-state-actions.ts',
+ 'src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-ids.ts',
+ 'src/renderer/src/store/slices/editor/hydration/restored-editor-owner-in-place.ts',
+ 'src/renderer/src/store/slices/editor/hydration/restored-editor-owner-transition.ts',
+ 'src/renderer/src/store/slices/editor/markdown/markdown-preview-actions.ts',
+ 'src/renderer/src/store/slices/editor/opening/open-file-mutations.ts',
+ 'src/renderer/src/store/slices/ssh/ssh-target-cleanup.ts',
+ 'src/renderer/src/store/slices/tabs/rename-worktree-layout.ts',
+ 'src/renderer/src/store/slices/tabs/tab-group-state.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-close-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-create-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-drag-preview-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-drop-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-focus-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-group-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-host-mirroring.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-label-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-move-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-reconciliation.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-session-actions.ts',
+ 'src/renderer/src/store/slices/tabs/tabs-split-ratio-actions.ts',
+ 'src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts',
+ 'src/renderer/src/store/slices/tabs/worktree-terminal-tab-respawn.ts',
+ 'src/renderer/src/store/slices/worktrees/session/set-active-worktree.ts',
+ 'src/renderer/src/store/slices/worktrees/session/worktree-identity-rename-state.ts',
+ 'src/renderer/src/store/slices/worktrees/session/worktree-slice-lookups.ts',
+ 'src/renderer/src/store/slices/worktrees/teardown/record-key-omission.ts',
+ 'src/renderer/src/store/terminals/terminal-tab-close.ts',
+ 'src/renderer/src/store/terminals/terminal-tab-creation.ts',
+ 'src/renderer/src/store/terminals/terminal-tab-navigation.ts',
+ 'src/renderer/src/store/terminals/terminal-tab-title-batch.ts',
+ 'src/renderer/src/store/terminals/workspace-terminal-hydration-patch.ts',
+ 'src/renderer/src/store/terminals/workspace-terminal-hydration.ts',
+ 'src/renderer/src/store/terminals/workspace-terminal-reconnect.ts',
+ 'src/renderer/src/store/workspace-layout/frames/workspace-layout-frame-store-patch.ts'
+]
+export const SEAM_FIELDS = new Set([
+ 'tabsByWorktree',
+ 'unifiedTabsByWorktree',
+ 'terminalLayoutsByTabId',
+ 'ptyIdsByTabId',
+ 'lastKnownRelayPtyIdByTabId',
+ 'runtimePaneTitlesByTabId',
+ 'pendingStartupByTabId',
+ 'pendingReconnectPtyIdByTabId',
+ 'sleepingAgentSessionsByPaneKey',
+ 'layoutByWorktree',
+ 'groupsByWorktree',
+ 'activeGroupIdByWorktree'
+])
+
+function parse(file, text) {
+ return ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX)
+}
+
+function line(source, node) {
+ return source.getLineAndCharacterOfPosition(node.getStart(source)).line + 1
+}
+
+function enclosingFunctionNames(node) {
+ const names = []
+ for (let current = node.parent; current; current = current.parent) {
+ if (ts.isFunctionDeclaration(current) && current.name) {
+ names.push(current.name.text)
+ } else if (
+ (ts.isArrowFunction(current) || ts.isFunctionExpression(current)) &&
+ ts.isVariableDeclaration(current.parent) &&
+ ts.isIdentifier(current.parent.name)
+ ) {
+ names.push(current.parent.name.text)
+ }
+ }
+ return names
+}
+
+function valueImports(source) {
+ const imported = []
+ for (const statement of source.statements) {
+ const clause = ts.isImportDeclaration(statement) ? statement.importClause : null
+ if (!clause || clause.isTypeOnly) {
+ continue
+ }
+ if (clause.name) {
+ imported.push(clause.name)
+ }
+ const bindings = clause.namedBindings
+ if (bindings && ts.isNamespaceImport(bindings)) {
+ imported.push(bindings.name)
+ } else if (bindings) {
+ imported.push(
+ ...bindings.elements.filter((element) => !element.isTypeOnly).map((e) => e.name)
+ )
+ }
+ }
+ return imported
+}
+
+function isHelperReference(node, helpers) {
+ if (!ts.isIdentifier(node) || !Object.hasOwn(helpers, node.text)) {
+ return false
+ }
+ const parent = node.parent
+ const declares =
+ ((ts.isVariableDeclaration(parent) || ts.isFunctionDeclaration(parent)) &&
+ parent.name === node) ||
+ (ts.isPropertyAccessExpression(parent) && parent.name === node) ||
+ (ts.isPropertyAssignment(parent) && parent.name === node) ||
+ ts.isImportSpecifier(parent)
+ return !declares
+}
+
+export function consumerViolations(file, text, { coldPaths, helpers, imports }) {
+ const source = parse(file, text)
+ const violations = []
+ for (const name of valueImports(source)) {
+ if (!imports.has(name.text)) {
+ violations.push(
+ `${file}:${line(source, name)} imports ${name.text}; repaired consumers import only reviewed helpers`
+ )
+ }
+ }
+ const visit = (node) => {
+ let what = null
+ let allowed = coldPaths
+ if (
+ ts.isPropertyAccessExpression(node) &&
+ ts.isIdentifier(node.expression) &&
+ node.expression.text === 'Object' &&
+ ENUMERATING_CALLS.has(node.name.text)
+ ) {
+ // Any reference, called or aliased (`const keys = Object.keys`).
+ what = `Object.${node.name.text}`
+ } else if (isHelperReference(node, helpers)) {
+ // Calls, aliases (`const resync = reconcileFromSnapshot`) and callbacks alike.
+ what = `${node.text}()`
+ allowed = new Set(helpers[node.text])
+ } else if (ts.isForInStatement(node)) {
+ what = 'for…in'
+ }
+ if (what && !enclosingFunctionNames(node).some((name) => allowed.has(name))) {
+ violations.push(`${file}:${line(source, node)} ${what} outside a named cold path`)
+ }
+ if (
+ ts.isFunctionDeclaration(node) &&
+ node.name?.text === 'rebuildFromSnapshot' &&
+ node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword)
+ ) {
+ violations.push(`${file}:${line(source, node)} rebuildFromSnapshot must stay module-private`)
+ }
+ ts.forEachChild(node, visit)
+ }
+ visit(source)
+ return violations
+}
+
+function isRawRecord(expression) {
+ if (ts.isObjectLiteralExpression(expression)) {
+ return expression.properties.some((property) => ts.isSpreadAssignment(property))
+ }
+ return (
+ ts.isCallExpression(expression) &&
+ ts.isPropertyAccessExpression(expression.expression) &&
+ ts.isIdentifier(expression.expression.expression) &&
+ expression.expression.expression.text === 'Object' &&
+ ['fromEntries', 'assign'].includes(expression.expression.name.text)
+ )
+}
+
+// Only an explicit cold-path mark certifies a record built outside a construction helper or draft.
+const ANNOTATED_ARGUMENT = {
+ markFullResync: 0
+}
+
+function enclosingScope(node) {
+ let current = node.parent
+ while (current && !ts.isFunctionLike(current) && !ts.isSourceFile(current)) {
+ current = current.parent
+ }
+ return current
+}
+
+/** The value a local name holds at `use`: its declaration's initializer, followed through aliases. */
+function bindingSource(name, scope, use, seen = new Set()) {
+ if (seen.has(name)) {
+ return null
+ }
+ seen.add(name)
+ let found = null
+ const visit = (node) => {
+ if (node.pos >= use.pos) {
+ return
+ }
+ if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && node.name.text === name) {
+ found = node.initializer ?? null
+ } else if (
+ ts.isBinaryExpression(node) &&
+ node.operatorToken.kind === ts.SyntaxKind.EqualsToken &&
+ ts.isIdentifier(node.left) &&
+ node.left.text === name
+ ) {
+ found = node.right
+ }
+ ts.forEachChild(node, visit)
+ }
+ visit(scope)
+ if (found && ts.isIdentifier(found)) {
+ const aliased = bindingSource(found.text, scope, use, seen)
+ return aliased && { ...aliased, names: [name, ...aliased.names] }
+ }
+ return found && { value: found, names: [name] }
+}
+
+/** Whether a seam helper annotates one of `names` in place before `use` publishes it. */
+function annotatedBefore(names, scope, use) {
+ let annotated = false
+ const visit = (node) => {
+ if (node.pos >= use.pos) {
+ return
+ }
+ if (
+ node.end <= use.pos &&
+ ts.isCallExpression(node) &&
+ ts.isIdentifier(node.expression) &&
+ Object.hasOwn(ANNOTATED_ARGUMENT, node.expression.text)
+ ) {
+ const argument = node.arguments[ANNOTATED_ARGUMENT[node.expression.text]]
+ annotated ||=
+ argument !== undefined && ts.isIdentifier(argument) && names.includes(argument.text)
+ }
+ ts.forEachChild(node, visit)
+ }
+ visit(scope)
+ return annotated
+}
+
+function rawValue(node) {
+ const initializer = ts.isShorthandPropertyAssignment(node) ? node.name : node.initializer
+ if (isRawRecord(initializer)) {
+ return true
+ }
+ if (!ts.isIdentifier(initializer)) {
+ return false
+ }
+ // Follow the local binding and its aliases; the record must be annotated before it is published.
+ for (let scope = enclosingScope(node); scope; scope = scope.parent && enclosingScope(scope)) {
+ const binding = bindingSource(initializer.text, scope, node)
+ if (binding) {
+ return isRawRecord(binding.value) && !annotatedBefore(binding.names, scope, node)
+ }
+ if (ts.isSourceFile(scope)) {
+ break
+ }
+ }
+ return false
+}
+
+export function writerViolations(file, text) {
+ const source = parse(file, text)
+ const violations = []
+ const visit = (node) => {
+ if (
+ (ts.isPropertyAssignment(node) || ts.isShorthandPropertyAssignment(node)) &&
+ (ts.isIdentifier(node.name) || ts.isStringLiteral(node.name)) &&
+ SEAM_FIELDS.has(node.name.text) &&
+ rawValue(node)
+ ) {
+ violations.push(
+ `${file}:${line(source, node)} raw ${node.name.text} record; build it with a replace helper or draft, or mark it full resync`
+ )
+ }
+ ts.forEachChild(node, visit)
+ }
+ visit(source)
+ return violations
+}
+
+export function collect(root = process.cwd()) {
+ const violations = []
+ for (const [file, rules] of CONSUMERS) {
+ violations.push(
+ ...consumerViolations(file, fs.readFileSync(path.join(root, file), 'utf8'), rules)
+ )
+ }
+ for (const file of WRITERS) {
+ violations.push(...writerViolations(file, fs.readFileSync(path.join(root, file), 'utf8')))
+ }
+ return violations
+}
+
+export function main(root = process.cwd()) {
+ const violations = collect(root)
+ if (violations.length) {
+ for (const violation of violations) {
+ console.error(violation)
+ }
+ console.error(
+ 'Tab-map seam: ordinary handlers use addressed deltas (readTabMapChanges); whole-map walks belong only in the named cold paths.'
+ )
+ return 1
+ }
+ console.log(
+ `tab-map-seam ratchet OK — ${CONSUMERS.size} consumer and ${WRITERS.length} writer modules pinned.`
+ )
+ return 0
+}
+
+if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
+ process.exit(main(process.cwd()))
+}
diff --git a/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.test.mjs b/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.test.mjs
new file mode 100644
index 00000000000..7f4a6dfb6b1
--- /dev/null
+++ b/config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.test.mjs
@@ -0,0 +1,87 @@
+import { describe, expect, it } from 'vitest'
+import { CONSUMERS, consumerViolations, writerViolations } from './check-tab-map-seam-ratchet.mjs'
+
+const BRIDGE =
+ 'src/renderer/src/components/native-chat/session/status/StructuredAgentSessionStatusBridge.tsx'
+const rules = CONSUMERS.get(BRIDGE)
+
+describe('tab-map seam guard', () => {
+ it('rejects an ordinary handler reaching the cold path or walking a map', () => {
+ const text = [
+ 'const reconcileFromSnapshot = () => getStructuredAgentSessionTabs(source)',
+ 'const reconcile = () => reconcileFromSnapshot()',
+ 'const ordinary = () => { reconcileFromSnapshot(); Object.keys(source) }'
+ ].join('\n')
+ expect(consumerViolations('bridge.tsx', text, rules)).toEqual([
+ 'bridge.tsx:3 reconcileFromSnapshot() outside a named cold path',
+ 'bridge.tsx:3 Object.keys outside a named cold path'
+ ])
+ })
+
+ it('rejects an unreviewed value import, not type imports', () => {
+ const text = [
+ "import { wholeMap } from './new-walk'",
+ "import type { Walk } from './new-walk'"
+ ].join('\n')
+ expect(consumerViolations('bridge.tsx', text, rules)).toEqual([
+ 'bridge.tsx:1 imports wholeMap; repaired consumers import only reviewed helpers'
+ ])
+ })
+
+ it('follows a raw record through a local binding unless it is marked full resync', () => {
+ const text = [
+ 'function raw(state) {',
+ ' const next = { ...state.unifiedTabsByWorktree, [id]: tabs }',
+ ' set({ unifiedTabsByWorktree: next })',
+ '}',
+ 'function annotated(state) {',
+ ' const next = { ...state.unifiedTabsByWorktree, [id]: tabs }',
+ ' markFullResync(next, "hydration")',
+ ' set({ unifiedTabsByWorktree: next })',
+ '}'
+ ].join('\n')
+ expect(writerViolations('writer.ts', text)).toEqual([
+ 'writer.ts:3 raw unifiedTabsByWorktree record; build it with a replace helper or draft, or mark it full resync'
+ ])
+ })
+
+ it('follows aliases of cold helpers and enumerators', () => {
+ const text = [
+ 'const reconcileFromSnapshot = () => getStructuredAgentSessionTabs(source)',
+ 'const reconcile = () => reconcileFromSnapshot()',
+ 'const resync = reconcileFromSnapshot',
+ 'const keys = Object.keys'
+ ].join('\n')
+ expect(consumerViolations('bridge.tsx', text, rules)).toEqual([
+ 'bridge.tsx:3 reconcileFromSnapshot() outside a named cold path',
+ 'bridge.tsx:4 Object.keys outside a named cold path'
+ ])
+ })
+
+ it('follows aliased raw records and requires annotation before publication', () => {
+ const raw =
+ 'raw unifiedTabsByWorktree record; build it with a replace helper or draft, or mark it full resync'
+ const text = [
+ 'function aliased(state) {',
+ ' const next = { ...state.unifiedTabsByWorktree, [id]: tabs }',
+ ' const unifiedTabsByWorktree = next',
+ ' set({ unifiedTabsByWorktree })',
+ '}',
+ 'function late(state) {',
+ ' const next = { ...state.unifiedTabsByWorktree, [id]: tabs }',
+ ' set({ unifiedTabsByWorktree: next })',
+ ' markFullResync(next, "hydration")',
+ '}',
+ 'function early(state) {',
+ ' const next = { ...state.unifiedTabsByWorktree, [id]: tabs }',
+ ' const alias = next',
+ ' markFullResync(alias, "hydration")',
+ ' set({ unifiedTabsByWorktree: alias })',
+ '}'
+ ].join('\n')
+ expect(writerViolations('writer.ts', text)).toEqual([
+ `writer.ts:4 ${raw}`,
+ `writer.ts:8 ${raw}`
+ ])
+ })
+})
diff --git a/config/scripts/test-runtime/sqlite-admission/vitest-node-runtime-files.mjs b/config/scripts/test-runtime/sqlite-admission/vitest-node-runtime-files.mjs
index d8942881e55..7f9ba3b8138 100644
--- a/config/scripts/test-runtime/sqlite-admission/vitest-node-runtime-files.mjs
+++ b/config/scripts/test-runtime/sqlite-admission/vitest-node-runtime-files.mjs
@@ -118,7 +118,6 @@ const NODE_RUNTIME_INCLUDE = [
'src/main/browser/cookies/sources/browser-cookie-import-undecryptable.test.ts',
'src/main/browser/cookies/sources/browser-cookie-source-partition.test.ts',
// Playwright's CDP transport needs Node's WebSocket implementation.
- 'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-adapter-compatibility.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/presentation/popup-origin-chrome.electron.test.ts',
'src/main/browser/guest-lifecycle/navigation/browser-link-materialization.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-compatibility.electron.test.ts',
diff --git a/config/scripts/workflow/source-routing/pr-code-change-scope.mjs b/config/scripts/workflow/source-routing/pr-code-change-scope.mjs
index c6c1856325e..971ee6708a7 100644
--- a/config/scripts/workflow/source-routing/pr-code-change-scope.mjs
+++ b/config/scripts/workflow/source-routing/pr-code-change-scope.mjs
@@ -209,7 +209,7 @@ const CROSS_VERSION_WIRE_PREFIXES = [
'src/shared/protocol-version',
'src/shared/terminal/stream/terminal-stream-protocol',
'src/shared/browser/client-hosting/browser-client-host-protocol',
- 'src/shared/browser-network-tunnel-protocol',
+ 'src/shared/browser/network/tunnels/browser-network-tunnel-protocol',
// Both released/current WebSocket transports must accept web upgrade marker (cross-version-web-upgrade-marker).
'src/main/runtime/rpc/ws-transport.ts',
'src/shared/web-origin-security.ts',
diff --git a/config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs b/config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs
index 509507aa49f..7da6a6823ae 100644
--- a/config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs
+++ b/config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs
@@ -259,7 +259,7 @@ export const PR_E2E_SOURCE_ROUTES = [
MANAGED_SSH_HARNESS.test(file) ||
/^tests\/e2e\/helpers\/browser-split-(?:guest-probes|page-server)\.ts$/.test(file) ||
(isProductSource(file) &&
- /^src\/renderer\/src\/(?:lib\/(?:file-preview|workspace-file-drag|worktree-runtime-owner|connection-context)\.ts|components\/(?:right-sidebar\/file-explorer\/panel\/FileExplorer(?:Row|VirtualRows)\.tsx|browser-pane\/(?:navigate\/use-browser-page-navigation-downloads\.ts|host-guest\/attach-browser-page-webview\.ts)))$/.test(
+ /^src\/renderer\/src\/(?:lib\/(?:browser\/documents\/file-preview|workspace-file-drag|worktree-runtime-owner)\.ts|lib\/workspace\/ownership\/connection-context\.ts|components\/(?:right-sidebar\/file-explorer\/panel\/FileExplorer(?:Row|VirtualRows)\.tsx|browser-pane\/(?:navigate\/use-browser-page-navigation-downloads\.ts|host-guest\/attach-browser-page-webview\.ts)))$/.test(
file
))
},
@@ -280,7 +280,7 @@ export const PR_E2E_SOURCE_ROUTES = [
MANAGED_SSH_HARNESS.test(file) ||
file === 'tests/e2e/helpers/terminal-workspace-root-link.ts' ||
(isProductSource(file) &&
- /^src\/renderer\/src\/(?:components\/terminal-pane\/terminal-(?:worktree-path-link|file-link-actions|file-link-hit-testing|file-open-routing|link-handlers)\.ts|lib\/(?:workspace-file-host-routing|worktree-owner-route|worktree-operation-route|worktree-operation-catalog-route)\.ts)$/.test(
+ /^src\/renderer\/src\/(?:components\/terminal-pane\/terminal-(?:worktree-path-link|file-link-actions|file-link-hit-testing|file-open-routing|link-handlers)\.ts|(?:runtime\/files\/workspace-file-host-routing|lib\/workspace\/ownership\/(?:worktree-owner-route|worktree-operation-route|worktree-operation-catalog-route))\.ts)$/.test(
file
))
},
diff --git a/config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs b/config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
index 20e97e8d2f9..22ff77e7998 100644
--- a/config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
+++ b/config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
@@ -25,8 +25,8 @@ export const PR_EDITOR_PREVIEW_E2E_SOURCE_ROUTES = [
(file.startsWith('src/renderer/src/components/editor/model-lifetime/identity/') ||
[
'src/renderer/src/components/editor/useEditorPanelFileContentLoader.ts',
- 'src/renderer/src/lib/editor-file-operation-owner.ts',
- 'src/renderer/src/lib/editor-file-operation-provenance.ts'
+ 'src/renderer/src/lib/editor/file-operations/editor-file-operation-owner.ts',
+ 'src/renderer/src/lib/editor/file-operations/editor-file-operation-provenance.ts'
].includes(file))
},
{
diff --git a/config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs b/config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs
index 0b31fb8b6f5..ac16f8b4df8 100644
--- a/config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs
+++ b/config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs
@@ -29,7 +29,7 @@ const LAYOUT_ORACLE_PREFIXES = [
'src/renderer/src/attention/orca-window-foreground-focus.ts',
'src/renderer/src/attention/notification-workspace-labels.ts',
'src/renderer/src/lib/agent-session/identity/pane-agent-session-id.ts',
- 'src/renderer/src/lib/wsl-host-availability.ts',
+ 'src/renderer/src/runtime/hosts/wsl/wsl-host-availability.ts',
'src/renderer/src/lib/workspace/ownership/workspace-runtime-environment.ts',
'src/renderer/src/components/tab-group/tab-drag-drop-commit.ts',
'src/renderer/src/app-shell/use-runtime-graph-sync.ts',
diff --git a/config/scripts/workflow/source-routing/pr-package-test-paths.mjs b/config/scripts/workflow/source-routing/pr-package-test-paths.mjs
index 627cfe9031b..2bae139d3bb 100644
--- a/config/scripts/workflow/source-routing/pr-package-test-paths.mjs
+++ b/config/scripts/workflow/source-routing/pr-package-test-paths.mjs
@@ -131,7 +131,6 @@ export const LINUX_PACKAGE_TESTS = [
'src/main/browser/client-pages/renderer/browser-client-page-renderer-lifecycle.electron.test.ts',
'src/main/persistence/profile-state/profile-state-writer-stall.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-compatibility.electron.test.ts',
- 'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-adapter-compatibility.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-native-compatibility.electron.test.ts',
'src/main/browser/guest-lifecycle/popups/compatibility/browser-popup-background-compatibility.electron.test.ts',
'src/main/browser/extensions/api-runtime/browser-extension-api.electron.test.ts',
@@ -160,7 +159,6 @@ export const WINDOWS_BOUNDARY_TESTS = [
'src/main/windows/windows-registry-addon.test.ts',
'src/main/daemon/executable-host/windows/testing/daemon-host-process-package.test.ts',
'src/shared/windows-security-addon.win32.test.ts',
- 'src/shared/windows-private-credential-file.test.ts',
'config/scripts/desktop-distribution/runtime-verification/package-electron-runtime-contract.test.mjs',
'config/scripts/desktop-distribution/runtime-verification/electron-builder-runtime-resources.test.mjs',
'src/main/browser/client-pages/renderer/browser-client-page-renderer-lifecycle.electron.test.ts',
@@ -172,6 +170,7 @@ export const WINDOWS_BOUNDARY_TESTS = [
'src/shared/__tests__/process-host/windows-tree-kill-late-taskkill.win32.test.ts',
'src/shared/agent-launch/startup/omp-fresh-launch-cmd.win32.test.ts',
'src/shared/windows-batch-spawn.win32.test.ts',
+ 'src/main/claude/structured/launch/claude-structured-child-env.test.ts',
'src/main/agent-hooks/installation/commands/windows-hook-payload-delivery.test.ts',
'src/main/agent-hooks/installation/scripts/managed-hook-stdin-lifecycle.test.ts',
'src/main/jcode/hook-gate-script.test.ts',
diff --git a/config/tsconfig.tc.web.json b/config/tsconfig.tc.web.json
index cf041be983c..d7542c5e628 100644
--- a/config/tsconfig.tc.web.json
+++ b/config/tsconfig.tc.web.json
@@ -4,7 +4,6 @@
"../src/renderer/src/lib/agent-session/launch/new-tab/launch-agent-in-new-tab-main-surface.test.ts",
"../src/renderer/src/components/task-page/linear/task-page-linear-detail-query.test.tsx",
"../tests/e2e/terminal-agent-pane-launch.unit.test.ts",
- "../src/renderer/src/components/status-bar/ClaudeSwitcherMenu.owner-lifetime.test.tsx",
"../src/renderer/src/runtime/provider-accounts/observations/provider-account-observation.test-fixture.ts",
"../src/shared/**/*.test.ts",
"../src/shared/**/*.test.tsx",
diff --git a/config/tsconfig.test.pane-launch.json b/config/tsconfig.test.pane-launch.json
index f476bd1de39..63896e6d839 100644
--- a/config/tsconfig.test.pane-launch.json
+++ b/config/tsconfig.test.pane-launch.json
@@ -8,7 +8,6 @@
"../tests/e2e/terminal-agent-pane-launch.unit.test.ts",
"../src/renderer/src/runtime/observed-provider-accounts.test.tsx",
"../src/renderer/src/components/status-bar/ClaudeSwitcherMenu.observation.test.tsx",
- "../src/renderer/src/components/status-bar/ClaudeSwitcherMenu.owner-lifetime.test.tsx",
"../src/renderer/src/runtime/provider-accounts/observations/provider-account-observation.test-fixture.ts",
"../src/renderer/src/env.d.ts",
"../src/types/build-constants.d.ts",
diff --git a/config/tsconfig.web.json b/config/tsconfig.web.json
index ddb38d005ec..02a420684d3 100644
--- a/config/tsconfig.web.json
+++ b/config/tsconfig.web.json
@@ -14,7 +14,6 @@
"../src/renderer/src/lib/agent-session/launch/new-tab/launch-agent-in-new-tab-main-surface.test.ts",
"../src/renderer/src/components/task-page/linear/task-page-linear-detail-query.test.tsx",
"../tests/e2e/terminal-agent-pane-launch.unit.test.ts",
- "../src/renderer/src/components/status-bar/ClaudeSwitcherMenu.owner-lifetime.test.tsx",
"../src/renderer/src/runtime/provider-accounts/observations/provider-account-observation.test-fixture.ts"
],
"compilerOptions": {
diff --git a/config/vitest.agent-status-benchmark.config.ts b/config/vitest.agent-status-benchmark.config.ts
deleted file mode 100644
index 32b047405bb..00000000000
--- a/config/vitest.agent-status-benchmark.config.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { defineConfig } from 'vitest/config'
-import baseConfig from './vitest.config'
-
-export default defineConfig({
- ...baseConfig,
- test: {
- ...baseConfig.test,
- // Project-level includes otherwise override this benchmark-only selection.
- projects: undefined,
- include: ['config/scripts/performance/agent-lineage/agent-status-hot-path-benchmark.ts'],
- fileParallelism: false,
- retry: 0
- }
-})
diff --git a/config/workspace-record-read-baseline.txt b/config/workspace-record-read-baseline.txt
index 46a6fdd2dbd..ca14f9bf2ad 100644
--- a/config/workspace-record-read-baseline.txt
+++ b/config/workspace-record-read-baseline.txt
@@ -29,24 +29,24 @@
2 src/renderer/src/hooks/composer-state/composer-target-state.ts # P5b-2 must clear: composer store snapshot
3 src/renderer/src/lib/agent-session/resume/sleeping-record-execution-host-scope.ts # P5b-2 must clear: loosely typed state param
1 src/renderer/src/lib/browser/navigation/http-link-localhost-route.ts # P5b-2 must clear: optional state field defaults to empty; extracted from http-link-routing.ts
-1 src/renderer/src/lib/connection-owner-resolution.ts # P5b-2 must clear: optional-chain compare of a previous slice
-2 src/renderer/src/lib/direct-ssh-target-scope.ts # P5b-2 must clear: optional input fields default to empty
+1 src/renderer/src/lib/workspace/ownership/connection-owner-resolution.ts # P5b-2 must clear: optional-chain compare of a previous slice
+2 src/renderer/src/lib/workspace/ownership/direct-ssh-target-scope.ts # P5b-2 must clear: optional input fields default to empty
3 src/renderer/src/lib/duplicate-paired-servers.ts # P5b-2 must clear: optional state fields default to empty
-1 src/renderer/src/lib/folder-workspace-runtime-owner.ts # P5b-2 must clear: loosely typed state param
-1 src/renderer/src/lib/local-project-runtime-workspace.ts # P5b-2 must clear: optional state field defaults to empty
+1 src/renderer/src/lib/workspace/ownership/folder-workspace-runtime-owner.ts # P5b-2 must clear: loosely typed state param
+1 src/renderer/src/runtime/hosts/wsl/local-project-runtime-workspace.ts # P5b-2 must clear: optional state field defaults to empty
1 src/renderer/src/lib/resolved-worktree-execution-host.ts # P5b-2 must clear: loosely typed state param
-2 src/renderer/src/lib/runtime-session-mirror-owners.ts # P5b-2 must clear: optional state fields default to empty
+2 src/renderer/src/lib/workspace/ownership/runtime-session-mirror-owners.ts # P5b-2 must clear: optional state fields default to empty
2 src/renderer/src/lib/terminal-worktree-route.ts # P5b-2 must clear: the unattributed-twin check reads both catalogs directly
3 src/renderer/src/lib/typing-latency/diagnostic-summary.ts # P5b-2 must clear: optional state field
2 src/renderer/src/lib/unread-badge-count.ts # reads a passed-in copy
1 src/renderer/src/lib/workspace-directory.ts # P5b-2 must clear: optional state field defaults to empty
-2 src/renderer/src/lib/workspace-terminal-host-authority.ts # P5b-2 must clear: optional state fields
+2 src/renderer/src/lib/workspace/ownership/workspace-terminal-host-authority.ts # P5b-2 must clear: optional state fields
1 src/renderer/src/lib/workspace/activation/initial-surface/worktree-initial-terminal-seeding.ts # P5b-2 must clear: treats an undefined field as a narrow adapter
1 src/renderer/src/lib/workspace/activation/worktree-activation-pty-inventory.ts # P5b-2 must clear: loosely typed state param
2 src/renderer/src/lib/workspace/ownership/worktree-runtime-owner.ts # P5b-2 must clear: loosely typed state param
3 src/renderer/src/lib/workspace/persistence/workspace-session-host-persistence.ts # P5b-2 must clear: loosely typed state param
1 src/renderer/src/lib/workspace/persistence/workspace-session.ts # P5b-2 must clear: store snapshot read; file at the max-lines limit
-6 src/renderer/src/lib/worktree-operation-route.ts # P5b-2 must clear: optional state fields default to empty
+6 src/renderer/src/lib/workspace/ownership/worktree-operation-route.ts # P5b-2 must clear: optional state fields default to empty
3 src/renderer/src/runtime/native-chat/local-sessions/local-structured-session-tab-retirement.ts # P5b-2 must clear: optional state fields default to empty
2 src/renderer/src/runtime/sync-runtime-graph/sync-key.ts # reads a passed-in copy
3 src/renderer/src/store/folder-workspaces/folder-workspace-catalog-actions.ts # store writer
diff --git a/config/worktree-id-composer-baseline.txt b/config/worktree-id-composer-baseline.txt
index cb539c08ba8..ac27b7b8975 100644
--- a/config/worktree-id-composer-baseline.txt
+++ b/config/worktree-id-composer-baseline.txt
@@ -1,19 +1,18 @@
# Hand-built worktree ids (`${repoId}::${path}`) per file, outside src/shared/worktree/id.ts.
# This is a RATCHET: counts may only go DOWN. Compose ids with composeWorktreeId or
# getRepoMainWorktreeId instead. Prune after a fix: pnpm check:worktree-id-composer-ratchet --prune
+1 src/main/git/remotes/worktree-push-target-reconciliation.ts
1 src/main/ipc/workspace-cleanup/workspace-cleanup-scan.ts
1 src/main/ipc/worktree-folder-rename-target.ts
1 src/main/ipc/worktree-metadata-merge.ts
-1 src/main/git/remotes/worktree-push-target-reconciliation.ts
2 src/main/ipc/worktree-remote.ts
1 src/main/ipc/worktrees/listing/detected-provider-listing.ts
1 src/main/ipc/worktrees/listing/ssh-worktree-fallback.ts
-2 src/main/ipc/worktrees/removal/nested-worktree-removal.ts
1 src/main/memory/hydrate-local-pty-registry.ts
1 src/main/runtime/workspaces/catalog/repo-worktree-row-resolution.ts
-1 src/main/runtime/workspaces/creation/runtime-local-worktree-materialization.ts
1 src/main/runtime/workspaces/catalog/runtime-managed-worktree-queries.ts
+1 src/main/runtime/workspaces/creation/runtime-local-worktree-materialization.ts
1 src/main/runtime/workspaces/creation/runtime-provisioned-root-adoption.ts
-1 src/main/workspaces/space-analysis/workspace-space-repo-scan.ts
1 src/main/workspaces/catalog/worktree-lineage-pruning.ts
+1 src/main/workspaces/space-analysis/workspace-space-repo-scan.ts
1 src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
diff --git a/docs/assets/readme-downloads.svg b/docs/assets/readme-downloads.svg
index 844b8971f54..968f6560164 100644
--- a/docs/assets/readme-downloads.svg
+++ b/docs/assets/readme-downloads.svg
@@ -1,5 +1,5 @@
-