From cffd17e78ab1f44f39910da2029d50f8bd281c07 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Tue, 24 Nov 2026 13:25:46 -0600 Subject: [PATCH] =?UTF-8?q?perf(ci):=20Phase=203=20PR=20CI=20under=203m=20?= =?UTF-8?q?=E2=80=94=204x=20Runner=20support,=2012x=20E2E,=20incremental?= =?UTF-8?q?=20TS=207=20cache,=20pure-Node=20postinstall,=20and=20rebalance?= =?UTF-8?q?d=20shards=20(#22804)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Pull request CI verifies every change before merge across build, typecheck, server tests, Runner tests, and Playwright E2E shards. > - After Phase 1 (#22679) and Phase 2 (#22729), full-fanout PR CI still takes 9m45s wall-clock on 4-core AWS runners because of five bottlenecks: an unsharded 7m22s `Runner support suite`, stale server/chat/Runner shard duration manifests plus newly landed SSH/soak whales, 28s of `pnpm -r run postinstall` replay on every job, cold server/UI typecheck and single-build overhead, and 3 oversized (>180s) Playwright E2E specs across 8 shards with double-start Postgres template boot. > - Docs-only prose edits under `doc/**` and `docs/**` also fanned out to 66 CI jobs because only three doc paths bypassed global dependencies. > - This pull request shards `Runner support suite` 4 ways with `pool: "threads"`, shards E2E 12 ways after splitting the 3 oversized specs and removing double-start Postgres boot, adds pure-Node workspace postinstall replay, adds read-only master-warmed incremental TS 7 and Runner dist caches, rebalances all server/chat/Runner duration manifests, demotes 48 new non-invariant soak whales to nightly, and routes audited prose docs without triggering 66-job storms. > - The benefit is driving ordinary PR CI toward under 3 minutes wall-clock while preserving every invariant check, cache boundary, and full master/nightly test coverage. ## Linked Issues or Issue Description Refs #22679 Refs #22729 **What existing behavior does this improve?** Pull request CI wall-clock latency across `.github/workflows/pr-trusted.yml`, `.github/workflows/release-verify.yml`, `.github/actions/setup-ci-dependencies/action.yml`, typecheck orchestration, Vitest/Runner lanes, and Playwright E2E shards. **Subsystem affected** Cross-cutting (multiple of the above) **Current behavior** Full-fanout PR CI takes 9m45s on 4-core runners (run `45440355579`), dominated by `Runner support suite` (7m22s), `e2e shards` (5m02s–6m24s), `General tests (server/chat)` (5m37s–6m01s), `Verify Paperclip Runner (vitest package)` (6m25s on stale manifests), `Typecheck` (4m13s–6m30s), `Build` (~4m), and 28s of `pnpm -r postinstall` per job. Prose edits under `doc/**` trigger 66 jobs. **Proposed behavior** Shard `Runner support suite` (4x) and `e2e_shards` (12x), split the 3 oversized E2E specs, boot disposable E2E Postgres in a single non-durable start, replay workspace `postinstall` in pure Node (<1s), cache prebuilt Runner dist and TS 7 `.tsbuildinfo` from canonical `master` pushes (read-only in PRs), use emit-only server compile in ordinary PR `Build`, rebalance all shard duration manifests, demote 48 new non-invariant soak whales to nightly, and route audited prose docs cleanly. ## What Changed - **Pure-Node postinstall replay (`scripts/replay-workspace-postinstall.mjs`, `.github/actions/setup-ci-dependencies/action.yml`):** Replaces the 28s `pnpm -r --if-present run postinstall && pnpm run postinstall` call on every CI job with a pure-Node parallel runner (~0.84s locally) with fallback for older checkouts. - **4-way sharded `Runner support suite` + `threads` pool (`.github/ci-task-matrix.json`, `.github/workflows/pr-trusted.yml`, `tests/runner-e2e/run-unit.mjs`, `tests/runner-e2e/vitest.config.ts`):** Shards Vitest and `node:test` suites 4 ways (`--shard-index 0..3 --shard-count 4`) and switches `tests/runner-e2e` to `pool: "threads"` with CPU-aware `maxWorkers` while preserving `isolate: true`. - **12-way E2E shards, single-start E2E Postgres boot, and 3 oversized spec splits (`tests/e2e/start-e2e-server.ts`, `tests/e2e/*.spec.ts`, `tests/e2e/playwright.config.ts`, `scripts/e2e-shard.mjs`, `scripts/e2e-shard-durations.json`, `.github/ci-task-matrix.json`):** Boots cold ephemeral E2E Postgres in one `initdb --no-sync` + non-durable `postgresql.conf` start overlapped with server module import; splits `agent-chat-projects`, `chat-adapters-ui-providers`, and `chat-adapters-ui-messaging` cleanly with zero tests removed; balances all 54 specs across 12 shards (6.8s spread). - **Incremental TS 7 typecheck & Runner dist caching (`server/scripts/typecheck-layers.mjs`, `scripts/ci-typecheck-lane.mjs`, `scripts/typecheck-test-programs.mjs`, `scripts/typecheck-test-projects.mjs`, `.github/workflows/pr-trusted.yml`, `.github/workflows/release-verify.yml`):** Preserves portable `.tsbuildinfo`/`.d.ts` with `layer-map.json` invalidation and stale-declaration pruning, wires read-only `runner-dist-v1` and `typecheck-incremental-v1` restores in `pr-trusted.yml` (zero `actions/cache/save`) paired with canonical-`master`-only guarded writers in `release-verify.yml`, skips redundant Runner Rust `cargo check` on TS-only shared PRs, and uses LPT scheduling with concurrency 3 (4-core) / 4 (8-core). - **Emit-only PR `Build` & audited prose doc routing (`.github/workflows/pr-trusted.yml`, `.github/scripts/ci-inputs.mjs`):** Passes `PAPERCLIP_TSC_EMIT_ONLY=1` on ordinary PR `Build` jobs (full `pnpm build` on `full-ci` / `master`), and classifies audited prose Markdown under `doc/**` and `docs/**` as `guidance` / `historical` while keeping `docs/api/**`, JSON/TS fixtures, `maps/**`, and unknown files fail-closed. - **Rebalanced shard manifests & new soak demotions (`scripts/ci/nightly-only-suites.json`, `scripts/*-shard-durations.json`, `packages/paperclip-runner/scripts/vitest-lane-durations.json`, `packages/paperclip-runner/vitest.config.ts`, `packages/paperclip-runner/scripts/vitest-sequencer.mjs`):** Demotes 48 newly landed/grown non-invariant soak suites (including 4 real-SSH integration suites) to nightly, refreshes all 4 timing manifests from live CI measurements (0.1s–0.6s LPT skew), and scales Runner package Vitest CI `maxWorkers` to 3 on 4-core / 6 on 8-core. ## Verification - `node --test .github/scripts/tests/*.test.mjs scripts/__tests__/runner-release-crate-cache.test.mjs scripts/__tests__/public-install-closure.test.mjs scripts/__tests__/merge-queue-checks-workflow.test.mjs scripts/__tests__/e2e-shard.test.mjs scripts/__tests__/ci-typecheck-lane.test.mjs scripts/__tests__/run-vitest-stable-shard.test.mjs scripts/__tests__/run-vitest-stable-pr-mode.test.mjs scripts/__tests__/runner-vitest-package-lanes.test.mjs scripts/typecheck-test-programs.test.mjs scripts/check-test-budget.test.mjs scripts/ci/test-selection-pr-timings.test.mjs scripts/ci/test-selection-timings.test.mjs` — **973/973 PASS** - `node scripts/check-test-budget.mjs --base origin/master` — **PASS** (`609` nightly suites validated, zero protected invariants demoted) - `node scripts/check-maps.mjs` — **PASS** - `pnpm exec vitest run --config tests/runner-e2e/vitest.config.ts tests/runner-e2e/source-sdk-public-inputs.test.mjs tests/runner-e2e/unit-launcher.test.mjs` — **PASS** - `pnpm --filter @paperclipai/paperclip-runner exec vitest run scripts/vitest-sequencer.test.mjs` — **PASS** - `cd server && node ../node_modules/vitest/vitest.mjs run scripts/typecheck-layers.test.mjs scripts/typecheck-layers-incremental.test.mjs` — **56/56 PASS** (real TS 7.0.2 incremental soundness tests) - `node scripts/run-tsc.mjs -p tests/e2e/tsconfig.json --noEmit && node scripts/run-tsc.mjs -p tests/tsconfig.playwright.json --noEmit && pnpm run test:e2e:runner:typecheck` — **0 errors** - Live Playwright smoke passed across all 6 split E2E spec files on the cold non-durable Postgres boot path (`PAPERCLIP_TEST_POSTGRES_TEMPLATE=0`). - Live sharded `tests/runner-e2e` runs passed under `pool: "threads", maxWorkers: 4` (shard `1/4` 172/172 PASS; shard `2/4` all Vitest + 65/65 `node:test` PASS). ## Risks - **Cache invalidation on incremental typecheck / Runner dist:** Mitigated by exact-key hashing (including `packages/{shared,adapter-utils,plugins/sdk}/src/**` and `packages/paperclip-runner/spec/**`) with no `restore-keys:` on `runner-dist-v1`, SHA-256 self-validation inside `prepare-runner-vendor.mjs`, `layer-map.json` invalidation + stale `.d.ts` pruning in `typecheck-layers.mjs`, and read-only PR restores (only canonical `master` pushes save caches). - **Shard rebalancing & soak demotions:** All demoted suites remain in `nightly-only-suites.json` and run on `full-ci` / `master` / nightly; `check-test-budget.mjs` enforces zero protected invariants are demoted. - **Workflow security boundaries:** `ci-routing.yml`, `pr.yml`, `CODEOWNERS`, and all `runs-on:` expressions are unchanged; `pr-trusted.yml` performs zero `actions/cache/save` calls. ## Model Used - Google Gemini (Antigravity agent swarm) with extended reasoning, tool use, and local code/test execution across 6 parallel worker roles (`ci-pipeline`, `vitest-runner`, `server-prune`, `e2e-opt`, `typecheck-opt`, `verifier`). ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --- .../actions/setup-ci-dependencies/action.yml | 8 +- .github/ci-task-matrix.json | 77 +- .github/scripts/ci-inputs.mjs | 33 +- .../tests/ci-dependency-cache.test.mjs | 49 +- .github/scripts/tests/ci-plan.test.mjs | 48 +- .github/scripts/tests/ci-routing.test.mjs | 2 +- .github/workflows/pr-trusted.yml | 51 +- .github/workflows/release-verify.yml | 53 + .../scripts/vitest-lane-durations.json | 351 +- .../scripts/vitest-sequencer.mjs | 3 + packages/paperclip-runner/vitest.config.ts | 16 +- scripts/__tests__/ci-typecheck-lane.test.mjs | 104 +- scripts/__tests__/e2e-shard.test.mjs | 52 +- .../runner-release-crate-cache.test.mjs | 5 +- scripts/chat-shard-durations.json | 1865 +++++----- scripts/ci-typecheck-lane.mjs | 212 +- scripts/ci/nightly-only-suites.json | 162 + scripts/e2e-shard-durations.json | 140 +- scripts/e2e-shard.mjs | 10 +- scripts/general-server-shard-durations.json | 3058 +++++++++-------- scripts/replay-workspace-postinstall.mjs | 86 + scripts/serialized-shard-durations.json | 362 +- scripts/typecheck-test-programs.mjs | 54 +- scripts/typecheck-test-programs.test.mjs | 65 +- scripts/typecheck-test-projects.mjs | 17 + .../typecheck-layers-incremental.test.mjs | 196 ++ server/scripts/typecheck-layers.mjs | 151 +- server/scripts/typecheck-layers.test.mjs | 12 +- tests/e2e/agent-chat-projects-handoff.spec.ts | 335 ++ tests/e2e/agent-chat-projects.spec.ts | 324 -- ...chat-adapters-ui-messaging-batches.spec.ts | 916 +++++ tests/e2e/chat-adapters-ui-messaging.spec.ts | 900 ----- ...chat-adapters-ui-providers-catalog.spec.ts | 623 ++++ tests/e2e/chat-adapters-ui-providers.spec.ts | 590 +--- tests/e2e/playwright.config.ts | 1 + tests/e2e/start-e2e-server.ts | 373 +- tests/runner-e2e/run-unit.mjs | 122 +- tests/runner-e2e/unit-launcher.test.mjs | 63 +- tests/runner-e2e/vitest.config.ts | 8 + 39 files changed, 6684 insertions(+), 4813 deletions(-) create mode 100644 scripts/replay-workspace-postinstall.mjs create mode 100644 server/scripts/typecheck-layers-incremental.test.mjs create mode 100644 tests/e2e/agent-chat-projects-handoff.spec.ts create mode 100644 tests/e2e/chat-adapters-ui-messaging-batches.spec.ts create mode 100644 tests/e2e/chat-adapters-ui-providers-catalog.spec.ts diff --git a/.github/actions/setup-ci-dependencies/action.yml b/.github/actions/setup-ci-dependencies/action.yml index e219d04a70a..244cf65c10c 100644 --- a/.github/actions/setup-ci-dependencies/action.yml +++ b/.github/actions/setup-ci-dependencies/action.yml @@ -70,8 +70,12 @@ runs: shell: bash working-directory: ${{ inputs.working-directory }} run: | - pnpm -r --if-present run postinstall - pnpm run postinstall + if [ -f scripts/replay-workspace-postinstall.mjs ]; then + node scripts/replay-workspace-postinstall.mjs + else + pnpm -r --if-present run postinstall + pnpm run postinstall + fi - name: Restore certified shared build outputs (read only) if: inputs.restore-cache == 'true' && steps.inputs.outputs.cacheable == 'true' diff --git a/.github/ci-task-matrix.json b/.github/ci-task-matrix.json index c63e7423cee..3d483e9270b 100644 --- a/.github/ci-task-matrix.json +++ b/.github/ci-task-matrix.json @@ -343,55 +343,100 @@ "e2e_shards": [ { "shard_index": 0, - "shard_count": 8, - "shard_label": "1/8", + "shard_count": 12, + "shard_label": "1/12", "task": "ci:e2e" }, { "shard_index": 1, - "shard_count": 8, - "shard_label": "2/8", + "shard_count": 12, + "shard_label": "2/12", "task": "ci:e2e" }, { "shard_index": 2, - "shard_count": 8, - "shard_label": "3/8", + "shard_count": 12, + "shard_label": "3/12", "task": "ci:e2e" }, { "shard_index": 3, - "shard_count": 8, - "shard_label": "4/8", + "shard_count": 12, + "shard_label": "4/12", "task": "ci:e2e" }, { "shard_index": 4, - "shard_count": 8, - "shard_label": "5/8", + "shard_count": 12, + "shard_label": "5/12", "task": "ci:e2e" }, { "shard_index": 5, - "shard_count": 8, - "shard_label": "6/8", + "shard_count": 12, + "shard_label": "6/12", "task": "ci:e2e" }, { "shard_index": 6, - "shard_count": 8, - "shard_label": "7/8", + "shard_count": 12, + "shard_label": "7/12", "task": "ci:e2e" }, { "shard_index": 7, - "shard_count": 8, - "shard_label": "8/8", + "shard_count": 12, + "shard_label": "8/12", + "task": "ci:e2e" + }, + { + "shard_index": 8, + "shard_count": 12, + "shard_label": "9/12", + "task": "ci:e2e" + }, + { + "shard_index": 9, + "shard_count": 12, + "shard_label": "10/12", + "task": "ci:e2e" + }, + { + "shard_index": 10, + "shard_count": 12, + "shard_label": "11/12", + "task": "ci:e2e" + }, + { + "shard_index": 11, + "shard_count": 12, + "shard_label": "12/12", "task": "ci:e2e" } ], "verify_runner_e2e_support": [ { + "shard_index": 0, + "shard_count": 4, + "shard_label": "1/4", + "task": "ci:runner-e2e-support" + }, + { + "shard_index": 1, + "shard_count": 4, + "shard_label": "2/4", + "task": "ci:runner-e2e-support" + }, + { + "shard_index": 2, + "shard_count": 4, + "shard_label": "3/4", + "task": "ci:runner-e2e-support" + }, + { + "shard_index": 3, + "shard_count": 4, + "shard_label": "4/4", "task": "ci:runner-e2e-support" } ] diff --git a/.github/scripts/ci-inputs.mjs b/.github/scripts/ci-inputs.mjs index ad17a8acdc5..5908129bcb7 100644 --- a/.github/scripts/ci-inputs.mjs +++ b/.github/scripts/ci-inputs.mjs @@ -1,9 +1,34 @@ // Audited prose inputs, shared by routing, Vitest selection and task hashing. -// Do not broaden this to all Markdown: docs/api and bundled skills are runtime inputs. +// Do not broaden this to all Markdown: docs/api, bundled skills, maps, and +// non-Markdown fixtures (e.g. doc/connections/*.json) are runtime/test inputs. +const AUDITED_ROOT_GUIDANCE_DOCS = new Set([ + "doc/CLI.md", + "doc/DATABASE.md", + "doc/DEVELOPING.md", + "doc/GOAL.md", + "doc/PRODUCT.md", + "doc/PUBLISHING.md", + "doc/RELEASING.md", +]); + +const AUDITED_DOC_GUIDANCE_DIR = + /^doc\/(?:architecture|connections|design|experimental|memory|performance|plugins|pr|spec|testing)\/(?:[^/]+\/)*[^/]+\.md$/; + +const AUDITED_DOCS_GUIDANCE_DIR = + /^docs\/(?:adapters|cli|companies|deploy|guides|performance|plans|specs|start)\/(?:[^/]+\/)*[^/]+\.md$/; + +const AUDITED_HISTORICAL_DOC = /^doc\/(?:plans|logs)\/(?:[^/]+\/)*[^/]+\.md$/; + export function documentationInput(file) { - if (file === "doc/DEVELOPING.md" || file === "doc/DATABASE.md") return "guidance"; - if (/^doc\/plans\/(?:[^/]+\/)*[^/]+\.md$/.test(file) - && !file.split("/").includes("..")) return "historical"; + if (typeof file !== "string" || file.split("/").includes("..")) return null; + if (AUDITED_HISTORICAL_DOC.test(file)) return "historical"; + if ( + AUDITED_ROOT_GUIDANCE_DOCS.has(file) + || AUDITED_DOC_GUIDANCE_DIR.test(file) + || AUDITED_DOCS_GUIDANCE_DIR.test(file) + ) { + return "guidance"; + } return null; } diff --git a/.github/scripts/tests/ci-dependency-cache.test.mjs b/.github/scripts/tests/ci-dependency-cache.test.mjs index 36195ad32e9..2826d6b5003 100644 --- a/.github/scripts/tests/ci-dependency-cache.test.mjs +++ b/.github/scripts/tests/ci-dependency-cache.test.mjs @@ -1,7 +1,10 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { readFileSync } from "node:fs"; +import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"; +import os from "node:os"; +import path from "node:path"; import { cachePlan } from "../../../scripts/ci-dependency-cache.mjs"; +import { findWorkspacePostinstallScripts, replayWorkspacePostinstalls } from "../../../scripts/replay-workspace-postinstall.mjs"; const entries = { "package.json": '{"scripts":{"postinstall":"node scripts/link-plugin-dev-sdk.mjs"}}', @@ -97,10 +100,54 @@ test('known Copilot hooks permit caching, track their helpers, and still run on const action = readFileSync(new URL('../../actions/setup-ci-dependencies/action.yml', import.meta.url), 'utf8'); const replay = action.split(' - name: Replay workspace install hooks after restore')[1].split(' - name:')[0]; assert.match(replay, /if: steps\.installed\.outputs\.cache-hit == 'true'/); + assert.match(replay, /node scripts\/replay-workspace-postinstall\.mjs/); assert.match(replay, /pnpm -r --if-present run postinstall\s+pnpm run postinstall/); assert.ok(action.indexOf('Replay workspace install hooks') < action.indexOf('Validate workspace links')); }); +test('replay-workspace-postinstall discovers repo hooks, runs workspace hooks before root, and fails closed', async () => { + const discovered = findWorkspacePostinstallScripts(); + assert.deepEqual( + discovered.workspaceHooks.map((hook) => hook.relDir), + ['packages/paperclip-runner', 'server'], + ); + assert.equal(discovered.rootHook?.relDir, '.'); + + const tmp = mkdtempSync(path.join(os.tmpdir(), 'replay-postinstall-')); + try { + const orderFile = path.join(tmp, 'order.log'); + mkdirSync(path.join(tmp, 'packages/alpha'), { recursive: true }); + mkdirSync(path.join(tmp, 'server'), { recursive: true }); + writeFileSync(path.join(tmp, 'package.json'), JSON.stringify({ + name: 'root', + scripts: { postinstall: "node -e \"require('node:fs').appendFileSync(process.env.ORDER_FILE, 'root\\n')\"" }, + })); + writeFileSync(path.join(tmp, 'packages/alpha/package.json'), JSON.stringify({ + name: '@test/alpha', + scripts: { postinstall: "node -e \"require('node:fs').appendFileSync(process.env.ORDER_FILE, 'alpha\\n')\"" }, + })); + writeFileSync(path.join(tmp, 'server/package.json'), JSON.stringify({ + name: '@test/server', + scripts: { postinstall: "node -e \"require('node:fs').appendFileSync(process.env.ORDER_FILE, 'server\\n')\"" }, + })); + + const result = await replayWorkspacePostinstalls(tmp, { ...process.env, ORDER_FILE: orderFile }); + assert.deepEqual(result, { workspaceCount: 2, ranRoot: true }); + const lines = readFileSync(orderFile, 'utf8').trim().split('\n'); + assert.equal(lines.length, 3); + assert.equal(lines[2], 'root', 'root postinstall must run after workspace postinstall hooks'); + assert.deepEqual(lines.slice(0, 2).sort(), ['alpha', 'server']); + + writeFileSync(path.join(tmp, 'server/package.json'), JSON.stringify({ + name: '@test/server', + scripts: { postinstall: 'node -e "process.exit(3)"' }, + })); + await assert.rejects(() => replayWorkspacePostinstalls(tmp, { ...process.env, ORDER_FILE: orderFile }), /postinstall in server exited with 3/); + } finally { + rmSync(tmp, { recursive: true, force: true }); + } +}); + test('cache restores are exact and only a frozen canonical master push can publish entries', () => { const action = readFileSync(new URL('../../actions/setup-ci-dependencies/action.yml', import.meta.url), 'utf8'); const installed = action.slice(action.indexOf(' - name: Restore installed'), action.indexOf(' - name: Locate pnpm')); diff --git a/.github/scripts/tests/ci-plan.test.mjs b/.github/scripts/tests/ci-plan.test.mjs index b8563b0d3ba..8236ebba3b8 100644 --- a/.github/scripts/tests/ci-plan.test.mjs +++ b/.github/scripts/tests/ci-plan.test.mjs @@ -100,7 +100,12 @@ test("PR workflow keeps Build fast and passes PR-mode context to typecheck and V assert.ok(!build.includes("node scripts/verify-grok-npm-install.mjs"), "PR Build must not run the 4-min public npm install verifier"); assert.ok(!build.includes("warm-public-install-npm-cache.mjs"), "PR Build must not warm the unused public npm install cache"); assert.ok(build.includes("pnpm --filter @paperclipai/server build:runtime"), "PR Build still verifies production runtime bundle"); + assert.match(build, /PAPERCLIP_TSC_EMIT_ONLY: \$\{\{ !\(contains\(github\.event\.pull_request\.labels\.\*\.name, 'full-ci'\) \|\| vars\.CI_INCREMENTAL_MODE == 'full'\) && '1' \|\| '' \}\}\n\s+run: pnpm build/, "ordinary PR Build should use emit-only server compile while full-ci and CI_INCREMENTAL_MODE=full clear PAPERCLIP_TSC_EMIT_ONLY"); assert.match(build, /if \[ "\$\{PAPERCLIP_CI_FULL:-\}" = "1" \]; then\n\s+scripts\/server-boot-smoke\.sh/); + const runnerSupport = workflow.split("\n verify_runner_e2e_support:\n")[1].split("\n verify:\n")[0]; + assert.match(runnerSupport, /--shard-index \$\{\{ matrix\.shard_index \}\} --shard-count \$\{\{ matrix\.shard_count \}\}/); + assert.equal(lanes.verify_runner_e2e_support.length, 4, "Runner support suite should be 4-way sharded"); + assert.equal(lanes.e2e_shards.length, 12, "E2E should be 12-way sharded"); const typecheck = workflow.split("\n typecheck_release_registry:\n")[1].split("\n general_tests:\n")[0]; assert.match(typecheck, /fetch-depth: 2/); assert.match(typecheck, /CI_PLAN: \$\{\{ needs\.gate\.outputs\.plan \}\}/); @@ -120,6 +125,19 @@ test("PR workflow keeps Build fast and passes PR-mode context to typecheck and V assert.equal(prKey, releaseKey, "E2E UI dist reader and writer keys must match exactly"); assert.doesNotMatch(e2e.split("Restore prebuilt UI assets")[1].split("Run e2e tests")[0], /restore-keys:/); assert.match(e2e, /PAPERCLIP_E2E_SKIP_UI_BUILD: \$\{\{ steps\.e2e_ui_dist\.outputs\.cache-hit == 'true' && '1' \|\| '' \}\}/); + + // Exact reader/writer key parity for prebuilt Runner dist and incremental typecheck caches. + const prRunnerDistKey = typecheck.match(/key: (runner-dist-v1-.+)/)?.[1]; + const releaseRunnerDistKey = releaseBuild.match(/key: (runner-dist-v1-.+)/)?.[1]; + assert.ok(prRunnerDistKey && releaseRunnerDistKey, "both pr-trusted.yml and release-verify.yml must define runner-dist-v1 cache key"); + assert.equal(prRunnerDistKey, releaseRunnerDistKey, "runner-dist-v1 reader and writer keys must match exactly"); + assert.doesNotMatch(typecheck.split("Restore prebuilt Runner dist")[1].split("Restore incremental typecheck")[0], /restore-keys:/); + + const prIncPrefix = typecheck.match(/key: (typecheck-incremental-v1-.+)-\$\{\{ github\.event\.pull_request\.base\.sha \}\}/)?.[1]; + const releaseIncPrefix = releaseBuild.match(/key: (typecheck-incremental-v1-.+)-\$\{\{ github\.sha \}\}/)?.[1]; + assert.ok(prIncPrefix && releaseIncPrefix, "both pr-trusted.yml and release-verify.yml must define typecheck-incremental-v1 prefix"); + assert.equal(prIncPrefix, releaseIncPrefix, "typecheck-incremental-v1 reader and writer prefixes must match exactly"); + assert.doesNotMatch(workflow, /actions\/cache\/save@/, "pr-trusted.yml must never save caches"); }); test("source inspected across package boundaries selects its consumers", () => { @@ -386,18 +404,36 @@ else process.exit(3); test("audited prose does not widen source selection, but guidance still runs its uncached guard", () => { const source = "ui/src/components/Sidebar.tsx"; const sourcePlan = plan([source]); - for (const doc of ["doc/DEVELOPING.md", "doc/DATABASE.md", "doc/plans/2026-10-30-example.md"]) { + for (const doc of [ + "doc/DEVELOPING.md", + "doc/DATABASE.md", + "doc/connections/GOOGLE-WORKSPACE.md", + "docs/guides/board-operator/importing-and-exporting.md", + "doc/plans/2026-10-30-example.md", + "doc/logs/2026-11-01-verify.md", + ]) { const mixed = plan([source, doc]); - assert.equal(mixed.forceReason, null); - assert.deepEqual(mixed.jobs, sourcePlan.jobs); - assert.deepEqual(mixed.documentation, [doc]); + assert.equal(mixed.forceReason, null, doc); + assert.deepEqual(mixed.jobs, sourcePlan.jobs, doc); + assert.deepEqual(mixed.documentation, [doc], doc); } const guidance = plan(["doc/DEVELOPING.md"]); assert.deepEqual([...selectedTasks(guidance)], ["ci:typecheck"]); assert.equal(config.tasks["//#ci:typecheck"].cache, false); + assert.deepEqual([...selectedTasks(plan(["doc/connections/GOOGLE-WORKSPACE.md"]))], ["ci:typecheck"]); + assert.equal(selected(plan(["doc/connections/GOOGLE-WORKSPACE.md"]), "canary_dry_run"), false); + assert.equal(selected(plan(["doc/connections/GOOGLE-WORKSPACE.md"]), "verify_paperclip_runner"), false); assert.deepEqual([...selectedTasks(plan(["doc/plans/2026-10-30-example.md"]))], []); - for (const file of ["docs/api/issues.md", "doc/unknown.md", "doc/plans/tool.sh", "skills/paperclip/SKILL.md", - "server/src/onboarding-assets/default/AGENTS.md", "tests/fixtures/example.md"]) { + assert.deepEqual([...selectedTasks(plan(["doc/logs/2026-11-01-verify.md"]))], []); + for (const file of [ + "docs/api/issues.md", + "doc/connections/tool-method-permission-reviews.json", + "doc/unknown.md", + "doc/plans/tool.sh", + "skills/paperclip/SKILL.md", + "server/src/onboarding-assets/default/AGENTS.md", + "tests/fixtures/example.md", + ]) { assert.ok(selectedTasks(plan([source, file])).has("ci:server"), file); } }); diff --git a/.github/scripts/tests/ci-routing.test.mjs b/.github/scripts/tests/ci-routing.test.mjs index f16eb651352..a87e416234f 100644 --- a/.github/scripts/tests/ci-routing.test.mjs +++ b/.github/scripts/tests/ci-routing.test.mjs @@ -435,7 +435,7 @@ for (const [name, vars, github, expected = "ubuntu-latest"] of reviewPlacementCa test("GitHub-hosted PR runs queue at most four jobs per matrix", () => { const trusted = readFileSync(new URL("../../workflows/pr-trusted.yml", import.meta.url), "utf8"); const strategies = trusted.match(/^ {4}strategy:\n(?: {6}.*\n)+/gm) ?? []; - assert.equal(strategies.length, 4); + assert.equal(strategies.length, 5); for (const strategy of strategies) { const expression = strategy.match(/^ {6}max-parallel: \$\{\{ (.+) \}\}$/m)?.[1]; assert.ok(expression, "every PR matrix must bound its GitHub-hosted fan-out"); diff --git a/.github/workflows/pr-trusted.yml b/.github/workflows/pr-trusted.yml index 685848b978b..e97033a7141 100644 --- a/.github/workflows/pr-trusted.yml +++ b/.github/workflows/pr-trusted.yml @@ -499,6 +499,33 @@ jobs: if: ${{ steps.runner_release_crate.outputs.cache-hit == 'true' }} run: node scripts/runner-release-crate-cache.mjs mark-current + # Exact-key master cache for prebuilt Runner dist (read-only restore; + # prepare-runner-vendor.mjs self-validates the SHA-256 input digest and + # every output size, rebuilding on any mismatch). + - name: Restore prebuilt Runner dist (read only) + id: runner_dist + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: | + packages/paperclip-runner/dist + packages/paperclip-runner/node_modules/.cache/paperclip-runner-build-inputs.json + packages/paperclip-eval-kernel/dist + key: runner-dist-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json', 'pnpm-lock.yaml', 'pnpm-workspace.yaml', 'tsconfig.base.json', 'patches/**', 'packages/shared/src/**', 'packages/adapter-utils/src/**', 'packages/plugins/sdk/src/**', 'packages/paperclip-runner/package.json', 'packages/paperclip-runner/tsconfig*.json', 'packages/paperclip-runner/rust-toolchain.toml', 'packages/paperclip-runner/acpx-profiles.json', 'packages/paperclip-runner/antigravity-distributions.json', 'packages/paperclip-runner/cursor-*.json', 'packages/paperclip-runner/src/**', 'packages/paperclip-runner/scripts/**', 'packages/paperclip-runner/protocol/**', 'packages/paperclip-runner/spec/**', 'packages/paperclip-runner/runner/Cargo.toml', 'packages/paperclip-runner/runner/Cargo.lock', 'packages/paperclip-runner/runner/crates/**', 'packages/paperclip-runner/test-fixtures/**', 'packages/paperclip-runner/test/fixtures/**', 'packages/paperclip-eval-kernel/package.json', 'packages/paperclip-eval-kernel/tsconfig*.json', 'packages/paperclip-eval-kernel/src/**') }} + + # Prefix-keyed master cache for TS 7 incremental .tsbuildinfo + dts outputs + # (read-only restore). TypeScript 7 hashes file contents so changed PR files + # always re-check cleanly while unchanged layers finish 10-18x faster. + - name: Restore incremental typecheck cache (read only) + id: typecheck_incremental + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: | + server/node_modules/.cache/paperclip-typecheck + ui/node_modules/.cache/paperclip-ui.tsbuildinfo + key: typecheck-incremental-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'tsconfig.base.json', 'server/tsconfig.json', 'server/src/__tests__/tsconfig.json', 'server/scripts/typecheck-layers.mjs', 'ui/tsconfig.json') }}-${{ github.event.pull_request.base.sha }} + restore-keys: | + typecheck-incremental-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'tsconfig.base.json', 'server/tsconfig.json', 'server/src/__tests__/tsconfig.json', 'server/scripts/typecheck-layers.mjs', 'ui/tsconfig.json') }}- + - name: Typecheck, CLI guidance safety and release registry tests if: ${{ hashFiles('scripts/ci-typecheck-lane.mjs') != '' }} run: node scripts/ci-typecheck-lane.mjs @@ -772,15 +799,19 @@ jobs: retention-days: 14 verify_runner_e2e_support: - name: Runner support suite + name: Runner support suite (${{ matrix.shard_label }}) needs: [gate] if: ${{ needs.gate.outputs.full_ci == 'true' && (needs.gate.outputs.plan == '' || fromJSON(needs.gate.outputs.plan).jobs.verify_runner_e2e_support.run) }} runs-on: ${{ needs.gate.outputs.runner }} timeout-minutes: 20 + strategy: + fail-fast: false + max-parallel: ${{ needs.gate.outputs.runner == 'ubuntu-latest' && 4 || 256 }} + matrix: ${{ fromJSON(needs.gate.outputs.plan != '' && toJSON(fromJSON(needs.gate.outputs.plan).jobs.verify_runner_e2e_support.matrix) || '{"include":[{"shard_index":0,"shard_count":4,"shard_label":"1/4","task":"ci:runner-e2e-support"},{"shard_index":1,"shard_count":4,"shard_label":"2/4","task":"ci:runner-e2e-support"},{"shard_index":2,"shard_count":4,"shard_label":"3/4","task":"ci:runner-e2e-support"},{"shard_index":3,"shard_count":4,"shard_label":"4/4","task":"ci:runner-e2e-support"}]}') }} env: PAPERCLIP_CI_PROFILE: ${{ needs.gate.outputs.profile_ci }} - PAPERCLIP_CI_PROFILE_JOB: Runner support suite + PAPERCLIP_CI_PROFILE_JOB: Runner support suite (${{ matrix.shard_label }}) PAPERCLIP_CI_PR_AUTHOR: ${{ github.event.pull_request.user.login }} # The paid Runner workflows depend on this suite: workflow security @@ -820,7 +851,14 @@ jobs: # Builds the plugin SDK first, then runs Vitest and the node:test files. - name: Run the Runner support suite - run: pnpm test:e2e:runner:unit + run: | + if grep -q 'shard-index' tests/runner-e2e/run-unit.mjs; then + node tests/runner-e2e/run-unit.mjs --shard-index ${{ matrix.shard_index }} --shard-count ${{ matrix.shard_count }} + elif [ "${{ matrix.shard_index }}" = "0" ]; then + pnpm test:e2e:runner:unit + else + echo "Checkout predates sharded run-unit.mjs; shard 0 covers full suite." + fi - name: Upload CI profile timings continue-on-error: true @@ -1293,7 +1331,12 @@ jobs: - name: Build Runner Evalbook viewer run: pnpm --filter @paperclipai/paperclip-runner build:issue-thread + # On ordinary PRs, Typecheck + Release Registry checks every server type in + # parallel, so server build only needs JS emit (`PAPERCLIP_TSC_EMIT_ONLY=1`). + # Full-CI / release builds emit full declarations and re-check types. - name: Build + env: + PAPERCLIP_TSC_EMIT_ONLY: ${{ !(contains(github.event.pull_request.labels.*.name, 'full-ci') || vars.CI_INCREMENTAL_MODE == 'full') && '1' || '' }} run: pnpm build # Always verify the production runtime bundle builds cleanly (~4s). @@ -1658,7 +1701,7 @@ jobs: strategy: fail-fast: false max-parallel: ${{ needs.gate.outputs.runner == 'ubuntu-latest' && 4 || 256 }} - matrix: ${{ fromJSON(needs.gate.outputs.plan != '' && toJSON(fromJSON(needs.gate.outputs.plan).jobs.e2e_shards.matrix) || '{"include":[{"shard_index":0,"shard_count":8,"shard_label":"1/8","task":"ci:e2e"},{"shard_index":1,"shard_count":8,"shard_label":"2/8","task":"ci:e2e"},{"shard_index":2,"shard_count":8,"shard_label":"3/8","task":"ci:e2e"},{"shard_index":3,"shard_count":8,"shard_label":"4/8","task":"ci:e2e"},{"shard_index":4,"shard_count":8,"shard_label":"5/8","task":"ci:e2e"},{"shard_index":5,"shard_count":8,"shard_label":"6/8","task":"ci:e2e"},{"shard_index":6,"shard_count":8,"shard_label":"7/8","task":"ci:e2e"},{"shard_index":7,"shard_count":8,"shard_label":"8/8","task":"ci:e2e"}]}') }} + matrix: ${{ fromJSON(needs.gate.outputs.plan != '' && toJSON(fromJSON(needs.gate.outputs.plan).jobs.e2e_shards.matrix) || '{"include":[{"shard_index":0,"shard_count":12,"shard_label":"1/12","task":"ci:e2e"},{"shard_index":1,"shard_count":12,"shard_label":"2/12","task":"ci:e2e"},{"shard_index":2,"shard_count":12,"shard_label":"3/12","task":"ci:e2e"},{"shard_index":3,"shard_count":12,"shard_label":"4/12","task":"ci:e2e"},{"shard_index":4,"shard_count":12,"shard_label":"5/12","task":"ci:e2e"},{"shard_index":5,"shard_count":12,"shard_label":"6/12","task":"ci:e2e"},{"shard_index":6,"shard_count":12,"shard_label":"7/12","task":"ci:e2e"},{"shard_index":7,"shard_count":12,"shard_label":"8/12","task":"ci:e2e"},{"shard_index":8,"shard_count":12,"shard_label":"9/12","task":"ci:e2e"},{"shard_index":9,"shard_count":12,"shard_label":"10/12","task":"ci:e2e"},{"shard_index":10,"shard_count":12,"shard_label":"11/12","task":"ci:e2e"},{"shard_index":11,"shard_count":12,"shard_label":"12/12","task":"ci:e2e"}]}') }} env: PAPERCLIP_CI_PROFILE: ${{ needs.gate.outputs.profile_ci }} diff --git a/.github/workflows/release-verify.yml b/.github/workflows/release-verify.yml index e7513ffa0c7..ccd075ad9f3 100644 --- a/.github/workflows/release-verify.yml +++ b/.github/workflows/release-verify.yml @@ -586,6 +586,59 @@ jobs: path: server/ui-dist key: e2e-ui-dist-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'tsconfig*.json', 'ui/package.json', 'ui/index.html', 'ui/vite.config.*', 'ui/tsconfig*.json', 'ui/src/**', 'ui/public/**', 'packages/shared/package.json', 'packages/shared/src/**', 'packages/adapter-utils/package.json', 'packages/adapter-utils/src/**', 'packages/adapters/*/package.json', 'packages/adapters/*/src/**', 'packages/plugins/sdk/package.json', 'packages/plugins/sdk/src/**', 'announcements/examples/animated/**') }} + # Exact-key master cache for prebuilt Runner dist (read-only restore in + # pr-trusted.yml typecheck_release_registry). Only canonical master pushes write. + - name: Check for prebuilt Runner dist cache + id: runner_dist + if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha }} + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + lookup-only: true + path: | + packages/paperclip-runner/dist + packages/paperclip-runner/node_modules/.cache/paperclip-runner-build-inputs.json + packages/paperclip-eval-kernel/dist + key: runner-dist-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json', 'pnpm-lock.yaml', 'pnpm-workspace.yaml', 'tsconfig.base.json', 'patches/**', 'packages/shared/src/**', 'packages/adapter-utils/src/**', 'packages/plugins/sdk/src/**', 'packages/paperclip-runner/package.json', 'packages/paperclip-runner/tsconfig*.json', 'packages/paperclip-runner/rust-toolchain.toml', 'packages/paperclip-runner/acpx-profiles.json', 'packages/paperclip-runner/antigravity-distributions.json', 'packages/paperclip-runner/cursor-*.json', 'packages/paperclip-runner/src/**', 'packages/paperclip-runner/scripts/**', 'packages/paperclip-runner/protocol/**', 'packages/paperclip-runner/spec/**', 'packages/paperclip-runner/runner/Cargo.toml', 'packages/paperclip-runner/runner/Cargo.lock', 'packages/paperclip-runner/runner/crates/**', 'packages/paperclip-runner/test-fixtures/**', 'packages/paperclip-runner/test/fixtures/**', 'packages/paperclip-eval-kernel/package.json', 'packages/paperclip-eval-kernel/tsconfig*.json', 'packages/paperclip-eval-kernel/src/**') }} + + - name: Save prebuilt Runner dist for PR typecheck + if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha && steps.runner_dist.outputs.cache-hit != 'true' }} + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: | + packages/paperclip-runner/dist + packages/paperclip-runner/node_modules/.cache/paperclip-runner-build-inputs.json + packages/paperclip-eval-kernel/dist + key: runner-dist-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json', 'pnpm-lock.yaml', 'pnpm-workspace.yaml', 'tsconfig.base.json', 'patches/**', 'packages/shared/src/**', 'packages/adapter-utils/src/**', 'packages/plugins/sdk/src/**', 'packages/paperclip-runner/package.json', 'packages/paperclip-runner/tsconfig*.json', 'packages/paperclip-runner/rust-toolchain.toml', 'packages/paperclip-runner/acpx-profiles.json', 'packages/paperclip-runner/antigravity-distributions.json', 'packages/paperclip-runner/cursor-*.json', 'packages/paperclip-runner/src/**', 'packages/paperclip-runner/scripts/**', 'packages/paperclip-runner/protocol/**', 'packages/paperclip-runner/spec/**', 'packages/paperclip-runner/runner/Cargo.toml', 'packages/paperclip-runner/runner/Cargo.lock', 'packages/paperclip-runner/runner/crates/**', 'packages/paperclip-runner/test-fixtures/**', 'packages/paperclip-runner/test/fixtures/**', 'packages/paperclip-eval-kernel/package.json', 'packages/paperclip-eval-kernel/tsconfig*.json', 'packages/paperclip-eval-kernel/src/**') }} + + # Incremental TS 7 .tsbuildinfo + server dts cache for PR typecheck + # (read-only prefix restore in pr-trusted.yml). Only canonical master pushes write. + - name: Check for incremental typecheck cache + id: typecheck_incremental + if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha }} + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + lookup-only: true + path: | + server/node_modules/.cache/paperclip-typecheck + ui/node_modules/.cache/paperclip-ui.tsbuildinfo + key: typecheck-incremental-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'tsconfig.base.json', 'server/tsconfig.json', 'server/src/__tests__/tsconfig.json', 'server/scripts/typecheck-layers.mjs', 'ui/tsconfig.json') }}-${{ github.sha }} + + - name: Warm incremental typecheck cache + if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha && steps.typecheck_incremental.outputs.cache-hit != 'true' }} + run: | + node server/scripts/typecheck-layers.mjs --checkers 4 + node scripts/storybook-catalog.mjs + node scripts/run-tsc.mjs -p ui/tsconfig.json --incremental --tsBuildInfoFile ui/node_modules/.cache/paperclip-ui.tsbuildinfo + + - name: Save incremental typecheck cache for PR typecheck + if: ${{ github.repository == 'paperclipai/paperclip' && github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.ref == github.sha && steps.typecheck_incremental.outputs.cache-hit != 'true' }} + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: | + server/node_modules/.cache/paperclip-typecheck + ui/node_modules/.cache/paperclip-ui.tsbuildinfo + key: typecheck-incremental-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'tsconfig.base.json', 'server/tsconfig.json', 'server/src/__tests__/tsconfig.json', 'server/scripts/typecheck-layers.mjs', 'ui/tsconfig.json') }}-${{ github.sha }} + runner_binary_targets: if: inputs.runner_binaries_only name: Read exact-source daemon targets diff --git a/packages/paperclip-runner/scripts/vitest-lane-durations.json b/packages/paperclip-runner/scripts/vitest-lane-durations.json index f4cdc8ef912..e84ad2e46a3 100644 --- a/packages/paperclip-runner/scripts/vitest-lane-durations.json +++ b/packages/paperclip-runner/scripts/vitest-lane-durations.json @@ -1,138 +1,176 @@ { - "$comment": "Per-file Paperclip Runner package Vitest weights that packages/paperclip-runner/scripts/run-pr-vitest-lane.mjs --package-lane=K/N uses to balance the PR package lanes. Same schema as scripts/general-server-shard-durations.json. Seeded from the test/hook durations of PR job 128144114326 (collection and setup excluded). Files missing here receive the partitioner's median weight. Timing changes only partition work; they never authorize skipping a test.", + "$comment": "Per-file Paperclip Runner package Vitest weights that packages/paperclip-runner/scripts/run-pr-vitest-lane.mjs --package-lane=K/N uses to balance the PR package lanes. Same schema as scripts/general-server-shard-durations.json. Refreshed from all 6 PR #22729 package lane logs (run 45440355579). Files missing here receive the partitioner's median weight. Timing changes only partition work; they never authorize skipping a test.", "unit": "ms", "sources": [ { - "run": 42290920882, + "pull": 22729, + "run": 45440355579, "attempt": 1, - "sha": "d07c48a2bbe8ed5f5db73fd6d0707194183fd1eb", - "url": "https://github.com/paperclipai/paperclip/actions/runs/42290920882" + "sha": "6ca7a27481e1af45c60069a563632f2b00a008a7", + "url": "https://github.com/paperclipai/paperclip/actions/runs/45440355579" } ], "coverage": { - "measured": 310, + "measured": 394, "withSetup": 0, - "inventory": 311 + "inventory": 398 }, "durations": { - "packages/paperclip-runner/devtools/browser/src/live/transcript-model.test.ts": 366, + "packages/paperclip-runner/devtools/browser/src/live/transcript-model.test.ts": 365, "packages/paperclip-runner/devtools/browser/src/live/use-live-console.test.ts": 100, "packages/paperclip-runner/devtools/issue-thread/src/EvidencePanel.test.ts": 100, "packages/paperclip-runner/devtools/issue-thread/src/route.test.ts": 100, - "packages/paperclip-runner/examples/scenario-explorer/src/chat.test.tsx": 190, - "packages/paperclip-runner/examples/scenario-explorer/src/explorer.test.tsx": 164, + "packages/paperclip-runner/examples/scenario-explorer/src/chat.test.tsx": 130, + "packages/paperclip-runner/examples/scenario-explorer/src/explorer.test.tsx": 127, "packages/paperclip-runner/examples/scenario-explorer/src/route.test.ts": 100, - "packages/paperclip-runner/scripts/live-console-browser-server.test.mjs": 159, + "packages/paperclip-runner/scripts/live-console-browser-server.test.mjs": 177, "packages/paperclip-runner/scripts/local-runner-browser-server.test.mjs": 100, "packages/paperclip-runner/scripts/vitest-sequencer.test.mjs": 100, "packages/paperclip-runner/src/agent-identity-environment.test.ts": 100, "packages/paperclip-runner/src/backends/harness-driver-backend.test.ts": 100, "packages/paperclip-runner/src/backends/native-backend-factory.test.ts": 100, - "packages/paperclip-runner/src/backends/native-instruction-measurement.test.ts": 13816, - "packages/paperclip-runner/src/backends/runtime-context.test.ts": 100, + "packages/paperclip-runner/src/backends/native-instruction-measurement.test.ts": 1859, + "packages/paperclip-runner/src/backends/runtime-context.test.ts": 456, "packages/paperclip-runner/src/browser/client.test.ts": 100, - "packages/paperclip-runner/src/browser/transcript-model.test.ts": 431, + "packages/paperclip-runner/src/browser/transcript-model.test.ts": 424, "packages/paperclip-runner/src/catalog/catalog-docs.test.ts": 100, "packages/paperclip-runner/src/catalog/operation-groups-doc.test.ts": 100, - "packages/paperclip-runner/src/catalog/protocol-action-contracts.test.ts": 301, + "packages/paperclip-runner/src/catalog/protocol-action-contracts.test.ts": 270, "packages/paperclip-runner/src/catalog/reconciliation.test.ts": 100, - "packages/paperclip-runner/src/catalog/semantic-action-catalog.test.ts": 334, + "packages/paperclip-runner/src/catalog/semantic-action-catalog.test.ts": 286, "packages/paperclip-runner/src/claude-subagent-lineage.test.ts": 100, - "packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts": 18684, + "packages/paperclip-runner/src/cli/acpx-runtime-sidecar.provider-turn.test.ts": 34077, + "packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts": 36921, "packages/paperclip-runner/src/cli/acpx-sidecar-input.test.ts": 100, "packages/paperclip-runner/src/cli/acpx-sidecar-locations.test.ts": 100, + "packages/paperclip-runner/src/cli/acpx-sidecar-shutdown.test.ts": 100, "packages/paperclip-runner/src/cli/acpx-tool-detail-redaction.test.ts": 100, "packages/paperclip-runner/src/cli/eval-failure-diagnostics.test.ts": 100, "packages/paperclip-runner/src/cli/eval-gateway-runtime.test.ts": 100, "packages/paperclip-runner/src/cli/eval-provider-runtime.test.ts": 100, - "packages/paperclip-runner/src/cli/eval-session-contract.test.ts": 123, - "packages/paperclip-runner/src/cli/eval-session-entrypoint.test.ts": 1800, + "packages/paperclip-runner/src/cli/eval-session-contract.test.ts": 100, + "packages/paperclip-runner/src/cli/eval-session-entrypoint.test.ts": 1922, "packages/paperclip-runner/src/cli/opencode-app-server-proxy.test.ts": 100, + "packages/paperclip-runner/src/cli/opencode-proxy-abandoned-tool-call.test.ts": 3484, "packages/paperclip-runner/src/cli/opencode-proxy-collaboration-mode.test.ts": 100, "packages/paperclip-runner/src/cli/opencode-proxy-completion.test.ts": 100, "packages/paperclip-runner/src/cli/opencode-proxy-events.test.ts": 100, - "packages/paperclip-runner/src/cli/opencode-proxy-input.test.ts": 5018, + "packages/paperclip-runner/src/cli/opencode-proxy-finish-diagnostics.test.ts": 150, + "packages/paperclip-runner/src/cli/opencode-proxy-input.test.ts": 5101, "packages/paperclip-runner/src/cli/opencode-proxy-output.test.ts": 100, "packages/paperclip-runner/src/cli/opencode-proxy-permission-mode.test.ts": 100, - "packages/paperclip-runner/src/cli/opencode-proxy-thread-read.test.ts": 1898, + "packages/paperclip-runner/src/cli/opencode-proxy-thread-read.test.ts": 3787, "packages/paperclip-runner/src/cli/opencode-proxy-usage.test.ts": 100, "packages/paperclip-runner/src/compatibility.test.ts": 100, "packages/paperclip-runner/src/configured-environment.test.ts": 100, "packages/paperclip-runner/src/conformance/capability-eval-suite.test.ts": 100, - "packages/paperclip-runner/src/conformance/capability-semantic-conformance.test.ts": 726, + "packages/paperclip-runner/src/conformance/capability-semantic-conformance.test.ts": 724, "packages/paperclip-runner/src/conformance/control-plane-port.test.ts": 100, "packages/paperclip-runner/src/conformance/harness-driver.test.ts": 100, - "packages/paperclip-runner/src/conformance/local-provider-fault-matrix.test.ts": 116, + "packages/paperclip-runner/src/conformance/local-provider-fault-matrix.test.ts": 102, "packages/paperclip-runner/src/conformance/semantic-conformance.test.ts": 100, - "packages/paperclip-runner/src/contracts/completion-result.test.ts": 380, + "packages/paperclip-runner/src/contracts/completion-result.test.ts": 336, "packages/paperclip-runner/src/contracts/native-execution.test.ts": 100, + "packages/paperclip-runner/src/contracts/provider-tool-schema-shape.test.ts": 100, "packages/paperclip-runner/src/contracts/provider-trace-file-sink.test.ts": 100, "packages/paperclip-runner/src/contracts/question-adapter-conformance.test.ts": 100, "packages/paperclip-runner/src/contracts/question-set.test.ts": 100, "packages/paperclip-runner/src/contracts/registered-asset-instructions.test.ts": 100, + "packages/paperclip-runner/src/contracts/runner-version.test.ts": 100, "packages/paperclip-runner/src/contracts/runtime-context.test.ts": 100, - "packages/paperclip-runner/src/control-plane/acpx-controller-recovery.test.ts": 81950, - "packages/paperclip-runner/src/control-plane/cursor-cloud-runner-launch.test.ts": 106659, - "packages/paperclip-runner/src/control-plane/durable-prp-control-plane.test.ts": 9141, - "packages/paperclip-runner/src/control-plane/runner-recovery-fixture.test.ts": 8919, + "packages/paperclip-runner/src/contracts/tool-input-variants.test.ts": 166, + "packages/paperclip-runner/src/control-plane/acpx-controller-recovery.test.ts": 96282, + "packages/paperclip-runner/src/control-plane/cursor-cloud-runner-launch.test.ts": 104673, + "packages/paperclip-runner/src/control-plane/durable-prp-checkpoint-records.test.ts": 439, + "packages/paperclip-runner/src/control-plane/durable-prp-control-plane.test.ts": 32565, + "packages/paperclip-runner/src/control-plane/relaunched-runner.test.ts": 144, + "packages/paperclip-runner/src/control-plane/runner-recovery-fixture.test.ts": 9144, "packages/paperclip-runner/src/devtools/index.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/abandoned-bootstrap-record.test.ts": 2199, "packages/paperclip-runner/src/drivers/acpx/acp-permission-adapter.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/acp-question-adapter.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/acp-session-update-event.test.ts": 1571, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-background-tasks.test.ts": 4247, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-login-text.test.ts": 1988, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-overlapping-shells.test.ts": 4393, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-provider-turn.test.ts": 4324, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-session-update-events.test.ts": 5263, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.claude-tool-use.test.ts": 3433, + "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.test.ts": 3311, "packages/paperclip-runner/src/drivers/acpx/agent-files-binding.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/antigravity-acpx-runtime.test.ts": 6563, + "packages/paperclip-runner/src/drivers/acpx/antigravity-acpx-runtime.test.ts": 13069, "packages/paperclip-runner/src/drivers/acpx/antigravity-admission.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/antigravity-auth-stream-order.test.ts": 696, - "packages/paperclip-runner/src/drivers/acpx/antigravity-auth.test.ts": 2324, - "packages/paperclip-runner/src/drivers/acpx/antigravity-credentials.test.ts": 166, - "packages/paperclip-runner/src/drivers/acpx/antigravity-models.test.ts": 32227, - "packages/paperclip-runner/src/drivers/acpx/antigravity-probe-retirement.test.ts": 1047, + "packages/paperclip-runner/src/drivers/acpx/antigravity-auth-stream-order.test.ts": 690, + "packages/paperclip-runner/src/drivers/acpx/antigravity-auth.test.ts": 2305, + "packages/paperclip-runner/src/drivers/acpx/antigravity-cli-installation.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-cli-pins.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-credentials.test.ts": 138, + "packages/paperclip-runner/src/drivers/acpx/antigravity-model-catalog.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-models.test.ts": 32170, + "packages/paperclip-runner/src/drivers/acpx/antigravity-native-commands.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-plan-mode.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-probe-retirement.test.ts": 1044, + "packages/paperclip-runner/src/drivers/acpx/antigravity-swarm-guard.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-swarm-paths.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-swarm-presentation.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-swarm-route.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/antigravity-swarm-runtime.test.ts": 5231, + "packages/paperclip-runner/src/drivers/acpx/antigravity-turn-failure.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/candidate-admission.antigravity-release.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/candidate-admission.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/claude-effort.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/capability-profiles.antigravity-release.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/claude-background-tasks.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/claude-effort.test.ts": 2088, + "packages/paperclip-runner/src/drivers/acpx/claude-provider-turn-tasks.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/claude-provider-turns.test.ts": 590, + "packages/paperclip-runner/src/drivers/acpx/claude-scheduling-tools.claude-acp.test.ts": 1232, "packages/paperclip-runner/src/drivers/acpx/claude-status-banners.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/codex-acpx-driver.test.ts": 893, - "packages/paperclip-runner/src/drivers/acpx/codex-credentials.test.ts": 6558, - "packages/paperclip-runner/src/drivers/acpx/acpx-runtime-adapter.test.ts": 2923, + "packages/paperclip-runner/src/drivers/acpx/claude-tool-use-admission.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/codex-acpx-driver.test.ts": 906, + "packages/paperclip-runner/src/drivers/acpx/codex-credentials.test.ts": 6409, "packages/paperclip-runner/src/drivers/acpx/command-lease-owner.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-events.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-evidence.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-extension-adapter.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-installation.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/copilot-message-identity.test.ts": 6310, + "packages/paperclip-runner/src/drivers/acpx/copilot-message-identity.test.ts": 6747, "packages/paperclip-runner/src/drivers/acpx/copilot-policy.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-profile.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-protocol-guard.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/copilot-registry.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/copilot-runtime-host.test.ts": 188, - "packages/paperclip-runner/src/drivers/acpx/copilot-tool-evidence.test.ts": 125, + "packages/paperclip-runner/src/drivers/acpx/copilot-runtime-host.test.ts": 175, + "packages/paperclip-runner/src/drivers/acpx/copilot-tool-evidence.test.ts": 102, "packages/paperclip-runner/src/drivers/acpx/cursor-cloud-candidate-profiles.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/cursor-extensions.test.ts": 978, + "packages/paperclip-runner/src/drivers/acpx/cursor-extensions.test.ts": 913, "packages/paperclip-runner/src/drivers/acpx/cursor-installation.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/cursor-instructions.test.ts": 3211, + "packages/paperclip-runner/src/drivers/acpx/cursor-instructions.test.ts": 7613, "packages/paperclip-runner/src/drivers/acpx/cursor-launch-policy.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/cursor-mode.test.ts": 3463, - "packages/paperclip-runner/src/drivers/acpx/cursor-permission-identity.test.ts": 2748, + "packages/paperclip-runner/src/drivers/acpx/cursor-mode.test.ts": 9180, + "packages/paperclip-runner/src/drivers/acpx/cursor-permission-identity.test.ts": 3191, "packages/paperclip-runner/src/drivers/acpx/cursor-runtime-cache.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/cursor-sdk-interactions.test.ts": 181, + "packages/paperclip-runner/src/drivers/acpx/cursor-sdk-interactions.test.ts": 819, "packages/paperclip-runner/src/drivers/acpx/cursor-tool-evidence.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/driver-profile.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/environment.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/executable-digest-cache.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/generated-sidecar-contract.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/github-launcher.test.ts": 2628, - "packages/paperclip-runner/src/drivers/acpx/grok-credentials.test.ts": 137, + "packages/paperclip-runner/src/drivers/acpx/github-launcher.test.ts": 2642, + "packages/paperclip-runner/src/drivers/acpx/grok-credentials.test.ts": 135, "packages/paperclip-runner/src/drivers/acpx/grok-effort.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/grok-native-session-options.test.ts": 2680, + "packages/paperclip-runner/src/drivers/acpx/grok-native-session-options.test.ts": 4721, "packages/paperclip-runner/src/drivers/acpx/grok-usage.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/grok-web-search.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/installation-integrity.test.ts": 2894, + "packages/paperclip-runner/src/drivers/acpx/installation-integrity.test.ts": 2668, "packages/paperclip-runner/src/drivers/acpx/installed-provider-authority.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/interaction-delivery.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/kimi-installation.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/kimi-instructions.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/kimi-message-boundary.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/kimi-metadata-probe.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/kimi-models.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/model-verification.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/native-distribution-integrity.test.ts": 7792, + "packages/paperclip-runner/src/drivers/acpx/native-distribution-integrity.store.test.ts": 1545, + "packages/paperclip-runner/src/drivers/acpx/native-distribution-integrity.test.ts": 10628, "packages/paperclip-runner/src/drivers/acpx/native-skill-prompt.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/permission-policy.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/pi-acp-runtime.test.ts": 100, @@ -143,96 +181,113 @@ "packages/paperclip-runner/src/drivers/acpx/pi-provider-config.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/pi-provision.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/pi-rpc-deltas.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/pi-runtime-extension.test.ts": 267, - "packages/paperclip-runner/src/drivers/acpx/pi-thinking.test.ts": 1331, - "packages/paperclip-runner/src/drivers/acpx/pi-verified-runtime.test.ts": 289, + "packages/paperclip-runner/src/drivers/acpx/pi-runtime-extension.test.ts": 258, + "packages/paperclip-runner/src/drivers/acpx/pi-thinking.test.ts": 2109, + "packages/paperclip-runner/src/drivers/acpx/pi-verified-runtime.test.ts": 288, "packages/paperclip-runner/src/drivers/acpx/private-snapshot.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/profile-compatibility.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/profile-extensions.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/profile-installation.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/prompt-receipts.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/provider-assets-root.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/provider-mode.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/qualified-profiles.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/recovery-identity.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/response-delivery.test.ts": 100, - "packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts": 7721, - "packages/paperclip-runner/src/drivers/acpx/runtime-sandbox.test.ts": 1485, + "packages/paperclip-runner/src/drivers/acpx/runtime-host.test.ts": 11276, + "packages/paperclip-runner/src/drivers/acpx/runtime-sandbox.test.ts": 1156, "packages/paperclip-runner/src/drivers/acpx/session-goals.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/sidecar-protocol.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/single-read-evidence.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/turn-cancellation.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/turn-controls.test.ts": 100, + "packages/paperclip-runner/src/drivers/acpx/turn-dispatch-journal.test.ts": 1764, "packages/paperclip-runner/src/drivers/acpx/usage-accounting.test.ts": 100, "packages/paperclip-runner/src/drivers/acpx/verified-runtime-executable.test.ts": 100, "packages/paperclip-runner/src/drivers/agent-observability.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/app-server-transport.test.ts": 491, + "packages/paperclip-runner/src/drivers/codex/app-server-transport.test.ts": 494, + "packages/paperclip-runner/src/drivers/codex/codex-api-key-image-tools.test.ts": 449, "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.candidate-continuation.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.conformance.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.context-control.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.events.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.lifecycle.test.ts": 114, - "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.recovery.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.runtime-requests.test.ts": 177, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.lifecycle.test.ts": 101, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.provider-turn.test.ts": 100, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.recovery.test.ts": 172, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.runtime-requests.test.ts": 160, "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.semantic-results.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.terminal-replay.test.ts": 233, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.stale-generation.test.ts": 1797, + "packages/paperclip-runner/src/drivers/codex/codex-app-server-driver.terminal-replay.test.ts": 276, "packages/paperclip-runner/src/drivers/codex/codex-boundaries.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-history.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-notification-identity.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts": 802, - "packages/paperclip-runner/src/drivers/codex/codex-protocol-integrity.test.ts": 3903, + "packages/paperclip-runner/src/drivers/codex/codex-protocol-cleanup.test.ts": 877, + "packages/paperclip-runner/src/drivers/codex/codex-protocol-integrity.test.ts": 3942, "packages/paperclip-runner/src/drivers/codex/codex-question-adapter.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-resume-usage.test.ts": 100, - "packages/paperclip-runner/src/drivers/codex/codex-security-config.test.ts": 605, - "packages/paperclip-runner/src/drivers/codex/codex-startup-trust.test.ts": 270, + "packages/paperclip-runner/src/drivers/codex/codex-security-config.test.ts": 506, + "packages/paperclip-runner/src/drivers/codex/codex-shell-certificate-trust.test.ts": 417, + "packages/paperclip-runner/src/drivers/codex/codex-startup-trust.test.ts": 213, "packages/paperclip-runner/src/drivers/codex/codex-thread-normalization.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-turn-diff.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/codex-usage-baseline.test.ts": 100, "packages/paperclip-runner/src/drivers/codex/prepared-context-transport.test.ts": 100, "packages/paperclip-runner/src/drivers/completion-continuation.test.ts": 100, - "packages/paperclip-runner/src/drivers/copilot-metadata-probe.test.ts": 5107, - "packages/paperclip-runner/src/drivers/cursor-cloud/app-server-proxy.test.ts": 1419, - "packages/paperclip-runner/src/drivers/cursor-cloud/artifact-delivery.test.ts": 4831, - "packages/paperclip-runner/src/drivers/cursor-cloud/artifact-staging-budget.test.ts": 1520, - "packages/paperclip-runner/src/drivers/cursor-cloud/checkpoint-archive.test.ts": 1065, - "packages/paperclip-runner/src/drivers/cursor-cloud/cloud-client.test.ts": 191, - "packages/paperclip-runner/src/drivers/cursor-cloud/cursor-cloud-driver.test.ts": 15764, + "packages/paperclip-runner/src/drivers/copilot-metadata-probe.test.ts": 5088, + "packages/paperclip-runner/src/drivers/cursor-cloud/app-server-proxy.test.ts": 1852, + "packages/paperclip-runner/src/drivers/cursor-cloud/artifact-delivery.test.ts": 3974, + "packages/paperclip-runner/src/drivers/cursor-cloud/artifact-staging-budget.test.ts": 1372, + "packages/paperclip-runner/src/drivers/cursor-cloud/checkpoint-archive.test.ts": 1102, + "packages/paperclip-runner/src/drivers/cursor-cloud/cloud-client.test.ts": 165, + "packages/paperclip-runner/src/drivers/cursor-cloud/cursor-cloud-driver.test.ts": 11659, "packages/paperclip-runner/src/drivers/cursor-cloud/inline-assets.test.ts": 100, - "packages/paperclip-runner/src/drivers/cursor-cloud/observation-continuity.test.ts": 1948, + "packages/paperclip-runner/src/drivers/cursor-cloud/observation-continuity.test.ts": 1865, "packages/paperclip-runner/src/drivers/dot/dot-harness-driver.test.ts": 100, - "packages/paperclip-runner/src/drivers/dot/runnerd-dot-driver.test.ts": 11738, - "packages/paperclip-runner/src/drivers/muse/runnerd-muse-driver.test.ts": 16068, - "packages/paperclip-runner/src/drivers/opencode/company-observability.test.ts": 3033, - "packages/paperclip-runner/src/drivers/opencode/empty-response.test.ts": 1857, - "packages/paperclip-runner/src/drivers/opencode/interrupt-empty-response.test.ts": 1401, - "packages/paperclip-runner/src/drivers/opencode/interrupt-pending-tool-call.test.ts": 1010, - "packages/paperclip-runner/src/drivers/opencode/mcp-bridge-diagnostics.test.ts": 187, - "packages/paperclip-runner/src/drivers/opencode/mcp-bridge.test.ts": 4223, + "packages/paperclip-runner/src/drivers/dot/runnerd-dot-driver.test.ts": 12443, + "packages/paperclip-runner/src/drivers/muse/runnerd-muse-driver.test.ts": 15009, + "packages/paperclip-runner/src/drivers/opencode/company-observability.test.ts": 3046, + "packages/paperclip-runner/src/drivers/opencode/empty-response.test.ts": 4618, + "packages/paperclip-runner/src/drivers/opencode/interrupt-empty-response.test.ts": 1444, + "packages/paperclip-runner/src/drivers/opencode/interrupt-pending-tool-call.test.ts": 1156, + "packages/paperclip-runner/src/drivers/opencode/mcp-bridge-delivery.test.ts": 338, + "packages/paperclip-runner/src/drivers/opencode/mcp-bridge-diagnostics.test.ts": 201, + "packages/paperclip-runner/src/drivers/opencode/mcp-bridge.test.ts": 8140, "packages/paperclip-runner/src/drivers/opencode/opencode-command.test.ts": 100, "packages/paperclip-runner/src/drivers/opencode/opencode-question-normalization.test.ts": 100, - "packages/paperclip-runner/src/drivers/opencode/opencode-server-driver.test.ts": 96360, - "packages/paperclip-runner/src/drivers/opencode/output-limit.test.ts": 532, + "packages/paperclip-runner/src/drivers/opencode/opencode-server-driver.test.ts": 24306, + "packages/paperclip-runner/src/drivers/opencode/output-custody.test.ts": 100, + "packages/paperclip-runner/src/drivers/opencode/output-limit.test.ts": 767, + "packages/paperclip-runner/src/drivers/opencode/paperclip-tools-startup.test.ts": 2158, "packages/paperclip-runner/src/drivers/opencode/performance-diagnostics.test.ts": 100, - "packages/paperclip-runner/src/drivers/opencode/prepared-context-transport.test.ts": 2644, - "packages/paperclip-runner/src/drivers/opencode/reasoning-mode.test.ts": 2562, - "packages/paperclip-runner/src/drivers/opencode/sse-frames.test.ts": 884, + "packages/paperclip-runner/src/drivers/opencode/prepared-context-transport.test.ts": 517, + "packages/paperclip-runner/src/drivers/opencode/reasoning-mode.test.ts": 587, + "packages/paperclip-runner/src/drivers/opencode/sse-frames.test.ts": 891, + "packages/paperclip-runner/src/drivers/opencode/tool-call-markup.test.ts": 100, + "packages/paperclip-runner/src/drivers/opencode/tool-media-attribution.test.ts": 100, + "packages/paperclip-runner/src/drivers/opencode/upstream-served.test.ts": 100, "packages/paperclip-runner/src/drivers/provider-failure.test.ts": 100, "packages/paperclip-runner/src/drivers/provider-notices.test.ts": 100, "packages/paperclip-runner/src/drivers/provider-rate-limits.test.ts": 100, - "packages/paperclip-runner/src/drivers/runner-tool-bridge.claude-schema.test.ts": 3441, - "packages/paperclip-runner/src/drivers/runner-tool-bridge.test.ts": 4224, - "packages/paperclip-runner/src/drivers/runtime-context-materializer.test.ts": 103, + "packages/paperclip-runner/src/drivers/runner-tool-bridge.claude-schema.test.ts": 3424, + "packages/paperclip-runner/src/drivers/runner-tool-bridge.claude-tool-use.test.ts": 3625, + "packages/paperclip-runner/src/drivers/runner-tool-bridge.continuation.test.ts": 107, + "packages/paperclip-runner/src/drivers/runner-tool-bridge.schemas.test.ts": 199, + "packages/paperclip-runner/src/drivers/runner-tool-bridge.test.ts": 4531, + "packages/paperclip-runner/src/drivers/runtime-context-materializer.test.ts": 100, "packages/paperclip-runner/src/drivers/semantic-tool-receipt.test.ts": 100, "packages/paperclip-runner/src/drivers/stdio-mcp.test.ts": 100, + "packages/paperclip-runner/src/drivers/tool-input-error.test.ts": 100, + "packages/paperclip-runner/src/drivers/tool-input-schema.test.ts": 173, "packages/paperclip-runner/src/eval/eval-bundle.test.ts": 100, - "packages/paperclip-runner/src/eval/eval-execution.test.ts": 1075, + "packages/paperclip-runner/src/eval/eval-execution.test.ts": 915, "packages/paperclip-runner/src/eval/eval-scoring.test.ts": 100, "packages/paperclip-runner/src/eval/eval-slice.test.ts": 100, "packages/paperclip-runner/src/eval/live-workflow-executor.test.ts": 100, - "packages/paperclip-runner/src/eval/workflow-evals.test.ts": 132, + "packages/paperclip-runner/src/eval/workflow-evals.test.ts": 138, "packages/paperclip-runner/src/evals/attempt-journal.test.ts": 100, "packages/paperclip-runner/src/evals/compatibility.test.ts": 100, "packages/paperclip-runner/src/evals/model-pricing.test.ts": 100, - "packages/paperclip-runner/src/evals/native-execution.test.ts": 2001, + "packages/paperclip-runner/src/evals/native-execution.test.ts": 2116, "packages/paperclip-runner/src/evals/runnerd-artifact.test.ts": 100, "packages/paperclip-runner/src/governance-events.test.ts": 100, "packages/paperclip-runner/src/issue-thread/issue-thread.test.ts": 100, @@ -240,67 +295,96 @@ "packages/paperclip-runner/src/live/acpx-request-recovery.test.ts": 100, "packages/paperclip-runner/src/live/antigravity-candidate-startup.test.ts": 100, "packages/paperclip-runner/src/live/bundled-remote-provider-pack.test.ts": 100, - "packages/paperclip-runner/src/live/clean-room-server.test.ts": 25279, + "packages/paperclip-runner/src/live/clean-room-server.test.ts": 25551, "packages/paperclip-runner/src/live/clean-room.test.ts": 100, "packages/paperclip-runner/src/live/kimi-candidate-startup.test.ts": 100, - "packages/paperclip-runner/src/live/linux-process-start.test.ts": 1114, - "packages/paperclip-runner/src/live/live-session.test.ts": 51829, + "packages/paperclip-runner/src/live/linux-process-start.test.ts": 1112, + "packages/paperclip-runner/src/live/live-session.test.ts": 51795, "packages/paperclip-runner/src/live/local-integrity-boundary-golden.test.ts": 100, - "packages/paperclip-runner/src/live/native-probe-cleanup.test.ts": 13509, + "packages/paperclip-runner/src/live/native-probe-cleanup.test.ts": 13499, + "packages/paperclip-runner/src/live/private-host-control-wrapper.test.ts": 338, + "packages/paperclip-runner/src/live/provider-turn-tool-order.test.ts": 100, "packages/paperclip-runner/src/live/run-result-feedback.test.ts": 100, "packages/paperclip-runner/src/live/runner-binary.test.ts": 100, "packages/paperclip-runner/src/live/runner-launch-preparation-store.test.ts": 100, "packages/paperclip-runner/src/live/runner-launch-preparation.test.ts": 100, - "packages/paperclip-runner/src/live/runner-prepared-launch-workspace.test.ts": 3935, + "packages/paperclip-runner/src/live/runner-lineage-reap.test.ts": 100, + "packages/paperclip-runner/src/live/runner-prepared-launch-workspace.test.ts": 4209, "packages/paperclip-runner/src/live/runner-provider-launch.test.ts": 100, "packages/paperclip-runner/src/live/runner-tool-capacity.test.ts": 100, + "packages/paperclip-runner/src/live/runnerd-abandoned-turn-start-reattach.test.ts": 7623, "packages/paperclip-runner/src/live/runnerd-acpx-permission-forwarding.test.ts": 100, - "packages/paperclip-runner/src/live/runnerd-acpx-permission-ordering.test.ts": 237, + "packages/paperclip-runner/src/live/runnerd-acpx-permission-ordering.test.ts": 205, "packages/paperclip-runner/src/live/runnerd-acpx-permissions.test.ts": 100, + "packages/paperclip-runner/src/live/runnerd-acpx-provider-turn-wait.test.ts": 25947, + "packages/paperclip-runner/src/live/runnerd-acpx-provider-turn.test.ts": 83307, "packages/paperclip-runner/src/live/runnerd-acpx-questions.test.ts": 100, - "packages/paperclip-runner/src/live/runnerd-acpx-source-reconciliation.test.ts": 27202, - "packages/paperclip-runner/src/live/runnerd-codex-transport-adoption.test.ts": 51111, - "packages/paperclip-runner/src/live/runnerd-codex-transport-attachment-recovery.test.ts": 44665, - "packages/paperclip-runner/src/live/runnerd-codex-transport-cold-restore.test.ts": 3362, - "packages/paperclip-runner/src/live/runnerd-codex-transport-deadlines.test.ts": 101360, - "packages/paperclip-runner/src/live/runnerd-codex-transport-settlement.test.ts": 120438, - "packages/paperclip-runner/src/live/runnerd-codex-transport-suspension.test.ts": 13354, - "packages/paperclip-runner/src/live/runnerd-codex-transport-warm-attachment.test.ts": 50422, - "packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts": 126679, + "packages/paperclip-runner/src/live/runnerd-acpx-source-reconciliation.test.ts": 21459, + "packages/paperclip-runner/src/live/runnerd-bootstrap-ticket-refresh.test.ts": 544, + "packages/paperclip-runner/src/live/runnerd-codex-pre-turn-usage.test.ts": 784, + "packages/paperclip-runner/src/live/runnerd-codex-transport-adoption.test.ts": 56744, + "packages/paperclip-runner/src/live/runnerd-codex-transport-antigravity-release.test.ts": 100, + "packages/paperclip-runner/src/live/runnerd-codex-transport-attachment-recovery.test.ts": 45838, + "packages/paperclip-runner/src/live/runnerd-codex-transport-carried-suspend.test.ts": 1978, + "packages/paperclip-runner/src/live/runnerd-codex-transport-close-proof.test.ts": 51374, + "packages/paperclip-runner/src/live/runnerd-codex-transport-cold-restore.test.ts": 2974, + "packages/paperclip-runner/src/live/runnerd-codex-transport-cut-attach.test.ts": 2753, + "packages/paperclip-runner/src/live/runnerd-codex-transport-cut-turn-start.test.ts": 3485, + "packages/paperclip-runner/src/live/runnerd-codex-transport-deadlines.test.ts": 182185, + "packages/paperclip-runner/src/live/runnerd-codex-transport-orphaned-tool-at-attach.test.ts": 6276, + "packages/paperclip-runner/src/live/runnerd-codex-transport-pump.test.ts": 8418, + "packages/paperclip-runner/src/live/runnerd-codex-transport-reattach-carried-commands.test.ts": 17419, + "packages/paperclip-runner/src/live/runnerd-codex-transport-release-resume.test.ts": 31877, + "packages/paperclip-runner/src/live/runnerd-codex-transport-remote-retention.test.ts": 54091, + "packages/paperclip-runner/src/live/runnerd-codex-transport-settlement.test.ts": 119696, + "packages/paperclip-runner/src/live/runnerd-codex-transport-stall.test.ts": 1131, + "packages/paperclip-runner/src/live/runnerd-codex-transport-startup-steps.test.ts": 4251, + "packages/paperclip-runner/src/live/runnerd-codex-transport-suspend-route.test.ts": 2150, + "packages/paperclip-runner/src/live/runnerd-codex-transport-suspension.test.ts": 16364, + "packages/paperclip-runner/src/live/runnerd-codex-transport-warm-attachment.test.ts": 55475, + "packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts": 198488, "packages/paperclip-runner/src/live/runnerd-contract-types.test.ts": 100, - "packages/paperclip-runner/src/live/runnerd-controller-outage.test.ts": 5960, - "packages/paperclip-runner/src/live/runnerd-credential-updates.test.ts": 4475, - "packages/paperclip-runner/src/live/runnerd-detach-durability.test.ts": 5556, - "packages/paperclip-runner/src/live/runnerd-opencode-assigned-tools.test.ts": 8593, - "packages/paperclip-runner/src/live/runnerd-opencode-streaming-tools.test.ts": 52166, - "packages/paperclip-runner/src/live/runnerd-restart-continuation.test.ts": 12270, - "packages/paperclip-runner/src/live/runnerd-runtime-activity.test.ts": 2946, - "packages/paperclip-runner/src/live/runnerd-saved-continuation.test.ts": 5314, - "packages/paperclip-runner/src/live/runnerd-semantic-handler-readiness.test.ts": 3841, - "packages/paperclip-runner/src/live/runnerd-source-reconciliation.test.ts": 39739, - "packages/paperclip-runner/src/live/runnerd-staged-handoff.test.ts": 40641, + "packages/paperclip-runner/src/live/runnerd-controller-outage.test.ts": 4719, + "packages/paperclip-runner/src/live/runnerd-credential-updates.test.ts": 2618, + "packages/paperclip-runner/src/live/runnerd-detach-durability.test.ts": 4370, + "packages/paperclip-runner/src/live/runnerd-governed-wait.test.ts": 50867, + "packages/paperclip-runner/src/live/runnerd-opencode-assigned-tools.test.ts": 5645, + "packages/paperclip-runner/src/live/runnerd-opencode-streaming-tools.test.ts": 57180, + "packages/paperclip-runner/src/live/runnerd-pending-turn-start-failure.test.ts": 100, + "packages/paperclip-runner/src/live/runnerd-restart-continuation.test.ts": 16507, + "packages/paperclip-runner/src/live/runnerd-runtime-activity.test.ts": 2266, + "packages/paperclip-runner/src/live/runnerd-saved-continuation.test.ts": 3333, + "packages/paperclip-runner/src/live/runnerd-semantic-handler-readiness.test.ts": 1909, + "packages/paperclip-runner/src/live/runnerd-source-reconciliation.test.ts": 29108, + "packages/paperclip-runner/src/live/runnerd-staged-handoff.test.ts": 27582, + "packages/paperclip-runner/src/live/runnerd-stale-controller-journal.test.ts": 1646, + "packages/paperclip-runner/src/live/runnerd-startup-rejection-exit.test.ts": 3357, "packages/paperclip-runner/src/live/runnerd-tool-response.test.ts": 100, - "packages/paperclip-runner/src/live/runnerd-trace-frame-index.test.ts": 219, - "packages/paperclip-runner/src/live/runnerd-welcome.integration.test.ts": 4594, - "packages/paperclip-runner/src/live/scenario-chat-demo-server.test.ts": 280, + "packages/paperclip-runner/src/live/runnerd-trace-frame-index.test.ts": 171, + "packages/paperclip-runner/src/live/runnerd-turn-start-timeout-retention.test.ts": 31540, + "packages/paperclip-runner/src/live/runnerd-warm-idle-orphan.test.ts": 3425, + "packages/paperclip-runner/src/live/runnerd-welcome.integration.test.ts": 3697, + "packages/paperclip-runner/src/live/scenario-chat-demo-server.test.ts": 317, "packages/paperclip-runner/src/live/scenario-chat-proxy-config.test.ts": 100, "packages/paperclip-runner/src/live/tailnet-gateway.test.ts": 100, - "packages/paperclip-runner/src/live/turn-stream.test.ts": 1517, + "packages/paperclip-runner/src/live/terminal-call-freshness.test.ts": 102, + "packages/paperclip-runner/src/live/turn-stream.test.ts": 1539, "packages/paperclip-runner/src/live/warm-attachment-readiness.test.ts": 100, "packages/paperclip-runner/src/live/workspace-diff.test.ts": 100, "packages/paperclip-runner/src/live/workspace-file-reference.test.ts": 100, "packages/paperclip-runner/src/mock-core/capability-mock-control-plane-adapter.test.ts": 100, "packages/paperclip-runner/src/mock-core/codex-runner.test.ts": 100, - "packages/paperclip-runner/src/mock-core/live-console-demo-server.test.ts": 4421, - "packages/paperclip-runner/src/mock-core/live-console-scripted-driver.test.ts": 155, - "packages/paperclip-runner/src/mock-core/local-runner.test.ts": 150, + "packages/paperclip-runner/src/mock-core/live-console-demo-server.test.ts": 4353, + "packages/paperclip-runner/src/mock-core/live-console-scripted-driver.test.ts": 149, + "packages/paperclip-runner/src/mock-core/local-runner.test.ts": 164, "packages/paperclip-runner/src/mock-core/mock-control-plane-adapter.test.ts": 100, "packages/paperclip-runner/src/mock-core/task-creation-backlog.test.ts": 100, "packages/paperclip-runner/src/mock-core/task-reassignment.test.ts": 100, - "packages/paperclip-runner/src/native-session-runtime.test.ts": 3455, + "packages/paperclip-runner/src/native-session-runtime.provider-turn.test.ts": 5877, + "packages/paperclip-runner/src/native-session-runtime.test.ts": 5422, "packages/paperclip-runner/src/protocol-actions/case-data.test.ts": 100, - "packages/paperclip-runner/src/protocol-actions/collaboration-contracts.test.ts": 113, - "packages/paperclip-runner/src/protocol-actions/core-contracts.test.ts": 138, + "packages/paperclip-runner/src/protocol-actions/collaboration-contracts.test.ts": 100, + "packages/paperclip-runner/src/protocol-actions/core-contracts.test.ts": 168, "packages/paperclip-runner/src/protocol/auth-credentials.test.ts": 100, "packages/paperclip-runner/src/protocol/conformance-fixture.test.ts": 100, "packages/paperclip-runner/src/protocol/permission-request.test.ts": 100, @@ -314,15 +398,16 @@ "packages/paperclip-runner/src/provider-events.test.ts": 100, "packages/paperclip-runner/src/react/public-contract.test.tsx": 100, "packages/paperclip-runner/src/reducer/session-reducer.test.ts": 100, - "packages/paperclip-runner/src/scenarios/chat-session.test.ts": 643, - "packages/paperclip-runner/src/scenarios/scenario-explorer.test.ts": 855, - "packages/paperclip-runner/src/semantic-tools/paperclip-semantic-tools.test.ts": 838, + "packages/paperclip-runner/src/scenarios/chat-session.test.ts": 518, + "packages/paperclip-runner/src/scenarios/scenario-explorer.test.ts": 736, + "packages/paperclip-runner/src/semantic-tools/paperclip-semantic-tools.test.ts": 877, "packages/paperclip-runner/src/semantic-tools/runner-authorized-tools.test.ts": 100, - "packages/paperclip-runner/src/semantic-tools/semantic-tools.test.ts": 1386, + "packages/paperclip-runner/src/semantic-tools/semantic-tools.test.ts": 1564, "packages/paperclip-runner/src/standalone/standalone-demo.test.ts": 100, - "packages/paperclip-runner/src/test-support/owned-node-runtime.test.ts": 407, + "packages/paperclip-runner/src/steering-delivery.test.ts": 100, + "packages/paperclip-runner/src/test-support/owned-node-runtime.test.ts": 435, "packages/paperclip-runner/src/tool-file-changes.test.ts": 100, - "packages/paperclip-runner/src/tools/capability-semantic-tools.test.ts": 114, + "packages/paperclip-runner/src/tools/capability-semantic-tools.test.ts": 106, "packages/paperclip-runner/src/tracer/conformance-runner.test.ts": 100, "packages/paperclip-runner/src/tracer/replay.test.ts": 100 } diff --git a/packages/paperclip-runner/scripts/vitest-sequencer.mjs b/packages/paperclip-runner/scripts/vitest-sequencer.mjs index c8069693070..ac80ce5db8e 100644 --- a/packages/paperclip-runner/scripts/vitest-sequencer.mjs +++ b/packages/paperclip-runner/scripts/vitest-sequencer.mjs @@ -7,10 +7,13 @@ const slowFiles = [ "runnerd-codex-transport-deadlines.test.ts", "opencode-server-driver.test.ts", "acpx-controller-recovery.test.ts", + "runnerd-acpx-provider-turn.test.ts", "runnerd-codex-transport-warm-attachment.test.ts", "runnerd-opencode-streaming-tools.test.ts", "live-session.test.ts", "runnerd-codex-transport-adoption.test.ts", + "runnerd-codex-transport-remote-retention.test.ts", + "runnerd-codex-transport-close-proof.test.ts", ]; const priority = (file) => { diff --git a/packages/paperclip-runner/vitest.config.ts b/packages/paperclip-runner/vitest.config.ts index 247bc650336..de7e2567b02 100644 --- a/packages/paperclip-runner/vitest.config.ts +++ b/packages/paperclip-runner/vitest.config.ts @@ -16,6 +16,18 @@ const ciReporters = [ // without the root wrapper); see scripts/ci/vitest-retry.mjs. const retry = vitestRetryCount(); +function resolveRunnerCiMaxWorkers() { + const override = process.env.PAPERCLIP_RUNNER_VITEST_MAX_WORKERS?.trim(); + if (override) { + const parsed = Number(override); + if (Number.isInteger(parsed) && parsed >= 1) return parsed; + } + const cpus = Math.max(1, availableParallelism()); + // Hermetic files launch Runner and sidecar child processes; reserve 1 core + // on 4-core runners (3 workers) and 2 cores on 8-core runners (6 workers). + return cpus <= 4 ? Math.min(3, Math.max(1, cpus - 1)) : Math.min(6, cpus - 2); +} + export default defineConfig({ resolve: { alias: [ @@ -27,10 +39,8 @@ export default defineConfig({ ...(ciReporters.length > 0 ? { reporters: [...configDefaults.reporters, ...ciReporters] } : {}), ...(retry > 0 ? { retry } : {}), environment: "node", - // Hermetic files also launch Runner and sidecar processes. Reserve CPU - // capacity for their startup within the original readiness deadlines. ...(process.env.GITHUB_ACTIONS === "true" - ? { maxWorkers: Math.min(4, Math.max(1, Math.floor(availableParallelism() / 2))) } + ? { maxWorkers: resolveRunnerCiMaxWorkers() } : {}), sequence: { sequencer: RunnerSequencer }, include: [ diff --git a/scripts/__tests__/ci-typecheck-lane.test.mjs b/scripts/__tests__/ci-typecheck-lane.test.mjs index 938de3de91a..ca84614330b 100644 --- a/scripts/__tests__/ci-typecheck-lane.test.mjs +++ b/scripts/__tests__/ci-typecheck-lane.test.mjs @@ -1,6 +1,7 @@ import assert from "node:assert/strict"; -import { readFileSync } from "node:fs"; -import { getPriority } from "node:os"; +import { mkdtempSync, readFileSync, rmSync } from "node:fs"; +import { getPriority, tmpdir } from "node:os"; +import path from "node:path"; import test from "node:test"; import { BACKGROUND_PRIORITY, @@ -14,8 +15,10 @@ import { selectBuildGapPackages, SERIAL_BUILD_GAPS, shouldRunReleaseRegistryTests, + shouldRunRunnerRustTypecheck, + typecheckUiIncremental, } from "../ci-typecheck-lane.mjs"; -import { PROJECTS, selectTestProjects } from "../typecheck-test-projects.mjs"; +import { PROJECTS, orderProjectsLpt, selectTestProjects } from "../typecheck-test-projects.mjs"; const plan = () => planLane({ @@ -81,12 +84,21 @@ test("every check of the sequential job is planned with exact DAG dependencies", for (const name of ["paperclipai", "@paperclipai/ui"]) assert.ok(byName.has(`typecheck ${name}`), name); assert.deepEqual(byName.get("typecheck paperclipai").needs, [PREPARE_RUNNER_VENDOR]); assert.equal(byName.get("typecheck @paperclipai/ui").needs, undefined); + assert.equal(byName.get("typecheck @paperclipai/ui").command, "node"); + assert.deepEqual(byName.get("typecheck @paperclipai/ui").args, ["scripts/ci-typecheck-lane.mjs", "--typecheck-ui"]); assert.deepEqual(byName.get("typecheck @paperclipai/ui").env, { GOMAXPROCS: "2" }); assert.deepEqual(byName.get("release registry tests").args, ["run", "test:release-registry"]); assert.equal(byName.get("release registry tests").needs, undefined); assert.ok(!byName.has("CLI guidance safety")); const declarationReaders = tasks.filter((task) => task.needs?.includes("server declarations")); assert.equal(declarationReaders.length, 2 + PROJECTS.length); + // Longest non-incremental project (tests/runner-e2e) is scheduled first among declaration readers. + assert.equal(declarationReaders[0].name, "test project tests/runner-e2e"); + // UI starts ahead of smaller build-gap packages so it overlaps with prepare runner vendor from t=0. + assert.ok( + tasks.findIndex((t) => t.name === "typecheck @paperclipai/ui") < + tasks.findIndex((t) => t.name === "typecheck paperclipai"), + ); }); test("computeResourceProfile scales concurrency, checkers, and UI GOMAXPROCS across 2/4/8-core runners", () => { @@ -106,7 +118,7 @@ test("computeResourceProfile scales concurrency, checkers, and UI GOMAXPROCS acr serverLayerCheckers: 1, testProjectCheckers: 1, uiGomaxprocs: 2, - testProgramsConcurrency: 2, + testProgramsConcurrency: 3, testProgramsCheckers: 1, }); // 8-core / 16 GiB (c8i.2xlarge): 4 concurrent tasks so all 4 server layers finish in 1 wave under 16 GiB. @@ -117,7 +129,7 @@ test("computeResourceProfile scales concurrency, checkers, and UI GOMAXPROCS acr serverLayerCheckers: 1, testProjectCheckers: 1, uiGomaxprocs: 4, - testProgramsConcurrency: 3, + testProgramsConcurrency: 4, testProgramsCheckers: 1, }); // 8-core / 32 GiB (m8i.2xlarge): higher checkers and concurrency. @@ -140,7 +152,7 @@ test("computeResourceProfile scales concurrency, checkers, and UI GOMAXPROCS acr const byName = new Map(tasks.map((t) => [t.name, t])); assert.deepEqual(byName.get("server declarations").args.slice(-2), ["--checkers", "3"]); assert.deepEqual(byName.get("typecheck @paperclipai/ui").env, { GOMAXPROCS: "4" }); - assert.ok(byName.get("typecheck test programs").args.join(" ").includes("--concurrency 3")); + assert.ok(byName.get("typecheck test programs").args.join(" ").includes("--concurrency 4")); }); test("resolveScope uses CI_PLAN in PR mode, honors PAPERCLIP_CI_FULL, and fails closed", () => { @@ -406,3 +418,83 @@ test("the PR typecheck job runs the lane after the Runner release crate restore" assert.ok(fallback.includes(command), command); } }); + +test("PR mode skips Runner Rust typecheck when only shared TypeScript packages changed", () => { + assert.equal(shouldRunRunnerRustTypecheck(null), true); + assert.equal(shouldRunRunnerRustTypecheck(["packages/shared/src/customer-success.ts"]), false); + assert.equal(shouldRunRunnerRustTypecheck(["packages/adapter-utils/src/types.ts"]), false); + assert.equal(shouldRunRunnerRustTypecheck(["packages/paperclip-runner/runner/crates/runner-core/src/lib.rs"]), true); + assert.equal(shouldRunRunnerRustTypecheck(["packages/paperclip-runner/acpx-profiles.json"]), true); + assert.equal(shouldRunRunnerRustTypecheck(["rust-toolchain.toml"]), true); + assert.equal(shouldRunRunnerRustTypecheck(["tsconfig.base.json"]), true); + + const sharedPr = planLane({ + buildGapPackages: ["@paperclipai/paperclip-runner"], + testLayers: ["tests"], + changedFiles: ["packages/shared/src/customer-success.ts"], + }); + const runnerTask = sharedPr.prepare.find((t) => t.name === "typecheck @paperclipai/paperclip-runner"); + assert.deepEqual(runnerTask.args, ["--filter", "@paperclipai/paperclip-runner", "run", "typecheck:typescript"]); + + const runnerPr = planLane({ + buildGapPackages: ["@paperclipai/paperclip-runner"], + testLayers: ["tests"], + changedFiles: ["packages/paperclip-runner/protocol/schemas/result.schema.json"], + }); + const runnerFullTask = runnerPr.prepare.find((t) => t.name === "typecheck @paperclipai/paperclip-runner"); + assert.deepEqual(runnerFullTask.args, ["--filter", "@paperclipai/paperclip-runner", "typecheck"]); +}); + +test("typecheckUiIncremental runs storybook catalog then incremental tsc with a portable tsBuildInfoFile", () => { + const tmpRoot = mkdtempSync(path.join(tmpdir(), "ui-typecheck-inc-")); + try { + const calls = []; + const status = typecheckUiIncremental({ + root: tmpRoot, + env: { GOMAXPROCS: "2" }, + spawnSyncImpl: (cmd, args, opts) => { + calls.push({ kind: "spawn", cmd, args, cwd: opts.cwd }); + return { status: 0 }; + }, + runTscImpl: (args, opts) => { + calls.push({ kind: "tsc", args, cwd: opts.cwd, env: opts.env }); + return { status: 0 }; + }, + }); + assert.equal(status, 0); + assert.equal(calls.length, 2); + assert.equal(calls[0].kind, "spawn"); + assert.equal(calls[0].args[0], path.join(tmpRoot, "scripts", "storybook-catalog.mjs")); + assert.equal(calls[0].cwd, path.join(tmpRoot, "ui")); + assert.deepEqual(calls[1].args, [ + "-p", + "tsconfig.json", + "--incremental", + "--tsBuildInfoFile", + "node_modules/.cache/paperclip-ui.tsbuildinfo", + ]); + assert.equal(calls[1].cwd, path.join(tmpRoot, "ui")); + assert.deepEqual(calls[1].env, { GOMAXPROCS: "2" }); + + // Catalog failure stops before tsc. + const failedCalls = []; + const failStatus = typecheckUiIncremental({ + root: tmpRoot, + spawnSyncImpl: () => ({ status: 3 }), + runTscImpl: () => { + failedCalls.push("tsc"); + return { status: 0 }; + }, + }); + assert.equal(failStatus, 3); + assert.deepEqual(failedCalls, []); + } finally { + rmSync(tmpRoot, { recursive: true, force: true }); + } +}); + +test("orderProjectsLpt schedules tests/runner-e2e first among test projects", () => { + const ordered = orderProjectsLpt(PROJECTS); + assert.equal(ordered[0], "tests/runner-e2e"); + assert.equal(ordered.length, PROJECTS.length); +}); diff --git a/scripts/__tests__/e2e-shard.test.mjs b/scripts/__tests__/e2e-shard.test.mjs index f71afb68578..82930302fcc 100644 --- a/scripts/__tests__/e2e-shard.test.mjs +++ b/scripts/__tests__/e2e-shard.test.mjs @@ -27,7 +27,9 @@ const trustedPrWorkflowPath = ".github/workflows/pr-trusted.yml"; const trustedPrWorkflow = path.join(repoRoot, trustedPrWorkflowPath); const routingWorkflow = path.join(repoRoot, ".github", "workflows", "ci-routing.yml"); -const SHARD_COUNT = 8; +const ciTaskMatrixPath = path.join(repoRoot, ".github", "ci-task-matrix.json"); +const SHARD_COUNT = JSON.parse(readFileSync(ciTaskMatrixPath, "utf8")).e2e_shards.length; +const TARGET_PHASE3_SHARD_COUNT = 12; function runShard(args) { const result = spawnSync(process.execPath, [script, ...args], { cwd: repoRoot, encoding: "utf8" }); @@ -161,6 +163,54 @@ test("playwright.config.ts supports skipping the UI build when PAPERCLIP_E2E_SKI assert.match(config, /availableParallelism/); }); +test("start-e2e-server.ts boots disposable embedded Postgres without durable fsync before migrations", () => { + const bootstrap = readFileSync(path.join(repoRoot, "tests", "e2e", "start-e2e-server.ts"), "utf8"); + assert.match(bootstrap, /--no-sync/); + assert.match(bootstrap, /fsync = off/); + assert.match(bootstrap, /synchronous_commit = off/); + assert.match(bootstrap, /full_page_writes = off/); + assert.match(bootstrap, /Promise\.all\(/); +}); + +test("12-shard partitioning stays complete, segregated, and balanced under 145s estimated wall-clock", () => { + const durations = loadShardDurations(durationsManifest); + const specs = listE2eSpecs(); + const fallbackWeight = defaultSuiteWeight(durations); + const shards = partitionE2eShards(specs, TARGET_PHASE3_SHARD_COUNT, durations, { + parallelWorkers: EFFECTIVE_PARALLEL_SPEEDUP, + }); + assert.equal(shards.length, TARGET_PHASE3_SHARD_COUNT); + const combined = shards.flatMap((shard) => shard.files); + assert.deepEqual([...combined].sort(), [...specs].sort()); + for (const shard of shards) { + assert.ok(shard.files.length > 0, "no 12-shard bucket may be empty"); + const serialCount = shard.files.filter(isSerialE2eSpec).length; + assert.ok( + serialCount === 0 || serialCount === shard.files.length, + `12-shard bucket must not mix serial and parallel specs: ${shard.files.join(", ")}`, + ); + } + const wallWeights = shards.map((shard) => { + const serialSum = shard.files.reduce((sum, file) => sum + (durations[file] ?? fallbackWeight), 0); + return shard.mode === "parallel" ? serialSum / EFFECTIVE_PARALLEL_SPEEDUP : serialSum; + }); + const heaviest = Math.max(...wallWeights); + const totalWall = wallWeights.reduce((sum, weight) => sum + weight, 0); + const largestSerialSpec = Math.max( + 0, + ...specs.filter(isSerialE2eSpec).map((file) => durations[file] ?? fallbackWeight), + ); + const bound = Math.max((totalWall / TARGET_PHASE3_SHARD_COUNT) * 1.15, largestSerialSpec); + assert.ok( + heaviest <= bound, + `heaviest 12-shard bucket ${Math.round(heaviest)}ms exceeds the balance bound (${Math.round(bound)}ms)`, + ); + assert.ok( + heaviest <= 145_000, + `heaviest 12-shard bucket ${Math.round(heaviest)}ms exceeds 145s Phase 3 ceiling`, + ); +}); + test("the duration manifest only names specs that still exist", () => { const durations = loadShardDurations(durationsManifest); assert.ok(Object.keys(durations).length > 0, "expected a populated duration manifest"); diff --git a/scripts/__tests__/runner-release-crate-cache.test.mjs b/scripts/__tests__/runner-release-crate-cache.test.mjs index a4019627eae..963b596f48d 100644 --- a/scripts/__tests__/runner-release-crate-cache.test.mjs +++ b/scripts/__tests__/runner-release-crate-cache.test.mjs @@ -423,8 +423,9 @@ test("only the master Rust lane writes the crate, after a lookup, with the reade // The dependency cache's own writer gate is the same expression. assert.match(body, new RegExp(`save-if: \\$\\{\\{ ${WRITER_GATE.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")} \\}\\}`)); assert.equal((body.match(/actions\/cache\/save@/g) ?? []).length, 2, "release and debug workspace caches have separate guarded writers"); - // The only other cache save in release-verify.yml is the master-guarded E2E UI dist writer in `build`. - assert.equal((releaseWorkflow.match(/actions\/cache\/save@/g) ?? []).length, 3, "release-verify.yml has guarded writers for release crate, debug crate, and E2E UI dist"); + // The other cache saves in release-verify.yml are the master-guarded writers in `build` + // (E2E UI dist, prebuilt Runner dist, and incremental typecheck cache). + assert.equal((releaseWorkflow.match(/actions\/cache\/save@/g) ?? []).length, 5, "release-verify.yml has guarded writers for release crate, debug crate, E2E UI dist, Runner dist, and incremental typecheck"); }); test("the scope names the platform, the compiler and the checkout root, and survives a missing rustc", () => { diff --git a/scripts/chat-shard-durations.json b/scripts/chat-shard-durations.json index 14a87c41fff..42dd490f51c 100644 --- a/scripts/chat-shard-durations.json +++ b/scripts/chat-shard-durations.json @@ -2,938 +2,947 @@ "$comment": "Generated by node scripts/ci/refresh-chat-shard-durations.mjs from the CI profile test records of the PR chat jobs (profile-ci label). Per collected test entry, keyed by the name that vitest list reports: the summed duration of every case that entry runs, so an it.each line carries all its cases. Median across the given runs. scripts/test-line-shard.mjs uses these weights only to place source lines on chat partitions; they never change which tests run. Missing entries take the median weight.", "unit": "ms", "sources": [ - "https://github.com/paperclipai/paperclip/actions/runs/43444854171" + "https://github.com/paperclipai/paperclip/actions/runs/45324415100" ], "coverage": { - "measured": 926, - "entries": 928 + "measured": 935, + "entries": 937 }, "durations": { - "$label": 2632, - "accepts a manually created GitHub App when /app lists only selectable webhook events": 376, - "accepts only signed GitHub setup pings before App credentials exist": 174, - "accepts the Slack invitation mention exactly once (%s)": 1081, - "acknowledges a denied Slack action before its durable notice completes and deduplicates redelivery": 789, - "acknowledges a provider question when the board resolves after callback validation": 760, - "acknowledges a signed URL mention through the real Slack SDK without waiting for an unfurl": 378, - "acknowledges a Slack mention while %s is blocked": 1508, - "acknowledges a Slack retry while one durable worker owns the unrecorded command root": 428, - "acknowledges denied Telegram actions after one durable, payload-free notice": 278, - "acknowledges durable Slack ingress promptly and never replays paused traffic on resume": 961, - "acknowledges GitHub lifecycle callbacks without changing a paused endpoint": 384, - "acknowledges Telegram control $command without a processing receipt (bound=$bound denied=$denied)": 2880, - "acknowledges Telegram edits while verifying and when processing is suspended": 361, - "activates Slack only after provider verification and a real test message": 760, - "admits a separate connected-conversation Retry only after committed original-controller containment: %s": 7416, - "admits concurrent and retried Slack slash commands only once": 527, - "admits current GitHub task Retry without replaying obsolete input: %s": 5540, - "admits only an addressed raw GitHub comment as the first setup repository": 690, - "admits ordinary chat task Retry with a missing checkpoint only after containment: %s": 3063, - "admits the exact chat source for ordinary %s failure": 1312, - "advances failed retry notices past denied history with microsecond timestamps (%s)": 1551, - "advances native progress past suppressed candidates with microsecond timestamps": 1012, - "advances pre-run FIFO selection past a suppressed page with microsecond timestamps (%s)": 2286, - "allows a new exact failed chat retry after an ordinary retry fails, without rearming its ancestors": 518, - "allows only one concurrent live endpoint to claim a Discord bot across guilds": 251, - "allows Slack thread replies without mentions while exempting DMs (DM=%s)": 1850, - "applies Teams installation and Telegram membership resource lifecycle": 972, - "applies the direct-message toggle to Slack slash commands": 315, - "applies the Slack Board resume once during %s dispatch": 1465, - "applies the Teams direct-message reach toggle and starts a new generation after task completion": 564, - "atomically admits only one first GitHub repository under concurrent root mentions": 740, - "atomically rejects a Slack DM when reach is revoked after initial admission": 324, - "atomically rejects a sponsored Telegram guest after the sponsor is suspended": 224, - "atomically rejects a Telegram DM when reach is revoked at the final task-mutation boundary": 214, - "atomically rejects Slack task mutation after a linked identity is revoked or loses write membership": 492, - "atomically rejects Teams messages when DM, group, or channel reach is revoked at the task-mutation boundary": 815, - "audits Microsoft Teams reactions idempotently without treating them as task instructions": 683, - "audits reactions on linked messages without treating them as task instructions": 770, - "audits repeated Discord reaction cycles while deduplicating an exact Gateway replay": 732, - "audits Telegram reactions on completed DM generations idempotently without comments or runs": 792, - "authorizes protected channel workspace defaults for the endpoint's assigned agent": 501, - "automatic Slack registration > acknowledges verification before sending one DM across concurrent callbacks and restart recovery": 638, - "automatic Slack registration > adds events only after saving signing credentials and answers Slack's update-time challenge before OAuth": 722, - "automatic Slack registration > claims callbacks once, keeps denied installation resumable, and does not replay ambiguous exchange": 726, - "automatic Slack registration > creates once under concurrent submissions and resumes after restart without exposing credentials": 295, - "automatic Slack registration > does not advance avatar state after management access is revoked during upload": 159, - "automatic Slack registration > does not bind runtime credentials when management access is revoked during provider checks": 323, - "automatic Slack registration > does not complete setup from %s event evidence": 7684, - "automatic Slack registration > does not link or welcome an installer after company membership is revoked during lookup": 435, - "automatic Slack registration > does not repeat uncertain creation until the operator explicitly confirms no app exists": 240, - "automatic Slack registration > does not replay a verification DM after %s": 1457, - "automatic Slack registration > does not replay a welcome dispatch interrupted by restart": 683, - "automatic Slack registration > does not send a pending verification DM after %s": 2415, - "automatic Slack registration > does not send a pending welcome to a subsequently revoked account link": 716, - "automatic Slack registration > does not verify or notify for a %s challenge": 3132, - "automatic Slack registration > keeps installation usable after %s without leaking provider echoes or creating another app": 1451, - "automatic Slack registration > keeps setup connected after %s and never retries an optional DM": 2017, - "automatic Slack registration > keeps the saved app installable after local avatar rendering fails": 166, - "automatic Slack registration > links the OAuth installer, sends one welcome DM, and still requires signed URL verification": 1363, - "automatic Slack registration > managed Slack > atomically consumes manager state and rejects wrong actors and expired attempts": 163, - "automatic Slack registration > managed Slack > claims concurrent manager callbacks once": 287, - "automatic Slack registration > managed Slack > clears a manager reconnect error after renewing the bound grant": 1086, - "automatic Slack registration > managed Slack > creates and installs once, uploads the avatar and links only the manager grant owner": 1398, - "automatic Slack registration > managed Slack > does not accept another company's grant or keep authorizations after removal": 265, - "automatic Slack registration > managed Slack > does not activate a bot when the manager grant is revoked during child OAuth": 639, - "automatic Slack registration > managed Slack > does not restore a revoked grant when an in-flight refresh returns": 257, - "automatic Slack registration > managed Slack > installs a second bot using the same grant without new manager consent": 1594, - "automatic Slack registration > managed Slack > keeps configured Cloud drafts managed when the broker profile disappears": 198, - "automatic Slack registration > managed Slack > keeps open-source setup independent of the broker": 202, - "automatic Slack registration > managed Slack > never recreates an uncertain app": 343, - "automatic Slack registration > managed Slack > preserves configured-app reconnect intent when managed installation fails": 1569, - "automatic Slack registration > managed Slack > preserves declined manager authorization as a safe recoverable outcome": 215, - "automatic Slack registration > managed Slack > preserves provider rate-limit backoff across subsequent attempts": 492, - "automatic Slack registration > managed Slack > reconnects a rejected manager token without losing pending manifest configuration": 1044, - "automatic Slack registration > managed Slack > reinstalls the configured app on an explicit %s reconnect": 4077, - "automatic Slack registration > managed Slack > reinstalls the saved app after missing bot scopes without creating another app": 1053, - "automatic Slack registration > managed Slack > rejects a bot token belonging to a different Slack app before activation": 499, - "automatic Slack registration > managed Slack > rejects manager identity changes and both callback-origin and ingress-origin drift": 182, - "automatic Slack registration > managed Slack > rejects missing tool scopes before activating a managed bot": 432, - "automatic Slack registration > managed Slack > rejects missing, malformed, foreign and other-user manager grants before provisioning": 232, - "automatic Slack registration > managed Slack > resumes saved installation credentials after inventory failure without creating or reinstalling": 996, - "automatic Slack registration > managed Slack > retains reinstall intent after a provider failure instead of retrying rejected credentials": 977, - "automatic Slack registration > managed Slack > reuses the same personal workspace grant for another draft without another authorization": 210, - "automatic Slack registration > managed Slack > revocation invalidates pending authorization and prevents future provisioning": 229, - "automatic Slack registration > managed Slack > routes the broker claim_id callback back to the saved wizard without exposing the handoff": 294, - "automatic Slack registration > managed Slack > serializes refreshes across endpoints and never replays an ambiguous refresh": 234, - "automatic Slack registration > managed Slack > uses bound OAuth for approval fallback and rejects a different installer": 555, - "automatic Slack registration > managed Slack > uses the held transaction for grant queries without acquiring another pool connection": 405, - "automatic Slack registration > maps invalid token and validation echoes without persisting or exposing the supplied token": 253, - "automatic Slack registration > preserves a saved app when its creation activity fails without exposing the failure": 189, - "automatic Slack registration > preserves an existing %s account link without a welcome DM": 1056, - "automatic Slack registration > recovers %s on the same saved app after restart without exposing provider echoes": 3290, - "automatic Slack registration > reinstalls a revoked bot using the same app and preserves the linked account": 1033, - "automatic Slack registration > rejects a missing or invalid OAuth installer (%s)": 504, - "automatic Slack registration > rejects an authorization started before the bot was revoked": 709, - "automatic Slack registration > rejects an installer lookup %s mismatch without linking": 2093, - "automatic Slack registration > rejects an OAuth %s mismatch without binding runtime credentials": 1061, - "automatic Slack registration > rejects changing an established %s during reauthorization": 1306, - "automatic Slack registration > rejects expiry, wrong actor/session/company, permission revocation, and origin drift before exchange": 287, - "automatic Slack registration > removes registration secrets and prevents late callbacks after %s removal": 590, - "automatic Slack registration > respects disabled direct messages when provisioning the welcome": 512, - "automatic Slack registration > resumes an interrupted avatar upload without repeating creation or requesting another token": 232, - "automatic Slack registration > retains the token and installer after lookup failure and resumes without exchanging a code": 953, - "automatic Slack registration > returns expired authorization to the saved wizard without exchanging its code": 220, - "automatic Slack registration > reuses the saved installer and sends no further DM on reauthorization or restart": 1072, - "automatic Slack registration > saves advanced app details with the initial draft and rejects them for other providers": 145, - "automatic Slack registration > shows interrupted creation as uncertain after restart and supports manual recovery on the same draft": 129, - "automatic Slack registration > Slack test messages > does not downgrade confirmed delivery when activity logging fails": 1050, - "automatic Slack registration > Slack test messages > does not restore revoked access or take another user's identity": 841, - "automatic Slack registration > Slack test messages > loads another workspace page instead of truncating account discovery": 950, - "automatic Slack registration > Slack test messages > redacts provider failures and never retries an ambiguous send": 1229, - "automatic Slack registration > Slack test messages > rejects wrong-workspace users, disabled DMs, and membership revocation": 898, - "automatic Slack registration > Slack test messages > requires a private Slack challenge for an unknown account before linking and sending the test": 1019, - "automatic Slack registration > Slack test messages > sends to the current linked user and reuses a durable result on duplicate requests": 1142, - "automatic Slack registration > Slack test messages > settles a failed Slack account-link intent without committing identity or sending a test message": 1009, - "automatic Slack registration > Slack test messages > signals milestone eligibility around the real Slack account link and stays quiet on reconfirmation": 977, - "automatic Slack registration > uploads a real 512-pixel PNG from the production renderer": 2228, - "automatic Slack registration > uploads preset bytes after credentials are durable, even with private avatar %s": 446, - "automatic Slack registration > uses an authenticated message event to complete automatic setup without a URL challenge and notifies once": 889, - "automatic Slack registration > vaults the bot token before %s and resumes without code exchange": 1542, - "automatic Slack registration > wakes verification from a signed callback with no maintenance polling": 846, - "automatically enables native modals for an existing Discord endpoint after %s runtime qualification": 1364, - "automatically recovers a pre-ingress GitHub failure only through a genuine callback and normal durable workers": 976, - "binds Slack DM slash controls to the latest task ($control, $status, $state)": 5392, - "binds Slack tools to the admitted linked request, recovers its provenance and revokes retained access": 4776, - "blocks a committed native review response and selected files at transport after %s": 2645, - "Board send terminal attachment rejection > commits one content-free scoped receipt for concurrent rejection and allows only a separately keyed corrected send": 971, - "Board send terminal attachment rejection > does not classify missing attachments as a safe terminal rejection": 824, - "Board send terminal attachment rejection > keeps the exact rejected key terminal after normal owner-comment deletion and service reconstruction": 894, - "Board send terminal attachment rejection > returns the exact HTTP rejection with only the bound subset and replays that receipt unchanged": 808, - "bounds a held Slack receipt before delivering an already-ready same-endpoint final": 2450, - "bounds company fixture prefix collision retries without creating a partial fixture": 86, - "bounds failed retry notice scope discovery with retained candidates (%s)": 2526, - "bounds inbound notice scope discovery with denied history (%s)": 2739, - "bounds interaction continuation recovery reads with completed history": 2767, - "bounds terminal confirmation recovery reads with completed history": 3114, - "cancels a queued Slack slash start when channel reach is revoked before transport": 315, - "cancels and redacts GitHub ingress when rotation wins before replay authentication": 823, - "cancels staged GitHub ingress when a minimal recovery tombstone arrives before processing": 660, - "cancels staged GitHub ingress when same-secret pause and resume wins at the replay barrier": 662, - "cannot publish a runtime whose initialization is overtaken by pause": 308, - "canonicalizes prefixed Chat SDK channel ids onto provider inventory resources": 346, - "captures initial Slack communication guidance once per task, ignoring forged message configuration": 787, - "captures signed Slack forwarding protocol with registered owners (%s)": 1698, - "checks both linked sender and agent assignment grants for protected organizational defaults": 644, - "checks protected organizational defaults against the assignee locked at creation": 341, - "classifies publication $label": 5195, - "cleans only the GitHub final run's receipt and never re-adds it on replay": 830, - "clears an older multi-line Slack receipt diagnostic on terminal removal with attachment warning %s": 893, - "coalesces closed native progress on %s fixture %s (%s) without projecting event content": 5344, - "coalesces concurrent automatic pre-ingress GitHub scans into one provider redelivery": 611, - "coalesces one Microsoft Teams run into one provider reply": 824, - "coalesces one Slack run's lifecycle and final response despite an interleaved task control": 874, - "coalesces one Telegram run into one provider message": 1194, - "coalesces Telegram status and final output into one run-scoped provider message": 650, - "composes a parsed Discord question answer with one same-thread continuation publication": 1185, - "configures a customer-owned GitHub App and only auto-enables the first addressed setup repository": 1100, - "configures a customer-owned Microsoft Teams bot with the entered credentials": 158, - "configures a Discord bot only after identity, intent, server, and channel permissions verify": 1300, - "configures Telegram and preserves queued updates with webhook origin %s": 1487, - "consumes Telegram forum-topic controls without remapping or waking the topic task": 645, - "continues a legacy Teams binding across a regional route change without forking its task": 695, - "continues an accepted GitHub task Retry from recovered saved work when its chat replay is refused after the click: %s": 50877, - "continues an inherited GitHub task from its recorded result instead of replaying the committed provider failure": 964, - "corrects Telegram DM conversation links without rewriting retained provider receipts": 568, - "creates a channel-purpose connection and rejects attempts to change its assigned agent": 132, - "deduplicates inbound events, keeps one task per thread, and enables newly discovered Slack channels": 887, - "deduplicates Slack file-only revisions by consumed metadata without retaining private locators": 442, - "defers a rate-limited Telegram receipt reaction for the full provider interval without blocking the inbound turn": 310, - "defers continuation dispatch until the outer response transaction commits": 1692, - "defers scheduled accepted-response recovery behind %s status effects": 931, - "defers scheduled accepted-response recovery until the persisted retry is due": 614, - "defers Slack file receipt recovery while the original post owns the same attempt": 827, - "delivers and replaces a Slack %s card through the publication service": 5354, - "delivers oversized Discord Markdown losslessly as one retryable attachment": 1552, - "delivers queued provider notices from commit wakes without the deferred fast path": 307, - "denies a pre-provider reviewed retry with %s": 8256, - "denies a staged failed chat retry after its original lifecycle epoch changes": 564, - "denies a stale automatic GitHub callback after pause and reconnect even with the still-current HMAC secret": 681, - "denies guest Slack stops, fences delayed events from newer runs, and cancels queued wakes": 1244, - "Discord automatic command registration > does not rediscover a receiver stopped by a company removal refresh": 391, - "Discord automatic command registration > drives receiver discovery through real configure, rotation, pause, and resume producers": 1114, - "Discord automatic command registration > fences receiver construction across renewal: %s": 6197, - "Discord automatic command registration > keeps mention setup usable on registration failure and upgrades automatically when due": 622, - "Discord automatic command registration > learns the first configured command and cancels its deadline when the endpoint is removed": 551, - "Discord automatic command registration > preserves a healthy Discord Gateway when a due command refresh returns 503": 524, - "Discord automatic command registration > rechecks durable ownership after an earlier renewal finishes before listener start": 502, - "Discord automatic command registration > reconstructs an uncertain registration by GET without repeating the provider write": 546, - "Discord automatic command registration > restarts a receiver after token loss only after the old listener has stopped": 2448, - "Discord automatic command registration > retains the Gateway after an external command namespace conflict without overwriting it": 534, - "Discord automatic command registration > takes over a persisted foreign receiver lease at its deadline through the worker": 1515, - "Discord automatic command registration > updates scheduled registration after real %s": 1448, - "Discord native commands with durable service authority > acknowledges privately before a blocked DB wait but denies %s before commit": 1925, - "Discord native commands with durable service authority > answers a cold unavailable Discord command privately without leaving the interaction thinking": 867, - "Discord native commands with durable service authority > denies a previously accepted command after %s without another action or public receipt": 7514, - "Discord native commands with durable service authority > fresh-after-close publication bindings > allows a complete freshly admitted coalesced batch": 1510, - "Discord native commands with durable service authority > fresh-after-close publication bindings > allows an admitted source sent after close command but before close confirmation to present": 1536, - "Discord native commands with durable service authority > fresh-after-close publication bindings > does not cross a historical close after current %s authority changes": 13914, - "Discord native commands with durable service authority > fresh-after-close publication bindings > does not drop an older coalesced source while selecting the fresh batch": 1557, - "Discord native commands with durable service authority > fresh-after-close publication bindings > does not grant presentation across a published control with %s proof": 4611, - "Discord native commands with durable service authority > fresh-after-close publication bindings > does not let an automatic child copy %s presentation authority": 2049, - "Discord native commands with durable service authority > fresh-after-close publication bindings > does not let an unseen stale native Discord %s act on reopened work": 2800, - "Discord native commands with durable service authority > fresh-after-close publication bindings > keeps a newly closed source internal after a still newer source reopens the thread": 1693, - "Discord native commands with durable service authority > fresh-after-close publication bindings > keeps a source admitted before close confirmation internal after a fresh source reopens": 1421, - "Discord native commands with durable service authority > fresh-after-close publication bindings > orders same-millisecond Discord sources only within the same worker and process": 1314, - "Discord native commands with durable service authority > fresh-after-close publication bindings > publishes working and the exact fresh final after pinned close without resurrecting the old source": 1666, - "Discord native commands with durable service authority > fresh-after-close publication bindings > refuses %s provider chronology at intake when first ingested after close": 2643, - "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes a post-close milestone when %s authority is restored": 24541, - "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes a post-close milestone when interrupted inbound acceptance settles its %s receipt": 4707, - "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes saved post-close native progress when %s authority returns": 10977, - "Discord native commands with durable service authority > qualifies pinned Discord close-owned progress retirement (%s)": 4434, - "Discord native commands with durable service authority > records DM new once and never applies its old replay to a replacement conversation": 1117, - "Discord native commands with durable service authority > returns private status, keeps guild new as guidance, and closes only after a real public control receipt": 1018, - "Discord native commands with durable service authority > rolls back staged public control when the durable command receipt fails": 784, - "Discord native commands with durable service authority > serializes simultaneous exact close deliveries and denies a changed command or registered ID": 859, - "Discord native commands with durable service authority > upgrades a retained prior-copy registration after service restart before admitting close": 985, - "discovers a Slack connect identity without starting work or granting access": 534, - "dispatches and publishes a queued Slack Board send with a one-connection database pool": 680, - "dispatches saved input through the task Retry HTTP endpoint and survives a repeated click": 1261, - "does not accept a contradictory HTTP%s Slack duplicate receipt": 729, - "does not acknowledge lifecycle callbacks whose durable write fails": 287, - "does not adopt historical pre-ingress GitHub failures when initializing a recovery epoch": 480, - "does not adopt input or deliver a pending identity-contended Retry after %s": 5471, - "does not bypass %s task guards from the Slack Board composer or its outbox": 2844, - "does not bypass %s through an exact chat retry": 1932, - "does not cancel an ambiguous Slack task start after credential-lease ownership is lost": 48, - "does not commit a Telegram close control when its provider reply is definitively rejected": 860, - "does not commit endpoint reach changes after credential-lease ownership is lost": 42, - "does not commit stale Slack task-start recovery after credential-lease ownership is lost": 72, - "does not complete GitHub webhook repair or overwrite a new credential lease owner after remote success": 553, - "does not create SDK eyes reactions for accepted GitHub requests": 591, - "does not deadlock reaction replay against publication link settlement": 882, - "does not dispatch an accepted inbound wake after destination access is revoked": 415, - "does not duplicate an inbound file when delivery recovery resumes after the task mutation": 585, - "does not enable Discord modals after a connection-lock wait with %s": 731, - "does not hide another endpoint behind a page of busy-bot conversation heads": 2995, - "does not hold another endpoint's final publication behind Slack session status transport": 1065, - "does not lend a consumed failure lane to a recovered answer with %s": 2541, - "does not let a late %s milestone replace authoritative ownership attention or final status": 4033, - "does not let an obsolete GitHub webhook secret reopen a repository during rotation": 775, - "does not let an obsolete Slack signing secret verify a reconnected configuration": 446, - "does not let an obsolete Slack task-start failure quarantine successor credentials or reach": 283, - "does not let GitHub lifecycle recovery undo a webhook-secret rotation": 793, - "does not let ineligible pre-ingress GitHub candidates exhaust every future recovery scan": 595, - "does not let one blocked Slack conversation starve another outbox head": 624, - "does not let pause overtake a credential-fenced Discord root thread creation": 284, - "does not let pause return while a Slack publication is still in provider transport": 864, - "does not let rejected callbacks or malformed proxy hints establish healthy Slack callbacks": 490, - "does not let removed-input cleanup overwrite a pre-run FIFO lane already replaced by its answer": 834, - "does not let Slack reach disables return ahead of in-flight provider sends": 1164, - "does not let stale GitHub setup-secret rotation overwrite successor credentials": 118, - "does not let stale Telegram removal clear successor credentials after lease reclamation": 227, - "does not let two live agent connections claim the same native bot or spoof its verified identity": 175, - "does not lock durably ineligible %s history on repeated issue milestones": 17979, - "does not normalize a stale Slack retry-anyway action after credential-lease ownership is lost": 251, - "does not recover a committed answer after %s": 6502, - "does not reload dormant accepted-response history for an unrelated %s wake": 3138, - "does not repeat a failed chat run with %s": 1066, - "does not replace a failure while another exact-run authored publication is %s": 1460, - "does not replay stale native progress after a paused endpoint restarts behind an exact final": 1596, - "does not request automatic pre-ingress GitHub recovery while the latest provider attempt is %s": 1899, - "does not resurrect publication ownership after waiting beyond expiry on a real lease row lock": 464, - "does not retain signed GitHub events outside the configured App event set": 510, - "does not retry a chat comment edited on the Board during the failed execution": 362, - "does not retry a provider-accepted publication after its exact attempt lease is lost": 459, - "does not retry automatic pre-ingress GitHub redelivery without a distinct failed provider attempt": 569, - "does not retry unrelated company fixture database errors": 10, - "does not rotate a GitHub webhook secret when stored credentials cannot be resolved": 470, - "does not treat an accepted-response endpoint scheduling hint as current authority": 512, - "does not wake twice when an operator replays an already admitted failed delivery": 478, - "drains accepted GitHub webhooks from commit wakes and durable retry deadlines": 2018, - "drains bounded Slack chat-origin milestones without admitting an internal issue run (%s)": 2465, - "drains failed chat retries from durable work and becomes idle: %s": 9768, - "durably admits a Telegram edit that races deferred original-message processing": 1181, - "durably audits a rejected Discord Gateway action before surfacing transport rejection": 225, - "durably deduplicates Telegram guidance webhook retries and filters disabled DMs": 384, - "durably recovers rate-limited Telegram menu registration and removal cleanup": 674, - "durably replays a reaction that arrives before its outbound link without waking the task": 991, - "durably retries a signed Slack session stop and cancels its exact linked run once": 1025, - "durably stages GitHub webhooks while credential mutation owns the processing lease": 880, - "durably stages GitHub webhooks within budget before cold runtime initialization": 629, - "edits a Slack working reply into one terminal failure reply": 581, - "enforces Telegram group reach and privacy-mode addressing before retaining message content": 674, - "enforces the native progress cadence boundary and one publication per phase": 692, - "exhausts the existing delivery Retry budget after identity authorization without background renewal": 8538, - "expires Teams consent from the committed Board transfer without periodic maintenance": 1988, - "expires the saved identity wait without renewal when the lock is released before expiry processing: %s": 1807, - "fails closed for unbound rich callbacks and unknown slash commands": 279, - "fails closed on automatic pre-ingress GitHub recovery with %s": 980, - "fails closed when GitHub App permissions drift before installation recovery": 1295, - "fails closed when the GitHub installation has not approved the App permissions": 859, - "fences a reclaimed Slack task admission from the obsolete worker's settlement": 411, - "fences message and reaction callbacks that resume after Discord Gateway takeover": 1258, - "filters a claimed message lifecycle delivery after pause and reconnect supersede its runtime": 915, - "filters a durable orphan Telegram edit after the bounded reorder window": 555, - "filters a durably admitted GitHub callback when rotation and reconnect supersede its runtime before deferred processing": 947, - "filters a late duplicate instead of bypassing the bounded reaction-link lifetime": 1024, - "filters a staged reaction when destination reach is revoked before replay": 929, - "filters a standalone unaddressed GitHub comment after bounded orphan retention": 943, - "filters an unlinked guest when the endpoint sponsor is suspended and exposes the reason and duplicate count": 313, - "filters unlinked people when configured, then honors a confirmed active-member identity link": 827, - "first-seen messages behind completed chat controls > accepts delayed %s backlog without an explicit control": 1734, - "first-seen messages behind completed chat controls > continues to accept authenticated Slack slash close/new on a genuinely new generation": 1841, - "first-seen messages behind completed chat controls > does not infer a stop from bare completed state with %s": 3450, - "first-seen messages behind completed chat controls > does not let an unseen old Telegram /%s close a newer generation": 2071, - "first-seen messages behind completed chat controls > does not lower a newer provider boundary when an older close is confirmed later": 1420, - "first-seen messages behind completed chat controls > does not promote metadata-only %s timestamps after a completed control": 1986, - "first-seen messages behind completed chat controls > does not recreate or filter a previously committed inbound link when its delivery retries after close": 1000, - "first-seen messages behind completed chat controls > honors operator-confirmed close without inventing an outbound message receipt": 930, - "first-seen messages behind completed chat controls > keeps controls scoped to their endpoint, immutable thread, and company": 2827, - "first-seen messages behind completed chat controls > preserves a Teams close across regional routes (close after route change: %s)": 1943, - "first-seen messages behind completed chat controls > rechecks a close committed while old input waits before the endpoint transaction": 865, - "first-seen messages behind completed chat controls > refuses unseen %s input before %s (same second: %s) without creating work": 8159, - "first-seen messages behind completed chat controls > retains a committed control boundary through pause, redacted duplicate, and resume": 1909, - "first-seen messages behind completed chat controls > retains a completed trailing-newline control as a first-seen source boundary": 888, - "GitHub agent review workflow > acknowledges a GitHub request after a durable scheduler retry succeeds": 1181, - "GitHub agent review workflow > adds the progress tool to an existing enabled bot without restoring disabled tools": 1018, - "GitHub agent review workflow > admits a GitHub request explicitly addressed to both connected bots": 1583, - "GitHub agent review workflow > admits a newly mentioned %s edit while preserving its lifecycle record": 3264, - "GitHub agent review workflow > admits opt-in signed issue events without PR checks, deduplicates them and rechecks revoked policy": 1684, - "GitHub agent review workflow > admits signed %s mentions with automation off, deduplicates and retains manual task authority": 33894, - "GitHub agent review workflow > admits signed PR events into an ordinary assigned task and deduplicates delivery": 4468, - "GitHub agent review workflow > adopts an existing GitHub PR placeholder and retires earlier duplicate placeholders": 2233, - "GitHub agent review workflow > authorizes description edits as the editor, never inheriting the original author's access": 2508, - "GitHub agent review workflow > automatically retries a transient GitHub review publication (HTTP %s)": 9403, - "GitHub agent review workflow > bounds GitHub response authorization reads with large saved chat content": 1359, - "GitHub agent review workflow > checks live repository permission and reports a revoked installation selection": 559, - "GitHub agent review workflow > classifies recovered GitHub receipts without republishing or overwriting historical success": 2391, - "GitHub agent review workflow > closes a GitHub placeholder after a formal review (legacy receipt: %s)": 2546, - "GitHub agent review workflow > closes an inline-only GitHub review when an earlier working comment was deleted: %s": 2994, - "GitHub agent review workflow > coordinates GitHub working feedback with a %s fast response": 3605, - "GitHub agent review workflow > defers GitHub review check enqueue until outer commit and discards rollback": 1878, - "GitHub agent review workflow > does not admit an unlinked issue author through the linked webhook sender": 648, - "GitHub agent review workflow > does not edit a %s replacement of the bound GitHub comment": 2524, - "GitHub agent review workflow > does not handle a blocked new GitHub request with an older run's final reply": 1728, - "GitHub agent review workflow > does not invent a GitHub completion response when the agent sends no tool reply": 1418, - "GitHub agent review workflow > does not let a progress edit overwrite a final GitHub answer": 1475, - "GitHub agent review workflow > does not let an unsettled GitHub fallback block a later board message": 1139, - "GitHub agent review workflow > does not post a GitHub working comment when the scheduler declines the request": 671, - "GitHub agent review workflow > does not resubmit a permanent GitHub publication rejection (HTTP %s)": 3371, - "GitHub agent review workflow > does not route GitHub mentions using %s identities": 4374, - "GitHub agent review workflow > drains more than one page of stale GitHub review projections without touching manual history": 2133, - "GitHub agent review workflow > finalizes every working comment in a coalesced GitHub run": 2064, - "GitHub agent review workflow > finds a GitHub review check after a full page of revoked work and ignores settled history": 6083, - "GitHub agent review workflow > finds owed terminal GitHub work beyond a full page of unrelated request history": 1957, - "GitHub agent review workflow > finds terminal GitHub responses by native issue binding before legacy run context": 2137, - "GitHub agent review workflow > finishes the same GitHub working comment after an authorized same-App reconnect (legacy: %s)": 2594, - "GitHub agent review workflow > GitHub failure fallback respects exact tool delivery state: %s": 14536, - "GitHub agent review workflow > holds stale GitHub review projection receipt repair until the outer commit and discards rollback": 2793, - "GitHub agent review workflow > ignores a review request addressed to an external GitHub bot": 1023, - "GitHub agent review workflow > imports initial GitHub access for a %s App without a second picker and leaves later additions disabled": 1597, - "GitHub agent review workflow > keeps a newer GitHub request open when its acknowledgement follows older progress": 2279, - "GitHub agent review workflow > keeps a report-only GitHub check neutral after a %s run without an assessment": 2930, - "GitHub agent review workflow > keeps an acknowledged paused GitHub request quiet until its new run finishes": 2862, - "GitHub agent review workflow > keeps GitHub publication I/O outside transactions and fences an expired owner's receipt": 422, - "GitHub agent review workflow > keeps GitHub response maintenance truthful for a new request: $scenario ($reason)": 54805, - "GitHub agent review workflow > keeps GitHub response ownership checks independent of large run payloads": 1422, - "GitHub agent review workflow > keeps GitHub review check history quiet and wakes from the real enqueue producer": 2895, - "GitHub agent review workflow > keeps GitHub review tools callable through a later native task gateway (board follow-up: $boardFollowUp, legacy origin: $legacyOrigin)": 9341, - "GitHub agent review workflow > keeps native presentation idle until its committed GitHub outcome: %s": 5965, - "GitHub agent review workflow > keeps partial review delivery authoritative when the head changes %s": 2589, - "GitHub agent review workflow > keeps per-request fallback outside the main GitHub PR review wait": 1361, - "GitHub agent review workflow > keeps terminal GitHub responses waiting while a natively bound newer run is active": 871, - "GitHub agent review workflow > legacy name-only registration preserves an explicit empty repository selection": 98, - "GitHub agent review workflow > links a gated GitHub check to the current vanity review page before a task exists": 731, - "GitHub agent review workflow > lists each GitHub bot tool once when an inline thread shares the task": 1155, - "GitHub agent review workflow > loads an old GitHub review directly without crossing endpoint or company boundaries": 1390, - "GitHub agent review workflow > loads only the current configured instruction skills, never provider links or another company": 2562, - "GitHub agent review workflow > manual App credential retry imports repositories after an interrupted vault write": 1201, - "GitHub agent review workflow > manual App setup preserves explicitly disabled repositories and tools": 789, - "GitHub agent review workflow > manual App setup resumes tool initialization after an interrupted repository import": 929, - "GitHub agent review workflow > offers Retry for a saved automatic PR event after a successful older review": 2910, - "GitHub agent review workflow > parks a GitHub acknowledgement until native presentation commits": 1352, - "GitHub agent review workflow > parks terminal GitHub responses behind the publication owner (uncertain: %s)": 6911, - "GitHub agent review workflow > preserves %s policy context while omitting body content": 1779, - "GitHub agent review workflow > preserves a final GitHub assessment while settling an incomplete request receipt": 1392, - "GitHub agent review workflow > preserves an earlier final GitHub answer when a later continuation fails": 1132, - "GitHub agent review workflow > preserves GitHub connection intent after publication HTTP %s": 2572, - "GitHub agent review workflow > preserves malformed GitHub authority input %j": 5336, - "GitHub agent review workflow > preserves newer GitHub PR progress when an older run fails": 1874, - "GitHub agent review workflow > preserves the %s GitHub receipt lifecycle during acknowledgement recovery": 2360, - "GitHub agent review workflow > preserves the published GitHub assessment during passive-response maintenance: %s": 4814, - "GitHub agent review workflow > publishes one score heading when a newly configured bot submits a formatted summary": 1880, - "GitHub agent review workflow > reactivates terminal GitHub response recovery from committed native identity": 3258, - "GitHub agent review workflow > reads pending GitHub receipts without dispatch and refuses a missing publication": 2999, - "GitHub agent review workflow > rechecks a GitHub fallback after waiting for the credential lane": 1231, - "GitHub agent review workflow > rechecks another GitHub bot's mention when recovering a durable subscribed delivery": 1565, - "GitHub agent review workflow > rechecks assessment ownership after stale GitHub review projection selection waits for a row lock (shutdown: %s)": 3635, - "GitHub agent review workflow > reconciles a GitHub working comment when execution stops without a publication": 1726, - "GitHub agent review workflow > reconciles stopped GitHub work from native identity without legacy wake fields": 1287, - "GitHub agent review workflow > reconsiders the same GitHub reply after stopped native workspace cleanup (%s)": 40213, - "GitHub agent review workflow > records automatic policy skips without retaining provider content, and refuses mentions in disabled repositories": 866, - "GitHub agent review workflow > recovers %s after a timeout before publication staging": 3134, - "GitHub agent review workflow > recovers a delayed GitHub acknowledgement after a successful run without leaving it working": 1216, - "GitHub agent review workflow > recovers a durable GitHub publication receipt ($label)": 15195, - "GitHub agent review workflow > recovers a missed GitHub head webhook only while a review check remains unresolved": 1087, - "GitHub agent review workflow > recovers an acknowledgement whose local receipt was lost without posting another comment": 1190, - "GitHub agent review workflow > recovers an approved queued GitHub review without another approval (revoked: %s)": 5397, - "GitHub agent review workflow > recovers long %s requests without accepting changes hidden by the audit preview": 7503, - "GitHub agent review workflow > recovers lost inline and check responses without duplicate GitHub publications": 9067, - "GitHub agent review workflow > recovers stale GitHub review projection through %s": 4436, - "GitHub agent review workflow > rejects arbitrary comment IDs and edits after the initiating person is revoked": 1039, - "GitHub agent review workflow > rejects changed requests and revoked access before repeating an unstaged review": 7706, - "GitHub agent review workflow > releases a GitHub acknowledgement after fast response %s without maintenance polling": 9886, - "GitHub agent review workflow > replies in review finding threads behind an active run > answers each finding thread in its own run instead of one unattestable batch": 6263, - "GitHub agent review workflow > replies in review finding threads behind an active run > still batches several replies in one finding thread into one attested run": 4161, - "GitHub agent review workflow > replies in review finding threads behind an active run > still denies each separated finding-thread run after the linked identity is revoked": 2688, - "GitHub agent review workflow > requires every essential GitHub tool and rejects Contents write during verification": 1148, - "GitHub agent review workflow > restores terminal GitHub responses and leaves finalized history quiet": 1913, - "GitHub agent review workflow > resumes a delayed GitHub publication after coordinator restart without another inbound event": 3487, - "GitHub agent review workflow > resumes a paused GitHub request and reconciles stopped execution (prior run: %s, progress: %s)": 8763, - "GitHub agent review workflow > retains a provider-verified GitHub mention when its plain text uses an alias": 1072, - "GitHub agent review workflow > retains attachment provenance in a signed GitHub mention %s": 2722, - "GitHub agent review workflow > retains failed stale GitHub review projection repair across drain without passive SQL": 1788, - "GitHub agent review workflow > retains GitHub review check work across %s": 7576, - "GitHub agent review workflow > retains subscribed GitHub follow-ups with incidental human or unknown mentions: %s": 7392, - "GitHub agent review workflow > retains terminal GitHub response work across %s": 6174, - "GitHub agent review workflow > retains the saved GitHub review check retry through restart without an early provider call": 1053, - "GitHub agent review workflow > retires a legacy coalesced GitHub placeholder before replacing its receipt": 2942, - "GitHub agent review workflow > retires a legacy GitHub placeholder when its acknowledgement is superseded": 2048, - "GitHub agent review workflow > retries a failed GitHub acknowledgement at its saved deadline": 1842, - "GitHub agent review workflow > retries an ambiguous GitHub edit without creating another comment": 7774, - "GitHub agent review workflow > returns snapshot finding categories and publishes only accepted categories": 2307, - "GitHub agent review workflow > reuses one main GitHub PR comment across review requests: %s": 5655, - "GitHub agent review workflow > scopes guest tasks and rechecks their sponsor before every bot tool": 875, - "GitHub agent review workflow > settles a deleted Board-origin request without starving unrelated terminal GitHub replies": 3066, - "GitHub agent review workflow > settles a deleted coalesced working comment without blocking the current GitHub response": 1410, - "GitHub agent review workflow > stack exchanges a callback code only once when vault storage is interrupted": 54, - "GitHub agent review workflow > stack rejects forged raw gateway deliveries without changing verification or waking an agent": 1018, - "GitHub agent review workflow > stages one assessment when the timed-out metadata read completes alongside its retry": 2522, - "GitHub agent review workflow > still fences a GitHub publication when reconnect races the provider read": 1203, - "GitHub agent review workflow > stops a queued GitHub publication after %s": 5732, - "GitHub agent review workflow > stops GitHub acknowledgement sends at %s between provider requests": 5969, - "GitHub agent review workflow > stops GitHub review check HTTP after shutdown admission and recovers its durable action": 7325, - "GitHub agent review workflow > supersedes a late review projection after its check already rejected the old head": 1769, - "GitHub agent review workflow > suppresses subscribed GitHub comments for another connected bot in %s": 4035, - "GitHub agent review workflow > updates one GitHub acknowledgement through progress and final answer in %s": 5490, - "GitHub agent review workflow > uses task-bound bot tools and deterministic checks, then denies revoked people": 3438, - "GitHub agent review workflow > uses the manifest state parameter and rejects expired, reused, and wrong-origin registrations": 53, - "GitHub agent review workflow > verifies %i enabled repositories in bounded token batches": 1136, - "GitHub agent review workflow > verifies a repaired GitHub webhook in %s only from a %s installation delivery with %s repository": 7495, - "GitHub agent review workflow > waits for and wakes from the actual GitHub review check publication lease": 1853, - "GitHub agent review workflow > waits for the existing GitHub publication lease before a terminal response": 1951, - "GitHub agent review workflow > wakes a GitHub acknowledgement only after the outer fast-response transaction commits": 2398, - "GitHub agent review workflow > wakes a GitHub review check from committed run identity before its future head deadline": 2749, - "GitHub agent review workflow > wakes a paused GitHub response from %s": 10137, - "GitHub agent review workflow > wakes GitHub acknowledgements from a real publication lease %s": 5736, - "GitHub agent review workflow > wakes GitHub milestone identity restoration only after outer commit and stays quiet on reconfirmation": 424, - "GitHub agent review workflow > wakes milestone authority only when GitHub guest settings change, after outer commit": 657, - "GitHub agent review workflow > wakes stale GitHub review projection repair from real admission and leaves settled history quiet": 1816, - "GitHub agent review workflow > wakes stale GitHub review projection repair when cancellation commits after the review is admitted": 2517, - "GitHub agent review workflow > wakes terminal GitHub responses after the outer issue transaction commits": 2037, - "GitHub agent review workflow > wizard completes a verified connection automatically without claiming runtime execution": 762, - "GitHub agent review workflow > wizard configures Cloud webhook delivery without a public instance URL": 528, - "GitHub agent review workflow > wizard keeps localhost draft choices while waiting for Cloud enrollment": 53, - "GitHub agent review workflow > wizard persists a %s owner and resumes the same bound registration after a lost Cloud response and enrolled origin change": 172, - "GitHub agent review workflow > wizard preserves an explicit empty repository selection at revision zero": 679, - "GitHub agent review workflow > wizard preserves explicit review behavior and repository restrictions on existing drafts": 671, - "GitHub agent review workflow > wizard recovers a renamed enrolled origin only after checking bound state and Cloud authority": 52, - "GitHub agent review workflow > wizard repairs Cloud after manual credential recovery and secret rotation without changing App identity": 824, - "GitHub agent review workflow > wizard restarts only an expired unconsumed registration: %s": 490, - "GitHub agent review workflow > wizard resumes a %s installation callback after its signed ping": 2896, - "GitHub agent review workflow > wizard retains partial manifest recovery until explicit existing-App recovery succeeds": 941, - "GitHub agent review workflow > wizard serializes identity starts and callbacks without overwriting PKCE or handoff state": 603, - "GitHub repository pagination and bulk access > pages and searches 1000 repositories while toggle all changes unloaded rows atomically": 425, - "GitHub terminal receipt composes pinned HTTP and durable source authority (%s)": 15635, - "GitHub webhook recovery scheduling > joins held GitHub history at shutdown without starting another HTTP request": 565, - "GitHub webhook recovery scheduling > leaves %s recovery quiet": 971, - "GitHub webhook recovery scheduling > preempts a future GitHub recovery window when only credential references change": 1465, - "GitHub webhook recovery scheduling > preserves a GitHub redelivery stopped before transport (%s, prior receipt: %s, superseded: %s)": 3904, - "GitHub webhook recovery scheduling > reactivates recovery from real resume and cancels its deadline on pause": 3506, - "GitHub webhook recovery scheduling > reconstructs due GitHub recovery through %s": 1629, - "GitHub webhook recovery scheduling > reconstructs more than one page of GitHub recovery deadlines and dispatches fair batches of five": 2602, - "GitHub webhook recovery scheduling > recovers a failed GitHub deadline reconstruction after drain without passive SQL": 573, - "GitHub webhook recovery scheduling > rejects a %s assigned agent before GitHub recovery can become orphaned": 4431, - "GitHub webhook recovery scheduling > retains GitHub recovery configuration intent through nested commit and rollback": 2434, - "GitHub webhook recovery scheduling > waits for the saved recovery deadline and requests a genuine GitHub redelivery": 671, - "globally fences GitHub App identity across owner transfers without leaking another company": 477, - "globally fences one Microsoft Bot application across tenants": 183, - "hands an explicitly bound same-run image to Discord's final native file response": 1394, - "holds a delayed first Teams setup reply until its older root mention enables the channel": 557, - "holds a delayed Slack thread reply until its older root mention arrives": 472, - "holds a GitHub follow-up that arrives after the reorder window until its older root mention arrives": 869, - "holds ambiguous provider sends for an audited duplicate-risk resolution without reordering": 1465, - "holds an ordinary $provider Retry behind its exact remote recovery: $gate": 38604, - "honors a prepared Retry identity wait after %s": 9729, - "honors Slack slash-start rate-limit backoff without hammering transport": 317, - "honors Telegram flood-control timing and publishes one final message after retry": 862, - "ignores a signed GitHub installation before App credentials exist": 170, - "ignores repeated unscoped routine %s hints without rebuilding dormant accepted-response history": 1027, - "ignores signed Slack callbacks from a different workspace before SDK dispatch": 280, - "immediately initializes a new GitHub recovery generation despite the previous epoch's 24-hour backoff": 568, - "imports every Discord upload when text files include MIME parameters": 424, - "ingests a pinned Telegram video-note without optional MIME metadata (%s)": 2277, + "$label": 2223, + "accepts a manually created GitHub App when /app lists only selectable webhook events": 330, + "accepts only signed GitHub setup pings before App credentials exist": 125, + "accepts the Slack invitation mention exactly once (%s)": 755, + "acknowledges a denied Slack action before its durable notice completes and deduplicates redelivery": 615, + "acknowledges a provider question when the board resolves after callback validation": 650, + "acknowledges a signed URL mention through the real Slack SDK without waiting for an unfurl": 309, + "acknowledges a Slack mention while %s is blocked": 1124, + "acknowledges a Slack retry while one durable worker owns the unrecorded command root": 350, + "acknowledges denied Telegram actions after one durable, payload-free notice": 181, + "acknowledges durable Slack ingress promptly and never replays paused traffic on resume": 898, + "acknowledges GitHub lifecycle callbacks without changing a paused endpoint": 287, + "acknowledges Telegram control $command without a processing receipt (bound=$bound denied=$denied)": 1819, + "acknowledges Telegram edits while verifying and when processing is suspended": 259, + "activates Slack only after provider verification and a real test message": 550, + "admits a separate connected-conversation Retry only after committed original-controller containment: %s": 7148, + "admits concurrent and retried Slack slash commands only once": 435, + "admits current GitHub task Retry without replaying obsolete input: %s": 4150, + "admits only an addressed raw GitHub comment as the first setup repository": 484, + "admits ordinary chat task Retry with a missing checkpoint only after containment: %s": 2025, + "admits the exact chat source for ordinary %s failure": 1205, + "advances failed retry notices past denied history with microsecond timestamps (%s)": 1387, + "advances native progress past suppressed candidates with microsecond timestamps": 712, + "advances pre-run FIFO selection past a suppressed page with microsecond timestamps (%s)": 2143, + "allows a new exact failed chat retry after an ordinary retry fails, without rearming its ancestors": 401, + "allows only one concurrent live endpoint to claim a Discord bot across guilds": 158, + "allows Slack thread replies without mentions while exempting DMs (DM=%s)": 1499, + "applies Teams installation and Telegram membership resource lifecycle": 689, + "applies the direct-message toggle to Slack slash commands": 211, + "applies the Slack Board resume once during %s dispatch": 1137, + "applies the Teams direct-message reach toggle and starts a new generation after task completion": 414, + "atomically admits only one first GitHub repository under concurrent root mentions": 407, + "atomically rejects a Slack DM when reach is revoked after initial admission": 240, + "atomically rejects a sponsored Telegram guest after the sponsor is suspended": 192, + "atomically rejects a Telegram DM when reach is revoked at the final task-mutation boundary": 155, + "atomically rejects Slack task mutation after a linked identity is revoked or loses write membership": 497, + "atomically rejects Teams messages when DM, group, or channel reach is revoked at the task-mutation boundary": 590, + "audits Microsoft Teams reactions idempotently without treating them as task instructions": 475, + "audits reactions on linked messages without treating them as task instructions": 500, + "audits repeated Discord reaction cycles while deduplicating an exact Gateway replay": 569, + "audits Telegram reactions on completed DM generations idempotently without comments or runs": 660, + "authorizes protected channel workspace defaults for the endpoint's assigned agent": 414, + "automatic Slack registration > acknowledges verification before sending one DM across concurrent callbacks and restart recovery": 529, + "automatic Slack registration > adds events only after saving signing credentials and answers Slack's update-time challenge before OAuth": 625, + "automatic Slack registration > claims callbacks once, keeps denied installation resumable, and does not replay ambiguous exchange": 604, + "automatic Slack registration > creates once under concurrent submissions and resumes after restart without exposing credentials": 192, + "automatic Slack registration > does not advance avatar state after management access is revoked during upload": 139, + "automatic Slack registration > does not bind runtime credentials when management access is revoked during provider checks": 259, + "automatic Slack registration > does not complete setup from %s event evidence": 5369, + "automatic Slack registration > does not link or welcome an installer after company membership is revoked during lookup": 395, + "automatic Slack registration > does not repeat uncertain creation until the operator explicitly confirms no app exists": 175, + "automatic Slack registration > does not replay a verification DM after %s": 1116, + "automatic Slack registration > does not replay a welcome dispatch interrupted by restart": 390, + "automatic Slack registration > does not send a pending verification DM after %s": 2234, + "automatic Slack registration > does not send a pending welcome to a subsequently revoked account link": 546, + "automatic Slack registration > does not verify or notify for a %s challenge": 1760, + "automatic Slack registration > keeps installation usable after %s without leaking provider echoes or creating another app": 1154, + "automatic Slack registration > keeps setup connected after %s and never retries an optional DM": 1206, + "automatic Slack registration > keeps the saved app installable after local avatar rendering fails": 147, + "automatic Slack registration > links the OAuth installer, sends one welcome DM, and still requires signed URL verification": 874, + "automatic Slack registration > managed Slack > atomically consumes manager state and rejects wrong actors and expired attempts": 138, + "automatic Slack registration > managed Slack > claims concurrent manager callbacks once": 234, + "automatic Slack registration > managed Slack > clears a manager reconnect error after renewing the bound grant": 898, + "automatic Slack registration > managed Slack > creates and installs once, uploads the avatar and links only the manager grant owner": 1039, + "automatic Slack registration > managed Slack > does not accept another company's grant or keep authorizations after removal": 167, + "automatic Slack registration > managed Slack > does not activate a bot when the manager grant is revoked during child OAuth": 515, + "automatic Slack registration > managed Slack > does not restore a revoked grant when an in-flight refresh returns": 143, + "automatic Slack registration > managed Slack > installs a second bot using the same grant without new manager consent": 1150, + "automatic Slack registration > managed Slack > keeps configured Cloud drafts managed when the broker profile disappears": 131, + "automatic Slack registration > managed Slack > keeps open-source setup independent of the broker": 152, + "automatic Slack registration > managed Slack > never recreates an uncertain app": 268, + "automatic Slack registration > managed Slack > preserves configured-app reconnect intent when managed installation fails": 961, + "automatic Slack registration > managed Slack > preserves declined manager authorization as a safe recoverable outcome": 209, + "automatic Slack registration > managed Slack > preserves provider rate-limit backoff across subsequent attempts": 535, + "automatic Slack registration > managed Slack > reconnects a rejected manager token without losing pending manifest configuration": 813, + "automatic Slack registration > managed Slack > reinstalls the configured app on an explicit %s reconnect": 2529, + "automatic Slack registration > managed Slack > reinstalls the saved app after missing bot scopes without creating another app": 660, + "automatic Slack registration > managed Slack > rejects a bot token belonging to a different Slack app before activation": 351, + "automatic Slack registration > managed Slack > rejects manager identity changes and both callback-origin and ingress-origin drift": 184, + "automatic Slack registration > managed Slack > rejects missing tool scopes before activating a managed bot": 534, + "automatic Slack registration > managed Slack > rejects missing, malformed, foreign and other-user manager grants before provisioning": 252, + "automatic Slack registration > managed Slack > resumes saved installation credentials after inventory failure without creating or reinstalling": 784, + "automatic Slack registration > managed Slack > retains reinstall intent after a provider failure instead of retrying rejected credentials": 787, + "automatic Slack registration > managed Slack > reuses the same personal workspace grant for another draft without another authorization": 117, + "automatic Slack registration > managed Slack > revocation invalidates pending authorization and prevents future provisioning": 188, + "automatic Slack registration > managed Slack > routes the broker claim_id callback back to the saved wizard without exposing the handoff": 217, + "automatic Slack registration > managed Slack > serializes refreshes across endpoints and never replays an ambiguous refresh": 201, + "automatic Slack registration > managed Slack > uses bound OAuth for approval fallback and rejects a different installer": 475, + "automatic Slack registration > managed Slack > uses the held transaction for grant queries without acquiring another pool connection": 183, + "automatic Slack registration > maps invalid token and validation echoes without persisting or exposing the supplied token": 339, + "automatic Slack registration > preserves a saved app when its creation activity fails without exposing the failure": 96, + "automatic Slack registration > preserves an existing %s account link without a welcome DM": 563, + "automatic Slack registration > recovers %s on the same saved app after restart without exposing provider echoes": 3277, + "automatic Slack registration > reinstalls a revoked bot using the same app and preserves the linked account": 767, + "automatic Slack registration > rejects a missing or invalid OAuth installer (%s)": 291, + "automatic Slack registration > rejects an authorization started before the bot was revoked": 734, + "automatic Slack registration > rejects an installer lookup %s mismatch without linking": 1503, + "automatic Slack registration > rejects an OAuth %s mismatch without binding runtime credentials": 826, + "automatic Slack registration > rejects changing an established %s during reauthorization": 766, + "automatic Slack registration > rejects expiry, wrong actor/session/company, permission revocation, and origin drift before exchange": 187, + "automatic Slack registration > removes registration secrets and prevents late callbacks after %s removal": 322, + "automatic Slack registration > respects disabled direct messages when provisioning the welcome": 296, + "automatic Slack registration > resumes an interrupted avatar upload without repeating creation or requesting another token": 165, + "automatic Slack registration > retains the token and installer after lookup failure and resumes without exchanging a code": 493, + "automatic Slack registration > returns expired authorization to the saved wizard without exchanging its code": 185, + "automatic Slack registration > reuses the saved installer and sends no further DM on reauthorization or restart": 785, + "automatic Slack registration > saves advanced app details with the initial draft and rejects them for other providers": 85, + "automatic Slack registration > shows interrupted creation as uncertain after restart and supports manual recovery on the same draft": 93, + "automatic Slack registration > Slack test messages > does not downgrade confirmed delivery when activity logging fails": 665, + "automatic Slack registration > Slack test messages > does not restore revoked access or take another user's identity": 531, + "automatic Slack registration > Slack test messages > loads another workspace page instead of truncating account discovery": 806, + "automatic Slack registration > Slack test messages > redacts provider failures and never retries an ambiguous send": 739, + "automatic Slack registration > Slack test messages > rejects wrong-workspace users, disabled DMs, and membership revocation": 639, + "automatic Slack registration > Slack test messages > requires a private Slack challenge for an unknown account before linking and sending the test": 813, + "automatic Slack registration > Slack test messages > sends to the current linked user and reuses a durable result on duplicate requests": 783, + "automatic Slack registration > Slack test messages > settles a failed Slack account-link intent without committing identity or sending a test message": 722, + "automatic Slack registration > Slack test messages > signals milestone eligibility around the real Slack account link and stays quiet on reconfirmation": 807, + "automatic Slack registration > uploads a real 512-pixel PNG from the production renderer": 2609, + "automatic Slack registration > uploads preset bytes after credentials are durable, even with private avatar %s": 309, + "automatic Slack registration > uses an authenticated message event to complete automatic setup without a URL challenge and notifies once": 491, + "automatic Slack registration > vaults the bot token before %s and resumes without code exchange": 1183, + "automatic Slack registration > wakes verification from a signed callback with no maintenance polling": 686, + "automatically enables native modals for an existing Discord endpoint after %s runtime qualification": 915, + "automatically recovers a pre-ingress GitHub failure only through a genuine callback and normal durable workers": 620, + "binds Slack DM slash controls to the latest task ($control, $status, $state)": 4312, + "binds Slack tools to the admitted linked request, recovers its provenance and revokes retained access": 4258, + "blocks a committed native review response and selected files at transport after %s": 1981, + "Board send terminal attachment rejection > commits one content-free scoped receipt for concurrent rejection and allows only a separately keyed corrected send": 843, + "Board send terminal attachment rejection > does not classify missing attachments as a safe terminal rejection": 877, + "Board send terminal attachment rejection > keeps the exact rejected key terminal after normal owner-comment deletion and service reconstruction": 554, + "Board send terminal attachment rejection > returns the exact HTTP rejection with only the bound subset and replays that receipt unchanged": 742, + "bounds a held Slack receipt before delivering an already-ready same-endpoint final": 2418, + "bounds company fixture prefix collision retries without creating a partial fixture": 70, + "bounds failed retry notice scope discovery with retained candidates (%s)": 2564, + "bounds inbound notice scope discovery with denied history (%s)": 2051, + "bounds interaction continuation recovery reads with completed history": 2304, + "bounds terminal confirmation recovery reads with completed history": 2314, + "cancels a queued Slack slash start when channel reach is revoked before transport": 213, + "cancels and redacts GitHub ingress when rotation wins before replay authentication": 636, + "cancels staged GitHub ingress when a minimal recovery tombstone arrives before processing": 412, + "cancels staged GitHub ingress when same-secret pause and resume wins at the replay barrier": 401, + "cannot publish a runtime whose initialization is overtaken by pause": 241, + "canonicalizes prefixed Chat SDK channel ids onto provider inventory resources": 264, + "captures initial Slack communication guidance once per task, ignoring forged message configuration": 531, + "captures signed Slack forwarding protocol with registered owners (%s)": 1138, + "checks both linked sender and agent assignment grants for protected organizational defaults": 562, + "checks protected organizational defaults against the assignee locked at creation": 430, + "classifies publication $label": 3848, + "cleans only the GitHub final run's receipt and never re-adds it on replay": 656, + "clears an older multi-line Slack receipt diagnostic on terminal removal with attachment warning %s": 718, + "coalesces closed native progress on %s fixture %s (%s) without projecting event content": 4087, + "coalesces concurrent automatic pre-ingress GitHub scans into one provider redelivery": 281, + "coalesces one Microsoft Teams run into one provider reply": 516, + "coalesces one Telegram run into one provider message": 904, + "coalesces Telegram status and final output into one run-scoped provider message": 570, + "composes a parsed Discord question answer with one same-thread continuation publication": 1294, + "configures a customer-owned GitHub App and only auto-enables the first addressed setup repository": 651, + "configures a customer-owned Microsoft Teams bot with the entered credentials": 101, + "configures a Discord bot only after identity, intent, server, and channel permissions verify": 907, + "configures Telegram and preserves queued updates with webhook origin %s": 881, + "consumes Telegram forum-topic controls without remapping or waking the topic task": 420, + "continues a legacy Teams binding across a regional route change without forking its task": 499, + "continues an accepted GitHub task Retry from recovered saved work when its chat replay is refused after the click: %s": 59477, + "continues an inherited GitHub task from its recorded result instead of replaying the committed provider failure": 602, + "corrects Telegram DM conversation links without rewriting retained provider receipts": 355, + "creates a channel-purpose connection and rejects attempts to change its assigned agent": 199, + "deduplicates inbound events, keeps one task per thread, and enables newly discovered Slack channels": 661, + "deduplicates Slack file-only revisions by consumed metadata without retaining private locators": 289, + "defers a rate-limited Telegram receipt reaction for the full provider interval without blocking the inbound turn": 291, + "defers continuation dispatch until the outer response transaction commits": 1430, + "defers scheduled accepted-response recovery behind %s status effects": 960, + "defers scheduled accepted-response recovery until the persisted retry is due": 548, + "defers Slack file receipt recovery while the original post owns the same attempt": 584, + "delivers a recovered %s answer without editing another run's failure notice": 1184, + "delivers and replaces a Slack %s card through the publication service": 4848, + "delivers oversized Discord Markdown losslessly as one retryable attachment": 1241, + "delivers queued provider notices from commit wakes without the deferred fast path": 271, + "denies a pre-provider reviewed retry with %s": 6262, + "denies a staged failed chat retry after its original lifecycle epoch changes": 258, + "denies a stale automatic GitHub callback after pause and reconnect even with the still-current HMAC secret": 577, + "denies guest Slack stops, fences delayed events from newer runs, and cancels queued wakes": 1115, + "Discord automatic command registration > does not rediscover a receiver stopped by a company removal refresh": 287, + "Discord automatic command registration > drives receiver discovery through real configure, rotation, pause, and resume producers": 897, + "Discord automatic command registration > fences receiver construction across renewal: %s": 5137, + "Discord automatic command registration > keeps mention setup usable on registration failure and upgrades automatically when due": 415, + "Discord automatic command registration > learns the first configured command and cancels its deadline when the endpoint is removed": 490, + "Discord automatic command registration > preserves a healthy Discord Gateway when a due command refresh returns 503": 516, + "Discord automatic command registration > rechecks durable ownership after an earlier renewal finishes before listener start": 384, + "Discord automatic command registration > reconstructs an uncertain registration by GET without repeating the provider write": 391, + "Discord automatic command registration > restarts a receiver after token loss only after the old listener has stopped": 2357, + "Discord automatic command registration > retains the Gateway after an external command namespace conflict without overwriting it": 364, + "Discord automatic command registration > takes over a persisted foreign receiver lease at its deadline through the worker": 1365, + "Discord automatic command registration > updates scheduled registration after real %s": 1041, + "Discord native commands with durable service authority > acknowledges privately before a blocked DB wait but denies %s before commit": 1354, + "Discord native commands with durable service authority > answers a cold unavailable Discord command privately without leaving the interaction thinking": 632, + "Discord native commands with durable service authority > denies a previously accepted command after %s without another action or public receipt": 4532, + "Discord native commands with durable service authority > fresh-after-close publication bindings > allows a complete freshly admitted coalesced batch": 1349, + "Discord native commands with durable service authority > fresh-after-close publication bindings > allows an admitted source sent after close command but before close confirmation to present": 1086, + "Discord native commands with durable service authority > fresh-after-close publication bindings > does not cross a historical close after current %s authority changes": 12159, + "Discord native commands with durable service authority > fresh-after-close publication bindings > does not drop an older coalesced source while selecting the fresh batch": 988, + "Discord native commands with durable service authority > fresh-after-close publication bindings > does not grant presentation across a published control with %s proof": 4360, + "Discord native commands with durable service authority > fresh-after-close publication bindings > does not let an automatic child copy %s presentation authority": 1820, + "Discord native commands with durable service authority > fresh-after-close publication bindings > does not let an unseen stale native Discord %s act on reopened work": 1691, + "Discord native commands with durable service authority > fresh-after-close publication bindings > keeps a newly closed source internal after a still newer source reopens the thread": 972, + "Discord native commands with durable service authority > fresh-after-close publication bindings > keeps a source admitted before close confirmation internal after a fresh source reopens": 1323, + "Discord native commands with durable service authority > fresh-after-close publication bindings > orders same-millisecond Discord sources only within the same worker and process": 1014, + "Discord native commands with durable service authority > fresh-after-close publication bindings > publishes working and the exact fresh final after pinned close without resurrecting the old source": 1716, + "Discord native commands with durable service authority > fresh-after-close publication bindings > refuses %s provider chronology at intake when first ingested after close": 1957, + "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes a post-close milestone when %s authority is restored": 20614, + "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes a post-close milestone when interrupted inbound acceptance settles its %s receipt": 4457, + "Discord native commands with durable service authority > fresh-after-close publication bindings > wakes saved post-close native progress when %s authority returns": 10286, + "Discord native commands with durable service authority > qualifies pinned Discord close-owned progress retirement (%s)": 3200, + "Discord native commands with durable service authority > records DM new once and never applies its old replay to a replacement conversation": 1195, + "Discord native commands with durable service authority > returns private status, keeps guild new as guidance, and closes only after a real public control receipt": 953, + "Discord native commands with durable service authority > rolls back staged public control when the durable command receipt fails": 654, + "Discord native commands with durable service authority > serializes simultaneous exact close deliveries and denies a changed command or registered ID": 470, + "Discord native commands with durable service authority > upgrades a retained prior-copy registration after service restart before admitting close": 836, + "discovers a Slack connect identity without starting work or granting access": 445, + "dispatches and publishes a queued Slack Board send with a one-connection database pool": 504, + "dispatches saved input through the task Retry HTTP endpoint and survives a repeated click": 899, + "does not accept a contradictory HTTP%s Slack duplicate receipt": 670, + "does not acknowledge lifecycle callbacks whose durable write fails": 207, + "does not adopt historical pre-ingress GitHub failures when initializing a recovery epoch": 360, + "does not adopt input or deliver a pending identity-contended Retry after %s": 4614, + "does not bypass %s task guards from the Slack Board composer or its outbox": 1718, + "does not bypass %s through an exact chat retry": 1748, + "does not cancel an ambiguous Slack task start after credential-lease ownership is lost": 29, + "does not commit a Telegram close control when its provider reply is definitively rejected": 461, + "does not commit endpoint reach changes after credential-lease ownership is lost": 25, + "does not commit stale Slack task-start recovery after credential-lease ownership is lost": 67, + "does not complete GitHub webhook repair or overwrite a new credential lease owner after remote success": 336, + "does not create SDK eyes reactions for accepted GitHub requests": 418, + "does not deadlock reaction replay against publication link settlement": 645, + "does not dispatch an accepted inbound wake after destination access is revoked": 340, + "does not duplicate an inbound file when delivery recovery resumes after the task mutation": 660, + "does not enable Discord modals after a connection-lock wait with %s": 419, + "does not hide another endpoint behind a page of busy-bot conversation heads": 2328, + "does not hold another endpoint's final publication behind Slack session status transport": 885, + "does not lend a consumed failure lane to a recovered answer with %s": 1863, + "does not let a late %s milestone replace authoritative ownership attention or final status": 2607, + "does not let an obsolete GitHub webhook secret reopen a repository during rotation": 508, + "does not let an obsolete Slack signing secret verify a reconnected configuration": 364, + "does not let an obsolete Slack task-start failure quarantine successor credentials or reach": 272, + "does not let GitHub lifecycle recovery undo a webhook-secret rotation": 543, + "does not let ineligible pre-ingress GitHub candidates exhaust every future recovery scan": 370, + "does not let one blocked Slack conversation starve another outbox head": 442, + "does not let pause overtake a credential-fenced Discord root thread creation": 211, + "does not let pause return while a Slack publication is still in provider transport": 568, + "does not let rejected callbacks or malformed proxy hints establish healthy Slack callbacks": 283, + "does not let Slack reach disables return ahead of in-flight provider sends": 816, + "does not let stale GitHub setup-secret rotation overwrite successor credentials": 80, + "does not let stale Telegram removal clear successor credentials after lease reclamation": 145, + "does not let two live agent connections claim the same native bot or spoof its verified identity": 107, + "does not lock durably ineligible %s history on repeated issue milestones": 16881, + "does not normalize a stale Slack retry-anyway action after credential-lease ownership is lost": 144, + "does not recover a committed answer after %s": 5862, + "does not reload dormant accepted-response history for an unrelated %s wake": 2888, + "does not repeat a failed chat run with %s": 798, + "does not replace a failure while another exact-run authored publication is %s": 1018, + "does not replay stale native progress after a paused endpoint restarts behind an exact final": 870, + "does not request automatic pre-ingress GitHub recovery while the latest provider attempt is %s": 1359, + "does not resurrect publication ownership after waiting beyond expiry on a real lease row lock": 402, + "does not retain signed GitHub events outside the configured App event set": 233, + "does not retry a chat comment edited on the Board during the failed execution": 344, + "does not retry a provider-accepted publication after its exact attempt lease is lost": 316, + "does not retry automatic pre-ingress GitHub redelivery without a distinct failed provider attempt": 367, + "does not retry unrelated company fixture database errors": 12, + "does not rotate a GitHub webhook secret when stored credentials cannot be resolved": 219, + "does not treat an accepted-response endpoint scheduling hint as current authority": 381, + "does not wake twice when an operator replays an already admitted failed delivery": 422, + "drains accepted GitHub webhooks from commit wakes and durable retry deadlines": 1652, + "drains bounded Slack chat-origin milestones without admitting an internal issue run (%s)": 2259, + "drains failed chat retries from durable work and becomes idle: %s": 9549, + "durably admits a Telegram edit that races deferred original-message processing": 1084, + "durably audits a rejected Discord Gateway action before surfacing transport rejection": 136, + "durably deduplicates Telegram guidance webhook retries and filters disabled DMs": 252, + "durably recovers rate-limited Telegram menu registration and removal cleanup": 431, + "durably replays a reaction that arrives before its outbound link without waking the task": 1033, + "durably retries a signed Slack session stop and cancels its exact linked run once": 813, + "durably stages GitHub webhooks while credential mutation owns the processing lease": 478, + "durably stages GitHub webhooks within budget before cold runtime initialization": 438, + "edits a Slack working reply into one terminal failure reply": 389, + "edits Slack public progress and posts the final as a fresh reply, cancelling an older queued edit": 887, + "enforces Telegram group reach and privacy-mode addressing before retaining message content": 570, + "enforces the native progress cadence boundary and one publication per phase": 617, + "exhausts the existing delivery Retry budget after identity authorization without background renewal": 8200, + "expires Teams consent from the committed Board transfer without periodic maintenance": 1816, + "expires the saved identity wait without renewal when the lock is released before expiry processing: %s": 1688, + "fails closed for unbound rich callbacks and unknown slash commands": 207, + "fails closed on automatic pre-ingress GitHub recovery with %s": 734, + "fails closed when GitHub App permissions drift before installation recovery": 837, + "fails closed when the GitHub installation has not approved the App permissions": 747, + "fences a reclaimed Slack task admission from the obsolete worker's settlement": 362, + "fences message and reaction callbacks that resume after Discord Gateway takeover": 864, + "filters a claimed message lifecycle delivery after pause and reconnect supersede its runtime": 614, + "filters a durable orphan Telegram edit after the bounded reorder window": 404, + "filters a durably admitted GitHub callback when rotation and reconnect supersede its runtime before deferred processing": 743, + "filters a late duplicate instead of bypassing the bounded reaction-link lifetime": 687, + "filters a staged reaction when destination reach is revoked before replay": 788, + "filters a standalone unaddressed GitHub comment after bounded orphan retention": 568, + "filters an unlinked guest when the endpoint sponsor is suspended and exposes the reason and duplicate count": 204, + "filters unlinked people when configured, then honors a confirmed active-member identity link": 690, + "first-seen messages behind completed chat controls > accepts delayed %s backlog without an explicit control": 1037, + "first-seen messages behind completed chat controls > continues to accept authenticated Slack slash close/new on a genuinely new generation": 1485, + "first-seen messages behind completed chat controls > does not infer a stop from bare completed state with %s": 2160, + "first-seen messages behind completed chat controls > does not let an unseen old Telegram /%s close a newer generation": 1801, + "first-seen messages behind completed chat controls > does not lower a newer provider boundary when an older close is confirmed later": 1131, + "first-seen messages behind completed chat controls > does not promote metadata-only %s timestamps after a completed control": 1394, + "first-seen messages behind completed chat controls > does not recreate or filter a previously committed inbound link when its delivery retries after close": 821, + "first-seen messages behind completed chat controls > honors operator-confirmed close without inventing an outbound message receipt": 777, + "first-seen messages behind completed chat controls > keeps controls scoped to their endpoint, immutable thread, and company": 2023, + "first-seen messages behind completed chat controls > preserves a Teams close across regional routes (close after route change: %s)": 1409, + "first-seen messages behind completed chat controls > rechecks a close committed while old input waits before the endpoint transaction": 747, + "first-seen messages behind completed chat controls > refuses unseen %s input before %s (same second: %s) without creating work": 5905, + "first-seen messages behind completed chat controls > retains a committed control boundary through pause, redacted duplicate, and resume": 2215, + "first-seen messages behind completed chat controls > retains a completed trailing-newline control as a first-seen source boundary": 777, + "GitHub agent review workflow > acknowledges a GitHub request after a durable scheduler retry succeeds": 563, + "GitHub agent review workflow > adds the progress tool to an existing enabled bot without restoring disabled tools": 717, + "GitHub agent review workflow > admits a GitHub request explicitly addressed to both connected bots": 1632, + "GitHub agent review workflow > admits a newly mentioned %s edit while preserving its lifecycle record": 2519, + "GitHub agent review workflow > admits opt-in signed issue events without PR checks, deduplicates them and rechecks revoked policy": 1436, + "GitHub agent review workflow > admits signed %s mentions with automation off, deduplicates and retains manual task authority": 32572, + "GitHub agent review workflow > admits signed PR events into an ordinary assigned task and deduplicates delivery": 4668, + "GitHub agent review workflow > adopts an existing GitHub PR placeholder and retires earlier duplicate placeholders": 1431, + "GitHub agent review workflow > authorizes description edits as the editor, never inheriting the original author's access": 2115, + "GitHub agent review workflow > automatically retries a transient GitHub review publication (HTTP %s)": 8356, + "GitHub agent review workflow > backs off remote head polls while an unresolved GitHub review check cannot change": 1261, + "GitHub agent review workflow > bounds GitHub response authorization reads with large saved chat content": 1285, + "GitHub agent review workflow > checks live repository permission and reports a revoked installation selection": 482, + "GitHub agent review workflow > classifies recovered GitHub receipts without republishing or overwriting historical success": 1569, + "GitHub agent review workflow > closes a GitHub placeholder after a formal review (legacy receipt: %s)": 2088, + "GitHub agent review workflow > closes an inline-only GitHub review when an earlier working comment was deleted: %s": 2641, + "GitHub agent review workflow > coordinates GitHub working feedback with a %s fast response": 3090, + "GitHub agent review workflow > defers GitHub review check enqueue until outer commit and discards rollback": 1855, + "GitHub agent review workflow > does not admit an unlinked issue author through the linked webhook sender": 406, + "GitHub agent review workflow > does not edit a %s replacement of the bound GitHub comment": 1500, + "GitHub agent review workflow > does not handle a blocked new GitHub request with an older run's final reply": 1711, + "GitHub agent review workflow > does not invent a GitHub completion response when the agent sends no tool reply": 1196, + "GitHub agent review workflow > does not let a progress edit overwrite a final GitHub answer": 1182, + "GitHub agent review workflow > does not let an unsettled GitHub fallback block a later board message": 966, + "GitHub agent review workflow > does not post a GitHub working comment when the scheduler declines the request": 349, + "GitHub agent review workflow > does not resubmit a permanent GitHub publication rejection (HTTP %s)": 2232, + "GitHub agent review workflow > does not route GitHub mentions using %s identities": 2984, + "GitHub agent review workflow > drains more than one page of stale GitHub review projections without touching manual history": 1734, + "GitHub agent review workflow > finalizes every working comment in a coalesced GitHub run": 1320, + "GitHub agent review workflow > finds a GitHub review check after a full page of revoked work and ignores settled history": 5882, + "GitHub agent review workflow > finds owed terminal GitHub work beyond a full page of unrelated request history": 2087, + "GitHub agent review workflow > finds terminal GitHub responses by native issue binding before legacy run context": 1590, + "GitHub agent review workflow > finishes the same GitHub working comment after an authorized same-App reconnect (legacy: %s)": 1503, + "GitHub agent review workflow > GitHub failure fallback respects exact tool delivery state: %s": 9519, + "GitHub agent review workflow > holds stale GitHub review projection receipt repair until the outer commit and discards rollback": 2435, + "GitHub agent review workflow > ignores a review request addressed to an external GitHub bot": 934, + "GitHub agent review workflow > imports initial GitHub access for a %s App without a second picker and leaves later additions disabled": 759, + "GitHub agent review workflow > keeps a newer GitHub request open when its acknowledgement follows older progress": 1949, + "GitHub agent review workflow > keeps a report-only GitHub check neutral after a %s run without an assessment": 1792, + "GitHub agent review workflow > keeps an acknowledged paused GitHub request quiet until its new run finishes": 2106, + "GitHub agent review workflow > keeps GitHub publication I/O outside transactions and fences an expired owner's receipt": 299, + "GitHub agent review workflow > keeps GitHub response maintenance truthful for a new request: $scenario ($reason)": 37299, + "GitHub agent review workflow > keeps GitHub response ownership checks independent of large run payloads": 1244, + "GitHub agent review workflow > keeps GitHub review check history quiet and wakes from the real enqueue producer": 2504, + "GitHub agent review workflow > keeps GitHub review tools callable through a later native task gateway (board follow-up: $boardFollowUp, legacy origin: $legacyOrigin)": 5744, + "GitHub agent review workflow > keeps native presentation idle until its committed GitHub outcome: %s": 5610, + "GitHub agent review workflow > keeps partial review delivery authoritative when the head changes %s": 2115, + "GitHub agent review workflow > keeps per-request fallback outside the main GitHub PR review wait": 986, + "GitHub agent review workflow > keeps terminal GitHub responses waiting while a natively bound newer run is active": 881, + "GitHub agent review workflow > keeps the published review in the main GitHub PR comment when a later request has only a status: %s": 2471, + "GitHub agent review workflow > legacy name-only registration preserves an explicit empty repository selection": 40, + "GitHub agent review workflow > links a gated GitHub check to the current vanity review page before a task exists": 420, + "GitHub agent review workflow > lists each GitHub bot tool once when an inline thread shares the task": 617, + "GitHub agent review workflow > loads an old GitHub review directly without crossing endpoint or company boundaries": 1100, + "GitHub agent review workflow > loads only the current configured instruction skills, never provider links or another company": 2046, + "GitHub agent review workflow > manual App credential retry imports repositories after an interrupted vault write": 788, + "GitHub agent review workflow > manual App setup preserves explicitly disabled repositories and tools": 530, + "GitHub agent review workflow > manual App setup resumes tool initialization after an interrupted repository import": 476, + "GitHub agent review workflow > offers Retry for a saved automatic PR event after a successful older review": 2034, + "GitHub agent review workflow > parks a GitHub acknowledgement until native presentation commits": 1056, + "GitHub agent review workflow > parks terminal GitHub responses behind the publication owner (uncertain: %s)": 6260, + "GitHub agent review workflow > preserves %s policy context while omitting body content": 2076, + "GitHub agent review workflow > preserves a final GitHub assessment while settling an incomplete request receipt": 1678, + "GitHub agent review workflow > preserves an earlier final GitHub answer when a later continuation fails": 866, + "GitHub agent review workflow > preserves GitHub connection intent after publication HTTP %s": 2399, + "GitHub agent review workflow > preserves malformed GitHub authority input %j": 4427, + "GitHub agent review workflow > preserves newer GitHub PR progress when an older run fails": 1728, + "GitHub agent review workflow > preserves the %s GitHub receipt lifecycle during acknowledgement recovery": 1409, + "GitHub agent review workflow > preserves the published GitHub assessment during passive-response maintenance: %s": 2348, + "GitHub agent review workflow > publishes a local change at once and still recovers a missed head after backing off": 1243, + "GitHub agent review workflow > publishes a run change for a GitHub review check at once from its issue milestone": 1167, + "GitHub agent review workflow > publishes one score heading when a newly configured bot submits a formatted summary": 1134, + "GitHub agent review workflow > reactivates terminal GitHub response recovery from committed native identity": 2016, + "GitHub agent review workflow > reads no GitHub review check status for company-wide hints and still reads it for the check's task": 851, + "GitHub agent review workflow > reads pending GitHub receipts without dispatch and refuses a missing publication": 2593, + "GitHub agent review workflow > rechecks a GitHub fallback after waiting for the credential lane": 880, + "GitHub agent review workflow > rechecks another GitHub bot's mention when recovering a durable subscribed delivery": 1133, + "GitHub agent review workflow > rechecks assessment ownership after stale GitHub review projection selection waits for a row lock (shutdown: %s)": 3174, + "GitHub agent review workflow > reconciles a GitHub working comment when execution stops without a publication": 991, + "GitHub agent review workflow > reconciles stopped GitHub work from native identity without legacy wake fields": 776, + "GitHub agent review workflow > reconsiders the same GitHub reply after stopped native workspace cleanup (%s)": 27754, + "GitHub agent review workflow > records automatic policy skips without retaining provider content, and refuses mentions in disabled repositories": 541, + "GitHub agent review workflow > recovers %s after a timeout before publication staging": 2302, + "GitHub agent review workflow > recovers a delayed GitHub acknowledgement after a successful run without leaving it working": 829, + "GitHub agent review workflow > recovers a durable GitHub publication receipt ($label)": 14526, + "GitHub agent review workflow > recovers a missed GitHub head webhook only while a review check remains unresolved": 606, + "GitHub agent review workflow > recovers an acknowledgement whose local receipt was lost without posting another comment": 1269, + "GitHub agent review workflow > recovers an approved queued GitHub review without another approval (revoked: %s)": 3892, + "GitHub agent review workflow > recovers long %s requests without accepting changes hidden by the audit preview": 4406, + "GitHub agent review workflow > recovers lost inline and check responses without duplicate GitHub publications": 7936, + "GitHub agent review workflow > recovers stale GitHub review projection through %s": 3271, + "GitHub agent review workflow > rejects arbitrary comment IDs and edits after the initiating person is revoked": 567, + "GitHub agent review workflow > rejects changed requests and revoked access before repeating an unstaged review": 7429, + "GitHub agent review workflow > releases a GitHub acknowledgement after fast response %s without maintenance polling": 9033, + "GitHub agent review workflow > replies in review finding threads behind an active run > answers each finding thread in its own run instead of one unattestable batch": 3506, + "GitHub agent review workflow > replies in review finding threads behind an active run > still batches several replies in one finding thread into one attested run": 3755, + "GitHub agent review workflow > replies in review finding threads behind an active run > still denies each separated finding-thread run after the linked identity is revoked": 1638, + "GitHub agent review workflow > requires every essential GitHub tool and rejects Contents write during verification": 508, + "GitHub agent review workflow > resolves only the secrets a %s signed GitHub webhook delivery uses": 599, + "GitHub agent review workflow > restores terminal GitHub responses and leaves finalized history quiet": 1469, + "GitHub agent review workflow > resumes a delayed GitHub publication after coordinator restart without another inbound event": 3373, + "GitHub agent review workflow > resumes a paused GitHub request and reconciles stopped execution (prior run: %s, progress: %s)": 4580, + "GitHub agent review workflow > retains a provider-verified GitHub mention when its plain text uses an alias": 1168, + "GitHub agent review workflow > retains attachment provenance in a signed GitHub mention %s": 2294, + "GitHub agent review workflow > retains failed stale GitHub review projection repair across drain without passive SQL": 1638, + "GitHub agent review workflow > retains GitHub review check work across %s": 5816, + "GitHub agent review workflow > retains subscribed GitHub follow-ups with incidental human or unknown mentions: %s": 6044, + "GitHub agent review workflow > retains terminal GitHub response work across %s": 5540, + "GitHub agent review workflow > retains the saved GitHub review check retry through restart without an early provider call": 607, + "GitHub agent review workflow > retires a legacy coalesced GitHub placeholder before replacing its receipt": 2076, + "GitHub agent review workflow > retires a legacy GitHub placeholder when its acknowledgement is superseded": 2043, + "GitHub agent review workflow > retries a failed GitHub acknowledgement at its saved deadline": 1064, + "GitHub agent review workflow > retries an ambiguous GitHub edit without creating another comment": 7896, + "GitHub agent review workflow > returns snapshot finding categories and publishes only accepted categories": 2110, + "GitHub agent review workflow > reuses one main GitHub PR comment across review requests: %s": 5300, + "GitHub agent review workflow > scopes guest tasks and rechecks their sponsor before every bot tool": 556, + "GitHub agent review workflow > settles a deleted Board-origin request without starving unrelated terminal GitHub replies": 2719, + "GitHub agent review workflow > settles a deleted coalesced working comment without blocking the current GitHub response": 1076, + "GitHub agent review workflow > settles a GitHub working comment whose run finished just before another request's run started": 2007, + "GitHub agent review workflow > settles an older request's status without replacing a newer main GitHub PR placeholder": 1243, + "GitHub agent review workflow > stack exchanges a callback code only once when vault storage is interrupted": 33, + "GitHub agent review workflow > stack rejects forged raw gateway deliveries without changing verification or waking an agent": 865, + "GitHub agent review workflow > stages one assessment when the timed-out metadata read completes alongside its retry": 1768, + "GitHub agent review workflow > still fences a GitHub publication when reconnect races the provider read": 990, + "GitHub agent review workflow > stops a queued GitHub publication after %s": 3349, + "GitHub agent review workflow > stops GitHub acknowledgement sends at %s between provider requests": 5753, + "GitHub agent review workflow > stops GitHub review check HTTP after shutdown admission and recovers its durable action": 7005, + "GitHub agent review workflow > supersedes a late review projection after its check already rejected the old head": 1360, + "GitHub agent review workflow > suppresses subscribed GitHub comments for another connected bot in %s": 2892, + "GitHub agent review workflow > updates one GitHub acknowledgement through progress and final answer in %s": 3652, + "GitHub agent review workflow > uses task-bound bot tools and deterministic checks, then denies revoked people": 2500, + "GitHub agent review workflow > uses the manifest state parameter and rejects expired, reused, and wrong-origin registrations": 29, + "GitHub agent review workflow > verifies %i enabled repositories in bounded token batches": 1010, + "GitHub agent review workflow > verifies a repaired GitHub webhook in %s only from a %s installation delivery with %s repository": 4124, + "GitHub agent review workflow > waits for and wakes from the actual GitHub review check publication lease": 1696, + "GitHub agent review workflow > waits for the existing GitHub publication lease before a terminal response": 1722, + "GitHub agent review workflow > wakes a GitHub acknowledgement only after the outer fast-response transaction commits": 1718, + "GitHub agent review workflow > wakes a GitHub review check from committed run identity before its future head deadline": 1639, + "GitHub agent review workflow > wakes a paused GitHub response from %s": 9412, + "GitHub agent review workflow > wakes GitHub acknowledgements from a real publication lease %s": 5660, + "GitHub agent review workflow > wakes GitHub milestone identity restoration only after outer commit and stays quiet on reconfirmation": 439, + "GitHub agent review workflow > wakes milestone authority only when GitHub guest settings change, after outer commit": 477, + "GitHub agent review workflow > wakes stale GitHub review projection repair from real admission and leaves settled history quiet": 1438, + "GitHub agent review workflow > wakes stale GitHub review projection repair when cancellation commits after the review is admitted": 1457, + "GitHub agent review workflow > wakes terminal GitHub responses after the outer issue transaction commits": 1652, + "GitHub agent review workflow > wizard completes a verified connection automatically without claiming runtime execution": 587, + "GitHub agent review workflow > wizard configures Cloud webhook delivery without a public instance URL": 344, + "GitHub agent review workflow > wizard keeps localhost draft choices while waiting for Cloud enrollment": 52, + "GitHub agent review workflow > wizard persists a %s owner and resumes the same bound registration after a lost Cloud response and enrolled origin change": 148, + "GitHub agent review workflow > wizard preserves an explicit empty repository selection at revision zero": 336, + "GitHub agent review workflow > wizard preserves explicit review behavior and repository restrictions on existing drafts": 644, + "GitHub agent review workflow > wizard recovers a renamed enrolled origin only after checking bound state and Cloud authority": 31, + "GitHub agent review workflow > wizard repairs Cloud after manual credential recovery and secret rotation without changing App identity": 550, + "GitHub agent review workflow > wizard restarts only an expired unconsumed registration: %s": 302, + "GitHub agent review workflow > wizard resumes a %s installation callback after its signed ping": 1267, + "GitHub agent review workflow > wizard retains partial manifest recovery until explicit existing-App recovery succeeds": 816, + "GitHub agent review workflow > wizard serializes identity starts and callbacks without overwriting PKCE or handoff state": 309, + "GitHub repository pagination and bulk access > pages and searches 1000 repositories while toggle all changes unloaded rows atomically": 525, + "GitHub terminal receipt composes pinned HTTP and durable source authority (%s)": 11177, + "GitHub webhook recovery scheduling > joins held GitHub history at shutdown without starting another HTTP request": 395, + "GitHub webhook recovery scheduling > leaves %s recovery quiet": 563, + "GitHub webhook recovery scheduling > preempts a future GitHub recovery window when only credential references change": 1270, + "GitHub webhook recovery scheduling > preserves a GitHub redelivery stopped before transport (%s, prior receipt: %s, superseded: %s)": 2457, + "GitHub webhook recovery scheduling > reactivates recovery from real resume and cancels its deadline on pause": 3400, + "GitHub webhook recovery scheduling > reconstructs due GitHub recovery through %s": 1155, + "GitHub webhook recovery scheduling > reconstructs more than one page of GitHub recovery deadlines and dispatches fair batches of five": 1988, + "GitHub webhook recovery scheduling > recovers a failed GitHub deadline reconstruction after drain without passive SQL": 329, + "GitHub webhook recovery scheduling > rejects a %s assigned agent before GitHub recovery can become orphaned": 4131, + "GitHub webhook recovery scheduling > retains GitHub recovery configuration intent through nested commit and rollback": 2314, + "GitHub webhook recovery scheduling > waits for the saved recovery deadline and requests a genuine GitHub redelivery": 360, + "globally fences GitHub App identity across owner transfers without leaking another company": 398, + "globally fences one Microsoft Bot application across tenants": 123, + "hands an explicitly bound same-run image to Discord's final native file response": 1008, + "holds a delayed first Teams setup reply until its older root mention enables the channel": 468, + "holds a delayed Slack thread reply until its older root mention arrives": 414, + "holds a GitHub follow-up that arrives after the reorder window until its older root mention arrives": 723, + "holds ambiguous provider sends for an audited duplicate-risk resolution without reordering": 1100, + "holds an ordinary $provider Retry behind its exact remote recovery: $gate": 22963, + "honors a prepared Retry identity wait after %s": 9624, + "honors Slack slash-start rate-limit backoff without hammering transport": 345, + "honors Telegram flood-control timing and publishes one final message after retry": 866, + "ignores a signed GitHub installation before App credentials exist": 117, + "ignores repeated unscoped routine %s hints without rebuilding dormant accepted-response history": 788, + "ignores signed Slack callbacks from a different workspace before SDK dispatch": 211, + "immediately initializes a new GitHub recovery generation despite the previous epoch's 24-hour backoff": 545, + "imports every Discord upload when text files include MIME parameters": 334, + "ingests a pinned Telegram video-note without optional MIME metadata (%s)": 1343, "ingests bounded Telegram photo, audio, video, and document attachments without stranding text": 305, - "ingests only admitted public GitHub attachments after restart (HTTP $status, $count files, expired batch $expireBatch)": 3735, - "ingests Teams files only from personal chats and keeps non-DM references link-only": 476, - "invalidates only an exact provider-verified GitHub source edit independently of editor admission: %s": 4217, - "isolates malformed publication preparation so later messages still deliver": 871, - "isolates pre-run FIFO reconciliation scopes and exhausts published history": 686, - "joins in-flight recovery before rethrowing an ordinary drain failure (%s)": 2944, - "keeps a %s retry's queue, working, and selected final on its own provider identity": 1778, - "keeps a board message queued separately when saved GitHub Retry resumes after cleanup": 975, - "keeps a chat-origin run presentation internal when its external question owns the reply": 1002, - "keeps a claimed $provider identity immutable when first setup resumes from attention": 96, - "keeps a first-channel Teams orphan payload-free during grace and filters it without a live retry": 209, - "keeps a refused GitHub task Retry continued when reconciliation read it before the refusal settled": 729, - "keeps a saved HTTP Retry alive through a healthy nine-second identity transaction": 11016, - "keeps a successful GitHub link-question continuation final internal": 1344, - "keeps a verified Slack $kind authoritative for $contentType read and reuse after reach or identity returns": 9182, - "keeps accepted-response work behind the outer %s boundary": 3907, - "keeps an aged live publication owned across standby sweeps but quarantines only exact-lease orphans": 851, - "keeps an internal Telegram run summary private and completes its progress message": 1048, - "keeps an omitted-file warning after an early Slack receipt failure and %s retry": 851, - "keeps bare Slack mentions subject to %s access restrictions": 496, - "keeps case-variant Teams Entra object ids on one external principal": 390, - "keeps current GitHub task Retry authority gated: %s": 11935, - "keeps disabled-channel Slack %s scoped to its exact source without admitting content": 2078, - "keeps external-continuation lifecycle comments internal and publishes only the selected final": 620, - "keeps GitHub issues, PR conversations, and inline review threads on distinct tasks": 1157, - "keeps intermediate %s agent comments internal and publishes only the selected final": 1405, - "keeps lifecycle and native progress projection independent with %s": 1495, - "keeps medium Telegram $label in one native publication": 1482, - "keeps missing attachment storage retryable but fails invalid metadata before provider transport": 904, - "keeps native progress behind question, final, and current reach authority on %s fixture %s (%s)": 3230, - "keeps one durable pre-run FIFO notice across coalescing and restart, then reuses only its successor lane": 1353, - "keeps one Paperclip account mapping for the same provider principal across endpoints": 521, - "keeps processing audit truth and rejects stale Slack runtime callbacks across resume": 536, - "keeps provider startup diagnostics private on %s fixture %s (%s)": 5084, - "keeps recovered GitHub final prose and attachment navigation internal (omission: %s)": 1464, - "keeps root-chat bookkeeping comments internal and publishes only the selected final": 505, - "keeps saved-input Retry behind current admission gates: %s": 4526, - "keeps separate Slack DM thread roots on separate tasks": 531, - "keeps Slack tools callable after a native task continuation without wake JSON": 763, - "keeps successive Telegram DM messages on one active Paperclip task": 812, - "keeps task-bound /close active after an ambiguous publication commit until explicit confirmation": 1214, - "keeps Teams group chat closed by default without consuming first-channel setup enablement": 340, - "keeps Telegram start and unknown commands as terse guidance without creating work": 269, - "keeps the admitted chat Retry queued until its source lease cleanup settles: %s": 29364, - "keeps the pre-run FIFO sweep running when a valid owner's action has comment ids that are not uuids": 901, - "leaves a contended accepted response retryable without reclassifying or partially publishing it (%s)": 1232, - "leaves accepted-response presentation to its worker during periodic %s replay": 1208, - "leaves Cloud-managed GitHub webhook recovery to the relay": 581, - "leaves fresh-commit accepted-response presentation to the worker when periodic replay skips it": 666, - "leaves GitHub reconnect unqualified after a %s webhook repair failure": 2321, - "leaves saved GitHub input pending when a persisted Retry wait loses board authority": 1145, - "links outbound Teams files instead of attempting an unsupported native upload": 1021, - "Lossless long Board publications > keeps an ambiguous %s text part blocked across restart and retries only that part and its tail": 5059, - "Lossless long Board publications > preserves %s code, Unicode and sanitization expansion through actual durable parts": 6688, - "Lossless long Board publications > preserves all 100000 characters for %s %s-comment publication": 39336, - "Lossless long Board publications > preserves an accepted native Slack response whose rendered mentions exceed the Markdown cap": 1024, - "Lossless long Board publications > refuses malformed persisted wrappers before provider I/O %#": 1678, - "Lossless long Board publications > retains a complete 100000-character %s response in the existing Markdown document transport": 1743, - "maps a timestamp-bearing Slack DM reaction to the completed generation that owns its linked message": 960, - "maps Telegram image, audio, and video output onto native media lanes": 1073, - "marks provider setup as needing attention when Telegram webhook registration fails": 136, - "materializes direct external-chat finals once and accepts the next turn without agent bookkeeping writes": 3749, - "migrates Telegram basic-group reach, topic tasks and $defaultsMode defaults (existing destination: $existingDestination)": 5914, - "mirrors Paperclip messages with user attribution and returns only the selected Slack reply": 1127, - "never promises a queued follow-up before durable admission succeeds": 448, - "never re-arms a failed local GitHub receipt when an automatic redelivery races the original callback": 650, - "never replaces or resurrects an already selected answer (deleted=%s)": 1038, - "never stores a GitHub webhook body before its signature is authenticated": 428, - "opens and corrects an actual Discord modal through current service authority exactly once (%s concurrent answers)": 2722, - "orders a Telegram authentication failure before concurrent reconnect": 916, - "orders a Telegram destination failure before concurrent membership recovery": 809, - "orders a Telegram new command before the next message from the same provider second": 1169, - "orders rapid Discord replies by provider time before waking one task": 744, - "orders rapid Teams follow-ups by provider time when callbacks arrive reversed": 691, - "orders reversed GitHub edit and delete callbacks behind their durable root (root processed before replay: %s)": 6213, - "orders Slack private-channel archive, unarchive, and rename lifecycle": 431, - "paginates mixed activity beyond 100 rows without losing timestamp ties": 110, - "parks pending confirmation history, passes malformed prefixes, and wakes on the outer interaction commit": 9413, - "parks provider-confirmed Slack admissions on paused endpoints without starving active work": 665, - "passes historical continuation prefixes and retains a response committed during dispatch": 4350, - "persists Slack manifest draft details and the registered command, then locks them once connected": 196, - "persists Slack membership, uninstall, and same-bot reinstall lifecycle before acknowledging": 807, - "persists the first identity wait deadline for an older pending action": 964, - "presents a fresh Teams personal generation after close and a regional route change": 888, - "preserves a published %s file prefix across restart and retries only an explicitly resolved ambiguous upload": 2533, - "preserves a recorded %s presentation instead of recovering an unsolicited answer": 1058, - "preserves a Teams personal %s attachment omission after losing its live download closure": 787, - "preserves an early Slack receipt failure after %s acceptance": 982, - "preserves an explicitly disabled Slack channel after invitation and mentions (%s)": 824, - "preserves an interrupted run's selected final when its publication is %s": 1325, - "preserves automatic final replies for legacy GitHub connections without saved review configuration": 875, - "preserves delivery quarantine when a slow Slack post finishes after stale recovery": 840, - "preserves exact Discord source authority through registered Gateway %s updates": 2169, - "preserves GitHub webhook verification through setup completion and reconnect": 1071, - "preserves one current GitHub Retry across %s": 28187, - "preserves ordinary legacy task Retry success without replaying its canonical request": 1959, - "preserves running Slack tool authority after Require at-mention is enabled": 469, - "preserves selected answer and failure lanes after deferred admission (%s)": 1901, - "preserves selected answer and failure lanes on $provider after $status ($order)": 16188, - "preserves Slack thread history across completion ($isDM, $threaded, $status, $state)": 2965, - "preserves stored Telegram credentials and lifecycle when reconnect uses an unsupported webhook port": 210, - "preserves the complete failed coalesced chat batch and rejects a dropped sibling": 599, - "preserves the GitHub resource, task, and conversation across repository rename and transfer": 939, - "preserves the public inventory error response for %s": 1199, - "preserves the raw webhook request and returns the provider adapter response": 323, - "preserves unavailable Teams $surface file references through $mode admission": 4337, - "projects prepared but unsettled task Retry using its actual stale-claim deadline": 1361, - "provider timestamp provenance after closed conversations > retains only raw Telegram date through the pinned parser or runtime slash path (%s)": 3271, - "provider timestamp provenance after closed conversations > retains only the actual Teams activity clock, not SDK display fallback (%s)": 4785, - "provides assigned Slack tools to routine tasks and can DM only their linked responsible user": 2652, - "publishes a closed-choice question, settles its Slack card, and delivers its exact continuation response": 1766, - "publishes a serialized Telegram run response after the preceding run completes the conversation": 1068, - "publishes a Telegram failure for an exact confirmation continuation that stops before commenting": 1104, - "publishes an agent's explicitly selected same-run Slack attachment after its response": 1038, - "publishes an explicitly selected board attachment through Telegram's native file lane": 849, - "publishes complex question sets as non-executable Paperclip fallbacks": 699, - "publishes equal-time Slack outbox rows once in stable order across concurrent drains": 548, - "publishes explicit Board GitHub attachment fallbacks without provider file bytes": 1922, - "publishes fast responses to the accepted %s thread without completing its work": 1640, - "publishes GitHub questions as link-only cards with no executable callback": 558, - "publishes long structured Telegram Markdown as one durable lossless document": 1277, - "publishes native progress with a typed issue binding present: %s": 1166, - "publishes one truthful notice when a selected PNG receives a definite provider rejection": 1054, - "publishes only a resolver-selected Telegram reply for $authorizationReason": 2598, - "publishes only explicitly selected board attachments and stays idempotent across retries": 1293, - "publishes only the safe projection once and locks reassignment of a bound task": 942, - "publishes the old final before /new and suppresses later output from the completed generation": 1112, - "quarantines a Telegram control when the reply lands but its state commit crashes": 685, - "quarantines an active GitHub endpoint when its dedicated App drifts to multiple installations": 851, - "quarantines an ambiguous automatic pre-ingress GitHub redelivery without blindly repeating the POST": 568, - "quarantines Telegram maintenance success when credential-lease ownership is reclaimed": 605, - "queues Telegram guidance on the durable publication FIFO when a task is active": 469, - "reactivates denied retry notices when authority is restored during %s": 7685, - "reactivates dormant accepted-response work when the live chat authority registers": 2507, - "reactivates failed retry notices from real admission after idle through %s": 3695, - "reactivates restored ordinary input after an earlier Retry notice wake is consumed": 551, - "reads the entire publication batch without side effects and rejects foreign bindings": 594, - "reauthorizes a failed chat retry against a %s provider correction before lifecycle projection": 3205, - "reauthorizes a failed chat retry and denies %s before scheduling": 3033, - "reauthorizes skipped native progress after %s wins before retry": 1927, - "rechecks %s authority before queued Slack Board messages and replies": 2579, - "rechecks a recovered response at provider dispatch after %s": 3483, - "rechecks a Slack file receipt after a competing worker changes its retry deadline": 1017, - "rechecks canonical content before processing an automatically recovered GitHub callback": 595, - "rechecks linked authority and channel reach before admitting a provider-confirmed Slack task (%s)": 1052, - "rechecks pre-provider retry evidence after staging and refuses a late execution event": 694, - "rechecks queued Slack channel roots but exempts replies and DMs (DM=$isDM, reply=$isReply)": 1695, - "rechecks source retirement after a queued notice's late provider receipt commits": 764, - "rechecks the outbound link when publication commits between reaction preflight reads": 1005, - "rechecks the recovered failure link after waiting for the provider mutation lane": 866, - "recognizes Slack callbacks behind TLS termination without trusting forwarded headers": 283, - "reconciled chat retry delivery ownership > does not resolve or mint a substitute owner for %s": 1432, - "reconciled chat retry delivery ownership > keeps one exact chat delivery owner through %s reconciliation": 1644, - "reconciled chat retry delivery ownership > retains the sole owner but refuses its deferred dispatch after %s": 1237, - "reconciles a foreign GitHub installation lifecycle event against canonical App inventory": 583, - "reconciles a provider-confirmed Slack starter into one task without replaying Slack": 1023, - "reconciles concurrent opposite GitHub lifecycle callbacks from canonical App state": 1186, - "reconciles Slack membership during configure, resume, and reconnect": 733, - "reconciles Slack session status without replaying messages after rate limits or restart": 1033, - "reconstructs a future accepted-response deadline without early publication": 609, - "reconstructs inbound admission committed after the notice worker stops": 473, - "records message edits and deletes durably and deduplicates lifecycle callbacks": 797, - "records one content-free GitHub receipt for a disabled repository without admitting work": 579, - "records the public Cloud proxy host for authenticated Slack callback health": 345, - "records verified Telegram edited_message updates against the existing DM task": 858, - "recovers a committed %s answer once without rerunning or changing review/quarantine evidence": 1606, - "recovers a genuine unanswered %s presentation": 1503, - "recovers a provider-confirmed Slack starter after restart but rechecks revoked reach": 309, - "recovers accepted-response work on startup and leaves selected history quiet": 1539, - "recovers action rows on startup, wakes after outer commit, and leaves empty queues quiet": 1672, - "recovers an accepted Slack file receipt without uploading twice or exposing provider identifiers": 1157, - "recovers an ambiguous Slack slash-task start only after an audited explicit retry": 561, - "recovers an authenticated GitHub webhook after shutdown before deferred work starts": 588, - "recovers buffered Discord messages and reactions after an unreclaimed host-pause lease expiry": 1306, - "recovers committed terminal confirmations without polling through %s": 4354, - "recovers stale provider sends on startup without replaying uncertain effects": 356, - "recovers the committed authorization phase after %s without renewing its deadline": 18228, - "recovers the exact port-bound canonical response before skipping a superseded native decision": 647, - "recovers the same Telegram bot and historical task after token rotation": 1409, - "recovers the visible receipt exactly once after wake acceptance contention": 7724, - "redacts lifecycle edits and ignores reactions after channel reach is revoked": 815, - "redacts Telegram bot tokens from provider setup errors and endpoint health": 136, - "refills four tracked publication endpoint lanes after a scheduled budget and joins shutdown": 2443, - "refreshes Slack tool guidance without restoring disabled catalog policies": 344, - "refuses an otherwise eligible exact Slack retry after %s without admitting source changes": 1417, - "refuses to create a chat endpoint while its provider experiment is off": 82, - "refuses to enable a destination the provider no longer exposes": 322, - "registers ordinary-notice intent before a retry-owned receipt is retired": 815, - "registers ordinary-notice work through the retry admission transaction": 575, - "registers provider callbacks after a live Cloud claim (ingress: %s)": 1387, - "rehydrates a durable attachment descriptor after restart and stores the file on the issue": 450, - "rehydrates exact chat retry authority and verifies its persisted projection after service restart": 481, - "rehydrates one Discord Gateway owner on startup and hands off cleanly across replicas": 293, - "rejects a recovered Slack file identity when destination reach changes during lookup": 902, - "rejects a signed automatic GitHub callback whose original %s identity changed": 2291, - "rejects automatic pre-ingress GitHub recovery after %s": 1418, - "rejects caller-controlled GitHub setup secrets and arbitrary credential fields": 158, - "rejects chat endpoints for non-invokable agents": 69, - "rejects over-scoped GitHub Apps while tolerating unavoidable lifecycle events": 225, - "rejects reconnect credentials for a different Slack bot without rotating secrets": 158, - "rejects under-scoped Slack and GitHub apps before saving provider credentials": 217, - "rejects unsupported Telegram webhook ports before provider access or secret persistence": 39, - "releases authorization row locks before a Slack slash starter waits on provider I/O": 326, - "releases Discord ownership when runtime construction fails": 240, - "releases task-control authorization locks before provider I/O and quarantines stale claims": 996, - "removes a $label endpoint without deleting its task or audit history": 1258, - "renders safe Telegram confirmations as opaque one-use buttons and wakes the resolved task": 1587, - "reorders rapid Slack callbacks by provider time before one conversation drain": 2018, - "reorders reverse-arrival Telegram webhooks by provider sequence before waking the agent": 1301, - "reorders same-second GitHub callbacks by comment id before starting the task": 1393, - "repairs a committed reply and its recovery notice without reversing row locks": 776, - "repairs the same GitHub App webhook on reconnect without claiming a fresh signed ping or chat round trip": 638, - "replaces a pre-connect GitHub webhook secret without inventing a broken existing App": 302, - "replaces Telegram queued progress with its native confirmation and rejects late working progress": 1033, - "replaces working with one safe ownership-attention message without terminalizing the run": 1060, - "replays a pre-link reaction into the completed DM generation that sent the message": 1102, - "replays one pre-link Discord reaction after service reconstruction without waking the task": 889, - "requires a successful final response for setup qualification": 1053, - "requires at-mentions by default only in Slack channels (DM=%s)": 1108, - "requires connection-manager authority for chat connector administration": 218, - "requires terminal-safe native ownership for an exact chat retry: %s": 9089, - "requires the successful setup final to consume the qualifying follow-up": 1067, - "resamples reaction expiry after replay waits on authorization locks": 849, - "resolves ambiguous provider effects explicitly and never lets terminal failures starve reconciliation": 857, - "resolves an admitted GitHub private image after restart with current reach at %s": 5052, - "resource change audit atomicity > joins concurrent identical and opposite changes into actual before/after history": 124, - "resource change audit atomicity > keeps duplicate last-write semantics but audits only net changes": 76, - "resource change audit atomicity > keeps the audit aligned with commit on lease loss %s": 117, - "resource change audit atomicity > reads the actual resource state after the row lock, not a pre-lock snapshot": 123, - "resource change audit atomicity > rolls back resource writes and suppresses events on %s failure": 103, - "resource change audit atomicity > rolls back the entire %s resource batch without audit or events": 134, - "resource change auditing > records exact actual changes and authenticated route actor, without resource content": 182, - "restarts an inbound notice cursor when privacy is restored during a bounded pass": 3129, - "restores action retry and stale-claim deadlines and parks paused or uncertain work": 583, - "restores changed native review metadata once and signals only its committed change": 1320, - "restores chat queue deadlines without polling blocked followers or receipt owners": 376, - "restores inbound retry and abandoned wake deadlines and excludes paused queues": 347, - "resumes saved GitHub input after a successful board turn: %s": 2341, - "retains a confirmation committed while another settlement is in flight": 2156, - "retains a contended pre-run FIFO projection and settles cancelled input without a visible notice": 447, - "retains a failed accepted-response attempt across drain and retries after resume": 724, - "retains a retry final when its source authorization read fails transiently": 764, - "retains a standalone unaddressed Slack thread reply for the bounded reorder window": 792, - "retains admission committed while an empty inbound-notice selection is returning": 570, - "retains an accepted-response deadline that elapses during the locked recovery check": 631, - "retains an exact chat retry through a transient scheduling failure and a lost committed receipt acknowledgement": 470, - "retains content-free GitHub source invalidation after actor revocation and denies stale retry after regrant": 1090, - "retains HTTP Retry under the endpoint authorization row lock: %s": 5469, - "retains inbound notices through %s during drain without passive SQL": 1473, - "retains one HTTP task Retry intent while saved chat identity authorization is busy": 1466, - "retains only a source invalidation for a Telegram edit when the original actor's link is revoked": 721, - "retains the first accepted-response wake through idle drain without passive SQL": 1478, - "retains the service idle probe after failed $name retirement and shutdown until owner retry": 1227, - "retires a Discord receipt after terminal failure without letting an add retry resurrect it": 790, - "retires a pre-run FIFO notice with the exact promoted %s run even before a working update": 1624, - "retires a stale verifying receipt before another fixture runs recovery": 938, - "retires an already-visible pre-run FIFO notice once without publishing scheduler failures": 734, - "retires only the exact Slack final's receipt (%s)": 2802, - "retires only the exact Telegram final receipt through the pinned adapter (%s)": 3412, - "retires only the removed source's pre-run FIFO notice after its surviving batch promotes": 979, - "retires superseded credentials and clears endpoint-owned secrets on removal": 419, - "retries a colliding company fixture prefix and creates a distinct complete fixture": 88, - "retries a contended committed review response before transport, then publishes it and its files once": 1747, - "retries a contended pre-run FIFO receipt before I/O and observes cancellation after the lock releases": 612, - "retries a durable lifecycle row without treating it as a message delivery": 339, - "retries a fully recorded never-dispatched $provider setup through HTTP: $mode": 16878, - "retries an accepted inbound wake outbox in FIFO order without blocking other conversations": 847, - "retries an authenticated GitHub request after isolated-directory validation failed before allocation: %s": 26911, - "retries an exact GitHub source denied by pre-provider reviewed attestation without rewriting its failure": 801, - "retries credential cleanup after archival made a remove partially complete": 315, - "retries failed chat execution authorization after actual %s lock contention": 18870, - "retries lifecycle mutation atomically and reclaims it after restart": 1216, - "retries only the original pre-provider Telegram request after exact cleanup: $mode ($errorMessage)": 27198, - "retries pre-transport attachment integrity failures without blocking another conversation": 1362, - "retries saved GitHub input after a successful run without replaying that run": 1103, - "retries saved GitHub input after an endpoint admission lock collision": 31887, - "retries the exact failed %s chat input with a new idempotent admission": 1073, - "retries the newer saved $provider request instead of the failed request after a budget hold: $mode": 114415, - "retries the saved board-message turn in a connected task after environment qualification failed before provider startup": 4460, - "retries transient GitHub endpoint lock contention before accepting a wake": 879, - "returns a committed one-time GitHub setup secret after final lease loss when its exact ref remains current": 81, - "returns a failed link-only interaction continuation to its GitHub thread": 970, - "returns a retryable webhook failure when the delivery insert fails before durable receipt": 1178, - "returns ephemeral guidance for exact Slack controls in channels without creating tasks or actions": 393, - "returns not found rather than revealing another company's chat endpoint": 45, - "returns two answered Slack turns to Idle in the same thread (DM=%s)": 1974, - "reuses a pre-run FIFO notice when the successor asks before its working milestone": 622, - "reveals a rotated GitHub secret despite a later completion-audit failure and makes retry a new rotation": 1607, - "revokes a deleted canonical GitHub installation and recovers the same endpoint after reinstall": 3454, - "rotates a live GitHub webhook secret fail-closed and reconnects with stored credentials": 992, - "rotates Microsoft Teams secrets without changing bot identity and preserves the last good credentials on rejection": 474, - "round-trips a $label question modal and durably acknowledges denied or replayed tokens": 2622, - "safely re-arms an exact terminal GitHub delivery after an operator redelivery": 666, - "saves Slack communication instructions with validation, company isolation, and audit attribution": 259, - "scopes board-send idempotency to one external conversation": 1427, - "scopes failed retry notices and retains receipt contention without retrying settled history": 917, - "scopes Slack setup %s detection to the linked user and current test": 935, - "scopes Telegram publication failure from $label correctly": 1631, - "segments long Telegram output into durable FIFO publications and resumes at the failed part": 1225, - "selects the Telegram photo boundary before provider I/O (%s)": 10607, - "sends Telegram audio and video outside native format contracts as exact original documents": 1135, - "separates verified webhook ingress from board identity links for every webhook provider": 256, - "serializes a GitHub secret rotation racing reconnect and preserves the rotated secret": 1166, - "serializes and caps an agent run's selected Discord files before final handoff": 2605, - "serializes concurrent GitHub setup-secret requests without losing stored credentials": 1597, - "serializes Discord Gateway health events and recovers transient guild outages": 264, - "serializes duplicate Slack admission with an owned provider-reply settlement: %s": 1324, - "serializes recovered Telegram maintenance behind credential rotation": 443, - "serializes setup activation ahead of a concurrent reconnect without overwriting the newer runtime": 873, - "settles a refused GitHub task Retry by its own gates: %s": 4098, - "settles a retried Slack receipt reaction when the provider reports already_reacted": 480, - "settles a shared-endpoint accepted-response backlog without retrying its own locks": 2836, - "settles an interrupted native run once without overwriting its successor": 996, - "settles GitHub self-update receipts without orphan retries for %s": 5038, - "settles rejected pre-acceptance intent and permits a later authorized external message": 485, - "settles responses on different endpoints for one principal without retrying its own identity lock: %s": 4547, - "singleflights concurrent cold GitHub runtime initialization": 678, - "skips a locked native progress %s while unrelated final and question publications deliver": 5320, - "skips a pre-run FIFO candidate with a noncanonical coalesced owner id (%s)": 1300, - "skips paused outbox heads and resumes promptly without bypassing provider backoff": 1009, - "sleeps behind an unresolved Slack tool send and wakes when its receipt settles": 453, - "snapshots channel workspace defaults on new tasks and preserves them on replies": 777, - "starts real Slack conversations from bare mentions and accepts same-thread follow-ups": 1581, - "stops a conversation drain after its lease renewal fails": 560, - "stops a Discord Gateway on lease loss and lets a standby take over": 649, - "stops automatic pre-ingress GitHub pagination at the epoch floor without adopting older failures": 485, - "stops starting continuation publications during %s": 4731, - "streams long output in bounded chunks after applying the safe external projection": 734, - "supplements Chat SDK with verified GitHub comment edit and delete lifecycle events": 2034, - "supplements verified Teams edit, soft-delete, and restore activities against the existing task": 1351, - "suppresses a pending pre-run FIFO notice after %s wins": 4422, - "suppresses a queued provider reply when destination reach is revoked before transport": 352, - "suppresses automatic pre-ingress GitHub redelivery for any existing local receipt (%s)": 2569, - "suppresses persisted GitHub queued, progress and completion comments on replay": 696, - "suppresses queued and working placeholders that terminalize while paused": 1090, - "surfaces an attachment-only Telegram ingestion failure without waking the agent": 381, - "Teams authenticated inline-picture intake > ingests an actual pinned-parser %s picture into its exact admitted turn (%s)": 3987, - "Teams current file authority and composed Board transfer > deduplicates the same actual acceptance activity before and after file delivery": 1406, - "Teams current file authority and composed Board transfer > durably accepts a callback inside the consent POST before the native receipt returns": 1272, - "Teams current file authority and composed Board transfer > freezes the original recipient at Board Send and publishes only after consent and exact-byte PUT": 2219, - "Teams current file authority and composed Board transfer > keeps the task-link fallback with no native file intent for %s": 2952, - "Teams current file authority and composed Board transfer > offers only exact conflict cancellation after valid Teams consent receipts disagree": 1039, - "Teams current file authority and composed Board transfer > rechecks revoked %s authority before acceptance and before PUT": 6295, - "Teams current file authority and composed Board transfer > rejects a retained old-runtime consent callback after normal pause and resume": 1038, - "Teams current file authority and composed Board transfer > retries only fileInfo after a confirmed PUT and an explicitly resolved missing fileInfo receipt": 1737, - "Teams current file authority and composed Board transfer > stages native Board file consent on the first send from a cold reconstructed service": 1086, - "Teams exact self-unknown source continuation > accepts the exact native file after a lost consent-card receipt without reposting": 1468, - "Teams exact self-unknown source continuation > does not exempt other unknown effects or changed native authority: %s": 8488, - "Teams exact self-unknown source continuation > retries only the confirmed native file-info stage with an exact audited phase/version, never its PUT": 2191, - "Teams file receipt API projection > does not consume a worker slot for a pending Teams transfer on a %s endpoint": 1968, - "Teams file receipt API projection > does not treat a caller-only transfer hint as ordinary delivery authority": 134, - "Teams file receipt API projection > generic publication worker ignores an existing %s Teams transfer on an active endpoint": 1660, - "Teams file receipt API projection > keeps a cancelled head locked while a consent-card receipt waits for the file tail": 125, - "Teams file receipt API projection > never projects a transfer from another conversation into Activity": 113, - "Teams file receipt API projection > offers only the exact %s stage actions": 453, - "Teams file receipt API projection > preserves all-published legacy batches without transfer metadata and excludes other comments": 113, - "Teams file receipt API projection > projects mixed delivered, declined, expired and cancelled file outcomes without making GET effects": 111, - "Teams file receipt API projection > refuses generic replay of a failed transfer without another provider attempt": 114, - "Teams file receipt API projection > refuses generic resolution with %s transfer preconditions without changing receipts": 654, - "Teams file receipt API projection > refuses terminal success or actions for %s": 496, - "Teams file receipt API projection > requires exact endpoint, conversation, publication and Board company scope": 223, - "Teams inline picture publication > keeps $surface picture delivery truthful for $outcome": 9370, - "Teams personal-recipient admission and durable restart > does not invent personal recipient proof when an AAD-only legacy delivery resumes without original runtime evidence": 309, - "Teams personal-recipient admission and durable restart > preserves actual-parser personal recipient proof across database admission and reconstructed restart": 398, - "Teams personal-recipient admission and durable restart > redacts a rejected personal destination instead of persisting its derived recipient proof": 176, - "Telegram callback-only native private responses > cancels a queued private callback notice after %s changes without public fallback": 1223, - "Telegram callback-only native private responses > does not rebind a retained callback denial to another %s": 754, - "Telegram callback-only native private responses > does not refresh the callback deadline after service runtime-readiness waits": 191, - "Telegram callback-only native private responses > does not treat another actor's private chat as a reply destination": 207, - "Telegram callback-only native private responses > preserves an authenticated exact-actor DM denial without native ephemeral or public fallback": 246, - "Telegram callback-only native private responses > quarantines missing private acceptance receipts and never retries them publicly": 275, - "Telegram callback-only native private responses > records an authenticated denial before its recipient-bound send and deduplicates the exact callback": 277, - "Telegram callback-only native private responses > retains an exact-actor DM proof across restart (expired=%s)": 447, - "Telegram callback-only native private responses > retains the original private callback deadline across restart (expired=%s)": 533, - "Telegram close-owned progress retirement > does not borrow an unrelated run's interaction as progress-consumer evidence": 956, - "Telegram close-owned progress retirement > does not guess a close edit for %s": 5402, - "Telegram close-owned progress retirement > does not reclaim a progress lane consumed by a $state $kind prompt": 3594, - "Telegram close-owned progress retirement > keeps close uncommitted after %s of its retirement edit": 2207, - "Telegram close-owned progress retirement > preserves an attempted unknown %s after public operator cancellation": 1994, - "Telegram close-owned progress retirement > preserves an authored final that wins while close is admitted": 943, - "Telegram close-owned progress retirement > qualifies $provider close-owned progress retirement ($mode)": 7384, - "Telegram close-owned progress retirement > retires a status-interleaved working lane": 891, - "Telegram close-owned progress retirement > retires one working lane on close without cancelling the run or publishing its late final": 1051, - "Telegram close-owned progress retirement > treats a $state consumer with $attempts attempts conservatively": 1799, - "Telegram current rich inbound compatibility > keeps rich files and omissions scoped through lifecycle recovery (%s)": 3025, - "Telegram current rich inbound compatibility > retains current rich content through the pinned parser and service (%s)": 971, - "Telegram durable private draft Stop > automatically repairs an existing %s subscription after restart without dropping updates": 6911, - "Telegram durable private draft Stop > commits chat connection credentials atomically before waking maintenance": 930, - "Telegram durable private draft Stop > does not confirm a subscription from non-boolean ok=%s": 1869, - "Telegram durable private draft Stop > does not reuse an old draft ID after endpoint cascade deletion and same-bot re-binding": 1875, - "Telegram durable private draft Stop > does not withdraw an unowned or already-claimed final (%s)": 4282, - "Telegram durable private draft Stop > durably stops during the first draft RPC without cancelling a run, and never reuses its ID after restart": 1147, - "Telegram durable private draft Stop > keeps ordinary output when automatic subscription repair is unsafe: %s": 11506, - "Telegram durable private draft Stop > parks pending Telegram subscription repair while its %s is inactive": 4330, - "Telegram durable private draft Stop > preserves an uncertain final after restart and a late Stop without automatic replay": 877, - "Telegram durable private draft Stop > recovers Telegram maintenance from committed work and becomes SQL quiet: %s": 11961, - "Telegram durable private draft Stop > refuses a retained Stop and later final after current %s authority changes": 3535, - "Telegram durable private draft Stop > retries an unknown subscription mutation after restart using freshly observed options, not a recovered confirmation flag": 1378, - "Telegram durable private draft Stop > returns 503 on failed Stop commit and accepts the exact verified retry before final send": 953, - "Telegram durable private draft Stop > sends ordinary complete output without Stop when subscription proof is %s": 3593, - "Telegram retained zero-message admission > recovers only ordinary source identity ($state / command=$command / $source)": 4134, - "Telegram source-bound optional media > imports exact permitted bytes or gives accurate recovery advice (%s)": 3629, - "Telegram source-bound optional media > retains exact durable media authority across restart (%s)": 1133, - "tracks Slack callback surfaces independently and reports public URL drift": 311, - "tracks the actual Board Teams claim and retires recovery when its receipt commits": 2107, - "treats D-prefixed Slack status, new, and close callbacks as DM task controls even when the SDK flag is false": 1178, - "turns a Slack slash command into a new native thread and one Paperclip task": 404, - "updates only the linked same-run %s failure notice when recovering an accepted response": 1446, - "uses a live Cloud claim after chat service startup (ingress: %s)": 265, - "uses compact single-use Telegram action tokens and filters forged, expired, and oversized callbacks": 1447, - "uses GitHub numeric user ids for linked authority and rechecks membership on every follow-up": 683, - "uses the Teams group-chat toggle without weakening channel resource gates": 802, - "wakes a failed retry notice only after %s cancellation commits": 1359, - "wakes a not-started retry notice after resumed admission is denied": 932, - "wakes a saved inbound notice when %s restores privacy access": 1686, - "wakes a visible pre-run FIFO retirement only after %s commits": 5577, - "wakes accepted-response recovery from the real coordinator retry release": 793, - "wakes accepted-response recovery when its authenticated accepted-result journal arrives late": 2568, - "wakes an existing chat milestone when ordinary ingress reactivates its conversation": 1417, - "wakes chat dispatch after commit and refills free endpoint slots without the maintenance loop": 1895, - "wakes dormant accepted-response history from the real company membership restoration owner": 2573, - "wakes dormant accepted-response recovery after agent resume": 2831, - "wakes inbound notice retirement from a signed Slack Stop without a maintenance scan": 901, - "wakes interaction continuations from a committed response through %s": 12965, - "wakes parked Slack %s actions after board %s commits": 7361, - "wakes pre-run FIFO notices from real admission after quiet and becomes quiet again": 687, - "wakes saved native progress when %s restores eligibility": 5559, - "wakes Slack session sync from publication commit and leaves settled action queues quiet": 1699, - "withholds a committed one-time GitHub setup secret after final lease loss when its ref was superseded": 70, - "yields a %s inbound notice backlog between bounded passes without losing work": 6983 + "ingests only admitted public GitHub attachments after restart (HTTP $status, $count files, expired batch $expireBatch)": 3661, + "ingests Teams files only from personal chats and keeps non-DM references link-only": 391, + "invalidates only an exact provider-verified GitHub source edit independently of editor admission: %s": 3110, + "isolates malformed publication preparation so later messages still deliver": 979, + "isolates pre-run FIFO reconciliation scopes and exhausts published history": 529, + "joins in-flight recovery before rethrowing an ordinary drain failure (%s)": 1582, + "keeps a %s retry's queue and working progress on its own provider identity and delivers its selected final": 2184, + "keeps a board message queued separately when saved GitHub Retry resumes after cleanup": 793, + "keeps a chat-origin run presentation internal when its external question owns the reply": 1078, + "keeps a claimed $provider identity immutable when first setup resumes from attention": 51, + "keeps a first-channel Teams orphan payload-free during grace and filters it without a live retry": 178, + "keeps a refused GitHub task Retry continued when reconciliation read it before the refusal settled": 526, + "keeps a saved HTTP Retry alive through a healthy nine-second identity transaction": 10314, + "keeps a separate FIFO answer visible while removed-input cleanup edits its queued notice": 1060, + "keeps a successful GitHub link-question continuation final internal": 769, + "keeps a verified Slack $kind authoritative for $contentType read and reuse after reach or identity returns": 7239, + "keeps accepted-response work behind the outer %s boundary": 3751, + "keeps an aged live publication owned across standby sweeps but quarantines only exact-lease orphans": 697, + "keeps an internal Telegram run summary private and completes its progress message": 711, + "keeps an omitted-file warning after an early Slack receipt failure and %s retry": 763, + "keeps bare Slack mentions subject to %s access restrictions": 326, + "keeps case-variant Teams Entra object ids on one external principal": 345, + "keeps current GitHub task Retry authority gated: %s": 8183, + "keeps disabled-channel Slack %s scoped to its exact source without admitting content": 1819, + "keeps external-continuation lifecycle comments internal and publishes only the selected final": 476, + "keeps GitHub issues, PR conversations, and inline review threads on distinct tasks": 853, + "keeps intermediate %s agent comments internal and publishes only the selected final": 1318, + "keeps lifecycle and native progress projection independent with %s": 1577, + "keeps medium Telegram $label in one native publication": 1109, + "keeps missing attachment storage retryable but fails invalid metadata before provider transport": 820, + "keeps native progress behind question, final, and current reach authority on %s fixture %s (%s)": 4897, + "keeps one durable pre-run FIFO notice across coalescing and restart, then reuses only its successor lane": 2176, + "keeps one Paperclip account mapping for the same provider principal across endpoints": 371, + "keeps one Slack progress message and a separate final response despite an interleaved task control": 662, + "keeps processing audit truth and rejects stale Slack runtime callbacks across resume": 362, + "keeps provider startup diagnostics private on %s fixture %s (%s)": 3392, + "keeps recovered GitHub final prose and attachment navigation internal (omission: %s)": 1148, + "keeps root-chat bookkeeping comments internal and publishes only the selected final": 362, + "keeps saved-input Retry behind current admission gates: %s": 3282, + "keeps separate Slack DM thread roots on separate tasks": 430, + "keeps Slack tools callable after a native task continuation without wake JSON": 517, + "keeps successive Telegram DM messages on one active Paperclip task": 586, + "keeps task-bound /close active after an ambiguous publication commit until explicit confirmation": 671, + "keeps Teams group chat closed by default without consuming first-channel setup enablement": 280, + "keeps Telegram start and unknown commands as terse guidance without creating work": 157, + "keeps the admitted chat Retry queued until its source lease cleanup settles: %s": 25477, + "keeps the pre-run FIFO sweep running when a valid owner's action has comment ids that are not uuids": 410, + "leaves a contended accepted response retryable without reclassifying or partially publishing it (%s)": 934, + "leaves accepted-response presentation to its worker during periodic %s replay": 945, + "leaves Cloud-managed GitHub webhook recovery to the relay": 333, + "leaves fresh-commit accepted-response presentation to the worker when periodic replay skips it": 446, + "leaves GitHub reconnect unqualified after a %s webhook repair failure": 1574, + "leaves saved GitHub input pending when a persisted Retry wait loses board authority": 849, + "links outbound Teams files instead of attempting an unsupported native upload": 616, + "Lossless long Board publications > keeps an ambiguous %s text part blocked across restart and retries only that part and its tail": 3766, + "Lossless long Board publications > preserves %s code, Unicode and sanitization expansion through actual durable parts": 4766, + "Lossless long Board publications > preserves all 100000 characters for %s %s-comment publication": 8009, + "Lossless long Board publications > preserves an accepted native Slack response whose rendered mentions exceed the Markdown cap": 581, + "Lossless long Board publications > refuses malformed persisted wrappers before provider I/O %#": 1238, + "Lossless long Board publications > retains a complete 100000-character %s response in the existing Markdown document transport": 1242, + "maps a timestamp-bearing Slack DM reaction to the completed generation that owns its linked message": 828, + "maps Telegram image, audio, and video output onto native media lanes": 652, + "marks provider setup as needing attention when Telegram webhook registration fails": 67, + "materializes direct external-chat finals once and accepts the next turn without agent bookkeeping writes": 3577, + "migrates Telegram basic-group reach, topic tasks and $defaultsMode defaults (existing destination: $existingDestination)": 5150, + "mirrors Paperclip messages with user attribution and returns only the selected Slack reply": 1081, + "never promises a queued follow-up before durable admission succeeds": 424, + "never re-arms a failed local GitHub receipt when an automatic redelivery races the original callback": 385, + "never replaces or resurrects an already selected answer (deleted=%s)": 964, + "never stores a GitHub webhook body before its signature is authenticated": 367, + "opens and corrects an actual Discord modal through current service authority exactly once (%s concurrent answers)": 1649, + "orders a Telegram authentication failure before concurrent reconnect": 527, + "orders a Telegram destination failure before concurrent membership recovery": 536, + "orders a Telegram new command before the next message from the same provider second": 1086, + "orders rapid Discord replies by provider time before waking one task": 484, + "orders rapid Teams follow-ups by provider time when callbacks arrive reversed": 518, + "orders reversed GitHub edit and delete callbacks behind their durable root (root processed before replay: %s)": 5757, + "orders Slack private-channel archive, unarchive, and rename lifecycle": 237, + "paginates mixed activity beyond 100 rows without losing timestamp ties": 79, + "parks pending confirmation history, passes malformed prefixes, and wakes on the outer interaction commit": 8904, + "parks provider-confirmed Slack admissions on paused endpoints without starving active work": 415, + "passes historical continuation prefixes and retains a response committed during dispatch": 3786, + "persists Slack manifest draft details and the registered command, then locks them once connected": 160, + "persists Slack membership, uninstall, and same-bot reinstall lifecycle before acknowledging": 703, + "persists the first identity wait deadline for an older pending action": 741, + "presents a fresh Teams personal generation after close and a regional route change": 822, + "preserves a published %s file prefix across restart and retries only an explicitly resolved ambiguous upload": 1989, + "preserves a recorded %s presentation instead of recovering an unsolicited answer": 668, + "preserves a Teams personal %s attachment omission after losing its live download closure": 574, + "preserves an early Slack receipt failure after %s acceptance": 679, + "preserves an explicitly disabled Slack channel after invitation and mentions (%s)": 541, + "preserves an interrupted run's selected final when its publication is %s": 867, + "preserves automatic final replies for legacy GitHub connections without saved review configuration": 622, + "preserves delivery quarantine when a slow Slack post finishes after stale recovery": 602, + "preserves exact Discord source authority through registered Gateway %s updates": 1567, + "preserves GitHub webhook verification through setup completion and reconnect": 962, + "preserves one current GitHub Retry across %s": 26093, + "preserves ordinary legacy task Retry success without replaying its canonical request": 1954, + "preserves running Slack tool authority after Require at-mention is enabled": 411, + "preserves selected answer and failure lanes after deferred admission (%s)": 1363, + "preserves selected answer and failure lanes on $provider after $status ($order)": 11962, + "preserves Slack thread history across completion ($isDM, $threaded, $status, $state)": 1988, + "preserves stored Telegram credentials and lifecycle when reconnect uses an unsupported webhook port": 161, + "preserves the complete failed coalesced chat batch and rejects a dropped sibling": 545, + "preserves the GitHub resource, task, and conversation across repository rename and transfer": 672, + "preserves the public inventory error response for %s": 814, + "preserves the raw webhook request and returns the provider adapter response": 178, + "preserves unavailable Teams $surface file references through $mode admission": 3429, + "projects prepared but unsettled task Retry using its actual stale-claim deadline": 1211, + "provider timestamp provenance after closed conversations > retains only raw Telegram date through the pinned parser or runtime slash path (%s)": 3508, + "provider timestamp provenance after closed conversations > retains only the actual Teams activity clock, not SDK display fallback (%s)": 3324, + "provides assigned Slack tools to routine tasks and can DM only their linked responsible user": 1666, + "publishes a closed-choice question, settles its Slack card, and delivers its exact continuation response": 1917, + "publishes a serialized Telegram run response after the preceding run completes the conversation": 1176, + "publishes a Telegram failure for an exact confirmation continuation that stops before commenting": 964, + "publishes an agent's explicitly selected same-run Slack attachment after its response": 940, + "publishes an explicitly selected board attachment through Telegram's native file lane": 557, + "publishes complex question sets as non-executable Paperclip fallbacks": 651, + "publishes equal-time Slack outbox rows once in stable order across concurrent drains": 431, + "publishes explicit Board GitHub attachment fallbacks without provider file bytes": 1779, + "publishes fast responses to the accepted %s thread without completing its work": 1732, + "publishes GitHub questions as link-only cards with no executable callback": 546, + "publishes long structured Telegram Markdown as one durable lossless document": 850, + "publishes native progress with a typed issue binding present: %s": 860, + "publishes one truthful notice when a selected PNG receives a definite provider rejection": 1130, + "publishes only a resolver-selected Telegram reply for $authorizationReason": 2015, + "publishes only explicitly selected board attachments and stays idempotent across retries": 827, + "publishes only the safe projection once and locks reassignment of a bound task": 848, + "publishes the old final before /new and suppresses later output from the completed generation": 1071, + "quarantines a Telegram control when the reply lands but its state commit crashes": 729, + "quarantines an active GitHub endpoint when its dedicated App drifts to multiple installations": 520, + "quarantines an ambiguous automatic pre-ingress GitHub redelivery without blindly repeating the POST": 354, + "quarantines Telegram maintenance success when credential-lease ownership is reclaimed": 510, + "queues Telegram guidance on the durable publication FIFO when a task is active": 360, + "reactivates denied retry notices when authority is restored during %s": 6377, + "reactivates dormant accepted-response work when the live chat authority registers": 2389, + "reactivates failed retry notices from real admission after idle through %s": 3676, + "reactivates restored ordinary input after an earlier Retry notice wake is consumed": 406, + "reads the entire publication batch without side effects and rejects foreign bindings": 347, + "reauthorizes a failed chat retry against a %s provider correction before lifecycle projection": 2885, + "reauthorizes a failed chat retry and denies %s before scheduling": 2983, + "reauthorizes skipped native progress after %s wins before retry": 1556, + "rechecks %s authority before queued Slack Board messages and replies": 2445, + "rechecks a recovered response at provider dispatch after %s": 2594, + "rechecks a Slack file receipt after a competing worker changes its retry deadline": 694, + "rechecks canonical content before processing an automatically recovered GitHub callback": 406, + "rechecks linked authority and channel reach before admitting a provider-confirmed Slack task (%s)": 512, + "rechecks pre-provider retry evidence after staging and refuses a late execution event": 594, + "rechecks queued Slack channel roots but exempts replies and DMs (DM=$isDM, reply=$isReply)": 970, + "rechecks source retirement after a queued notice's late provider receipt commits": 772, + "rechecks the outbound link when publication commits between reaction preflight reads": 874, + "rechecks the recovered failure link after waiting for the provider mutation lane": 544, + "recognizes Slack callbacks behind TLS termination without trusting forwarded headers": 168, + "reconciled chat retry delivery ownership > does not resolve or mint a substitute owner for %s": 1062, + "reconciled chat retry delivery ownership > keeps one exact chat delivery owner through %s reconciliation": 1325, + "reconciled chat retry delivery ownership > retains the sole owner but refuses its deferred dispatch after %s": 1095, + "reconciles a foreign GitHub installation lifecycle event against canonical App inventory": 425, + "reconciles a provider-confirmed Slack starter into one task without replaying Slack": 975, + "reconciles concurrent opposite GitHub lifecycle callbacks from canonical App state": 667, + "reconciles Slack membership during configure, resume, and reconnect": 399, + "reconciles Slack session status without replaying messages after rate limits or restart": 968, + "reconstructs a future accepted-response deadline without early publication": 434, + "reconstructs inbound admission committed after the notice worker stops": 495, + "records message edits and deletes durably and deduplicates lifecycle callbacks": 557, + "records one content-free GitHub receipt for a disabled repository without admitting work": 393, + "records the public Cloud proxy host for authenticated Slack callback health": 199, + "records verified Telegram edited_message updates against the existing DM task": 738, + "recovers a committed %s answer once without rerunning or changing review/quarantine evidence": 1266, + "recovers a genuine unanswered %s presentation": 1374, + "recovers a provider-confirmed Slack starter after restart but rechecks revoked reach": 201, + "recovers accepted-response work on startup and leaves selected history quiet": 1473, + "recovers action rows on startup, wakes after outer commit, and leaves empty queues quiet": 1499, + "recovers an accepted Slack file receipt without uploading twice or exposing provider identifiers": 992, + "recovers an ambiguous Slack slash-task start only after an audited explicit retry": 457, + "recovers an authenticated GitHub webhook after shutdown before deferred work starts": 431, + "recovers buffered Discord messages and reactions after an unreclaimed host-pause lease expiry": 1235, + "recovers committed terminal confirmations without polling through %s": 4461, + "recovers stale provider sends on startup without replaying uncertain effects": 214, + "recovers the committed authorization phase after %s without renewing its deadline": 17664, + "recovers the exact port-bound canonical response before skipping a superseded native decision": 570, + "recovers the same Telegram bot and historical task after token rotation": 1234, + "recovers the visible receipt exactly once after wake acceptance contention": 7621, + "redacts lifecycle edits and ignores reactions after channel reach is revoked": 647, + "redacts Telegram bot tokens from provider setup errors and endpoint health": 82, + "refills four tracked publication endpoint lanes after a scheduled budget and joins shutdown": 1787, + "refreshes Slack tool guidance without restoring disabled catalog policies": 255, + "refuses an otherwise eligible exact Slack retry after %s without admitting source changes": 897, + "refuses to create a chat endpoint while its provider experiment is off": 104, + "refuses to enable a destination the provider no longer exposes": 137, + "registers ordinary-notice intent before a retry-owned receipt is retired": 575, + "registers ordinary-notice work through the retry admission transaction": 489, + "registers provider callbacks after a live Cloud claim (ingress: %s)": 982, + "rehydrates a durable attachment descriptor after restart and stores the file on the issue": 448, + "rehydrates exact chat retry authority and verifies its persisted projection after service restart": 514, + "rehydrates one Discord Gateway owner on startup and hands off cleanly across replicas": 188, + "rejects a recovered Slack file identity when destination reach changes during lookup": 533, + "rejects a signed automatic GitHub callback whose original %s identity changed": 1470, + "rejects automatic pre-ingress GitHub recovery after %s": 948, + "rejects caller-controlled GitHub setup secrets and arbitrary credential fields": 379, + "rejects chat endpoints for non-invokable agents": 46, + "rejects over-scoped GitHub Apps while tolerating unavoidable lifecycle events": 98, + "rejects reconnect credentials for a different Slack bot without rotating secrets": 119, + "rejects under-scoped Slack and GitHub apps before saving provider credentials": 182, + "rejects unsupported Telegram webhook ports before provider access or secret persistence": 24, + "releases authorization row locks before a Slack slash starter waits on provider I/O": 278, + "releases Discord ownership when runtime construction fails": 178, + "releases task-control authorization locks before provider I/O and quarantines stale claims": 777, + "removes a $label endpoint without deleting its task or audit history": 1108, + "renders safe Telegram confirmations as opaque one-use buttons and wakes the resolved task": 1274, + "reorders rapid Slack callbacks by provider time before one conversation drain": 1767, + "reorders reverse-arrival Telegram webhooks by provider sequence before waking the agent": 1099, + "reorders same-second GitHub callbacks by comment id before starting the task": 1357, + "repairs a committed reply and its recovery notice without reversing row locks": 482, + "repairs the same GitHub App webhook on reconnect without claiming a fresh signed ping or chat round trip": 475, + "replaces a pre-connect GitHub webhook secret without inventing a broken existing App": 166, + "replaces Telegram queued progress with its native confirmation and rejects late working progress": 777, + "replaces working with one safe ownership-attention message without terminalizing the run": 899, + "replays a pre-link reaction into the completed DM generation that sent the message": 911, + "replays one pre-link Discord reaction after service reconstruction without waking the task": 765, + "requires a successful final response for setup qualification": 777, + "requires at-mentions by default only in Slack channels (DM=%s)": 1111, + "requires connection-manager authority for chat connector administration": 238, + "requires terminal-safe native ownership for an exact chat retry: %s": 7495, + "requires the successful setup final to consume the qualifying follow-up": 747, + "resamples reaction expiry after replay waits on authorization locks": 698, + "resolves ambiguous provider effects explicitly and never lets terminal failures starve reconciliation": 758, + "resolves an admitted GitHub private image after restart with current reach at %s": 3803, + "resource change audit atomicity > joins concurrent identical and opposite changes into actual before/after history": 107, + "resource change audit atomicity > keeps duplicate last-write semantics but audits only net changes": 37, + "resource change audit atomicity > keeps the audit aligned with commit on lease loss %s": 75, + "resource change audit atomicity > reads the actual resource state after the row lock, not a pre-lock snapshot": 100, + "resource change audit atomicity > rolls back resource writes and suppresses events on %s failure": 63, + "resource change audit atomicity > rolls back the entire %s resource batch without audit or events": 96, + "resource change auditing > records exact actual changes and authenticated route actor, without resource content": 135, + "restarts an inbound notice cursor when privacy is restored during a bounded pass": 2409, + "restores action retry and stale-claim deadlines and parks paused or uncertain work": 363, + "restores changed native review metadata once and signals only its committed change": 817, + "restores chat queue deadlines without polling blocked followers or receipt owners": 257, + "restores inbound retry and abandoned wake deadlines and excludes paused queues": 216, + "resumes saved GitHub input after a successful board turn: %s": 1481, + "retains a confirmation committed while another settlement is in flight": 1699, + "retains a contended pre-run FIFO projection and settles cancelled input without a visible notice": 347, + "retains a failed accepted-response attempt across drain and retries after resume": 445, + "retains a retry final when its source authorization read fails transiently": 534, + "retains a standalone unaddressed Slack thread reply for the bounded reorder window": 489, + "retains admission committed while an empty inbound-notice selection is returning": 449, + "retains an accepted-response deadline that elapses during the locked recovery check": 402, + "retains an exact chat retry through a transient scheduling failure and a lost committed receipt acknowledgement": 350, + "retains content-free GitHub source invalidation after actor revocation and denies stale retry after regrant": 958, + "retains HTTP Retry under the endpoint authorization row lock: %s": 3713, + "retains inbound notices through %s during drain without passive SQL": 1315, + "retains one HTTP task Retry intent while saved chat identity authorization is busy": 1296, + "retains only a source invalidation for a Telegram edit when the original actor's link is revoked": 602, + "retains the first accepted-response wake through idle drain without passive SQL": 465, + "retains the service idle probe after failed $name retirement and shutdown until owner retry": 956, + "retires a Discord receipt after terminal failure without letting an add retry resurrect it": 527, + "retires a pre-run FIFO notice with the exact promoted %s run even before a working update": 1306, + "retires a stale verifying receipt before another fixture runs recovery": 690, + "retires an already-visible pre-run FIFO notice once without publishing scheduler failures": 503, + "retires only the exact Slack final's receipt (%s)": 2187, + "retires only the exact Telegram final receipt through the pinned adapter (%s)": 2684, + "retires only the removed source's pre-run FIFO notice after its surviving batch promotes": 676, + "retires superseded credentials and clears endpoint-owned secrets on removal": 289, + "retries a colliding company fixture prefix and creates a distinct complete fixture": 72, + "retries a contended committed review response before transport, then publishes it and its files once": 1547, + "retries a contended pre-run FIFO receipt before I/O and observes cancellation after the lock releases": 448, + "retries a durable lifecycle row without treating it as a message delivery": 175, + "retries a fully recorded never-dispatched $provider setup through HTTP: $mode": 13493, + "retries an accepted inbound wake outbox in FIFO order without blocking other conversations": 740, + "retries an authenticated GitHub request after isolated-directory validation failed before allocation: %s": 24684, + "retries an exact GitHub source denied by pre-provider reviewed attestation without rewriting its failure": 487, + "retries credential cleanup after archival made a remove partially complete": 333, + "retries failed chat execution authorization after actual %s lock contention": 17188, + "retries lifecycle mutation atomically and reclaims it after restart": 1040, + "retries only the original pre-provider Telegram request after exact cleanup: $mode ($errorMessage)": 11958, + "retries pre-transport attachment integrity failures without blocking another conversation": 1267, + "retries saved GitHub input after a successful run without replaying that run": 862, + "retries saved GitHub input after an endpoint admission lock collision": 31953, + "retries the exact failed %s chat input with a new idempotent admission": 789, + "retries the newer saved $provider request instead of the failed request after a budget hold: $mode": 91979, + "retries the saved board-message turn in a connected task after environment qualification failed before provider startup": 4463, + "retries transient GitHub endpoint lock contention before accepting a wake": 768, + "returns a committed one-time GitHub setup secret after final lease loss when its exact ref remains current": 63, + "returns a failed link-only interaction continuation to its GitHub thread": 841, + "returns a retryable webhook failure when the delivery insert fails before durable receipt": 1074, + "returns ephemeral guidance for exact Slack controls in channels without creating tasks or actions": 362, + "returns not found rather than revealing another company's chat endpoint": 47, + "returns two answered Slack turns to Idle in the same thread (DM=%s)": 1533, + "reuses a pre-run FIFO notice when the successor asks before its working milestone": 427, + "reveals a rotated GitHub secret despite a later completion-audit failure and makes retry a new rotation": 1088, + "revokes a deleted canonical GitHub installation and recovers the same endpoint after reinstall": 3212, + "rotates a live GitHub webhook secret fail-closed and reconnects with stored credentials": 551, + "rotates Microsoft Teams secrets without changing bot identity and preserves the last good credentials on rejection": 309, + "round-trips a $label question modal and durably acknowledges denied or replayed tokens": 2486, + "safely re-arms an exact terminal GitHub delivery after an operator redelivery": 358, + "saves Slack communication instructions with validation, company isolation, and audit attribution": 139, + "scopes board-send idempotency to one external conversation": 1082, + "scopes failed retry notices and retains receipt contention without retrying settled history": 831, + "scopes Slack setup %s detection to the linked user and current test": 520, + "scopes Telegram publication failure from $label correctly": 1293, + "segments long Telegram output into durable FIFO publications and resumes at the failed part": 833, + "selects the Telegram photo boundary before provider I/O (%s)": 10801, + "sends Telegram audio and video outside native format contracts as exact original documents": 787, + "separates verified webhook ingress from board identity links for every webhook provider": 213, + "serializes a GitHub secret rotation racing reconnect and preserves the rotated secret": 893, + "serializes and caps an agent run's selected Discord files before final handoff": 2174, + "serializes concurrent GitHub setup-secret requests without losing stored credentials": 1067, + "serializes Discord Gateway health events and recovers transient guild outages": 203, + "serializes duplicate Slack admission with an owned provider-reply settlement: %s": 871, + "serializes recovered Telegram maintenance behind credential rotation": 334, + "serializes setup activation ahead of a concurrent reconnect without overwriting the newer runtime": 728, + "settles a refused GitHub task Retry by its own gates: %s": 3796, + "settles a retried Slack receipt reaction when the provider reports already_reacted": 240, + "settles a shared-endpoint accepted-response backlog without retrying its own locks": 2694, + "settles an interrupted native run once without overwriting its successor": 675, + "settles GitHub self-update receipts without orphan retries for %s": 4030, + "settles rejected pre-acceptance intent and permits a later authorized external message": 463, + "settles responses on different endpoints for one principal without retrying its own identity lock: %s": 3964, + "singleflights concurrent cold GitHub runtime initialization": 473, + "skips a locked native progress %s while unrelated final and question publications deliver": 2910, + "skips a pre-run FIFO candidate with a noncanonical coalesced owner id (%s)": 850, + "skips paused outbox heads and resumes promptly without bypassing provider backoff": 602, + "sleeps behind an unresolved Slack tool send and wakes when its receipt settles": 380, + "snapshots channel workspace defaults on new tasks and preserves them on replies": 705, + "starts real Slack conversations from bare mentions and accepts same-thread follow-ups": 1221, + "stops a conversation drain after its lease renewal fails": 453, + "stops a Discord Gateway on lease loss and lets a standby take over": 542, + "stops automatic pre-ingress GitHub pagination at the epoch floor without adopting older failures": 324, + "stops starting continuation publications during %s": 3222, + "streams long output in bounded chunks after applying the safe external projection": 773, + "supplements Chat SDK with verified GitHub comment edit and delete lifecycle events": 1278, + "supplements verified Teams edit, soft-delete, and restore activities against the existing task": 1286, + "suppresses a pending pre-run FIFO notice after %s wins": 2789, + "suppresses a queued provider reply when destination reach is revoked before transport": 201, + "suppresses automatic pre-ingress GitHub redelivery for any existing local receipt (%s)": 1734, + "suppresses persisted GitHub queued, progress and completion comments on replay": 559, + "suppresses queued and working placeholders that terminalize while paused": 846, + "surfaces an attachment-only Telegram ingestion failure without waking the agent": 270, + "Teams authenticated inline-picture intake > ingests an actual pinned-parser %s picture into its exact admitted turn (%s)": 2783, + "Teams current file authority and composed Board transfer > deduplicates the same actual acceptance activity before and after file delivery": 788, + "Teams current file authority and composed Board transfer > durably accepts a callback inside the consent POST before the native receipt returns": 1102, + "Teams current file authority and composed Board transfer > freezes the original recipient at Board Send and publishes only after consent and exact-byte PUT": 1184, + "Teams current file authority and composed Board transfer > keeps the task-link fallback with no native file intent for %s": 2547, + "Teams current file authority and composed Board transfer > offers only exact conflict cancellation after valid Teams consent receipts disagree": 1166, + "Teams current file authority and composed Board transfer > rechecks revoked %s authority before acceptance and before PUT": 4582, + "Teams current file authority and composed Board transfer > rejects a retained old-runtime consent callback after normal pause and resume": 678, + "Teams current file authority and composed Board transfer > retries only fileInfo after a confirmed PUT and an explicitly resolved missing fileInfo receipt": 1189, + "Teams current file authority and composed Board transfer > stages native Board file consent on the first send from a cold reconstructed service": 844, + "Teams exact self-unknown source continuation > accepts the exact native file after a lost consent-card receipt without reposting": 1502, + "Teams exact self-unknown source continuation > does not exempt other unknown effects or changed native authority: %s": 4731, + "Teams exact self-unknown source continuation > retries only the confirmed native file-info stage with an exact audited phase/version, never its PUT": 2128, + "Teams file receipt API projection > does not consume a worker slot for a pending Teams transfer on a %s endpoint": 1542, + "Teams file receipt API projection > does not treat a caller-only transfer hint as ordinary delivery authority": 81, + "Teams file receipt API projection > generic publication worker ignores an existing %s Teams transfer on an active endpoint": 1024, + "Teams file receipt API projection > keeps a cancelled head locked while a consent-card receipt waits for the file tail": 82, + "Teams file receipt API projection > never projects a transfer from another conversation into Activity": 163, + "Teams file receipt API projection > offers only the exact %s stage actions": 253, + "Teams file receipt API projection > preserves all-published legacy batches without transfer metadata and excludes other comments": 69, + "Teams file receipt API projection > projects mixed delivered, declined, expired and cancelled file outcomes without making GET effects": 92, + "Teams file receipt API projection > refuses generic replay of a failed transfer without another provider attempt": 107, + "Teams file receipt API projection > refuses generic resolution with %s transfer preconditions without changing receipts": 527, + "Teams file receipt API projection > refuses terminal success or actions for %s": 389, + "Teams file receipt API projection > requires exact endpoint, conversation, publication and Board company scope": 132, + "Teams inline picture publication > keeps $surface picture delivery truthful for $outcome": 7050, + "Teams personal-recipient admission and durable restart > does not invent personal recipient proof when an AAD-only legacy delivery resumes without original runtime evidence": 233, + "Teams personal-recipient admission and durable restart > preserves actual-parser personal recipient proof across database admission and reconstructed restart": 239, + "Teams personal-recipient admission and durable restart > redacts a rejected personal destination instead of persisting its derived recipient proof": 143, + "Telegram callback-only native private responses > cancels a queued private callback notice after %s changes without public fallback": 772, + "Telegram callback-only native private responses > does not rebind a retained callback denial to another %s": 584, + "Telegram callback-only native private responses > does not refresh the callback deadline after service runtime-readiness waits": 127, + "Telegram callback-only native private responses > does not treat another actor's private chat as a reply destination": 125, + "Telegram callback-only native private responses > preserves an authenticated exact-actor DM denial without native ephemeral or public fallback": 170, + "Telegram callback-only native private responses > quarantines missing private acceptance receipts and never retries them publicly": 147, + "Telegram callback-only native private responses > records an authenticated denial before its recipient-bound send and deduplicates the exact callback": 215, + "Telegram callback-only native private responses > retains an exact-actor DM proof across restart (expired=%s)": 380, + "Telegram callback-only native private responses > retains the original private callback deadline across restart (expired=%s)": 370, + "Telegram close-owned progress retirement > does not borrow an unrelated run's interaction as progress-consumer evidence": 707, + "Telegram close-owned progress retirement > does not guess a close edit for %s": 4374, + "Telegram close-owned progress retirement > does not reclaim a progress lane consumed by a $state $kind prompt": 3239, + "Telegram close-owned progress retirement > keeps close uncommitted after %s of its retirement edit": 1432, + "Telegram close-owned progress retirement > preserves an attempted unknown %s after public operator cancellation": 1608, + "Telegram close-owned progress retirement > preserves an authored final that wins while close is admitted": 648, + "Telegram close-owned progress retirement > qualifies $provider close-owned progress retirement ($mode)": 7083, + "Telegram close-owned progress retirement > retires a status-interleaved working lane": 856, + "Telegram close-owned progress retirement > retires one working lane on close without cancelling the run or publishing its late final": 1054, + "Telegram close-owned progress retirement > treats a $state consumer with $attempts attempts conservatively": 1256, + "Telegram current rich inbound compatibility > keeps rich files and omissions scoped through lifecycle recovery (%s)": 1272, + "Telegram current rich inbound compatibility > retains current rich content through the pinned parser and service (%s)": 938, + "Telegram durable private draft Stop > automatically repairs an existing %s subscription after restart without dropping updates": 6559, + "Telegram durable private draft Stop > commits chat connection credentials atomically before waking maintenance": 612, + "Telegram durable private draft Stop > does not confirm a subscription from non-boolean ok=%s": 1288, + "Telegram durable private draft Stop > does not reuse an old draft ID after endpoint cascade deletion and same-bot re-binding": 1474, + "Telegram durable private draft Stop > does not withdraw an unowned or already-claimed final (%s)": 4326, + "Telegram durable private draft Stop > durably stops during the first draft RPC without cancelling a run, and never reuses its ID after restart": 894, + "Telegram durable private draft Stop > keeps ordinary output when automatic subscription repair is unsafe: %s": 6669, + "Telegram durable private draft Stop > parks pending Telegram subscription repair while its %s is inactive": 3861, + "Telegram durable private draft Stop > preserves an uncertain final after restart and a late Stop without automatic replay": 647, + "Telegram durable private draft Stop > recovers Telegram maintenance from committed work and becomes SQL quiet: %s": 10717, + "Telegram durable private draft Stop > refuses a retained Stop and later final after current %s authority changes": 2518, + "Telegram durable private draft Stop > retries an unknown subscription mutation after restart using freshly observed options, not a recovered confirmation flag": 1143, + "Telegram durable private draft Stop > returns 503 on failed Stop commit and accepts the exact verified retry before final send": 762, + "Telegram durable private draft Stop > sends ordinary complete output without Stop when subscription proof is %s": 4661, + "Telegram retained zero-message admission > recovers only ordinary source identity ($state / command=$command / $source)": 3408, + "Telegram source-bound optional media > imports exact permitted bytes or gives accurate recovery advice (%s)": 1872, + "Telegram source-bound optional media > retains exact durable media authority across restart (%s)": 842, + "tracks Slack callback surfaces independently and reports public URL drift": 261, + "tracks the actual Board Teams claim and retires recovery when its receipt commits": 1579, + "treats D-prefixed Slack status, new, and close callbacks as DM task controls even when the SDK flag is false": 877, + "turns a Slack slash command into a new native thread and one Paperclip task": 345, + "uses a live Cloud claim after chat service startup (ingress: %s)": 191, + "uses compact single-use Telegram action tokens and filters forged, expired, and oversized callbacks": 984, + "uses GitHub numeric user ids for linked authority and rechecks membership on every follow-up": 539, + "uses the Teams group-chat toggle without weakening channel resource gates": 498, + "wakes a failed retry notice only after %s cancellation commits": 1019, + "wakes a not-started retry notice after resumed admission is denied": 853, + "wakes a saved inbound notice when %s restores privacy access": 965, + "wakes a visible pre-run FIFO retirement only after %s commits": 4434, + "wakes accepted-response recovery from the real coordinator retry release": 559, + "wakes accepted-response recovery when its authenticated accepted-result journal arrives late": 2297, + "wakes an existing chat milestone when ordinary ingress reactivates its conversation": 1385, + "wakes chat dispatch after commit and refills free endpoint slots without the maintenance loop": 1416, + "wakes dormant accepted-response history from the real company membership restoration owner": 2388, + "wakes dormant accepted-response recovery after agent resume": 2343, + "wakes inbound notice retirement from a signed Slack Stop without a maintenance scan": 692, + "wakes interaction continuations from a committed response through %s": 10828, + "wakes parked Slack %s actions after board %s commits": 7018, + "wakes pre-run FIFO notices from real admission after quiet and becomes quiet again": 360, + "wakes saved native progress when %s restores eligibility": 5081, + "wakes Slack session sync from publication commit and leaves settled action queues quiet": 1543, + "withholds a committed one-time GitHub setup secret after final lease loss when its ref was superseded": 58, + "yields a %s inbound notice backlog between bounded passes without losing work": 6641 } } diff --git a/scripts/ci-typecheck-lane.mjs b/scripts/ci-typecheck-lane.mjs index eb8bd50bf69..139380955dd 100644 --- a/scripts/ci-typecheck-lane.mjs +++ b/scripts/ci-typecheck-lane.mjs @@ -1,22 +1,24 @@ #!/usr/bin/env node import { execFileSync, spawn, spawnSync } from "node:child_process"; +import { mkdirSync } from "node:fs"; import { availableParallelism, setPriority, totalmem } from "node:os"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { listLayers } from "../server/scripts/typecheck-layers.mjs"; -import { LOW_MEMORY_VARIABLE, EMIT_ONLY_VARIABLE } from "./run-tsc.mjs"; +import { LOW_MEMORY_VARIABLE, EMIT_ONLY_VARIABLE, runTsc } from "./run-tsc.mjs"; import { selectTestPrograms } from "./typecheck-test-programs.mjs"; -import { PROJECTS, selectTestProjects } from "./typecheck-test-projects.mjs"; +import { PROJECTS, orderProjectsLpt, selectTestProjects } from "./typecheck-test-projects.mjs"; export const SERIAL_BUILD_GAPS = ["@paperclipai/paperclip-runner"]; export const BACKGROUND_PRIORITY = 10; export const DEFAULT_MAX_CONCURRENCY = 3; -export const DEFAULT_TEST_PROGRAMS_CONCURRENCY = 2; +export const DEFAULT_TEST_PROGRAMS_CONCURRENCY = 3; export const PREPARE_RUNNER_VENDOR = "prepare runner vendor"; export const BUILD_SERVER_EMIT_ONLY = "build server without type checks"; const SERVER_DECLARATIONS = "server declarations"; export const CLI_GUIDANCE_SAFETY = "CLI guidance safety"; +export const UI_TSBUILDINFO = "ui/node_modules/.cache/paperclip-ui.tsbuildinfo"; const lowMemory = { [LOW_MEMORY_VARIABLE]: "1" }; /** @@ -45,7 +47,7 @@ export function computeResourceProfile({ cpus = availableParallelism(), totalMem serverLayerCheckers: 1, testProjectCheckers: 1, uiGomaxprocs: 2, - testProgramsConcurrency: 2, + testProgramsConcurrency: 3, testProgramsCheckers: 1, }; } @@ -58,7 +60,7 @@ export function computeResourceProfile({ cpus = availableParallelism(), totalMem serverLayerCheckers: 1, testProjectCheckers: 1, uiGomaxprocs: 4, - testProgramsConcurrency: 3, + testProgramsConcurrency: 4, testProgramsCheckers: 1, }; } @@ -200,6 +202,47 @@ export function shouldRunServerTypecheck(changedFiles, selectedProjects = []) { ); } +/** + * Rust typecheck (`cargo fmt --check && cargo check`) only reads files inside `packages/paperclip-runner/` + * and Rust toolchain config. When a PR only touches shared TypeScript packages (`packages/shared`, + * `packages/adapter-utils`, `packages/paperclip-eval-kernel`), running `typecheck:typescript` alone is sound + * and saves ~9s of serial prepare time. + */ +export function shouldRunRunnerRustTypecheck(changedFiles) { + if (!Array.isArray(changedFiles)) return true; + if (changedFiles.some(isGlobalTypecheckInput)) return true; + return changedFiles.some( + (file) => + file.startsWith("packages/paperclip-runner/") || + file.startsWith("rust-toolchain") || + file.startsWith(".cargo/"), + ); +} + +export function typecheckUiIncremental({ + root, + env = process.env, + spawnSyncImpl = spawnSync, + runTscImpl = runTsc, +}) { + const uiDir = path.join(root, "ui"); + const catalog = spawnSyncImpl(process.execPath, [path.join(root, "scripts", "storybook-catalog.mjs")], { + cwd: uiDir, + env, + stdio: "inherit", + }); + if (catalog.error) throw catalog.error; + if ((catalog.status ?? 1) !== 0) return catalog.status ?? 1; + + const tsBuildInfoPath = path.join(root, UI_TSBUILDINFO); + mkdirSync(path.dirname(tsBuildInfoPath), { recursive: true }); + const relTsBuildInfo = path.relative(uiDir, tsBuildInfoPath).split(path.sep).join(path.posix.sep); + return runTscImpl(["-p", "tsconfig.json", "--incremental", "--tsBuildInfoFile", relTsBuildInfo], { + cwd: uiDir, + env, + }).status; +} + function readGitDiff(root, rangeArgs, execGit) { const output = execGit(["diff", "--no-ext-diff", "--no-textconv", "--no-renames", "--name-only", "-z", ...rangeArgs, "--"], { cwd: root, @@ -277,20 +320,38 @@ export function planLane({ }) { const isPrMode = Array.isArray(changedFiles); const selectedBuildGaps = selectBuildGapPackages(buildGapPackages, changedFiles); - const selectedProjects = selectTestProjects(changedFiles, projects); + const selectedProjects = orderProjectsLpt(selectTestProjects(changedFiles, projects)); const runServer = shouldRunServerTypecheck(changedFiles, selectedProjects); const runReleaseRegistry = shouldRunReleaseRegistryTests(changedFiles); + const runRunnerRust = shouldRunRunnerRustTypecheck(changedFiles); const programSelection = selectTestPrograms(changedFiles); - const typecheckPackage = (name, background, needs) => ({ - name: `typecheck ${name}`, - command: "pnpm", - args: ["--filter", name, "typecheck"], - // UI typecheck runs ~7-10x faster without --singleThreaded while staying at ~4.4 GiB with bounded GOMAXPROCS. - env: name === "@paperclipai/ui" ? { GOMAXPROCS: String(resources.uiGomaxprocs) } : lowMemory, - background, - ...(needs ? { needs } : {}), - }); + const typecheckPackage = (name, background, needs) => { + if (name === "@paperclipai/ui") { + return { + name: `typecheck ${name}`, + command: "node", + args: ["scripts/ci-typecheck-lane.mjs", "--typecheck-ui"], + // UI typecheck runs ~7-10x faster without --singleThreaded while staying at ~4.4 GiB with bounded GOMAXPROCS, + // and persists ui/node_modules/.cache/paperclip-ui.tsbuildinfo for incremental reuse across runs. + env: { GOMAXPROCS: String(resources.uiGomaxprocs) }, + background, + ...(needs ? { needs } : {}), + }; + } + const args = + name === "@paperclipai/paperclip-runner" && !runRunnerRust + ? ["--filter", name, "run", "typecheck:typescript"] + : ["--filter", name, "typecheck"]; + return { + name: `typecheck ${name}`, + command: "pnpm", + args, + env: lowMemory, + background, + ...(needs ? { needs } : {}), + }; + }; const prepare = [{ name: "link workspace packages", command: "pnpm", args: ["run", "preflight:workspace-links"] }]; @@ -352,6 +413,11 @@ export function planLane({ tasks.push({ name: "release registry tests", command: "pnpm", args: ["run", "test:release-registry"] }); } + if (selectedBuildGaps.includes("@paperclipai/ui")) { + // Schedule UI right at t=0 alongside prepare runner vendor / release registry instead of behind small plugins. + tasks.push(typecheckPackage("@paperclipai/ui", true)); + } + if (programSelection.programs.length > 0 || programSelection.checkCoverage) { const programArgs = [ "scripts/typecheck-test-programs.mjs", @@ -386,19 +452,9 @@ export function planLane({ } if (runServer) { + // Start LPT-ordered test projects (longest non-incremental project like tests/runner-e2e first) + // alongside incremental server test layers so they never form a late tail wave. tasks.push( - ...testLayers.map((layer) => ({ - name: `server layer ${layer}`, - command: "node", - args: [ - "server/scripts/typecheck-layers.mjs", - "--layer", - layer, - "--checkers", - String(resources.serverLayerCheckers), - ], - needs: needsDeclarations, - })), ...selectedProjects.map((project) => ({ name: `test project ${project}`, command: "node", @@ -411,6 +467,18 @@ export function planLane({ ], needs: needsDeclarations, })), + ...testLayers.map((layer) => ({ + name: `server layer ${layer}`, + command: "node", + args: [ + "server/scripts/typecheck-layers.mjs", + "--layer", + layer, + "--checkers", + String(resources.serverLayerCheckers), + ], + needs: needsDeclarations, + })), { name: BUILD_SERVER_EMIT_ONLY, command: "pnpm", @@ -433,7 +501,7 @@ export function planLane({ tasks.push( ...selectedBuildGaps - .filter((name) => !SERIAL_BUILD_GAPS.includes(name)) + .filter((name) => !SERIAL_BUILD_GAPS.includes(name) && name !== "@paperclipai/ui") .map((name) => typecheckPackage(name, true, runServer && name === "paperclipai" ? needsRunnerVendor : undefined), ), @@ -624,50 +692,54 @@ function listBuildGapPackages(root) { if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { const args = process.argv.slice(2); - const resources = computeResourceProfile(); - let concurrency = resources.laneConcurrency; - let base; - let full = false; - let valid = true; - for (let i = 0; i < args.length; i += 1) { - const arg = args[i]; - if (arg === "--concurrency") { - concurrency = Number(args[++i]); - if (!Number.isInteger(concurrency) || concurrency < 1) valid = false; - } else if (arg === "--base") { - base = args[++i]; - if (!base || base.startsWith("--")) valid = false; - } else if (arg === "--full") { - full = true; - } else { - valid = false; - } - } - if (!valid) { - console.error("Usage: node scripts/ci-typecheck-lane.mjs [--concurrency ] [--base ] [--full]"); - process.exitCode = 2; + const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); + if (args.length === 1 && args[0] === "--typecheck-ui") { + process.exitCode = typecheckUiIncremental({ root, env: process.env }); } else { - const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); - const buildGapPackages = listBuildGapPackages(root); - if (buildGapPackages === null) { - process.exitCode = 1; + const resources = computeResourceProfile(); + let concurrency = resources.laneConcurrency; + let base; + let full = false; + let valid = true; + for (let i = 0; i < args.length; i += 1) { + const arg = args[i]; + if (arg === "--concurrency") { + concurrency = Number(args[++i]); + if (!Number.isInteger(concurrency) || concurrency < 1) valid = false; + } else if (arg === "--base") { + base = args[++i]; + if (!base || base.startsWith("--")) valid = false; + } else if (arg === "--full") { + full = true; + } else { + valid = false; + } + } + if (!valid) { + console.error("Usage: node scripts/ci-typecheck-lane.mjs [--concurrency ] [--base ] [--full] | --typecheck-ui"); + process.exitCode = 2; } else { - const testLayers = listLayers(path.join(root, "server")) - .filter((layer) => !layer.emitsDeclarations) - .map((layer) => layer.name); - const scope = resolveScope({ root, env: process.env, base, full }); - const scopeDetail = - scope.mode === "pr" - ? `PR (${scope.changedFiles.length} changed files via ${scope.reason})` - : `full (${scope.reason})`; - const lanePlan = planLane({ buildGapPackages, testLayers, changedFiles: scope.changedFiles, resources }); - console.log( - `typecheck lane: ${concurrency} at a time (${availableParallelism()} vCPU, ${(totalmem() / 1024 ** 3).toFixed(1)} GiB; ` + - `decl=${resources.serverDeclCheckers}, layers=${resources.serverLayerCheckers}, ui=${resources.uiGomaxprocs}); ` + - `mode: ${scopeDetail}; prepare: ${lanePlan.prepare.length}; tasks: ${lanePlan.tasks.length}; ` + - `build gaps: ${buildGapPackages.join(", ")}`, - ); - process.exitCode = await runLane({ ...lanePlan, concurrency, cwd: root }); + const buildGapPackages = listBuildGapPackages(root); + if (buildGapPackages === null) { + process.exitCode = 1; + } else { + const testLayers = listLayers(path.join(root, "server")) + .filter((layer) => !layer.emitsDeclarations) + .map((layer) => layer.name); + const scope = resolveScope({ root, env: process.env, base, full }); + const scopeDetail = + scope.mode === "pr" + ? `PR (${scope.changedFiles.length} changed files via ${scope.reason})` + : `full (${scope.reason})`; + const lanePlan = planLane({ buildGapPackages, testLayers, changedFiles: scope.changedFiles, resources }); + console.log( + `typecheck lane: ${concurrency} at a time (${availableParallelism()} vCPU, ${(totalmem() / 1024 ** 3).toFixed(1)} GiB; ` + + `decl=${resources.serverDeclCheckers}, layers=${resources.serverLayerCheckers}, ui=${resources.uiGomaxprocs}); ` + + `mode: ${scopeDetail}; prepare: ${lanePlan.prepare.length}; tasks: ${lanePlan.tasks.length}; ` + + `build gaps: ${buildGapPackages.join(", ")}`, + ); + process.exitCode = await runLane({ ...lanePlan, concurrency, cwd: root }); + } } } } diff --git a/scripts/ci/nightly-only-suites.json b/scripts/ci/nightly-only-suites.json index d10b6e5ec3d..5a15e1ef8f2 100644 --- a/scripts/ci/nightly-only-suites.json +++ b/scripts/ci/nightly-only-suites.json @@ -289,6 +289,12 @@ "reason": "Native runner replacement, lease, or continuation recovery soak (89.9s in run 45238253588)", "measuredMs": 89949 }, + { + "path": "server/src/services/ssh-remote-workspace-heartbeat-cli.integration.test.ts", + "category": "workspace-recovery-soak", + "reason": "Real SSH server remote-workspace CLI heartbeat soak (88.9s in run 45440355579)", + "measuredMs": 88895 + }, { "path": "server/src/__tests__/heartbeat-workspace-busy.test.ts", "category": "workspace-recovery-soak", @@ -379,6 +385,12 @@ "reason": "Plugin scheduled-work real-clock deadline/quietness soak (70s)", "measuredMs": 69649 }, + { + "path": "server/src/services/ssh-remote-workspace-heartbeat-codex.integration.test.ts", + "category": "workspace-recovery-soak", + "reason": "Real SSH server remote-workspace Codex heartbeat soak (69.4s in run 45440355579)", + "measuredMs": 69357 + }, { "path": "server/src/__tests__/heartbeat-held-comment-wake.test.ts", "category": "recovery-idle-maintenance-soak", @@ -403,6 +415,18 @@ "reason": "Real-clock recovery, census, idle-quietness, retention, deadline, or background-work soak (65.7s in run 45238253588)", "measuredMs": 65684 }, + { + "path": "server/src/services/ssh-remote-workspace-heartbeat-claude.integration.test.ts", + "category": "workspace-recovery-soak", + "reason": "Real SSH server remote-workspace Claude heartbeat soak (64.2s in run 45440355579)", + "measuredMs": 64218 + }, + { + "path": "server/src/services/ssh-remote-workspace-heartbeat-gemini.integration.test.ts", + "category": "workspace-recovery-soak", + "reason": "Real SSH server remote-workspace Gemini heartbeat soak (61.8s in run 45440355579)", + "measuredMs": 61817 + }, { "path": "server/src/services/native-runtime/native-safe-replacement.test.ts", "category": "restart-lease-soak", @@ -697,6 +721,12 @@ "reason": "Remote workspace snapshot reuse soak (39s)", "measuredMs": 38856 }, + { + "path": "server/src/services/quarantined-task-retry.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Quarantined task retry soak (38.8s in run 45440355579)", + "measuredMs": 38826 + }, { "path": "server/src/__tests__/native-workspace-sync-history.test.ts", "category": "workspace-recovery-soak", @@ -901,6 +931,12 @@ "reason": "Remote/git workspace recovery, migration, or heavy working-copy soak (30.4s in run 45238253588)", "measuredMs": 30390 }, + { + "path": "server/src/services/remote-workspace-readonly-inventory-entries.test.ts", + "category": "workspace-recovery-soak", + "reason": "Remote workspace readonly inventory entries soak (30.4s in run 45440355579)", + "measuredMs": 30380 + }, { "path": "server/src/services/heartbeat/run-lifecycle.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1063,6 +1099,12 @@ "reason": "Real-clock soak, watchdog, drain, sweep, archive, or heavy lifecycle integration (25.2s in run 45238253588)", "measuredMs": 25170 }, + { + "path": "server/src/__tests__/heartbeat-isolated-continuation-hold.test.ts", + "category": "restart-lease-soak", + "reason": "Isolated continuation hold soak (25.2s in run 45440355579)", + "measuredMs": 25154 + }, { "path": "server/src/services/fresh-continuation-move-forward-offer.test.ts", "category": "restart-lease-soak", @@ -1195,6 +1237,12 @@ "reason": "Real-clock recovery, census, idle-quietness, retention, deadline, or background-work soak (22.3s in run 45238253588)", "measuredMs": 22254 }, + { + "path": "server/src/__tests__/heartbeat-clean-continuation-dispatch.test.ts", + "category": "restart-lease-soak", + "reason": "Clean continuation dispatch soak (22.2s in run 45440355579)", + "measuredMs": 22213 + }, { "path": "server/src/__tests__/heartbeat-agent-directory-busy.test.ts", "category": "workspace-recovery-soak", @@ -1339,6 +1387,12 @@ "reason": "Execution workspace reopen git/DB soak (20.3s in run 45238253588)", "measuredMs": 20305 }, + { + "path": "server/src/__tests__/environment-retained-orphan-listing-cost.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Retained orphan listing SQL query-cost benchmark (20.2s in run 45440355579)", + "measuredMs": 20229 + }, { "path": "server/src/__tests__/heartbeat-remote-workspace-busy.test.ts", "category": "workspace-recovery-soak", @@ -1393,6 +1447,12 @@ "reason": "External provider, adapter CLI, sandbox-provider, or container-image integration soak (19.8s in run 45238253588)", "measuredMs": 19765 }, + { + "path": "server/src/__tests__/plugin-loader-activation-timeout.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Real-clock plugin loader activation timeout soak (19.6s in run 45440355579)", + "measuredMs": 19637 + }, { "path": "server/src/__tests__/chat-completion-delivery.test.ts", "category": "channel-integration-soak", @@ -1441,6 +1501,12 @@ "reason": "Agent file durability storage soak (19.1s in run 45238253588)", "measuredMs": 19117 }, + { + "path": "server/src/__tests__/abandoned-workspace-files-hold.test.ts", + "category": "workspace-recovery-soak", + "reason": "Abandoned workspace files hold soak (19.0s in run 45440355579)", + "measuredMs": 19046 + }, { "path": "server/src/services/native-runtime/plugin-task-source-recovery.integration.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1453,6 +1519,12 @@ "reason": "Heavy multi-component integration suite (covered on master/release-verify/full-ci) (18.6s in run 45238253588)", "measuredMs": 18587 }, + { + "path": "server/src/__tests__/heartbeat-answer-behind-settling-run.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Settling-run answer race soak (18.4s in run 45440355579)", + "measuredMs": 18391 + }, { "path": "server/src/services/native-runtime/create-skill.integration.test.ts", "category": "integration-soak", @@ -1471,6 +1543,18 @@ "reason": "Real-clock recovery, census, idle-quietness, retention, deadline, or background-work soak (18.0s in run 45238253588)", "measuredMs": 17969 }, + { + "path": "server/src/__tests__/heartbeat-context-compaction-execution.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Heartbeat context compaction execution soak (18.0s in run 45440355579)", + "measuredMs": 17964 + }, + { + "path": "server/src/services/native-runtime/native-cancelled-workspace-preservation.test.ts", + "category": "workspace-recovery-soak", + "reason": "Cancelled workspace preservation soak (17.9s in run 45440355579)", + "measuredMs": 17893 + }, { "path": "server/src/__tests__/merged-pr-confirmation-work.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1525,6 +1609,12 @@ "reason": "Heavy multi-component integration suite (covered on master/release-verify/full-ci) (16.8s in run 45238253588)", "measuredMs": 16813 }, + { + "path": "server/src/__tests__/legacy-workspace-rehome.test.ts", + "category": "workspace-recovery-soak", + "reason": "Legacy workspace rehome migration soak (16.8s in run 45440355579)", + "measuredMs": 16753 + }, { "path": "server/src/__tests__/recovery-durable-wait-projection.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1573,6 +1663,12 @@ "reason": "Heavy native-runtime continuation, lease, handoff, or multi-turn soak (16.2s in run 45238253588)", "measuredMs": 16226 }, + { + "path": "server/src/__tests__/heartbeat-lease-release-before-runner-attach.test.ts", + "category": "restart-lease-soak", + "reason": "Heartbeat lease release before runner attach soak (16.2s in run 45440355579)", + "measuredMs": 16200 + }, { "path": "server/src/services/native-runtime/native-provider-capacity.integration.test.ts", "category": "integration-soak", @@ -1585,6 +1681,12 @@ "reason": "Real-clock soak, watchdog, drain, sweep, archive, or heavy lifecycle integration (16.0s in run 45238253588)", "measuredMs": 16037 }, + { + "path": "server/src/__tests__/heartbeat-reassignment-deferred-wake.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Heartbeat reassignment deferred-wake soak (16.0s in run 45440355579)", + "measuredMs": 16031 + }, { "path": "server/src/__tests__/decision-expiry-work.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1597,6 +1699,12 @@ "reason": "Real-clock recovery, census, idle-quietness, retention, deadline, or background-work soak (15.7s in run 45238253588)", "measuredMs": 15693 }, + { + "path": "server/src/services/setup-failure-after-work-continuation.test.ts", + "category": "restart-lease-soak", + "reason": "Setup failure after work continuation soak (15.5s in run 45440355579)", + "measuredMs": 15457 + }, { "path": "server/src/__tests__/chat-native-progress-work.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1609,6 +1717,12 @@ "reason": "Real-clock soak, watchdog, drain, sweep, archive, or heavy lifecycle integration (15.2s in run 45238253588)", "measuredMs": 15224 }, + { + "path": "server/src/__tests__/heartbeat-workspace-finalize-branch.test.ts", + "category": "workspace-recovery-soak", + "reason": "Heartbeat workspace finalize-branch git soak (15.0s in run 45440355579)", + "measuredMs": 15046 + }, { "path": "server/src/services/remote-workspace-snapshot-storage.test.ts", "category": "workspace-recovery-soak", @@ -1729,6 +1843,12 @@ "reason": "Real-clock soak, watchdog, drain, sweep, archive, or heavy lifecycle integration (13.5s in run 45238253588)", "measuredMs": 13543 }, + { + "path": "server/src/__tests__/never-started-retry-cancellation-hold.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Never-started retry cancellation hold soak (13.5s in run 45440355579)", + "measuredMs": 13511 + }, { "path": "server/src/__tests__/eval-feedback-recovery.integration.test.ts", "category": "recovery-idle-maintenance-soak", @@ -1957,6 +2077,12 @@ "reason": "Remote/git workspace recovery, migration, or heavy working-copy soak (10.5s in run 45238253588)", "measuredMs": 10495 }, + { + "path": "server/src/__tests__/plugin-connector-tool-timeout.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Real-clock plugin connector tool timeout soak (10.5s in run 45440355579)", + "measuredMs": 10473 + }, { "path": "server/src/services/native-runtime/agent-instruction-tools.integration.test.ts", "category": "integration-soak", @@ -1987,6 +2113,12 @@ "reason": "Real-clock recovery, census, idle-quietness, retention, deadline, or background-work soak (10.4s in run 45238253588)", "measuredMs": 10383 }, + { + "path": "server/src/services/native-runtime/native-harness-backup-upload-deadline.integration.test.ts", + "category": "restart-lease-soak", + "reason": "Native harness backup upload deadline soak (10.3s in run 45440355579)", + "measuredMs": 10256 + }, { "path": "server/src/services/legacy-source-unavailable-continuation.test.ts", "category": "restart-lease-soak", @@ -2047,6 +2179,12 @@ "reason": "Heavy multi-component integration suite (covered on master/release-verify/full-ci) (9.9s in run 45238253588)", "measuredMs": 9905 }, + { + "path": "server/src/__tests__/plugin-workspace-terminal-hold.integration.test.ts", + "category": "workspace-recovery-soak", + "reason": "Plugin workspace terminal hold integration soak (9.9s in run 45440355579)", + "measuredMs": 9863 + }, { "path": "server/src/services/native-runtime/native-harness-filesystem-independence-continuation.integration.test.ts", "category": "restart-lease-soak", @@ -2137,6 +2275,12 @@ "reason": "External provider, adapter CLI, sandbox-provider, or container-image integration soak (9.5s in run 45238253588)", "measuredMs": 9454 }, + { + "path": "server/src/services/online-durable-data-migration-postgres.test.ts", + "category": "workspace-recovery-soak", + "reason": "Online durable-data migration Postgres soak (9.4s in run 45440355579)", + "measuredMs": 9418 + }, { "path": "server/src/__tests__/plugin-runner-task.integration.test.ts", "category": "integration-soak", @@ -2155,6 +2299,12 @@ "reason": "Heavy git/worktree workspace preparation, rotation, or cleanup soak (9.3s in run 45238253588)", "measuredMs": 9335 }, + { + "path": "server/src/__tests__/tool-gateway-named-gateway-deadlock.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Tool gateway named-gateway deadlock soak (9.3s in run 45440355579)", + "measuredMs": 9298 + }, { "path": "server/src/__tests__/chat-run-milestone-recovery-work.test.ts", "category": "recovery-idle-maintenance-soak", @@ -2179,6 +2329,12 @@ "reason": "Heavy multi-component integration suite (covered on master/release-verify/full-ci) (9.2s in run 45238253588)", "measuredMs": 9151 }, + { + "path": "server/src/__tests__/native-plan-review-card-finalizer.test.ts", + "category": "restart-lease-soak", + "reason": "Native plan-review card finalizer soak (9.1s in run 45440355579)", + "measuredMs": 9104 + }, { "path": "server/src/maintenance/native-harness-prestage-runtime.test.ts", "category": "restart-lease-soak", @@ -2209,6 +2365,12 @@ "reason": "Heavy multi-component integration suite (covered on master/release-verify/full-ci) (9.0s in run 45238253588)", "measuredMs": 8957 }, + { + "path": "server/src/services/recovery/restored-configuration.test.ts", + "category": "recovery-idle-maintenance-soak", + "reason": "Restored configuration recovery soak (8.9s in run 45440355579)", + "measuredMs": 8921 + }, { "path": "server/src/__tests__/board-native-attachments.integration.test.ts", "category": "integration-soak", diff --git a/scripts/e2e-shard-durations.json b/scripts/e2e-shard-durations.json index c1fa2c07c4f..a12a6c17efc 100644 --- a/scripts/e2e-shard-durations.json +++ b/scripts/e2e-shard-durations.json @@ -1,85 +1,81 @@ { - "$comment": "Generated by node scripts/ci/refresh-test-durations.mjs from successful .github/workflows/pr.yml runs of PRs merged into master, each pinned to the PR's final head SHA. Per spec: the sum of gaps between consecutive Playwright result lines in 'Run e2e tests' (one worker), so fixture and navigation time count; tests located in a *.shared.ts file are attributed to the shard's matching spec. Median across runs. scripts/e2e-shard.mjs uses these weights only to place specs on shards; they never change which specs run. Missing specs retain their prior weight or the median fallback.", + "$comment": "Refreshed from successful merged PR #22729 (run 45440355579) and PR #22679 (run 45314200835) with exact per-test split totals for agent-chat-projects, chat-adapters-ui-providers, and chat-adapters-ui-messaging. scripts/e2e-shard.mjs uses these weights only to place specs on shards; they never change which specs run.", "unit": "ms", "sources": [ { - "pull": 19613, - "run": 42296374365, - "attempt": 2, - "sha": "cd8c9cd07c192832fa180a845577d36fb0bc41c8", - "url": "https://github.com/paperclipai/paperclip/actions/runs/42296374365" + "pull": 22729, + "run": 45440355579, + "attempt": 1, + "sha": "6ca7a27481e1af45c60069a563632f2b00a008a7", + "url": "https://github.com/paperclipai/paperclip/actions/runs/45440355579" }, { - "pull": 19191, - "run": 42297700476, - "attempt": 1, - "sha": "36c0400008a12ec74ed65a0e17951f1b47221a02", - "url": "https://github.com/paperclipai/paperclip/actions/runs/42297700476" - }, - { - "pull": 19176, - "run": 42296994179, - "attempt": 1, - "sha": "d0a937768da9be297485323c5b905eb63371ec15", - "url": "https://github.com/paperclipai/paperclip/actions/runs/42296994179" + "pull": 22679, + "run": 45314200835, + "attempt": 3, + "sha": "d930b4a9b30bc2d9e9a80f5ae93ca95a659bc52c", + "url": "https://github.com/paperclipai/paperclip/actions/runs/45314200835" } ], "coverage": { - "measured": 51, - "withSetup": 51, - "inventory": 51 + "measured": 54, + "withSetup": 54, + "inventory": 54 }, "durations": { - "tests/e2e/acp-stop-continuation.spec.ts": 67299, - "tests/e2e/action-test-agent-picker.spec.ts": 13115, - "tests/e2e/agent-chat-messages.spec.ts": 42000, - "tests/e2e/agent-chat-projects.spec.ts": 155000, - "tests/e2e/agent-chat-sessions.spec.ts": 80000, - "tests/e2e/agent-configuration.spec.ts": 101200, - "tests/e2e/agentmail.spec.ts": 22000, - "tests/e2e/ai-personal-connection-recovery.spec.ts": 14900, - "tests/e2e/announcement-first-session.spec.ts": 11600, - "tests/e2e/announcement-placement.spec.ts": 20400, - "tests/e2e/app-not-connected.spec.ts": 15300, - "tests/e2e/applications-crud.spec.ts": 11400, - "tests/e2e/apps-prosumer-mcp-flow.spec.ts": 13276, - "tests/e2e/archived-company-url.spec.ts": 6500, - "tests/e2e/artifact-tab-arrival.spec.ts": 11800, - "tests/e2e/artifact-uploads.spec.ts": 34900, - "tests/e2e/board-attachment-receipts.spec.ts": 78000, - "tests/e2e/cases-read-only.spec.ts": 10500, - "tests/e2e/chat-adapters-ui-messaging.spec.ts": 125000, - "tests/e2e/chat-adapters-ui-providers.spec.ts": 181541, - "tests/e2e/chunk-load-recovery.spec.ts": 16330, - "tests/e2e/classic-workspace.spec.ts": 7600, - "tests/e2e/cloud-auth.spec.ts": 40400, - "tests/e2e/company-context-refresh.spec.ts": 4128, - "tests/e2e/completed-task-paused-assignee.spec.ts": 25016, - "tests/e2e/composer-stop.spec.ts": 55400, - "tests/e2e/conference-room-typing-intro.spec.ts": 53600, - "tests/e2e/connection-intents.spec.ts": 20900, - "tests/e2e/connection-reviews.spec.ts": 75000, - "tests/e2e/coordinator-inbox-views.spec.ts": 21600, - "tests/e2e/daytona-connector.spec.ts": 4700, - "tests/e2e/disconnect-resilience.spec.ts": 55000, - "tests/e2e/disconnect-write-recovery.spec.ts": 61000, - "tests/e2e/document-image-gallery.spec.ts": 47800, - "tests/e2e/mcp-user-stories.spec.ts": 45600, - "tests/e2e/new-task-picker-touch.spec.ts": 25700, - "tests/e2e/onboarding.spec.ts": 70300, - "tests/e2e/paused-composer.spec.ts": 60500, - "tests/e2e/plan-task-fixture.spec.ts": 7828, - "tests/e2e/project-repositories.spec.ts": 16000, - "tests/e2e/railway-catalog.spec.ts": 3000, - "tests/e2e/runner-e2e-dashboard.spec.ts": 4700, - "tests/e2e/runner-task-creation.spec.ts": 32437, - "tests/e2e/sidebar-takeover.spec.ts": 7700, - "tests/e2e/signoff-policy.spec.ts": 52229, - "tests/e2e/smoke-lab-p1-p4.spec.ts": 19700, - "tests/e2e/smoke-lab-p5-p7.spec.ts": 16416, - "tests/e2e/task-loading-frame.spec.ts": 37600, - "tests/e2e/task-reload.spec.ts": 21200, - "tests/e2e/text-attachment-tabs.spec.ts": 18200, - "tests/e2e/unikraft-connector.spec.ts": 4000 + "tests/e2e/acp-stop-continuation.spec.ts": 69300, + "tests/e2e/action-test-agent-picker.spec.ts": 7200, + "tests/e2e/agent-chat-messages.spec.ts": 69900, + "tests/e2e/agent-chat-projects-handoff.spec.ts": 93000, + "tests/e2e/agent-chat-projects.spec.ts": 88900, + "tests/e2e/agent-chat-sessions.spec.ts": 104100, + "tests/e2e/agent-configuration.spec.ts": 111700, + "tests/e2e/agentmail.spec.ts": 17100, + "tests/e2e/ai-personal-connection-recovery.spec.ts": 12900, + "tests/e2e/announcement-first-session.spec.ts": 10900, + "tests/e2e/announcement-placement.spec.ts": 22700, + "tests/e2e/app-not-connected.spec.ts": 16700, + "tests/e2e/applications-crud.spec.ts": 9400, + "tests/e2e/apps-prosumer-mcp-flow.spec.ts": 21500, + "tests/e2e/archived-company-url.spec.ts": 6200, + "tests/e2e/artifact-tab-arrival.spec.ts": 18100, + "tests/e2e/artifact-uploads.spec.ts": 45900, + "tests/e2e/board-attachment-receipts.spec.ts": 147338, + "tests/e2e/cases-read-only.spec.ts": 9900, + "tests/e2e/chat-adapters-ui-messaging-batches.spec.ts": 95000, + "tests/e2e/chat-adapters-ui-messaging.spec.ts": 100900, + "tests/e2e/chat-adapters-ui-providers-catalog.spec.ts": 133000, + "tests/e2e/chat-adapters-ui-providers.spec.ts": 86800, + "tests/e2e/chunk-load-recovery.spec.ts": 17000, + "tests/e2e/classic-workspace.spec.ts": 10000, + "tests/e2e/cloud-auth.spec.ts": 49000, + "tests/e2e/company-context-refresh.spec.ts": 3600, + "tests/e2e/completed-task-paused-assignee.spec.ts": 32400, + "tests/e2e/composer-stop.spec.ts": 41900, + "tests/e2e/conference-room-typing-intro.spec.ts": 60600, + "tests/e2e/connection-intents.spec.ts": 25600, + "tests/e2e/connection-reviews.spec.ts": 121300, + "tests/e2e/coordinator-inbox-views.spec.ts": 31400, + "tests/e2e/daytona-connector.spec.ts": 6300, + "tests/e2e/disconnect-resilience.spec.ts": 116700, + "tests/e2e/disconnect-write-recovery.spec.ts": 56600, + "tests/e2e/document-image-gallery.spec.ts": 49400, + "tests/e2e/mcp-user-stories.spec.ts": 45900, + "tests/e2e/new-task-picker-touch.spec.ts": 23500, + "tests/e2e/onboarding.spec.ts": 78300, + "tests/e2e/paused-composer.spec.ts": 65200, + "tests/e2e/plan-task-fixture.spec.ts": 9200, + "tests/e2e/project-repositories.spec.ts": 19000, + "tests/e2e/railway-catalog.spec.ts": 5400, + "tests/e2e/runner-e2e-dashboard.spec.ts": 5378, + "tests/e2e/runner-task-creation.spec.ts": 35000, + "tests/e2e/sidebar-takeover.spec.ts": 12100, + "tests/e2e/signoff-policy.spec.ts": 57208, + "tests/e2e/smoke-lab-p1-p4.spec.ts": 22500, + "tests/e2e/smoke-lab-p5-p7.spec.ts": 19100, + "tests/e2e/task-loading-frame.spec.ts": 44200, + "tests/e2e/task-reload.spec.ts": 26600, + "tests/e2e/text-attachment-tabs.spec.ts": 16000, + "tests/e2e/unikraft-connector.spec.ts": 5800 } } diff --git a/scripts/e2e-shard.mjs b/scripts/e2e-shard.mjs index b01ac28918c..75610783e87 100644 --- a/scripts/e2e-shard.mjs +++ b/scripts/e2e-shard.mjs @@ -20,6 +20,7 @@ export const IGNORED_SPECS = ["in-feed-native/**", "multi-user.spec.ts", "multi- // with `SERIAL_SPECS` in tests/e2e/playwright.config.ts — // `scripts/__tests__/e2e-shard.test.mjs` fails if the two ever drift. export const SERIAL_SPECS = [ + "agent-chat-projects-handoff.spec.ts", "agent-chat-projects.spec.ts", "agent-chat-sessions.spec.ts", "agent-configuration.spec.ts", @@ -36,11 +37,12 @@ export const SERIAL_SPECS = [ // Matches the 4-vCPU CI worker count in tests/e2e/playwright.config.ts for // shards that contain only parallel-safe specs. Empirical wall-clock speedup -// on 4-vCPU runners with 2 Chromium workers sharing one server + Postgres is -// ~1.5x (measured on run 45245582904); using the empirical factor avoids -// under-allocating shards to parallel specs. +// on 4-vCPU runners with 2 Chromium workers sharing one server + non-durable +// Postgres is ~1.85x (measured 1.78x-1.91x across shards 4-8 on run +// 45440355579); using the empirical factor keeps serial and parallel shards +// balanced across 12 shards. export const DEFAULT_PARALLEL_WORKERS = 2; -export const EFFECTIVE_PARALLEL_SPEEDUP = 1.5; +export const EFFECTIVE_PARALLEL_SPEEDUP = 1.85; export function isSerialE2eSpec(file) { return SERIAL_SPECS.includes(path.posix.basename(file.split(path.sep).join("/"))); diff --git a/scripts/general-server-shard-durations.json b/scripts/general-server-shard-durations.json index 0f158636879..e9b11bcf4fd 100644 --- a/scripts/general-server-shard-durations.json +++ b/scripts/general-server-shard-durations.json @@ -3,600 +3,614 @@ "unit": "ms", "sources": [ { - "pull": 22679, - "run": 45238253588, + "run": 45440355579, "attempt": 1, - "sha": "8d513d5b1ab8fbfa2905d41be44c165b03a8a320", - "url": "https://github.com/paperclipai/paperclip/actions/runs/45238253588" + "sha": "6ca7a27481e1af45c60069a563632f2b00a008a7", + "url": "https://github.com/paperclipai/paperclip/actions/runs/45440355579" } ], "coverage": { - "measured": 2052, - "withSetup": 2052, - "inventory": 2033 + "measured": 1577, + "withSetup": 1577, + "inventory": 2142 }, "durations": { - "server/scripts/bundle-runtime.test.mjs": 2860, - "server/scripts/prepare-runner-vendor.test.mjs": 1759, - "server/scripts/reporting-lock-policy.test.mjs": 798, - "server/scripts/sleep-otel-setup.test.mjs": 791, - "server/scripts/sleep-qualification.test.mjs": 908, - "server/scripts/typecheck-layers.test.mjs": 7818, - "server/scripts/verify-runner-vendor-dependencies.test.mjs": 1068, - "server/src/__tests__/abandoned-workspace-files-hold.test.ts": 15152, - "server/src/__tests__/access-service.test.ts": 9874, - "server/src/__tests__/access-validators.test.ts": 1606, - "server/src/__tests__/activity-credential-access.test.ts": 6480, - "server/src/__tests__/activity-log-responsible-user.test.ts": 8056, - "server/src/__tests__/activity-service.test.ts": 11380, - "server/src/__tests__/adapter-cost-failure-paths.test.ts": 7243, - "server/src/__tests__/adapter-models.test.ts": 5837, - "server/src/__tests__/adapter-registry.test.ts": 6247, - "server/src/__tests__/adapter-session-codecs.test.ts": 1808, - "server/src/__tests__/admission-independent-of-cleanup.test.ts": 10330, - "server/src/__tests__/agent-auth-identity-transfer.test.ts": 7068, - "server/src/__tests__/agent-auth-jwt.test.ts": 1662, - "server/src/__tests__/agent-auth-middleware.test.ts": 6299, - "server/src/__tests__/agent-auth-prepared-statements.test.ts": 6177, - "server/src/__tests__/agent-avatars.test.ts": 7769, - "server/src/__tests__/agent-budget-configuration.test.ts": 7808, + "server/scripts/build-config.test.mjs": 10828, + "server/scripts/bundle-runtime.test.mjs": 2999, + "server/scripts/prepare-runner-vendor.test.mjs": 1400, + "server/scripts/reporting-lock-policy.test.mjs": 838, + "server/scripts/sleep-otel-setup.test.mjs": 945, + "server/scripts/sleep-qualification.test.mjs": 978, + "server/scripts/typecheck-layers.test.mjs": 9834, + "server/scripts/verify-runner-vendor-dependencies.test.mjs": 805, + "server/src/__tests__/abandoned-workspace-files-hold.test.ts": 19046, + "server/src/__tests__/access-service.test.ts": 10890, + "server/src/__tests__/access-validators.test.ts": 1051, + "server/src/__tests__/activity-credential-access.test.ts": 7026, + "server/src/__tests__/activity-log-responsible-user.test.ts": 7102, + "server/src/__tests__/activity-service.test.ts": 21655, + "server/src/__tests__/adapter-cost-failure-paths.test.ts": 9260, + "server/src/__tests__/adapter-models.test.ts": 6288, + "server/src/__tests__/adapter-registry.test.ts": 6477, + "server/src/__tests__/adapter-session-codecs.test.ts": 1997, + "server/src/__tests__/admission-independent-of-cleanup.test.ts": 12635, + "server/src/__tests__/agent-auth-identity-transfer.test.ts": 8036, + "server/src/__tests__/agent-auth-jwt.test.ts": 1283, + "server/src/__tests__/agent-auth-middleware.test.ts": 7331, + "server/src/__tests__/agent-auth-prepared-statements.test.ts": 7540, + "server/src/__tests__/agent-avatars.test.ts": 14246, + "server/src/__tests__/agent-budget-configuration.test.ts": 6576, "server/src/__tests__/agent-chat-messages.test.ts": 34676, - "server/src/__tests__/agent-commentary-daytona-smoke.test.ts": 2229, - "server/src/__tests__/agent-commentary-helper.test.ts": 12029, - "server/src/__tests__/agent-commentary-reader.test.ts": 6994, - "server/src/__tests__/agent-commentary-skills.test.ts": 1745, + "server/src/__tests__/agent-commentary-daytona-smoke.test.ts": 2310, + "server/src/__tests__/agent-commentary-helper.test.ts": 12362, + "server/src/__tests__/agent-commentary-reader.test.ts": 6792, + "server/src/__tests__/agent-commentary-skills.test.ts": 1874, "server/src/__tests__/agent-commentary.integration.test.ts": 16813, - "server/src/__tests__/agent-config-read-access.test.ts": 9434, - "server/src/__tests__/agent-configuration-revision.test.ts": 1934, - "server/src/__tests__/agent-configuration-save.test.ts": 9334, + "server/src/__tests__/agent-config-read-access.test.ts": 9876, + "server/src/__tests__/agent-configuration-revision.test.ts": 1907, + "server/src/__tests__/agent-configuration-save.test.ts": 12621, "server/src/__tests__/agent-connection-catalog.integration.test.ts": 7637, - "server/src/__tests__/agent-conversation-delivery.test.ts": 9155, + "server/src/__tests__/agent-conversation-delivery.test.ts": 9506, "server/src/__tests__/agent-conversations.test.ts": 30413, - "server/src/__tests__/agent-default-configure-grants.test.ts": 6637, - "server/src/__tests__/agent-directory-lock-crash-point.test.ts": 6090, - "server/src/__tests__/agent-directory-probe.test.ts": 3480, - "server/src/__tests__/agent-directory-remote-checkpoint-lock.test.ts": 11799, + "server/src/__tests__/agent-default-configure-grants.test.ts": 8492, + "server/src/__tests__/agent-directory-lock-crash-point.test.ts": 6804, + "server/src/__tests__/agent-directory-probe.test.ts": 3446, + "server/src/__tests__/agent-directory-remote-checkpoint-lock.test.ts": 11747, "server/src/__tests__/agent-directory-working-copies.test.ts": 110993, - "server/src/__tests__/agent-file-checkpoint-locking.test.ts": 10603, - "server/src/__tests__/agent-file-checkpoints.test.ts": 5828, + "server/src/__tests__/agent-file-checkpoint-locking.test.ts": 8499, + "server/src/__tests__/agent-file-checkpoints.test.ts": 7656, "server/src/__tests__/agent-file-durability.test.ts": 19117, - "server/src/__tests__/agent-file-restore-locking.test.ts": 7419, - "server/src/__tests__/agent-harness-verification-preflight.test.ts": 7845, - "server/src/__tests__/agent-harness-verification-provider-api.test.ts": 10297, - "server/src/__tests__/agent-harness-verification-remote.test.ts": 6926, - "server/src/__tests__/agent-harness-verification.test.ts": 6941, + "server/src/__tests__/agent-file-restore-locking.test.ts": 7994, + "server/src/__tests__/agent-harness-verification-preflight.test.ts": 8076, + "server/src/__tests__/agent-harness-verification-provider-api.test.ts": 13173, + "server/src/__tests__/agent-harness-verification-remote.test.ts": 8080, + "server/src/__tests__/agent-harness-verification.test.ts": 7674, "server/src/__tests__/agent-hire-ai-connections.test.ts": 28940, - "server/src/__tests__/agent-identity-master-key.test.ts": 1135, - "server/src/__tests__/agent-identity.test.ts": 31776, - "server/src/__tests__/agent-instance-secrets.test.ts": 10141, + "server/src/__tests__/agent-identity-lock-order.test.ts": 7916, + "server/src/__tests__/agent-identity-master-key.test.ts": 1118, + "server/src/__tests__/agent-identity.test.ts": 31202, + "server/src/__tests__/agent-instance-secrets.test.ts": 8270, "server/src/__tests__/agent-instruction-copy-retry-backoff.test.ts": 10912, - "server/src/__tests__/agent-instruction-git-exclusion.test.ts": 3116, - "server/src/__tests__/agent-instruction-revisions.test.ts": 6931, + "server/src/__tests__/agent-instruction-git-exclusion.test.ts": 3030, + "server/src/__tests__/agent-instruction-revisions.test.ts": 11290, + "server/src/__tests__/agent-instruction-save-history.test.ts": 7053, "server/src/__tests__/agent-instruction-working-copies.test.ts": 37991, - "server/src/__tests__/agent-instructions-service.test.ts": 6897, + "server/src/__tests__/agent-instructions-service.test.ts": 7457, "server/src/__tests__/agent-interaction-acceptance.test.ts": 85112, - "server/src/__tests__/agent-interaction-mutations.test.ts": 9010, - "server/src/__tests__/agent-interaction-permissions.test.ts": 29587, - "server/src/__tests__/agent-interaction-policy.test.ts": 2520, - "server/src/__tests__/agent-invokability.test.ts": 1853, - "server/src/__tests__/agent-jwt-request-authentication.test.ts": 7439, - "server/src/__tests__/agent-observability-test.test.ts": 2108, - "server/src/__tests__/agent-observability.test.ts": 9432, - "server/src/__tests__/agent-permission-grants.test.ts": 6963, - "server/src/__tests__/agent-permissions-service.test.ts": 1282, - "server/src/__tests__/agent-persona-persistence.test.ts": 5549, - "server/src/__tests__/agent-profile-avatar.test.ts": 10716, - "server/src/__tests__/agent-project-access.test.ts": 8430, - "server/src/__tests__/agent-provider-rate-limits.test.ts": 7894, - "server/src/__tests__/agent-record-read-projections.test.ts": 7836, - "server/src/__tests__/agent-refusal-finality.test.ts": 5599, - "server/src/__tests__/agent-reporting-chain.test.ts": 11480, - "server/src/__tests__/agent-run-authentication.test.ts": 7411, - "server/src/__tests__/agent-runner-platform.test.ts": 5151, - "server/src/__tests__/agent-runtime-assignments.test.ts": 10426, - "server/src/__tests__/agent-runtime-connector-access.test.ts": 9324, + "server/src/__tests__/agent-interaction-mutations.test.ts": 8616, + "server/src/__tests__/agent-interaction-permissions.test.ts": 27144, + "server/src/__tests__/agent-interaction-policy.test.ts": 2815, + "server/src/__tests__/agent-invokability.test.ts": 1832, + "server/src/__tests__/agent-jwt-request-authentication.test.ts": 6590, + "server/src/__tests__/agent-observability-test.test.ts": 2249, + "server/src/__tests__/agent-observability.test.ts": 8490, + "server/src/__tests__/agent-permission-grants.test.ts": 7172, + "server/src/__tests__/agent-permissions-service.test.ts": 1668, + "server/src/__tests__/agent-persona-persistence.test.ts": 7154, + "server/src/__tests__/agent-profile-avatar.test.ts": 9761, + "server/src/__tests__/agent-project-access.test.ts": 10341, + "server/src/__tests__/agent-provider-rate-limits.test.ts": 8930, + "server/src/__tests__/agent-record-read-projections.test.ts": 8234, + "server/src/__tests__/agent-refusal-finality.test.ts": 7583, + "server/src/__tests__/agent-reporting-chain.test.ts": 10210, + "server/src/__tests__/agent-run-authentication.test.ts": 7733, + "server/src/__tests__/agent-runner-platform.test.ts": 5622, + "server/src/__tests__/agent-runtime-assignments.test.ts": 14400, + "server/src/__tests__/agent-runtime-connector-access.test.ts": 24135, "server/src/__tests__/agent-runtime-hooks.test.ts": 21201, - "server/src/__tests__/agent-runtime-settings.test.ts": 1539, - "server/src/__tests__/agent-runtime-skills.test.ts": 8161, - "server/src/__tests__/agent-runtime-tool-definitions.test.ts": 13696, + "server/src/__tests__/agent-runtime-settings.test.ts": 1721, + "server/src/__tests__/agent-runtime-skills.test.ts": 8442, + "server/src/__tests__/agent-runtime-tool-definitions.test.ts": 25917, "server/src/__tests__/agent-scaling-load-model.test.ts": 55895, - "server/src/__tests__/agent-setup-connection-intents.test.ts": 10060, - "server/src/__tests__/agent-shortname-collision.test.ts": 7092, - "server/src/__tests__/agent-skill-contract.test.ts": 776, - "server/src/__tests__/agent-task-hierarchy-depth.test.ts": 8587, - "server/src/__tests__/agent-task-run-telemetry.test.ts": 3688, + "server/src/__tests__/agent-setup-connection-intents.test.ts": 12724, + "server/src/__tests__/agent-setup-progress.test.ts": 7885, + "server/src/__tests__/agent-shortname-collision.test.ts": 6370, + "server/src/__tests__/agent-skill-contract.test.ts": 968, + "server/src/__tests__/agent-task-hierarchy-depth.test.ts": 9313, + "server/src/__tests__/agent-task-run-telemetry.test.ts": 3811, "server/src/__tests__/agent-timer-deadlines.test.ts": 49401, - "server/src/__tests__/agent-volume-free-config-patch.test.ts": 6909, - "server/src/__tests__/agentmail-api.test.ts": 3318, - "server/src/__tests__/agents-adapter-config-user-secret.test.ts": 7788, - "server/src/__tests__/agents-claude-oauth-binding.test.ts": 9167, - "server/src/__tests__/agents-paperclip-runner-skills.test.ts": 1727, - "server/src/__tests__/agents-pending-approval-config.test.ts": 11998, - "server/src/__tests__/agents-service-clear-error.test.ts": 7321, - "server/src/__tests__/agents-service-secret-bindings.test.ts": 7450, - "server/src/__tests__/aggregator-app-discovery.test.ts": 1113, - "server/src/__tests__/aggregator-app-sync.test.ts": 9054, - "server/src/__tests__/ai-auth-failure.test.ts": 1892, - "server/src/__tests__/ai-connection-binding-mode.test.ts": 7792, - "server/src/__tests__/ai-connection-session.test.ts": 6830, - "server/src/__tests__/ai-connections.test.ts": 62434, - "server/src/__tests__/ai-legacy-compatibility.test.ts": 7545, - "server/src/__tests__/ai-provider-routing.test.ts": 1945, - "server/src/__tests__/announcement-animation.test.ts": 2350, - "server/src/__tests__/announcement-feed.test.ts": 2274, - "server/src/__tests__/announcement-publisher.test.ts": 2273, + "server/src/__tests__/agent-volume-free-config-patch.test.ts": 8394, + "server/src/__tests__/agentmail-api.test.ts": 3564, + "server/src/__tests__/agents-adapter-config-user-secret.test.ts": 9218, + "server/src/__tests__/agents-claude-oauth-binding.test.ts": 12273, + "server/src/__tests__/agents-paperclip-runner-skills.test.ts": 1752, + "server/src/__tests__/agents-pending-approval-config.test.ts": 7947, + "server/src/__tests__/agents-service-clear-error.test.ts": 8356, + "server/src/__tests__/agents-service-secret-bindings.test.ts": 8842, + "server/src/__tests__/aggregator-app-discovery.test.ts": 913, + "server/src/__tests__/aggregator-app-sync.test.ts": 10598, + "server/src/__tests__/ai-auth-failure.test.ts": 1523, + "server/src/__tests__/ai-connection-binding-mode.test.ts": 6286, + "server/src/__tests__/ai-connection-session.test.ts": 7093, + "server/src/__tests__/ai-connections.test.ts": 72277, + "server/src/__tests__/ai-legacy-compatibility.test.ts": 7520, + "server/src/__tests__/ai-provider-routing.test.ts": 1988, + "server/src/__tests__/announcement-animation.test.ts": 2926, + "server/src/__tests__/announcement-feed.test.ts": 2568, + "server/src/__tests__/announcement-publisher.test.ts": 2614, "server/src/__tests__/antigravity-ai-connections.integration.test.ts": 9951, - "server/src/__tests__/antigravity-ai-runtime.test.ts": 7446, - "server/src/__tests__/antigravity-connection-models.test.ts": 1130, - "server/src/__tests__/antigravity-connection-probe.test.ts": 2751, - "server/src/__tests__/antigravity-local-ai-login.test.ts": 2883, - "server/src/__tests__/antigravity-managed-subscription.test.ts": 3205, - "server/src/__tests__/api-compression.test.ts": 1020, - "server/src/__tests__/api-server-timing.test.ts": 728, - "server/src/__tests__/app-hmr-port.test.ts": 9594, - "server/src/__tests__/app-permission-save.test.ts": 8509, - "server/src/__tests__/app-private-hostname-gate.test.ts": 9394, - "server/src/__tests__/app-vite-dev-routing.test.ts": 10177, - "server/src/__tests__/approval-queue-seeding-work.test.ts": 42153, - "server/src/__tests__/approval-retention-work.test.ts": 28754, - "server/src/__tests__/approvals-service.test.ts": 7905, + "server/src/__tests__/antigravity-ai-runtime.test.ts": 7053, + "server/src/__tests__/antigravity-connection-models.test.ts": 1786, + "server/src/__tests__/antigravity-connection-probe.test.ts": 3014, + "server/src/__tests__/antigravity-local-ai-login.test.ts": 2819, + "server/src/__tests__/antigravity-managed-subscription.test.ts": 3335, + "server/src/__tests__/antigravity-save-refusal.test.ts": 8917, + "server/src/__tests__/api-compression.test.ts": 815, + "server/src/__tests__/api-server-timing.test.ts": 1052, + "server/src/__tests__/app-hmr-port.test.ts": 14997, + "server/src/__tests__/app-permission-save.test.ts": 8350, + "server/src/__tests__/app-private-hostname-gate.test.ts": 13115, + "server/src/__tests__/app-vite-dev-routing.test.ts": 7348, + "server/src/__tests__/approval-queue-seeding-work.test.ts": 46649, + "server/src/__tests__/approval-retention-work.test.ts": 39181, + "server/src/__tests__/approvals-service.test.ts": 6557, "server/src/__tests__/archived-nested-repository.test.ts": 16037, - "server/src/__tests__/artifact-review-documents-service.test.ts": 3519, - "server/src/__tests__/assigned-work-invariant.test.ts": 35951, + "server/src/__tests__/artifact-review-documents-service.test.ts": 3862, + "server/src/__tests__/assigned-work-invariant.test.ts": 46131, "server/src/__tests__/assigned-work-recheck-idle.test.ts": 53061, "server/src/__tests__/assigned-work-stalled-queued-run.test.ts": 13543, "server/src/__tests__/assigned-work-sweep-round-trips.test.ts": 15224, - "server/src/__tests__/attachment-types.test.ts": 1034, - "server/src/__tests__/attention-audience-service.test.ts": 17695, + "server/src/__tests__/attachment-types.test.ts": 924, + "server/src/__tests__/attention-audience-service.test.ts": 22351, "server/src/__tests__/attention-close.test.ts": 28295, - "server/src/__tests__/attention-current-cards.test.ts": 13125, - "server/src/__tests__/attention-escalation-owners.test.ts": 13872, - "server/src/__tests__/attention-excerpt.test.ts": 9944, - "server/src/__tests__/attention-obligations.test.ts": 12566, - "server/src/__tests__/attention-receipts.test.ts": 12603, + "server/src/__tests__/attention-current-cards.test.ts": 15676, + "server/src/__tests__/attention-escalation-owners.test.ts": 12834, + "server/src/__tests__/attention-excerpt.test.ts": 5069, + "server/src/__tests__/attention-obligations.test.ts": 13786, + "server/src/__tests__/attention-receipts.test.ts": 15595, "server/src/__tests__/attention-retention-candidates.test.ts": 6627, "server/src/__tests__/attention-retention-work.test.ts": 77085, - "server/src/__tests__/attention-service.test.ts": 106942, - "server/src/__tests__/attention-source-eligibility.test.ts": 1808, + "server/src/__tests__/attention-service.test.ts": 116849, + "server/src/__tests__/attention-source-eligibility.test.ts": 1601, "server/src/__tests__/attention-summary-counts.test.ts": 80693, - "server/src/__tests__/authorization-privacy-query.test.ts": 8222, - "server/src/__tests__/authorization-request-reads.test.ts": 9787, - "server/src/__tests__/authorization-run-context.test.ts": 3242, - "server/src/__tests__/authorization-service.test.ts": 6576, + "server/src/__tests__/authorization-privacy-query.test.ts": 8400, + "server/src/__tests__/authorization-request-reads.test.ts": 9550, + "server/src/__tests__/authorization-run-context.test.ts": 3024, + "server/src/__tests__/authorization-service.test.ts": 8151, "server/src/__tests__/automatic-run-brake-import.test.ts": 5272, "server/src/__tests__/automatic-run-brake-recovery-passes.test.ts": 32314, "server/src/__tests__/automatic-run-brake.test.ts": 22864, "server/src/__tests__/automatic-run-start-gate.test.ts": 50100, - "server/src/__tests__/aws-secrets-manager-provider.test.ts": 750, - "server/src/__tests__/batched-chat-authorization.integration.test.ts": 6015, - "server/src/__tests__/better-auth-credential-signup.integration.test.ts": 2931, - "server/src/__tests__/better-auth.test.ts": 2196, - "server/src/__tests__/blocked-inbox-review-wait-scope.test.ts": 6326, + "server/src/__tests__/aws-mcp-connector.test.ts": 10337, + "server/src/__tests__/aws-secrets-manager-provider.test.ts": 763, + "server/src/__tests__/batched-chat-authorization.integration.test.ts": 6957, + "server/src/__tests__/better-auth-credential-signup.integration.test.ts": 3629, + "server/src/__tests__/better-auth.test.ts": 2565, + "server/src/__tests__/blocked-inbox-review-wait-scope.test.ts": 7201, "server/src/__tests__/blocker-workspace-history-performance.test.ts": 48579, - "server/src/__tests__/board-access-denial.test.ts": 6323, - "server/src/__tests__/board-claim.test.ts": 6225, - "server/src/__tests__/board-mutation-guard.test.ts": 1052, + "server/src/__tests__/board-access-denial.test.ts": 7595, + "server/src/__tests__/board-claim.test.ts": 6230, + "server/src/__tests__/board-mutation-guard.test.ts": 992, "server/src/__tests__/board-native-attachments.integration.test.ts": 8898, - "server/src/__tests__/body-limits.test.ts": 730, - "server/src/__tests__/braintrust-connection.test.ts": 12515, - "server/src/__tests__/browser-tracing-config.test.ts": 1554, + "server/src/__tests__/body-limits.test.ts": 814, + "server/src/__tests__/braintrust-connection.test.ts": 12584, + "server/src/__tests__/browser-tracing-config.test.ts": 1631, "server/src/__tests__/browser-use-connection.test.ts": 40117, - "server/src/__tests__/browser-use-viewport.test.ts": 1596, + "server/src/__tests__/browser-use-viewport.test.ts": 1710, "server/src/__tests__/browser-use-work.test.ts": 1905, - "server/src/__tests__/browser-use.test.ts": 1691, - "server/src/__tests__/budget-control-publication.test.ts": 10444, - "server/src/__tests__/budget-enforcement-scoping.test.ts": 15337, - "server/src/__tests__/budget-enforcement-worker.test.ts": 2322, - "server/src/__tests__/budget-evaluation-work.test.ts": 17407, - "server/src/__tests__/budget-live-attempts.test.ts": 9385, - "server/src/__tests__/budget-policy-write-contention.test.ts": 7527, - "server/src/__tests__/budgets-history.test.ts": 7267, - "server/src/__tests__/budgets-service.test.ts": 9228, - "server/src/__tests__/build-commit.test.ts": 715, - "server/src/__tests__/build-version.test.ts": 807, - "server/src/__tests__/built-in-agents.test.ts": 32604, - "server/src/__tests__/bundled-plugin-package.test.ts": 1829, - "server/src/__tests__/bundled-plugin-registration.test.ts": 10188, - "server/src/__tests__/bundled-plugin-runtime.test.ts": 923, - "server/src/__tests__/bundled-plugins.test.ts": 1485, + "server/src/__tests__/browser-use.test.ts": 1781, + "server/src/__tests__/budget-control-publication.test.ts": 11498, + "server/src/__tests__/budget-enforcement-scoping.test.ts": 17858, + "server/src/__tests__/budget-enforcement-worker.test.ts": 2014, + "server/src/__tests__/budget-evaluation-work.test.ts": 15212, + "server/src/__tests__/budget-live-attempts.test.ts": 11741, + "server/src/__tests__/budget-policy-write-contention.test.ts": 12488, + "server/src/__tests__/budgets-history.test.ts": 8128, + "server/src/__tests__/budgets-service.test.ts": 9411, + "server/src/__tests__/build-commit.test.ts": 920, + "server/src/__tests__/build-version.test.ts": 783, + "server/src/__tests__/built-in-agents.test.ts": 48704, + "server/src/__tests__/bundled-plugin-package.test.ts": 2284, + "server/src/__tests__/bundled-plugin-registration.test.ts": 9429, + "server/src/__tests__/bundled-plugin-runtime.test.ts": 942, + "server/src/__tests__/bundled-plugins.test.ts": 2623, "server/src/__tests__/case-handoff-legacy.integration.test.ts": 16308, - "server/src/__tests__/case-history-api-discovery.test.ts": 6863, + "server/src/__tests__/case-history-api-discovery.test.ts": 5795, "server/src/__tests__/case-mutation-fence.integration.test.ts": 9507, - "server/src/__tests__/change-consent-gate.test.ts": 3689, + "server/src/__tests__/change-consent-gate.test.ts": 3035, "server/src/__tests__/chat-action-work.test.ts": 6415, - "server/src/__tests__/chat-admission-condition.test.ts": 2780, + "server/src/__tests__/chat-admission-condition.test.ts": 2827, "server/src/__tests__/chat-channels.integration.test.ts": 428744, "server/src/__tests__/chat-completion-delivery.test.ts": 19576, - "server/src/__tests__/chat-completion-proof.test.ts": 2281, + "server/src/__tests__/chat-completion-proof.test.ts": 3148, "server/src/__tests__/chat-delivery-work.test.ts": 6220, - "server/src/__tests__/chat-execution-defaults.test.ts": 6424, - "server/src/__tests__/chat-failed-run-retry-boundary.test.ts": 8628, - "server/src/__tests__/chat-interaction-publications.test.ts": 7703, - "server/src/__tests__/chat-native-progress-statement.test.ts": 9096, + "server/src/__tests__/chat-execution-defaults.test.ts": 6586, + "server/src/__tests__/chat-failed-run-retry-boundary.test.ts": 9094, + "server/src/__tests__/chat-interaction-publications.test.ts": 19155, + "server/src/__tests__/chat-native-progress-statement.test.ts": 9544, "server/src/__tests__/chat-native-progress-work.test.ts": 15340, "server/src/__tests__/chat-project-tools.test.ts": 31556, "server/src/__tests__/chat-receiver-work.test.ts": 21267, - "server/src/__tests__/chat-run-milestone-candidates.test.ts": 6827, + "server/src/__tests__/chat-run-milestone-candidates.test.ts": 8036, "server/src/__tests__/chat-run-milestone-governed-work.test.ts": 10752, "server/src/__tests__/chat-run-milestone-identity-work.test.ts": 8727, "server/src/__tests__/chat-run-milestone-recovery-work.test.ts": 9193, "server/src/__tests__/chat-run-milestone-resource-work.test.ts": 8027, - "server/src/__tests__/chat-run-milestone-toast.test.ts": 7000, + "server/src/__tests__/chat-run-milestone-toast.test.ts": 7397, "server/src/__tests__/chat-run-milestone-work.test.ts": 55190, - "server/src/__tests__/chat-webhook-diagnostics.test.ts": 8238, - "server/src/__tests__/chat-webhook-public-url.test.ts": 2429, - "server/src/__tests__/claude-local-adapter-environment.test.ts": 2899, - "server/src/__tests__/claude-local-adapter.test.ts": 1851, + "server/src/__tests__/chat-webhook-diagnostics.test.ts": 12531, + "server/src/__tests__/chat-webhook-public-url.test.ts": 2604, + "server/src/__tests__/claude-local-adapter-environment.test.ts": 2471, + "server/src/__tests__/claude-local-adapter.test.ts": 1850, "server/src/__tests__/claude-local-execute.test.ts": 29948, - "server/src/__tests__/claude-local-skill-sync.test.ts": 1418, - "server/src/__tests__/cleanup-removal-service.test.ts": 8452, - "server/src/__tests__/cli-invocation-safety.test.ts": 2771, + "server/src/__tests__/claude-local-skill-sync.test.ts": 2075, + "server/src/__tests__/cleanup-removal-service.test.ts": 10068, + "server/src/__tests__/cli-invocation-safety.test.ts": 2672, "server/src/__tests__/closed-native-receipt-accounting.test.ts": 38079, - "server/src/__tests__/cloud-bundled-package-digest.test.ts": 2275, + "server/src/__tests__/cloud-bundled-package-digest.test.ts": 2285, "server/src/__tests__/cloud-configuration-migration-postgres.test.ts": 7737, - "server/src/__tests__/cloud-configuration-readers.test.ts": 5910, - "server/src/__tests__/cloud-control-task-drain.test.ts": 2141, - "server/src/__tests__/cloud-image-bundled-plugins.test.ts": 850, - "server/src/__tests__/cloud-image-sentry.test.ts": 1184, - "server/src/__tests__/cloud-instance.test.ts": 710, - "server/src/__tests__/cloud-lifecycle-sync.test.ts": 878, - "server/src/__tests__/cloud-portfolio-error.test.ts": 619, - "server/src/__tests__/cloud-posthog-browser.test.ts": 9482, - "server/src/__tests__/cloud-posthog-config.test.ts": 702, - "server/src/__tests__/cloud-runtime-config.test.ts": 6702, - "server/src/__tests__/cloud-runtime-identity.test.ts": 7463, - "server/src/__tests__/cloud-tenant-actor-round-trips.test.ts": 10396, - "server/src/__tests__/cloud-tenant-actor-statements.test.ts": 8162, - "server/src/__tests__/cloud-tenant-company-provisioning.test.ts": 5911, - "server/src/__tests__/cloud-tenant-transient-db-retry.test.ts": 7596, - "server/src/__tests__/cloud-warm-standby.test.ts": 6419, - "server/src/__tests__/codex-auth-reconciliation.test.ts": 2055, - "server/src/__tests__/codex-local-adapter-environment.test.ts": 1855, - "server/src/__tests__/codex-local-adapter.test.ts": 1429, + "server/src/__tests__/cloud-configuration-qualification.test.ts": 1978, + "server/src/__tests__/cloud-configuration-readers.test.ts": 7314, + "server/src/__tests__/cloud-control-task-drain.test.ts": 2374, + "server/src/__tests__/cloud-image-bundled-plugins.test.ts": 906, + "server/src/__tests__/cloud-image-sentry.test.ts": 895, + "server/src/__tests__/cloud-instance.test.ts": 753, + "server/src/__tests__/cloud-lifecycle-sync.test.ts": 934, + "server/src/__tests__/cloud-portfolio-error.test.ts": 679, + "server/src/__tests__/cloud-posthog-browser.test.ts": 9856, + "server/src/__tests__/cloud-posthog-config.test.ts": 904, + "server/src/__tests__/cloud-runtime-config.test.ts": 7629, + "server/src/__tests__/cloud-runtime-identity.test.ts": 9263, + "server/src/__tests__/cloud-tenant-actor-round-trips.test.ts": 11996, + "server/src/__tests__/cloud-tenant-actor-statements.test.ts": 8102, + "server/src/__tests__/cloud-tenant-company-provisioning.test.ts": 8795, + "server/src/__tests__/cloud-tenant-transient-db-retry.test.ts": 6866, + "server/src/__tests__/cloud-warm-standby.test.ts": 8094, + "server/src/__tests__/codex-auth-reconciliation.test.ts": 2270, + "server/src/__tests__/codex-local-adapter-environment.test.ts": 2461, + "server/src/__tests__/codex-local-adapter.test.ts": 2155, "server/src/__tests__/codex-local-execute.test.ts": 11921, - "server/src/__tests__/codex-local-skill-injection.test.ts": 1686, - "server/src/__tests__/codex-local-skill-sync.test.ts": 1906, - "server/src/__tests__/committed-chat-response-authority.test.ts": 1818, - "server/src/__tests__/companies-service.test.ts": 13659, - "server/src/__tests__/company-artifacts-service.test.ts": 13229, - "server/src/__tests__/company-cloud-floor.test.ts": 7990, - "server/src/__tests__/company-import-cloud-floor.test.ts": 8056, - "server/src/__tests__/company-portability-import-batching.test.ts": 8431, - "server/src/__tests__/company-quota-windows.test.ts": 2490, - "server/src/__tests__/company-search-extract-service.test.ts": 2861, - "server/src/__tests__/company-search-service.test.ts": 9014, - "server/src/__tests__/company-skill-import-boundary.test.ts": 8177, - "server/src/__tests__/company-skill-policy-service.test.ts": 6978, - "server/src/__tests__/company-skill-test-runs-service.test.ts": 17462, + "server/src/__tests__/codex-local-skill-injection.test.ts": 1843, + "server/src/__tests__/codex-local-skill-sync.test.ts": 1977, + "server/src/__tests__/committed-chat-response-authority.test.ts": 2294, + "server/src/__tests__/companies-service.test.ts": 18908, + "server/src/__tests__/company-artifacts-service.test.ts": 12706, + "server/src/__tests__/company-cloud-floor.test.ts": 6550, + "server/src/__tests__/company-deletion-concurrent-activity.test.ts": 7218, + "server/src/__tests__/company-import-cloud-floor.test.ts": 6363, + "server/src/__tests__/company-portability-import-batching.test.ts": 11583, + "server/src/__tests__/company-quota-windows.test.ts": 2116, + "server/src/__tests__/company-search-extract-service.test.ts": 3176, + "server/src/__tests__/company-search-service.test.ts": 20679, + "server/src/__tests__/company-skill-import-boundary.test.ts": 9253, + "server/src/__tests__/company-skill-policy-service.test.ts": 7474, + "server/src/__tests__/company-skill-test-runs-service.test.ts": 18784, "server/src/__tests__/company-skills-catalog-service.test.ts": 19294, - "server/src/__tests__/company-skills-detail.test.ts": 7054, - "server/src/__tests__/company-skills-empty-runtime.test.ts": 7582, - "server/src/__tests__/company-skills-list-statements.test.ts": 9172, - "server/src/__tests__/company-skills-observability.test.ts": 7541, - "server/src/__tests__/company-skills-runtime-concurrency.test.ts": 8240, - "server/src/__tests__/company-skills-runtime-selection.test.ts": 10199, - "server/src/__tests__/company-skills-service.test.ts": 72609, - "server/src/__tests__/company-skills.test.ts": 6274, - "server/src/__tests__/company-transfer-runs.test.ts": 2009, - "server/src/__tests__/company-work-batch.test.ts": 714, - "server/src/__tests__/completed-turn-cleanup-hold-settle.test.ts": 13362, + "server/src/__tests__/company-skills-detail.test.ts": 7649, + "server/src/__tests__/company-skills-empty-runtime.test.ts": 5736, + "server/src/__tests__/company-skills-list-statements.test.ts": 10225, + "server/src/__tests__/company-skills-observability.test.ts": 7192, + "server/src/__tests__/company-skills-runtime-concurrency.test.ts": 9022, + "server/src/__tests__/company-skills-runtime-selection.test.ts": 8641, + "server/src/__tests__/company-skills-service.test.ts": 75744, + "server/src/__tests__/company-skills.test.ts": 7335, + "server/src/__tests__/company-transfer-runs.test.ts": 3082, + "server/src/__tests__/company-work-batch.test.ts": 863, + "server/src/__tests__/completed-turn-cleanup-hold-settle.test.ts": 13914, "server/src/__tests__/composio-app-setup.test.ts": 9173, - "server/src/__tests__/config-file.test.ts": 1133, - "server/src/__tests__/config-tailnet-bind-detection.test.ts": 3389, - "server/src/__tests__/configured-secret-guidance.test.ts": 2076, - "server/src/__tests__/confirmation-comment-resolution.test.ts": 9855, + "server/src/__tests__/config-file.test.ts": 1668, + "server/src/__tests__/config-tailnet-bind-detection.test.ts": 4471, + "server/src/__tests__/configured-secret-guidance.test.ts": 1951, + "server/src/__tests__/confirmation-comment-resolution.test.ts": 11338, "server/src/__tests__/connection-aggregator-fallback.test.ts": 31814, - "server/src/__tests__/connection-grant-resolution.test.ts": 7038, + "server/src/__tests__/connection-grant-resolution.test.ts": 9457, "server/src/__tests__/connection-install-capabilities.test.ts": 7067, - "server/src/__tests__/connection-instructions.test.ts": 8449, - "server/src/__tests__/connection-intents-service.test.ts": 15849, - "server/src/__tests__/connection-management.integration.test.ts": 185806, - "server/src/__tests__/connection-profile-configuration.test.ts": 7082, - "server/src/__tests__/connector-tool-policy.test.ts": 6365, - "server/src/__tests__/container-init-reaping.test.ts": 696, - "server/src/__tests__/context-compaction.test.ts": 2386, + "server/src/__tests__/connection-instructions.test.ts": 8609, + "server/src/__tests__/connection-intents-service.test.ts": 29268, + "server/src/__tests__/connection-management.integration.test.ts": 181790, + "server/src/__tests__/connection-profile-configuration.test.ts": 8513, + "server/src/__tests__/connector-tool-policy.test.ts": 6985, + "server/src/__tests__/container-init-reaping.test.ts": 774, + "server/src/__tests__/context-compaction.test.ts": 2410, "server/src/__tests__/continuation-delivery-unwakeable-agent-idle.test.ts": 12925, "server/src/__tests__/controller-instance-lease.test.ts": 26788, - "server/src/__tests__/conversation-settlement-transfer.test.ts": 12265, + "server/src/__tests__/conversation-settlement-transfer.test.ts": 12284, "server/src/__tests__/coordinator-handoff.test.ts": 12393, - "server/src/__tests__/copilot-connection-probe.test.ts": 2255, - "server/src/__tests__/cost-data-quality.test.ts": 9192, - "server/src/__tests__/crash-point-call-sites.test.ts": 7935, - "server/src/__tests__/cross-issue-influence-limit-postgres.test.ts": 3536, - "server/src/__tests__/cross-issue-influence-limit.test.ts": 1740, - "server/src/__tests__/cursor-local-adapter-environment.test.ts": 4080, - "server/src/__tests__/cursor-local-adapter.test.ts": 1644, - "server/src/__tests__/cursor-local-execute.test.ts": 2646, - "server/src/__tests__/cursor-local-skill-injection.test.ts": 1651, - "server/src/__tests__/cursor-local-skill-sync.test.ts": 1896, + "server/src/__tests__/copilot-connection-probe.test.ts": 2221, + "server/src/__tests__/cost-data-quality.test.ts": 8087, + "server/src/__tests__/crash-point-call-sites.test.ts": 7234, + "server/src/__tests__/cross-issue-influence-limit-postgres.test.ts": 2815, + "server/src/__tests__/cross-issue-influence-limit.test.ts": 1952, + "server/src/__tests__/cursor-local-adapter-environment.test.ts": 6107, + "server/src/__tests__/cursor-local-adapter.test.ts": 2115, + "server/src/__tests__/cursor-local-execute.test.ts": 4731, + "server/src/__tests__/cursor-local-skill-injection.test.ts": 2017, + "server/src/__tests__/cursor-local-skill-sync.test.ts": 1732, "server/src/__tests__/custom-image-cleanup-work.test.ts": 2507, "server/src/__tests__/customer-success-cloud.test.ts": 1410, - "server/src/__tests__/customer-success-run-liveness.test.ts": 7151, - "server/src/__tests__/customer-success.test.ts": 9098, - "server/src/__tests__/dashboard-disconnect-retry.test.ts": 3423, - "server/src/__tests__/dashboard-service.test.ts": 7126, - "server/src/__tests__/database-backup-owner.test.ts": 8776, - "server/src/__tests__/database-backup-qualification-guards.test.ts": 1930, + "server/src/__tests__/customer-success-run-liveness.test.ts": 7396, + "server/src/__tests__/customer-success.test.ts": 8799, + "server/src/__tests__/dashboard-disconnect-retry.test.ts": 3609, + "server/src/__tests__/dashboard-service.test.ts": 8864, + "server/src/__tests__/database-backup-owner.test.ts": 9022, + "server/src/__tests__/database-backup-qualification-guards.test.ts": 1876, "server/src/__tests__/database-backup-work.test.ts": 1755, - "server/src/__tests__/database-operation-attribution.test.ts": 2025, + "server/src/__tests__/database-operation-attribution.test.ts": 2420, "server/src/__tests__/daytona-connection.test.ts": 16846, - "server/src/__tests__/daytona-http-boundary.test.ts": 1518, - "server/src/__tests__/db-errors.test.ts": 834, + "server/src/__tests__/daytona-http-boundary.test.ts": 1695, + "server/src/__tests__/db-errors.test.ts": 826, "server/src/__tests__/deadline-work.test.ts": 1862, "server/src/__tests__/decision-effect-recovery-work.test.ts": 24365, "server/src/__tests__/decision-expiry-work.test.ts": 16024, - "server/src/__tests__/decision-history.test.ts": 9747, - "server/src/__tests__/decision-model-provider.test.ts": 2162, - "server/src/__tests__/decision-models.test.ts": 12584, - "server/src/__tests__/decision-retention-materialization-security.test.ts": 16798, + "server/src/__tests__/decision-history.test.ts": 18084, + "server/src/__tests__/decision-model-provider.test.ts": 1803, + "server/src/__tests__/decision-models.test.ts": 31881, + "server/src/__tests__/decision-retention-materialization-security.test.ts": 20798, "server/src/__tests__/decision-retention-service.test.ts": 11706, "server/src/__tests__/decision-target-work.test.ts": 14584, - "server/src/__tests__/decision-training.test.ts": 12154, - "server/src/__tests__/decision-wakeup.test.ts": 888, - "server/src/__tests__/decisions-service.test.ts": 20736, + "server/src/__tests__/decision-training.test.ts": 11604, + "server/src/__tests__/decision-wakeup.test.ts": 737, + "server/src/__tests__/decisions-service.test.ts": 22211, "server/src/__tests__/deferred-chat-wake-sweep.test.ts": 25678, "server/src/__tests__/deferred-execution-receipt-work.test.ts": 292434, "server/src/__tests__/delivery-work-coordinator.test.ts": 7099, "server/src/__tests__/deployment-connections.test.ts": 19322, - "server/src/__tests__/deployment-notifications.test.ts": 1913, - "server/src/__tests__/dev-runner-native-binary.test.ts": 2172, - "server/src/__tests__/dev-runner-options.test.ts": 916, - "server/src/__tests__/dev-runner-output.test.ts": 962, - "server/src/__tests__/dev-runner-paths.test.ts": 856, - "server/src/__tests__/dev-runner-snapshot.test.ts": 788, - "server/src/__tests__/dev-runner-worktree.test.ts": 602, - "server/src/__tests__/dev-server-status.test.ts": 902, - "server/src/__tests__/dev-watch-ignore.test.ts": 740, - "server/src/__tests__/device-login-credential-read.test.ts": 1337, - "server/src/__tests__/device-login-reaper.test.ts": 6125, - "server/src/__tests__/device-login-service.test.ts": 20142, - "server/src/__tests__/disposition-repair.test.ts": 6090, - "server/src/__tests__/distribution-plugin-catalog.test.ts": 874, - "server/src/__tests__/docker-build-stamp.test.ts": 960, - "server/src/__tests__/docker-entrypoint.test.ts": 1309, - "server/src/__tests__/docker-image-layer-reuse.test.ts": 886, - "server/src/__tests__/docker-runner-workflows.test.ts": 654, - "server/src/__tests__/document-annotations-service.test.ts": 8416, - "server/src/__tests__/documents-service.test.ts": 2904, - "server/src/__tests__/documents.test.ts": 2018, - "server/src/__tests__/dot-invitations.test.ts": 7733, - "server/src/__tests__/dot-oauth-onboarding.test.ts": 7834, - "server/src/__tests__/dot-runner.test.ts": 64825, - "server/src/__tests__/duplex-observability-recorder.test.ts": 754, + "server/src/__tests__/deployment-notifications.test.ts": 2765, + "server/src/__tests__/dev-runner-native-binary.test.ts": 1771, + "server/src/__tests__/dev-runner-options.test.ts": 903, + "server/src/__tests__/dev-runner-output.test.ts": 816, + "server/src/__tests__/dev-runner-paths.test.ts": 658, + "server/src/__tests__/dev-runner-snapshot.test.ts": 646, + "server/src/__tests__/dev-runner-worktree.test.ts": 707, + "server/src/__tests__/dev-server-status.test.ts": 885, + "server/src/__tests__/dev-watch-ignore.test.ts": 858, + "server/src/__tests__/device-login-credential-read.test.ts": 1324, + "server/src/__tests__/device-login-reaper.test.ts": 7370, + "server/src/__tests__/device-login-service.test.ts": 18734, + "server/src/__tests__/disposition-repair.test.ts": 6270, + "server/src/__tests__/distribution-plugin-catalog.test.ts": 671, + "server/src/__tests__/docker-build-stamp.test.ts": 1071, + "server/src/__tests__/docker-entrypoint.test.ts": 1022, + "server/src/__tests__/docker-image-layer-reuse.test.ts": 901, + "server/src/__tests__/docker-runner-workflows.test.ts": 1022, + "server/src/__tests__/document-annotations-service.test.ts": 9862, + "server/src/__tests__/documents-service.test.ts": 3765, + "server/src/__tests__/documents.test.ts": 1973, + "server/src/__tests__/dot-invitations.test.ts": 8594, + "server/src/__tests__/dot-oauth-onboarding.test.ts": 9055, + "server/src/__tests__/dot-runner.test.ts": 69192, + "server/src/__tests__/duplex-observability-recorder.test.ts": 772, "server/src/__tests__/durable-chat-wakeup.test.ts": 42102, - "server/src/__tests__/durable-directory.test.ts": 2203, - "server/src/__tests__/effective-run-config-fingerprints.test.ts": 1190, + "server/src/__tests__/durable-directory.test.ts": 2573, + "server/src/__tests__/effective-run-config-fingerprints.test.ts": 1880, "server/src/__tests__/email-address-check.test.ts": 5253, "server/src/__tests__/email-channels.integration.test.ts": 40296, "server/src/__tests__/email-idle-work.test.ts": 6264, - "server/src/__tests__/embedded-postgres-supervisor.test.ts": 756, - "server/src/__tests__/env-file-policy.test.ts": 553, - "server/src/__tests__/environment-acquisition-diagnostics.test.ts": 3995, - "server/src/__tests__/environment-capability-contract.test.ts": 5627, + "server/src/__tests__/embedded-postgres-supervisor.test.ts": 602, + "server/src/__tests__/env-file-policy.test.ts": 717, + "server/src/__tests__/environment-acquisition-diagnostics.test.ts": 3623, + "server/src/__tests__/environment-capability-contract.test.ts": 6143, "server/src/__tests__/environment-cleanup-work.test.ts": 36256, - "server/src/__tests__/environment-config.test.ts": 7042, - "server/src/__tests__/environment-custom-image-terminal-ws.test.ts": 3365, - "server/src/__tests__/environment-custom-images-service.test.ts": 10627, - "server/src/__tests__/environment-driver-traits.test.ts": 688, - "server/src/__tests__/environment-execution-target-capabilities.test.ts": 1767, - "server/src/__tests__/environment-execution-target-duplex-kill-switch.test.ts": 2143, - "server/src/__tests__/environment-execution-target-duplex.test.ts": 6221, - "server/src/__tests__/environment-execution-target.test.ts": 2612, - "server/src/__tests__/environment-lease-owner-stamps.test.ts": 8560, - "server/src/__tests__/environment-live-ssh.test.ts": 1481, - "server/src/__tests__/environment-login-probe-lease-ownership.test.ts": 8123, + "server/src/__tests__/environment-config.test.ts": 7171, + "server/src/__tests__/environment-custom-image-terminal-ws.test.ts": 3475, + "server/src/__tests__/environment-custom-images-service.test.ts": 24834, + "server/src/__tests__/environment-driver-traits.test.ts": 822, + "server/src/__tests__/environment-execution-target-capabilities.test.ts": 1855, + "server/src/__tests__/environment-execution-target-duplex-kill-switch.test.ts": 1817, + "server/src/__tests__/environment-execution-target-duplex.test.ts": 7676, + "server/src/__tests__/environment-execution-target.test.ts": 3954, + "server/src/__tests__/environment-lease-owner-stamps.test.ts": 7337, + "server/src/__tests__/environment-live-ssh.test.ts": 1657, + "server/src/__tests__/environment-login-probe-lease-ownership.test.ts": 8858, "server/src/__tests__/environment-pending-cleanup-queue-owner.test.ts": 8493, - "server/src/__tests__/environment-probe.test.ts": 6153, - "server/src/__tests__/environment-retained-orphan-listing-cost.test.ts": 17480, - "server/src/__tests__/environment-retained-orphan-sandbox.test.ts": 8688, - "server/src/__tests__/environment-run-lease-ownership.test.ts": 10538, - "server/src/__tests__/environment-run-orchestrator.test.ts": 11261, - "server/src/__tests__/environment-runtime-driver-contract.test.ts": 7717, - "server/src/__tests__/environment-runtime-duplex-bridge-input.test.ts": 6549, + "server/src/__tests__/environment-probe.test.ts": 7154, + "server/src/__tests__/environment-retained-orphan-listing-cost.test.ts": 20229, + "server/src/__tests__/environment-retained-orphan-sandbox.test.ts": 12364, + "server/src/__tests__/environment-run-lease-ownership.test.ts": 11630, + "server/src/__tests__/environment-run-orchestrator.test.ts": 23244, + "server/src/__tests__/environment-runtime-driver-contract.test.ts": 8206, + "server/src/__tests__/environment-runtime-duplex-bridge-input.test.ts": 8367, "server/src/__tests__/environment-runtime-reusable-resume-replacement.test.ts": 37524, - "server/src/__tests__/environment-runtime.test.ts": 73957, - "server/src/__tests__/environment-service.test.ts": 13617, - "server/src/__tests__/environment-skills.test.ts": 11707, - "server/src/__tests__/environment-sync-out-error.test.ts": 1344, - "server/src/__tests__/environment-task-authority.integration.test.ts": 6554, - "server/src/__tests__/environment-task-runtime.test.ts": 6025, - "server/src/__tests__/environment-test-harness.test.ts": 1250, - "server/src/__tests__/ephemeral-enrollment-replay.test.ts": 6741, - "server/src/__tests__/ephemeral-server-contract.test.ts": 6420, - "server/src/__tests__/ephemeral-server-data.test.ts": 7443, - "server/src/__tests__/ephemeral-server-startup-run-state.test.ts": 9149, - "server/src/__tests__/error-handler-client-abort.test.ts": 6273, - "server/src/__tests__/error-handler-tool-gateway.test.ts": 6632, - "server/src/__tests__/error-handler.test.ts": 5911, + "server/src/__tests__/environment-runtime.test.ts": 89552, + "server/src/__tests__/environment-service.test.ts": 22450, + "server/src/__tests__/environment-skills.test.ts": 10876, + "server/src/__tests__/environment-sync-out-error.test.ts": 2066, + "server/src/__tests__/environment-task-authority.integration.test.ts": 17257, + "server/src/__tests__/environment-task-runtime.test.ts": 7889, + "server/src/__tests__/environment-test-harness.test.ts": 2057, + "server/src/__tests__/ephemeral-enrollment-replay.test.ts": 8239, + "server/src/__tests__/ephemeral-server-contract.test.ts": 7676, + "server/src/__tests__/ephemeral-server-data.test.ts": 8448, + "server/src/__tests__/ephemeral-server-runtime-skill-startup.test.ts": 8717, + "server/src/__tests__/ephemeral-server-startup-run-state.test.ts": 8935, + "server/src/__tests__/error-handler-client-abort.test.ts": 6779, + "server/src/__tests__/error-handler-tool-gateway.test.ts": 7146, + "server/src/__tests__/error-handler.test.ts": 6684, "server/src/__tests__/eval-feedback-recovery.integration.test.ts": 13456, "server/src/__tests__/execution-control-work.test.ts": 16340, - "server/src/__tests__/execution-lock-orphan-cleanup.test.ts": 8988, - "server/src/__tests__/execution-preparation-phases.test.ts": 2629, - "server/src/__tests__/execution-workspace-compaction.test.ts": 11717, - "server/src/__tests__/execution-workspace-policy.test.ts": 1394, + "server/src/__tests__/execution-lock-orphan-cleanup.test.ts": 10844, + "server/src/__tests__/execution-preparation-phases.test.ts": 2597, + "server/src/__tests__/execution-workspace-compaction.test.ts": 14736, + "server/src/__tests__/execution-workspace-policy.test.ts": 2101, "server/src/__tests__/execution-workspace-reopen.test.ts": 20305, - "server/src/__tests__/execution-workspace-runtime-control-conflict.test.ts": 5759, - "server/src/__tests__/execution-workspaces-service.test.ts": 50904, - "server/src/__tests__/export-fidelity.test.ts": 2537, + "server/src/__tests__/execution-workspace-runtime-control-conflict.test.ts": 17146, + "server/src/__tests__/execution-workspaces-service.test.ts": 49410, + "server/src/__tests__/export-fidelity.test.ts": 3122, "server/src/__tests__/external-object-idle-schedule.test.ts": 941, "server/src/__tests__/external-object-refresh-work.test.ts": 17969, - "server/src/__tests__/external-objects-service.test.ts": 7744, + "server/src/__tests__/external-objects-service.test.ts": 18537, "server/src/__tests__/failed-continuation-continues-again.test.ts": 34068, - "server/src/__tests__/fast-response-models.test.ts": 1365, - "server/src/__tests__/fast-response-provider.test.ts": 1810, - "server/src/__tests__/fast-responses.test.ts": 11499, - "server/src/__tests__/feedback-flush-controller.test.ts": 10231, - "server/src/__tests__/feedback-redaction.test.ts": 907, - "server/src/__tests__/feedback-service.test.ts": 7459, - "server/src/__tests__/feedback-share-client.test.ts": 754, + "server/src/__tests__/fast-response-models.test.ts": 1685, + "server/src/__tests__/fast-response-provider.test.ts": 1613, + "server/src/__tests__/fast-responses.test.ts": 13353, + "server/src/__tests__/feedback-flush-controller.test.ts": 7293, + "server/src/__tests__/feedback-redaction.test.ts": 910, + "server/src/__tests__/feedback-service.test.ts": 17631, + "server/src/__tests__/feedback-share-client.test.ts": 782, "server/src/__tests__/file-delivery-bridges.test.ts": 20870, - "server/src/__tests__/file-resources-git-scan-load.test.ts": 5770, + "server/src/__tests__/file-resources-git-scan-load.test.ts": 6876, "server/src/__tests__/file-resources.test.ts": 23012, - "server/src/__tests__/first-admin-claim.test.ts": 2737, - "server/src/__tests__/folders-service.test.ts": 3571, - "server/src/__tests__/forbidden-tokens.test.ts": 705, - "server/src/__tests__/gateway-credential-expiry.test.ts": 9979, - "server/src/__tests__/gemini-local-adapter-environment.test.ts": 1230, - "server/src/__tests__/gemini-local-adapter.test.ts": 2193, - "server/src/__tests__/gemini-local-execute.test.ts": 2369, - "server/src/__tests__/gemini-local-skill-sync.test.ts": 1692, - "server/src/__tests__/general-capability-classifier.test.ts": 6292, + "server/src/__tests__/first-admin-claim.test.ts": 2147, + "server/src/__tests__/folders-service.test.ts": 3442, + "server/src/__tests__/forbidden-tokens.test.ts": 915, + "server/src/__tests__/gateway-credential-expiry.test.ts": 11396, + "server/src/__tests__/gemini-local-adapter-environment.test.ts": 1912, + "server/src/__tests__/gemini-local-adapter.test.ts": 2025, + "server/src/__tests__/gemini-local-execute.test.ts": 2607, + "server/src/__tests__/gemini-local-skill-sync.test.ts": 1711, + "server/src/__tests__/general-capability-classifier.test.ts": 7156, "server/src/__tests__/generic-mcp-connection.test.ts": 55072, - "server/src/__tests__/git-credentials.test.ts": 7716, - "server/src/__tests__/git-expiration-auth-fallback.test.ts": 5742, - "server/src/__tests__/git-mount-boundary.test.ts": 7144, - "server/src/__tests__/git-repository-excludes.test.ts": 7134, - "server/src/__tests__/git-reproducible-managed-checkouts.test.ts": 12319, + "server/src/__tests__/git-credentials.test.ts": 6482, + "server/src/__tests__/git-expiration-auth-fallback.test.ts": 6132, + "server/src/__tests__/git-mount-boundary.test.ts": 7055, + "server/src/__tests__/git-repository-excludes.test.ts": 9434, + "server/src/__tests__/git-reproducible-managed-checkouts.test.ts": 13528, "server/src/__tests__/git-restore-point-expiration-config.test.ts": 1957, "server/src/__tests__/git-restore-point-expiration.test.ts": 49208, - "server/src/__tests__/git-restore-point-ledger-config.test.ts": 1562, + "server/src/__tests__/git-restore-point-ledger-config.test.ts": 2114, "server/src/__tests__/git-restore-point-ledger.test.ts": 8440, "server/src/__tests__/git-restore-point.test.ts": 10673, - "server/src/__tests__/git-workspace-activity.test.ts": 15399, - "server/src/__tests__/git-workspace-base-storage.test.ts": 7180, - "server/src/__tests__/git-workspace-contents.test.ts": 6821, + "server/src/__tests__/git-workspace-activity.test.ts": 21080, + "server/src/__tests__/git-workspace-base-storage.test.ts": 6565, + "server/src/__tests__/git-workspace-contents.test.ts": 8136, "server/src/__tests__/git-workspace-expiration-eligibility.test.ts": 17358, "server/src/__tests__/git-workspace-expiration.test.ts": 198261, - "server/src/__tests__/git-workspace-fetch-head.test.ts": 7912, - "server/src/__tests__/git-workspace-restoration-diagnostic.test.ts": 7200, - "server/src/__tests__/github-catalog-timing.test.ts": 7201, - "server/src/__tests__/github-commit-details.test.ts": 6284, + "server/src/__tests__/git-workspace-fetch-head.test.ts": 9961, + "server/src/__tests__/git-workspace-restoration-diagnostic.test.ts": 7491, + "server/src/__tests__/github-catalog-timing.test.ts": 9017, + "server/src/__tests__/github-commit-details.test.ts": 6945, "server/src/__tests__/github-connection-enrollment-work.test.ts": 8390, - "server/src/__tests__/github-connection-events.test.ts": 10696, + "server/src/__tests__/github-connection-events.test.ts": 10393, "server/src/__tests__/github-connection-work.test.ts": 17548, - "server/src/__tests__/github-grant-metadata.test.ts": 9430, + "server/src/__tests__/github-grant-metadata.test.ts": 7008, "server/src/__tests__/github-health-recovery.test.ts": 6236, - "server/src/__tests__/github-link-preview.test.ts": 7519, - "server/src/__tests__/github-operation-credentials.test.ts": 11571, - "server/src/__tests__/github-repository-catalog-failure.test.ts": 1001, - "server/src/__tests__/github-repository-token-cache.test.ts": 7295, - "server/src/__tests__/github-review-check-state.test.ts": 2857, - "server/src/__tests__/github-review-wait.test.ts": 4158, + "server/src/__tests__/github-inbound-steering.test.ts": 33061, + "server/src/__tests__/github-link-preview.test.ts": 6445, + "server/src/__tests__/github-operation-credentials.test.ts": 11262, + "server/src/__tests__/github-repository-catalog-failure.test.ts": 698, + "server/src/__tests__/github-repository-token-cache.test.ts": 7158, + "server/src/__tests__/github-review-check-state.test.ts": 2764, + "server/src/__tests__/github-review-wait.test.ts": 4850, "server/src/__tests__/github-skill-source.test.ts": 28979, - "server/src/__tests__/github-workspace-delivery.test.ts": 6042, - "server/src/__tests__/goal-parent-company-validation.test.ts": 10228, - "server/src/__tests__/google-sheets-gallery.test.ts": 6199, - "server/src/__tests__/google-workspace-injection-screening.test.ts": 11732, + "server/src/__tests__/github-workspace-delivery.test.ts": 6722, + "server/src/__tests__/goal-parent-company-validation.test.ts": 10607, + "server/src/__tests__/google-managed-connection-removal.test.ts": 23350, + "server/src/__tests__/google-pending-revocation.test.ts": 15904, + "server/src/__tests__/google-sheets-gallery.test.ts": 6022, + "server/src/__tests__/google-workspace-injection-screening.test.ts": 15159, "server/src/__tests__/google-workspace-rest-transport.test.ts": 11985, "server/src/__tests__/grok-bot-routine.test.ts": 24423, "server/src/__tests__/grok-dispatch-work.test.ts": 13302, - "server/src/__tests__/grok-local-skill-sync.test.ts": 2156, - "server/src/__tests__/health-server-info-git-probe.test.ts": 10496, - "server/src/__tests__/health-workspace-readiness.test.ts": 6479, + "server/src/__tests__/grok-local-skill-sync.test.ts": 1912, + "server/src/__tests__/harness-availability.test.ts": 919, + "server/src/__tests__/health-server-info-git-probe.test.ts": 6754, + "server/src/__tests__/health-workspace-readiness.test.ts": 7379, "server/src/__tests__/heartbeat-accepted-plan-workspace-refresh.test.ts": 26442, "server/src/__tests__/heartbeat-active-run-output-watchdog.test.ts": 23228, "server/src/__tests__/heartbeat-agent-directory-busy.test.ts": 22123, - "server/src/__tests__/heartbeat-agent-session-message.test.ts": 6730, + "server/src/__tests__/heartbeat-agent-session-message.test.ts": 7447, "server/src/__tests__/heartbeat-agent-status-recovery.test.ts": 8890, - "server/src/__tests__/heartbeat-answer-behind-settling-run.test.ts": 14143, - "server/src/__tests__/heartbeat-archived-company-guard.test.ts": 7700, - "server/src/__tests__/heartbeat-auto-checkout.test.ts": 8960, + "server/src/__tests__/heartbeat-answer-behind-settling-run.test.ts": 18391, + "server/src/__tests__/heartbeat-archived-company-guard.test.ts": 8720, + "server/src/__tests__/heartbeat-auto-checkout.test.ts": 7744, "server/src/__tests__/heartbeat-blocked-question-answer.test.ts": 30782, "server/src/__tests__/heartbeat-case-handoff.test.ts": 9748, "server/src/__tests__/heartbeat-case-terminal-handoff.test.ts": 8571, - "server/src/__tests__/heartbeat-chat-task-link.test.ts": 8851, + "server/src/__tests__/heartbeat-chat-task-link.test.ts": 7163, + "server/src/__tests__/heartbeat-clean-continuation-dispatch.test.ts": 22213, "server/src/__tests__/heartbeat-comment-wake-batching.test.ts": 81437, - "server/src/__tests__/heartbeat-context-compaction-execution.test.ts": 14982, - "server/src/__tests__/heartbeat-context-summary.test.ts": 6453, - "server/src/__tests__/heartbeat-cost-accounting.test.ts": 8738, - "server/src/__tests__/heartbeat-direct-adapter-native-isolation.test.ts": 14982, + "server/src/__tests__/heartbeat-context-compaction-execution.test.ts": 17964, + "server/src/__tests__/heartbeat-context-summary.test.ts": 6783, + "server/src/__tests__/heartbeat-cost-accounting.test.ts": 8651, + "server/src/__tests__/heartbeat-direct-adapter-native-isolation.test.ts": 16073, "server/src/__tests__/heartbeat-drain-native-resume-dispatch.test.ts": 7922, "server/src/__tests__/heartbeat-execution-configuration.test.ts": 32284, "server/src/__tests__/heartbeat-git-restore-point-resume.test.ts": 22905, "server/src/__tests__/heartbeat-held-comment-wake.test.ts": 67821, "server/src/__tests__/heartbeat-instruction-working-copy.test.ts": 21994, + "server/src/__tests__/heartbeat-isolated-continuation-hold.test.ts": 25154, "server/src/__tests__/heartbeat-issue-rewake-throttle.test.ts": 20323, - "server/src/__tests__/heartbeat-lease-release-before-runner-attach.test.ts": 14730, - "server/src/__tests__/heartbeat-ledger-billing-code.test.ts": 8743, - "server/src/__tests__/heartbeat-list.test.ts": 10959, - "server/src/__tests__/heartbeat-local-environment.test.ts": 13521, - "server/src/__tests__/heartbeat-lock-release-on-reassignment.test.ts": 10323, - "server/src/__tests__/heartbeat-managed-clone-credentials.test.ts": 8704, - "server/src/__tests__/heartbeat-model-fallback-warning.test.ts": 5766, - "server/src/__tests__/heartbeat-native-cleanup-admission-hold.test.ts": 12906, + "server/src/__tests__/heartbeat-lease-release-before-runner-attach.test.ts": 16200, + "server/src/__tests__/heartbeat-ledger-billing-code.test.ts": 9045, + "server/src/__tests__/heartbeat-list.test.ts": 7781, + "server/src/__tests__/heartbeat-local-environment.test.ts": 14676, + "server/src/__tests__/heartbeat-lock-release-on-reassignment.test.ts": 10703, + "server/src/__tests__/heartbeat-managed-clone-credentials.test.ts": 10689, + "server/src/__tests__/heartbeat-model-fallback-warning.test.ts": 6457, + "server/src/__tests__/heartbeat-native-cleanup-admission-hold.test.ts": 10580, "server/src/__tests__/heartbeat-native-cleanup-admission.test.ts": 20757, - "server/src/__tests__/heartbeat-native-early-hand-off.test.ts": 15018, + "server/src/__tests__/heartbeat-native-early-hand-off.test.ts": 12534, "server/src/__tests__/heartbeat-native-orphan-sweep-lease-race.test.ts": 8348, "server/src/__tests__/heartbeat-native-predispatch-retry.test.ts": 34006, "server/src/__tests__/heartbeat-native-remote-failure-retention.test.ts": 13612, "server/src/__tests__/heartbeat-native-restart-suspension.test.ts": 223420, - "server/src/__tests__/heartbeat-native-resume-lease-failure.test.ts": 9807, - "server/src/__tests__/heartbeat-native-runner-cancellation.test.ts": 8657, - "server/src/__tests__/heartbeat-native-status-context.test.ts": 7268, - "server/src/__tests__/heartbeat-native-stop-before-admission.test.ts": 11608, + "server/src/__tests__/heartbeat-native-resume-lease-failure.test.ts": 10210, + "server/src/__tests__/heartbeat-native-runner-cancellation.test.ts": 8349, + "server/src/__tests__/heartbeat-native-status-context.test.ts": 7721, + "server/src/__tests__/heartbeat-native-stop-before-admission.test.ts": 8178, "server/src/__tests__/heartbeat-observed-workspace-preservation.test.ts": 50141, "server/src/__tests__/heartbeat-orphaned-active-lease-sweep.test.ts": 9957, - "server/src/__tests__/heartbeat-paused-assignee-new-task.test.ts": 10679, + "server/src/__tests__/heartbeat-paused-assignee-new-task.test.ts": 12006, "server/src/__tests__/heartbeat-pending-cleanup-sweep.test.ts": 10615, "server/src/__tests__/heartbeat-person-tree-dispatch.test.ts": 26150, - "server/src/__tests__/heartbeat-plugin-environment.test.ts": 17979, - "server/src/__tests__/heartbeat-preparation-gap-spans.test.ts": 9938, - "server/src/__tests__/heartbeat-project-env.test.ts": 8109, + "server/src/__tests__/heartbeat-plugin-environment.test.ts": 20161, + "server/src/__tests__/heartbeat-preparation-gap-spans.test.ts": 10438, + "server/src/__tests__/heartbeat-project-env.test.ts": 8463, "server/src/__tests__/heartbeat-project-repositories.test.ts": 158961, "server/src/__tests__/heartbeat-provider-limit-wait.test.ts": 24818, - "server/src/__tests__/heartbeat-queued-run-claim-isolation.test.ts": 29189, - "server/src/__tests__/heartbeat-reassignment-deferred-wake.test.ts": 13446, - "server/src/__tests__/heartbeat-referenced-projects.test.ts": 7393, - "server/src/__tests__/heartbeat-refused-assignment-wake.test.ts": 11095, - "server/src/__tests__/heartbeat-remote-referenced-projects.test.ts": 7645, + "server/src/__tests__/heartbeat-queued-run-claim-isolation.test.ts": 33654, + "server/src/__tests__/heartbeat-reassignment-deferred-wake.test.ts": 16031, + "server/src/__tests__/heartbeat-referenced-projects.test.ts": 9873, + "server/src/__tests__/heartbeat-refused-assignment-wake.test.ts": 8790, + "server/src/__tests__/heartbeat-remote-referenced-projects.test.ts": 8671, "server/src/__tests__/heartbeat-remote-workspace-busy.test.ts": 20229, "server/src/__tests__/heartbeat-repository-catalog-recovery.test.ts": 79077, - "server/src/__tests__/heartbeat-responsible-user-invariant.test.ts": 45664, - "server/src/__tests__/heartbeat-restart-claim-lapse.test.ts": 8577, + "server/src/__tests__/heartbeat-responsible-user-invariant.test.ts": 54531, + "server/src/__tests__/heartbeat-restart-claim-lapse.test.ts": 8610, "server/src/__tests__/heartbeat-retry-scheduling.test.ts": 54171, "server/src/__tests__/heartbeat-reviewed-chat-binding.integration.test.ts": 20887, - "server/src/__tests__/heartbeat-run-dispatch-lifecycle.test.ts": 6351, + "server/src/__tests__/heartbeat-run-dispatch-lifecycle.test.ts": 6945, "server/src/__tests__/heartbeat-run-dispatch-work.test.ts": 51459, - "server/src/__tests__/heartbeat-run-event-atomic-append.test.ts": 15326, - "server/src/__tests__/heartbeat-run-event-sequencing.test.ts": 12287, - "server/src/__tests__/heartbeat-run-lease-release-terminalization.test.ts": 11461, - "server/src/__tests__/heartbeat-run-log.test.ts": 6583, + "server/src/__tests__/heartbeat-run-event-atomic-append.test.ts": 19161, + "server/src/__tests__/heartbeat-run-event-sequencing.test.ts": 9859, + "server/src/__tests__/heartbeat-run-lease-release-terminalization.test.ts": 10763, + "server/src/__tests__/heartbeat-run-log.test.ts": 8074, "server/src/__tests__/heartbeat-run-output.test.ts": 34150, - "server/src/__tests__/heartbeat-run-privacy-disconnect-retry.test.ts": 2830, + "server/src/__tests__/heartbeat-run-privacy-disconnect-retry.test.ts": 2749, "server/src/__tests__/heartbeat-run-scratch-recovery.test.ts": 10008, "server/src/__tests__/heartbeat-run-start-handover.test.ts": 13908, - "server/src/__tests__/heartbeat-run-status-payload.test.ts": 7089, - "server/src/__tests__/heartbeat-run-summary.test.ts": 896, - "server/src/__tests__/heartbeat-run-terminalize-before-release.test.ts": 11221, - "server/src/__tests__/heartbeat-running-followup.test.ts": 4933, - "server/src/__tests__/heartbeat-runtime-mcp-servers.test.ts": 13449, + "server/src/__tests__/heartbeat-run-status-payload.test.ts": 7622, + "server/src/__tests__/heartbeat-run-summary.test.ts": 1333, + "server/src/__tests__/heartbeat-run-terminalize-before-release.test.ts": 11542, + "server/src/__tests__/heartbeat-running-followup.test.ts": 4924, + "server/src/__tests__/heartbeat-runtime-mcp-servers.test.ts": 31507, "server/src/__tests__/heartbeat-runtime-services.test.ts": 20472, - "server/src/__tests__/heartbeat-runtime-skills.test.ts": 17033, - "server/src/__tests__/heartbeat-runtime-state.test.ts": 8087, - "server/src/__tests__/heartbeat-scheduling-suppression.test.ts": 7131, + "server/src/__tests__/heartbeat-runtime-skills.test.ts": 17652, + "server/src/__tests__/heartbeat-runtime-state.test.ts": 8979, + "server/src/__tests__/heartbeat-scheduling-suppression.test.ts": 7604, "server/src/__tests__/heartbeat-session-preparation.test.ts": 39528, "server/src/__tests__/heartbeat-slack-invitation.test.ts": 25600, "server/src/__tests__/heartbeat-stale-queue-invalidation.test.ts": 145134, - "server/src/__tests__/heartbeat-startup-fresh-dispatch.test.ts": 14060, - "server/src/__tests__/heartbeat-status-preserving-telemetry.test.ts": 7654, + "server/src/__tests__/heartbeat-startup-fresh-dispatch.test.ts": 13721, + "server/src/__tests__/heartbeat-status-preserving-telemetry.test.ts": 7698, "server/src/__tests__/heartbeat-stop-queued-task.test.ts": 71194, "server/src/__tests__/heartbeat-subtask-acquired-repository.test.ts": 19535, "server/src/__tests__/heartbeat-task-context.test.ts": 20582, - "server/src/__tests__/heartbeat-task-directory-restore.test.ts": 10598, + "server/src/__tests__/heartbeat-task-directory-restore.test.ts": 12107, "server/src/__tests__/heartbeat-task-drain-admission-release.test.ts": 23078, "server/src/__tests__/heartbeat-task-drain.test.ts": 8334, - "server/src/__tests__/heartbeat-task-session-reset.test.ts": 7866, - "server/src/__tests__/heartbeat-terminate-pending-native-retry.test.ts": 8453, - "server/src/__tests__/heartbeat-timer-wake-session-reset-pf4.test.ts": 8080, - "server/src/__tests__/heartbeat-undispatched-execution-wait.test.ts": 10407, - "server/src/__tests__/heartbeat-workspace-branch-containment.test.ts": 57923, + "server/src/__tests__/heartbeat-task-session-reset.test.ts": 8307, + "server/src/__tests__/heartbeat-terminate-pending-native-retry.test.ts": 8872, + "server/src/__tests__/heartbeat-timer-wake-session-reset-pf4.test.ts": 7736, + "server/src/__tests__/heartbeat-undispatched-execution-wait.test.ts": 12435, + "server/src/__tests__/heartbeat-workspace-branch-containment.test.ts": 55549, "server/src/__tests__/heartbeat-workspace-busy.test.ts": 85133, - "server/src/__tests__/heartbeat-workspace-finalize-branch.test.ts": 15287, - "server/src/__tests__/heartbeat-workspace-ready-comment.test.ts": 7488, + "server/src/__tests__/heartbeat-workspace-finalize-branch.test.ts": 15046, + "server/src/__tests__/heartbeat-workspace-ready-comment.test.ts": 8519, "server/src/__tests__/heartbeat-workspace-session.test.ts": 25884, - "server/src/__tests__/heartbeat-workspace-source-trust.test.ts": 83786, - "server/src/__tests__/heartbeat-worktree-suppression.test.ts": 16354, - "server/src/__tests__/heartbeat-zombie-guard.test.ts": 7385, - "server/src/__tests__/helpers/external-test-database.test.ts": 743, - "server/src/__tests__/helpers/full-database-response-capture.test.ts": 963, - "server/src/__tests__/helpers/truncate-with-deadlock-retry.test.ts": 743, - "server/src/__tests__/hire-hook.test.ts": 2353, + "server/src/__tests__/heartbeat-workspace-source-trust.test.ts": 109068, + "server/src/__tests__/heartbeat-worktree-suppression.test.ts": 11464, + "server/src/__tests__/heartbeat-zombie-guard.test.ts": 8592, + "server/src/__tests__/helpers/external-test-database.test.ts": 619, + "server/src/__tests__/helpers/full-database-response-capture.test.ts": 1015, + "server/src/__tests__/helpers/truncate-with-deadlock-retry.test.ts": 758, + "server/src/__tests__/hire-hook.test.ts": 2247, "server/src/__tests__/historical-cleanup-verification.test.ts": 29875, - "server/src/__tests__/historical-provider-credentials.test.ts": 8249, - "server/src/__tests__/http-adapter-remote-fetch.test.ts": 806, - "server/src/__tests__/http-log-aborted-response.test.ts": 1169, - "server/src/__tests__/http-log-policy.test.ts": 759, - "server/src/__tests__/http-log-redaction.test.ts": 6807, + "server/src/__tests__/historical-provider-credentials.test.ts": 9215, + "server/src/__tests__/http-adapter-remote-fetch.test.ts": 1328, + "server/src/__tests__/http-log-aborted-response.test.ts": 1296, + "server/src/__tests__/http-log-policy.test.ts": 881, + "server/src/__tests__/http-log-redaction.test.ts": 8186, "server/src/__tests__/human-directed-work.test.ts": 8399, "server/src/__tests__/idle-accounting-work.test.ts": 7533, "server/src/__tests__/idle-admission.test.ts": 1366, @@ -612,52 +626,52 @@ "server/src/__tests__/idle-response-waits.test.ts": 37561, "server/src/__tests__/idle-scheduled-work.test.ts": 669, "server/src/__tests__/idle-sleep-diagnostics-postgres.test.ts": 13581, - "server/src/__tests__/idle-sleep-diagnostics.test.ts": 7789, + "server/src/__tests__/idle-sleep-diagnostics.test.ts": 8607, "server/src/__tests__/idle-sleep-preparation.test.ts": 6643, "server/src/__tests__/idle-sleep-safety.test.ts": 150013, "server/src/__tests__/import-spool-cleanup-work.test.ts": 3447, - "server/src/__tests__/inbound-queue-discovery.test.ts": 8858, - "server/src/__tests__/inbox-dismissals.test.ts": 8425, - "server/src/__tests__/inbox-mine-candidates.test.ts": 7909, - "server/src/__tests__/instance-settings-cache.test.ts": 9036, - "server/src/__tests__/instance-settings-cloud-defaults.test.ts": 6290, - "server/src/__tests__/instance-settings-managed-overlay.test.ts": 6174, - "server/src/__tests__/instance-settings-operator-defaults.test.ts": 5978, - "server/src/__tests__/instance-settings-service.test.ts": 4759, - "server/src/__tests__/instrumentation-signals.test.ts": 1055, - "server/src/__tests__/instrumentation.test.ts": 1120, - "server/src/__tests__/interaction-resolution-cross-issue-cap-postgres.test.ts": 10860, - "server/src/__tests__/interrupted-preparation-hold-settle.test.ts": 15835, - "server/src/__tests__/interrupted-preparation-restore-retry.test.ts": 9335, - "server/src/__tests__/invitation-token-redaction.test.ts": 783, - "server/src/__tests__/invite-join-grants.test.ts": 1303, - "server/src/__tests__/invite-rate-limit.test.ts": 643, - "server/src/__tests__/invite-token-entropy.test.ts": 4983, + "server/src/__tests__/inbound-queue-discovery.test.ts": 13745, + "server/src/__tests__/inbox-dismissals.test.ts": 9293, + "server/src/__tests__/inbox-mine-candidates.test.ts": 9100, + "server/src/__tests__/instance-settings-cache.test.ts": 9390, + "server/src/__tests__/instance-settings-cloud-defaults.test.ts": 6823, + "server/src/__tests__/instance-settings-managed-overlay.test.ts": 6101, + "server/src/__tests__/instance-settings-operator-defaults.test.ts": 7649, + "server/src/__tests__/instance-settings-service.test.ts": 7966, + "server/src/__tests__/instrumentation-signals.test.ts": 874, + "server/src/__tests__/instrumentation.test.ts": 1100, + "server/src/__tests__/interaction-resolution-cross-issue-cap-postgres.test.ts": 13754, + "server/src/__tests__/interrupted-preparation-hold-settle.test.ts": 18239, + "server/src/__tests__/interrupted-preparation-restore-retry.test.ts": 10721, + "server/src/__tests__/invitation-token-redaction.test.ts": 888, + "server/src/__tests__/invite-join-grants.test.ts": 1606, + "server/src/__tests__/invite-rate-limit.test.ts": 650, + "server/src/__tests__/invite-token-entropy.test.ts": 6255, "server/src/__tests__/isolated-repository-rehome.test.ts": 93407, "server/src/__tests__/isolated-task-directory-retention-config.test.ts": 1632, "server/src/__tests__/isolated-task-directory-retention.test.ts": 36349, - "server/src/__tests__/isolated-test-home.test.ts": 932, - "server/src/__tests__/issue-blocker-attention.test.ts": 12671, + "server/src/__tests__/isolated-test-home.test.ts": 1040, + "server/src/__tests__/issue-blocker-attention.test.ts": 12080, "server/src/__tests__/issue-blocker-stall-waiter-statement.test.ts": 8086, "server/src/__tests__/issue-blocker-stall-wakeups.test.ts": 22472, - "server/src/__tests__/issue-comment-receipt-postgres.test.ts": 6450, - "server/src/__tests__/issue-comment-redaction.test.ts": 10914, - "server/src/__tests__/issue-context-usage.test.ts": 1905, - "server/src/__tests__/issue-continuation-summary.test.ts": 1964, - "server/src/__tests__/issue-creation-source-read.test.ts": 3828, - "server/src/__tests__/issue-dependency-restore-wake-policy.test.ts": 2213, - "server/src/__tests__/issue-detail-statements.test.ts": 9613, - "server/src/__tests__/issue-display-status.test.ts": 20706, - "server/src/__tests__/issue-execution-policy-persistence.test.ts": 6060, - "server/src/__tests__/issue-execution-policy.test.ts": 1462, - "server/src/__tests__/issue-existing-branch-validation-status.test.ts": 7389, - "server/src/__tests__/issue-goal-fallback.test.ts": 727, - "server/src/__tests__/issue-graph-liveness-equivalence.test.ts": 2067, - "server/src/__tests__/issue-list-review-wait-authorization.integration.test.ts": 6933, - "server/src/__tests__/issue-liveness.test.ts": 1622, + "server/src/__tests__/issue-comment-receipt-postgres.test.ts": 7560, + "server/src/__tests__/issue-comment-redaction.test.ts": 9709, + "server/src/__tests__/issue-context-usage.test.ts": 2360, + "server/src/__tests__/issue-continuation-summary.test.ts": 2103, + "server/src/__tests__/issue-creation-source-read.test.ts": 2958, + "server/src/__tests__/issue-dependency-restore-wake-policy.test.ts": 2100, + "server/src/__tests__/issue-detail-statements.test.ts": 10875, + "server/src/__tests__/issue-display-status.test.ts": 19785, + "server/src/__tests__/issue-execution-policy-persistence.test.ts": 6811, + "server/src/__tests__/issue-execution-policy.test.ts": 3135, + "server/src/__tests__/issue-existing-branch-validation-status.test.ts": 6770, + "server/src/__tests__/issue-goal-fallback.test.ts": 867, + "server/src/__tests__/issue-graph-liveness-equivalence.test.ts": 2431, + "server/src/__tests__/issue-list-review-wait-authorization.integration.test.ts": 8294, + "server/src/__tests__/issue-liveness.test.ts": 1969, "server/src/__tests__/issue-monitor-scheduler.test.ts": 34340, "server/src/__tests__/issue-read-filter-batching.test.ts": 23819, - "server/src/__tests__/issue-reassignment-queued-run.test.ts": 8813, + "server/src/__tests__/issue-reassignment-queued-run.test.ts": 8502, "server/src/__tests__/issue-recovery-actions.test.ts": 46806, "server/src/__tests__/issue-recovery-activity-hints.test.ts": 112944, "server/src/__tests__/issue-recovery-agent-row-write-census.test.ts": 74922, @@ -676,102 +690,106 @@ "server/src/__tests__/issue-recovery-terminal-run-settling.test.ts": 8681, "server/src/__tests__/issue-recovery-work-debug-attribution.test.ts": 41278, "server/src/__tests__/issue-recovery-work-lifecycle.test.ts": 6108, - "server/src/__tests__/issue-references-service.test.ts": 3501, - "server/src/__tests__/issue-remove-cascade.test.ts": 5867, - "server/src/__tests__/issue-review-attention.test.ts": 7811, - "server/src/__tests__/issue-review-policy.test.ts": 2666, - "server/src/__tests__/issue-rewake-throttle.test.ts": 595, - "server/src/__tests__/issue-runs-read-cost.test.ts": 11092, - "server/src/__tests__/issue-runtime-workspace-binding.test.ts": 8013, - "server/src/__tests__/issue-thread-interactions-service.test.ts": 23650, - "server/src/__tests__/issue-thread-interactions-telemetry.test.ts": 7122, - "server/src/__tests__/issue-tree-control-service-unit.test.ts": 4369, - "server/src/__tests__/issue-tree-control-service.test.ts": 7372, + "server/src/__tests__/issue-references-service.test.ts": 4228, + "server/src/__tests__/issue-remove-cascade.test.ts": 8192, + "server/src/__tests__/issue-review-attention.test.ts": 7639, + "server/src/__tests__/issue-review-policy.test.ts": 2941, + "server/src/__tests__/issue-rewake-throttle.test.ts": 740, + "server/src/__tests__/issue-runs-read-cost.test.ts": 9947, + "server/src/__tests__/issue-runtime-workspace-binding.test.ts": 8310, + "server/src/__tests__/issue-thread-interactions-service.test.ts": 30876, + "server/src/__tests__/issue-thread-interactions-telemetry.test.ts": 7836, + "server/src/__tests__/issue-tree-control-service-unit.test.ts": 4393, + "server/src/__tests__/issue-tree-control-service.test.ts": 8659, "server/src/__tests__/issue-tree-pause-resume-run.test.ts": 65684, - "server/src/__tests__/issue-update-lock-contention-postgres.test.ts": 7884, - "server/src/__tests__/issues-assignee-unread.test.ts": 16311, - "server/src/__tests__/issues-creation-visibility.test.ts": 12304, - "server/src/__tests__/issues-list-query-parsing.test.ts": 12785, - "server/src/__tests__/issues-parent-id-alias.test.ts": 12056, - "server/src/__tests__/issues-unread-inbox.test.ts": 7414, - "server/src/__tests__/issues-user-context.test.ts": 7168, - "server/src/__tests__/join-request-dedupe.test.ts": 783, + "server/src/__tests__/issue-update-lock-contention-postgres.test.ts": 11368, + "server/src/__tests__/issues-assignee-unread.test.ts": 15847, + "server/src/__tests__/issues-creation-visibility.test.ts": 11297, + "server/src/__tests__/issues-list-query-parsing.test.ts": 14377, + "server/src/__tests__/issues-parent-id-alias.test.ts": 10035, + "server/src/__tests__/issues-unread-inbox.test.ts": 9100, + "server/src/__tests__/issues-user-context.test.ts": 6682, + "server/src/__tests__/join-request-dedupe.test.ts": 898, "server/src/__tests__/join-request-retention-work.test.ts": 17441, - "server/src/__tests__/json-parse-error-handler.test.ts": 5885, - "server/src/__tests__/json-schema-secret-refs.test.ts": 1028, - "server/src/__tests__/kimi-connection-probe.test.ts": 1393, - "server/src/__tests__/kimi-local-skill-sync.test.ts": 2070, - "server/src/__tests__/legacy-continuation-authority.test.ts": 18643, - "server/src/__tests__/legacy-finalization-regression.test.ts": 9718, - "server/src/__tests__/legacy-runtime-tool-refresh.test.ts": 1803, - "server/src/__tests__/legacy-workspace-rehome.test.ts": 16273, - "server/src/__tests__/legacy-workspace-restore-lock-contention.test.ts": 6556, + "server/src/__tests__/json-parse-error-handler.test.ts": 6983, + "server/src/__tests__/json-schema-secret-refs.test.ts": 754, + "server/src/__tests__/kimi-connection-probe.test.ts": 2191, + "server/src/__tests__/kimi-local-skill-sync.test.ts": 1725, + "server/src/__tests__/legacy-continuation-authority.test.ts": 16892, + "server/src/__tests__/legacy-finalization-regression.test.ts": 12225, + "server/src/__tests__/legacy-runtime-tool-refresh.test.ts": 1923, + "server/src/__tests__/legacy-workspace-rehome.test.ts": 16753, + "server/src/__tests__/legacy-workspace-restore-lock-contention.test.ts": 7078, "server/src/__tests__/legacy-workspace-restore-recovery.test.ts": 9551, "server/src/__tests__/link-preview-store.integration.test.ts": 9626, - "server/src/__tests__/link-previews.test.ts": 2127, - "server/src/__tests__/live-events-run-read.test.ts": 11582, - "server/src/__tests__/live-events-toast.test.ts": 6468, - "server/src/__tests__/live-events-ws.test.ts": 7141, + "server/src/__tests__/link-previews.test.ts": 2118, + "server/src/__tests__/live-events-run-read.test.ts": 12855, + "server/src/__tests__/live-events-toast.test.ts": 6652, + "server/src/__tests__/live-events-ws.test.ts": 8733, "server/src/__tests__/live-recovery-work.test.ts": 207953, - "server/src/__tests__/live-runs-batched-reads.test.ts": 15576, - "server/src/__tests__/liveness.test.ts": 5462, - "server/src/__tests__/local-agent-process-boundary.test.ts": 13010, - "server/src/__tests__/local-ai-credential-file.test.ts": 539, - "server/src/__tests__/local-ai-credentials.test.ts": 2157, - "server/src/__tests__/local-ai-login-policy.test.ts": 690, - "server/src/__tests__/local-encrypted-cipher.test.ts": 1057, - "server/src/__tests__/local-service-supervisor.test.ts": 9920, - "server/src/__tests__/log-redaction.test.ts": 905, - "server/src/__tests__/logger-invitation-redaction.test.ts": 918, - "server/src/__tests__/logger-tz.test.ts": 673, + "server/src/__tests__/live-runs-batched-reads.test.ts": 17736, + "server/src/__tests__/liveness.test.ts": 5999, + "server/src/__tests__/local-agent-process-boundary.test.ts": 11558, + "server/src/__tests__/local-ai-credential-file.test.ts": 1007, + "server/src/__tests__/local-ai-credentials.test.ts": 2653, + "server/src/__tests__/local-ai-login-policy.test.ts": 674, + "server/src/__tests__/local-encrypted-cipher.test.ts": 944, + "server/src/__tests__/local-service-supervisor.test.ts": 8630, + "server/src/__tests__/log-redaction.test.ts": 829, + "server/src/__tests__/logger-invitation-redaction.test.ts": 978, + "server/src/__tests__/logger-pretty-transport-reuse.test.ts": 709, + "server/src/__tests__/logger-tz.test.ts": 818, "server/src/__tests__/login-cleanup-work.test.ts": 13356, - "server/src/__tests__/login-session-runtime.test.ts": 6254, - "server/src/__tests__/maintenance-harness-resources.test.ts": 839, - "server/src/__tests__/maintenance-postgres-proxy.test.ts": 2460, - "server/src/__tests__/managed-cloud-prerequisites.test.ts": 2259, - "server/src/__tests__/managed-config.test.ts": 1647, - "server/src/__tests__/managed-instance-default.test.ts": 7354, - "server/src/__tests__/managed-loopback-auth.test.ts": 2257, - "server/src/__tests__/managed-plugin-environments.test.ts": 8655, - "server/src/__tests__/managed-plugin-worker-env.test.ts": 1655, - "server/src/__tests__/managed-repository-checkout.test.ts": 5948, - "server/src/__tests__/managed-runtime-public-url.test.ts": 1800, + "server/src/__tests__/login-session-runtime.test.ts": 7488, + "server/src/__tests__/maintenance-clock-database-startup.test.ts": 845, + "server/src/__tests__/maintenance-harness-resources.test.ts": 904, + "server/src/__tests__/maintenance-postgres-proxy.test.ts": 3223, + "server/src/__tests__/managed-cloud-prerequisites.test.ts": 2692, + "server/src/__tests__/managed-config.test.ts": 1875, + "server/src/__tests__/managed-instance-default.test.ts": 7749, + "server/src/__tests__/managed-loopback-auth.test.ts": 3185, + "server/src/__tests__/managed-plugin-environments.test.ts": 8003, + "server/src/__tests__/managed-plugin-worker-env.test.ts": 1563, + "server/src/__tests__/managed-repository-checkout.test.ts": 7882, + "server/src/__tests__/managed-runtime-public-url.test.ts": 1925, "server/src/__tests__/managed-skill-content.test.ts": 152199, - "server/src/__tests__/managed-worktree-inspection.test.ts": 8358, - "server/src/__tests__/mcp-apps.test.ts": 10157, - "server/src/__tests__/mcp-elicitation.test.ts": 18313, - "server/src/__tests__/mcp-error-message.test.ts": 843, - "server/src/__tests__/mcp-http.test.ts": 1731, - "server/src/__tests__/mcp-protocol-versions.test.ts": 9056, - "server/src/__tests__/mcp-skills.test.ts": 11975, + "server/src/__tests__/managed-worktree-inspection.test.ts": 7271, + "server/src/__tests__/mcp-apps.test.ts": 14554, + "server/src/__tests__/mcp-elicitation.test.ts": 24880, + "server/src/__tests__/mcp-error-message.test.ts": 886, + "server/src/__tests__/mcp-http.test.ts": 1604, + "server/src/__tests__/mcp-protocol-versions.test.ts": 10318, + "server/src/__tests__/mcp-skills.test.ts": 10526, "server/src/__tests__/mcp-task-work.test.ts": 602, "server/src/__tests__/mcp-tasks-demo-server.test.ts": 27076, - "server/src/__tests__/mcp-tasks.test.ts": 42151, - "server/src/__tests__/memory-connectors.test.ts": 5709, + "server/src/__tests__/mcp-tasks.test.ts": 50713, + "server/src/__tests__/memory-connectors.test.ts": 7244, "server/src/__tests__/merged-pr-confirmation-sweep.test.ts": 8317, "server/src/__tests__/merged-pr-confirmation-work.test.ts": 17605, - "server/src/__tests__/missing-empty-task-directory.test.ts": 6123, - "server/src/__tests__/monthly-spend-service.test.ts": 7225, + "server/src/__tests__/missing-empty-task-directory.test.ts": 7277, + "server/src/__tests__/monthly-spend-service.test.ts": 8218, "server/src/__tests__/muse-client-contract.test.ts": 13742, "server/src/__tests__/muse-control.test.ts": 107452, "server/src/__tests__/muse-terminal-settlement.test.ts": 25265, - "server/src/__tests__/native-cancellation-delivery.test.ts": 6799, + "server/src/__tests__/native-cancellation-delivery.test.ts": 7761, "server/src/__tests__/native-cancellation-request.integration.test.ts": 8844, - "server/src/__tests__/native-connection-baseline-fixture.test.ts": 12137, + "server/src/__tests__/native-connection-baseline-fixture.test.ts": 16122, "server/src/__tests__/native-environment-settlement-work.test.ts": 19901, - "server/src/__tests__/native-event-boundary-golden.test.ts": 3132, - "server/src/__tests__/native-exhausted-finalization-retry.test.ts": 9032, + "server/src/__tests__/native-event-boundary-golden.test.ts": 3391, + "server/src/__tests__/native-exhausted-finalization-retry.test.ts": 9199, "server/src/__tests__/native-failed-run-owner-release-idle.test.ts": 13796, "server/src/__tests__/native-finalization-recovery.test.ts": 7766, - "server/src/__tests__/native-finalization-retry-budget.test.ts": 5766, - "server/src/__tests__/native-finalization-settled-candidates.test.ts": 7997, + "server/src/__tests__/native-finalization-retry-budget.test.ts": 8367, + "server/src/__tests__/native-finalization-settled-candidates.test.ts": 8415, "server/src/__tests__/native-harness-backup-expiration-config.test.ts": 1632, "server/src/__tests__/native-harness-backup-expiration.test.ts": 34702, - "server/src/__tests__/native-interaction-bridge-closed.test.ts": 5482, - "server/src/__tests__/native-interaction-bridge.test.ts": 7765, + "server/src/__tests__/native-interaction-bridge-closed.test.ts": 7199, + "server/src/__tests__/native-interaction-bridge.test.ts": 18552, "server/src/__tests__/native-observer-replay.test.ts": 8254, - "server/src/__tests__/native-plan-proposal-sync.test.ts": 6802, - "server/src/__tests__/native-procedure-measurement.test.ts": 6774, + "server/src/__tests__/native-plan-proposal-sync.test.ts": 8421, + "server/src/__tests__/native-plan-review-card-finalizer.test.ts": 9104, + "server/src/__tests__/native-plan-review-card.test.ts": 14263, + "server/src/__tests__/native-procedure-measurement.test.ts": 7171, "server/src/__tests__/native-question-process-handoff.test.ts": 28851, "server/src/__tests__/native-recovery-dispatch-lease-reacquire.test.ts": 6988, "server/src/__tests__/native-recovery-notice-work.test.ts": 15693, @@ -779,988 +797,1049 @@ "server/src/__tests__/native-result-commit-work.test.ts": 14821, "server/src/__tests__/native-retention-blocker-batch.test.ts": 14621, "server/src/__tests__/native-run-projection-work.test.ts": 36499, - "server/src/__tests__/native-runner-input-boundary.test.ts": 671, - "server/src/__tests__/native-runtime-response-delivery.test.ts": 7102, - "server/src/__tests__/native-sandbox-lifecycle.test.ts": 7167, + "server/src/__tests__/native-runner-input-boundary.test.ts": 915, + "server/src/__tests__/native-runtime-response-delivery.test.ts": 7586, + "server/src/__tests__/native-sandbox-lifecycle.test.ts": 6255, "server/src/__tests__/native-session-resumption.test.ts": 30914, - "server/src/__tests__/native-settled-process-release.test.ts": 12518, + "server/src/__tests__/native-settled-process-release.test.ts": 14575, "server/src/__tests__/native-startup-cleanup-recovery.test.ts": 13606, "server/src/__tests__/native-status-arbiter-corpus.test.ts": 98250, "server/src/__tests__/native-status-reassessment-work.test.ts": 57482, + "server/src/__tests__/native-terminal-state-readers.test.ts": 1039, "server/src/__tests__/native-tool-call-loop-continuation.test.ts": 12786, "server/src/__tests__/native-workspace-finalization-work.test.ts": 12186, "server/src/__tests__/native-workspace-sync-history.test.ts": 38523, "server/src/__tests__/native-workspace-sync-retention-config.test.ts": 1494, "server/src/__tests__/native-workspace-sync-retention.test.ts": 7658, - "server/src/__tests__/native-workspace-sync.test.ts": 2469, + "server/src/__tests__/native-workspace-sync.test.ts": 2500, "server/src/__tests__/nested-clone-migration.test.ts": 78158, - "server/src/__tests__/oauth-client-metadata.test.ts": 10057, - "server/src/__tests__/onboarding-approval-history.test.ts": 21935, + "server/src/__tests__/never-started-retry-cancellation-hold.test.ts": 13511, + "server/src/__tests__/oauth-client-metadata.test.ts": 6653, + "server/src/__tests__/oauth-dcr-failure-reporting.test.ts": 10075, + "server/src/__tests__/onboarding-approval-history.test.ts": 29835, "server/src/__tests__/onboarding-first-task-admission.test.ts": 43108, - "server/src/__tests__/onepassword-connection.test.ts": 10517, + "server/src/__tests__/onepassword-connection.test.ts": 11120, "server/src/__tests__/online-workspace-migration-compatibility.test.ts": 9742, - "server/src/__tests__/openclaw-gateway-adapter.test.ts": 2147, - "server/src/__tests__/opencode-local-adapter.test.ts": 1878, - "server/src/__tests__/opencode-local-skill-sync.test.ts": 1868, - "server/src/__tests__/owner-chat-instruction-authority.test.ts": 11490, - "server/src/__tests__/owner-gone-attestation.test.ts": 10180, + "server/src/__tests__/openclaw-gateway-adapter.test.ts": 2026, + "server/src/__tests__/opencode-local-adapter.test.ts": 1957, + "server/src/__tests__/opencode-local-skill-sync.test.ts": 2124, + "server/src/__tests__/owner-chat-instruction-authority.test.ts": 10576, + "server/src/__tests__/owner-gone-attestation.test.ts": 9914, "server/src/__tests__/ownership-reconciliation-report.test.ts": 73104, - "server/src/__tests__/paperclip-env.test.ts": 1678, - "server/src/__tests__/paperclip-issue-update-helper.test.ts": 6452, - "server/src/__tests__/paperclip-semantic-conformance.test.ts": 11359, - "server/src/__tests__/paperclip-skill-utils.test.ts": 9225, - "server/src/__tests__/parse-status-filter.test.ts": 5230, - "server/src/__tests__/persisted-workspace-source.test.ts": 8968, + "server/src/__tests__/paperclip-cloud-connector-status.test.ts": 791, + "server/src/__tests__/paperclip-env.test.ts": 1829, + "server/src/__tests__/paperclip-issue-update-helper.test.ts": 5710, + "server/src/__tests__/paperclip-semantic-conformance.test.ts": 13686, + "server/src/__tests__/paperclip-skill-utils.test.ts": 10184, + "server/src/__tests__/parse-status-filter.test.ts": 7327, + "server/src/__tests__/persisted-workspace-source.test.ts": 10691, "server/src/__tests__/photon/channel.integration.test.ts": 38384, - "server/src/__tests__/photon/photon.test.ts": 1559, - "server/src/__tests__/pi-local-adapter-environment.test.ts": 2327, - "server/src/__tests__/pi-local-execute.test.ts": 2644, - "server/src/__tests__/pi-local-skill-sync.test.ts": 1664, - "server/src/__tests__/plan-task-fixture.test.ts": 12701, - "server/src/__tests__/plugin-access-authorization-host-services.test.ts": 7499, - "server/src/__tests__/plugin-agent-sessions.test.ts": 8062, - "server/src/__tests__/plugin-config-startup-delivery.test.ts": 2482, - "server/src/__tests__/plugin-config-validator.test.ts": 1779, - "server/src/__tests__/plugin-connectors-circleback-parity.test.ts": 10883, - "server/src/__tests__/plugin-connectors-plugin-transport.test.ts": 10639, - "server/src/__tests__/plugin-database.test.ts": 2041, - "server/src/__tests__/plugin-dev-watcher.test.ts": 943, + "server/src/__tests__/photon/photon.test.ts": 2160, + "server/src/__tests__/pi-local-adapter-environment.test.ts": 2031, + "server/src/__tests__/pi-local-execute.test.ts": 2423, + "server/src/__tests__/pi-local-skill-sync.test.ts": 2046, + "server/src/__tests__/plan-task-fixture.test.ts": 13874, + "server/src/__tests__/plugin-access-authorization-host-services.test.ts": 9995, + "server/src/__tests__/plugin-agent-sessions.test.ts": 6832, + "server/src/__tests__/plugin-config-startup-delivery.test.ts": 2424, + "server/src/__tests__/plugin-config-validator.test.ts": 1933, + "server/src/__tests__/plugin-connector-agent-grant.test.ts": 13310, + "server/src/__tests__/plugin-connector-install-gate.test.ts": 11779, + "server/src/__tests__/plugin-connector-tool-timeout.test.ts": 10473, + "server/src/__tests__/plugin-connectors-circleback-parity.test.ts": 12322, + "server/src/__tests__/plugin-connectors-plugin-transport.test.ts": 11835, + "server/src/__tests__/plugin-database.test.ts": 3626, + "server/src/__tests__/plugin-dev-watcher.test.ts": 1377, "server/src/__tests__/plugin-environment-driver-ready-recovery.test.ts": 10383, - "server/src/__tests__/plugin-environment-driver-sandbox-capabilities.test.ts": 1855, - "server/src/__tests__/plugin-environment-driver-seam.test.ts": 1700, - "server/src/__tests__/plugin-environment-driver-selection.test.ts": 2905, - "server/src/__tests__/plugin-execution-workspace-bridge.test.ts": 792, + "server/src/__tests__/plugin-environment-driver-sandbox-capabilities.test.ts": 2252, + "server/src/__tests__/plugin-environment-driver-seam.test.ts": 2286, + "server/src/__tests__/plugin-environment-driver-selection.test.ts": 2436, + "server/src/__tests__/plugin-execution-workspace-bridge.test.ts": 783, "server/src/__tests__/plugin-fresh-workspaces.integration.test.ts": 8075, - "server/src/__tests__/plugin-host-services-span.test.ts": 7416, + "server/src/__tests__/plugin-host-services-span.test.ts": 8321, "server/src/__tests__/plugin-idle-manager.test.ts": 11378, "server/src/__tests__/plugin-idle-rpc.test.ts": 3073, - "server/src/__tests__/plugin-inspection-concurrency.test.ts": 2286, + "server/src/__tests__/plugin-inspection-concurrency.test.ts": 2361, "server/src/__tests__/plugin-install-autobuild.test.ts": 9089, - "server/src/__tests__/plugin-install-guard.test.ts": 2486, - "server/src/__tests__/plugin-lifecycle-delivery.test.ts": 11826, - "server/src/__tests__/plugin-lifecycle-restart.test.ts": 2624, - "server/src/__tests__/plugin-loader-activation-timeout.test.ts": 18736, - "server/src/__tests__/plugin-loader-error-retry.test.ts": 2060, - "server/src/__tests__/plugin-local-folders.test.ts": 818, - "server/src/__tests__/plugin-managed-agents.test.ts": 13067, - "server/src/__tests__/plugin-managed-routines.test.ts": 8478, - "server/src/__tests__/plugin-managed-skills.test.ts": 14142, - "server/src/__tests__/plugin-operational-reads-tenant-scope.test.ts": 9099, - "server/src/__tests__/plugin-orchestration-apis.test.ts": 15274, - "server/src/__tests__/plugin-organization-switcher.test.ts": 1610, - "server/src/__tests__/plugin-project-snapshots.test.ts": 763, + "server/src/__tests__/plugin-install-guard.test.ts": 2529, + "server/src/__tests__/plugin-lifecycle-delivery.test.ts": 22153, + "server/src/__tests__/plugin-lifecycle-restart.test.ts": 2444, + "server/src/__tests__/plugin-loader-activation-timeout.test.ts": 19637, + "server/src/__tests__/plugin-loader-error-retry.test.ts": 2552, + "server/src/__tests__/plugin-local-folders.test.ts": 957, + "server/src/__tests__/plugin-managed-agents.test.ts": 12465, + "server/src/__tests__/plugin-managed-routines.test.ts": 9683, + "server/src/__tests__/plugin-managed-skills.test.ts": 16089, + "server/src/__tests__/plugin-operational-reads-tenant-scope.test.ts": 7322, + "server/src/__tests__/plugin-orchestration-apis.test.ts": 28511, + "server/src/__tests__/plugin-organization-switcher.test.ts": 2319, + "server/src/__tests__/plugin-project-snapshots.test.ts": 788, + "server/src/__tests__/plugin-runner-credential-names.test.ts": 2301, "server/src/__tests__/plugin-runner-task.integration.test.ts": 9392, - "server/src/__tests__/plugin-sandbox-provider-config-validation.test.ts": 1723, + "server/src/__tests__/plugin-sandbox-provider-config-validation.test.ts": 1977, "server/src/__tests__/plugin-sandbox-provider-schema-census.test.ts": 7215, "server/src/__tests__/plugin-scheduled-work.test.ts": 69649, - "server/src/__tests__/plugin-sdk-orchestration-contract.test.ts": 1606, - "server/src/__tests__/plugin-sdk-testing.test.ts": 1647, - "server/src/__tests__/plugin-secrets-handler.test.ts": 6466, - "server/src/__tests__/plugin-task-credential-writeback.test.ts": 11130, - "server/src/__tests__/plugin-telemetry-bridge.test.ts": 7306, - "server/src/__tests__/plugin-tenant-isolation.test.ts": 9176, - "server/src/__tests__/plugin-tool-dispatcher-pluginDbId.test.ts": 1874, - "server/src/__tests__/plugin-ui-static.test.ts": 6492, + "server/src/__tests__/plugin-sdk-orchestration-contract.test.ts": 1683, + "server/src/__tests__/plugin-sdk-testing.test.ts": 1489, + "server/src/__tests__/plugin-secrets-handler.test.ts": 7541, + "server/src/__tests__/plugin-task-credential-writeback.test.ts": 12753, + "server/src/__tests__/plugin-telemetry-bridge.test.ts": 8356, + "server/src/__tests__/plugin-tenant-isolation.test.ts": 8680, + "server/src/__tests__/plugin-tool-dispatcher-pluginDbId.test.ts": 2162, + "server/src/__tests__/plugin-ui-static.test.ts": 5861, "server/src/__tests__/plugin-warm-tasks.integration.test.ts": 9651, "server/src/__tests__/plugin-worker-manager-daytona-close.test.ts": 9454, - "server/src/__tests__/plugin-worker-manager-duplex.test.ts": 5839, - "server/src/__tests__/plugin-worker-manager.test.ts": 9117, + "server/src/__tests__/plugin-worker-manager-duplex.test.ts": 6405, + "server/src/__tests__/plugin-worker-manager.test.ts": 10726, + "server/src/__tests__/plugin-workspace-terminal-hold.integration.test.ts": 9863, "server/src/__tests__/plugin-workspace-terminal-retry.integration.test.ts": 8780, "server/src/__tests__/plugin-workspaces.integration.test.ts": 18587, - "server/src/__tests__/posthog-direct-event-shape.test.ts": 778, - "server/src/__tests__/posthog-direct-telemetry.test.ts": 732, - "server/src/__tests__/posthog-direct-transport.test.ts": 738, - "server/src/__tests__/prepared-chat-authorization.integration.test.ts": 7032, - "server/src/__tests__/prepared-statements-driver.test.ts": 6492, - "server/src/__tests__/prepared-statements.test.ts": 754, - "server/src/__tests__/primary-agent-guidance.test.ts": 4120, - "server/src/__tests__/primary-agent.test.ts": 8618, - "server/src/__tests__/principal-access-compatibility.test.ts": 2399, - "server/src/__tests__/privacy-production-review.test.ts": 14500, - "server/src/__tests__/private-hostname-guard.test.ts": 1023, - "server/src/__tests__/private-json-etag.test.ts": 839, - "server/src/__tests__/project-environments.test.ts": 17546, - "server/src/__tests__/project-git-authorization.test.ts": 9603, - "server/src/__tests__/project-goal-validation.test.ts": 8467, - "server/src/__tests__/project-icon-persistence.test.ts": 8529, - "server/src/__tests__/project-instance-secrets.test.ts": 7685, - "server/src/__tests__/project-list-metrics.test.ts": 6276, - "server/src/__tests__/project-repositories-persistence.test.ts": 7238, - "server/src/__tests__/project-repositories.test.ts": 6198, - "server/src/__tests__/project-shortname-resolution.test.ts": 5523, - "server/src/__tests__/project-skill-setup-identity.test.ts": 2350, - "server/src/__tests__/project-skill-sources.test.ts": 18035, - "server/src/__tests__/project-tools-pagination.test.ts": 2909, + "server/src/__tests__/posthog-direct-event-shape.test.ts": 706, + "server/src/__tests__/posthog-direct-telemetry.test.ts": 1024, + "server/src/__tests__/posthog-direct-transport.test.ts": 903, + "server/src/__tests__/prepared-chat-authorization.integration.test.ts": 7209, + "server/src/__tests__/prepared-statements-driver.test.ts": 6901, + "server/src/__tests__/prepared-statements.test.ts": 803, + "server/src/__tests__/primary-agent-guidance.test.ts": 4326, + "server/src/__tests__/primary-agent.test.ts": 10405, + "server/src/__tests__/principal-access-compatibility.test.ts": 3032, + "server/src/__tests__/privacy-production-review.test.ts": 12611, + "server/src/__tests__/private-hostname-guard.test.ts": 996, + "server/src/__tests__/private-json-etag.test.ts": 833, + "server/src/__tests__/product-telemetry.test.ts": 7683, + "server/src/__tests__/project-environments.test.ts": 17604, + "server/src/__tests__/project-git-authorization.test.ts": 11771, + "server/src/__tests__/project-goal-validation.test.ts": 7094, + "server/src/__tests__/project-icon-persistence.test.ts": 6318, + "server/src/__tests__/project-instance-secrets.test.ts": 8507, + "server/src/__tests__/project-list-metrics.test.ts": 6153, + "server/src/__tests__/project-repositories-persistence.test.ts": 8737, + "server/src/__tests__/project-repositories.test.ts": 7386, + "server/src/__tests__/project-shortname-resolution.test.ts": 5527, + "server/src/__tests__/project-skill-setup-identity.test.ts": 2205, + "server/src/__tests__/project-skill-sources.test.ts": 34700, + "server/src/__tests__/project-tools-pagination.test.ts": 2765, "server/src/__tests__/project-workspace-provider.integration.test.ts": 19935, - "server/src/__tests__/project-workspace-root-provenance.test.ts": 6628, - "server/src/__tests__/prompt-injection-gateway.test.ts": 13919, - "server/src/__tests__/prompt-injection-prevention.test.ts": 11057, - "server/src/__tests__/prompt-injection-provider.test.ts": 2399, + "server/src/__tests__/project-workspace-root-provenance.test.ts": 8288, + "server/src/__tests__/prompt-injection-gateway.test.ts": 14917, + "server/src/__tests__/prompt-injection-prevention.test.ts": 20605, + "server/src/__tests__/prompt-injection-provider.test.ts": 2325, "server/src/__tests__/provider-trace-retention-work.test.ts": 2344, - "server/src/__tests__/provider-trace-store.test.ts": 1880, - "server/src/__tests__/public-mcp-client-metadata.test.ts": 1695, - "server/src/__tests__/public-mcp-dispatch-shutdown.test.ts": 5856, - "server/src/__tests__/public-mcp.test.ts": 36323, - "server/src/__tests__/qa-routine-secrets-e2e.test.ts": 8585, + "server/src/__tests__/provider-trace-store.test.ts": 2015, + "server/src/__tests__/public-mcp-client-metadata.test.ts": 1925, + "server/src/__tests__/public-mcp-dispatch-shutdown.test.ts": 6684, + "server/src/__tests__/public-mcp.test.ts": 48555, + "server/src/__tests__/qa-routine-secrets-e2e.test.ts": 9274, "server/src/__tests__/question-response-delivery.test.ts": 19309, - "server/src/__tests__/queued-comment-consumption.test.ts": 10130, + "server/src/__tests__/queued-comment-consumption.test.ts": 11413, "server/src/__tests__/queued-run-dispatch-stacking.test.ts": 98136, - "server/src/__tests__/quota-windows-service.test.ts": 5777, - "server/src/__tests__/quota-windows.test.ts": 1542, - "server/src/__tests__/railway-connection.test.ts": 9611, - "server/src/__tests__/railway-ssh.test.ts": 2622, - "server/src/__tests__/railway.test.ts": 1635, + "server/src/__tests__/quota-windows-service.test.ts": 6062, + "server/src/__tests__/quota-windows.test.ts": 2032, + "server/src/__tests__/railway-connection.test.ts": 11009, + "server/src/__tests__/railway-ssh.test.ts": 2751, + "server/src/__tests__/railway.test.ts": 1763, "server/src/__tests__/recovery-classifiers.test.ts": 6462, "server/src/__tests__/recovery-cutover.test.ts": 1141, "server/src/__tests__/recovery-deadline-bootstrap.test.ts": 6390, "server/src/__tests__/recovery-deadline-ordinary-bootstrap.test.ts": 4981, "server/src/__tests__/recovery-durable-wait-projection.test.ts": 16751, - "server/src/__tests__/recovery-observability.test.ts": 7801, + "server/src/__tests__/recovery-observability.test.ts": 9540, "server/src/__tests__/recovery-postgres-mode.test.ts": 539, "server/src/__tests__/recovery-settled-records-census.test.ts": 221352, "server/src/__tests__/recovery-stale-issue-lock-sweep.test.ts": 12088, "server/src/__tests__/recovery-wake-herd.test.ts": 51736, - "server/src/__tests__/redact-sensitive.test.ts": 630, - "server/src/__tests__/released-writer-escalation.test.ts": 8430, - "server/src/__tests__/remote-http-endpoint-guard.test.ts": 706, - "server/src/__tests__/remote-http-rebinding.test.ts": 2590, - "server/src/__tests__/remote-mcp-connectors.test.ts": 14953, - "server/src/__tests__/remote-mcp-pending.test.ts": 6482, - "server/src/__tests__/remote-mcp-protocol.test.ts": 1672, - "server/src/__tests__/remote-mcp-redaction.test.ts": 792, - "server/src/__tests__/remote-pi-companion.test.ts": 2478, - "server/src/__tests__/remote-snapshot-ledger-settlement.test.ts": 10754, + "server/src/__tests__/redact-sensitive.test.ts": 882, + "server/src/__tests__/released-writer-escalation.test.ts": 9784, + "server/src/__tests__/remote-http-endpoint-guard.test.ts": 900, + "server/src/__tests__/remote-http-rebinding.test.ts": 3491, + "server/src/__tests__/remote-mcp-connectors.test.ts": 13493, + "server/src/__tests__/remote-mcp-pending.test.ts": 7641, + "server/src/__tests__/remote-mcp-protocol.test.ts": 1668, + "server/src/__tests__/remote-mcp-redaction.test.ts": 801, + "server/src/__tests__/remote-pi-companion.test.ts": 2092, + "server/src/__tests__/remote-snapshot-ledger-settlement.test.ts": 11640, "server/src/__tests__/remote-workspace-file-resources.test.ts": 35772, - "server/src/__tests__/remove-test-home.test.ts": 635, - "server/src/__tests__/repository-admission-tracing.test.ts": 7623, - "server/src/__tests__/repository-object-cache.test.ts": 7765, - "server/src/__tests__/repository-root-reader-queries.test.ts": 7210, - "server/src/__tests__/required-quality-review.test.ts": 12059, + "server/src/__tests__/remove-test-home.test.ts": 832, + "server/src/__tests__/repository-admission-tracing.test.ts": 11297, + "server/src/__tests__/repository-object-cache.test.ts": 9892, + "server/src/__tests__/repository-root-reader-queries.test.ts": 9134, + "server/src/__tests__/required-quality-review.test.ts": 13058, "server/src/__tests__/rerun-survival.integration.test.ts": 6052, - "server/src/__tests__/resolved-dependency-candidates.test.ts": 11212, - "server/src/__tests__/resource-lifecycle-events.test.ts": 13915, + "server/src/__tests__/resolved-dependency-candidates.test.ts": 11327, + "server/src/__tests__/resource-lifecycle-events.test.ts": 23942, + "server/src/__tests__/responsibilities-rollup.test.ts": 8051, + "server/src/__tests__/responsibilities.test.ts": 34331, + "server/src/__tests__/responsibility-automation-conversations.test.ts": 11090, + "server/src/__tests__/responsibility-automation.test.ts": 8947, + "server/src/__tests__/responsibility-bar-templates.test.ts": 7624, + "server/src/__tests__/responsibility-bars.test.ts": 12917, + "server/src/__tests__/responsibility-dashboard.test.ts": 19058, + "server/src/__tests__/responsibility-metrics.test.ts": 11257, + "server/src/__tests__/responsibility-runs.test.ts": 8981, + "server/src/__tests__/responsibility-status-reports.test.ts": 13638, + "server/src/__tests__/responsibility-summaries.test.ts": 10042, + "server/src/__tests__/responsibility-summary-generator.test.ts": 8617, + "server/src/__tests__/responsibility-tools.test.ts": 829, "server/src/__tests__/retained-native-session-cleanup-work.test.ts": 16414, - "server/src/__tests__/retained-ui-assets.test.ts": 1152, - "server/src/__tests__/reusable-leases-default.test.ts": 1637, - "server/src/__tests__/review-attention-classification-equivalence.test.ts": 16260, - "server/src/__tests__/routable-blocked.test.ts": 721, + "server/src/__tests__/retained-ui-assets.test.ts": 990, + "server/src/__tests__/reusable-leases-default.test.ts": 1925, + "server/src/__tests__/review-attention-classification-equivalence.test.ts": 13804, + "server/src/__tests__/routable-blocked.test.ts": 875, "server/src/__tests__/routine-execution-status-work.test.ts": 36142, - "server/src/__tests__/routine-execution-status-worker.test.ts": 1822, - "server/src/__tests__/routine-run-telemetry.test.ts": 9883, + "server/src/__tests__/routine-execution-status-worker.test.ts": 2128, + "server/src/__tests__/routine-run-telemetry.test.ts": 9221, "server/src/__tests__/routine-schedule-work.test.ts": 21858, "server/src/__tests__/routine-status-reconciliation.test.ts": 19810, - "server/src/__tests__/routines-service.test.ts": 35301, - "server/src/__tests__/run-authority-read-projections.test.ts": 6981, - "server/src/__tests__/run-continuations.test.ts": 1464, + "server/src/__tests__/routine-suggestions.test.ts": 13270, + "server/src/__tests__/routine-tools.test.ts": 1713, + "server/src/__tests__/routine-trigger-update-plan.test.ts": 905, + "server/src/__tests__/routines-service.test.ts": 39150, + "server/src/__tests__/run-authority-read-projections.test.ts": 8278, + "server/src/__tests__/run-continuations.test.ts": 2051, "server/src/__tests__/run-evidence-migration-work.test.ts": 1802, "server/src/__tests__/run-failure-sentry-real-sdk.test.ts": 792, - "server/src/__tests__/run-failure-sentry.test.ts": 12278, - "server/src/__tests__/run-identity-projections.test.ts": 9405, - "server/src/__tests__/run-identity.test.ts": 9202, - "server/src/__tests__/run-liveness.test.ts": 1616, - "server/src/__tests__/run-output-secret-env-redaction.test.ts": 10436, - "server/src/__tests__/run-secret-redaction.test.ts": 1973, + "server/src/__tests__/run-failure-sentry.test.ts": 12444, + "server/src/__tests__/run-identity-projections.test.ts": 8098, + "server/src/__tests__/run-identity.test.ts": 10732, + "server/src/__tests__/run-liveness.test.ts": 1770, + "server/src/__tests__/run-output-secret-env-redaction.test.ts": 12207, + "server/src/__tests__/run-secret-redaction.test.ts": 2085, "server/src/__tests__/run-start-handover.test.ts": 28002, - "server/src/__tests__/run-trust-preset.test.ts": 6908, + "server/src/__tests__/run-trust-preset.test.ts": 6933, "server/src/__tests__/runner-api-recovery.test.ts": 741, "server/src/__tests__/runner-connection-eval-fixtures.test.ts": 19765, - "server/src/__tests__/runner-image-identity.test.ts": 922, - "server/src/__tests__/runner-image-layout.test.ts": 4389, - "server/src/__tests__/runner-image-oci.test.ts": 2163, - "server/src/__tests__/runner-image-publish.test.ts": 1084, - "server/src/__tests__/runner-image-resolve.test.ts": 1066, - "server/src/__tests__/runner-image-workflow.test.ts": 618, - "server/src/__tests__/runner-lockfile-guards.test.ts": 897, - "server/src/__tests__/runner-project-icon-contract.test.ts": 2838, - "server/src/__tests__/runtime-api.test.ts": 1890, - "server/src/__tests__/runtime-skill-cache.test.ts": 12608, - "server/src/__tests__/runtime-skill-preservation.test.ts": 8112, - "server/src/__tests__/sandbox-creation-intent-ownership.test.ts": 8743, + "server/src/__tests__/runner-image-identity.test.ts": 909, + "server/src/__tests__/runner-image-layout.test.ts": 4783, + "server/src/__tests__/runner-image-oci.test.ts": 2416, + "server/src/__tests__/runner-image-publish.test.ts": 1750, + "server/src/__tests__/runner-image-resolve.test.ts": 990, + "server/src/__tests__/runner-image-workflow.test.ts": 929, + "server/src/__tests__/runner-lockfile-guards.test.ts": 849, + "server/src/__tests__/runner-project-icon-contract.test.ts": 2855, + "server/src/__tests__/runtime-api.test.ts": 2236, + "server/src/__tests__/runtime-skill-cache.test.ts": 13610, + "server/src/__tests__/runtime-skill-preservation.test.ts": 10488, + "server/src/__tests__/sandbox-creation-intent-ownership.test.ts": 8811, "server/src/__tests__/sandbox-creation-operations.test.ts": 90610, - "server/src/__tests__/sandbox-orphan-cleanup-spool.test.ts": 722, - "server/src/__tests__/sandbox-provider-runtime.test.ts": 935, - "server/src/__tests__/sandbox-provider-schema-reads.test.ts": 8056, - "server/src/__tests__/sandbox-snapshot-qualification.test.ts": 1475, + "server/src/__tests__/sandbox-orphan-cleanup-spool.test.ts": 761, + "server/src/__tests__/sandbox-provider-outage-error-handler.test.ts": 7175, + "server/src/__tests__/sandbox-provider-runtime.test.ts": 671, + "server/src/__tests__/sandbox-provider-schema-reads.test.ts": 9244, + "server/src/__tests__/sandbox-snapshot-qualification.test.ts": 1873, "server/src/__tests__/satisfied-connection-intents.test.ts": 54642, - "server/src/__tests__/scheduled-work-postgres.test.ts": 8449, + "server/src/__tests__/scheduled-work-postgres.test.ts": 9218, "server/src/__tests__/scheduled-work.test.ts": 2510, - "server/src/__tests__/scoped-deadline-work-notifications.test.ts": 3476, + "server/src/__tests__/scoped-deadline-work-notifications.test.ts": 2950, "server/src/__tests__/scoped-deadline-work.test.ts": 2998, - "server/src/__tests__/secret-binding-discovery.test.ts": 4155, - "server/src/__tests__/secret-entry-guidance.test.ts": 4334, - "server/src/__tests__/secret-provider-registry.test.ts": 852, - "server/src/__tests__/secret-sensitive-request-error.test.ts": 6141, - "server/src/__tests__/secrets-service-dangling-user-secret.test.ts": 8044, - "server/src/__tests__/secrets-service-user-secret-owner-scoped.test.ts": 6675, - "server/src/__tests__/secrets-service.test.ts": 24412, - "server/src/__tests__/sentry-directory-merge-lock.test.ts": 2031, - "server/src/__tests__/sentry-dsn.test.ts": 793, - "server/src/__tests__/sentry-dynamic-import-provenance.test.ts": 772, - "server/src/__tests__/sentry-links.test.ts": 568, - "server/src/__tests__/sentry.test.ts": 9899, - "server/src/__tests__/server-info.test.ts": 1027, - "server/src/__tests__/server-metrics.test.ts": 2049, - "server/src/__tests__/server-package-build-script.test.ts": 667, - "server/src/__tests__/server-package-otel-peer-metadata.test.ts": 774, - "server/src/__tests__/server-package-sentry-peer-metadata.test.ts": 685, + "server/src/__tests__/secret-binding-discovery.test.ts": 2921, + "server/src/__tests__/secret-entry-guidance.test.ts": 3727, + "server/src/__tests__/secret-provider-registry.test.ts": 917, + "server/src/__tests__/secret-sensitive-request-error.test.ts": 6884, + "server/src/__tests__/secrets-service-dangling-user-secret.test.ts": 8396, + "server/src/__tests__/secrets-service-user-secret-owner-scoped.test.ts": 6935, + "server/src/__tests__/secrets-service.test.ts": 22089, + "server/src/__tests__/sentry-directory-merge-lock.test.ts": 2294, + "server/src/__tests__/sentry-dsn.test.ts": 745, + "server/src/__tests__/sentry-dynamic-import-provenance.test.ts": 878, + "server/src/__tests__/sentry-links.test.ts": 710, + "server/src/__tests__/sentry-oauth-provider-failure.test.ts": 1921, + "server/src/__tests__/sentry.test.ts": 14358, + "server/src/__tests__/server-info.test.ts": 1725, + "server/src/__tests__/server-metrics.test.ts": 1989, + "server/src/__tests__/server-package-build-script.test.ts": 812, + "server/src/__tests__/server-package-otel-peer-metadata.test.ts": 876, + "server/src/__tests__/server-package-sentry-peer-metadata.test.ts": 868, "server/src/__tests__/server-startup-feedback-export.test.ts": 28040, - "server/src/__tests__/service-read-disconnect-retry.test.ts": 8867, - "server/src/__tests__/service-version.test.ts": 926, + "server/src/__tests__/service-read-disconnect-retry.test.ts": 9290, + "server/src/__tests__/service-version.test.ts": 916, "server/src/__tests__/settled-native-process-rechecks.test.ts": 19494, - "server/src/__tests__/shared-telemetry-events.test.ts": 729, - "server/src/__tests__/shutdown-settled-process-release.test.ts": 13293, - "server/src/__tests__/sidebar-badges.test.ts": 6174, - "server/src/__tests__/skill-default-cadence-prewire.test.ts": 3897, - "server/src/__tests__/skill-import-discovery.test.ts": 3222, + "server/src/__tests__/shared-telemetry-events.test.ts": 758, + "server/src/__tests__/shutdown-settled-process-release.test.ts": 14085, + "server/src/__tests__/sidebar-badges.test.ts": 6165, + "server/src/__tests__/skill-default-cadence-prewire.test.ts": 3159, + "server/src/__tests__/skill-import-discovery.test.ts": 4267, + "server/src/__tests__/skill-package-storage-throttle.test.ts": 6580, "server/src/__tests__/skill-package-store.test.ts": 21032, - "server/src/__tests__/skill-repository-dependencies.test.ts": 1475, - "server/src/__tests__/skill-repository-package.test.ts": 2022, - "server/src/__tests__/skill-source-branches.test.ts": 1557, - "server/src/__tests__/skill-source-git-snapshot.test.ts": 9014, - "server/src/__tests__/skill-source-github-access.test.ts": 7001, - "server/src/__tests__/skill-source-retry.test.ts": 1015, - "server/src/__tests__/skill-source-scan-limit.test.ts": 806, - "server/src/__tests__/skill-sources.test.ts": 16101, - "server/src/__tests__/skill-update-diff.test.ts": 709, - "server/src/__tests__/skill-version-cache.test.ts": 10506, + "server/src/__tests__/skill-package-upload.test.ts": 12080, + "server/src/__tests__/skill-repository-dependencies.test.ts": 1425, + "server/src/__tests__/skill-repository-package.test.ts": 1876, + "server/src/__tests__/skill-source-branches.test.ts": 1810, + "server/src/__tests__/skill-source-git-snapshot.test.ts": 10208, + "server/src/__tests__/skill-source-github-access.test.ts": 5427, + "server/src/__tests__/skill-source-retry.test.ts": 803, + "server/src/__tests__/skill-source-scan-limit.test.ts": 740, + "server/src/__tests__/skill-sources.test.ts": 30396, + "server/src/__tests__/skill-update-diff.test.ts": 711, + "server/src/__tests__/skill-version-cache.test.ts": 10677, "server/src/__tests__/skill-version-retention-config.test.ts": 1526, "server/src/__tests__/skill-version-retention-work.test.ts": 1585, "server/src/__tests__/skill-version-retention.test.ts": 31824, - "server/src/__tests__/skills-catalog-service.test.ts": 719, - "server/src/__tests__/slack-authorization-revision.test.ts": 9033, - "server/src/__tests__/slack-cloud-forms.test.ts": 1936, + "server/src/__tests__/skills-catalog-service.test.ts": 876, + "server/src/__tests__/slack-authorization-revision.test.ts": 11334, + "server/src/__tests__/slack-cloud-forms.test.ts": 2150, "server/src/__tests__/slack-cloud-owner-work.test.ts": 27508, "server/src/__tests__/slack-conversation-lifecycle.test.ts": 31522, - "server/src/__tests__/slack-development-manager.test.ts": 1178, + "server/src/__tests__/slack-development-manager.test.ts": 1950, "server/src/__tests__/slack-form-publication-readiness.test.ts": 5820, "server/src/__tests__/slack-tool-preparation.test.ts": 7909, - "server/src/__tests__/sleep-backup-observation.test.ts": 808, - "server/src/__tests__/sleep-early-diagnostics.test.ts": 752, + "server/src/__tests__/sleep-backup-observation.test.ts": 897, + "server/src/__tests__/sleep-early-diagnostics.test.ts": 914, "server/src/__tests__/sleep-idle-work-capture.test.ts": 2055, - "server/src/__tests__/sleep-incoming-http-observation.test.ts": 1944, - "server/src/__tests__/sleep-managed-fixture.test.ts": 2145, - "server/src/__tests__/sleep-otel-export.test.ts": 2809, + "server/src/__tests__/sleep-incoming-http-observation.test.ts": 2049, + "server/src/__tests__/sleep-managed-fixture.test.ts": 2418, + "server/src/__tests__/sleep-otel-export.test.ts": 2101, "server/src/__tests__/smoke-lab.test.ts": 10012, - "server/src/__tests__/snapshot-attempt-upload-abort.test.ts": 6889, - "server/src/__tests__/source-trust.test.ts": 4414, - "server/src/__tests__/speko-call-report.test.ts": 1931, - "server/src/__tests__/speko-delivery-diagnostics.test.ts": 1620, - "server/src/__tests__/speko-protocol.test.ts": 1952, - "server/src/__tests__/speko-provider.test.ts": 1729, - "server/src/__tests__/ssh-tailscale-connection.test.ts": 1635, - "server/src/__tests__/startup-readiness-boundary.test.ts": 1011, - "server/src/__tests__/startup-refusals.test.ts": 579, - "server/src/__tests__/static-index-html.test.ts": 982, - "server/src/__tests__/static-ui-cache.test.ts": 710, - "server/src/__tests__/static-ui-compression.test.ts": 927, + "server/src/__tests__/snapshot-attempt-upload-abort.test.ts": 7285, + "server/src/__tests__/source-trust.test.ts": 2772, + "server/src/__tests__/speko-call-report.test.ts": 1702, + "server/src/__tests__/speko-delivery-diagnostics.test.ts": 1794, + "server/src/__tests__/speko-protocol.test.ts": 1756, + "server/src/__tests__/speko-provider.test.ts": 2000, + "server/src/__tests__/ssh-adapter-session-codecs.test.ts": 6472, + "server/src/__tests__/ssh-tailscale-connection.test.ts": 2277, + "server/src/__tests__/startup-readiness-boundary.test.ts": 874, + "server/src/__tests__/startup-refusals.test.ts": 855, + "server/src/__tests__/static-index-html.test.ts": 877, + "server/src/__tests__/static-ui-cache.test.ts": 684, + "server/src/__tests__/static-ui-compression.test.ts": 960, "server/src/__tests__/static-ui-idle.test.ts": 1062, - "server/src/__tests__/status-card-compile-prompt.test.ts": 8912, + "server/src/__tests__/status-card-compile-prompt.test.ts": 7954, "server/src/__tests__/status-card-evaluation-work.test.ts": 67793, "server/src/__tests__/status-card-idle-schedule.test.ts": 2123, - "server/src/__tests__/status-card-notifications.test.ts": 1933, - "server/src/__tests__/status-card-update-engine.test.ts": 1508, + "server/src/__tests__/status-card-notifications.test.ts": 2228, + "server/src/__tests__/status-card-update-engine.test.ts": 2259, "server/src/__tests__/status-cards.test.ts": 30724, - "server/src/__tests__/storage-immutable-namespace.test.ts": 844, - "server/src/__tests__/storage-local-provider.test.ts": 1103, + "server/src/__tests__/storage-immutable-namespace.test.ts": 974, + "server/src/__tests__/storage-local-provider.test.ts": 1049, "server/src/__tests__/storage-outage-wait.test.ts": 20089, - "server/src/__tests__/storage-request-stats.test.ts": 992, - "server/src/__tests__/storage-s3-credential-rotation.test.ts": 20958, - "server/src/__tests__/storage-s3-failure-diagnostics.test.ts": 2064, - "server/src/__tests__/storage-s3-multipart-backoff.test.ts": 1071, - "server/src/__tests__/storage-s3-multipart-shutdown.test.ts": 1193, - "server/src/__tests__/storage-s3-multipart-throttle.test.ts": 1546, + "server/src/__tests__/storage-request-stats.test.ts": 949, + "server/src/__tests__/storage-s3-credential-rotation.test.ts": 21040, + "server/src/__tests__/storage-s3-failure-diagnostics.test.ts": 1971, + "server/src/__tests__/storage-s3-multipart-backoff.test.ts": 883, + "server/src/__tests__/storage-s3-multipart-shutdown.test.ts": 1427, + "server/src/__tests__/storage-s3-multipart-throttle.test.ts": 1713, "server/src/__tests__/storage-s3-multipart.test.ts": 5750, - "server/src/__tests__/storage-s3-request-timeout-retry.test.ts": 1418, - "server/src/__tests__/storage-s3-transient-retry.test.ts": 2135, - "server/src/__tests__/subscription-refresh.test.ts": 1981, - "server/src/__tests__/subscriptions.test.ts": 8141, - "server/src/__tests__/subtask-workspace-independence.test.ts": 9363, - "server/src/__tests__/summary-slots.test.ts": 10159, - "server/src/__tests__/task-admission-deadline.test.ts": 1965, - "server/src/__tests__/task-cold-open.test.ts": 9608, + "server/src/__tests__/storage-s3-request-timeout-retry.test.ts": 1557, + "server/src/__tests__/storage-s3-small-upload-throttle.test.ts": 1567, + "server/src/__tests__/storage-s3-transient-retry.test.ts": 2216, + "server/src/__tests__/storage-unavailable-error-handler.test.ts": 5451, + "server/src/__tests__/subscription-refresh.test.ts": 2778, + "server/src/__tests__/subscriptions.test.ts": 20952, + "server/src/__tests__/subtask-workspace-independence.test.ts": 10336, + "server/src/__tests__/summary-slots.test.ts": 13372, + "server/src/__tests__/task-admission-deadline.test.ts": 1892, + "server/src/__tests__/task-cold-open.test.ts": 9764, "server/src/__tests__/task-creation-recovery.integration.test.ts": 16295, - "server/src/__tests__/task-interruption-automatic-path.test.ts": 7737, - "server/src/__tests__/task-interruption-query.test.ts": 12709, - "server/src/__tests__/task-list-projection-query.test.ts": 10090, - "server/src/__tests__/task-search-quality.test.ts": 9039, - "server/src/__tests__/task-search-query.test.ts": 1878, - "server/src/__tests__/task-toast-eligibility.test.ts": 3061, + "server/src/__tests__/task-interruption-automatic-path.test.ts": 15069, + "server/src/__tests__/task-interruption-query.test.ts": 18811, + "server/src/__tests__/task-list-projection-query.test.ts": 12070, + "server/src/__tests__/task-retry-banner-execution-owner.test.ts": 8605, + "server/src/__tests__/task-search-quality.test.ts": 8726, + "server/src/__tests__/task-search-query.test.ts": 2077, + "server/src/__tests__/task-toast-eligibility.test.ts": 2970, "server/src/__tests__/task-watchdogs-classifier.test.ts": 7353, - "server/src/__tests__/task-watchdogs-incident-fixture.test.ts": 876, + "server/src/__tests__/task-watchdogs-incident-fixture.test.ts": 854, "server/src/__tests__/task-watchdogs-scheduler.test.ts": 20633, - "server/src/__tests__/task-workspace-admission.test.ts": 5703, + "server/src/__tests__/task-workspace-admission.test.ts": 6851, "server/src/__tests__/task-workspace-api.test.ts": 21431, - "server/src/__tests__/task-workspace-binding.test.ts": 13977, - "server/src/__tests__/task-workspace-child-trust.test.ts": 10214, - "server/src/__tests__/task-workspace-repositories-persistence.test.ts": 9190, - "server/src/__tests__/task-workspace-repositories-trust.test.ts": 18584, - "server/src/__tests__/task-workspace-repositories.test.ts": 6126, - "server/src/__tests__/task-workspace-source-copy-privacy.test.ts": 7089, - "server/src/__tests__/task-workspace-tools.test.ts": 1981, + "server/src/__tests__/task-workspace-binding.test.ts": 32205, + "server/src/__tests__/task-workspace-child-trust.test.ts": 11277, + "server/src/__tests__/task-workspace-repositories-persistence.test.ts": 12404, + "server/src/__tests__/task-workspace-repositories-trust.test.ts": 32597, + "server/src/__tests__/task-workspace-repositories.test.ts": 6834, + "server/src/__tests__/task-workspace-source-copy-privacy.test.ts": 7824, + "server/src/__tests__/task-workspace-tools.test.ts": 2141, "server/src/__tests__/teams-catalog-install-no-overrides.test.ts": 13040, - "server/src/__tests__/teams-catalog-service.test.ts": 3466, - "server/src/__tests__/telemetry-client-flush.test.ts": 855, - "server/src/__tests__/telemetry-startup.test.ts": 752, + "server/src/__tests__/teams-catalog-service.test.ts": 3724, + "server/src/__tests__/telemetry-client-flush.test.ts": 775, + "server/src/__tests__/telemetry-startup.test.ts": 780, "server/src/__tests__/terminal-workspace-deadlines.test.ts": 42823, "server/src/__tests__/terminal-workspace-idle.test.ts": 10197, - "server/src/__tests__/terminal-workspace-page-batch.test.ts": 8055, + "server/src/__tests__/terminal-workspace-page-batch.test.ts": 9752, "server/src/__tests__/terminal-workspace-rotation-limits.test.ts": 26808, "server/src/__tests__/terminal-workspace-work.test.ts": 1814, - "server/src/__tests__/tool-access-client-credentials.test.ts": 15803, - "server/src/__tests__/tool-access-connector-telemetry.test.ts": 7389, - "server/src/__tests__/tool-access-oauth-protocol.integration.test.ts": 22446, - "server/src/__tests__/tool-access-policy-index.test.ts": 11475, - "server/src/__tests__/tool-access-policy-service.test.ts": 20356, - "server/src/__tests__/tool-access-service.test.ts": 75593, - "server/src/__tests__/tool-call-progress-store.test.ts": 5943, - "server/src/__tests__/tool-call-progress.test.ts": 5991, - "server/src/__tests__/tool-catalog-publication.test.ts": 9966, + "server/src/__tests__/tool-access-cancelled-first-sign-in.integration.test.ts": 13972, + "server/src/__tests__/tool-access-client-credentials.test.ts": 39377, + "server/src/__tests__/tool-access-connector-telemetry.test.ts": 8929, + "server/src/__tests__/tool-access-oauth-protocol.integration.test.ts": 26979, + "server/src/__tests__/tool-access-policy-index.test.ts": 13750, + "server/src/__tests__/tool-access-policy-service.test.ts": 23744, + "server/src/__tests__/tool-access-service.test.ts": 92525, + "server/src/__tests__/tool-call-progress-store.test.ts": 7165, + "server/src/__tests__/tool-call-progress.test.ts": 6471, + "server/src/__tests__/tool-catalog-publication.test.ts": 11949, "server/src/__tests__/tool-connection-content-deletion-canary.test.ts": 47442, - "server/src/__tests__/tool-connection-content-deletion.test.ts": 10204, + "server/src/__tests__/tool-connection-content-deletion.test.ts": 9670, "server/src/__tests__/tool-connection-health-work.test.ts": 52429, "server/src/__tests__/tool-connection-installs.test.ts": 8725, - "server/src/__tests__/tool-connection-removal.test.ts": 13402, - "server/src/__tests__/tool-connection-review-counts-http.test.ts": 12844, - "server/src/__tests__/tool-connection-review-counts.test.ts": 3160, - "server/src/__tests__/tool-connection-visibility.test.ts": 5441, - "server/src/__tests__/tool-content-guards.test.ts": 1410, - "server/src/__tests__/tool-effective-assignments.test.ts": 16297, - "server/src/__tests__/tool-gateway-agent-errors.test.ts": 6669, - "server/src/__tests__/tool-gateway-connector-telemetry.test.ts": 12455, - "server/src/__tests__/tool-gateway-discovery-http.test.ts": 12542, - "server/src/__tests__/tool-gateway-listing-memory.test.ts": 15052, - "server/src/__tests__/tool-gateway-service.test.ts": 150610, - "server/src/__tests__/tool-gateway.test.ts": 70985, - "server/src/__tests__/tool-grant-scope.test.ts": 9162, - "server/src/__tests__/tool-oauth-legacy-backfill.test.ts": 5584, - "server/src/__tests__/tool-profile-entry-order.test.ts": 5397, - "server/src/__tests__/tool-profile-entry-validation.test.ts": 11324, - "server/src/__tests__/tool-profile-matching.test.ts": 2298, - "server/src/__tests__/tool-profile-pending-projection.test.ts": 2578, - "server/src/__tests__/tool-profile-review-service.test.ts": 5277, - "server/src/__tests__/tool-review-queue-unsigned-request.test.ts": 4895, - "server/src/__tests__/trust-preset-resolver.test.ts": 1528, - "server/src/__tests__/trust-proxy.test.ts": 825, - "server/src/__tests__/ui-branding.test.ts": 721, - "server/src/__tests__/unikraft-connection.test.ts": 9573, - "server/src/__tests__/unikraft-http-boundary.test.ts": 928, - "server/src/__tests__/version.test.ts": 967, - "server/src/__tests__/vite-html-renderer.test.ts": 743, - "server/src/__tests__/vitest-chat-shards.test.ts": 13174, + "server/src/__tests__/tool-connection-removal.test.ts": 12219, + "server/src/__tests__/tool-connection-review-counts-http.test.ts": 17131, + "server/src/__tests__/tool-connection-review-counts.test.ts": 2588, + "server/src/__tests__/tool-connection-visibility.test.ts": 5889, + "server/src/__tests__/tool-content-guards.test.ts": 1639, + "server/src/__tests__/tool-effective-assignments.test.ts": 19200, + "server/src/__tests__/tool-gateway-agent-errors.test.ts": 8723, + "server/src/__tests__/tool-gateway-connector-telemetry.test.ts": 16062, + "server/src/__tests__/tool-gateway-discovery-http.test.ts": 11674, + "server/src/__tests__/tool-gateway-listing-memory.test.ts": 15847, + "server/src/__tests__/tool-gateway-named-gateway-deadlock.test.ts": 9298, + "server/src/__tests__/tool-gateway-service.test.ts": 100846, + "server/src/__tests__/tool-gateway.test.ts": 110569, + "server/src/__tests__/tool-grant-scope.test.ts": 11130, + "server/src/__tests__/tool-oauth-legacy-backfill.test.ts": 7497, + "server/src/__tests__/tool-profile-entry-order.test.ts": 6995, + "server/src/__tests__/tool-profile-entry-validation.test.ts": 9779, + "server/src/__tests__/tool-profile-matching.test.ts": 1869, + "server/src/__tests__/tool-profile-pending-projection.test.ts": 2107, + "server/src/__tests__/tool-profile-review-service.test.ts": 7837, + "server/src/__tests__/tool-review-queue-unsigned-request.test.ts": 7018, + "server/src/__tests__/trust-preset-resolver.test.ts": 1602, + "server/src/__tests__/trust-proxy.test.ts": 795, + "server/src/__tests__/ui-branding.test.ts": 769, + "server/src/__tests__/unikraft-connection.test.ts": 12875, + "server/src/__tests__/unikraft-http-boundary.test.ts": 861, + "server/src/__tests__/version.test.ts": 787, + "server/src/__tests__/vite-html-renderer.test.ts": 807, + "server/src/__tests__/vitest-chat-shards.test.ts": 15402, "server/src/__tests__/voice-call-reports.test.ts": 9524, "server/src/__tests__/voice-inbound-cleanup.test.ts": 9552, "server/src/__tests__/voice-inbound-retention.test.ts": 4727, "server/src/__tests__/voice-recovery-work.test.ts": 25368, "server/src/__tests__/voice-session-store.integration.test.ts": 78942, - "server/src/__tests__/warm-sandbox-expiry.test.ts": 8140, + "server/src/__tests__/warm-sandbox-expiry.test.ts": 8343, "server/src/__tests__/work-product-runtime-reconciliation.test.ts": 7198, - "server/src/__tests__/work-product-workspace-validation.test.ts": 5809, - "server/src/__tests__/work-products.test.ts": 6136, - "server/src/__tests__/work-scheduler.test.ts": 748, - "server/src/__tests__/work-timeline-service.test.ts": 17371, - "server/src/__tests__/workspace-authorization-query.test.ts": 9652, - "server/src/__tests__/workspace-cleanup-retained-local-dir.test.ts": 6489, - "server/src/__tests__/workspace-compaction.test.ts": 1500, + "server/src/__tests__/work-product-workspace-validation.test.ts": 6717, + "server/src/__tests__/work-products.test.ts": 7496, + "server/src/__tests__/work-scheduler.test.ts": 852, + "server/src/__tests__/work-timeline-service.test.ts": 20862, + "server/src/__tests__/workload-identity.test.ts": 20190, + "server/src/__tests__/workspace-authorization-query.test.ts": 8981, + "server/src/__tests__/workspace-cleanup-retained-local-dir.test.ts": 7373, + "server/src/__tests__/workspace-compaction.test.ts": 1585, "server/src/__tests__/workspace-delivery-cleanup.integration.test.ts": 11616, - "server/src/__tests__/workspace-history-user-journey.test.ts": 11436, - "server/src/__tests__/workspace-host-provision.test.ts": 2015, - "server/src/__tests__/workspace-instance-cleanup.test.ts": 652, - "server/src/__tests__/workspace-login-handoff-endpoint.test.ts": 2386, - "server/src/__tests__/workspace-login-handoff-issuer.test.ts": 1893, - "server/src/__tests__/workspace-login-handoff.test.ts": 825, + "server/src/__tests__/workspace-history-user-journey.test.ts": 15152, + "server/src/__tests__/workspace-host-provision.test.ts": 1985, + "server/src/__tests__/workspace-instance-cleanup.test.ts": 960, + "server/src/__tests__/workspace-login-handoff-endpoint.test.ts": 2785, + "server/src/__tests__/workspace-login-handoff-issuer.test.ts": 1867, + "server/src/__tests__/workspace-login-handoff.test.ts": 727, "server/src/__tests__/workspace-operations-reconciliation.test.ts": 8506, - "server/src/__tests__/workspace-preferences.test.ts": 6065, - "server/src/__tests__/workspace-preparation-history.test.ts": 15947, - "server/src/__tests__/workspace-provider-failure.test.ts": 1400, - "server/src/__tests__/workspace-readiness.test.ts": 1955, - "server/src/__tests__/workspace-reaper-cooldown-config.test.ts": 1871, + "server/src/__tests__/workspace-preferences.test.ts": 8174, + "server/src/__tests__/workspace-preparation-history.test.ts": 14982, + "server/src/__tests__/workspace-provider-failure.test.ts": 1965, + "server/src/__tests__/workspace-readiness.test.ts": 2601, + "server/src/__tests__/workspace-reaper-cooldown-config.test.ts": 1608, "server/src/__tests__/workspace-runtime-control-recovery.test.ts": 7273, "server/src/__tests__/workspace-runtime-exposure-reservation.test.ts": 9335, "server/src/__tests__/workspace-runtime-https-live-exercise.test.ts": 2771, - "server/src/__tests__/workspace-runtime-lease-ownership.test.ts": 11219, - "server/src/__tests__/workspace-runtime-leases.test.ts": 4296, + "server/src/__tests__/workspace-runtime-lease-ownership.test.ts": 12038, + "server/src/__tests__/workspace-runtime-leases.test.ts": 4386, "server/src/__tests__/workspace-runtime-lifecycle.test.ts": 7179, "server/src/__tests__/workspace-runtime-start-terminality.test.ts": 9698, - "server/src/__tests__/workspace-runtime.test.ts": 102579, + "server/src/__tests__/workspace-runtime.test.ts": 90801, "server/src/__tests__/workspace-worktree-concurrency.test.ts": 30390, - "server/src/__tests__/worktree-config.test.ts": 1938, - "server/src/__tests__/worktree-seed-server-spawn.test.ts": 8828, - "server/src/__tests__/write-build-stamp.test.ts": 1065, - "server/src/__tests__/write-path-membership.test.ts": 6313, - "server/src/adapters/claude-agent-id-header.test.ts": 829, - "server/src/adapters/cloud-external-adapters.test.ts": 10072, - "server/src/adapters/http/execute.test.ts": 1754, - "server/src/adapters/plugin-loader.test.ts": 759, - "server/src/adapters/registry.test.ts": 6375, - "server/src/embedded-postgres-owner.test.ts": 685, - "server/src/event-loop-stall-monitor.test.ts": 2403, - "server/src/google-workspace-rest-tools/allowlist.test.ts": 2706, - "server/src/google-workspace-rest-tools/boundary.test.ts": 1335, - "server/src/google-workspace-rest-tools/calendar/create-event.test.ts": 901, - "server/src/google-workspace-rest-tools/calendar/delete-event.test.ts": 748, - "server/src/google-workspace-rest-tools/calendar/event.test.ts": 883, - "server/src/google-workspace-rest-tools/calendar/get-event.test.ts": 1286, - "server/src/google-workspace-rest-tools/calendar/list-calendars.test.ts": 1007, - "server/src/google-workspace-rest-tools/calendar/list-events.test.ts": 857, - "server/src/google-workspace-rest-tools/calendar/respond-to-event.test.ts": 803, - "server/src/google-workspace-rest-tools/calendar/search-events.test.ts": 904, - "server/src/google-workspace-rest-tools/calendar/suggest-time.test.ts": 817, - "server/src/google-workspace-rest-tools/calendar/time.test.ts": 812, - "server/src/google-workspace-rest-tools/calendar/update-event.test.ts": 1496, - "server/src/google-workspace-rest-tools/docs/read-doc.test.ts": 940, - "server/src/google-workspace-rest-tools/docs/render.test.ts": 917, - "server/src/google-workspace-rest-tools/docs/request-kinds.test.ts": 899, - "server/src/google-workspace-rest-tools/docs/update-doc.test.ts": 942, - "server/src/google-workspace-rest-tools/documents-shared.test.ts": 1023, - "server/src/google-workspace-rest-tools/drive/annotations.test.ts": 900, - "server/src/google-workspace-rest-tools/drive/copy-file.test.ts": 661, - "server/src/google-workspace-rest-tools/drive/create-file.test.ts": 821, - "server/src/google-workspace-rest-tools/drive/download-file-content.test.ts": 730, - "server/src/google-workspace-rest-tools/drive/get-file-metadata.test.ts": 1277, - "server/src/google-workspace-rest-tools/drive/get-file-permissions.test.ts": 843, - "server/src/google-workspace-rest-tools/drive/list-recent-files.test.ts": 1087, - "server/src/google-workspace-rest-tools/drive/query.test.ts": 584, - "server/src/google-workspace-rest-tools/drive/read-file-content.test.ts": 969, - "server/src/google-workspace-rest-tools/drive/search-files.test.ts": 776, - "server/src/google-workspace-rest-tools/gmail/address.test.ts": 852, - "server/src/google-workspace-rest-tools/gmail/create-draft.test.ts": 1127, - "server/src/google-workspace-rest-tools/gmail/get-draft.test.ts": 1116, - "server/src/google-workspace-rest-tools/gmail/get-message.test.ts": 875, - "server/src/google-workspace-rest-tools/gmail/get-thread.test.ts": 819, - "server/src/google-workspace-rest-tools/gmail/list-drafts.test.ts": 887, - "server/src/google-workspace-rest-tools/gmail/list-labels.test.ts": 933, - "server/src/google-workspace-rest-tools/gmail/list-threads.test.ts": 902, - "server/src/google-workspace-rest-tools/gmail/parallel.test.ts": 1107, - "server/src/google-workspace-rest-tools/gmail/search-messages.test.ts": 622, - "server/src/google-workspace-rest-tools/gmail/search-threads.test.ts": 822, - "server/src/google-workspace-rest-tools/google-http.test.ts": 800, - "server/src/google-workspace-rest-tools/probe.test.ts": 880, - "server/src/google-workspace-rest-tools/result-budget.test.ts": 2010, - "server/src/google-workspace-rest-tools/server.test.ts": 1360, - "server/src/google-workspace-rest-tools/sheets/get-spreadsheet.test.ts": 879, - "server/src/google-workspace-rest-tools/sheets/get-values.test.ts": 1162, - "server/src/google-workspace-rest-tools/sheets/insert-dimension.test.ts": 896, - "server/src/google-workspace-rest-tools/sheets/range.test.ts": 737, - "server/src/google-workspace-rest-tools/sheets/update-spreadsheet.test.ts": 870, - "server/src/google-workspace-rest-tools/sheets/update-values.test.ts": 1144, - "server/src/google-workspace-rest-tools/sheets/wiring.test.ts": 1665, - "server/src/google-workspace-rest-tools/slides/read-presentation.test.ts": 1050, - "server/src/google-workspace-rest-tools/slides/render.test.ts": 814, - "server/src/google-workspace-rest-tools/slides/request-kinds.test.ts": 902, - "server/src/google-workspace-rest-tools/slides/update-presentation.test.ts": 1114, - "server/src/http/server.test.ts": 2908, - "server/src/lib/active-run-slots.test.ts": 868, - "server/src/lib/request-promise-memo.test.ts": 887, - "server/src/lib/single-flight.test.ts": 889, + "server/src/__tests__/worktree-config.test.ts": 2347, + "server/src/__tests__/worktree-seed-server-spawn.test.ts": 10537, + "server/src/__tests__/write-build-stamp.test.ts": 959, + "server/src/__tests__/write-path-membership.test.ts": 6877, + "server/src/adapters/claude-agent-id-header.test.ts": 912, + "server/src/adapters/cloud-external-adapters.test.ts": 10083, + "server/src/adapters/http/execute.test.ts": 2041, + "server/src/adapters/plugin-loader.test.ts": 1014, + "server/src/adapters/registry.test.ts": 7041, + "server/src/embedded-postgres-owner.test.ts": 868, + "server/src/event-loop-stall-monitor.test.ts": 2515, + "server/src/google-workspace-rest-tools/allowlist.test.ts": 1795, + "server/src/google-workspace-rest-tools/boundary.test.ts": 1360, + "server/src/google-workspace-rest-tools/calendar/create-event.test.ts": 1058, + "server/src/google-workspace-rest-tools/calendar/delete-event.test.ts": 1029, + "server/src/google-workspace-rest-tools/calendar/event.test.ts": 873, + "server/src/google-workspace-rest-tools/calendar/get-event.test.ts": 1057, + "server/src/google-workspace-rest-tools/calendar/list-calendars.test.ts": 999, + "server/src/google-workspace-rest-tools/calendar/list-events.test.ts": 977, + "server/src/google-workspace-rest-tools/calendar/respond-to-event.test.ts": 896, + "server/src/google-workspace-rest-tools/calendar/search-events.test.ts": 992, + "server/src/google-workspace-rest-tools/calendar/suggest-time.test.ts": 914, + "server/src/google-workspace-rest-tools/calendar/time.test.ts": 875, + "server/src/google-workspace-rest-tools/calendar/update-event.test.ts": 864, + "server/src/google-workspace-rest-tools/docs/read-doc.test.ts": 795, + "server/src/google-workspace-rest-tools/docs/render.test.ts": 876, + "server/src/google-workspace-rest-tools/docs/request-kinds.test.ts": 1182, + "server/src/google-workspace-rest-tools/docs/update-doc.test.ts": 903, + "server/src/google-workspace-rest-tools/documents-shared.test.ts": 990, + "server/src/google-workspace-rest-tools/drive/annotations.test.ts": 1059, + "server/src/google-workspace-rest-tools/drive/copy-file.test.ts": 1073, + "server/src/google-workspace-rest-tools/drive/create-file.test.ts": 875, + "server/src/google-workspace-rest-tools/drive/download-file-content.test.ts": 915, + "server/src/google-workspace-rest-tools/drive/get-file-metadata.test.ts": 821, + "server/src/google-workspace-rest-tools/drive/get-file-permissions.test.ts": 927, + "server/src/google-workspace-rest-tools/drive/list-recent-files.test.ts": 973, + "server/src/google-workspace-rest-tools/drive/query.test.ts": 1016, + "server/src/google-workspace-rest-tools/drive/read-file-content.test.ts": 1084, + "server/src/google-workspace-rest-tools/drive/search-files.test.ts": 1122, + "server/src/google-workspace-rest-tools/gmail/address.test.ts": 850, + "server/src/google-workspace-rest-tools/gmail/create-draft.test.ts": 1031, + "server/src/google-workspace-rest-tools/gmail/get-draft.test.ts": 994, + "server/src/google-workspace-rest-tools/gmail/get-message.test.ts": 1063, + "server/src/google-workspace-rest-tools/gmail/get-thread.test.ts": 869, + "server/src/google-workspace-rest-tools/gmail/list-drafts.test.ts": 942, + "server/src/google-workspace-rest-tools/gmail/list-labels.test.ts": 864, + "server/src/google-workspace-rest-tools/gmail/list-threads.test.ts": 997, + "server/src/google-workspace-rest-tools/gmail/parallel.test.ts": 743, + "server/src/google-workspace-rest-tools/gmail/search-messages.test.ts": 944, + "server/src/google-workspace-rest-tools/gmail/search-threads.test.ts": 1048, + "server/src/google-workspace-rest-tools/google-http.test.ts": 1041, + "server/src/google-workspace-rest-tools/probe.test.ts": 992, + "server/src/google-workspace-rest-tools/result-budget.test.ts": 2062, + "server/src/google-workspace-rest-tools/server.test.ts": 1253, + "server/src/google-workspace-rest-tools/sheets/get-spreadsheet.test.ts": 1074, + "server/src/google-workspace-rest-tools/sheets/get-values.test.ts": 1097, + "server/src/google-workspace-rest-tools/sheets/insert-dimension.test.ts": 957, + "server/src/google-workspace-rest-tools/sheets/range.test.ts": 882, + "server/src/google-workspace-rest-tools/sheets/update-spreadsheet.test.ts": 974, + "server/src/google-workspace-rest-tools/sheets/update-values.test.ts": 961, + "server/src/google-workspace-rest-tools/sheets/wiring.test.ts": 2098, + "server/src/google-workspace-rest-tools/slides/read-presentation.test.ts": 915, + "server/src/google-workspace-rest-tools/slides/render.test.ts": 915, + "server/src/google-workspace-rest-tools/slides/request-kinds.test.ts": 1052, + "server/src/google-workspace-rest-tools/slides/update-presentation.test.ts": 916, + "server/src/google-workspace-rest-tools/strict-arguments.test.ts": 1060, + "server/src/http/server.test.ts": 3003, + "server/src/lib/active-run-slots.test.ts": 523, + "server/src/lib/request-promise-memo.test.ts": 791, + "server/src/lib/single-flight.test.ts": 740, "server/src/maintenance/ephemeral-migration-service.test.ts": 1291, "server/src/maintenance/native-harness-prestage-runtime.test.ts": 9103, - "server/src/maintenance/native-harness-prestage.test.ts": 1031, + "server/src/maintenance/native-harness-prestage.test.ts": 1107, "server/src/maintenance/online-workspace-migration.test.ts": 6949, - "server/src/middleware/cloud-tenant-actor.test.ts": 6804, - "server/src/middleware/cloud-tenant-sync-postgres.test.ts": 22374, - "server/src/middleware/runner-call-outcome.test.ts": 3023, - "server/src/modules/active-run-watchdog/adapters/process.test.ts": 1696, - "server/src/modules/active-run-watchdog/application/use-cases.test.ts": 724, - "server/src/modules/active-run-watchdog/domain/policy.test.ts": 886, - "server/src/modules/agent-lifecycle/__tests__/diagnostics.test.ts": 8270, - "server/src/modules/agent-lifecycle/__tests__/driver-scope.test.ts": 7479, - "server/src/modules/agent-lifecycle/__tests__/environment-plugins.test.ts": 9410, - "server/src/modules/agent-lifecycle/__tests__/lifecycle.test.ts": 37484, + "server/src/middleware/cloud-tenant-actor.test.ts": 9679, + "server/src/middleware/cloud-tenant-sync-postgres.test.ts": 23600, + "server/src/middleware/runner-call-outcome.test.ts": 3980, + "server/src/modules/active-run-watchdog/adapters/process.test.ts": 1851, + "server/src/modules/active-run-watchdog/application/use-cases.test.ts": 760, + "server/src/modules/active-run-watchdog/domain/policy.test.ts": 785, + "server/src/modules/agent-lifecycle/__tests__/diagnostics.test.ts": 6352, + "server/src/modules/agent-lifecycle/__tests__/driver-scope.test.ts": 7287, + "server/src/modules/agent-lifecycle/__tests__/environment-plugins.test.ts": 10464, + "server/src/modules/agent-lifecycle/__tests__/lifecycle.test.ts": 37682, "server/src/modules/agent-lifecycle/__tests__/pending-backoff.test.ts": 6985, - "server/src/modules/agent-lifecycle/__tests__/policy-sweep.test.ts": 8793, - "server/src/modules/agent-lifecycle/__tests__/resource-wait-stop.test.ts": 11051, - "server/src/modules/agent-lifecycle/__tests__/restart-verification.test.ts": 7019, - "server/src/modules/agent-lifecycle/__tests__/setup.test.ts": 8764, - "server/src/modules/agent-lifecycle/__tests__/verification-retry.test.ts": 10040, - "server/src/modules/execution-admission/adapters/postgres.test.ts": 7352, - "server/src/modules/execution-admission/domain/policy.test.ts": 733, - "server/src/modules/external-agents/cloud-principal-http.test.ts": 6307, - "server/src/modules/external-agents/cloud-principal-log.test.ts": 1086, - "server/src/modules/external-agents/original-token-principal.test.ts": 6875, - "server/src/modules/run-dispatch/adapters/postgres.test.ts": 31715, - "server/src/modules/run-dispatch/application/use-cases.test.ts": 733, - "server/src/modules/run-dispatch/domain/policy.test.ts": 917, - "server/src/modules/run-dispatch/domain/wake-context.test.ts": 766, - "server/src/modules/wake-queue/adapters/chat-declined-outcome-reported.test.ts": 8840, - "server/src/modules/wake-queue/adapters/chat-wake-conversation-batch.test.ts": 8403, - "server/src/modules/wake-queue/adapters/chat-wake-delivered.test.ts": 7354, - "server/src/modules/wake-queue/adapters/operator-stop.test.ts": 5816, - "server/src/modules/wake-queue/adapters/postgres.test.ts": 38573, - "server/src/modules/wake-queue/adapters/promoted-retry-scope.test.ts": 6760, - "server/src/modules/wake-queue/adapters/queued-comment-postgres.test.ts": 6682, - "server/src/modules/wake-queue/adapters/queued-operator-stop-postgres.test.ts": 6080, - "server/src/modules/wake-queue/adapters/release-run-read.test.ts": 2580, + "server/src/modules/agent-lifecycle/__tests__/policy-sweep.test.ts": 7506, + "server/src/modules/agent-lifecycle/__tests__/resource-wait-stop.test.ts": 11219, + "server/src/modules/agent-lifecycle/__tests__/restart-verification.test.ts": 7445, + "server/src/modules/agent-lifecycle/__tests__/setup.test.ts": 9432, + "server/src/modules/agent-lifecycle/__tests__/verification-retry.test.ts": 9560, + "server/src/modules/execution-admission/adapters/postgres.test.ts": 7019, + "server/src/modules/execution-admission/domain/policy.test.ts": 893, + "server/src/modules/external-agents/cloud-principal-http.test.ts": 7389, + "server/src/modules/external-agents/cloud-principal-log.test.ts": 859, + "server/src/modules/external-agents/original-token-principal.test.ts": 6101, + "server/src/modules/run-dispatch/adapters/postgres.test.ts": 39295, + "server/src/modules/run-dispatch/application/use-cases.test.ts": 724, + "server/src/modules/run-dispatch/domain/policy.test.ts": 795, + "server/src/modules/run-dispatch/domain/wake-context.test.ts": 996, + "server/src/modules/wake-queue/adapters/chat-declined-outcome-reported.test.ts": 8101, + "server/src/modules/wake-queue/adapters/chat-wake-conversation-batch.test.ts": 8819, + "server/src/modules/wake-queue/adapters/chat-wake-delivered.test.ts": 7818, + "server/src/modules/wake-queue/adapters/operator-stop.test.ts": 6114, + "server/src/modules/wake-queue/adapters/postgres.test.ts": 41109, + "server/src/modules/wake-queue/adapters/promoted-retry-scope.test.ts": 7323, + "server/src/modules/wake-queue/adapters/queued-comment-postgres.test.ts": 8164, + "server/src/modules/wake-queue/adapters/queued-operator-stop-postgres.test.ts": 6629, + "server/src/modules/wake-queue/adapters/release-run-read.test.ts": 2720, "server/src/modules/wake-queue/adapters/retryable-before-provider-work.test.ts": 5229, - "server/src/modules/wake-queue/application/queued-comment-use-cases.test.ts": 774, - "server/src/modules/wake-queue/application/use-cases.test.ts": 7492, - "server/src/modules/wake-queue/domain/context.test.ts": 6037, - "server/src/modules/wake-queue/domain/policy.test.ts": 1025, - "server/src/realtime/live-event-delivery.cost.test.ts": 897, - "server/src/realtime/live-event-delivery.test.ts": 745, - "server/src/realtime/runner-prp-outbound.test.ts": 806, - "server/src/realtime/runner-prp-ws.test.ts": 2722, - "server/src/routes/adapters.test.ts": 5585, - "server/src/routes/chat-channels.identity.test.ts": 7775, - "server/src/routes/chat-channels.webhook.test.ts": 7956, - "server/src/routes/connection-intents.test.ts": 5811, - "server/src/routes/ephemeral-enrollment.test.ts": 2108, - "server/src/routes/issues-wake-diagnostics.test.ts": 4963, - "server/src/routes/setup-token-route.test.ts": 9288, - "server/src/routes/tool-access-connection-intent.test.ts": 7464, - "server/src/routes/voice-sessions.auth.test.ts": 7695, - "server/src/runtime-tools-token.test.ts": 1406, - "server/src/services/__tests__/git-connection-failure.test.ts": 753, - "server/src/services/__tests__/mcp-connection-failure.test.ts": 688, - "server/src/services/__tests__/process-loss-diagnostics.test.ts": 880, - "server/src/services/__tests__/run-failure-diagnostics-provider-unavailable.test.ts": 1815, - "server/src/services/__tests__/run-failure-diagnostics.test.ts": 1637, - "server/src/services/__tests__/run-failure-report-native-usage-limit.test.ts": 7350, - "server/src/services/__tests__/run-failure-report-project-access.test.ts": 6454, - "server/src/services/__tests__/run-failure-report-reviewed-chat.test.ts": 7286, + "server/src/modules/wake-queue/application/issue-wake-admission.test.ts": 703, + "server/src/modules/wake-queue/application/queued-comment-use-cases.test.ts": 1136, + "server/src/modules/wake-queue/application/recovery-admission.test.ts": 868, + "server/src/modules/wake-queue/application/recovery-deferral.test.ts": 6956, + "server/src/modules/wake-queue/application/use-cases.test.ts": 20203, + "server/src/modules/wake-queue/domain/context.test.ts": 6788, + "server/src/modules/wake-queue/domain/policy.test.ts": 793, + "server/src/realtime/activity-toast-details.test.ts": 2070, + "server/src/realtime/live-event-delivery.cost.test.ts": 625, + "server/src/realtime/live-event-delivery.test.ts": 875, + "server/src/realtime/runner-prp-outbound.test.ts": 790, + "server/src/realtime/runner-prp-ws.test.ts": 2320, + "server/src/routes/adapters.test.ts": 6128, + "server/src/routes/chat-channels.identity.test.ts": 9732, + "server/src/routes/chat-channels.webhook.test.ts": 9846, + "server/src/routes/connection-intents.test.ts": 6824, + "server/src/routes/ephemeral-enrollment.test.ts": 2652, + "server/src/routes/issue-document-batch.test.ts": 2324, + "server/src/routes/issues-wake-diagnostics.test.ts": 5181, + "server/src/routes/setup-token-route.test.ts": 22759, + "server/src/routes/tool-access-connection-intent.test.ts": 9663, + "server/src/routes/voice-sessions.auth.test.ts": 6633, + "server/src/runtime-tools-token.test.ts": 826, + "server/src/services/__tests__/git-connection-failure.test.ts": 818, + "server/src/services/__tests__/mcp-connection-failure.test.ts": 780, + "server/src/services/__tests__/process-loss-diagnostics.test.ts": 740, + "server/src/services/__tests__/run-failure-diagnostics-provider-unavailable.test.ts": 1622, + "server/src/services/__tests__/run-failure-diagnostics.test.ts": 1907, + "server/src/services/__tests__/run-failure-report-native-usage-limit.test.ts": 7152, + "server/src/services/__tests__/run-failure-report-project-access.test.ts": 7865, + "server/src/services/__tests__/run-failure-report-reviewed-chat.test.ts": 7151, + "server/src/services/__tests__/run-failure-report-sandbox-resume.test.ts": 7160, "server/src/services/__tests__/run-failure-report.test.ts": 21951, - "server/src/services/__tests__/sentry-run-links.test.ts": 2351, - "server/src/services/acknowledged-native-stop.test.ts": 2689, - "server/src/services/adapter-execution-control.test.ts": 1434, - "server/src/services/adapter-execution-phase.test.ts": 682, - "server/src/services/adapter-login-lease.test.ts": 699, - "server/src/services/adapter-models-env.test.ts": 932, - "server/src/services/adapter-registry-bootstrap.reconcile.test.ts": 6276, - "server/src/services/adapter-registry-bootstrap.test.ts": 5086, - "server/src/services/adapter-settings-local.test.ts": 2366, - "server/src/services/adapter-settings-postgres.test.ts": 6481, - "server/src/services/agent-budget-hold-activity.test.ts": 8607, - "server/src/services/agent-cost-history-deletion.test.ts": 6277, - "server/src/services/agent-environment-test-status.test.ts": 5644, - "server/src/services/agent-identity-redaction.test.ts": 2040, - "server/src/services/agent-interaction-delivery.test.ts": 7079, - "server/src/services/agent-invented-host-links.test.ts": 1731, - "server/src/services/agent-runner-selection.test.ts": 5364, - "server/src/services/agent-start-lock.test.ts": 559, - "server/src/services/ai-account-identity.test.ts": 2027, - "server/src/services/ai-auth-failure.test.ts": 1974, - "server/src/services/ai-connection-configuration-failure.test.ts": 984, - "server/src/services/ai-connection-usage.test.ts": 1774, - "server/src/services/anthropic-pricing.test.ts": 1976, - "server/src/services/app-webhook.test.ts": 739, - "server/src/services/approved-execution-wait.test.ts": 947, - "server/src/services/attention-audience.test.ts": 7537, - "server/src/services/attention-resolver-audience.test.ts": 6558, - "server/src/services/board-auth.test.ts": 11874, - "server/src/services/budget-live-usage.test.ts": 2077, - "server/src/services/budget-resume-continuation.test.ts": 10211, - "server/src/services/budget-tracing.test.ts": 1887, - "server/src/services/bundled-skill-release-validation.test.ts": 2693, - "server/src/services/case-agent-read.test.ts": 2438, - "server/src/services/case-deletion.test.ts": 7502, - "server/src/services/case-handoff-privacy.test.ts": 7182, + "server/src/services/__tests__/sentry-run-links.test.ts": 2294, + "server/src/services/acknowledged-native-stop.test.ts": 3212, + "server/src/services/adapter-execution-control.test.ts": 1599, + "server/src/services/adapter-execution-phase.test.ts": 706, + "server/src/services/adapter-login-lease.test.ts": 809, + "server/src/services/adapter-models-env.test.ts": 665, + "server/src/services/adapter-registry-bootstrap.reconcile.test.ts": 6349, + "server/src/services/adapter-registry-bootstrap.test.ts": 5412, + "server/src/services/adapter-settings-local.test.ts": 2256, + "server/src/services/adapter-settings-postgres.test.ts": 7846, + "server/src/services/agent-budget-hold-activity.test.ts": 6723, + "server/src/services/agent-cost-history-deletion.test.ts": 5956, + "server/src/services/agent-environment-test-status.test.ts": 5780, + "server/src/services/agent-identity-redaction.test.ts": 2274, + "server/src/services/agent-interaction-delivery.test.ts": 10275, + "server/src/services/agent-invented-host-links.test.ts": 1816, + "server/src/services/agent-runner-selection.test.ts": 11646, + "server/src/services/agent-start-lock.test.ts": 807, + "server/src/services/ai-account-identity.test.ts": 1993, + "server/src/services/ai-api-key-test.test.ts": 747, + "server/src/services/ai-auth-failure.test.ts": 1926, + "server/src/services/ai-connection-configuration-failure.test.ts": 991, + "server/src/services/ai-connection-usage.test.ts": 1925, + "server/src/services/anthropic-pricing.test.ts": 1563, + "server/src/services/app-webhook.test.ts": 831, + "server/src/services/approved-execution-wait.test.ts": 653, + "server/src/services/attention-audience.test.ts": 6642, + "server/src/services/attention-resolver-audience.test.ts": 6738, + "server/src/services/board-auth.test.ts": 14036, + "server/src/services/budget-live-usage.test.ts": 2119, + "server/src/services/budget-resume-continuation.test.ts": 9335, + "server/src/services/budget-tracing.test.ts": 1882, + "server/src/services/bundled-skill-release-validation.test.ts": 2609, + "server/src/services/case-agent-read.test.ts": 2408, + "server/src/services/case-deletion.test.ts": 8417, + "server/src/services/case-handoff-privacy.test.ts": 7294, "server/src/services/case-handoffs.test.ts": 59635, - "server/src/services/case-task-documents.test.ts": 7695, - "server/src/services/chat-channels/authorization-run-read.test.ts": 2401, + "server/src/services/case-task-documents.test.ts": 7435, + "server/src/services/chat-channels/authorization-run-read.test.ts": 2496, "server/src/services/chat-channels/discord/command-work.test.ts": 2014, + "server/src/services/chat-channels/failed-chat-retry-source-stop-wait.test.ts": 7026, "server/src/services/chat-channels/github/response-run-state.test.ts": 8778, "server/src/services/chat-channels/github/response-sweep-scope.test.ts": 6654, "server/src/services/chat-channels/github/retry.test.ts": 6396, "server/src/services/chat-channels/github/review-check-work.test.ts": 3215, - "server/src/services/chat-channels/github/review-heading.test.ts": 722, - "server/src/services/chat-channels/github/review-instructions.test.ts": 1825, + "server/src/services/chat-channels/github/review-heading.test.ts": 686, + "server/src/services/chat-channels/github/review-instructions.test.ts": 1835, "server/src/services/chat-channels/github/terminal-response-work.test.ts": 12889, - "server/src/services/chat-channels/github/webhook-ingress.test.ts": 8916, - "server/src/services/chat-channels/inbound/wakeup-authorization-error.test.ts": 621, + "server/src/services/chat-channels/github/webhook-ingress.test.ts": 10592, + "server/src/services/chat-channels/inbound/resource-admission.test.ts": 7160, + "server/src/services/chat-channels/inbound/wakeup-authorization-error.test.ts": 719, "server/src/services/chat-channels/run-origin.test.ts": 6023, - "server/src/services/chat-channels/slack/adapter.test.ts": 2150, - "server/src/services/chat-channels/slack/cards.test.ts": 2222, + "server/src/services/chat-channels/slack/adapter.test.ts": 2482, + "server/src/services/chat-channels/slack/cards.test.ts": 2156, "server/src/services/chat-channels/slack/cloud-callback.test.ts": 5968, "server/src/services/chat-channels/slack/cloud-drain.test.ts": 6585, - "server/src/services/chat-channels/slack/cloud-enrollment.test.ts": 1840, + "server/src/services/chat-channels/slack/cloud-enrollment.test.ts": 2299, "server/src/services/chat-channels/slack/cloud-event.test.ts": 7407, - "server/src/services/chat-channels/slack/cloud-ingress.test.ts": 1641, - "server/src/services/chat-channels/slack/cloud-signing-secret.test.ts": 762, - "server/src/services/chat-channels/slack/cloud-test-prewire.test.ts": 1160, - "server/src/services/chat-channels/slack/configured-coverage.test.ts": 1884, + "server/src/services/chat-channels/slack/cloud-ingress.test.ts": 2258, + "server/src/services/chat-channels/slack/cloud-signing-secret.test.ts": 747, + "server/src/services/chat-channels/slack/cloud-test-prewire.test.ts": 1445, + "server/src/services/chat-channels/slack/configured-coverage.test.ts": 1934, "server/src/services/chat-channels/slack/form-ack-work.test.ts": 1521, - "server/src/services/chat-channels/slack/form-canonical-state.test.ts": 1916, - "server/src/services/chat-channels/slack/form-enrollment-identity.test.ts": 2248, + "server/src/services/chat-channels/slack/form-canonical-state.test.ts": 2369, + "server/src/services/chat-channels/slack/form-enrollment-identity.test.ts": 1949, "server/src/services/chat-channels/slack/form-owner-rearm.test.ts": 7463, - "server/src/services/chat-channels/slack/form-retirement.test.ts": 1910, + "server/src/services/chat-channels/slack/form-retirement.test.ts": 1709, "server/src/services/chat-channels/slack/idle-history-owner-proof.test.ts": 2696, "server/src/services/chat-channels/slack/idle-incoming.test.ts": 2089, - "server/src/services/chat-channels/slack/question-forms.test.ts": 675, - "server/src/services/chat-channels/slack/receipt-timing.test.ts": 980, - "server/src/services/chat-channels/slack/signing-secret-preflight.test.ts": 5038, - "server/src/services/chat-channels/slack/wake-authority.test.ts": 778, - "server/src/services/chat-communication-guidance.test.ts": 1586, - "server/src/services/chat-control-admission-retry.test.ts": 5008, - "server/src/services/chat-discord-adapter-patch.test.ts": 4526, + "server/src/services/chat-channels/slack/question-forms.test.ts": 869, + "server/src/services/chat-channels/slack/receipt-timing.test.ts": 940, + "server/src/services/chat-channels/slack/signing-secret-preflight.test.ts": 7167, + "server/src/services/chat-channels/slack/wake-authority.test.ts": 908, + "server/src/services/chat-communication-guidance.test.ts": 1886, + "server/src/services/chat-control-admission-retry.test.ts": 5391, + "server/src/services/chat-discord-adapter-patch.test.ts": 4770, "server/src/services/chat-discord-command-registration-store.test.ts": 7446, - "server/src/services/chat-discord-command-registration.test.ts": 1035, - "server/src/services/chat-discord-modal-wire.test.ts": 3594, - "server/src/services/chat-discord-native-command.test.ts": 3675, - "server/src/services/chat-discord-native-commands.test.ts": 1242, + "server/src/services/chat-discord-command-registration.test.ts": 975, + "server/src/services/chat-discord-modal-wire.test.ts": 3509, + "server/src/services/chat-discord-native-command.test.ts": 4244, + "server/src/services/chat-discord-native-commands.test.ts": 1583, "server/src/services/chat-discord-native-interaction.test.ts": 7411, - "server/src/services/chat-discord-native-modal.test.ts": 3894, - "server/src/services/chat-discord-question-forms.test.ts": 827, - "server/src/services/chat-discord.test.ts": 971, - "server/src/services/chat-github-attachments.test.ts": 4217, - "server/src/services/chat-github-events.test.ts": 2146, - "server/src/services/chat-github-management.test.ts": 1909, - "server/src/services/chat-github-provider-stress.test.ts": 4914, - "server/src/services/chat-github-receipt-reactions.test.ts": 1164, - "server/src/services/chat-github-review-policy.test.ts": 1649, - "server/src/services/chat-github-review-repair.test.ts": 9291, - "server/src/services/chat-github-sponsor.test.ts": 9091, - "server/src/services/chat-github-tools.test.ts": 2807, - "server/src/services/chat-github-webhook-config.test.ts": 1151, - "server/src/services/chat-github-wizard-origin.test.ts": 7549, - "server/src/services/chat-inbound-wakeup-publications.test.ts": 6742, - "server/src/services/chat-interaction-arbitration.test.ts": 2485, + "server/src/services/chat-discord-native-modal.test.ts": 3286, + "server/src/services/chat-discord-question-forms.test.ts": 647, + "server/src/services/chat-discord.test.ts": 1254, + "server/src/services/chat-github-attachments.test.ts": 4927, + "server/src/services/chat-github-events.test.ts": 1731, + "server/src/services/chat-github-management.test.ts": 1930, + "server/src/services/chat-github-provider-stress.test.ts": 3329, + "server/src/services/chat-github-receipt-reactions.test.ts": 1207, + "server/src/services/chat-github-response-comments.test.ts": 6755, + "server/src/services/chat-github-review-policy.test.ts": 1804, + "server/src/services/chat-github-review-repair.test.ts": 7777, + "server/src/services/chat-github-sponsor.test.ts": 9552, + "server/src/services/chat-github-tools.test.ts": 2634, + "server/src/services/chat-github-webhook-config.test.ts": 861, + "server/src/services/chat-github-wizard-origin.test.ts": 5655, + "server/src/services/chat-inbound-wakeup-publications.test.ts": 7374, + "server/src/services/chat-interaction-arbitration.test.ts": 2365, "server/src/services/chat-interaction-continuation.test.ts": 8423, - "server/src/services/chat-interaction-forms.test.ts": 2800, - "server/src/services/chat-interaction-publications.test.ts": 6135, + "server/src/services/chat-interaction-forms.test.ts": 2486, + "server/src/services/chat-interaction-publications.test.ts": 6749, "server/src/services/chat-monitor-continuation.test.ts": 19929, - "server/src/services/chat-outbound-attachment-hydration.test.ts": 8299, - "server/src/services/chat-provider-inventory.test.ts": 801, - "server/src/services/chat-provider-lifecycle.test.ts": 751, - "server/src/services/chat-provider-links.test.ts": 673, - "server/src/services/chat-publication-batches.test.ts": 1652, - "server/src/services/chat-publication-errors.test.ts": 796, - "server/src/services/chat-publication-projection.test.ts": 803, - "server/src/services/chat-publication-ready-stream.test.ts": 4895, - "server/src/services/chat-publication-reconciliation.test.ts": 588, - "server/src/services/chat-publication-stream.test.ts": 3093, + "server/src/services/chat-outbound-attachment-hydration.test.ts": 10080, + "server/src/services/chat-provider-inventory.test.ts": 875, + "server/src/services/chat-provider-lifecycle.test.ts": 706, + "server/src/services/chat-provider-links.test.ts": 810, + "server/src/services/chat-publication-batches.test.ts": 1612, + "server/src/services/chat-publication-errors.test.ts": 827, + "server/src/services/chat-publication-projection.test.ts": 888, + "server/src/services/chat-publication-ready-stream.test.ts": 4842, + "server/src/services/chat-publication-reconciliation.test.ts": 806, + "server/src/services/chat-publication-stream.test.ts": 2574, "server/src/services/chat-publication-text-parts.test.ts": 25286, - "server/src/services/chat-question-forms.test.ts": 3025, - "server/src/services/chat-reply-lineage-context.test.ts": 14144, - "server/src/services/chat-run-publications.test.ts": 7423, + "server/src/services/chat-question-forms.test.ts": 2269, + "server/src/services/chat-reply-lineage-context.test.ts": 9708, + "server/src/services/chat-run-publications.test.ts": 6617, "server/src/services/chat-sdk-runtime.adapters.test.ts": 6978, - "server/src/services/chat-sdk-runtime.test.ts": 3499, - "server/src/services/chat-sdk-state.test.ts": 739, - "server/src/services/chat-slack-native-modal.test.ts": 3468, + "server/src/services/chat-sdk-runtime.test.ts": 4829, + "server/src/services/chat-sdk-state.test.ts": 730, + "server/src/services/chat-slack-native-modal.test.ts": 4543, "server/src/services/chat-slack-receipts.test.ts": 5112, - "server/src/services/chat-slack-sessions.test.ts": 586, - "server/src/services/chat-task-url.test.ts": 7399, - "server/src/services/chat-teams-credentials.test.ts": 1618, - "server/src/services/chat-teams-file-consent-runtime.test.ts": 3781, - "server/src/services/chat-teams-file-consent.contract.test.ts": 1665, - "server/src/services/chat-teams-file-consent.test.ts": 938, - "server/src/services/chat-teams-file-publication.test.ts": 7058, - "server/src/services/chat-teams-file-transfers.test.ts": 13927, - "server/src/services/chat-teams-inline-image-intake.test.ts": 3602, - "server/src/services/chat-teams-inline-images.test.ts": 3962, - "server/src/services/chat-teams-native-modal.test.ts": 4291, - "server/src/services/chat-teams-personal-recipient.test.ts": 1336, - "server/src/services/chat-telegram-draft-stop.test.ts": 959, - "server/src/services/chat-telegram-ephemeral-runtime.test.ts": 3003, - "server/src/services/chat-telegram-ephemeral.test.ts": 829, - "server/src/services/chat-telegram-media-intake.test.ts": 3812, - "server/src/services/chat-telegram-photo.test.ts": 1200, - "server/src/services/chat-telegram-rich-intake.test.ts": 3535, - "server/src/services/chat-telegram-stop-subscription.test.ts": 610, - "server/src/services/chat-telegram-video-note.test.ts": 3826, - "server/src/services/cloud-runtime-identity.test.ts": 1908, - "server/src/services/cloud-warm-standby.test.ts": 2195, - "server/src/services/connection-credential-state.test.ts": 6131, - "server/src/services/connector-runtime.test.ts": 7537, - "server/src/services/connector-telemetry.test.ts": 1925, - "server/src/services/connectors/onepassword/onepassword.test.ts": 894, - "server/src/services/connectors/onepassword/worker.test.ts": 848, - "server/src/services/connectors/slack-access.test.ts": 1850, - "server/src/services/connectors/slack-authority.test.ts": 7577, - "server/src/services/connectors/slack-endpoint-preparation.test.ts": 610, - "server/src/services/connectors/slack-native-search.test.ts": 1525, - "server/src/services/connectors/supabase/index.test.ts": 1980, + "server/src/services/chat-slack-sessions.test.ts": 770, + "server/src/services/chat-task-url.test.ts": 7206, + "server/src/services/chat-teams-credentials.test.ts": 1809, + "server/src/services/chat-teams-file-consent-runtime.test.ts": 4131, + "server/src/services/chat-teams-file-consent.contract.test.ts": 1969, + "server/src/services/chat-teams-file-consent.test.ts": 1125, + "server/src/services/chat-teams-file-publication.test.ts": 8523, + "server/src/services/chat-teams-file-transfers.test.ts": 16392, + "server/src/services/chat-teams-inline-image-intake.test.ts": 4539, + "server/src/services/chat-teams-inline-images.test.ts": 3776, + "server/src/services/chat-teams-native-modal.test.ts": 4095, + "server/src/services/chat-teams-personal-recipient.test.ts": 1504, + "server/src/services/chat-telegram-draft-stop.test.ts": 1269, + "server/src/services/chat-telegram-ephemeral-runtime.test.ts": 3347, + "server/src/services/chat-telegram-ephemeral.test.ts": 830, + "server/src/services/chat-telegram-media-intake.test.ts": 4403, + "server/src/services/chat-telegram-photo.test.ts": 918, + "server/src/services/chat-telegram-rich-intake.test.ts": 4354, + "server/src/services/chat-telegram-stop-subscription.test.ts": 862, + "server/src/services/chat-telegram-video-note.test.ts": 3989, + "server/src/services/cloud-runtime-identity.test.ts": 2352, + "server/src/services/cloud-warm-standby.test.ts": 1975, + "server/src/services/connection-credential-state.test.ts": 6379, + "server/src/services/connector-runtime.test.ts": 5331, + "server/src/services/connector-telemetry.test.ts": 2444, + "server/src/services/connectors/aws/mcp-credentials.test.ts": 1914, + "server/src/services/connectors/aws/setup.test.ts": 7387, + "server/src/services/connectors/onepassword/onepassword.test.ts": 997, + "server/src/services/connectors/onepassword/worker.test.ts": 1004, + "server/src/services/connectors/slack-access.test.ts": 2057, + "server/src/services/connectors/slack-authority.test.ts": 6152, + "server/src/services/connectors/slack-endpoint-preparation.test.ts": 752, + "server/src/services/connectors/slack-native-search.test.ts": 1736, + "server/src/services/connectors/supabase/index.test.ts": 2250, "server/src/services/connectors/tailscale/connections.test.ts": 7964, - "server/src/services/connectors/tailscale/device-login-network.test.ts": 4073, - "server/src/services/connectors/tailscale/device-login.test.ts": 6990, - "server/src/services/connectors/tailscale/devices.test.ts": 757, - "server/src/services/connectors/tailscale/network.test.ts": 3992, - "server/src/services/connectors/tailscale/pairing.test.ts": 1019, - "server/src/services/connectors/vercel/index.test.ts": 935, - "server/src/services/controller-process-identity.test.ts": 7997, - "server/src/services/controller-process-space-identity.test.ts": 4092, - "server/src/services/conversation-continuation.test.ts": 2468, + "server/src/services/connectors/tailscale/device-login-network.test.ts": 4097, + "server/src/services/connectors/tailscale/device-login.test.ts": 6977, + "server/src/services/connectors/tailscale/devices.test.ts": 830, + "server/src/services/connectors/tailscale/network.test.ts": 4313, + "server/src/services/connectors/tailscale/pairing.test.ts": 1287, + "server/src/services/connectors/vercel/index.test.ts": 854, + "server/src/services/controller-process-identity.test.ts": 7097, + "server/src/services/controller-process-space-identity.test.ts": 4861, + "server/src/services/conversation-continuation.test.ts": 2622, "server/src/services/covered-historical-workspace-source.integration.test.ts": 13981, - "server/src/services/decision-signing.test.ts": 976, - "server/src/services/deferred-execution-wait.test.ts": 6593, - "server/src/services/environment-custom-image-terminal-sessions.test.ts": 751, - "server/src/services/environment-lease-fault-injection.test.ts": 1962, - "server/src/services/environment-lease-release-deferral.test.ts": 3484, - "server/src/services/environment-provider-unavailable-error.test.ts": 1654, + "server/src/services/decision-signing.test.ts": 811, + "server/src/services/deferred-execution-wait.test.ts": 7456, + "server/src/services/environment-custom-image-terminal-sessions.test.ts": 760, + "server/src/services/environment-lease-attach-deadlock.integration.test.ts": 8221, + "server/src/services/environment-lease-fault-injection.test.ts": 2455, + "server/src/services/environment-lease-release-deferral.test.ts": 3302, + "server/src/services/environment-provider-unavailable-error.test.ts": 1714, + "server/src/services/environment-provider-wait.test.ts": 833, "server/src/services/environment-runtime-reusable-lease-probe.test.ts": 7560, - "server/src/services/ephemeral-enrollment.test.ts": 6429, - "server/src/services/execution-allowlist.test.ts": 841, - "server/src/services/execution-blocker-read.test.ts": 9947, + "server/src/services/ephemeral-enrollment.test.ts": 6841, + "server/src/services/execution-allowlist.test.ts": 821, + "server/src/services/execution-blocker-read.test.ts": 11079, "server/src/services/execution-continuation-history-read.test.ts": 6235, "server/src/services/execution-continuation-provenance.test.ts": 7312, "server/src/services/execution-continuation.test.ts": 6146, "server/src/services/execution-control-reconciliation.test.ts": 10688, - "server/src/services/execution-policy-bootstrap.test.ts": 3358, - "server/src/services/execution-preparation-timing.test.ts": 1906, - "server/src/services/execution-projection-agent-queue.test.ts": 8326, - "server/src/services/execution-projection-external-provider.test.ts": 6996, - "server/src/services/execution-projection-read-retry.test.ts": 8381, + "server/src/services/execution-policy-bootstrap.test.ts": 4158, + "server/src/services/execution-preparation-timing.test.ts": 1379, + "server/src/services/execution-projection-agent-queue.test.ts": 7362, + "server/src/services/execution-projection-external-provider.test.ts": 7606, + "server/src/services/execution-projection-read-retry.test.ts": 9064, "server/src/services/execution-projection-recovery.test.ts": 6830, - "server/src/services/execution-projection.test.ts": 6713, + "server/src/services/execution-projection.test.ts": 5684, "server/src/services/execution-recovery-attempt.test.ts": 5915, "server/src/services/execution-recovery-dead-controller.test.ts": 6855, "server/src/services/execution-recovery-resolution.test.ts": 6207, - "server/src/services/execution-timing-context.test.ts": 2970, - "server/src/services/execution-transaction-timing.test.ts": 6698, + "server/src/services/execution-timing-context.test.ts": 3071, + "server/src/services/execution-transaction-timing.test.ts": 7455, "server/src/services/explicit-native-continuation.test.ts": 108543, "server/src/services/finalized-workspace-recovery-migration.test.ts": 11370, - "server/src/services/fireflies-webhook.test.ts": 931, + "server/src/services/fireflies-webhook.test.ts": 728, "server/src/services/fresh-continuation-fallback.test.ts": 89949, "server/src/services/fresh-continuation-move-forward-offer.test.ts": 24878, "server/src/services/fresh-continuation-retry-delivery.test.ts": 16226, "server/src/services/fresh-continuation-schedule-queries.test.ts": 13634, - "server/src/services/github-connection-events.test.ts": 6267, - "server/src/services/gmail-archive-tool-policy.test.ts": 829, - "server/src/services/gmail-tool-governance.test.ts": 6233, - "server/src/services/google-chat-tool-policy.test.ts": 1895, - "server/src/services/google-workspace-rest-dispatch.test.ts": 1779, + "server/src/services/github-connection-events.test.ts": 6686, + "server/src/services/gmail-archive-tool-policy.test.ts": 601, + "server/src/services/gmail-tool-governance.test.ts": 6444, + "server/src/services/google-chat-tool-policy.test.ts": 1790, + "server/src/services/google-workspace-rest-dispatch.test.ts": 1873, "server/src/services/governed-wait-runner-loss.test.ts": 59275, - "server/src/services/grok-bot/webhook.test.ts": 634, - "server/src/services/heartbeat-github-launchers.test.ts": 2107, - "server/src/services/heartbeat-run-runtime-status.test.ts": 672, - "server/src/services/heartbeat-runner-provider-config.test.ts": 3077, - "server/src/services/heartbeat-stop-metadata.test.ts": 2091, - "server/src/services/heartbeat/agent-directory-busy.test.ts": 5025, + "server/src/services/grok-bot/webhook.test.ts": 892, + "server/src/services/heartbeat-github-launchers.test.ts": 2246, + "server/src/services/heartbeat-run-runtime-status.test.ts": 800, + "server/src/services/heartbeat-runner-provider-config.test.ts": 2140, + "server/src/services/heartbeat-stop-metadata.test.ts": 1688, + "server/src/services/heartbeat/agent-directory-busy.test.ts": 6860, "server/src/services/heartbeat/agent-status.test.ts": 25170, - "server/src/services/heartbeat/budget-cancellation.test.ts": 25772, + "server/src/services/heartbeat/budget-cancellation.test.ts": 38799, "server/src/services/heartbeat/dispatch-work.test.ts": 37986, "server/src/services/heartbeat/environment-selection.test.ts": 22396, - "server/src/services/heartbeat/external-provider.test.ts": 4994, + "server/src/services/heartbeat/external-provider.test.ts": 7077, "server/src/services/heartbeat/idle-recovery-schedule.test.ts": 6940, "server/src/services/heartbeat/instruction-working-copy.test.ts": 5974, - "server/src/services/heartbeat/legacy-process-settlement.test.ts": 2588, - "server/src/services/heartbeat/live-runner-adoption.test.ts": 581, - "server/src/services/heartbeat/native-lifecycle.test.ts": 2522, + "server/src/services/heartbeat/legacy-process-settlement.test.ts": 2421, + "server/src/services/heartbeat/live-runner-adoption.test.ts": 870, + "server/src/services/heartbeat/native-lifecycle.test.ts": 2771, "server/src/services/heartbeat/native-recovery-deadlines.test.ts": 7505, - "server/src/services/heartbeat/native-stop-evidence-read.test.ts": 12601, - "server/src/services/heartbeat/native-stop-pending.test.ts": 8931, - "server/src/services/heartbeat/preparation-timing-context.test.ts": 1983, - "server/src/services/heartbeat/preparation-timing.test.ts": 2033, - "server/src/services/heartbeat/process-identity-persistence.test.ts": 9248, - "server/src/services/heartbeat/process-settlement.test.ts": 2031, - "server/src/services/heartbeat/queue.test.ts": 92223, - "server/src/services/heartbeat/queued-run-dispatch-order.test.ts": 2998, - "server/src/services/heartbeat/queued-run-line.test.ts": 3515, - "server/src/services/heartbeat/reattach-phase.test.ts": 12092, - "server/src/services/heartbeat/recovery.test.ts": 41466, + "server/src/services/heartbeat/native-stop-evidence-read.test.ts": 13535, + "server/src/services/heartbeat/native-stop-pending.test.ts": 10846, + "server/src/services/heartbeat/preparation-timing-context.test.ts": 2087, + "server/src/services/heartbeat/preparation-timing.test.ts": 1961, + "server/src/services/heartbeat/process-identity-persistence.test.ts": 8054, + "server/src/services/heartbeat/process-settlement.test.ts": 2143, + "server/src/services/heartbeat/queue.test.ts": 99811, + "server/src/services/heartbeat/queued-run-dispatch-order.test.ts": 3817, + "server/src/services/heartbeat/queued-run-line.test.ts": 3316, + "server/src/services/heartbeat/reattach-phase.test.ts": 12060, + "server/src/services/heartbeat/recovery.test.ts": 45047, "server/src/services/heartbeat/remote-workspace-source.test.ts": 6797, - "server/src/services/heartbeat/retries.test.ts": 9945, - "server/src/services/heartbeat/run-comment-selection.test.ts": 8951, + "server/src/services/heartbeat/retries.test.ts": 11943, + "server/src/services/heartbeat/run-comment-selection.test.ts": 8093, "server/src/services/heartbeat/run-completion-reviewed-chat-report.test.ts": 14349, "server/src/services/heartbeat/run-completion.test.ts": 151888, - "server/src/services/heartbeat/run-control-event-failure.test.ts": 9105, - "server/src/services/heartbeat/run-control-reads.test.ts": 9616, - "server/src/services/heartbeat/run-control.test.ts": 77061, - "server/src/services/heartbeat/run-failure-cause.test.ts": 2966, + "server/src/services/heartbeat/run-control-event-failure.test.ts": 9514, + "server/src/services/heartbeat/run-control-reads.test.ts": 10920, + "server/src/services/heartbeat/run-control.test.ts": 82020, + "server/src/services/heartbeat/run-failure-cause.test.ts": 2699, "server/src/services/heartbeat/run-lifecycle.test.ts": 30357, - "server/src/services/heartbeat/run-log.test.ts": 2197, - "server/src/services/heartbeat/run-output.test.ts": 15553, - "server/src/services/heartbeat/run-preparation.review-path.test.ts": 6172, - "server/src/services/heartbeat/run-preparation.test.ts": 6679, - "server/src/services/heartbeat/run-state.test.ts": 8786, - "server/src/services/heartbeat/runtime-execution.test.ts": 42628, + "server/src/services/heartbeat/run-log.test.ts": 2509, + "server/src/services/heartbeat/run-output.test.ts": 17167, + "server/src/services/heartbeat/run-preparation.review-path.test.ts": 6548, + "server/src/services/heartbeat/run-preparation.test.ts": 9088, + "server/src/services/heartbeat/run-state.test.ts": 8810, + "server/src/services/heartbeat/runtime-execution.test.ts": 59034, "server/src/services/heartbeat/runtime-selection.test.ts": 75268, - "server/src/services/heartbeat/scheduling.test.ts": 64758, - "server/src/services/heartbeat/session-fingerprint-inputs.test.ts": 5895, - "server/src/services/heartbeat/system-notice-response.test.ts": 472, - "server/src/services/heartbeat/task-markdown.test.ts": 7244, - "server/src/services/heartbeat/upgrade-readiness-header-memo.test.ts": 7480, - "server/src/services/heartbeat/upgrade-readiness-post-result.test.ts": 11579, - "server/src/services/heartbeat/upgrade-readiness.test.ts": 13074, + "server/src/services/heartbeat/scheduling.test.ts": 80305, + "server/src/services/heartbeat/session-fingerprint-inputs.test.ts": 7491, + "server/src/services/heartbeat/system-notice-response.test.ts": 787, + "server/src/services/heartbeat/task-markdown.test.ts": 6201, + "server/src/services/heartbeat/upgrade-readiness-header-memo.test.ts": 7409, + "server/src/services/heartbeat/upgrade-readiness-post-result.test.ts": 12190, + "server/src/services/heartbeat/upgrade-readiness.test.ts": 15328, "server/src/services/heartbeat/workspace-preparation.test.ts": 178931, - "server/src/services/heartbeat/workspaces.test.ts": 7521, - "server/src/services/hot-restart.test.ts": 1902, + "server/src/services/heartbeat/workspaces.test.ts": 8078, + "server/src/services/hot-restart.test.ts": 1840, "server/src/services/idle-api-activity.test.ts": 861, "server/src/services/idle-api-wake-admission.test.ts": 773, "server/src/services/idle-deadline-proof.test.ts": 6083, "server/src/services/idle-incoming-wake-capability.test.ts": 1842, "server/src/services/idle-incoming-wake.test.ts": 7303, - "server/src/services/inbox-mine-read.test.ts": 743, - "server/src/services/instance-settings-readonly.test.ts": 6178, + "server/src/services/inbox-mine-read.test.ts": 950, + "server/src/services/instance-settings-readonly.test.ts": 5892, "server/src/services/isolated-remote-workspace-source-lock.test.ts": 10495, "server/src/services/isolated-remote-workspace-source.test.ts": 5129, - "server/src/services/isolated-task-directory.test.ts": 1831, - "server/src/services/issue-comment-wakeup.test.ts": 585, - "server/src/services/issue-dependency-wakeups.test.ts": 1461, - "server/src/services/issue-prefix.test.ts": 2095, - "server/src/services/issue-question-context.test.ts": 2593, - "server/src/services/issue-queued-comment-queue.test.ts": 895, - "server/src/services/issue-read-timing.test.ts": 802, - "server/src/services/issue-thread-interaction-resolution.test.ts": 1491, - "server/src/services/issue-thread-interactions.test.ts": 14384, + "server/src/services/isolated-task-directory.test.ts": 1839, + "server/src/services/issue-comment-wakeup.test.ts": 768, + "server/src/services/issue-dependency-wakeups.test.ts": 2037, + "server/src/services/issue-prefix.test.ts": 2264, + "server/src/services/issue-question-context.test.ts": 2588, + "server/src/services/issue-queued-comment-queue.test.ts": 825, + "server/src/services/issue-read-timing.test.ts": 911, + "server/src/services/issue-thread-interaction-resolution.test.ts": 2078, + "server/src/services/issue-thread-interactions.test.ts": 16746, "server/src/services/legacy-controller-lease.test.ts": 34340, "server/src/services/legacy-execution-recovery.test.ts": 4882, "server/src/services/legacy-explicit-continuation-recovery.test.ts": 9358, - "server/src/services/legacy-preparation-retry-hold.test.ts": 12289, + "server/src/services/legacy-preparation-retry-hold.test.ts": 12913, "server/src/services/legacy-source-unavailable-continuation.test.ts": 10232, - "server/src/services/local-ai-browser-login.test.ts": 5678, - "server/src/services/login-command.test.ts": 6475, - "server/src/services/login-environment.test.ts": 1622, - "server/src/services/managed-config-capabilities.test.ts": 1620, - "server/src/services/managed-environments-plugin-entries.test.ts": 6198, - "server/src/services/managed-environments.test.ts": 7180, - "server/src/services/managed-resource-drift.test.ts": 904, - "server/src/services/mcp-tool-names.test.ts": 765, + "server/src/services/local-ai-browser-login.test.ts": 4623, + "server/src/services/login-command.test.ts": 6346, + "server/src/services/login-environment.test.ts": 2586, + "server/src/services/managed-config-capabilities.test.ts": 1559, + "server/src/services/managed-environments-plugin-entries.test.ts": 5787, + "server/src/services/managed-environments.test.ts": 7243, + "server/src/services/managed-resource-drift.test.ts": 873, + "server/src/services/mcp-tool-names.test.ts": 782, "server/src/services/muse-maintenance.test.ts": 17264, - "server/src/services/native-local-process-stop.test.ts": 3397, + "server/src/services/native-local-process-stop.test.ts": 3551, "server/src/services/native-log-archive.integration.test.ts": 23689, "server/src/services/native-preclaim-continuation.test.ts": 19224, - "server/src/services/native-runtime/acpx-qualification.test.ts": 3012, + "server/src/services/native-runtime/acpx-qualification.test.ts": 3297, "server/src/services/native-runtime/agent-chat-response-recovery.test.ts": 22254, "server/src/services/native-runtime/agent-instruction-tools.integration.test.ts": 10416, - "server/src/services/native-runtime/agent-instruction-tools.test.ts": 5043, - "server/src/services/native-runtime/antigravity-candidate-admission.test.ts": 2463, - "server/src/services/native-runtime/antigravity-credential-recovery.test.ts": 2691, - "server/src/services/native-runtime/antigravity-runner-credentials.test.ts": 6700, + "server/src/services/native-runtime/agent-instruction-tools.test.ts": 6003, + "server/src/services/native-runtime/antigravity-candidate-admission.test.ts": 3151, + "server/src/services/native-runtime/antigravity-credential-recovery.test.ts": 3128, + "server/src/services/native-runtime/antigravity-release.test.ts": 8196, + "server/src/services/native-runtime/antigravity-runner-credentials.test.ts": 8153, "server/src/services/native-runtime/artifact-transfer.integration.test.ts": 9481, - "server/src/services/native-runtime/artifact-transfer.test.ts": 4060, - "server/src/services/native-runtime/assigned-mcp-tools.test.ts": 15611, - "server/src/services/native-runtime/case-context-projection.test.ts": 6002, - "server/src/services/native-runtime/chat-attachment-read.test.ts": 11792, - "server/src/services/native-runtime/chat-attachment-reuse.test.ts": 8033, - "server/src/services/native-runtime/codex-model-fallback.test.ts": 1597, - "server/src/services/native-runtime/codex-runtime-compatibility.test.ts": 738, - "server/src/services/native-runtime/completion-contracts.test.ts": 7582, + "server/src/services/native-runtime/artifact-transfer.test.ts": 4632, + "server/src/services/native-runtime/assigned-mcp-tools.test.ts": 24895, + "server/src/services/native-runtime/case-context-projection.test.ts": 6463, + "server/src/services/native-runtime/chat-attachment-read.test.ts": 21215, + "server/src/services/native-runtime/chat-attachment-reuse.test.ts": 8668, + "server/src/services/native-runtime/codex-model-fallback.test.ts": 1934, + "server/src/services/native-runtime/codex-runtime-compatibility.test.ts": 872, + "server/src/services/native-runtime/completion-contracts.test.ts": 5812, "server/src/services/native-runtime/confirmation-comment-api.integration.test.ts": 24611, "server/src/services/native-runtime/continuation-contract.test.ts": 7392, "server/src/services/native-runtime/create-skill.integration.test.ts": 18316, - "server/src/services/native-runtime/current-wake-comments.test.ts": 8164, + "server/src/services/native-runtime/current-wake-comments.test.ts": 9561, "server/src/services/native-runtime/cursor-cloud-artifact-handoff.test.ts": 6960, - "server/src/services/native-runtime/cursor-cloud-profile.test.ts": 2677, - "server/src/services/native-runtime/cursor-cloud-runtime.test.ts": 2861, - "server/src/services/native-runtime/evidence-classifier.test.ts": 2774, + "server/src/services/native-runtime/cursor-cloud-profile.test.ts": 2715, + "server/src/services/native-runtime/cursor-cloud-runtime.test.ts": 3478, + "server/src/services/native-runtime/evidence-classifier.test.ts": 2641, "server/src/services/native-runtime/external-chat-wait.integration.test.ts": 181027, - "server/src/services/native-runtime/external-review-wait.test.ts": 5796, - "server/src/services/native-runtime/failed-action-chat-feedback.test.ts": 7502, - "server/src/services/native-runtime/first-turn-queued-input.test.ts": 6718, - "server/src/services/native-runtime/generate-image-tool.test.ts": 9852, - "server/src/services/native-runtime/grok-runner-credentials.test.ts": 750, - "server/src/services/native-runtime/handoff-plan-context.test.ts": 2561, - "server/src/services/native-runtime/historical-task-questions.test.ts": 12136, - "server/src/services/native-runtime/managed-native-credentials.test.ts": 798, - "server/src/services/native-runtime/model-rejected-retry.test.ts": 2731, + "server/src/services/native-runtime/external-review-wait.test.ts": 5408, + "server/src/services/native-runtime/failed-action-chat-feedback.test.ts": 6491, + "server/src/services/native-runtime/failed-before-provider-turn.test.ts": 3026, + "server/src/services/native-runtime/first-turn-queued-input.test.ts": 7143, + "server/src/services/native-runtime/fresh-session-retry-context.test.ts": 5956, + "server/src/services/native-runtime/generate-image-tool.test.ts": 9739, + "server/src/services/native-runtime/grok-runner-credentials.test.ts": 1057, + "server/src/services/native-runtime/handoff-plan-context.test.ts": 3018, + "server/src/services/native-runtime/historical-task-questions.test.ts": 12321, + "server/src/services/native-runtime/issue-document-batch.integration.test.ts": 27370, + "server/src/services/native-runtime/managed-native-credentials.test.ts": 793, + "server/src/services/native-runtime/model-rejected-retry.test.ts": 3930, "server/src/services/native-runtime/muse-native-follow-up.test.ts": 9157, "server/src/services/native-runtime/muse-native-visibility.test.ts": 14758, - "server/src/services/native-runtime/native-agent-runtime-inheritance.test.ts": 2089, - "server/src/services/native-runtime/native-artifact-preparation.test.ts": 10641, + "server/src/services/native-runtime/native-accepted-outcome.test.ts": 1674, + "server/src/services/native-runtime/native-agent-blocker.integration.test.ts": 18282, + "server/src/services/native-runtime/native-agent-runtime-inheritance.test.ts": 2969, + "server/src/services/native-runtime/native-artifact-preparation.test.ts": 7077, "server/src/services/native-runtime/native-blocked-reply-recovery.test.ts": 7382, "server/src/services/native-runtime/native-bootstrap-claim-time-proof.integration.test.ts": 5878, - "server/src/services/native-runtime/native-bootstrap-proof.test.ts": 681, + "server/src/services/native-runtime/native-bootstrap-proof.test.ts": 523, "server/src/services/native-runtime/native-bootstrap-retry.integration.test.ts": 9069, - "server/src/services/native-runtime/native-cancellation-request.test.ts": 2580, + "server/src/services/native-runtime/native-cancellation-request.test.ts": 2963, "server/src/services/native-runtime/native-cancelled-workspace-preservation-idle.test.ts": 6716, - "server/src/services/native-runtime/native-cancelled-workspace-preservation.test.ts": 10991, + "server/src/services/native-runtime/native-cancelled-workspace-preservation.test.ts": 17893, "server/src/services/native-runtime/native-case-handoff.test.ts": 7463, "server/src/services/native-runtime/native-case-tools.integration.test.ts": 41747, - "server/src/services/native-runtime/native-chat-workspace.test.ts": 6722, + "server/src/services/native-runtime/native-chat-workspace.test.ts": 7009, "server/src/services/native-runtime/native-client-timeout-continuation.integration.test.ts": 9480, "server/src/services/native-runtime/native-closed-session-retry.integration.test.ts": 11115, "server/src/services/native-runtime/native-codex-runner.integration.test.ts": 224015, - "server/src/services/native-runtime/native-codex-runner.test.ts": 7467, - "server/src/services/native-runtime/native-completion-feedback.test.ts": 15474, - "server/src/services/native-runtime/native-completion-format-feedback.test.ts": 5680, - "server/src/services/native-runtime/native-confirmation-replay.test.ts": 11599, + "server/src/services/native-runtime/native-codex-runner.test.ts": 6690, + "server/src/services/native-runtime/native-completion-feedback.test.ts": 29170, + "server/src/services/native-runtime/native-completion-format-feedback.test.ts": 7418, + "server/src/services/native-runtime/native-confirmation-replay.test.ts": 11737, "server/src/services/native-runtime/native-continuation.test.ts": 6062, "server/src/services/native-runtime/native-controller-host-recovery.test.ts": 8314, - "server/src/services/native-runtime/native-controller-identity.test.ts": 7251, + "server/src/services/native-runtime/native-controller-identity.test.ts": 6429, "server/src/services/native-runtime/native-controller-migration.integration.test.ts": 40595, "server/src/services/native-runtime/native-controller-recovery.integration.test.ts": 24304, "server/src/services/native-runtime/native-controller-recovery.test.ts": 7453, - "server/src/services/native-runtime/native-controller-source-digest.test.ts": 3848, + "server/src/services/native-runtime/native-controller-source-digest.test.ts": 3607, "server/src/services/native-runtime/native-coordinator-claim-deadlock.integration.test.ts": 8794, - "server/src/services/native-runtime/native-credential-store.test.ts": 2312, - "server/src/services/native-runtime/native-credential-update-owner.test.ts": 2890, - "server/src/services/native-runtime/native-credential-updates.test.ts": 3188, - "server/src/services/native-runtime/native-current-wake-completion-feedback.test.ts": 10199, - "server/src/services/native-runtime/native-cut-turn-start-retry.integration.test.ts": 9216, - "server/src/services/native-runtime/native-deliverable-feedback.test.ts": 7167, - "server/src/services/native-runtime/native-deliverable-text.test.ts": 771, + "server/src/services/native-runtime/native-credential-store.test.ts": 2260, + "server/src/services/native-runtime/native-credential-update-owner.test.ts": 2645, + "server/src/services/native-runtime/native-credential-updates.test.ts": 3638, + "server/src/services/native-runtime/native-current-wake-completion-feedback.test.ts": 7228, + "server/src/services/native-runtime/native-cut-turn-start-retry.integration.test.ts": 10180, + "server/src/services/native-runtime/native-deliverable-feedback.test.ts": 5472, + "server/src/services/native-runtime/native-deliverable-text.test.ts": 829, "server/src/services/native-runtime/native-environment-blocker.integration.test.ts": 10409, - "server/src/services/native-runtime/native-exact-resume-failure.test.ts": 729, - "server/src/services/native-runtime/native-execution-context-worker.test.ts": 3168, - "server/src/services/native-runtime/native-execution-context.test.ts": 742, - "server/src/services/native-runtime/native-execution-input.test.ts": 4490, + "server/src/services/native-runtime/native-exact-resume-failure.test.ts": 768, + "server/src/services/native-runtime/native-execution-context-worker.test.ts": 4632, + "server/src/services/native-runtime/native-execution-context.test.ts": 829, + "server/src/services/native-runtime/native-execution-input.test.ts": 8237, "server/src/services/native-runtime/native-execution-lease-batch.test.ts": 9912, - "server/src/services/native-runtime/native-execution-lease-reacquire.test.ts": 8502, - "server/src/services/native-runtime/native-execution-lease.test.ts": 7718, - "server/src/services/native-runtime/native-execution-policy-review-stage-race.test.ts": 7244, - "server/src/services/native-runtime/native-execution-policy-review-stage.test.ts": 8779, - "server/src/services/native-runtime/native-failed-run-owner-release.test.ts": 8360, + "server/src/services/native-runtime/native-execution-lease-reacquire.test.ts": 9604, + "server/src/services/native-runtime/native-execution-lease.test.ts": 7039, + "server/src/services/native-runtime/native-execution-policy-review-stage-race.test.ts": 8004, + "server/src/services/native-runtime/native-execution-policy-review-stage.test.ts": 9831, + "server/src/services/native-runtime/native-failed-run-owner-release.test.ts": 8676, "server/src/services/native-runtime/native-failed-turn-continuation.integration.test.ts": 14062, "server/src/services/native-runtime/native-failed-workspace-recovery.test.ts": 24768, - "server/src/services/native-runtime/native-failure-redaction.test.ts": 732, + "server/src/services/native-runtime/native-failure-redaction.test.ts": 740, "server/src/services/native-runtime/native-failure-write-lock-contention.integration.test.ts": 8216, - "server/src/services/native-runtime/native-finalization-reconciler-timing.test.ts": 6455, + "server/src/services/native-runtime/native-finalization-reconciler-timing.test.ts": 7117, "server/src/services/native-runtime/native-finalization-recovery-state.test.ts": 6133, - "server/src/services/native-runtime/native-github-access.test.ts": 26864, + "server/src/services/native-runtime/native-github-access.test.ts": 27618, "server/src/services/native-runtime/native-governed-wait-lost-state-continuation.integration.test.ts": 10705, - "server/src/services/native-runtime/native-harness-backup-archive.test.ts": 1080, - "server/src/services/native-runtime/native-harness-backup-cleanup.test.ts": 727, + "server/src/services/native-runtime/native-harness-backup-archive.test.ts": 1041, + "server/src/services/native-runtime/native-harness-backup-cleanup.test.ts": 881, "server/src/services/native-runtime/native-harness-backup-download-deadline.integration.test.ts": 16303, "server/src/services/native-runtime/native-harness-backup-obligations.integration.test.ts": 8992, - "server/src/services/native-runtime/native-harness-backup-publication.test.ts": 1108, - "server/src/services/native-runtime/native-harness-backup-stamp.test.ts": 814, + "server/src/services/native-runtime/native-harness-backup-publication.test.ts": 1172, + "server/src/services/native-runtime/native-harness-backup-stamp.test.ts": 1039, "server/src/services/native-runtime/native-harness-backup-storage.integration.test.ts": 52555, "server/src/services/native-runtime/native-harness-backup-throttle.integration.test.ts": 8957, + "server/src/services/native-runtime/native-harness-backup-upload-deadline.integration.test.ts": 10256, "server/src/services/native-runtime/native-harness-filesystem-independence-continuation.integration.test.ts": 9813, "server/src/services/native-runtime/native-harness-filesystem-independence.integration.test.ts": 98077, "server/src/services/native-runtime/native-harness-online-preservation.integration.test.ts": 40303, - "server/src/services/native-runtime/native-harness-original-volume.test.ts": 761, + "server/src/services/native-runtime/native-harness-original-volume.test.ts": 984, "server/src/services/native-runtime/native-human-self-handoff.test.ts": 8019, "server/src/services/native-runtime/native-idle-sleep-continuation.integration.test.ts": 12300, - "server/src/services/native-runtime/native-ingress-bootstrap-retry.integration.test.ts": 73631, - "server/src/services/native-runtime/native-maintenance-no-launch.test.ts": 1532, - "server/src/services/native-runtime/native-permission-decline.test.ts": 3219, - "server/src/services/native-runtime/native-permission-projection.test.ts": 7799, - "server/src/services/native-runtime/native-plan-wait-receipts.test.ts": 727, - "server/src/services/native-runtime/native-plan-wait.test.ts": 7632, - "server/src/services/native-runtime/native-plugin-workspace-finalization.test.ts": 967, - "server/src/services/native-runtime/native-post-result-failure.test.ts": 1776, + "server/src/services/native-runtime/native-ingress-bootstrap-retry.integration.test.ts": 93117, + "server/src/services/native-runtime/native-maintenance-no-launch.test.ts": 1951, + "server/src/services/native-runtime/native-permission-decline.test.ts": 2805, + "server/src/services/native-runtime/native-permission-projection.test.ts": 7780, + "server/src/services/native-runtime/native-plan-wait-receipts.test.ts": 1055, + "server/src/services/native-runtime/native-plan-wait.test.ts": 9112, + "server/src/services/native-runtime/native-plugin-workspace-finalization.test.ts": 818, + "server/src/services/native-runtime/native-post-result-failure.test.ts": 2172, "server/src/services/native-runtime/native-preserved-monitor-wait.test.ts": 49316, - "server/src/services/native-runtime/native-provider-artifact-capture-confinement.test.ts": 3137, - "server/src/services/native-runtime/native-provider-artifact-capture.test.ts": 2369, - "server/src/services/native-runtime/native-provider-artifact-gate.test.ts": 3784, + "server/src/services/native-runtime/native-provider-artifact-capture-confinement.test.ts": 3600, + "server/src/services/native-runtime/native-provider-artifact-capture.test.ts": 3163, + "server/src/services/native-runtime/native-provider-artifact-gate.test.ts": 3738, "server/src/services/native-runtime/native-provider-capacity.integration.test.ts": 16101, "server/src/services/native-runtime/native-provider-failure.integration.test.ts": 10393, - "server/src/services/native-runtime/native-provider-failure.test.ts": 1557, - "server/src/services/native-runtime/native-provider-limit-cooldown.integration.test.ts": 2728, + "server/src/services/native-runtime/native-provider-failure.test.ts": 1709, + "server/src/services/native-runtime/native-provider-limit-cooldown.integration.test.ts": 2749, "server/src/services/native-runtime/native-provider-overload.integration.test.ts": 9905, "server/src/services/native-runtime/native-provider-pack-admission.test.ts": 11771, - "server/src/services/native-runtime/native-provider-turn-wait.test.ts": 5879, + "server/src/services/native-runtime/native-provider-turn-wait.test.ts": 4306, + "server/src/services/native-runtime/native-pull-request-completion.test.ts": 8151, "server/src/services/native-runtime/native-question-bridge.test.ts": 44675, - "server/src/services/native-runtime/native-reconciliation-timing.test.ts": 854, + "server/src/services/native-runtime/native-reconciliation-timing.test.ts": 900, "server/src/services/native-runtime/native-recoverable-lost-turn.integration.test.ts": 5815, "server/src/services/native-runtime/native-recovered-owner-followup.test.ts": 20680, "server/src/services/native-runtime/native-recovery-preparation-failure.test.ts": 6054, "server/src/services/native-runtime/native-recovery-usage-delivery.test.ts": 6172, "server/src/services/native-runtime/native-remote-retry-admission.test.ts": 21484, - "server/src/services/native-runtime/native-replacement-evidence.test.ts": 710, + "server/src/services/native-runtime/native-replacement-evidence.test.ts": 835, "server/src/services/native-runtime/native-response-publication-retry.test.ts": 21924, - "server/src/services/native-runtime/native-restart-recovery-isolation.test.ts": 10160, + "server/src/services/native-runtime/native-restart-recovery-isolation.test.ts": 7932, "server/src/services/native-runtime/native-restart-recovery.test.ts": 6957, "server/src/services/native-runtime/native-retired-backup-source.integration.test.ts": 7163, - "server/src/services/native-runtime/native-review-participant.test.ts": 2189, - "server/src/services/native-runtime/native-review-prompt.test.ts": 915, - "server/src/services/native-runtime/native-routine-status.test.ts": 8773, - "server/src/services/native-runtime/native-run-coordinator-store-intake.test.ts": 6721, - "server/src/services/native-runtime/native-run-failure-explanation.test.ts": 1908, - "server/src/services/native-runtime/native-run-finalizer-telemetry.test.ts": 12821, + "server/src/services/native-runtime/native-review-participant.test.ts": 1912, + "server/src/services/native-runtime/native-review-prompt.test.ts": 551, + "server/src/services/native-runtime/native-routine-status.test.ts": 10645, + "server/src/services/native-runtime/native-run-coordinator-store-intake.test.ts": 6102, + "server/src/services/native-runtime/native-run-failure-explanation.test.ts": 1949, + "server/src/services/native-runtime/native-run-finalizer-telemetry.test.ts": 14292, "server/src/services/native-runtime/native-run-log-recovery.test.ts": 4775, - "server/src/services/native-runtime/native-run-log-watermark.test.ts": 10432, - "server/src/services/native-runtime/native-run-trace-context.test.ts": 1925, - "server/src/services/native-runtime/native-run-trace.test.ts": 2150, - "server/src/services/native-runtime/native-run-wake-anchor.integration.test.ts": 3132, - "server/src/services/native-runtime/native-run-wake-anchor.test.ts": 2452, - "server/src/services/native-runtime/native-runner-attachment-staging.test.ts": 6324, - "server/src/services/native-runtime/native-runner-checkpoint-authority.integration.test.ts": 8282, - "server/src/services/native-runtime/native-runner-checkpoint-retirement.test.ts": 734, - "server/src/services/native-runtime/native-runner-checkpoint-save.test.ts": 4730, - "server/src/services/native-runtime/native-runner-execution-driver.test.ts": 1523, + "server/src/services/native-runtime/native-run-log-watermark.test.ts": 11701, + "server/src/services/native-runtime/native-run-payload-too-large.test.ts": 6236, + "server/src/services/native-runtime/native-run-trace-context.test.ts": 2069, + "server/src/services/native-runtime/native-run-trace.test.ts": 2063, + "server/src/services/native-runtime/native-run-wake-anchor.integration.test.ts": 2861, + "server/src/services/native-runtime/native-run-wake-anchor.test.ts": 1924, + "server/src/services/native-runtime/native-runner-attachment-staging.test.ts": 7138, + "server/src/services/native-runtime/native-runner-checkpoint-authority.integration.test.ts": 7776, + "server/src/services/native-runtime/native-runner-checkpoint-retirement.test.ts": 861, + "server/src/services/native-runtime/native-runner-checkpoint-save.test.ts": 4639, + "server/src/services/native-runtime/native-runner-execution-driver.test.ts": 2097, "server/src/services/native-runtime/native-runner-file-handoff.test.ts": 10846, - "server/src/services/native-runtime/native-runner-ownership.test.ts": 2881, + "server/src/services/native-runtime/native-runner-ownership.test.ts": 2963, "server/src/services/native-runtime/native-runner-recovery-contract.test.ts": 769, "server/src/services/native-runtime/native-runner-restart-checkpoint-cost.integration.test.ts": 187000, "server/src/services/native-runtime/native-runner-restart-diskless.integration.test.ts": 172000, @@ -1768,146 +1847,158 @@ "server/src/services/native-runtime/native-runner-restart-preparation.integration.test.ts": 155000, "server/src/services/native-runtime/native-runner-restart-recovery.integration.test.ts": 51000, "server/src/services/native-runtime/native-safe-replacement.test.ts": 61717, + "server/src/services/native-runtime/native-sandbox-disk-full.test.ts": 7211, "server/src/services/native-runtime/native-scheduled-resume-continuation.integration.test.ts": 8229, - "server/src/services/native-runtime/native-scheduled-resume-lock.test.ts": 6627, - "server/src/services/native-runtime/native-session-diagnostics.test.ts": 2627, + "server/src/services/native-runtime/native-scheduled-resume-lock.test.ts": 7536, + "server/src/services/native-runtime/native-session-diagnostics.test.ts": 2121, "server/src/services/native-runtime/native-session-executor.test.ts": 145454, "server/src/services/native-runtime/native-session-handoff.test.ts": 6818, - "server/src/services/native-runtime/native-session-resume-projection.test.ts": 7170, - "server/src/services/native-runtime/native-session-resume.test.ts": 18920, + "server/src/services/native-runtime/native-session-resume-projection.test.ts": 7997, + "server/src/services/native-runtime/native-session-resume.test.ts": 25545, "server/src/services/native-runtime/native-session-resumption-binding.test.ts": 13387, - "server/src/services/native-runtime/native-session-root-entries.test.ts": 769, + "server/src/services/native-runtime/native-session-root-entries.test.ts": 752, "server/src/services/native-runtime/native-skill-library-tools.integration.test.ts": 12497, - "server/src/services/native-runtime/native-skill-test-scope.test.ts": 12812, - "server/src/services/native-runtime/native-skill-test-status.test.ts": 7211, - "server/src/services/native-runtime/native-speed-budgets.test.ts": 1950, - "server/src/services/native-runtime/native-ssh-command-runner.test.ts": 6124, + "server/src/services/native-runtime/native-skill-test-scope.test.ts": 16830, + "server/src/services/native-runtime/native-skill-test-status.test.ts": 8527, + "server/src/services/native-runtime/native-speed-budgets.test.ts": 2080, + "server/src/services/native-runtime/native-ssh-command-runner.test.ts": 4822, "server/src/services/native-runtime/native-staged-attachment-recovery.test.ts": 7781, - "server/src/services/native-runtime/native-stale-owner-completion.test.ts": 7649, + "server/src/services/native-runtime/native-stale-owner-completion.test.ts": 9826, "server/src/services/native-runtime/native-startup-rejected-retry.integration.test.ts": 9672, "server/src/services/native-runtime/native-startup-retry.integration.test.ts": 14172, "server/src/services/native-runtime/native-stop-accounting.integration.test.ts": 8429, - "server/src/services/native-runtime/native-task-session-publication.test.ts": 7352, - "server/src/services/native-runtime/native-terminal-status-projection.test.ts": 9374, + "server/src/services/native-runtime/native-task-session-publication.test.ts": 8607, + "server/src/services/native-runtime/native-terminal-status-projection.test.ts": 10837, "server/src/services/native-runtime/native-tool-receipt-limit.integration.test.ts": 10117, - "server/src/services/native-runtime/native-tool-trace.test.ts": 2639, - "server/src/services/native-runtime/native-usage-accounting.test.ts": 1136, - "server/src/services/native-runtime/native-usage-delivery.integration.test.ts": 48647, - "server/src/services/native-runtime/native-warm-capability.test.ts": 3676, - "server/src/services/native-runtime/native-warm-checkpoint-ownership.integration.test.ts": 49030, - "server/src/services/native-runtime/native-warm-successor-runner-release.integration.test.ts": 9481, + "server/src/services/native-runtime/native-tool-trace.test.ts": 3082, + "server/src/services/native-runtime/native-usage-accounting.test.ts": 1543, + "server/src/services/native-runtime/native-usage-delivery.integration.test.ts": 52391, + "server/src/services/native-runtime/native-warm-capability.test.ts": 3054, + "server/src/services/native-runtime/native-warm-checkpoint-ownership.integration.test.ts": 51009, + "server/src/services/native-runtime/native-warm-successor-runner-release.integration.test.ts": 10307, "server/src/services/native-runtime/native-warm-transition-restart.integration.test.ts": 2492, - "server/src/services/native-runtime/native-workspace-best-effort.test.ts": 1893, + "server/src/services/native-runtime/native-workspace-best-effort.test.ts": 2238, "server/src/services/native-runtime/native-workspace-export-resume.live.test.ts": 2865, "server/src/services/native-runtime/native-workspace-export-retry.test.ts": 22367, - "server/src/services/native-runtime/native-workspace-finalization-supersession.test.ts": 6795, + "server/src/services/native-runtime/native-workspace-failure-write-deadlock.integration.test.ts": 8106, + "server/src/services/native-runtime/native-workspace-finalization-supersession.test.ts": 7796, "server/src/services/native-runtime/native-workspace-finalizer-failure.test.ts": 7494, "server/src/services/native-runtime/native-workspace-finalizer.test.ts": 22571, - "server/src/services/native-runtime/native-workspace-lock-keepalive.test.ts": 626, + "server/src/services/native-runtime/native-workspace-lock-keepalive.test.ts": 788, + "server/src/services/native-runtime/native-workspace-migration.test.ts": 2106, "server/src/services/native-runtime/native-workspace-owner-restart-recovery.test.ts": 8020, - "server/src/services/native-runtime/native-workspace-platform-proof.test.ts": 1605, + "server/src/services/native-runtime/native-workspace-platform-proof.test.ts": 2156, "server/src/services/native-runtime/native-workspace-queued-wake-recovery.test.ts": 6366, "server/src/services/native-runtime/native-workspace-reconstruction.test.ts": 50395, - "server/src/services/native-runtime/native-workspace-warm-reuse.test.ts": 8404, + "server/src/services/native-runtime/native-workspace-warm-reuse.test.ts": 9421, "server/src/services/native-runtime/off-loop-file-work.test.ts": 24764, "server/src/services/native-runtime/paperclip-control-plane-port.test.ts": 43404, - "server/src/services/native-runtime/paperclip-control-plane-timing.test.ts": 5089, + "server/src/services/native-runtime/paperclip-control-plane-timing.test.ts": 7019, "server/src/services/native-runtime/paperclip-runner-real-server.integration.test.ts": 2492, - "server/src/services/native-runtime/paperclip-runner-tool-authority.test.ts": 34019, - "server/src/services/native-runtime/plugin-runner-credentials.test.ts": 1920, + "server/src/services/native-runtime/paperclip-runner-tool-authority.test.ts": 25186, + "server/src/services/native-runtime/plan-mode-status.test.ts": 3142, + "server/src/services/native-runtime/plugin-runner-credentials.test.ts": 1927, "server/src/services/native-runtime/plugin-runner-eviction.integration.test.ts": 312473, - "server/src/services/native-runtime/plugin-runner-probe-runner-mismatch.test.ts": 7691, - "server/src/services/native-runtime/plugin-runner-probe.test.ts": 17478, + "server/src/services/native-runtime/plugin-runner-probe-runner-mismatch.test.ts": 6945, + "server/src/services/native-runtime/plugin-runner-probe.test.ts": 27899, "server/src/services/native-runtime/plugin-runner-release-resume.integration.test.ts": 205790, - "server/src/services/native-runtime/plugin-runner-task-warm.integration.test.ts": 3229, - "server/src/services/native-runtime/plugin-runner-task.test.ts": 3630, + "server/src/services/native-runtime/plugin-runner-task-warm.integration.test.ts": 3047, + "server/src/services/native-runtime/plugin-runner-task.test.ts": 7276, "server/src/services/native-runtime/plugin-task-source-recovery.integration.test.ts": 18697, "server/src/services/native-runtime/preserved-native-response-wait.integration.test.ts": 106952, - "server/src/services/native-runtime/provider-api-placement.test.ts": 6240, + "server/src/services/native-runtime/provider-api-placement.test.ts": 7041, "server/src/services/native-runtime/provider-pack-archive.test.ts": 109677, - "server/src/services/native-runtime/provider-pack-selection-harness.test.ts": 9565, - "server/src/services/native-runtime/remote-attachment-staging.test.ts": 1693, - "server/src/services/native-runtime/remote-deliverable-file.test.ts": 1985, - "server/src/services/native-runtime/remote-launch-assets.test.ts": 2643, - "server/src/services/native-runtime/remote-mcp-relay.test.ts": 2126, + "server/src/services/native-runtime/provider-pack-selection-harness.test.ts": 10769, + "server/src/services/native-runtime/remote-attachment-staging.test.ts": 1701, + "server/src/services/native-runtime/remote-deliverable-file.test.ts": 1898, + "server/src/services/native-runtime/remote-launch-assets.test.ts": 3013, + "server/src/services/native-runtime/remote-mcp-relay.test.ts": 1944, "server/src/services/native-runtime/remote-opencode-artifacts.test.ts": 5149, - "server/src/services/native-runtime/remote-provider-pack-authority.test.ts": 2582, - "server/src/services/native-runtime/remote-provider-pack-verification.test.ts": 3567, - "server/src/services/native-runtime/remote-provider-pack.test.ts": 9463, - "server/src/services/native-runtime/remote-runner-launch-stderr.test.ts": 10257, - "server/src/services/native-runtime/remote-runner-lost-launch-ack.test.ts": 8266, + "server/src/services/native-runtime/remote-opencode-runtime.test.ts": 1802, + "server/src/services/native-runtime/remote-provider-pack-authority.test.ts": 3027, + "server/src/services/native-runtime/remote-provider-pack-verification.test.ts": 3860, + "server/src/services/native-runtime/remote-provider-pack.test.ts": 9458, + "server/src/services/native-runtime/remote-runner-disk-reserve.test.ts": 8146, + "server/src/services/native-runtime/remote-runner-launch-stderr.test.ts": 9368, + "server/src/services/native-runtime/remote-runner-lost-launch-ack.test.ts": 8060, "server/src/services/native-runtime/remote-runner-recovery-diagnostics.test.ts": 2182, "server/src/services/native-runtime/remote-runner-recovery-probe.test.ts": 1601, - "server/src/services/native-runtime/remote-runner-turn-proof.test.ts": 5366, + "server/src/services/native-runtime/remote-runner-turn-proof.test.ts": 6983, "server/src/services/native-runtime/remote-warm-session-recovery.test.ts": 8796, - "server/src/services/native-runtime/repeated-tool-failure-guard.test.ts": 6832, - "server/src/services/native-runtime/retained-provider-pack-source.test.ts": 6652, + "server/src/services/native-runtime/repeated-tool-failure-guard.test.ts": 7177, + "server/src/services/native-runtime/retained-provider-pack-source.test.ts": 8095, "server/src/services/native-runtime/runner-api-artifacts.integration.test.ts": 17044, - "server/src/services/native-runtime/runner-api-artifacts.test.ts": 3247, - "server/src/services/native-runtime/runner-api-files.test.ts": 892, - "server/src/services/native-runtime/runner-api-log-redaction.test.ts": 820, - "server/src/services/native-runtime/runner-api-response.test.ts": 847, - "server/src/services/native-runtime/runner-api-rollout.test.ts": 941, - "server/src/services/native-runtime/runner-api.integration.test.ts": 65769, - "server/src/services/native-runtime/runner-api.test.ts": 5706, - "server/src/services/native-runtime/runner-bridge-tools.test.ts": 6981, - "server/src/services/native-runtime/runner-operation-timing.test.ts": 805, - "server/src/services/native-runtime/runner-prp-coordinator.test.ts": 8471, - "server/src/services/native-runtime/runner-task-attachments.test.ts": 10798, - "server/src/services/native-runtime/runner-tool-results.test.ts": 1978, + "server/src/services/native-runtime/runner-api-artifacts.test.ts": 3563, + "server/src/services/native-runtime/runner-api-files.test.ts": 959, + "server/src/services/native-runtime/runner-api-log-redaction.test.ts": 826, + "server/src/services/native-runtime/runner-api-reference.test.ts": 2236, + "server/src/services/native-runtime/runner-api-response.test.ts": 1030, + "server/src/services/native-runtime/runner-api-responsibilities.test.ts": 3953, + "server/src/services/native-runtime/runner-api-rollout.test.ts": 897, + "server/src/services/native-runtime/runner-api.integration.test.ts": 71669, + "server/src/services/native-runtime/runner-api.test.ts": 12682, + "server/src/services/native-runtime/runner-bridge-tools.test.ts": 7016, + "server/src/services/native-runtime/runner-operation-timing.test.ts": 833, + "server/src/services/native-runtime/runner-prp-coordinator.test.ts": 7118, + "server/src/services/native-runtime/runner-task-attachments.test.ts": 11093, + "server/src/services/native-runtime/runner-tool-results.test.ts": 2050, "server/src/services/native-runtime/runtime-asset-retention.test.ts": 7656, - "server/src/services/native-runtime/runtime-context.test.ts": 6461, - "server/src/services/native-runtime/runtime-mode.test.ts": 2850, - "server/src/services/native-runtime/runtime-request-resolution-authority.test.ts": 1527, + "server/src/services/native-runtime/runtime-context.test.ts": 8104, + "server/src/services/native-runtime/runtime-mode.test.ts": 3082, + "server/src/services/native-runtime/runtime-request-resolution-authority.test.ts": 1858, "server/src/services/native-runtime/sandbox-runner-port-holders.integration.test.ts": 9151, - "server/src/services/native-runtime/sandbox-runner-port-holders.test.ts": 6524, + "server/src/services/native-runtime/sandbox-runner-port-holders.test.ts": 7498, "server/src/services/native-runtime/scheduled-resume-continuation.test.ts": 11093, - "server/src/services/native-runtime/setup-readiness.test.ts": 6542, - "server/src/services/native-runtime/status-arbiter.test.ts": 2765, - "server/src/services/native-runtime/stopped-codex-turn.test.ts": 784, - "server/src/services/native-runtime/task-creation-backlog.test.ts": 8780, + "server/src/services/native-runtime/setup-readiness.test.ts": 8494, + "server/src/services/native-runtime/status-arbiter.test.ts": 2595, + "server/src/services/native-runtime/stopped-codex-turn.test.ts": 855, + "server/src/services/native-runtime/task-creation-backlog.test.ts": 8472, "server/src/services/native-runtime/task-document-body.integration.test.ts": 16703, - "server/src/services/native-runtime/task-document-key-contract.test.ts": 7712, - "server/src/services/native-runtime/task-document-scope.integration.test.ts": 13521, + "server/src/services/native-runtime/task-document-key-contract.test.ts": 6543, + "server/src/services/native-runtime/task-document-scope.integration.test.ts": 20440, "server/src/services/native-runtime/task-monitor.integration.test.ts": 11794, - "server/src/services/native-runtime/task-reassignment.test.ts": 11250, - "server/src/services/native-runtime/tool-input-variant-admission.test.ts": 6191, + "server/src/services/native-runtime/task-reassignment.test.ts": 9564, + "server/src/services/native-runtime/tool-input-variant-admission.test.ts": 6729, "server/src/services/native-runtime/tool-receipt-recovery.integration.test.ts": 9465, - "server/src/services/native-runtime/unread-steered-messages.test.ts": 3706, + "server/src/services/native-runtime/unread-steered-messages.test.ts": 3165, "server/src/services/native-runtime/update-skill.integration.test.ts": 13979, - "server/src/services/native-runtime/volume-free-controller-state.test.ts": 941, - "server/src/services/native-runtime/warm-controller-journal.test.ts": 776, + "server/src/services/native-runtime/volume-free-controller-state.test.ts": 1013, + "server/src/services/native-runtime/warm-controller-journal.test.ts": 767, "server/src/services/object-byte-journal.test.ts": 83546, - "server/src/services/object-run-log-store-tail-read.test.ts": 3185, - "server/src/services/object-run-log-store.test.ts": 8991, + "server/src/services/object-run-log-store-tail-read.test.ts": 3216, + "server/src/services/object-run-log-store.test.ts": 9158, "server/src/services/offline-workspace-operation-reconciliation.test.ts": 8220, - "server/src/services/onboarding-first-task-assets.test.ts": 2563, - "server/src/services/onboarding-greeting.test.ts": 3260, + "server/src/services/onboarding-first-task-assets.test.ts": 2668, + "server/src/services/onboarding-greeting.test.ts": 1943, + "server/src/services/online-durable-data-migration-postgres.test.ts": 9418, + "server/src/services/online-durable-data-migration.test.ts": 8010, "server/src/services/online-legacy-workspace-recovery.test.ts": 6018, "server/src/services/online-remote-workspace-recovery-hold.test.ts": 16840, - "server/src/services/openrouter-models.test.ts": 981, - "server/src/services/owner-proof.test.ts": 1859, - "server/src/services/paperclip-cloud-connector-enrollment.test.ts": 2243, - "server/src/services/paperclip-cloud-connector-principal.test.ts": 783, - "server/src/services/paperclip-cloud-connector.test.ts": 2044, - "server/src/services/plugin-login-credential.test.ts": 939, - "server/src/services/plugin-task-panels.test.ts": 1809, - "server/src/services/presentation-ownership-read.test.ts": 11169, - "server/src/services/protected-environment-keys.test.ts": 1949, - "server/src/services/provider-fresh-workspace.test.ts": 5566, - "server/src/services/provider-quota-reset.test.ts": 733, - "server/src/services/provider-retry-after.test.ts": 4974, - "server/src/services/provider-trace-object-store.test.ts": 784, - "server/src/services/provider-trace-workspace-diff-reprojection.test.ts": 2457, - "server/src/services/public-mcp/client-mirror-ack.test.ts": 2366, - "server/src/services/public-mcp/client-mirror-envelope.test.ts": 1824, - "server/src/services/public-mcp/client-mirror-wire.test.ts": 1073, - "server/src/services/public-mcp/cloud-event-authority.test.ts": 1920, - "server/src/services/public-mcp/device-cutover.test.ts": 2289, - "server/src/services/public-mcp/device-status-key-read.test.ts": 915, - "server/src/services/public-mcp/discovery.test.ts": 2147, + "server/src/services/openrouter-models.test.ts": 797, + "server/src/services/owner-proof.test.ts": 1945, + "server/src/services/paperclip-cloud-connector-enrollment.test.ts": 2419, + "server/src/services/paperclip-cloud-connector-principal.test.ts": 822, + "server/src/services/paperclip-cloud-connector-revoke.test.ts": 2180, + "server/src/services/paperclip-cloud-connector-saved-answers.test.ts": 2199, + "server/src/services/paperclip-cloud-connector.test.ts": 4834, + "server/src/services/plugin-login-credential.test.ts": 799, + "server/src/services/plugin-task-panels.test.ts": 1988, + "server/src/services/presentation-ownership-read.test.ts": 12470, + "server/src/services/protected-environment-keys.test.ts": 1789, + "server/src/services/provider-fresh-workspace.test.ts": 6769, + "server/src/services/provider-quota-reset.test.ts": 1712, + "server/src/services/provider-retry-after.test.ts": 6342, + "server/src/services/provider-trace-object-store.test.ts": 1033, + "server/src/services/provider-trace-workspace-diff-reprojection.test.ts": 2652, + "server/src/services/public-mcp/client-mirror-ack.test.ts": 2432, + "server/src/services/public-mcp/client-mirror-envelope.test.ts": 2356, + "server/src/services/public-mcp/client-mirror-wire.test.ts": 1067, + "server/src/services/public-mcp/cloud-event-authority.test.ts": 2240, + "server/src/services/public-mcp/device-cutover.test.ts": 2205, + "server/src/services/public-mcp/device-status-key-read.test.ts": 615, + "server/src/services/public-mcp/discovery.test.ts": 1659, "server/src/services/public-mcp/events-work.test.ts": 32996, - "server/src/services/public-mcp/idle-authorization-handoffs.test.ts": 1895, + "server/src/services/public-mcp/idle-authorization-handoffs.test.ts": 2341, "server/src/services/public-mcp/idle-client-mirror.test.ts": 2297, "server/src/services/public-mcp/idle-device-status.test.ts": 2262, "server/src/services/public-mcp/idle-event-schedule.test.ts": 1615, @@ -1915,13 +2006,13 @@ "server/src/services/public-mcp/idle-subscription-proof.test.ts": 2275, "server/src/services/public-mcp/idle-transfer-schedule.test.ts": 1862, "server/src/services/public-mcp/idle-wake-proof.test.ts": 1661, - "server/src/services/public-mcp/revocation-index-sync.test.ts": 1970, - "server/src/services/public-mcp/wake-admission.test.ts": 1018, - "server/src/services/quarantined-task-retry.test.ts": 14656, - "server/src/services/question-interaction-answers.test.ts": 4315, - "server/src/services/question-pattern-validation.test.ts": 2675, - "server/src/services/queued-comment-history-read.test.ts": 7250, - "server/src/services/queued-run-dispatch-liveness.test.ts": 7279, + "server/src/services/public-mcp/revocation-index-sync.test.ts": 2102, + "server/src/services/public-mcp/wake-admission.test.ts": 824, + "server/src/services/quarantined-task-retry.test.ts": 38826, + "server/src/services/question-interaction-answers.test.ts": 4900, + "server/src/services/question-pattern-validation.test.ts": 2895, + "server/src/services/queued-comment-history-read.test.ts": 7321, + "server/src/services/queued-run-dispatch-liveness.test.ts": 6229, "server/src/services/recovery/assigned-work-invariant.test.ts": 5474, "server/src/services/recovery/issue-state-read.test.ts": 8448, "server/src/services/recovery/legacy-continuation.test.ts": 773, @@ -1929,6 +2020,7 @@ "server/src/services/recovery/native-runner-routing.test.ts": 7196, "server/src/services/recovery/provider-failure-classification.test.ts": 8303, "server/src/services/recovery/reconciliation-run-read.test.ts": 6847, + "server/src/services/recovery/restored-configuration.test.ts": 8921, "server/src/services/recovery/review-path-recovery.test.ts": 5566, "server/src/services/recovery/run-context-read.test.ts": 7429, "server/src/services/recovery/run-result-read.test.ts": 6976, @@ -1936,8 +2028,8 @@ "server/src/services/recovery/status-only-context.test.ts": 579, "server/src/services/recovery/stranded-notice.test.ts": 1926, "server/src/services/recovery/successful-run-handoff.test.ts": 1860, - "server/src/services/remote-agent-profiles.test.ts": 2016, - "server/src/services/remote-url-credentials.test.ts": 767, + "server/src/services/remote-agent-profiles.test.ts": 1949, + "server/src/services/remote-url-credentials.test.ts": 856, "server/src/services/remote-workspace-archive-worker.test.ts": 5150, "server/src/services/remote-workspace-cohort-migration.test.ts": 65834, "server/src/services/remote-workspace-migration-concurrency.test.ts": 8274, @@ -1946,6 +2038,8 @@ "server/src/services/remote-workspace-online-source.test.ts": 61675, "server/src/services/remote-workspace-original-bare-source.integration.test.ts": 40278, "server/src/services/remote-workspace-readonly-capture-budget.test.ts": 21512, + "server/src/services/remote-workspace-readonly-capture-cause.test.ts": 7019, + "server/src/services/remote-workspace-readonly-inventory-entries.test.ts": 30380, "server/src/services/remote-workspace-readonly-inventory.test.ts": 1027, "server/src/services/remote-workspace-recovery-receipt-fallback.test.ts": 11646, "server/src/services/remote-workspace-reservation.test.ts": 7014, @@ -1959,67 +2053,81 @@ "server/src/services/remote-workspace-transport.test.ts": 49930, "server/src/services/remote-workspace-unchanged-release.test.ts": 29322, "server/src/services/remote-workspaces.integration.test.ts": 134113, - "server/src/services/responsible-user-denial-run-outcomes.test.ts": 1512, - "server/src/services/retained-google-credential-cleanup.test.ts": 779, - "server/src/services/retry-workspace-continuity.test.ts": 10510, - "server/src/services/routines-formatter-cache.test.ts": 9160, - "server/src/services/run-accounting-contention.test.ts": 9693, - "server/src/services/run-cancellation.test.ts": 697, - "server/src/services/run-cost-accounting.test.ts": 23211, - "server/src/services/run-dispatch-notifications.test.ts": 807, + "server/src/services/responsible-user-denial-run-outcomes.test.ts": 2087, + "server/src/services/retained-google-credential-cleanup.test.ts": 892, + "server/src/services/retry-workspace-continuity.test.ts": 9380, + "server/src/services/reusable-sandbox-resume-retry.test.ts": 7261, + "server/src/services/routines-formatter-cache.test.ts": 9265, + "server/src/services/run-accounting-contention.test.ts": 12056, + "server/src/services/run-cancellation.test.ts": 813, + "server/src/services/run-cost-accounting.test.ts": 31578, + "server/src/services/run-dispatch-notifications.test.ts": 808, + "server/src/services/run-evidence-migration-appended.test.ts": 8787, + "server/src/services/run-evidence-migration-page.test.ts": 544, "server/src/services/run-intake-stall-watch.test.ts": 6858, - "server/src/services/run-log-store-cancellation.test.ts": 2613, - "server/src/services/run-log-store.test.ts": 3536, - "server/src/services/run-scratch.test.ts": 690, - "server/src/services/runner-environment-lifecycle.test.ts": 2598, - "server/src/services/runner-goal-control-broker.test.ts": 792, - "server/src/services/runner-goals.test.ts": 6758, + "server/src/services/run-log-store-cancellation.test.ts": 2470, + "server/src/services/run-log-store.test.ts": 3581, + "server/src/services/run-scratch.test.ts": 846, + "server/src/services/runner-environment-lifecycle.test.ts": 2844, + "server/src/services/runner-goal-control-broker.test.ts": 778, + "server/src/services/runner-goals.test.ts": 4971, "server/src/services/runner-lost-mid-turn-continuation.test.ts": 26927, - "server/src/services/runtime-accounting-totals.test.ts": 2201, - "server/src/services/runtime-exposure/broker-client.test.ts": 936, - "server/src/services/runtime-exposure/exposure-manager.test.ts": 1462, - "server/src/services/runtime-exposure/loopback-listener.test.ts": 745, - "server/src/services/runtime-exposure/port-pair.test.ts": 1478, - "server/src/services/runtime-exposure/port-reservation.test.ts": 1447, - "server/src/services/runtime-exposure/tailscale-hostname.test.ts": 765, - "server/src/services/safe-native-chat-progress.test.ts": 775, - "server/src/services/sandbox-absence-proof.test.ts": 1956, - "server/src/services/sandbox-disk-full-fault.test.ts": 1964, + "server/src/services/runtime-accounting-totals.test.ts": 2536, + "server/src/services/runtime-exposure/broker-client.test.ts": 905, + "server/src/services/runtime-exposure/exposure-manager.test.ts": 1928, + "server/src/services/runtime-exposure/loopback-listener.test.ts": 851, + "server/src/services/runtime-exposure/port-pair.test.ts": 1511, + "server/src/services/runtime-exposure/port-reservation.test.ts": 1757, + "server/src/services/runtime-exposure/tailscale-hostname.test.ts": 777, + "server/src/services/safe-native-chat-progress.test.ts": 799, + "server/src/services/sandbox-absence-proof.test.ts": 2214, + "server/src/services/sandbox-disk-full-fault.test.ts": 2028, "server/src/services/saved-bootstrap-continuation.test.ts": 11165, "server/src/services/saved-work-recovery-overdue.test.ts": 13858, - "server/src/services/saved-work-retry-eligibility.test.ts": 11506, - "server/src/services/server-replacement-interruption.test.ts": 6088, - "server/src/services/session-workspace-cwd.test.ts": 1011, - "server/src/services/setup-token-reaper.test.ts": 5332, - "server/src/services/setup-token-session.test.ts": 7573, - "server/src/services/setup-token-transport-binding.test.ts": 4616, - "server/src/services/skill-local-import-boundary.test.ts": 937, + "server/src/services/saved-work-retry-eligibility.test.ts": 13476, + "server/src/services/server-replacement-interruption.test.ts": 7543, + "server/src/services/session-workspace-cwd.test.ts": 706, + "server/src/services/setup-failure-after-work-continuation.test.ts": 15457, + "server/src/services/setup-token-reaper.test.ts": 6120, + "server/src/services/setup-token-session.test.ts": 19199, + "server/src/services/setup-token-transport-binding.test.ts": 6227, + "server/src/services/skill-local-import-boundary.test.ts": 854, "server/src/services/skill-package-recovery.test.ts": 3323, + "server/src/services/skill-package-storage-migration-postgres.test.ts": 2735, + "server/src/services/skill-package-storage-migration.test.ts": 1895, "server/src/services/skill-package-work.test.ts": 9936, "server/src/services/skill-source-idle-schedule.test.ts": 1902, "server/src/services/skill-source-sync-work.test.ts": 19860, - "server/src/services/skill-tools.test.ts": 1373, + "server/src/services/skill-tools.test.ts": 1914, "server/src/services/skill-version-cache-lock.test.ts": 7117, - "server/src/services/slack-mcp-error.test.ts": 562, + "server/src/services/slack-mcp-error.test.ts": 803, + "server/src/services/ssh-remote-workspace-heartbeat-claude.integration.test.ts": 64218, + "server/src/services/ssh-remote-workspace-heartbeat-cli.integration.test.ts": 88895, + "server/src/services/ssh-remote-workspace-heartbeat-codex.integration.test.ts": 69357, + "server/src/services/ssh-remote-workspace-heartbeat-gemini.integration.test.ts": 61817, "server/src/services/ssh-remote-workspace.integration.test.ts": 332029, "server/src/services/superseded-workspace-export-recovery.test.ts": 13089, "server/src/services/system-recovery-state.test.ts": 6030, - "server/src/services/task-interruption-presentation.test.ts": 6837, - "server/src/services/task-retry-refusal.test.ts": 6327, - "server/src/services/task-retry.test.ts": 42006, - "server/src/services/tool-access/github-access-errors.test.ts": 742, - "server/src/services/tool-access/github-default-owner.test.ts": 726, - "server/src/services/tool-action-replay-intent.test.ts": 889, - "server/src/services/tool-approval-target.test.ts": 595, - "server/src/services/tool-discovery-scheduler.test.ts": 1016, - "server/src/services/tool-profile-binding-precedence.test.ts": 758, + "server/src/services/task-interruption-presentation.test.ts": 10237, + "server/src/services/task-retry-refusal.test.ts": 6549, + "server/src/services/task-retry.test.ts": 57960, + "server/src/services/tool-access/catalog/failures.test.ts": 628, + "server/src/services/tool-access/connections/google-access-removal.test.ts": 5447, + "server/src/services/tool-access/github-access-errors.test.ts": 879, + "server/src/services/tool-access/github-default-owner.test.ts": 848, + "server/src/services/tool-access/oauth/client-settings.test.ts": 2121, + "server/src/services/tool-access/oauth/managed-connector-subject.test.ts": 2451, + "server/src/services/tool-action-replay-intent.test.ts": 790, + "server/src/services/tool-approval-target.test.ts": 910, + "server/src/services/tool-discovery-scheduler.test.ts": 784, + "server/src/services/tool-profile-binding-precedence.test.ts": 789, "server/src/services/unrecoverable-saved-work-retry.test.ts": 14901, - "server/src/services/usage-receipts-read.test.ts": 6401, - "server/src/services/vercel-connect.test.ts": 853, - "server/src/services/verified-preparation-log.test.ts": 3682, - "server/src/services/workspace-git-operation-scheduler.test.ts": 2337, + "server/src/services/usage-receipts-read.test.ts": 9040, + "server/src/services/vercel-connect.test.ts": 839, + "server/src/services/verified-preparation-log.test.ts": 3334, + "server/src/services/workspace-git-operation-scheduler.test.ts": 2675, "server/src/services/workspace-git-snapshot-streaming.test.ts": 40665, - "server/src/services/workspace-git-source-roots.test.ts": 2933, + "server/src/services/workspace-git-source-roots.test.ts": 2505, "server/src/services/workspace-recovery-admission.test.ts": 219865, "server/src/services/workspace-recovery-capture-policy.test.ts": 13345, "server/src/services/workspace-recovery-dependency-finalize.test.ts": 11990, @@ -2038,16 +2146,16 @@ "server/src/services/workspace-restore-reconciliation.test.ts": 6919, "server/src/services/workspace-runtime-exposure-backfill.test.ts": 6047, "server/src/services/workspace-runtime-exposure.test.ts": 24475, - "server/src/services/workspace-runtime-read-model.test.ts": 1829, - "server/src/services/workspace-runtime-readiness.test.ts": 6288, - "server/src/services/workspace-runtime-ready-comment.test.ts": 5962, - "server/src/shutdown.test.ts": 848, + "server/src/services/workspace-runtime-read-model.test.ts": 1899, + "server/src/services/workspace-runtime-readiness.test.ts": 6986, + "server/src/services/workspace-runtime-ready-comment.test.ts": 6533, + "server/src/shutdown.test.ts": 961, "server/src/startup-recovery-timing.test.ts": 696, - "server/src/startup-timeline.test.ts": 808, - "server/src/storage/config.test.ts": 2013, - "server/src/storage/file-crypto-pool.test.ts": 1615, - "server/src/storage/s3-credential-refresh.test.ts": 1512, - "server/src/storage/storage-unavailable.test.ts": 823, - "server/src/url-utils.test.ts": 756 + "server/src/startup-timeline.test.ts": 655, + "server/src/storage/config.test.ts": 1716, + "server/src/storage/file-crypto-pool.test.ts": 797, + "server/src/storage/s3-credential-refresh.test.ts": 1258, + "server/src/storage/storage-unavailable.test.ts": 838, + "server/src/url-utils.test.ts": 611 } } diff --git a/scripts/replay-workspace-postinstall.mjs b/scripts/replay-workspace-postinstall.mjs new file mode 100644 index 00000000000..71018d4123b --- /dev/null +++ b/scripts/replay-workspace-postinstall.mjs @@ -0,0 +1,86 @@ +#!/usr/bin/env node +import { spawn } from "node:child_process"; +import { existsSync, readFileSync } from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { discoverWorkspacePackagePaths } from "./ensure-workspace-package-links.mjs"; + +const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); + +function readPostinstall(dirPath) { + const manifestPath = path.join(dirPath, "package.json"); + if (!existsSync(manifestPath)) return null; + const manifest = JSON.parse(readFileSync(manifestPath, "utf8")); + const script = manifest.scripts?.postinstall; + return typeof script === "string" && script.trim().length > 0 ? script.trim() : null; +} + +export function findWorkspacePostinstallScripts(rootDir = repoRoot) { + const workspacePaths = discoverWorkspacePackagePaths(rootDir); + const canonicalRoot = path.resolve(rootDir); + const workspaceHooks = []; + const seenDirs = new Set([canonicalRoot]); + + for (const dirPath of Array.from(workspacePaths.values()).sort()) { + const resolved = path.resolve(dirPath); + if (seenDirs.has(resolved)) continue; + seenDirs.add(resolved); + const script = readPostinstall(resolved); + if (script) { + workspaceHooks.push({ + dir: resolved, + relDir: path.relative(canonicalRoot, resolved).split(path.sep).join("/"), + script, + }); + } + } + + const rootScript = readPostinstall(canonicalRoot); + return { + workspaceHooks, + rootHook: rootScript ? { dir: canonicalRoot, relDir: ".", script: rootScript } : null, + }; +} + +function runHook(hook, rootDir, env = process.env) { + const binDirs = [ + path.join(hook.dir, "node_modules", ".bin"), + path.join(rootDir, "node_modules", ".bin"), + ]; + const mergedPath = [...binDirs, env.PATH ?? ""].filter(Boolean).join(path.delimiter); + return new Promise((resolve, reject) => { + const child = spawn(hook.script, { + cwd: hook.dir, + env: { ...env, PATH: mergedPath }, + shell: true, + stdio: "inherit", + }); + child.once("error", (error) => { + reject(new Error(`postinstall in ${hook.relDir} failed to start: ${error.message}`)); + }); + child.once("close", (code, signal) => { + if (code === 0) resolve(); + else reject(new Error(`postinstall in ${hook.relDir} exited with ${signal ?? code}`)); + }); + }); +} + +export async function replayWorkspacePostinstalls(rootDir = repoRoot, env = process.env) { + const canonicalRoot = path.resolve(rootDir); + const { workspaceHooks, rootHook } = findWorkspacePostinstallScripts(canonicalRoot); + // Mirror `pnpm -r --if-present run postinstall && pnpm run postinstall`: + // run independent workspace hooks in parallel first, then the root hook. + await Promise.all(workspaceHooks.map((hook) => runHook(hook, canonicalRoot, env))); + if (rootHook) { + await runHook(rootHook, canonicalRoot, env); + } + return { + workspaceCount: workspaceHooks.length, + ranRoot: Boolean(rootHook), + }; +} + +const invokedPath = process.argv[1] ? path.resolve(process.argv[1]) : null; +if (invokedPath && invokedPath === fileURLToPath(import.meta.url)) { + await replayWorkspacePostinstalls(); +} diff --git a/scripts/serialized-shard-durations.json b/scripts/serialized-shard-durations.json index 06ae70c20ed..e50feb74fcf 100644 --- a/scripts/serialized-shard-durations.json +++ b/scripts/serialized-shard-durations.json @@ -3,196 +3,198 @@ "unit": "ms", "sources": [ { - "pull": 22679, - "run": 45238253588, + "run": 45440355579, "attempt": 1, - "sha": "8d513d5b1ab8fbfa2905d41be44c165b03a8a320", - "url": "https://github.com/paperclipai/paperclip/actions/runs/45238253588" + "sha": "6ca7a27481e1af45c60069a563632f2b00a008a7", + "url": "https://github.com/paperclipai/paperclip/actions/runs/45440355579" } ], "coverage": { "measured": 178, "withSetup": 178, - "inventory": 178 + "inventory": 181 }, "durations": { - "server/src/__tests__/access-routes-hidden-floor.test.ts": 7709, - "server/src/__tests__/access-routes-permissions-upgrade.test.ts": 7117, - "server/src/__tests__/activity-routes.test.ts": 21578, - "server/src/__tests__/adapter-auth-signal-routes.test.ts": 17029, - "server/src/__tests__/adapter-model-refresh-routes.test.ts": 6222, - "server/src/__tests__/adapter-routes-authz.test.ts": 19486, - "server/src/__tests__/adapter-routes.test.ts": 17941, - "server/src/__tests__/agent-action-audit-routes.test.ts": 10946, - "server/src/__tests__/agent-adapter-validation-routes.test.ts": 100370, - "server/src/__tests__/agent-cross-tenant-authz-routes.test.ts": 6553, - "server/src/__tests__/agent-device-login-routes.test.ts": 23028, - "server/src/__tests__/agent-hire-auth-inheritance-routes.test.ts": 23298, - "server/src/__tests__/agent-hire-idempotency-routes.test.ts": 8900, - "server/src/__tests__/agent-instructions-routes.test.ts": 7607, - "server/src/__tests__/agent-live-run-routes.test.ts": 85464, - "server/src/__tests__/agent-permissions-routes.test.ts": 19196, - "server/src/__tests__/agent-runner-qualification-routes.test.ts": 8686, - "server/src/__tests__/agent-secrets-routes.test.ts": 8763, - "server/src/__tests__/agent-skills-routes.test.ts": 7999, - "server/src/__tests__/agent-task-hierarchy-depth-routes.test.ts": 10309, - "server/src/__tests__/agent-test-environment-routes.test.ts": 19471, - "server/src/__tests__/ai-connection-router.test.ts": 42177, - "server/src/__tests__/announcements-routes.test.ts": 6400, - "server/src/__tests__/approval-routes-idempotency.test.ts": 5399, - "server/src/__tests__/artifact-review-document-routes.test.ts": 9350, - "server/src/__tests__/assets.test.ts": 9131, - "server/src/__tests__/auth-routes.test.ts": 7299, - "server/src/__tests__/auth-session-route.test.ts": 5366, - "server/src/__tests__/authz-company-access.test.ts": 1619, - "server/src/__tests__/authz-existence-oracle-guard.test.ts": 569, - "server/src/__tests__/authz-secret-context.test.ts": 1421, - "server/src/__tests__/board-bootstrap-routes.test.ts": 5950, - "server/src/__tests__/board-chat-route-feature-flag.test.ts": 1578, - "server/src/__tests__/board-route-statement-census.test.ts": 8356, - "server/src/__tests__/bootstrap-claim-routes.test.ts": 5323, - "server/src/__tests__/browser-use-route-scope.test.ts": 4166, - "server/src/__tests__/built-in-agent-routes.test.ts": 14052, - "server/src/__tests__/cases-routes.test.ts": 15579, - "server/src/__tests__/cli-auth-routes.test.ts": 26031, - "server/src/__tests__/cloud-routes.test.ts": 7000, - "server/src/__tests__/companies-route-cross-company-authz.test.ts": 19290, - "server/src/__tests__/companies-route-path-guard.test.ts": 4572, - "server/src/__tests__/company-branding-route.test.ts": 13767, - "server/src/__tests__/company-default-decision-owner-route.test.ts": 9824, - "server/src/__tests__/company-import-transfer-routes.test.ts": 7926, - "server/src/__tests__/company-portability-routes.test.ts": 16020, - "server/src/__tests__/company-portability.test.ts": 11437, - "server/src/__tests__/company-search-extract-routes.test.ts": 6767, - "server/src/__tests__/company-search-rate-limit-routes.test.ts": 6118, - "server/src/__tests__/company-skill-policy-routes.test.ts": 6222, - "server/src/__tests__/company-skills-import-authz-routes.test.ts": 7892, - "server/src/__tests__/company-skills-routes.test.ts": 6446, - "server/src/__tests__/company-user-directory-route.test.ts": 6130, - "server/src/__tests__/cost-data-quality-routes.test.ts": 5213, - "server/src/__tests__/costs-service.test.ts": 5309, - "server/src/__tests__/decision-queues-routes.test.ts": 6023, - "server/src/__tests__/document-annotation-routes.test.ts": 10105, - "server/src/__tests__/email-routes-provider-errors.test.ts": 5765, - "server/src/__tests__/environment-custom-image-routes.test.ts": 6238, - "server/src/__tests__/environment-instance-routes.test.ts": 6976, - "server/src/__tests__/environment-routes.test.ts": 14035, - "server/src/__tests__/environment-selection-route-guards.test.ts": 7244, - "server/src/__tests__/execution-workspace-runtime-lease-route.test.ts": 7541, - "server/src/__tests__/execution-workspaces-routes.test.ts": 5986, - "server/src/__tests__/express5-auth-wildcard.test.ts": 836, - "server/src/__tests__/external-object-routes.test.ts": 7481, - "server/src/__tests__/folders-routes.test.ts": 3807, - "server/src/__tests__/health-dev-server-token.test.ts": 7458, - "server/src/__tests__/health.test.ts": 5117, - "server/src/__tests__/heartbeat-dependency-scheduling.test.ts": 79302, + "server/src/__tests__/access-routes-hidden-floor.test.ts": 6639, + "server/src/__tests__/access-routes-permissions-upgrade.test.ts": 7741, + "server/src/__tests__/activity-routes.test.ts": 17811, + "server/src/__tests__/adapter-auth-signal-routes.test.ts": 16169, + "server/src/__tests__/adapter-model-refresh-routes.test.ts": 6016, + "server/src/__tests__/adapter-routes-authz.test.ts": 17641, + "server/src/__tests__/adapter-routes.test.ts": 6099, + "server/src/__tests__/agent-action-audit-routes.test.ts": 22215, + "server/src/__tests__/agent-adapter-validation-routes.test.ts": 97660, + "server/src/__tests__/agent-cross-tenant-authz-routes.test.ts": 6495, + "server/src/__tests__/agent-device-login-routes.test.ts": 21994, + "server/src/__tests__/agent-hire-auth-inheritance-routes.test.ts": 14680, + "server/src/__tests__/agent-hire-idempotency-routes.test.ts": 9000, + "server/src/__tests__/agent-instructions-routes.test.ts": 6166, + "server/src/__tests__/agent-live-run-routes.test.ts": 83923, + "server/src/__tests__/agent-permissions-routes.test.ts": 18181, + "server/src/__tests__/agent-runner-qualification-routes.test.ts": 7313, + "server/src/__tests__/agent-secrets-routes.test.ts": 7823, + "server/src/__tests__/agent-skills-routes.test.ts": 18777, + "server/src/__tests__/agent-task-hierarchy-depth-routes.test.ts": 8933, + "server/src/__tests__/agent-test-environment-routes.test.ts": 20840, + "server/src/__tests__/ai-connection-router.test.ts": 45967, + "server/src/__tests__/announcements-routes.test.ts": 6273, + "server/src/__tests__/approval-routes-idempotency.test.ts": 6232, + "server/src/__tests__/artifact-review-document-routes.test.ts": 10346, + "server/src/__tests__/assets.test.ts": 8425, + "server/src/__tests__/auth-routes.test.ts": 5953, + "server/src/__tests__/auth-session-route.test.ts": 5899, + "server/src/__tests__/authz-company-access.test.ts": 1875, + "server/src/__tests__/authz-existence-oracle-guard.test.ts": 635, + "server/src/__tests__/authz-secret-context.test.ts": 1538, + "server/src/__tests__/board-bootstrap-routes.test.ts": 6170, + "server/src/__tests__/board-chat-route-feature-flag.test.ts": 1470, + "server/src/__tests__/board-route-statement-census.test.ts": 7682, + "server/src/__tests__/bootstrap-claim-routes.test.ts": 5985, + "server/src/__tests__/browser-use-route-scope.test.ts": 5042, + "server/src/__tests__/built-in-agent-routes.test.ts": 14536, + "server/src/__tests__/cases-routes.test.ts": 25955, + "server/src/__tests__/cli-auth-routes.test.ts": 26802, + "server/src/__tests__/cloud-routes.test.ts": 5763, + "server/src/__tests__/companies-route-cross-company-authz.test.ts": 19729, + "server/src/__tests__/companies-route-path-guard.test.ts": 4382, + "server/src/__tests__/company-branding-route.test.ts": 11256, + "server/src/__tests__/company-default-decision-owner-route.test.ts": 11016, + "server/src/__tests__/company-import-transfer-routes.test.ts": 8458, + "server/src/__tests__/company-portability-routes.test.ts": 15373, + "server/src/__tests__/company-portability.test.ts": 10750, + "server/src/__tests__/company-search-extract-routes.test.ts": 7809, + "server/src/__tests__/company-search-rate-limit-routes.test.ts": 6535, + "server/src/__tests__/company-skill-policy-routes.test.ts": 7574, + "server/src/__tests__/company-skills-import-authz-routes.test.ts": 7772, + "server/src/__tests__/company-skills-routes.test.ts": 16144, + "server/src/__tests__/company-user-directory-route.test.ts": 6131, + "server/src/__tests__/cost-data-quality-routes.test.ts": 5430, + "server/src/__tests__/costs-service.test.ts": 5465, + "server/src/__tests__/decision-queues-routes.test.ts": 7812, + "server/src/__tests__/document-annotation-routes.test.ts": 11792, + "server/src/__tests__/email-routes-provider-errors.test.ts": 5673, + "server/src/__tests__/environment-custom-image-routes.test.ts": 5783, + "server/src/__tests__/environment-instance-routes.test.ts": 5242, + "server/src/__tests__/environment-routes.test.ts": 15517, + "server/src/__tests__/environment-selection-route-guards.test.ts": 5902, + "server/src/__tests__/execution-workspace-runtime-lease-route.test.ts": 6999, + "server/src/__tests__/execution-workspaces-routes.test.ts": 5351, + "server/src/__tests__/express5-auth-wildcard.test.ts": 738, + "server/src/__tests__/external-object-routes.test.ts": 6198, + "server/src/__tests__/folders-routes.test.ts": 5714, + "server/src/__tests__/health-dev-server-token.test.ts": 6574, + "server/src/__tests__/health.test.ts": 5679, + "server/src/__tests__/heartbeat-dependency-scheduling.test.ts": 78007, "server/src/__tests__/heartbeat-issue-liveness-escalation.test.ts": 54768, "server/src/__tests__/heartbeat-process-recovery.test.ts": 344017, - "server/src/__tests__/heartbeat-run-privacy-routes.test.ts": 25152, - "server/src/__tests__/inbox-agent-policy-routes.test.ts": 9188, - "server/src/__tests__/inbox-archive-routes.test.ts": 8268, - "server/src/__tests__/inbox-mine-routes.test.ts": 10977, - "server/src/__tests__/instance-database-backups-routes.test.ts": 6034, - "server/src/__tests__/instance-server-metrics-routes.test.ts": 16867, - "server/src/__tests__/instance-settings-routes.test.ts": 5803, - "server/src/__tests__/invite-accept-existing-member.test.ts": 6558, - "server/src/__tests__/invite-accept-gateway-defaults.test.ts": 8151, - "server/src/__tests__/invite-accept-replay.test.ts": 6489, - "server/src/__tests__/invite-create-route.test.ts": 9982, - "server/src/__tests__/invite-expiry.test.ts": 4886, - "server/src/__tests__/invite-join-manager.test.ts": 6003, - "server/src/__tests__/invite-list-route.test.ts": 5932, - "server/src/__tests__/invite-logo-route.test.ts": 5533, - "server/src/__tests__/invite-onboarding-text.test.ts": 7361, - "server/src/__tests__/invite-rate-limit-route.test.ts": 6103, - "server/src/__tests__/invite-summary-route.test.ts": 8714, - "server/src/__tests__/invite-test-resolution-route.test.ts": 6673, - "server/src/__tests__/invite-url-public-base-url.test.ts": 6521, - "server/src/__tests__/issue-access-grants-routes.test.ts": 9735, - "server/src/__tests__/issue-activity-events-routes.test.ts": 15122, - "server/src/__tests__/issue-agent-mutation-ownership-routes.test.ts": 17814, - "server/src/__tests__/issue-assigned-backlog-contract-routes.test.ts": 7165, - "server/src/__tests__/issue-assignee-invokability-routes.test.ts": 7237, - "server/src/__tests__/issue-attachment-routes.test.ts": 17644, - "server/src/__tests__/issue-blocker-diagnostics-routes.test.ts": 9650, - "server/src/__tests__/issue-chat-bootstrap-routes.test.ts": 10756, - "server/src/__tests__/issue-closed-workspace-routes.test.ts": 7089, - "server/src/__tests__/issue-comment-attribution-audit-routes.test.ts": 8446, - "server/src/__tests__/issue-comment-cancel-routes.test.ts": 6164, - "server/src/__tests__/issue-comment-reopen-routes.test.ts": 19442, - "server/src/__tests__/issue-confirm-run-stopped-routes.test.ts": 9839, - "server/src/__tests__/issue-create-deduplication-routes.test.ts": 9136, - "server/src/__tests__/issue-created-from-routes.test.ts": 7614, - "server/src/__tests__/issue-creation-source-routes.test.ts": 10770, - "server/src/__tests__/issue-dependency-wakeups-routes.test.ts": 12551, - "server/src/__tests__/issue-document-restore-routes.test.ts": 10496, - "server/src/__tests__/issue-execution-policy-routes.test.ts": 8945, - "server/src/__tests__/issue-feedback-routes.test.ts": 5778, - "server/src/__tests__/issue-identifier-routes.test.ts": 7007, - "server/src/__tests__/issue-list-assignee-filter-routes.test.ts": 27792, - "server/src/__tests__/issue-list-updatedsince-filter-routes.test.ts": 8596, - "server/src/__tests__/issue-onboarding-first-task-routes.test.ts": 14748, - "server/src/__tests__/issue-queued-comments-routes.test.ts": 99424, - "server/src/__tests__/issue-scheduled-retry-routes.test.ts": 22055, - "server/src/__tests__/issue-stale-execution-lock-routes.test.ts": 9935, - "server/src/__tests__/issue-stalled-review-decision-routes.test.ts": 17957, - "server/src/__tests__/issue-status-version-route-service.test.ts": 8577, - "server/src/__tests__/issue-subtree-diagnostics-routes.test.ts": 7841, - "server/src/__tests__/issue-summaries-routes.test.ts": 9355, - "server/src/__tests__/issue-telemetry-routes.test.ts": 10283, - "server/src/__tests__/issue-thread-interaction-routes.test.ts": 17322, - "server/src/__tests__/issue-tree-control-routes.test.ts": 6060, - "server/src/__tests__/issue-update-comment-wakeup-routes.test.ts": 7306, - "server/src/__tests__/issue-wake-diagnostics-routes.test.ts": 15170, - "server/src/__tests__/issue-watchdogs-routes.test.ts": 15822, - "server/src/__tests__/issue-workspace-command-authz.test.ts": 6275, - "server/src/__tests__/issues-checkout-wakeup.test.ts": 1065, - "server/src/__tests__/issues-goal-context-routes.test.ts": 6658, - "server/src/__tests__/issues-service.test.ts": 35882, - "server/src/__tests__/link-preview-routes.test.ts": 6145, - "server/src/__tests__/llms-routes.test.ts": 6553, - "server/src/__tests__/low-trust-red-team-routes.test.ts": 51564, + "server/src/__tests__/heartbeat-run-privacy-routes.test.ts": 28486, + "server/src/__tests__/inbox-agent-policy-routes.test.ts": 6628, + "server/src/__tests__/inbox-archive-routes.test.ts": 11396, + "server/src/__tests__/inbox-mine-routes.test.ts": 14968, + "server/src/__tests__/instance-database-backups-routes.test.ts": 4882, + "server/src/__tests__/instance-server-metrics-routes.test.ts": 15308, + "server/src/__tests__/instance-settings-routes.test.ts": 16324, + "server/src/__tests__/invite-accept-existing-member.test.ts": 5994, + "server/src/__tests__/invite-accept-gateway-defaults.test.ts": 7591, + "server/src/__tests__/invite-accept-replay.test.ts": 7498, + "server/src/__tests__/invite-create-route.test.ts": 9844, + "server/src/__tests__/invite-expiry.test.ts": 6932, + "server/src/__tests__/invite-join-manager.test.ts": 6848, + "server/src/__tests__/invite-list-route.test.ts": 5908, + "server/src/__tests__/invite-logo-route.test.ts": 5411, + "server/src/__tests__/invite-onboarding-text.test.ts": 6448, + "server/src/__tests__/invite-rate-limit-route.test.ts": 7713, + "server/src/__tests__/invite-summary-route.test.ts": 10599, + "server/src/__tests__/invite-test-resolution-route.test.ts": 7340, + "server/src/__tests__/invite-url-public-base-url.test.ts": 6951, + "server/src/__tests__/issue-access-grants-routes.test.ts": 10374, + "server/src/__tests__/issue-activity-events-routes.test.ts": 14295, + "server/src/__tests__/issue-agent-mutation-ownership-routes.test.ts": 20902, + "server/src/__tests__/issue-assigned-backlog-contract-routes.test.ts": 6256, + "server/src/__tests__/issue-assignee-invokability-routes.test.ts": 6983, + "server/src/__tests__/issue-attachment-routes.test.ts": 6170, + "server/src/__tests__/issue-blocker-diagnostics-routes.test.ts": 7132, + "server/src/__tests__/issue-chat-bootstrap-routes.test.ts": 11029, + "server/src/__tests__/issue-closed-workspace-routes.test.ts": 6547, + "server/src/__tests__/issue-comment-attribution-audit-routes.test.ts": 8661, + "server/src/__tests__/issue-comment-cancel-routes.test.ts": 6428, + "server/src/__tests__/issue-comment-reopen-routes.test.ts": 19146, + "server/src/__tests__/issue-confirm-run-stopped-routes.test.ts": 10495, + "server/src/__tests__/issue-create-deduplication-routes.test.ts": 9592, + "server/src/__tests__/issue-created-from-routes.test.ts": 7346, + "server/src/__tests__/issue-creation-source-routes.test.ts": 10757, + "server/src/__tests__/issue-dependency-wakeups-routes.test.ts": 11829, + "server/src/__tests__/issue-document-restore-routes.test.ts": 10834, + "server/src/__tests__/issue-execution-policy-routes.test.ts": 6791, + "server/src/__tests__/issue-feedback-routes.test.ts": 6080, + "server/src/__tests__/issue-identifier-routes.test.ts": 7464, + "server/src/__tests__/issue-list-assignee-filter-routes.test.ts": 19013, + "server/src/__tests__/issue-list-updatedsince-filter-routes.test.ts": 8205, + "server/src/__tests__/issue-onboarding-first-task-routes.test.ts": 17178, + "server/src/__tests__/issue-queued-comments-routes.test.ts": 127744, + "server/src/__tests__/issue-scheduled-retry-routes.test.ts": 37853, + "server/src/__tests__/issue-stale-execution-lock-routes.test.ts": 10115, + "server/src/__tests__/issue-stalled-review-decision-routes.test.ts": 9355, + "server/src/__tests__/issue-status-version-route-service.test.ts": 8442, + "server/src/__tests__/issue-subtree-diagnostics-routes.test.ts": 8416, + "server/src/__tests__/issue-summaries-routes.test.ts": 8058, + "server/src/__tests__/issue-telemetry-routes.test.ts": 8844, + "server/src/__tests__/issue-thread-interaction-routes.test.ts": 22774, + "server/src/__tests__/issue-tree-control-routes.test.ts": 5288, + "server/src/__tests__/issue-update-comment-wakeup-routes.test.ts": 9045, + "server/src/__tests__/issue-wake-diagnostics-routes.test.ts": 8382, + "server/src/__tests__/issue-watchdogs-routes.test.ts": 15246, + "server/src/__tests__/issue-workspace-command-authz.test.ts": 7758, + "server/src/__tests__/issues-checkout-wakeup.test.ts": 497, + "server/src/__tests__/issues-goal-context-routes.test.ts": 6560, + "server/src/__tests__/issues-service.test.ts": 31680, + "server/src/__tests__/link-preview-routes.test.ts": 5601, + "server/src/__tests__/llms-routes.test.ts": 6340, + "server/src/__tests__/low-trust-red-team-routes.test.ts": 49466, "server/src/__tests__/maintenance-server-routes.test.ts": 276429, - "server/src/__tests__/managed-agent-profile-routes-authz.test.ts": 6245, - "server/src/__tests__/multilingual-issues-routes.test.ts": 8186, - "server/src/__tests__/muse-qualification-routes.test.ts": 5311, - "server/src/__tests__/native-child-task-read-routes.test.ts": 8905, - "server/src/__tests__/onboarding-seed-route.test.ts": 7929, - "server/src/__tests__/openapi-routes.test.ts": 19600, - "server/src/__tests__/openclaw-invite-prompt-route.test.ts": 6484, - "server/src/__tests__/opencode-local-adapter-environment.test.ts": 7463, - "server/src/__tests__/openrouter-attribution.test.ts": 1697, - "server/src/__tests__/openrouter-catalog-error-handler.test.ts": 3983, - "server/src/__tests__/permissions-upgrade-boundary-routes.test.ts": 8104, - "server/src/__tests__/plugin-install-route-security.test.ts": 8271, - "server/src/__tests__/plugin-routes-authz.test.ts": 14858, - "server/src/__tests__/plugin-scoped-api-routes.test.ts": 13393, - "server/src/__tests__/project-decision-owner-route.test.ts": 10045, - "server/src/__tests__/project-goal-telemetry-routes.test.ts": 5925, - "server/src/__tests__/project-routes-env.test.ts": 8038, - "server/src/__tests__/project-workspace-managed-sandbox-routes.test.ts": 9106, - "server/src/__tests__/projects-list-archived-routes.test.ts": 7611, - "server/src/__tests__/redaction.test.ts": 654, - "server/src/__tests__/resource-memberships-routes.test.ts": 7719, - "server/src/__tests__/routine-document-annotation-routes.test.ts": 6388, - "server/src/__tests__/routines-e2e.test.ts": 42624, - "server/src/__tests__/routines-routes.test.ts": 25919, - "server/src/__tests__/secret-proposals-routes.test.ts": 34207, - "server/src/__tests__/secrets-routes-claude-oauth-service.test.ts": 8198, - "server/src/__tests__/secrets-routes.test.ts": 6718, - "server/src/__tests__/sidebar-preferences-routes.test.ts": 7854, - "server/src/__tests__/skill-update-diff-routes.test.ts": 7253, - "server/src/__tests__/subscription-routes.test.ts": 5517, - "server/src/__tests__/summary-slot-routes.test.ts": 13804, - "server/src/__tests__/tailscale-connection-routes.test.ts": 5215, - "server/src/__tests__/task-connector-read-routes.test.ts": 10338, - "server/src/__tests__/task-title-routes.test.ts": 25360, - "server/src/__tests__/teams-catalog-routes.test.ts": 12771, - "server/src/__tests__/user-profile-routes.test.ts": 6490, - "server/src/__tests__/workspace-command-authz.test.ts": 668, - "server/src/__tests__/workspace-preferences-routes.test.ts": 5757, - "server/src/__tests__/workspace-restore-repair-route.test.ts": 9418, - "server/src/__tests__/workspace-runtime-routes-authz.test.ts": 6436, - "server/src/__tests__/workspace-runtime-service-authz.test.ts": 2659 + "server/src/__tests__/managed-agent-profile-routes-authz.test.ts": 5362, + "server/src/__tests__/multilingual-issues-routes.test.ts": 7327, + "server/src/__tests__/muse-qualification-routes.test.ts": 5898, + "server/src/__tests__/native-child-task-read-routes.test.ts": 7995, + "server/src/__tests__/onboarding-chat-route.test.ts": 9811, + "server/src/__tests__/onboarding-seed-route.test.ts": 9784, + "server/src/__tests__/openapi-routes.test.ts": 17551, + "server/src/__tests__/openclaw-invite-prompt-route.test.ts": 5307, + "server/src/__tests__/opencode-local-adapter-environment.test.ts": 7743, + "server/src/__tests__/openrouter-attribution.test.ts": 1044, + "server/src/__tests__/openrouter-catalog-error-handler.test.ts": 4947, + "server/src/__tests__/permissions-upgrade-boundary-routes.test.ts": 9124, + "server/src/__tests__/plugin-install-route-security.test.ts": 6716, + "server/src/__tests__/plugin-routes-authz.test.ts": 5222, + "server/src/__tests__/plugin-scoped-api-routes.test.ts": 4743, + "server/src/__tests__/project-decision-owner-route.test.ts": 8979, + "server/src/__tests__/project-goal-telemetry-routes.test.ts": 6838, + "server/src/__tests__/project-routes-env.test.ts": 7737, + "server/src/__tests__/project-workspace-managed-sandbox-routes.test.ts": 10278, + "server/src/__tests__/projects-list-archived-routes.test.ts": 8670, + "server/src/__tests__/redaction.test.ts": 789, + "server/src/__tests__/resource-memberships-routes.test.ts": 8448, + "server/src/__tests__/responsibility-summaries-routes.test.ts": 7816, + "server/src/__tests__/routine-document-annotation-routes.test.ts": 6516, + "server/src/__tests__/routines-e2e.test.ts": 44403, + "server/src/__tests__/routines-routes.test.ts": 16810, + "server/src/__tests__/secret-proposals-routes.test.ts": 37160, + "server/src/__tests__/secrets-routes-claude-oauth-service.test.ts": 18513, + "server/src/__tests__/secrets-routes.test.ts": 9060, + "server/src/__tests__/sidebar-preferences-routes.test.ts": 7858, + "server/src/__tests__/skill-update-diff-routes.test.ts": 7339, + "server/src/__tests__/subscription-routes.test.ts": 5335, + "server/src/__tests__/summary-slot-routes.test.ts": 13724, + "server/src/__tests__/tailscale-connection-routes.test.ts": 5240, + "server/src/__tests__/task-connector-read-routes.test.ts": 9301, + "server/src/__tests__/task-title-routes.test.ts": 23892, + "server/src/__tests__/teams-catalog-routes.test.ts": 9516, + "server/src/__tests__/tool-policy-list-authz.integration.test.ts": 15182, + "server/src/__tests__/user-profile-routes.test.ts": 6524, + "server/src/__tests__/workspace-command-authz.test.ts": 688, + "server/src/__tests__/workspace-preferences-routes.test.ts": 6332, + "server/src/__tests__/workspace-restore-repair-route.test.ts": 10409, + "server/src/__tests__/workspace-runtime-routes-authz.test.ts": 5944, + "server/src/__tests__/workspace-runtime-service-authz.test.ts": 2669 } } diff --git a/scripts/typecheck-test-programs.mjs b/scripts/typecheck-test-programs.mjs index ef03bb1a969..837196824ab 100644 --- a/scripts/typecheck-test-programs.mjs +++ b/scripts/typecheck-test-programs.mjs @@ -30,11 +30,43 @@ export const PROVIDER_WORKSPACE = "scripts/typecheck-sandbox-providers"; export function defaultConcurrency({ cpus = availableParallelism(), totalMemoryBytes = totalmem() } = {}) { const memGiB = totalMemoryBytes / 1024 ** 3; if (cpus <= 2 || memGiB < 12) return 1; - if (cpus <= 4) return 2; - if (memGiB < 24) return Math.min(3, cpus); + if (cpus <= 4) return 3; + if (memGiB < 24) return Math.min(4, cpus); return Math.min(4, cpus); } +// Measured CI durations (seconds, run 45440355579 / 45444347449) so concurrent +// execution starts the heaviest programs first instead of leaving 26s tails at the end. +export const PROGRAM_DURATION_WEIGHTS = { + "tests/tsconfig.playwright.json": 26.3, + "packages/paperclip-runner/tsconfig.test.json": 25.9, + "packages/db/tsconfig.test.json": 23.7, + "packages/paperclip-runner/tsconfig.browser.test.json": 9.6, + "packages/paperclip-runner/tsconfig.surfaces.test.json": 8.8, + "packages/plugins/sandbox-providers/daytona/tsconfig.test.json": 7.5, + "tests/runner-acceptance/tsconfig.json": 7.3, + "packages/plugins/plugin-workspace-diff/tsconfig.test.json": 7.2, + "packages/plugins/sdk/tsconfig.test.json": 6.8, + "packages/plugins/sandbox-providers/kubernetes/tsconfig.test.json": 6.6, + "packages/plugins/sandbox-providers/e2b/tsconfig.test.json": 5.7, + "packages/plugins/sandbox-providers/exe-dev/tsconfig.test.json": 5.6, + "packages/plugins/sandbox-providers/modal/tsconfig.test.json": 4.4, + "packages/plugins/sandbox-providers/createos/tsconfig.test.json": 4.2, + "packages/plugins/sandbox-providers/novita/tsconfig.test.json": 3.9, + "packages/plugins/sandbox-providers/cloudflare/tsconfig.test.json": 3.8, + "packages/plugins/sandbox-providers/boxd/tsconfig.test.json": 3.7, + "packages/plugins/examples/plugin-orchestration-smoke-example/tsconfig.test.json": 1.6, + "packages/kv-demo-mcp-server/tsconfig.test.json": 1.5, + "scripts/scale-ramp/tsconfig.json": 0.4, + "packages/plugins/sandbox-providers/cloudflare/bridge-template/tsconfig.test.json": 0.4, +}; + +export function orderProgramsLpt(programs = PROGRAMS) { + return [...programs].sort( + (left, right) => (PROGRAM_DURATION_WEIGHTS[right] ?? 5) - (PROGRAM_DURATION_WEIGHTS[left] ?? 5), + ); +} + export const SANDBOX_PROVIDERS = [ "packages/plugins/sandbox-providers/boxd", "packages/plugins/sandbox-providers/cloudflare", @@ -319,11 +351,22 @@ function listTrackedFiles(root) { return result.stdout.split("\0").filter(Boolean); } +function projectCoverageConfigs(root, projects = PROJECTS) { + const hasServerDeclarations = existsSync( + path.join(root, "server", "node_modules", ".cache", "paperclip-typecheck", "tsconfig.declarations.json"), + ); + return projects.map((project) => { + const layered = `${project}/tsconfig.layers.json`; + return hasServerDeclarations && existsSync(path.join(root, layered)) ? layered : `${project}/tsconfig.json`; + }); +} + /** Returns the test files in no program, or null if a program could not be listed. */ export function checkCoverage({ root, env = process.env, programs = PROGRAMS, + projects = PROJECTS, workspaceConfigs = listWorkspaceConfigs, trackedFiles = listTrackedFiles, listFiles = listProgramFiles, @@ -332,7 +375,7 @@ export function checkCoverage({ const checkedFiles = []; // `pnpm build` and `typecheck:build-gaps` check each workspace's tsconfig.json. // scripts/typecheck-test-projects.mjs checks these same files through tsconfig.layers.json. - const projectConfigs = PROJECTS.map((project) => `${project}/tsconfig.json`); + const projectConfigs = projectCoverageConfigs(root, projects); for (const config of [...workspaceConfigs(root), ...projectConfigs, ...programs]) { const listing = listFiles(config, { cwd: root, env }); if (listing.status !== 0) { @@ -352,6 +395,7 @@ export async function checkCoverageAsync({ root, env = process.env, programs = PROGRAMS, + projects = PROJECTS, includeProviders = true, onlyFiles = null, concurrency = Math.max(1, Math.min(6, availableParallelism())), @@ -379,7 +423,7 @@ export async function checkCoverageAsync({ const providerSet = new Set(SANDBOX_PROVIDER_PROGRAMS); const coveragePrograms = includeProviders ? programs : programs.filter((program) => !providerSet.has(program)); - const projectConfigs = PROJECTS.map((project) => `${project}/tsconfig.json`); + const projectConfigs = projectCoverageConfigs(root, projects); let configs = [...workspaceConfigs(root), ...projectConfigs, ...coveragePrograms]; if (remaining) { @@ -560,7 +604,7 @@ export async function typecheckTestProgramsAsync({ const checkerArgs = Number.isInteger(checkers) && checkers >= 1 ? ["--checkers", String(checkers)] : []; let exitCode = 0; let aborted = false; - const queue = [...programs]; + const queue = orderProgramsLpt(programs); const workerCount = Math.max(1, Math.min(concurrency, queue.length)); async function worker() { while (!aborted) { diff --git a/scripts/typecheck-test-programs.test.mjs b/scripts/typecheck-test-programs.test.mjs index 218bccb9439..f3369ed9707 100644 --- a/scripts/typecheck-test-programs.test.mjs +++ b/scripts/typecheck-test-programs.test.mjs @@ -1,6 +1,6 @@ import assert from "node:assert/strict"; import { execFileSync, spawnSync } from "node:child_process"; -import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import path from "node:path"; import { test } from "node:test"; @@ -11,6 +11,7 @@ import { defaultConcurrency, findUncheckedTests, LOCKED_PROVIDERS, + orderProgramsLpt, PROGRAMS, prepareTestPrograms, PROVIDER_WORKSPACE, @@ -244,6 +245,7 @@ test("checkCoverage uses the compiler's file list, so a dropped sibling is caugh const unchecked = checkCoverage({ root, programs: [`${relative}/tsconfig.json`], + projects: [], workspaceConfigs: () => [], trackedFiles: () => [`${relative}/foo.test.ts`, `${relative}/foo.test.tsx`], }); @@ -420,7 +422,64 @@ test("checkCoverageAsync checks targeted files with early exit and skips uninsta test("defaultConcurrency scales safely with CPU count and memory", () => { const GiB = 1024 ** 3; assert.equal(defaultConcurrency({ cpus: 2, totalMemoryBytes: 8 * GiB }), 1); - assert.equal(defaultConcurrency({ cpus: 4, totalMemoryBytes: 16 * GiB }), 2); - assert.equal(defaultConcurrency({ cpus: 8, totalMemoryBytes: 16 * GiB }), 3); + assert.equal(defaultConcurrency({ cpus: 4, totalMemoryBytes: 16 * GiB }), 3); + assert.equal(defaultConcurrency({ cpus: 8, totalMemoryBytes: 16 * GiB }), 4); assert.equal(defaultConcurrency({ cpus: 8, totalMemoryBytes: 32 * GiB }), 4); }); + +test("orderProgramsLpt schedules heaviest test programs first while preserving unknown order", () => { + const ordered = orderProgramsLpt([ + "packages/plugins/sdk/tsconfig.test.json", + "packages/db/tsconfig.test.json", + "tests/tsconfig.playwright.json", + "packages/paperclip-runner/tsconfig.test.json", + ]); + assert.equal(ordered[0], "tests/tsconfig.playwright.json"); + assert.equal(ordered[1], "packages/paperclip-runner/tsconfig.test.json"); + assert.equal(ordered[2], "packages/db/tsconfig.test.json"); + assert.equal(ordered[3], "packages/plugins/sdk/tsconfig.test.json"); +}); + +test("checkCoverageAsync prefers tsconfig.layers.json for test projects when server declarations exist", async () => { + const tmpRoot = mkdtempSync(path.join(tmpdir(), "coverage-layers-")); + try { + mkdirSync(path.join(tmpRoot, "tests", "e2e"), { recursive: true }); + writeFileSync(path.join(tmpRoot, "tests", "e2e", "tsconfig.json"), "{}\n"); + writeFileSync(path.join(tmpRoot, "tests", "e2e", "tsconfig.layers.json"), "{}\n"); + + const listedWithoutDecls = []; + await checkCoverageAsync({ + root: tmpRoot, + programs: [], + projects: ["tests/e2e"], + workspaceConfigs: () => [], + trackedFiles: () => [], + listFilesAsync: async (config) => { + listedWithoutDecls.push(config); + return { status: 0, output: "", files: [] }; + }, + }); + assert.deepEqual(listedWithoutDecls, ["tests/e2e/tsconfig.json"]); + + mkdirSync(path.join(tmpRoot, "server", "node_modules", ".cache", "paperclip-typecheck"), { recursive: true }); + writeFileSync( + path.join(tmpRoot, "server", "node_modules", ".cache", "paperclip-typecheck", "tsconfig.declarations.json"), + "{}\n", + ); + const listedWithDecls = []; + await checkCoverageAsync({ + root: tmpRoot, + programs: [], + projects: ["tests/e2e"], + workspaceConfigs: () => [], + trackedFiles: () => [], + listFilesAsync: async (config) => { + listedWithDecls.push(config); + return { status: 0, output: "", files: [] }; + }, + }); + assert.deepEqual(listedWithDecls, ["tests/e2e/tsconfig.layers.json"]); + } finally { + rmSync(tmpRoot, { recursive: true, force: true }); + } +}); diff --git a/scripts/typecheck-test-projects.mjs b/scripts/typecheck-test-projects.mjs index 8748f166b2d..239574d6cb8 100644 --- a/scripts/typecheck-test-projects.mjs +++ b/scripts/typecheck-test-projects.mjs @@ -32,6 +32,23 @@ export const PROJECTS = [ "tests/speko-native", ]; +// Measured CI durations (seconds, run 45440355579 / 45444347449) used to schedule +// the slowest test projects first so they never land at the end of a lane wave. +export const PROJECT_DURATION_WEIGHTS = { + "tests/runner-e2e": 21.3, + "server/src/__tests__/helpers/maintenance": 11.0, + "tests/e2e": 10.8, + "tests/restart-chaos": 10.7, + "tests/lifecycle-baseline": 7.6, + "tests/speko-native": 5.0, +}; + +export function orderProjectsLpt(projects = PROJECTS) { + return [...projects].sort( + (left, right) => (PROJECT_DURATION_WEIGHTS[right] ?? 10) - (PROJECT_DURATION_WEIGHTS[left] ?? 10), + ); +} + const GLOBAL_PROJECT_INPUTS = new Set([ "package.json", "pnpm-lock.yaml", diff --git a/server/scripts/typecheck-layers-incremental.test.mjs b/server/scripts/typecheck-layers-incremental.test.mjs new file mode 100644 index 00000000000..06462583acb --- /dev/null +++ b/server/scripts/typecheck-layers-incremental.test.mjs @@ -0,0 +1,196 @@ +import { spawnSync } from "node:child_process"; +import { + existsSync, + mkdirSync, + mkdtempSync, + readdirSync, + rmSync, + statSync, + utimesSync, + writeFileSync, +} from "node:fs"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { afterEach, describe, expect, it } from "vitest"; +import { typecheckLayers } from "./typecheck-layers.mjs"; + +const serverRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); +const realTsc = path.join(serverRoot, "node_modules", "typescript", "bin", "tsc"); +const outputDir = (root) => path.join(root, "node_modules", ".cache", "paperclip-typecheck"); + +describe("typecheckLayers incremental cache soundness", () => { + const roots = []; + + afterEach(() => { + for (const root of roots.splice(0)) rmSync(root, { recursive: true, force: true }); + }); + + function compilerFixture() { + const root = mkdtempSync(path.join(tmpdir(), "typecheck-layers-inc-")); + roots.push(root); + mkdirSync(path.join(root, "src", "__tests__"), { recursive: true }); + writeFileSync(path.join(root, "package.json"), `${JSON.stringify({ type: "module" })}\n`); + writeFileSync( + path.join(root, "tsconfig.json"), + `${JSON.stringify({ + compilerOptions: { + target: "ES2023", + module: "NodeNext", + moduleResolution: "NodeNext", + strict: true, + skipLibCheck: true, + types: [], + }, + include: ["src"], + exclude: ["src/__tests__"], + })}\n`, + ); + writeFileSync( + path.join(root, "src", "__tests__", "tsconfig.json"), + `${JSON.stringify({ + extends: "../../tsconfig.json", + compilerOptions: { noEmit: true, rootDir: "../.." }, + include: ["."], + })}\n`, + ); + writeFileSync(path.join(root, "src", "leaf.ts"), `export const leaf = (): number => 1;\n`); + writeFileSync( + path.join(root, "src", "one.ts"), + `import { leaf } from "./leaf.js";\nimport { two } from "./two.js";\nexport const one = (n = 0): number => (n > 0 ? two(n - 1) : leaf());\n`, + ); + writeFileSync( + path.join(root, "src", "two.ts"), + `import { one } from "./one.js";\nexport const two = (n = 0): number => (n > 0 ? one(n - 1) : 1);\n`, + ); + writeFileSync( + path.join(root, "src", "route.ts"), + `import { one } from "./one.js";\nexport const route = (): number => one();\n`, + ); + writeFileSync( + path.join(root, "src", "route.test.ts"), + `import { route } from "./route.js";\nexport const routeCheck: number = route();\n`, + ); + writeFileSync( + path.join(root, "src", "__tests__", "tree.test.ts"), + `import { route } from "../route.js";\nexport const treeCheck: number = route();\n`, + ); + return root; + } + + function runReal(root, options = {}) { + const chunks = []; + const status = typecheckLayers({ + serverRoot: root, + log: () => {}, + logError: (msg) => chunks.push(`${msg}\n`), + run: (args, { cwd }) => { + const result = spawnSync(process.execPath, [realTsc, ...args, "--pretty", "false"], { + cwd, + encoding: "utf8", + }); + if (result.error) throw result.error; + chunks.push(result.stdout, result.stderr); + return { status: result.status ?? 1, signal: result.signal }; + }, + ...options, + }); + return { status, output: chunks.join("") }; + } + + function backdateDirectory(dir, ageSeconds = 3600) { + const past = new Date(Date.now() - ageSeconds * 1000); + for (const entry of readdirSync(dir, { withFileTypes: true })) { + const fullPath = path.join(dir, entry.name); + if (entry.isDirectory()) backdateDirectory(fullPath, ageSeconds); + else utimesSync(fullPath, past, past); + } + } + + it("preserves tsbuildinfo across warm runs and avoids rewriting unchanged layer configs", () => { + const root = compilerFixture(); + expect(runReal(root)).toEqual({ status: 0, output: "" }); + + const out = outputDir(root); + const buildInfos = readdirSync(out).filter((name) => name.endsWith(".tsbuildinfo")).sort(); + expect(buildInfos).toEqual( + expect.arrayContaining(["above.tsbuildinfo", "below.tsbuildinfo", "cycle.tsbuildinfo", "tests.tsbuildinfo"]), + ); + expect(buildInfos.some((name) => name.startsWith("test-tree-"))).toBe(true); + expect(existsSync(path.join(out, "layer-map.json"))).toBe(true); + + backdateDirectory(out, 3600); + const beforeMtime = statSync(path.join(out, "tsconfig.below.json")).mtimeMs; + + expect(runReal(root)).toEqual({ status: 0, output: "" }); + expect(statSync(path.join(out, "tsconfig.below.json")).mtimeMs).toBe(beforeMtime); + }, 60_000); + + it("catches export type regressions across layers and test trees even when restored cache mtimes are older", () => { + const root = compilerFixture(); + expect(runReal(root)).toEqual({ status: 0, output: "" }); + + // Simulate restoring a master cache onto a fresh git checkout whose source files are newer. + backdateDirectory(outputDir(root), 3600); + + // Change route() return type from number to string; tests + test-tree must fail. + writeFileSync( + path.join(root, "src", "route.ts"), + `import { one } from "./one.js";\nexport const route = (): string => String(one());\n`, + ); + const failed = runReal(root); + expect(failed.status).not.toBe(0); + expect(failed.output).toMatch(/route\.test\.ts.*TS2322/); + expect(failed.output).toMatch(/tree\.test\.ts.*TS2322/); + }, 60_000); + + it("prunes stale declarations for deleted source files so dangling imports fail with TS2307", () => { + const root = compilerFixture(); + writeFileSync(path.join(root, "src", "extra.ts"), `export const extra = 42;\n`); + writeFileSync( + path.join(root, "src", "route.ts"), + `import { one } from "./one.js";\nimport { extra } from "./extra.js";\nexport const route = (): number => one() + extra;\n`, + ); + expect(runReal(root)).toEqual({ status: 0, output: "" }); + expect(existsSync(path.join(outputDir(root), "dts", "extra.d.ts"))).toBe(true); + + rmSync(path.join(root, "src", "extra.ts")); + const failed = runReal(root); + expect(failed.status).not.toBe(0); + expect(existsSync(path.join(outputDir(root), "dts", "extra.d.ts"))).toBe(false); + expect(failed.output).toMatch(/route\.ts.*TS2307/); + }, 60_000); + + it("invalidates affected layers when a file moves from below to above", () => { + const root = compilerFixture(); + writeFileSync(path.join(root, "src", "mover.ts"), `export const moved = (): number => 1;\n`); + expect(runReal(root)).toEqual({ status: 0, output: "" }); + + // Adding an import on `one.ts` moves `mover.ts` from `below` into `above`. + writeFileSync( + path.join(root, "src", "mover.ts"), + `import { one } from "./one.js";\nexport const moved = (): number => one() + 1;\n`, + ); + const result = runReal(root); + expect(result).toEqual({ status: 0, output: "" }); + }, 60_000); + + it("starts clean when dts exists without layer-map.json or when clean is requested", () => { + const root = compilerFixture(); + expect(runReal(root)).toEqual({ status: 0, output: "" }); + + const out = outputDir(root); + const orphanDts = path.join(out, "dts", "phantom.d.ts"); + writeFileSync(orphanDts, "export declare const phantom: number;\n"); + rmSync(path.join(out, "layer-map.json")); + + expect(runReal(root)).toEqual({ status: 0, output: "" }); + expect(existsSync(orphanDts)).toBe(false); + expect(existsSync(path.join(out, "layer-map.json"))).toBe(true); + + const marker = path.join(out, "marker.txt"); + writeFileSync(marker, "stale"); + expect(runReal(root, { clean: true })).toEqual({ status: 0, output: "" }); + expect(existsSync(marker)).toBe(false); + }, 60_000); +}); diff --git a/server/scripts/typecheck-layers.mjs b/server/scripts/typecheck-layers.mjs index dbd7a634d72..b6581f50d07 100644 --- a/server/scripts/typecheck-layers.mjs +++ b/server/scripts/typecheck-layers.mjs @@ -25,7 +25,7 @@ // `tsconfig.layers.json` that references tsconfig.declarations.json in the output // directory. --declarations-only builds those layers and skips the test layers. // -// Usage: node scripts/typecheck-layers.mjs [--declarations-only | --layer ] [--checkers ] +// Usage: node scripts/typecheck-layers.mjs [--declarations-only | --layer ] [--checkers ] [--clean] import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import path from "node:path"; @@ -214,6 +214,10 @@ export function layerConfig(layer, { emptyLayers = new Set() } = {}) { if (layer.testTree) { return { extends: fromOutput("src/__tests__/tsconfig.json"), + compilerOptions: { + incremental: true, + tsBuildInfoFile: `./${layer.name}.tsbuildinfo`, + }, files: layer.files.map(fromOutput), include: [], references, @@ -221,7 +225,15 @@ export function layerConfig(layer, { emptyLayers = new Set() } = {}) { } const output = layer.name === "tests" - ? { composite: false, declaration: false, declarationMap: false, sourceMap: false, noEmit: true } + ? { + composite: false, + incremental: true, + tsBuildInfoFile: `./${layer.name}.tsbuildinfo`, + declaration: false, + declarationMap: false, + sourceMap: false, + noEmit: true, + } : { composite: true, declaration: true, @@ -279,11 +291,124 @@ function checkOneLayer({ serverRoot, name, checkers, run, log, logError }) { return status; } +function writeIfChanged(filePath, content) { + try { + if (existsSync(filePath) && readFileSync(filePath, "utf8") === content) return false; + } catch {} + writeFileSync(filePath, content); + return true; +} + +function sourceToDtsRelative(sourceFile) { + return sourceFile.replace(/^src\//, "").replace(/\.tsx?$/, ".d.ts"); +} + +function pruneStaleDeclarations(dtsRoot, expectedDts) { + if (!existsSync(dtsRoot)) return; + const walk = (directory, relativePrefix) => { + for (const entry of readdirSync(directory, { withFileTypes: true })) { + const fullPath = path.join(directory, entry.name); + const relative = relativePrefix ? `${relativePrefix}/${entry.name}` : entry.name; + if (entry.isDirectory()) { + walk(fullPath, relative); + try { + if (readdirSync(fullPath).length === 0) rmSync(fullPath, { recursive: true, force: true }); + } catch {} + } else if (!expectedDts.has(relative)) { + rmSync(fullPath, { force: true }); + } + } + }; + walk(dtsRoot, ""); +} + +function syncOutputDirectory({ outputRoot, layers, emptyLayers, clean }) { + const layerMapPath = path.join(outputRoot, "layer-map.json"); + const dtsRoot = path.join(outputRoot, "dts"); + let previousLayerMap = null; + + if (clean) { + rmSync(outputRoot, { recursive: true, force: true }); + } else if (existsSync(outputRoot)) { + try { + previousLayerMap = JSON.parse(readFileSync(layerMapPath, "utf8")); + if (!previousLayerMap || typeof previousLayerMap !== "object" || Array.isArray(previousLayerMap)) { + previousLayerMap = null; + } + } catch { + previousLayerMap = null; + } + // Untracked/corrupt cache without a valid layer map starts clean to prevent stale .d.ts reuse. + if (previousLayerMap === null && existsSync(dtsRoot)) { + rmSync(outputRoot, { recursive: true, force: true }); + } + } + + mkdirSync(outputRoot, { recursive: true }); + + const currentLayerMap = {}; + const expectedDts = new Set(); + for (const layer of layers) { + if (!emitsDeclarations(layer)) continue; + for (const sourceFile of layer.sourceFiles) { + currentLayerMap[sourceFile] = layer.name; + expectedDts.add(sourceToDtsRelative(sourceFile)); + } + } + + // Invalidate any layer whose file ownership shifted, and remove stale .d.ts files for deleted/moved sources. + if (previousLayerMap) { + const invalidatedLayers = new Set(); + for (const [sourceFile, prevLayer] of Object.entries(previousLayerMap)) { + const nextLayer = currentLayerMap[sourceFile]; + if (nextLayer !== prevLayer) { + rmSync(path.join(dtsRoot, sourceToDtsRelative(sourceFile)), { force: true }); + invalidatedLayers.add(prevLayer); + if (nextLayer) invalidatedLayers.add(nextLayer); + } + } + for (const layerName of invalidatedLayers) { + rmSync(path.join(outputRoot, `${layerName}.tsbuildinfo`), { force: true }); + } + } + pruneStaleDeclarations(dtsRoot, expectedDts); + + // Remove stale configs/tsbuildinfo for layers that no longer exist. + const planned = new Set(layers.map((layer) => layer.name)); + for (const entry of readdirSync(outputRoot, { withFileTypes: true })) { + if (!entry.isFile()) continue; + const configMatch = entry.name.match(/^tsconfig\.(.+)\.json$/); + if (configMatch && configMatch[1] !== "declarations" && !planned.has(configMatch[1])) { + rmSync(path.join(outputRoot, entry.name), { force: true }); + continue; + } + const buildInfoMatch = entry.name.match(/^(.+)\.tsbuildinfo$/); + if (buildInfoMatch && !planned.has(buildInfoMatch[1])) { + rmSync(path.join(outputRoot, entry.name), { force: true }); + } + } + + // Without this, the path under node_modules would make the declarations CommonJS. + writeIfChanged(path.join(outputRoot, "package.json"), `${JSON.stringify({ type: "module" })}\n`); + for (const layer of layers) { + writeIfChanged( + path.join(outputRoot, `tsconfig.${layer.name}.json`), + `${JSON.stringify(layerConfig(layer, { emptyLayers }), null, 2)}\n`, + ); + } + writeIfChanged( + path.join(outputRoot, "tsconfig.declarations.json"), + `${JSON.stringify(declarationsConfig(layers), null, 2)}\n`, + ); + writeIfChanged(layerMapPath, `${JSON.stringify(currentLayerMap, null, 2)}\n`); +} + export function typecheckLayers({ serverRoot, declarationsOnly = false, layer: only, checkers, + clean = false, run = runTsc, log = console.log, logError = console.error, @@ -294,21 +419,7 @@ export function typecheckLayers({ const emptyLayers = new Set(["below", "cycle", "above", "tests"].filter((name) => !planned.has(name))); const outputRoot = path.join(serverRoot, OUTPUT_DIRECTORY); - rmSync(outputRoot, { recursive: true, force: true }); - mkdirSync(outputRoot, { recursive: true }); - // Without this, the path under node_modules would make the declarations CommonJS. - writeFileSync(path.join(outputRoot, "package.json"), `${JSON.stringify({ type: "module" })}\n`); - for (const layer of layers) { - writeFileSync( - path.join(outputRoot, `tsconfig.${layer.name}.json`), - `${JSON.stringify(layerConfig(layer, { emptyLayers }), null, 2)}\n`, - ); - } - - writeFileSync( - path.join(outputRoot, "tsconfig.declarations.json"), - `${JSON.stringify(declarationsConfig(layers), null, 2)}\n`, - ); + syncOutputDirectory({ outputRoot, layers, emptyLayers, clean }); const extraArgs = checkerTscArgs(checkers); let exitCode = 0; @@ -332,6 +443,7 @@ export function typecheckLayers({ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { const args = process.argv.slice(2); let declarationsOnly = false; + let clean = false; let layer; let checkers; let valid = true; @@ -339,6 +451,8 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me const arg = args[i]; if (arg === "--declarations-only") { declarationsOnly = true; + } else if (arg === "--clean") { + clean = true; } else if (arg === "--layer") { layer = args[++i]; if (!layer || layer.startsWith("--")) valid = false; @@ -351,7 +465,7 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me } if (declarationsOnly && layer) valid = false; if (!valid) { - console.error("Usage: node scripts/typecheck-layers.mjs [--declarations-only | --layer ] [--checkers ]"); + console.error("Usage: node scripts/typecheck-layers.mjs [--declarations-only | --layer ] [--checkers ] [--clean]"); process.exitCode = 2; } else { process.exitCode = typecheckLayers({ @@ -359,6 +473,7 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me declarationsOnly, layer, checkers, + clean, }); } } diff --git a/server/scripts/typecheck-layers.test.mjs b/server/scripts/typecheck-layers.test.mjs index 86baa6b3a3d..58d8e41ce0b 100644 --- a/server/scripts/typecheck-layers.test.mjs +++ b/server/scripts/typecheck-layers.test.mjs @@ -180,7 +180,12 @@ describe("layerConfig", () => { { emptyLayers: new Set(["cycle"]) }, ); - expect(config.compilerOptions).toMatchObject({ composite: false, noEmit: true }); + expect(config.compilerOptions).toMatchObject({ + composite: false, + incremental: true, + tsBuildInfoFile: "./tests.tsbuildinfo", + noEmit: true, + }); expect(config.references).toEqual([{ path: "./tsconfig.below.json" }]); }); }); @@ -195,7 +200,10 @@ describe("layerConfig for the test tree", () => { }); expect(config.extends).toBe("../../../src/__tests__/tsconfig.json"); - expect(config.compilerOptions).toBeUndefined(); + expect(config.compilerOptions).toEqual({ + incremental: true, + tsBuildInfoFile: "./test-tree-0.tsbuildinfo", + }); expect(config.files).toEqual(["../../../src/__tests__/a.test.ts"]); expect(config.references).toEqual([{ path: "./tsconfig.below.json" }]); }); diff --git a/tests/e2e/agent-chat-projects-handoff.spec.ts b/tests/e2e/agent-chat-projects-handoff.spec.ts new file mode 100644 index 00000000000..eac1bac374e --- /dev/null +++ b/tests/e2e/agent-chat-projects-handoff.spec.ts @@ -0,0 +1,335 @@ +import { expect, test } from "@playwright/test"; + +import { idle, json, send, setup } from "./agent-chat.shared"; + +test.use({ trace: "retain-on-failure" }); +test.setTimeout(120_000); + +/** + * Agent chat repository selection, plan-approval handoff, shared questions, + * history pagination, and retired opt-out coverage. Split from + * agent-chat-projects.spec.ts to keep every serial E2E spec under 100s. + */ +for (const selection of [ + { ids: ["101"] }, + { ids: ["101", "102"] }, + { + ids: ["101"], + urls: [ + "https://github.com/chat-fixture/frontend", + "https://github.com/octocat/Hello-World", + ], + }, +]) + test(`authorized repository discovery and selection: ${JSON.stringify(selection)}`, async ({ + page, + request, + }) => { + const f = await setup(request); + try { + const secret = await json( + await request.post(`/api/companies/${f.company.id}/secrets`, { + data: { + name: "Deterministic GitHub credential", + value: "paperclip-e2e-repository-fixture", + }, + }), + ); + await json( + await request.post(`/api/companies/${f.company.id}/tools/connections`, { + data: { + name: "Fixture GitHub", + applicationName: "Fixture GitHub", + transport: "rest_api", + authKind: "api_key", + credentialPolicy: "shared", + status: "active", + enabled: true, + config: { + sourceTemplateKey: "github", + baseUrl: "https://api.github.com", + }, + credentialSecretRefs: [ + { + configPath: "headers.Authorization", + secretId: secret.id, + versionSelector: "latest", + }, + ], + }, + }), + ); + const repos = await json( + await request.get( + `/api/companies/${f.company.id}/project-repositories`, + ), + ); + expect(repos.repositories.map((repo: any) => repo.id).sort()).toEqual([ + "101", + "102", + ]); + await page.goto(f.route); + await send(page, { + action: "project", + name: "Selected repositories", + ...selection, + }); + await idle(request, f.chatPath); + const project = ( + await json(await request.get(`/api/companies/${f.company.id}/projects`)) + )[0]; + expect(project).toBeTruthy(); + expect( + project.workspaces + .map((w: any) => w.metadata?.githubRepositoryId) + .filter(Boolean) + .sort(), + ).toEqual(selection.ids); + expect(new Set(project.workspaces.map((w: any) => w.repoUrl)).size).toBe( + project.workspaces.length, + ); + await expect( + page.getByRole("article", { + name: "Project created: Selected repositories", + }), + ).toHaveCount(1); + } finally { + await f.restore(); + } + }); + +test("plan approval hands the preserved revision to an assigned project task", async ({ + page, + request, +}) => { + const f = await setup(request); + try { + await page.goto(f.route); + await page.getByTestId("task-chat-composer-add").click(); + await page.getByTestId("composer-add-plan").click(); + await send(page, { + action: "plan", + text: "# Approved welcome\nWrite two friendly sentences.", + approval: true, + }); + const chat = await idle(request, f.chatPath); + const original = await json( + await request.get(`/api/issues/${chat.id}/documents/plan`), + ); + expect( + await json(await request.get(`/api/companies/${f.company.id}/issues`)), + ).toHaveLength(0); + await page + .getByRole("button", { name: "Approve handoff", exact: true }) + .last() + .click(); + await idle(request, f.chatPath, 2); + await expect + .poll( + async () => + ( + await json( + await request.get(`/api/companies/${f.company.id}/issues`), + ) + ).filter((task: any) => task.status === "done").length, + { timeout: 60_000 }, + ) + .toBe(1); + // Task completion is delivered back to the chat as another real turn. + await idle(request, f.chatPath, 3); + const task = ( + await json(await request.get(`/api/companies/${f.company.id}/issues`)) + )[0]; + expect(task.parentId).toBeNull(); + expect(task.projectId).toBeTruthy(); + expect(task.assigneeAgentId).toBe(f.agent.id); + const completion = page.getByText("Delegated work completed:", { exact: false }); + await expect(completion.getByRole("link").and(page.locator( + `a[href="/${f.company.issuePrefix}/issues/${task.identifier}"]`, + ))).toBeVisible(); + const plan = await json( + await request.get(`/api/issues/${task.id}/documents/plan`), + ); + const output = await json( + await request.get(`/api/issues/${task.id}/documents/output`), + ); + expect(plan.body).toContain(original.body); + expect(output.body).toContain(plan.body); + expect( + (await json(await request.get(`/api/issues/${chat.id}/documents/plan`))) + .latestRevisionId, + ).toBe(original.latestRevisionId); + await expect( + page.getByRole("article", { + name: "Project created: Approved plan project", + }), + ).toHaveCount(1); + } finally { + await f.restore(); + } +}); + +test("shared questions resume and existing project reuse creates no project card", async ({ + page, + request, +}) => { + const f = await setup(request); + try { + const project = await json( + await request.post(`/api/companies/${f.company.id}/projects`, { + data: { name: "Garden club" }, + }), + ); + await page.goto(f.route); + await send(page, { action: "question" }); + await idle(request, f.chatPath); + await expect( + page.getByRole("radio", { name: "Garden club", exact: true }).last(), + ).toBeVisible(); + await page + .getByRole("radio", { name: "Garden club", exact: true }) + .last() + .click(); + await page + .getByRole("button", { name: "Submit answers", exact: true }) + .last() + .click(); + const chat = await idle(request, f.chatPath, 2); + await expect( + page.getByText("Reply generation 0: Clarification received.", { + exact: true, + }), + ).toBeVisible(); + await send(page, { action: "handoff", projectId: project.id }); + await idle(request, f.chatPath, 3); + await expect + .poll( + async () => + ( + await json( + await request.get(`/api/companies/${f.company.id}/issues`), + ) + ).length, + ) + .toBe(1); + const task = ( + await json(await request.get(`/api/companies/${f.company.id}/issues`)) + )[0]; + expect(task.projectId).toBe(project.id); + expect(task.parentId).toBeNull(); + expect( + await json(await request.get(`/api/companies/${f.company.id}/projects`)), + ).toHaveLength(1); + await expect( + page.getByRole("article", { name: /Project created:/ }), + ).toHaveCount(0); + const ordinaryChild = await json( + await request.post(`/api/companies/${f.company.id}/issues`, { + data: { title: "Ordinary delegation still works", parentId: task.id }, + }), + ); + expect(ordinaryChild.parentId).toBe(task.id); + // The delegated task finishes on its own and wakes the conversation with + // a completion reporting turn. Wait for that turn to post its reply and + // settle before reading status, or this read can catch the conversation + // mid-turn. + await idle(request, f.chatPath, 4); + expect( + (await json(await request.get(`/api/issues/${chat.id}`))).status, + ).toBe("in_review"); + } finally { + await f.restore(); + } +}); + +test("shared history loads older messages without replacing the latest turn", async ({ + page, + request, +}) => { + const f = await setup(request); + try { + await page.goto(f.route); + await send(page, { action: "history" }); + await idle(request, f.chatPath, 65); + await page.reload(); + await expect( + page.getByText("History message 64", { exact: true }), + ).toBeVisible(); + // Scroll the shared transcript, including its older-page sentinel. + await page.getByText("History message 64", { exact: true }).hover(); + for ( + let attempt = 0; + attempt < 5 && + !(await page.getByText("History message 00", { exact: true }).count()); + attempt++ + ) { + await page.mouse.wheel(0, -12000); + await expect + .poll(async () => page.getByText(/History message/).count()) + .toBeGreaterThan(40); + } + await expect( + page.getByText("History message 00", { exact: true }), + ).toBeAttached(); + await expect( + page.getByText("History message 64", { exact: true }), + ).toBeAttached(); + } finally { + await f.restore(); + } +}); + +test("retired Chat opt-outs do not interrupt active turns or hide existing history", async ({ + page, + request, +}) => { + const original = await json( + await request.get("/api/instance/settings/experimental"), + ); + expect(original.enableAgentChat).toBe(true); + const f = await setup(request); + try { + await page.goto(f.route); + await expect(page.getByRole("navigation", { name: "Workspace navigation" })).toBeVisible(); + await send(page, { action: "delayed" }); + await expect( + page.getByText("Turn started before feature disable.", { exact: true }), + ).toBeVisible({ timeout: 30_000 }); + const chat = await json(await request.get(f.chatPath)); + await json( + await request.patch("/api/instance/settings/experimental", { + data: { enableAgentChat: false }, + }), + ); + await expect + .poll(async () => + (await json(await request.get(`/api/issues/${chat.id}/comments`))).some( + (c: any) => c.body === "Active turn settled after feature disable.", + ), + ) + .toBe(true); + await expect + .poll( + async () => + (await json(await request.get(`/api/issues/${chat.id}`))) + .conversationState, + ) + .toBe("waiting"); + const before = ( + await json( + await request.get(`/api/companies/${f.company.id}/heartbeat-runs`), + ) + ).length; + await page.reload(); + await expect(page.getByText("Active turn settled after feature disable.", { exact: true })).toBeVisible(); + expect( + ( + await json( + await request.get(`/api/companies/${f.company.id}/heartbeat-runs`), + ) + ).length, + ).toBe(before); + } finally { + await f.restore(); + } +}); diff --git a/tests/e2e/agent-chat-projects.spec.ts b/tests/e2e/agent-chat-projects.spec.ts index cad8d985eaf..143a54dd8bc 100644 --- a/tests/e2e/agent-chat-projects.spec.ts +++ b/tests/e2e/agent-chat-projects.spec.ts @@ -353,327 +353,3 @@ for (const mode of ["Ask", "Plan"]) await f.restore(); } }); - -for (const selection of [ - { ids: ["101"] }, - { ids: ["101", "102"] }, - { - ids: ["101"], - urls: [ - "https://github.com/chat-fixture/frontend", - "https://github.com/octocat/Hello-World", - ], - }, -]) - test(`authorized repository discovery and selection: ${JSON.stringify(selection)}`, async ({ - page, - request, - }) => { - const f = await setup(request); - try { - const secret = await json( - await request.post(`/api/companies/${f.company.id}/secrets`, { - data: { - name: "Deterministic GitHub credential", - value: "paperclip-e2e-repository-fixture", - }, - }), - ); - await json( - await request.post(`/api/companies/${f.company.id}/tools/connections`, { - data: { - name: "Fixture GitHub", - applicationName: "Fixture GitHub", - transport: "rest_api", - authKind: "api_key", - credentialPolicy: "shared", - status: "active", - enabled: true, - config: { - sourceTemplateKey: "github", - baseUrl: "https://api.github.com", - }, - credentialSecretRefs: [ - { - configPath: "headers.Authorization", - secretId: secret.id, - versionSelector: "latest", - }, - ], - }, - }), - ); - const repos = await json( - await request.get( - `/api/companies/${f.company.id}/project-repositories`, - ), - ); - expect(repos.repositories.map((repo: any) => repo.id).sort()).toEqual([ - "101", - "102", - ]); - await page.goto(f.route); - await send(page, { - action: "project", - name: "Selected repositories", - ...selection, - }); - await idle(request, f.chatPath); - const project = ( - await json(await request.get(`/api/companies/${f.company.id}/projects`)) - )[0]; - expect(project).toBeTruthy(); - expect( - project.workspaces - .map((w: any) => w.metadata?.githubRepositoryId) - .filter(Boolean) - .sort(), - ).toEqual(selection.ids); - expect(new Set(project.workspaces.map((w: any) => w.repoUrl)).size).toBe( - project.workspaces.length, - ); - await expect( - page.getByRole("article", { - name: "Project created: Selected repositories", - }), - ).toHaveCount(1); - } finally { - await f.restore(); - } - }); - -test("plan approval hands the preserved revision to an assigned project task", async ({ - page, - request, -}) => { - const f = await setup(request); - try { - await page.goto(f.route); - await page.getByTestId("task-chat-composer-add").click(); - await page.getByTestId("composer-add-plan").click(); - await send(page, { - action: "plan", - text: "# Approved welcome\nWrite two friendly sentences.", - approval: true, - }); - const chat = await idle(request, f.chatPath); - const original = await json( - await request.get(`/api/issues/${chat.id}/documents/plan`), - ); - expect( - await json(await request.get(`/api/companies/${f.company.id}/issues`)), - ).toHaveLength(0); - await page - .getByRole("button", { name: "Approve handoff", exact: true }) - .last() - .click(); - await idle(request, f.chatPath, 2); - await expect - .poll( - async () => - ( - await json( - await request.get(`/api/companies/${f.company.id}/issues`), - ) - ).filter((task: any) => task.status === "done").length, - { timeout: 60_000 }, - ) - .toBe(1); - // Task completion is delivered back to the chat as another real turn. - await idle(request, f.chatPath, 3); - const task = ( - await json(await request.get(`/api/companies/${f.company.id}/issues`)) - )[0]; - expect(task.parentId).toBeNull(); - expect(task.projectId).toBeTruthy(); - expect(task.assigneeAgentId).toBe(f.agent.id); - const completion = page.getByText("Delegated work completed:", { exact: false }); - await expect(completion.getByRole("link").and(page.locator( - `a[href="/${f.company.issuePrefix}/issues/${task.identifier}"]`, - ))).toBeVisible(); - const plan = await json( - await request.get(`/api/issues/${task.id}/documents/plan`), - ); - const output = await json( - await request.get(`/api/issues/${task.id}/documents/output`), - ); - expect(plan.body).toContain(original.body); - expect(output.body).toContain(plan.body); - expect( - (await json(await request.get(`/api/issues/${chat.id}/documents/plan`))) - .latestRevisionId, - ).toBe(original.latestRevisionId); - await expect( - page.getByRole("article", { - name: "Project created: Approved plan project", - }), - ).toHaveCount(1); - } finally { - await f.restore(); - } -}); - -test("shared questions resume and existing project reuse creates no project card", async ({ - page, - request, -}) => { - const f = await setup(request); - try { - const project = await json( - await request.post(`/api/companies/${f.company.id}/projects`, { - data: { name: "Garden club" }, - }), - ); - await page.goto(f.route); - await send(page, { action: "question" }); - await idle(request, f.chatPath); - await expect( - page.getByRole("radio", { name: "Garden club", exact: true }).last(), - ).toBeVisible(); - await page - .getByRole("radio", { name: "Garden club", exact: true }) - .last() - .click(); - await page - .getByRole("button", { name: "Submit answers", exact: true }) - .last() - .click(); - const chat = await idle(request, f.chatPath, 2); - await expect( - page.getByText("Reply generation 0: Clarification received.", { - exact: true, - }), - ).toBeVisible(); - await send(page, { action: "handoff", projectId: project.id }); - await idle(request, f.chatPath, 3); - await expect - .poll( - async () => - ( - await json( - await request.get(`/api/companies/${f.company.id}/issues`), - ) - ).length, - ) - .toBe(1); - const task = ( - await json(await request.get(`/api/companies/${f.company.id}/issues`)) - )[0]; - expect(task.projectId).toBe(project.id); - expect(task.parentId).toBeNull(); - expect( - await json(await request.get(`/api/companies/${f.company.id}/projects`)), - ).toHaveLength(1); - await expect( - page.getByRole("article", { name: /Project created:/ }), - ).toHaveCount(0); - const ordinaryChild = await json( - await request.post(`/api/companies/${f.company.id}/issues`, { - data: { title: "Ordinary delegation still works", parentId: task.id }, - }), - ); - expect(ordinaryChild.parentId).toBe(task.id); - // The delegated task finishes on its own and wakes the conversation with - // a completion reporting turn. Wait for that turn to post its reply and - // settle before reading status, or this read can catch the conversation - // mid-turn. - await idle(request, f.chatPath, 4); - expect( - (await json(await request.get(`/api/issues/${chat.id}`))).status, - ).toBe("in_review"); - } finally { - await f.restore(); - } -}); - -test("shared history loads older messages without replacing the latest turn", async ({ - page, - request, -}) => { - const f = await setup(request); - try { - await page.goto(f.route); - await send(page, { action: "history" }); - await idle(request, f.chatPath, 65); - await page.reload(); - await expect( - page.getByText("History message 64", { exact: true }), - ).toBeVisible(); - // Scroll the shared transcript, including its older-page sentinel. - await page.getByText("History message 64", { exact: true }).hover(); - for ( - let attempt = 0; - attempt < 5 && - !(await page.getByText("History message 00", { exact: true }).count()); - attempt++ - ) { - await page.mouse.wheel(0, -12000); - await expect - .poll(async () => page.getByText(/History message/).count()) - .toBeGreaterThan(40); - } - await expect( - page.getByText("History message 00", { exact: true }), - ).toBeAttached(); - await expect( - page.getByText("History message 64", { exact: true }), - ).toBeAttached(); - } finally { - await f.restore(); - } -}); - -test("retired Chat opt-outs do not interrupt active turns or hide existing history", async ({ - page, - request, -}) => { - const original = await json( - await request.get("/api/instance/settings/experimental"), - ); - expect(original.enableAgentChat).toBe(true); - const f = await setup(request); - try { - await page.goto(f.route); - await expect(page.getByRole("navigation", { name: "Workspace navigation" })).toBeVisible(); - await send(page, { action: "delayed" }); - await expect( - page.getByText("Turn started before feature disable.", { exact: true }), - ).toBeVisible({ timeout: 30_000 }); - const chat = await json(await request.get(f.chatPath)); - await json( - await request.patch("/api/instance/settings/experimental", { - data: { enableAgentChat: false }, - }), - ); - await expect - .poll(async () => - (await json(await request.get(`/api/issues/${chat.id}/comments`))).some( - (c: any) => c.body === "Active turn settled after feature disable.", - ), - ) - .toBe(true); - await expect - .poll( - async () => - (await json(await request.get(`/api/issues/${chat.id}`))) - .conversationState, - ) - .toBe("waiting"); - const before = ( - await json( - await request.get(`/api/companies/${f.company.id}/heartbeat-runs`), - ) - ).length; - await page.reload(); - await expect(page.getByText("Active turn settled after feature disable.", { exact: true })).toBeVisible(); - expect( - ( - await json( - await request.get(`/api/companies/${f.company.id}/heartbeat-runs`), - ) - ).length, - ).toBe(before); - } finally { - await f.restore(); - } -}); diff --git a/tests/e2e/chat-adapters-ui-messaging-batches.spec.ts b/tests/e2e/chat-adapters-ui-messaging-batches.spec.ts new file mode 100644 index 00000000000..e4f0a7e1f40 --- /dev/null +++ b/tests/e2e/chat-adapters-ui-messaging-batches.spec.ts @@ -0,0 +1,916 @@ +import { expect, test } from "@playwright/test"; + +import { + fulfill, + json, + seedCompanyAndAgent, + bodyOf, + type Seed, +} from "./chat-adapters-ui.shared"; + +/** + * Native chat-connector batch file consent/tracking and exact failed-run + * retry coverage. Split from chat-adapters-ui-messaging.spec.ts to keep + * every E2E spec under 1,000 LOC and under the 180s per-file CI budget. + */ +test.describe("Board send file consent and batch tracking", () => { + for (const cancelledHead of [false, true]) { + test(`keeps Teams file consent anchored across reload (${cancelledHead ? "cancelled head with waiting tail" : "mixed terminal receipt and explicit dismiss"})`, async ({ + page, + request, + }, testInfo) => { + const seed = await seedCompanyAndAgent(request); + const issue = await json<{ id: string; identifier: string }>( + await request.post(`/api/companies/${seed.companyId}/issues`, { + data: { title: "Teams consent receipt", status: "backlog" }, + }), + "create consent receipt task", + ); + const endpointId = "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"; + const conversationId = "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"; + const anchor = "cccccccc-cccc-4ccc-8ccc-cccccccccccc"; + const nextAnchor = "ffffffff-ffff-4fff-8fff-ffffffffffff"; + const filePublications = [ + "dddddddd-dddd-4ddd-8ddd-dddddddddddd", + "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", + ]; + const filenames = ["consent-report.txt", "consent-notes.txt"]; + const posts: Record[] = []; + const statusReads: string[] = []; + let terminal = false; + const publicationsPath = `/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications`; + const session = await json<{ user: { id: string } }>( + await request.get("/api/auth/get-session"), + "read receipt owner", + ); + const storageKey = `paperclip:board-send:v2:${JSON.stringify([session.user.id, seed.companyId, issue.id, endpointId, conversationId])}`; + await page.route("**/api/instance/settings/experimental", (route) => + fulfill(route, { enableChatConnectors: true }), + ); + await page.route(`**/api/issues/${issue.id}/chat-binding`, (route) => + fulfill(route, { + endpointId, + conversationId, + provider: "microsoft-teams", + externalLabel: "Personal file conversation", + assignedAgentLocked: true, + }), + ); + // Only the publication API is simulated. Task creation and safe file + // uploads use this test's isolated Paperclip instance, never Teams. + await page.route(`**${publicationsPath}`, (route) => { + expect(route.request().method()).toBe("POST"); + posts.push(bodyOf(route)); + return fulfill( + route, + { + id: posts.length === 1 ? anchor : nextAnchor, + state: "pending", + attempts: 0, + }, + 201, + ); + }); + await page.route(`**${publicationsPath}/*/status`, (route) => { + expect(route.request().method()).toBe("GET"); + const path = new URL(route.request().url()).pathname; + statusReads.push(path); + if (path.endsWith(`/${nextAnchor}/status`)) { + return fulfill(route, { + publication: { id: nextAnchor, state: "pending", attempts: 0 }, + total: 1, + published: 0, + awaitingConsent: 0, + declined: 0, + expired: 0, + cancelled: 0, + settled: 0, + canDismiss: false, + }); + } + expect(path).toBe(`${publicationsPath}/${anchor}/status`); + const parts = [ + { id: anchor, state: "published", attempts: 1 }, + ...filePublications.map((id, index) => ({ + id, + state: + terminal || (cancelledHead && index === 0) + ? "cancelled" + : "awaiting_consent", + attempts: 1, + fileTransfer: { + provider: "microsoft-teams", + filename: filenames[index], + phase: terminal + ? index === 0 + ? "declined" + : "expired" + : cancelledHead && index === 0 + ? "cancelled" + : "awaiting_consent", + version: terminal ? 3 : 2, + }, + })), + ]; + return fulfill(route, { + publication: parts[1], + parts, + total: 3, + published: 1, + awaitingConsent: terminal ? 0 : cancelledHead ? 1 : 2, + declined: terminal ? 1 : 0, + expired: terminal ? 1 : 0, + cancelled: !terminal && cancelledHead ? 1 : 0, + settled: terminal ? 3 : cancelledHead ? 2 : 1, + canDismiss: terminal, + }); + }); + await page.goto(`/${seed.prefix}/issues/${issue.identifier}`); + const banner = page.getByRole("region", { + name: "External conversation", + exact: true, + }); + await banner + .getByRole("button", { name: "Send to channel", exact: true }) + .click(); + for (const name of filenames) { + await banner + .getByLabel("Attach file to channel update", { exact: true }) + .setInputFiles({ + name, + mimeType: "text/plain", + buffer: Buffer.from(`Synthetic consent fixture: ${name}.\n`), + }); + await expect( + banner.getByRole("checkbox", { name, exact: true }), + ).toBeChecked(); + await expect( + banner.getByLabel("Attach file to channel update", { exact: true }), + ).toBeEnabled(); + } + await expect( + banner.getByRole("group", { name: "Include task files", exact: true }), + ).toContainText( + "In personal Teams chats, recipients accept each file before upload. Channels and group chats receive supported images directly; other files stay on the task, with a task link or private-task notice.", + ); + await banner.screenshot({ + path: testInfo.outputPath("teams-file-guidance.png"), + }); + expect(posts).toHaveLength(0); + await banner + .getByRole("textbox", { name: "Board update", exact: true }) + .fill("Please review these two files."); + await banner + .getByRole("button", { name: "Send to channel", exact: true }) + .last() + .click(); + await expect.poll(() => posts.length).toBe(1); + expect(posts[0].attachmentIds).toHaveLength(2); + await expect( + banner.getByText( + cancelledHead + ? "1 published · 1 awaiting consent · 1 cancelled" + : "1 published · 2 awaiting consent", + { exact: true }, + ), + ).toBeVisible(); + const retainedBeforeReload = await page.evaluate( + (key) => sessionStorage.getItem(key), + storageKey, + ); + expect(JSON.parse(retainedBeforeReload!).publication.id).toBe(anchor); + const readsBeforeReload = statusReads.length; + await page.reload(); + await expect + .poll(() => statusReads.length) + .toBeGreaterThan(readsBeforeReload); + expect( + await page.evaluate((key) => sessionStorage.getItem(key), storageKey), + ).toBe(retainedBeforeReload); + expect( + statusReads.every( + (path) => path === `${publicationsPath}/${anchor}/status`, + ), + ).toBe(true); + await expect( + banner.getByRole("textbox", { name: "Board update", exact: true }), + ).toBeDisabled(); + await expect( + banner.getByLabel("Attach file to channel update", { exact: true }), + ).toBeDisabled(); + await expect( + banner + .getByRole("button", { name: "Send to channel", exact: true }) + .last(), + ).toBeDisabled(); + await expect( + banner.getByRole("button", { + name: "Dismiss delivery receipt", + exact: true, + }), + ).toHaveCount(0); + await expect( + banner.getByText( + cancelledHead + ? "Waiting for remaining file consent" + : "Waiting for file consent", + { exact: true }, + ), + ).toBeVisible(); + await expect( + banner.getByText("Channel delivery cancelled", { exact: true }), + ).toHaveCount(0); + await expect( + banner.getByText("Sent to channel", { exact: true }), + ).toHaveCount(0); + for (const name of filenames) { + await expect( + banner.getByRole("checkbox", { name, exact: true }), + ).toBeChecked(); + await expect( + banner.getByRole("checkbox", { name, exact: true }), + ).toBeDisabled(); + } + expect(posts).toHaveLength(1); + await banner.screenshot({ + path: testInfo.outputPath("consent-waiting.png"), + }); + if (cancelledHead) return; + + terminal = true; + await expect( + banner.getByText("Delivery settled with mixed outcomes", { + exact: true, + }), + ).toBeVisible({ timeout: 8_000 }); + await expect( + banner.getByText("1 published · 1 declined · 1 expired", { + exact: true, + }), + ).toBeVisible(); + await expect( + banner.getByText("consent-report.txt — Declined", { exact: true }), + ).toBeVisible(); + await expect( + banner.getByText("consent-notes.txt — Consent expired", { + exact: true, + }), + ).toBeVisible(); + await expect( + banner + .getByRole("button", { name: "Send to channel", exact: true }) + .last(), + ).toBeDisabled(); + await banner.screenshot({ + path: testInfo.outputPath("consent-mixed.png"), + }); + expect(posts).toHaveLength(1); + await banner + .getByRole("button", { name: "Dismiss delivery receipt", exact: true }) + .click(); + await expect( + banner.getByRole("textbox", { name: "Board update", exact: true }), + ).toHaveValue(""); + await expect( + banner.getByRole("textbox", { name: "Board update", exact: true }), + ).toBeEnabled(); + await expect( + banner + .getByRole("button", { name: "Send to channel", exact: true }) + .last(), + ).toBeDisabled(); + expect( + await page.evaluate((key) => sessionStorage.getItem(key), storageKey), + ).toBeNull(); + expect(posts).toHaveLength(1); + await expect( + page.getByText("Sent to channel", { exact: true }), + ).toHaveCount(0); + for (const name of filenames) { + await expect( + banner.getByRole("checkbox", { name, exact: true }), + ).not.toBeChecked(); + } + await banner + .getByRole("textbox", { name: "Board update", exact: true }) + .fill("A separate text-only update."); + expect(posts).toHaveLength(1); + await banner + .getByRole("button", { name: "Send to channel", exact: true }) + .last() + .click(); + await expect.poll(() => posts.length).toBe(2); + expect(posts[1]).toMatchObject({ + body: "A separate text-only update.", + }); + expect(posts[1]).not.toHaveProperty("attachmentIds"); + expect(posts[1].idempotencyKey).not.toBe(posts[0].idempotencyKey); + }); + } + + for (const outcome of [ + "published", + "failed", + "delivery_unknown", + "response_lost", + ] as const) { + test(`tracks the whole file batch across reload and ${outcome} without a new send identity`, async ({ + page, + request, + }) => { + const seed = await seedCompanyAndAgent(request); + const issue = await json<{ id: string; identifier: string }>( + await request.post(`/api/companies/${seed.companyId}/issues`, { + data: { title: "Board delivery refresh", status: "backlog" }, + }), + "create board-send task", + ); + const endpointId = "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"; + const conversationId = "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"; + const publicationId = "cccccccc-cccc-4ccc-8ccc-cccccccccccc"; + const attachmentId = "dddddddd-dddd-4ddd-8ddd-dddddddddddd"; + const statusPath = `/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications/${publicationId}/status`; + let sends = 0; + const submittedPayloads: Record[] = []; + let reads = 0; + let canonicalAttachmentReadsAfterSend = 0; + let canonicalCommentReadsAfterSend = 0; + let status = "streaming"; + let releaseResend!: () => void; + const resendReleased = new Promise((resolve) => { + releaseResend = resolve; + }); + await page.route("**/api/instance/settings/experimental", (route) => + fulfill(route, { enableChatConnectors: true }), + ); + await page.route(`**/api/issues/${issue.id}/chat-binding`, (route) => + fulfill(route, { + endpointId, + conversationId, + provider: "slack", + externalLabel: "#board-send-test", + assignedAgentLocked: true, + }), + ); + // The comment and attachment reads below are faked. The chat bootstrap + // would answer them from the server, so make the page read them itself. + await page.route(/\/chat-bootstrap(?:\?|$)/, (route) => route.abort()); + await page.route( + new RegExp( + `/api/issues/(${issue.id}|${issue.identifier})/(?:recent-comments|comments)(?:\\?|$)`, + ), + async (route) => { + if ( + sends && + route.request().url().includes(`/issues/${issue.identifier}/`) + ) + canonicalCommentReadsAfterSend += 1; + const comments = sends + ? [ + { + id: publicationId, + companyId: seed.companyId, + issueId: issue.id, + authorAgentId: null, + authorUserId: "local-board", + authorType: "user", + body: "Board batch must finish all files.", + createdAt: new Date().toISOString(), + updatedAt: new Date().toISOString(), + }, + ] + : []; + await fulfill(route, route.request().url().includes("/recent-comments") + ? { comments, latestCommentId: comments.at(-1)?.id ?? null, hasMore: false } + : comments); + }, + ); + await page.route( + new RegExp( + `/api/issues/(${issue.id}|${issue.identifier})/attachments$`, + ), + async (route) => { + if ( + sends && + route.request().url().includes(`/issues/${issue.identifier}/`) + ) + canonicalAttachmentReadsAfterSend += 1; + await fulfill(route, [ + { + id: attachmentId, + companyId: seed.companyId, + issueId: issue.id, + issueCommentId: sends ? publicationId : null, + assetId: attachmentId, + provider: "local_disk", + objectKey: "board-send-test.txt", + contentType: "text/plain", + byteSize: 12, + sha256: "a".repeat(64), + originalFilename: "board-send-test.txt", + createdByAgentId: null, + createdByUserId: "local-board", + createdAt: new Date().toISOString(), + updatedAt: new Date().toISOString(), + contentPath: `/api/attachments/${attachmentId}/content`, + }, + { + id: "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", + companyId: seed.companyId, + issueId: issue.id, + issueCommentId: null, + assetId: "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", + provider: "local_disk", + objectKey: "internal-only.txt", + contentType: "text/plain", + byteSize: 8, + sha256: "b".repeat(64), + originalFilename: "internal-only.txt", + createdByAgentId: null, + createdByUserId: "local-board", + createdAt: new Date().toISOString(), + updatedAt: new Date().toISOString(), + contentPath: + "/api/attachments/eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee/content", + }, + ]); + }, + ); + await page.route( + `**/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications`, + async (route) => { + expect(route.request().method()).toBe("POST"); + expect(bodyOf(route).attachmentIds).toEqual([attachmentId]); + sends += 1; + submittedPayloads.push(bodyOf(route)); + if (outcome === "response_lost" && sends === 1) { + await route.abort("failed"); + return; + } + if (outcome === "response_lost" && sends === 2) { + // The automatic resend is still in flight when the page reloads; + // the browser drops it. + await resendReleased; + await route.abort("failed").catch(() => {}); + return; + } + await fulfill( + route, + { id: publicationId, state: "streaming", attempts: 1 }, + 201, + ); + }, + ); + await page.route(`**${statusPath}`, async (route) => { + expect(route.request().method()).toBe("GET"); + reads += 1; + await fulfill(route, { + publication: { + id: status === "streaming" ? publicationId : attachmentId, + state: status, + attempts: 1, + }, + total: 2, + published: status === "published" ? 2 : 1, + }); + }); + await page.goto(`/${seed.prefix}/issues/${issue.identifier}`); + await page + .getByRole("button", { name: "Send to channel", exact: true }) + .click(); + await page + .getByRole("textbox", { name: "Board update", exact: true }) + .fill("Board batch must finish all files."); + await page.getByRole("checkbox", { name: "board-send-test.txt" }).check(); + await page + .getByRole("button", { name: "Send to channel", exact: true }) + .last() + .click(); + const expectRetainedFiles = async () => { + const files = page.getByRole("group", { + name: "Files in this send", + exact: true, + }); + await expect(files).toBeVisible(); + await expect(files.getByRole("checkbox")).toHaveCount(1); + await expect( + files.getByRole("checkbox", { name: "board-send-test.txt" }), + ).toBeChecked(); + await expect( + files.getByRole("checkbox", { name: "board-send-test.txt" }), + ).toBeDisabled(); + await expect( + files.getByText("internal-only.txt", { exact: true }), + ).toHaveCount(0); + }; + if (outcome === "response_lost") { + // The lost send resends on its own with the same identity. + await expect( + page.getByText("Sending when reconnected…", { exact: true }), + ).toBeVisible(); + await expect.poll(() => submittedPayloads.length).toBe(2); + expect(submittedPayloads[1]).toEqual(submittedPayloads[0]); + // A send restored after reload has an unknown outcome and waits for + // an explicit, same-identity retry. + await page.reload(); + releaseResend(); + await expect( + page.getByText("Delivery result not confirmed", { exact: true }), + ).toBeVisible(); + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toBeDisabled(); + await expectRetainedFiles(); + expect(sends).toBe(2); + expect(reads).toBe(0); + await page + .getByRole("button", { name: "Retry safely", exact: true }) + .click(); + await expect.poll(() => submittedPayloads.length).toBe(3); + expect(submittedPayloads[2]).toEqual(submittedPayloads[0]); + } else { + await expect( + page.getByText("Publishing to channel", { exact: true }).first(), + ).toBeVisible(); + // The canonical task view must refresh its comment/files before any reload. + await expect + .poll(() => canonicalCommentReadsAfterSend) + .toBeGreaterThan(0); + await expect + .poll(() => canonicalAttachmentReadsAfterSend) + .toBeGreaterThan(0); + await expectRetainedFiles(); + const readsBeforeReload = reads; + await page.reload(); + await expect + .poll(() => reads, { timeout: 8_000 }) + .toBeGreaterThan(readsBeforeReload); + expect(sends).toBe(1); + } + await expect.poll(() => reads, { timeout: 8_000 }).toBeGreaterThan(0); + await expectRetainedFiles(); + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toHaveValue("Board batch must finish all files."); + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toBeDisabled(); + status = outcome === "response_lost" ? "published" : outcome; + if (status === "published") { + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toHaveCount(0, { timeout: 8_000 }); + await expect( + page.getByText("Sent to channel", { exact: true }), + ).toBeVisible(); + } else { + await expect( + page.getByText( + outcome === "failed" + ? "Channel delivery failed" + : "Delivery not confirmed", + { exact: true }, + ), + ).toBeVisible({ timeout: 8_000 }); + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toHaveValue("Board batch must finish all files."); + await expect( + page + .getByRole("button", { name: "Send to channel", exact: true }) + .last(), + ).toBeDisabled(); + await expect( + page.getByRole("link", { name: "Open Activity", exact: true }), + ).toBeVisible(); + // An explicit resolution elsewhere may complete the batch; this surface only reads it. + status = "published"; + await expect( + page.getByRole("textbox", { name: "Board update", exact: true }), + ).toHaveCount(0, { timeout: 8_000 }); + } + // response_lost: the lost send, its automatic resend, and the explicit + // retry after reload, all with one identity. + const expectedSends = outcome === "response_lost" ? 3 : 1; + expect(sends).toBe(expectedSends); + expect(canonicalCommentReadsAfterSend).toBeGreaterThan(0); + expect(canonicalAttachmentReadsAfterSend).toBeGreaterThan(0); + await expect( + page.getByText("Board batch must finish all files.", { exact: true }), + ).toBeVisible(); + await page + .getByRole("button", { name: "Send to channel", exact: true }) + .click(); + const newFiles = page.getByRole("group", { + name: "Include task files", + exact: true, + }); + await expect( + newFiles.getByRole("checkbox", { name: "board-send-test.txt" }), + ).toHaveCount(0); + await expect( + newFiles.getByRole("checkbox", { name: "internal-only.txt" }), + ).not.toBeChecked(); + await expect( + newFiles.getByRole("checkbox", { name: "internal-only.txt" }), + ).toBeEnabled(); + expect(sends).toBe(expectedSends); + }); + } +}); + +test.describe("Failed chat task and exact run retry", () => { + let seed: Seed; + let issue: { id: string; identifier: string; title: string }; + + const failedRunId = "11111111-aaaa-4aaa-8aaa-111111111111"; + const actionId = "22222222-bbbb-4bbb-8bbb-222222222222"; + const denial = + "This chat source is no longer authorized. Open the task to review its current channel access before retrying."; + + test.beforeAll(async ({ request }) => { + seed = await seedCompanyAndAgent(request); + issue = await json( + await request.post(`/api/companies/${seed.companyId}/issues`, { + data: { title: "Exact chat retry destination", status: "backlog" }, + }), + "create exact-retry task", + ); + }); + + // Cover every surface and every outcome without running the full 4x3 + // Cartesian product: all 3 outcomes on the primary Coordinator Tasks surface + // plus one representative outcome on each secondary surface. + const retryCases: Array<{ + surface: "agent run" | "Inbox" | "Coordinator Tasks" | "Legacy Inbox"; + outcome: "queued" | "deferred" | "denied"; + }> = [ + { surface: "Coordinator Tasks", outcome: "queued" }, + { surface: "Coordinator Tasks", outcome: "deferred" }, + { surface: "Coordinator Tasks", outcome: "denied" }, + { surface: "agent run", outcome: "queued" }, + { surface: "Inbox", outcome: "deferred" }, + { surface: "Legacy Inbox", outcome: "denied" }, + ]; + for (const { surface, outcome } of retryCases) { + test(`${surface}: selected run ${outcome} preserves exact retry authority and truthful feedback`, async ({ + page, + }, testInfo) => { + const usesTaskRetry = surface === "Inbox" || surface === "Coordinator Tasks"; + const now = Date.now(); + const run = { + id: failedRunId, + companyId: seed.companyId, + agentId: seed.agentId, + status: "failed", + invocationSource: "assignment", + triggerDetail: "system", + startedAt: new Date(now - 60_000).toISOString(), + finishedAt: new Date(now - 30_000).toISOString(), + createdAt: new Date(now - 60_000).toISOString(), + updatedAt: new Date(now - 30_000).toISOString(), + error: "The fixture provider turn failed.", + errorCode: "adapter_failed", + exitCode: 1, + signal: null, + responsibleUserId: null, + runtimeMode: "native", + driverKind: "codex_app_server", + nativeIssueId: issue.id, + usageJson: null, + resultJson: null, + sessionIdBefore: null, + sessionIdAfter: null, + logStore: null, + logRef: null, + logBytes: 0, + retryOfRunId: null, + scheduledRetryAt: null, + scheduledRetryAttempt: 0, + scheduledRetryReason: null, + contextSnapshot: { + source: "chat:slack", + issueId: issue.id, + taskId: "33333333-cccc-4ccc-8ccc-333333333333", + taskKey: "untrusted-copy-of-another-task", + wakeCommentId: "44444444-dddd-4ddd-8ddd-444444444444", + wakeCommentIds: ["44444444-dddd-4ddd-8ddd-444444444444"], + chatFailedRunRetry: { actionId: "untrusted-client-action" }, + }, + }; + const requests: Array<{ + companyId: string | null; + body: Record; + }> = []; + const destinations: string[] = []; + page.on("framenavigated", (frame) => { + if (frame === page.mainFrame()) destinations.push(frame.url()); + }); + await page.route("**/api/**", async (route) => { + const url = new URL(route.request().url()); + const pathname = url.pathname; + if (pathname === "/api/workspace-preferences/me") { + await fulfill(route, { + userId: "local-board", + coordinatorWorkspaceEnabled: surface === "Coordinator Tasks", + updatedAt: null, + }); + return; + } + if (pathname === "/api/instance/settings/experimental") { + await fulfill(route, { + enableChatConnectors: true, + enableStreamlinedUi: surface !== "Legacy Inbox", + }); + return; + } + if (pathname === `/api/companies/${seed.companyId}/heartbeat-runs`) { + await fulfill(route, [run]); + return; + } + if (pathname === `/api/heartbeat-runs/${failedRunId}`) { + await fulfill(route, run); + return; + } + if ( + pathname === `/api/heartbeat-runs/${failedRunId}/events` || + pathname === + `/api/heartbeat-runs/${failedRunId}/workspace-operations` || + pathname === `/api/companies/${seed.companyId}/provider-traces` + ) { + await fulfill(route, []); + return; + } + if (pathname === `/api/heartbeat-runs/${failedRunId}/issues`) { + await fulfill(route, [ + { + issueId: issue.id, + identifier: issue.identifier, + title: issue.title, + status: "backlog", + priority: "medium", + }, + ]); + return; + } + if (pathname === `/api/heartbeat-runs/${failedRunId}/log`) { + await fulfill(route, { + runId: failedRunId, + content: "", + nextOffset: 0, + }); + return; + } + const retryPath = usesTaskRetry + ? `/api/issues/${issue.id}/retry` + : `/api/agents/${seed.agentId}/wakeup`; + if (pathname === retryPath) { + expect(route.request().method()).toBe("POST"); + requests.push({ + companyId: url.searchParams.get("companyId"), + body: bodyOf(route), + }); + if (outcome === "denied") { + await fulfill( + route, + { + error: denial, + details: { code: "chat_failed_run_retry_source_denied" }, + }, + 409, + ); + } else { + // The durable action exists, but no run has been admitted yet. + await fulfill( + route, + usesTaskRetry + ? { + requestId: actionId, + accepted: true, + stale: false, + observedRunId: failedRunId, + presentation: { + intentId: actionId, + responsibility: "system", + state: outcome === "queued" ? "working" : "retry_scheduled", + nextRetryAt: null, + canRetry: false, + userAction: null, + sourceRunIds: [failedRunId], + observedRunId: failedRunId, + }, + } + : { actionId, issueId: issue.id, runId: null, status: outcome }, + 202, + ); + } + return; + } + await route.continue(); + }); + + const startPath = + surface === "agent run" + ? `/${seed.prefix}/agents/maya/runs/${failedRunId}` + : `/${seed.prefix}/inbox/all`; + const canonicalAgentResponse = + surface === "agent run" + ? page.waitForResponse((response) => { + const url = new URL(response.url()); + return ( + response.request().method() === "GET" && + url.pathname === "/api/agents/maya" && + url.searchParams.get("companyId") === seed.companyId + ); + }) + : null; + await page.goto(startPath); + if (canonicalAgentResponse) { + const response = await canonicalAgentResponse; + expect(response.ok()).toBe(true); + expect(await response.json()).toMatchObject({ + id: seed.agentId, + companyId: seed.companyId, + urlKey: "maya", + }); + await expect(page).toHaveURL( + new RegExp(`/${seed.prefix}/agents/maya/runs/${failedRunId}$`), + ); + } + const retry = page + .getByRole("button", { name: "Retry", exact: true }) + .filter({ visible: true }); + await expect(retry).toHaveCount(1); + await retry.click(); + await expect.poll(() => requests.length).toBe(1); + expect(requests[0]).toEqual(usesTaskRetry + ? { + companyId: null, + body: { + idempotencyKey: expect.stringMatching( + /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, + ), + observedRunId: failedRunId, + }, + } + : { + companyId: seed.companyId, + body: { + source: "on_demand", + triggerDetail: "manual", + reason: "retry_failed_run", + failedRunId, + }, + }); + if (outcome === "denied") { + await expect(page.getByText(denial, { exact: true })).toBeVisible(); + if (surface !== "agent run") { + await expect( + page.getByText("Run retry failed", { exact: true }), + ).toBeVisible(); + const toast = page.getByRole("listitem").filter({ + has: page.getByText("Run retry failed", { exact: true }), + }); + // Visibility alone accepts opacity:0 during the toast entrance. + // The operator must actually be able to read the denial. + await expect(toast).toHaveCSS("opacity", "1"); + await expect(toast).toBeInViewport(); + } + // Agent routes canonicalize the UUID to its human-readable URL key. + // The selected failed run must remain unchanged across that redirect. + await expect(page).toHaveURL( + surface === "agent run" + ? new RegExp( + `/${seed.prefix}/agents/(${seed.agentId}|maya)/runs/${failedRunId}$`, + ) + : surface === "Coordinator Tasks" + ? new RegExp(`/${seed.prefix}/issues\\?view=everything$`) + : new RegExp(`${startPath}$`), + ); + await expect(retry).toBeEnabled(); + await testInfo.attach(`${surface}-retry-denied`, { + body: await page.screenshot(), + contentType: "image/png", + }); + } else { + await expect(page).toHaveURL( + new RegExp( + `/${seed.prefix}/issues/(${issue.id}|${issue.identifier})$`, + ), + ); + await expect( + page.getByText(issue.title, { exact: true }).first(), + ).toBeVisible(); + await expect( + page.getByText("Run retry failed", { exact: true }), + ).toHaveCount(0); + } + expect(requests).toHaveLength(1); + expect( + destinations.some((url) => + /\/runs\/(null|undefined)(?:[/?#]|$)/.test(url), + ), + ).toBe(false); + }); + } +}); diff --git a/tests/e2e/chat-adapters-ui-messaging.spec.ts b/tests/e2e/chat-adapters-ui-messaging.spec.ts index c090663c216..11fc59bcee6 100644 --- a/tests/e2e/chat-adapters-ui-messaging.spec.ts +++ b/tests/e2e/chat-adapters-ui-messaging.spec.ts @@ -746,904 +746,4 @@ test.describe("Board send delivery refresh", () => { }), ]); }); - - for (const cancelledHead of [false, true]) { - test(`keeps Teams file consent anchored across reload (${cancelledHead ? "cancelled head with waiting tail" : "mixed terminal receipt and explicit dismiss"})`, async ({ - page, - request, - }, testInfo) => { - const seed = await seedCompanyAndAgent(request); - const issue = await json<{ id: string; identifier: string }>( - await request.post(`/api/companies/${seed.companyId}/issues`, { - data: { title: "Teams consent receipt", status: "backlog" }, - }), - "create consent receipt task", - ); - const endpointId = "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"; - const conversationId = "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"; - const anchor = "cccccccc-cccc-4ccc-8ccc-cccccccccccc"; - const nextAnchor = "ffffffff-ffff-4fff-8fff-ffffffffffff"; - const filePublications = [ - "dddddddd-dddd-4ddd-8ddd-dddddddddddd", - "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", - ]; - const filenames = ["consent-report.txt", "consent-notes.txt"]; - const posts: Record[] = []; - const statusReads: string[] = []; - let terminal = false; - const publicationsPath = `/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications`; - const session = await json<{ user: { id: string } }>( - await request.get("/api/auth/get-session"), - "read receipt owner", - ); - const storageKey = `paperclip:board-send:v2:${JSON.stringify([session.user.id, seed.companyId, issue.id, endpointId, conversationId])}`; - await page.route("**/api/instance/settings/experimental", (route) => - fulfill(route, { enableChatConnectors: true }), - ); - await page.route(`**/api/issues/${issue.id}/chat-binding`, (route) => - fulfill(route, { - endpointId, - conversationId, - provider: "microsoft-teams", - externalLabel: "Personal file conversation", - assignedAgentLocked: true, - }), - ); - // Only the publication API is simulated. Task creation and safe file - // uploads use this test's isolated Paperclip instance, never Teams. - await page.route(`**${publicationsPath}`, (route) => { - expect(route.request().method()).toBe("POST"); - posts.push(bodyOf(route)); - return fulfill( - route, - { - id: posts.length === 1 ? anchor : nextAnchor, - state: "pending", - attempts: 0, - }, - 201, - ); - }); - await page.route(`**${publicationsPath}/*/status`, (route) => { - expect(route.request().method()).toBe("GET"); - const path = new URL(route.request().url()).pathname; - statusReads.push(path); - if (path.endsWith(`/${nextAnchor}/status`)) { - return fulfill(route, { - publication: { id: nextAnchor, state: "pending", attempts: 0 }, - total: 1, - published: 0, - awaitingConsent: 0, - declined: 0, - expired: 0, - cancelled: 0, - settled: 0, - canDismiss: false, - }); - } - expect(path).toBe(`${publicationsPath}/${anchor}/status`); - const parts = [ - { id: anchor, state: "published", attempts: 1 }, - ...filePublications.map((id, index) => ({ - id, - state: - terminal || (cancelledHead && index === 0) - ? "cancelled" - : "awaiting_consent", - attempts: 1, - fileTransfer: { - provider: "microsoft-teams", - filename: filenames[index], - phase: terminal - ? index === 0 - ? "declined" - : "expired" - : cancelledHead && index === 0 - ? "cancelled" - : "awaiting_consent", - version: terminal ? 3 : 2, - }, - })), - ]; - return fulfill(route, { - publication: parts[1], - parts, - total: 3, - published: 1, - awaitingConsent: terminal ? 0 : cancelledHead ? 1 : 2, - declined: terminal ? 1 : 0, - expired: terminal ? 1 : 0, - cancelled: !terminal && cancelledHead ? 1 : 0, - settled: terminal ? 3 : cancelledHead ? 2 : 1, - canDismiss: terminal, - }); - }); - await page.goto(`/${seed.prefix}/issues/${issue.identifier}`); - const banner = page.getByRole("region", { - name: "External conversation", - exact: true, - }); - await banner - .getByRole("button", { name: "Send to channel", exact: true }) - .click(); - for (const name of filenames) { - await banner - .getByLabel("Attach file to channel update", { exact: true }) - .setInputFiles({ - name, - mimeType: "text/plain", - buffer: Buffer.from(`Synthetic consent fixture: ${name}.\n`), - }); - await expect( - banner.getByRole("checkbox", { name, exact: true }), - ).toBeChecked(); - await expect( - banner.getByLabel("Attach file to channel update", { exact: true }), - ).toBeEnabled(); - } - await expect( - banner.getByRole("group", { name: "Include task files", exact: true }), - ).toContainText( - "In personal Teams chats, recipients accept each file before upload. Channels and group chats receive supported images directly; other files stay on the task, with a task link or private-task notice.", - ); - await banner.screenshot({ - path: testInfo.outputPath("teams-file-guidance.png"), - }); - expect(posts).toHaveLength(0); - await banner - .getByRole("textbox", { name: "Board update", exact: true }) - .fill("Please review these two files."); - await banner - .getByRole("button", { name: "Send to channel", exact: true }) - .last() - .click(); - await expect.poll(() => posts.length).toBe(1); - expect(posts[0].attachmentIds).toHaveLength(2); - await expect( - banner.getByText( - cancelledHead - ? "1 published · 1 awaiting consent · 1 cancelled" - : "1 published · 2 awaiting consent", - { exact: true }, - ), - ).toBeVisible(); - const retainedBeforeReload = await page.evaluate( - (key) => sessionStorage.getItem(key), - storageKey, - ); - expect(JSON.parse(retainedBeforeReload!).publication.id).toBe(anchor); - const readsBeforeReload = statusReads.length; - await page.reload(); - await expect - .poll(() => statusReads.length) - .toBeGreaterThan(readsBeforeReload); - expect( - await page.evaluate((key) => sessionStorage.getItem(key), storageKey), - ).toBe(retainedBeforeReload); - expect( - statusReads.every( - (path) => path === `${publicationsPath}/${anchor}/status`, - ), - ).toBe(true); - await expect( - banner.getByRole("textbox", { name: "Board update", exact: true }), - ).toBeDisabled(); - await expect( - banner.getByLabel("Attach file to channel update", { exact: true }), - ).toBeDisabled(); - await expect( - banner - .getByRole("button", { name: "Send to channel", exact: true }) - .last(), - ).toBeDisabled(); - await expect( - banner.getByRole("button", { - name: "Dismiss delivery receipt", - exact: true, - }), - ).toHaveCount(0); - await expect( - banner.getByText( - cancelledHead - ? "Waiting for remaining file consent" - : "Waiting for file consent", - { exact: true }, - ), - ).toBeVisible(); - await expect( - banner.getByText("Channel delivery cancelled", { exact: true }), - ).toHaveCount(0); - await expect( - banner.getByText("Sent to channel", { exact: true }), - ).toHaveCount(0); - for (const name of filenames) { - await expect( - banner.getByRole("checkbox", { name, exact: true }), - ).toBeChecked(); - await expect( - banner.getByRole("checkbox", { name, exact: true }), - ).toBeDisabled(); - } - expect(posts).toHaveLength(1); - await banner.screenshot({ - path: testInfo.outputPath("consent-waiting.png"), - }); - if (cancelledHead) return; - - terminal = true; - await expect( - banner.getByText("Delivery settled with mixed outcomes", { - exact: true, - }), - ).toBeVisible({ timeout: 8_000 }); - await expect( - banner.getByText("1 published · 1 declined · 1 expired", { - exact: true, - }), - ).toBeVisible(); - await expect( - banner.getByText("consent-report.txt — Declined", { exact: true }), - ).toBeVisible(); - await expect( - banner.getByText("consent-notes.txt — Consent expired", { - exact: true, - }), - ).toBeVisible(); - await expect( - banner - .getByRole("button", { name: "Send to channel", exact: true }) - .last(), - ).toBeDisabled(); - await banner.screenshot({ - path: testInfo.outputPath("consent-mixed.png"), - }); - expect(posts).toHaveLength(1); - await banner - .getByRole("button", { name: "Dismiss delivery receipt", exact: true }) - .click(); - await expect( - banner.getByRole("textbox", { name: "Board update", exact: true }), - ).toHaveValue(""); - await expect( - banner.getByRole("textbox", { name: "Board update", exact: true }), - ).toBeEnabled(); - await expect( - banner - .getByRole("button", { name: "Send to channel", exact: true }) - .last(), - ).toBeDisabled(); - expect( - await page.evaluate((key) => sessionStorage.getItem(key), storageKey), - ).toBeNull(); - expect(posts).toHaveLength(1); - await expect( - page.getByText("Sent to channel", { exact: true }), - ).toHaveCount(0); - for (const name of filenames) { - await expect( - banner.getByRole("checkbox", { name, exact: true }), - ).not.toBeChecked(); - } - await banner - .getByRole("textbox", { name: "Board update", exact: true }) - .fill("A separate text-only update."); - expect(posts).toHaveLength(1); - await banner - .getByRole("button", { name: "Send to channel", exact: true }) - .last() - .click(); - await expect.poll(() => posts.length).toBe(2); - expect(posts[1]).toMatchObject({ - body: "A separate text-only update.", - }); - expect(posts[1]).not.toHaveProperty("attachmentIds"); - expect(posts[1].idempotencyKey).not.toBe(posts[0].idempotencyKey); - }); - } - - for (const outcome of [ - "published", - "failed", - "delivery_unknown", - "response_lost", - ] as const) { - test(`tracks the whole file batch across reload and ${outcome} without a new send identity`, async ({ - page, - request, - }) => { - const seed = await seedCompanyAndAgent(request); - const issue = await json<{ id: string; identifier: string }>( - await request.post(`/api/companies/${seed.companyId}/issues`, { - data: { title: "Board delivery refresh", status: "backlog" }, - }), - "create board-send task", - ); - const endpointId = "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"; - const conversationId = "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"; - const publicationId = "cccccccc-cccc-4ccc-8ccc-cccccccccccc"; - const attachmentId = "dddddddd-dddd-4ddd-8ddd-dddddddddddd"; - const statusPath = `/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications/${publicationId}/status`; - let sends = 0; - const submittedPayloads: Record[] = []; - let reads = 0; - let canonicalAttachmentReadsAfterSend = 0; - let canonicalCommentReadsAfterSend = 0; - let status = "streaming"; - let releaseResend!: () => void; - const resendReleased = new Promise((resolve) => { - releaseResend = resolve; - }); - await page.route("**/api/instance/settings/experimental", (route) => - fulfill(route, { enableChatConnectors: true }), - ); - await page.route(`**/api/issues/${issue.id}/chat-binding`, (route) => - fulfill(route, { - endpointId, - conversationId, - provider: "slack", - externalLabel: "#board-send-test", - assignedAgentLocked: true, - }), - ); - // The comment and attachment reads below are faked. The chat bootstrap - // would answer them from the server, so make the page read them itself. - await page.route(/\/chat-bootstrap(?:\?|$)/, (route) => route.abort()); - await page.route( - new RegExp( - `/api/issues/(${issue.id}|${issue.identifier})/(?:recent-comments|comments)(?:\\?|$)`, - ), - async (route) => { - if ( - sends && - route.request().url().includes(`/issues/${issue.identifier}/`) - ) - canonicalCommentReadsAfterSend += 1; - const comments = sends - ? [ - { - id: publicationId, - companyId: seed.companyId, - issueId: issue.id, - authorAgentId: null, - authorUserId: "local-board", - authorType: "user", - body: "Board batch must finish all files.", - createdAt: new Date().toISOString(), - updatedAt: new Date().toISOString(), - }, - ] - : []; - await fulfill(route, route.request().url().includes("/recent-comments") - ? { comments, latestCommentId: comments.at(-1)?.id ?? null, hasMore: false } - : comments); - }, - ); - await page.route( - new RegExp( - `/api/issues/(${issue.id}|${issue.identifier})/attachments$`, - ), - async (route) => { - if ( - sends && - route.request().url().includes(`/issues/${issue.identifier}/`) - ) - canonicalAttachmentReadsAfterSend += 1; - await fulfill(route, [ - { - id: attachmentId, - companyId: seed.companyId, - issueId: issue.id, - issueCommentId: sends ? publicationId : null, - assetId: attachmentId, - provider: "local_disk", - objectKey: "board-send-test.txt", - contentType: "text/plain", - byteSize: 12, - sha256: "a".repeat(64), - originalFilename: "board-send-test.txt", - createdByAgentId: null, - createdByUserId: "local-board", - createdAt: new Date().toISOString(), - updatedAt: new Date().toISOString(), - contentPath: `/api/attachments/${attachmentId}/content`, - }, - { - id: "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", - companyId: seed.companyId, - issueId: issue.id, - issueCommentId: null, - assetId: "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee", - provider: "local_disk", - objectKey: "internal-only.txt", - contentType: "text/plain", - byteSize: 8, - sha256: "b".repeat(64), - originalFilename: "internal-only.txt", - createdByAgentId: null, - createdByUserId: "local-board", - createdAt: new Date().toISOString(), - updatedAt: new Date().toISOString(), - contentPath: - "/api/attachments/eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee/content", - }, - ]); - }, - ); - await page.route( - `**/api/chat-endpoints/${endpointId}/conversations/${conversationId}/publications`, - async (route) => { - expect(route.request().method()).toBe("POST"); - expect(bodyOf(route).attachmentIds).toEqual([attachmentId]); - sends += 1; - submittedPayloads.push(bodyOf(route)); - if (outcome === "response_lost" && sends === 1) { - await route.abort("failed"); - return; - } - if (outcome === "response_lost" && sends === 2) { - // The automatic resend is still in flight when the page reloads; - // the browser drops it. - await resendReleased; - await route.abort("failed").catch(() => {}); - return; - } - await fulfill( - route, - { id: publicationId, state: "streaming", attempts: 1 }, - 201, - ); - }, - ); - await page.route(`**${statusPath}`, async (route) => { - expect(route.request().method()).toBe("GET"); - reads += 1; - await fulfill(route, { - publication: { - id: status === "streaming" ? publicationId : attachmentId, - state: status, - attempts: 1, - }, - total: 2, - published: status === "published" ? 2 : 1, - }); - }); - await page.goto(`/${seed.prefix}/issues/${issue.identifier}`); - await page - .getByRole("button", { name: "Send to channel", exact: true }) - .click(); - await page - .getByRole("textbox", { name: "Board update", exact: true }) - .fill("Board batch must finish all files."); - await page.getByRole("checkbox", { name: "board-send-test.txt" }).check(); - await page - .getByRole("button", { name: "Send to channel", exact: true }) - .last() - .click(); - const expectRetainedFiles = async () => { - const files = page.getByRole("group", { - name: "Files in this send", - exact: true, - }); - await expect(files).toBeVisible(); - await expect(files.getByRole("checkbox")).toHaveCount(1); - await expect( - files.getByRole("checkbox", { name: "board-send-test.txt" }), - ).toBeChecked(); - await expect( - files.getByRole("checkbox", { name: "board-send-test.txt" }), - ).toBeDisabled(); - await expect( - files.getByText("internal-only.txt", { exact: true }), - ).toHaveCount(0); - }; - if (outcome === "response_lost") { - // The lost send resends on its own with the same identity. - await expect( - page.getByText("Sending when reconnected…", { exact: true }), - ).toBeVisible(); - await expect.poll(() => submittedPayloads.length).toBe(2); - expect(submittedPayloads[1]).toEqual(submittedPayloads[0]); - // A send restored after reload has an unknown outcome and waits for - // an explicit, same-identity retry. - await page.reload(); - releaseResend(); - await expect( - page.getByText("Delivery result not confirmed", { exact: true }), - ).toBeVisible(); - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toBeDisabled(); - await expectRetainedFiles(); - expect(sends).toBe(2); - expect(reads).toBe(0); - await page - .getByRole("button", { name: "Retry safely", exact: true }) - .click(); - await expect.poll(() => submittedPayloads.length).toBe(3); - expect(submittedPayloads[2]).toEqual(submittedPayloads[0]); - } else { - await expect( - page.getByText("Publishing to channel", { exact: true }).first(), - ).toBeVisible(); - // The canonical task view must refresh its comment/files before any reload. - await expect - .poll(() => canonicalCommentReadsAfterSend) - .toBeGreaterThan(0); - await expect - .poll(() => canonicalAttachmentReadsAfterSend) - .toBeGreaterThan(0); - await expectRetainedFiles(); - const readsBeforeReload = reads; - await page.reload(); - await expect - .poll(() => reads, { timeout: 8_000 }) - .toBeGreaterThan(readsBeforeReload); - expect(sends).toBe(1); - } - await expect.poll(() => reads, { timeout: 8_000 }).toBeGreaterThan(0); - await expectRetainedFiles(); - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toHaveValue("Board batch must finish all files."); - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toBeDisabled(); - status = outcome === "response_lost" ? "published" : outcome; - if (status === "published") { - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toHaveCount(0, { timeout: 8_000 }); - await expect( - page.getByText("Sent to channel", { exact: true }), - ).toBeVisible(); - } else { - await expect( - page.getByText( - outcome === "failed" - ? "Channel delivery failed" - : "Delivery not confirmed", - { exact: true }, - ), - ).toBeVisible({ timeout: 8_000 }); - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toHaveValue("Board batch must finish all files."); - await expect( - page - .getByRole("button", { name: "Send to channel", exact: true }) - .last(), - ).toBeDisabled(); - await expect( - page.getByRole("link", { name: "Open Activity", exact: true }), - ).toBeVisible(); - // An explicit resolution elsewhere may complete the batch; this surface only reads it. - status = "published"; - await expect( - page.getByRole("textbox", { name: "Board update", exact: true }), - ).toHaveCount(0, { timeout: 8_000 }); - } - // response_lost: the lost send, its automatic resend, and the explicit - // retry after reload, all with one identity. - const expectedSends = outcome === "response_lost" ? 3 : 1; - expect(sends).toBe(expectedSends); - expect(canonicalCommentReadsAfterSend).toBeGreaterThan(0); - expect(canonicalAttachmentReadsAfterSend).toBeGreaterThan(0); - await expect( - page.getByText("Board batch must finish all files.", { exact: true }), - ).toBeVisible(); - await page - .getByRole("button", { name: "Send to channel", exact: true }) - .click(); - const newFiles = page.getByRole("group", { - name: "Include task files", - exact: true, - }); - await expect( - newFiles.getByRole("checkbox", { name: "board-send-test.txt" }), - ).toHaveCount(0); - await expect( - newFiles.getByRole("checkbox", { name: "internal-only.txt" }), - ).not.toBeChecked(); - await expect( - newFiles.getByRole("checkbox", { name: "internal-only.txt" }), - ).toBeEnabled(); - expect(sends).toBe(expectedSends); - }); - } -}); - -test.describe("Failed chat task and exact run retry", () => { - let seed: Seed; - let issue: { id: string; identifier: string; title: string }; - - const failedRunId = "11111111-aaaa-4aaa-8aaa-111111111111"; - const actionId = "22222222-bbbb-4bbb-8bbb-222222222222"; - const denial = - "This chat source is no longer authorized. Open the task to review its current channel access before retrying."; - - test.beforeAll(async ({ request }) => { - seed = await seedCompanyAndAgent(request); - issue = await json( - await request.post(`/api/companies/${seed.companyId}/issues`, { - data: { title: "Exact chat retry destination", status: "backlog" }, - }), - "create exact-retry task", - ); - }); - - // Cover every surface and every outcome without running the full 4x3 - // Cartesian product: all 3 outcomes on the primary Coordinator Tasks surface - // plus one representative outcome on each secondary surface. - const retryCases: Array<{ - surface: "agent run" | "Inbox" | "Coordinator Tasks" | "Legacy Inbox"; - outcome: "queued" | "deferred" | "denied"; - }> = [ - { surface: "Coordinator Tasks", outcome: "queued" }, - { surface: "Coordinator Tasks", outcome: "deferred" }, - { surface: "Coordinator Tasks", outcome: "denied" }, - { surface: "agent run", outcome: "queued" }, - { surface: "Inbox", outcome: "deferred" }, - { surface: "Legacy Inbox", outcome: "denied" }, - ]; - for (const { surface, outcome } of retryCases) { - test(`${surface}: selected run ${outcome} preserves exact retry authority and truthful feedback`, async ({ - page, - }, testInfo) => { - const usesTaskRetry = surface === "Inbox" || surface === "Coordinator Tasks"; - const now = Date.now(); - const run = { - id: failedRunId, - companyId: seed.companyId, - agentId: seed.agentId, - status: "failed", - invocationSource: "assignment", - triggerDetail: "system", - startedAt: new Date(now - 60_000).toISOString(), - finishedAt: new Date(now - 30_000).toISOString(), - createdAt: new Date(now - 60_000).toISOString(), - updatedAt: new Date(now - 30_000).toISOString(), - error: "The fixture provider turn failed.", - errorCode: "adapter_failed", - exitCode: 1, - signal: null, - responsibleUserId: null, - runtimeMode: "native", - driverKind: "codex_app_server", - nativeIssueId: issue.id, - usageJson: null, - resultJson: null, - sessionIdBefore: null, - sessionIdAfter: null, - logStore: null, - logRef: null, - logBytes: 0, - retryOfRunId: null, - scheduledRetryAt: null, - scheduledRetryAttempt: 0, - scheduledRetryReason: null, - contextSnapshot: { - source: "chat:slack", - issueId: issue.id, - taskId: "33333333-cccc-4ccc-8ccc-333333333333", - taskKey: "untrusted-copy-of-another-task", - wakeCommentId: "44444444-dddd-4ddd-8ddd-444444444444", - wakeCommentIds: ["44444444-dddd-4ddd-8ddd-444444444444"], - chatFailedRunRetry: { actionId: "untrusted-client-action" }, - }, - }; - const requests: Array<{ - companyId: string | null; - body: Record; - }> = []; - const destinations: string[] = []; - page.on("framenavigated", (frame) => { - if (frame === page.mainFrame()) destinations.push(frame.url()); - }); - await page.route("**/api/**", async (route) => { - const url = new URL(route.request().url()); - const pathname = url.pathname; - if (pathname === "/api/workspace-preferences/me") { - await fulfill(route, { - userId: "local-board", - coordinatorWorkspaceEnabled: surface === "Coordinator Tasks", - updatedAt: null, - }); - return; - } - if (pathname === "/api/instance/settings/experimental") { - await fulfill(route, { - enableChatConnectors: true, - enableStreamlinedUi: surface !== "Legacy Inbox", - }); - return; - } - if (pathname === `/api/companies/${seed.companyId}/heartbeat-runs`) { - await fulfill(route, [run]); - return; - } - if (pathname === `/api/heartbeat-runs/${failedRunId}`) { - await fulfill(route, run); - return; - } - if ( - pathname === `/api/heartbeat-runs/${failedRunId}/events` || - pathname === - `/api/heartbeat-runs/${failedRunId}/workspace-operations` || - pathname === `/api/companies/${seed.companyId}/provider-traces` - ) { - await fulfill(route, []); - return; - } - if (pathname === `/api/heartbeat-runs/${failedRunId}/issues`) { - await fulfill(route, [ - { - issueId: issue.id, - identifier: issue.identifier, - title: issue.title, - status: "backlog", - priority: "medium", - }, - ]); - return; - } - if (pathname === `/api/heartbeat-runs/${failedRunId}/log`) { - await fulfill(route, { - runId: failedRunId, - content: "", - nextOffset: 0, - }); - return; - } - const retryPath = usesTaskRetry - ? `/api/issues/${issue.id}/retry` - : `/api/agents/${seed.agentId}/wakeup`; - if (pathname === retryPath) { - expect(route.request().method()).toBe("POST"); - requests.push({ - companyId: url.searchParams.get("companyId"), - body: bodyOf(route), - }); - if (outcome === "denied") { - await fulfill( - route, - { - error: denial, - details: { code: "chat_failed_run_retry_source_denied" }, - }, - 409, - ); - } else { - // The durable action exists, but no run has been admitted yet. - await fulfill( - route, - usesTaskRetry - ? { - requestId: actionId, - accepted: true, - stale: false, - observedRunId: failedRunId, - presentation: { - intentId: actionId, - responsibility: "system", - state: outcome === "queued" ? "working" : "retry_scheduled", - nextRetryAt: null, - canRetry: false, - userAction: null, - sourceRunIds: [failedRunId], - observedRunId: failedRunId, - }, - } - : { actionId, issueId: issue.id, runId: null, status: outcome }, - 202, - ); - } - return; - } - await route.continue(); - }); - - const startPath = - surface === "agent run" - ? `/${seed.prefix}/agents/maya/runs/${failedRunId}` - : `/${seed.prefix}/inbox/all`; - const canonicalAgentResponse = - surface === "agent run" - ? page.waitForResponse((response) => { - const url = new URL(response.url()); - return ( - response.request().method() === "GET" && - url.pathname === "/api/agents/maya" && - url.searchParams.get("companyId") === seed.companyId - ); - }) - : null; - await page.goto(startPath); - if (canonicalAgentResponse) { - const response = await canonicalAgentResponse; - expect(response.ok()).toBe(true); - expect(await response.json()).toMatchObject({ - id: seed.agentId, - companyId: seed.companyId, - urlKey: "maya", - }); - await expect(page).toHaveURL( - new RegExp(`/${seed.prefix}/agents/maya/runs/${failedRunId}$`), - ); - } - const retry = page - .getByRole("button", { name: "Retry", exact: true }) - .filter({ visible: true }); - await expect(retry).toHaveCount(1); - await retry.click(); - await expect.poll(() => requests.length).toBe(1); - expect(requests[0]).toEqual(usesTaskRetry - ? { - companyId: null, - body: { - idempotencyKey: expect.stringMatching( - /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, - ), - observedRunId: failedRunId, - }, - } - : { - companyId: seed.companyId, - body: { - source: "on_demand", - triggerDetail: "manual", - reason: "retry_failed_run", - failedRunId, - }, - }); - if (outcome === "denied") { - await expect(page.getByText(denial, { exact: true })).toBeVisible(); - if (surface !== "agent run") { - await expect( - page.getByText("Run retry failed", { exact: true }), - ).toBeVisible(); - const toast = page.getByRole("listitem").filter({ - has: page.getByText("Run retry failed", { exact: true }), - }); - // Visibility alone accepts opacity:0 during the toast entrance. - // The operator must actually be able to read the denial. - await expect(toast).toHaveCSS("opacity", "1"); - await expect(toast).toBeInViewport(); - } - // Agent routes canonicalize the UUID to its human-readable URL key. - // The selected failed run must remain unchanged across that redirect. - await expect(page).toHaveURL( - surface === "agent run" - ? new RegExp( - `/${seed.prefix}/agents/(${seed.agentId}|maya)/runs/${failedRunId}$`, - ) - : surface === "Coordinator Tasks" - ? new RegExp(`/${seed.prefix}/issues\\?view=everything$`) - : new RegExp(`${startPath}$`), - ); - await expect(retry).toBeEnabled(); - await testInfo.attach(`${surface}-retry-denied`, { - body: await page.screenshot(), - contentType: "image/png", - }); - } else { - await expect(page).toHaveURL( - new RegExp( - `/${seed.prefix}/issues/(${issue.id}|${issue.identifier})$`, - ), - ); - await expect( - page.getByText(issue.title, { exact: true }).first(), - ).toBeVisible(); - await expect( - page.getByText("Run retry failed", { exact: true }), - ).toHaveCount(0); - } - expect(requests).toHaveLength(1); - expect( - destinations.some((url) => - /\/runs\/(null|undefined)(?:[/?#]|$)/.test(url), - ), - ).toBe(false); - }); - } }); diff --git a/tests/e2e/chat-adapters-ui-providers-catalog.spec.ts b/tests/e2e/chat-adapters-ui-providers-catalog.spec.ts new file mode 100644 index 00000000000..97e7a0c62c4 --- /dev/null +++ b/tests/e2e/chat-adapters-ui-providers-catalog.spec.ts @@ -0,0 +1,623 @@ +import { expect, test, type Page, type TestInfo } from "@playwright/test"; + +import { + expectMinimumProviderSetup, + expectProviderTryInstructions, + expectSetupRail, + fillProviderSetup, + installChatControlPlaneMock, + seedCompanyAndAgent, + selectMaya, + PROVIDER_LIFECYCLE_COPY, + PROVIDERS, + expectedCredentialKeys, + type ProviderCase, + type Seed, + type ChatMock, + GITHUB_PRIVATE_KEY_PASTE_FIXTURE, +} from "./chat-adapters-ui.shared"; + +async function findConnectorBySearch(page: Page, query: string, slug: string) { + const search = page.getByRole("searchbox", { name: "Search connectors" }); + await expect(search).toBeVisible(); + await search.fill(query); + const connector = page.locator(`[role="listitem"][data-app-slug="${slug}"]`); + await expect(connector).toBeVisible({ timeout: 30_000 }); + return connector; +} + +async function exerciseGitHubReviewSetup(page: Page, mock: ChatMock, seed: Seed, provider: ProviderCase, testInfo: TestInfo) { + await expect(page.getByRole("heading", { name: "Choose agent", exact: true })).toBeVisible(); + await page.getByRole("button", { name: "Select agent…", exact: true }).click(); + await page.getByRole("button", { name: "Select Maya", exact: true }).click(); + await expect(page.getByText("Maya is not configured for low-trust review")).toBeVisible(); + await expect(page.getByRole("link", { name: "Learn about low-trust agents" })).toHaveAttribute("href", /trust-and-low-trust-review/); + await testInfo.attach("Choose agent — inline low-trust warning", { body: await page.screenshot(), contentType: "image/png" }); + await page.getByRole("button", { name: "Change Maya to a low trust agent" }).click(); + await expect(page.getByText("Maya is not configured for low-trust review")).toHaveCount(0); + await page.getByRole("button", { name: "Continue", exact: true }).click(); + await expect.poll(() => mock.createdWithAgentId).toBe(seed.agentId); + await expect(page.getByRole("heading", { name: "Connect GitHub", exact: true })).toBeVisible(); + await expect(page.getByLabel("GitHub account")).toHaveValue("personal"); + await expect(page.getByLabel("App name", { exact: true })).toHaveValue("Maya"); + await page.getByLabel("GitHub account").selectOption("organization"); + await page.getByLabel("Organization", { exact: true }).fill("paperclip-ai"); + await testInfo.attach("Connect GitHub — organization", { body: await page.screenshot(), contentType: "image/png" }); + await page.getByRole("button", { name: "Save & exit", exact: true }).click(); + await page.goto(`/${seed.prefix}/apps/chat/connect?provider=github&purpose=chat&resume=endpoint-github`); + await expect(page.getByLabel("GitHub account")).toHaveValue("organization"); + await expect(page.getByLabel("Organization", { exact: true })).toHaveValue("paperclip-ai"); + await expect(page.getByRole("button", { name: "Select agent…", exact: true })).toHaveCount(0); + // Existing-App recovery stays available and preserves entered credentials after failure. + await page.getByRole("button", { name: "I already have an App" }).click(); + await page.getByLabel("App ID", { exact: true }).fill("123456"); + await page.getByLabel("Private key", { exact: true }).evaluate((element, privateKey) => { + const clipboardData = new DataTransfer(); + clipboardData.setData("text/plain", privateKey); + element.dispatchEvent(new ClipboardEvent("paste", { bubbles: true, cancelable: true, clipboardData })); + }, GITHUB_PRIVATE_KEY_PASTE_FIXTURE); + await page.getByLabel("Webhook secret", { exact: true }).fill("github-webhook-secret"); + const rejectedAppResponse = page.waitForResponse((response) => + response.url().endsWith("/api/chat-endpoints/endpoint-github/github/app") && response.request().method() === "POST", + ); + await page.getByRole("button", { name: "Connect existing App", exact: true }).click(); + expect((await rejectedAppResponse).request().postDataJSON().privateKey).toBe(GITHUB_PRIVATE_KEY_PASTE_FIXTURE); + await expect(page.getByRole("alert")).toContainText("GitHub rejected the supplied App credentials."); + await expect(page.getByLabel("Private key", { exact: true })).toHaveValue(""); + await expect(page.getByText("Private key loaded. Paste or upload another key to replace it.", { exact: true })).toBeVisible(); + const retriedAppResponse = page.waitForResponse((response) => + response.url().endsWith("/api/chat-endpoints/endpoint-github/github/app") && response.request().method() === "POST", + ); + await page.getByRole("button", { name: "Connect existing App", exact: true }).click(); + expect((await retriedAppResponse).request().postDataJSON().privateKey).toBe(GITHUB_PRIVATE_KEY_PASTE_FIXTURE); + await expect(page.getByRole("heading", { name: "Connect your account", exact: true })).toBeVisible(); + await page.getByLabel("Existing GitHub connection").selectOption("personal-github"); + await expect(page.getByRole("button", { name: "Check my account" })).toBeVisible(); + await page.getByRole("button", { name: "Check my account" }).click(); + expect(mock.githubIdentityConfirmed).toBe(false); + await page.getByRole("button", { name: "Confirm my account" }).click(); + await expect.poll(() => mock.githubIdentityConfirmed).toBe(true); + await expect(page.getByRole("heading", { name: "GitHub connected", exact: true })).toBeVisible(); + await expect(page.getByText("1 repository enabled", { exact: true })).toBeVisible(); + await expect(page.getByRole("button", { name: /Finish|Verify connection|Refresh access|Save repositories/ })).toHaveCount(0); + await page.getByRole("dialog").getByRole("button", { name: "Done", exact: true }).click(); + await expect(page).toHaveURL(/\/apps\/chat\/endpoint-github\/settings$/); + const nav = page.getByRole("navigation", { name: "Chat connection" }); + for (const tab of ["Settings", "Access", "Reviews", "Conversations", "Activity"]) { + await expect(nav.getByRole("link", { name: tab, exact: true })).toBeVisible(); + } + await nav.getByRole("link", { name: "Access", exact: true }).click(); + await expect(page.getByRole("heading", { name: "People", exact: true })).toBeVisible(); + await nav.getByRole("link", { name: "Reviews", exact: true }).click(); + await expect(page.getByText("No reviews yet", { exact: true })).toBeVisible(); + await nav.getByRole("link", { name: "Conversations", exact: true }).click(); + await expect(page.getByRole("list", { name: "Conversations", exact: true })).toBeVisible(); + await nav.getByRole("link", { name: "Activity", exact: true }).click(); + await expect(page.getByRole("heading", { name: "Connection activity", exact: true })).toBeVisible(); + await page.getByText("Connection health and controls", { exact: true }).click(); + await page.getByRole("button", { name: "Pause", exact: true }).click(); + await page.getByRole("button", { name: "Resume", exact: true }).click(); + await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume"]); + await page.getByRole("button", { name: "Replay failed delivery", exact: true }).click(); + await expect.poll(() => mock.replayedDelivery).toBe(true); + mock.setStatus("attention"); + await page.reload(); + const recoveryNotice = page.getByRole("region", { name: "GitHub connection needs repair" }); + await expect(recoveryNotice).toBeVisible(); + await recoveryNotice.getByRole("link", { name: "Reconnect GitHub", exact: true }).click(); + await expect(page.getByRole("heading", { name: "Reconnect GitHub", exact: true })).toBeVisible(); + await expect(page.getByText(/using its saved credentials/)).toBeVisible(); + await expect(page.getByRole("button", { name: "Choose an agent", exact: true })).toHaveCount(0); + await expect(page.getByLabel("Private key", { exact: true })).toHaveCount(0); + const reconnectResponse = page.waitForResponse((response) => + response.url().endsWith("/api/chat-endpoints/endpoint-github/setup") && + response.request().method() === "POST" && + response.request().postDataJSON().action === "reconnect", + ); + await page.getByRole("button", { name: "Reconnect saved App", exact: true }).click(); + const reconnected = await reconnectResponse; + expect(reconnected.request().postDataJSON()).toEqual({ action: "reconnect" }); + expect(await reconnected.json()).toMatchObject({ assignedAgentId: seed.agentId, assignedAgentName: "Maya" }); + await expect(page.getByRole("heading", { name: "GitHub connected", exact: true })).toBeVisible(); + mock.setStatus("active"); + await page.getByRole("dialog").getByRole("button", { name: "Done", exact: true }).click(); + await expect(page.getByRole("heading", { name: "Maya", exact: true })).toBeVisible(); + await nav.getByRole("link", { name: "Activity", exact: true }).click(); + await page.getByText("Connection health and controls", { exact: true }).click(); + await page.getByRole("button", { name: "Remove connection", exact: true }).click(); + await page.getByRole("alertdialog").getByRole("button", { name: "Remove connection", exact: true }).click(); + await expect.poll(() => mock.removed).toBe(true); + await expect(page).toHaveURL(new RegExp(`/${seed.prefix}/apps$`)); +} + +/** + * Per-provider catalog, setup, and connection management tab flows across + * Slack, GitHub, Microsoft Teams, Discord, and Telegram. Split from + * chat-adapters-ui-providers.spec.ts to keep every E2E spec under 1,000 LOC + * and under the 180s per-file CI budget. + */ +test.describe("native chat adapter UI catalog and management", () => { + test.setTimeout(180_000); + + let seed: Seed; + + test.beforeAll(async ({ request }) => { + seed = await seedCompanyAndAgent(request); + }); + + for (const provider of PROVIDERS) { + test(`${provider.name}: catalog, setup, and connection management tabs`, async ({ + page, + }, testInfo) => { + const mock = await installChatControlPlaneMock(page, provider, seed, { + enableChatConnectors: provider.provider !== "github", + enableGitHubReviewBots: provider.provider === "github", + }); + + await page.goto(`/${seed.prefix}/apps`); + await expect( + page.getByRole("heading", { name: "Connectors" }), + ).toBeVisible({ timeout: 30_000 }); + let connector = await findConnectorBySearch(page, provider.name, provider.slug); + if (provider.provider === "github") { + const tools = await findConnectorBySearch(page, "GitHub", "github"); + await tools.getByRole("button", { name: "Add key GitHub", exact: true }).click(); + await page.getByRole("button", { name: "Change", exact: true }).click(); + await expect(page.getByRole("heading", { name: "Connect GitHub as" })).toBeVisible(); + await expect(page.getByRole("heading", { name: "Choose how to connect" })).toHaveCount(0); + await page.goto(`/${seed.prefix}/apps`); + connector = await findConnectorBySearch(page, provider.name, provider.slug); + } + await connector + .getByRole("button", { name: `Connect ${provider.provider === "github" ? "GitHub Code Review Bot" : provider.name}` }) + .click(); + + if (provider.chatAndTool) { + await expect( + page.getByRole("heading", { name: "Choose how to connect" }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: /Chat with an agent/ }), + ).toBeVisible(); + await expect( + page.getByRole("button", { + name: /Use this connection as an agent tool/, + }), + ).toBeVisible(); + const chatSetupUrl = page.url(); + const toolHref = new URL(chatSetupUrl).searchParams.get("toolHref"); + expect(toolHref).toBeTruthy(); + await page + .getByRole("button", { + name: /Use this connection as an agent tool/, + }) + .click(); + await expect(page).toHaveURL(/\/apps\/connect\?/); + expect(new URL(page.url()).searchParams.get("source")).toBe( + provider.provider, + ); + await page.goto(chatSetupUrl); + await expect( + page.getByRole("heading", { name: "Choose how to connect" }), + ).toBeVisible(); + await page.getByRole("button", { name: /Chat with an agent/ }).click(); + } else { + const chatOnlySetupUrl = new URL(page.url()); + expect(chatOnlySetupUrl.searchParams.get("purpose")).toBe("chat"); + expect(chatOnlySetupUrl.searchParams.get("toolHref")).toBeNull(); + await expect( + page.getByRole("heading", { name: "Choose how to connect" }), + ).toHaveCount(0); + } + + if (provider.provider === "github") { + await exerciseGitHubReviewSetup(page, mock, seed, provider, testInfo); + return; + } + + await expect( + page.getByRole("heading", { + name: "Which agent do you want to chat with?", + }), + ).toBeVisible(); + await expectSetupRail(page, true); + await selectMaya(page); + if (provider.provider === "slack") { + await page.getByText("Advanced", { exact: true }).click(); + await page.getByRole("button", { name: "Create manually", exact: true }).click(); + } + await expect.poll(() => mock.createdWithAgentId).toBe(seed.agentId); + expect(mock.createdWithAgentId).not.toBe(seed.otherAgentId); + await expect( + page.getByRole("button", { name: "Choose an active agent" }), + ).toHaveCount(0); + await expect( + page.getByRole("heading", { name: provider.setupHeading }), + ).toBeVisible(); + await expect( + page.getByText(PROVIDER_LIFECYCLE_COPY[provider.provider].reconnect, { + exact: false, + }), + ).toHaveCount(0); + await expectSetupRail(page); + await expectMinimumProviderSetup(page, provider); + await fillProviderSetup(page, provider); + + if (provider.provider === "telegram") { + const submittedToken = "123456:e2e-redacted"; + // The next step intentionally has its own identity-readiness alert. + // Assert that this failed setup attempt clears, not that all alerts + // disappear during the transition between two valid wizard states. + const setupAlert = page.getByRole("alert").filter({ + has: page.getByText("Connection failed", { exact: true }), + }); + await expect(setupAlert).toContainText("Connection failed"); + await expect(setupAlert).toContainText( + "Telegram rejected bot token [redacted]. Confirm the token in BotFather and try again.", + ); + await expect(page.locator("body")).not.toContainText(submittedToken); + const tokenInput = page.getByLabel("Bot token"); + await expect(tokenInput).toHaveAttribute("type", "password"); + await expect(tokenInput).toHaveValue(submittedToken); + await tokenInput.focus(); + await tokenInput.press("Tab"); + await expect(setupAlert).toBeVisible(); + + await page.getByRole("button", { name: provider.setupButton }).click(); + await expect( + page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), + ).toBeVisible(); + await expect(setupAlert).toHaveCount(0); + expect(mock.setupAttempts).toBe(2); + } + + if (provider.provider === "slack") { + await expect(page.getByRole("heading", { name: "Verify Slack connection" })).toBeVisible(); + await expect(page.getByText("Slack needs to confirm that it can reach your Paperclip instance.")).toBeVisible(); + mock.setWebhookVerified(); + await expect(page.getByRole("heading", { name: "Connect your Slack account" })).toBeVisible(); + await expect(page.getByText("/maya connect", { exact: true })).toBeVisible(); + await page.getByRole("button", { name: "Link Test operator to my Paperclip account" }).click(); + await page.getByRole("button", { name: "Continue to message test" }).click(); + } + + await expect( + page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: provider.provider === "slack" ? "Done" : "I've sent the test message" }), + ).toBeVisible(); + if (provider.provider !== "slack") { + await expect( + page.getByRole("heading", { + name: "Link the account you’re testing", + }), + ).toBeVisible(); + await expect( + page.getByText( + /An observed external account is unlinked, and isolated guest work is off, so it cannot safely start Maya/, + ), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: "Review identity access" }), + ).toBeVisible(); + await page + .getByRole("button", { name: "Review identity access" }) + .click(); + await expect(page).toHaveURL( + new RegExp( + `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/access$`, + ), + ); + await expect( + page.getByRole("button", { name: "Continue setup" }), + ).toBeVisible(); + await page.getByRole("button", { name: "Continue setup" }).click(); + expect(new URL(page.url()).searchParams.get("reconnect")).toBeNull(); + await expect( + page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), + ).toBeVisible(); + } + await expectSetupRail(page); + await expectProviderTryInstructions(page, provider); + expect(mock.configuredCredentialKeys).toEqual( + expectedCredentialKeys(provider.provider), + ); + await page + .getByRole("button", { name: provider.provider === "slack" ? "Done" : "I've sent the test message" }) + .click(); + + await expect(page).toHaveURL( + new RegExp( + `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/settings$`, + ), + ); + await expect( + page.getByRole("heading", { name: "Maya", exact: true }), + ).toBeVisible(); + await expect( + page.getByText(provider.accountLabel, { exact: true }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: "Continue setup" }), + ).toHaveCount(0); + await expect(page.getByText("Change agent", { exact: true })).toHaveCount( + 0, + ); + await expect(page.getByRole("navigation", { name: "Chat connection" }).getByRole("link")).toHaveCount(4); + for (const tab of ["Settings", "Access", "Conversations", "Activity"]) { + await expect(page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: tab , exact: true })).toBeVisible(); + } + await expect( + page.getByRole("heading", { name: provider.provider === "slack" ? "Allowed Channels" : "Destinations" }), + ).toBeVisible(); + if (provider.provider === "slack") { + await expect(page.getByRole("heading", { name: "Allowed Channels" })).toBeVisible(); + await expect(page.getByRole("button", { name: "Send me a test message" })).toBeVisible(); + await expect(page.getByRole("link", { name: "Open Slack configuration" })).toBeVisible(); + await expect(page.getByText("Message in a channel", { exact: true })).toHaveCount(0); + await expect(page.getByText("Agent avatar", { exact: true })).toHaveCount(0); + await expect(page.getByRole("link", { name: "View message" })).toHaveCount(0); + } + + await expect( + page.getByRole("switch", { + name: `Enable ${provider.resourceLabel}`, + }), + ).toBeVisible(); + await expect( + page.getByText(provider.resourceLabel, { exact: true }), + ).toBeVisible(); + await expect( + page.getByText(provider.secondaryResourceLabel, { exact: true }), + ).toBeVisible(); + await expect( + page.getByRole("switch", { + name: `Enable ${provider.secondaryResourceLabel}`, + }), + ).not.toBeChecked(); + await page + .getByRole("switch", { name: `Enable ${provider.resourceLabel}` }) + .click(); + await expect.poll(() => mock.updatedResource).toBe(true); + expect(mock.resourceUpdates.at(-1)).toEqual([ + { id: `resource-${provider.provider}`, enabled: true }, + ]); + + const directMessages = page.getByRole("switch", { + name: "Allow direct messages", + }); + await expect(directMessages).toBeVisible(); + if (provider.provider === "discord") { + await expect( + page.getByText( + "People must also enable Direct Messages in their shared Discord server’s Privacy Settings.", + ), + ).toBeVisible(); + } + await directMessages.click(); + await expect.poll(() => mock.allowDirectMessages).toBe(true); + if (provider.provider === "microsoft-teams") { + const groupChats = page.getByRole("switch", { + name: "Allow group chats", + }); + await expect(groupChats).toBeVisible(); + await groupChats.click(); + await expect.poll(() => mock.allowGroupChats).toBe(true); + } + for (const lifecycleAction of [ + "Pause", + "Resume", + "Reconnect", + "Remove connection", + ]) { + await expect( + page.getByRole("button", { + name: lifecycleAction, + exact: true, + }), + ).toHaveCount(0); + } + await expect( + page.getByRole("switch", { name: "Allow unlinked people" }), + ).toHaveCount(0); + + await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Access", exact: true }).click(); + await expect( + page.getByRole("heading", { name: "People" }), + ).toBeVisible(); + if (provider.provider === "slack") { + await page.context().grantPermissions(["clipboard-read", "clipboard-write"], { origin: new URL(page.url()).origin }); + await page.getByRole("button", { name: "Invite people", exact: true }).click(); + await page.getByRole("dialog").getByRole("button", { name: "Copy invitation" }).click(); + await expect.poll(() => page.evaluate(() => navigator.clipboard.readText())).toContain("connect"); + expect(await page.evaluate(() => navigator.clipboard.readText())).not.toContain("token="); + await page.getByRole("dialog").getByRole("button", { name: "Close", exact: true }).click(); + } + await page.locator("summary").filter({ hasText: "Guest access" }).click(); + await expect(page.getByText(/Requests are refused when isolation is unavailable/)).toBeVisible(); + const allowUnlinked = page.getByRole("switch", { + name: "Allow unlinked people", + }); + await expect(allowUnlinked).toBeVisible(); + await allowUnlinked.click(); + await expect.poll(() => mock.allowUnlinkedPeople).toBe(true); + await expect( + page.getByText("Ada Lovelace", { exact: true }), + ).toBeVisible(); + await expect( + page.getByText("Grace Hopper", { exact: true }), + ).toBeVisible(); + + await expect( + page.getByRole("button", { name: "Create confirmation link" }), + ).toBeVisible(); + await page + .context() + .grantPermissions(["clipboard-read", "clipboard-write"], { + origin: new URL(page.url()).origin, + }); + await page.getByRole("button", { name: "Create confirmation link" }).click(); + await expect + .poll(() => mock.linkIntentPrincipalId) + .toBe(`principal-${provider.provider}`); + const confirmationUrl = `https://paperclip.example.test/${seed.prefix}/chat-identity/confirm?token=e2e-redacted`; + await expect( + page.getByText(confirmationUrl, { exact: true }), + ).toBeVisible(); + await page.getByRole("button", { name: "Copy link" }).click(); + await expect + .poll(() => page.evaluate(() => navigator.clipboard.readText())) + .toBe(confirmationUrl); + await expect( + page.getByText("Confirmation link copied", { exact: true }), + ).toBeVisible(); + await page.getByRole("listitem").filter({ hasText: "Grace Hopper" }).getByRole("button", { name: "Disconnect", exact: true }).click(); + await expect + .poll(() => mock.revokedPrincipalId) + .toBe(`principal-${provider.provider}-linked`); + await expect(page.getByText("Disconnected", { exact: true })).toBeVisible(); + + await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Conversations", exact: true }).click(); + await expect( + page.getByRole("list", { name: "Conversations", exact: true }), + ).toBeVisible(); + await expect( + page.getByText(`Investigate ${provider.name} delivery`, { exact: true }), + ).toBeVisible(); + await expect( + page.getByText(provider.resourceLabel, { exact: true }), + ).toHaveCount(1); + const providerLink = page.getByRole("link", { + name: provider.resourceLabel, + }); + await expect(providerLink).toHaveAttribute("href", provider.externalUrl); + const taskLink = page.getByRole("link", { name: `Investigate ${provider.name} delivery` }); + await expect(taskLink).toHaveAttribute( + "href", + new RegExp(`/${seed.prefix}/issues/issue-${provider.provider}$`), + ); + mock.conversationState = "waiting"; + await expect(page.getByText("waiting", { exact: true })).toBeVisible({ + timeout: 8_000, + }); + + await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Activity", exact: true }).click(); + await expect( + page.getByRole("heading", { name: "Connection activity" }), + ).toBeVisible(); + await expect( + page.getByText( + `Inbound ${provider.name} delivery could not be processed`, + ), + ).toBeVisible(); + await expect( + page.getByText(`Published safe output to ${provider.name}`), + ).toBeVisible(); + await expect(page.getByText("Recent activity", { exact: true })).toBeVisible(); + await page.getByText("Connection health and controls", { exact: true }).click(); + const deliveryTimestamp = page + .getByText(`Inbound ${provider.name} delivery could not be processed`) + .locator("..") + .locator("time"); + await expect(deliveryTimestamp).toHaveText( + /\w+ \d+, \d{4}, \d{1,2}:\d{2}:\d{2} [AP]M/, + ); + await expect(deliveryTimestamp).toHaveAttribute( + "datetime", + /\d{4}-\d{2}-\d{2}T/, + ); + await expect(deliveryTimestamp).toHaveAttribute( + "title", + (await deliveryTimestamp.getAttribute("datetime"))!, + ); + await expect(page.getByText("xoxb-e2e-redacted")).toHaveCount(0); + await expect(page.getByText("teams-client-secret")).toHaveCount(0); + await expect(page.getByText("github-webhook-secret")).toHaveCount(0); + + // A provider callback does not cause a Board mutation. Keep this tab + // mounted and focused: neither navigation nor Replay may refresh it. + mock.liveActivitySummary = `${provider.name} reaction removed while viewing Activity`; + mock.setStatus("paused"); + await expect( + page.getByText(mock.liveActivitySummary, { exact: true }), + ).toBeVisible({ timeout: 8_000 }); + await expect( + page.getByRole("button", { name: "Resume", exact: true }), + ).toBeVisible({ timeout: 8_000 }); + mock.setStatus("active"); + await expect( + page.getByRole("button", { name: "Pause", exact: true }), + ).toBeVisible({ timeout: 8_000 }); + + await page.getByRole("button", { name: "Replay" }).click(); + await expect.poll(() => mock.replayedDelivery).toBe(true); + + await expect( + page.getByRole("button", { name: "Pause", exact: true }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: "Remove connection", exact: true }), + ).toBeVisible(); + await expect( + page.getByText(PROVIDER_LIFECYCLE_COPY[provider.provider].reconnect, { + exact: true, + }), + ).toBeVisible(); + await page.getByRole("button", { name: "Pause", exact: true }).click(); + await expect( + page.getByRole("button", { name: "Resume", exact: true }), + ).toBeVisible(); + await page.getByRole("button", { name: "Resume", exact: true }).click(); + await expect( + page.getByRole("button", { name: "Pause", exact: true }), + ).toBeVisible(); + await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume"]); + + mock.setStatus("attention"); + await page.reload(); + await page.getByText("Connection health and controls", { exact: true }).click(); + await expect( + page.getByRole("button", { name: "Reconnect", exact: true }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: "Remove connection" }), + ).toBeVisible(); + await page + .getByRole("button", { name: "Reconnect", exact: true }) + .click(); + await expect(page).toHaveURL( + new RegExp( + `/${seed.prefix}/apps/chat/connect\\?.*resume=endpoint-${provider.provider}`, + ), + ); + expect(new URL(page.url()).searchParams.get("reconnect")).toBe("1"); + await expect( + page.getByRole("heading", { + name: provider.provider === "slack" ? "Add Slack credentials" : provider.setupHeading, + }), + ).toBeVisible(); + await expect( + page.getByRole("button", { name: "Choose an active agent" }), + ).toHaveCount(0); + + mock.setStatus("active"); + await page.goto( + `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/activity`, + ); + await page.getByText("Connection health and controls", { exact: true }).click(); + await page.getByRole("button", { name: "Remove connection" }).click(); + const confirmation = page.getByRole("alertdialog"); + await expect(confirmation).toContainText("Remove this connection?"); + await expect(confirmation).toContainText( + PROVIDER_LIFECYCLE_COPY[provider.provider].remove, + ); + await confirmation + .getByRole("button", { name: "Remove connection" }) + .click(); + await expect(page).toHaveURL(new RegExp(`/${seed.prefix}/apps$`)); + await expect.poll(() => mock.removed).toBe(true); + await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume", "remove"]); + }); + } +}); diff --git a/tests/e2e/chat-adapters-ui-providers.spec.ts b/tests/e2e/chat-adapters-ui-providers.spec.ts index 3ea87a5ab35..e04df4d0774 100644 --- a/tests/e2e/chat-adapters-ui-providers.spec.ts +++ b/tests/e2e/chat-adapters-ui-providers.spec.ts @@ -1,23 +1,15 @@ import { oauthCallbackInterstitialHtml } from "../../server/src/lib/oauth-browser-return"; import { createServer } from "node:http"; -import { readFile } from "node:fs/promises"; -import { expect, test, type Page, type TestInfo } from "@playwright/test"; +import { expect, test, type Page } from "@playwright/test"; import { - expectMinimumProviderSetup, - expectProviderTryInstructions, expectSetupRail, - fillProviderSetup, installChatControlPlaneMock, seedCompanyAndAgent, selectMaya, - PROVIDER_LIFECYCLE_COPY, PROVIDERS, - expectedCredentialKeys, type ProviderCase, type Seed, - type ChatMock, - GITHUB_PRIVATE_KEY_PASTE_FIXTURE, } from "./chat-adapters-ui.shared"; async function expectCompletedSlackSetupCloses(page: Page, seed: Seed) { @@ -45,110 +37,6 @@ async function findConnectorBySearch(page: Page, query: string, slug: string) { return connector; } -async function exerciseGitHubReviewSetup(page: Page, mock: ChatMock, seed: Seed, provider: ProviderCase, testInfo: TestInfo) { - await expect(page.getByRole("heading", { name: "Choose agent", exact: true })).toBeVisible(); - await page.getByRole("button", { name: "Select agent…", exact: true }).click(); - await page.getByRole("button", { name: "Select Maya", exact: true }).click(); - await expect(page.getByText("Maya is not configured for low-trust review")).toBeVisible(); - await expect(page.getByRole("link", { name: "Learn about low-trust agents" })).toHaveAttribute("href", /trust-and-low-trust-review/); - await testInfo.attach("Choose agent — inline low-trust warning", { body: await page.screenshot(), contentType: "image/png" }); - await page.getByRole("button", { name: "Change Maya to a low trust agent" }).click(); - await expect(page.getByText("Maya is not configured for low-trust review")).toHaveCount(0); - await page.getByRole("button", { name: "Continue", exact: true }).click(); - await expect.poll(() => mock.createdWithAgentId).toBe(seed.agentId); - await expect(page.getByRole("heading", { name: "Connect GitHub", exact: true })).toBeVisible(); - await expect(page.getByLabel("GitHub account")).toHaveValue("personal"); - await expect(page.getByLabel("App name", { exact: true })).toHaveValue("Maya"); - await page.getByLabel("GitHub account").selectOption("organization"); - await page.getByLabel("Organization", { exact: true }).fill("paperclip-ai"); - await testInfo.attach("Connect GitHub — organization", { body: await page.screenshot(), contentType: "image/png" }); - await page.getByRole("button", { name: "Save & exit", exact: true }).click(); - await page.goto(`/${seed.prefix}/apps/chat/connect?provider=github&purpose=chat&resume=endpoint-github`); - await expect(page.getByLabel("GitHub account")).toHaveValue("organization"); - await expect(page.getByLabel("Organization", { exact: true })).toHaveValue("paperclip-ai"); - await expect(page.getByRole("button", { name: "Select agent…", exact: true })).toHaveCount(0); - // Existing-App recovery stays available and preserves entered credentials after failure. - await page.getByRole("button", { name: "I already have an App" }).click(); - await page.getByLabel("App ID", { exact: true }).fill("123456"); - await page.getByLabel("Private key", { exact: true }).evaluate((element, privateKey) => { - const clipboardData = new DataTransfer(); - clipboardData.setData("text/plain", privateKey); - element.dispatchEvent(new ClipboardEvent("paste", { bubbles: true, cancelable: true, clipboardData })); - }, GITHUB_PRIVATE_KEY_PASTE_FIXTURE); - await page.getByLabel("Webhook secret", { exact: true }).fill("github-webhook-secret"); - const rejectedAppResponse = page.waitForResponse((response) => - response.url().endsWith("/api/chat-endpoints/endpoint-github/github/app") && response.request().method() === "POST", - ); - await page.getByRole("button", { name: "Connect existing App", exact: true }).click(); - expect((await rejectedAppResponse).request().postDataJSON().privateKey).toBe(GITHUB_PRIVATE_KEY_PASTE_FIXTURE); - await expect(page.getByRole("alert")).toContainText("GitHub rejected the supplied App credentials."); - await expect(page.getByLabel("Private key", { exact: true })).toHaveValue(""); - await expect(page.getByText("Private key loaded. Paste or upload another key to replace it.", { exact: true })).toBeVisible(); - const retriedAppResponse = page.waitForResponse((response) => - response.url().endsWith("/api/chat-endpoints/endpoint-github/github/app") && response.request().method() === "POST", - ); - await page.getByRole("button", { name: "Connect existing App", exact: true }).click(); - expect((await retriedAppResponse).request().postDataJSON().privateKey).toBe(GITHUB_PRIVATE_KEY_PASTE_FIXTURE); - await expect(page.getByRole("heading", { name: "Connect your account", exact: true })).toBeVisible(); - await page.getByLabel("Existing GitHub connection").selectOption("personal-github"); - await expect(page.getByRole("button", { name: "Check my account" })).toBeVisible(); - await page.getByRole("button", { name: "Check my account" }).click(); - expect(mock.githubIdentityConfirmed).toBe(false); - await page.getByRole("button", { name: "Confirm my account" }).click(); - await expect.poll(() => mock.githubIdentityConfirmed).toBe(true); - await expect(page.getByRole("heading", { name: "GitHub connected", exact: true })).toBeVisible(); - await expect(page.getByText("1 repository enabled", { exact: true })).toBeVisible(); - await expect(page.getByRole("button", { name: /Finish|Verify connection|Refresh access|Save repositories/ })).toHaveCount(0); - await page.getByRole("dialog").getByRole("button", { name: "Done", exact: true }).click(); - await expect(page).toHaveURL(/\/apps\/chat\/endpoint-github\/settings$/); - const nav = page.getByRole("navigation", { name: "Chat connection" }); - for (const tab of ["Settings", "Access", "Reviews", "Conversations", "Activity"]) { - await expect(nav.getByRole("link", { name: tab, exact: true })).toBeVisible(); - } - await nav.getByRole("link", { name: "Access", exact: true }).click(); - await expect(page.getByRole("heading", { name: "People", exact: true })).toBeVisible(); - await nav.getByRole("link", { name: "Reviews", exact: true }).click(); - await expect(page.getByText("No reviews yet", { exact: true })).toBeVisible(); - await nav.getByRole("link", { name: "Conversations", exact: true }).click(); - await expect(page.getByRole("list", { name: "Conversations", exact: true })).toBeVisible(); - await nav.getByRole("link", { name: "Activity", exact: true }).click(); - await expect(page.getByRole("heading", { name: "Connection activity", exact: true })).toBeVisible(); - await page.getByText("Connection health and controls", { exact: true }).click(); - await page.getByRole("button", { name: "Pause", exact: true }).click(); - await page.getByRole("button", { name: "Resume", exact: true }).click(); - await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume"]); - await page.getByRole("button", { name: "Replay failed delivery", exact: true }).click(); - await expect.poll(() => mock.replayedDelivery).toBe(true); - mock.setStatus("attention"); - await page.reload(); - const recoveryNotice = page.getByRole("region", { name: "GitHub connection needs repair" }); - await expect(recoveryNotice).toBeVisible(); - await recoveryNotice.getByRole("link", { name: "Reconnect GitHub", exact: true }).click(); - await expect(page.getByRole("heading", { name: "Reconnect GitHub", exact: true })).toBeVisible(); - await expect(page.getByText(/using its saved credentials/)).toBeVisible(); - await expect(page.getByRole("button", { name: "Choose an agent", exact: true })).toHaveCount(0); - await expect(page.getByLabel("Private key", { exact: true })).toHaveCount(0); - const reconnectResponse = page.waitForResponse((response) => - response.url().endsWith("/api/chat-endpoints/endpoint-github/setup") && - response.request().method() === "POST" && - response.request().postDataJSON().action === "reconnect", - ); - await page.getByRole("button", { name: "Reconnect saved App", exact: true }).click(); - const reconnected = await reconnectResponse; - expect(reconnected.request().postDataJSON()).toEqual({ action: "reconnect" }); - expect(await reconnected.json()).toMatchObject({ assignedAgentId: seed.agentId, assignedAgentName: "Maya" }); - await expect(page.getByRole("heading", { name: "GitHub connected", exact: true })).toBeVisible(); - mock.setStatus("active"); - await page.getByRole("dialog").getByRole("button", { name: "Done", exact: true }).click(); - await expect(page.getByRole("heading", { name: "Maya", exact: true })).toBeVisible(); - await nav.getByRole("link", { name: "Activity", exact: true }).click(); - await page.getByText("Connection health and controls", { exact: true }).click(); - await page.getByRole("button", { name: "Remove connection", exact: true }).click(); - await page.getByRole("alertdialog").getByRole("button", { name: "Remove connection", exact: true }).click(); - await expect.poll(() => mock.removed).toBe(true); - await expect(page).toHaveURL(new RegExp(`/${seed.prefix}/apps$`)); -} - /** * Native chat-connector provider setup coverage: adapter install/lifecycle * flows and the iMessage Photon variant. Shared fixtures and the @@ -519,482 +407,6 @@ test.describe("native chat adapter UI", () => { } }); } - - for (const provider of PROVIDERS) { - test(`${provider.name}: catalog, setup, and connection management tabs`, async ({ - page, - }, testInfo) => { - const mock = await installChatControlPlaneMock(page, provider, seed, { - enableChatConnectors: provider.provider !== "github", - enableGitHubReviewBots: provider.provider === "github", - }); - - await page.goto(`/${seed.prefix}/apps`); - await expect( - page.getByRole("heading", { name: "Connectors" }), - ).toBeVisible({ timeout: 30_000 }); - let connector = await findConnectorBySearch(page, provider.name, provider.slug); - if (provider.provider === "github") { - const tools = await findConnectorBySearch(page, "GitHub", "github"); - await tools.getByRole("button", { name: "Add key GitHub", exact: true }).click(); - await page.getByRole("button", { name: "Change", exact: true }).click(); - await expect(page.getByRole("heading", { name: "Connect GitHub as" })).toBeVisible(); - await expect(page.getByRole("heading", { name: "Choose how to connect" })).toHaveCount(0); - await page.goto(`/${seed.prefix}/apps`); - connector = await findConnectorBySearch(page, provider.name, provider.slug); - } - await connector - .getByRole("button", { name: `Connect ${provider.provider === "github" ? "GitHub Code Review Bot" : provider.name}` }) - .click(); - - if (provider.chatAndTool) { - await expect( - page.getByRole("heading", { name: "Choose how to connect" }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: /Chat with an agent/ }), - ).toBeVisible(); - await expect( - page.getByRole("button", { - name: /Use this connection as an agent tool/, - }), - ).toBeVisible(); - const chatSetupUrl = page.url(); - const toolHref = new URL(chatSetupUrl).searchParams.get("toolHref"); - expect(toolHref).toBeTruthy(); - await page - .getByRole("button", { - name: /Use this connection as an agent tool/, - }) - .click(); - await expect(page).toHaveURL(/\/apps\/connect\?/); - expect(new URL(page.url()).searchParams.get("source")).toBe( - provider.provider, - ); - await page.goto(chatSetupUrl); - await expect( - page.getByRole("heading", { name: "Choose how to connect" }), - ).toBeVisible(); - await page.getByRole("button", { name: /Chat with an agent/ }).click(); - } else { - const chatOnlySetupUrl = new URL(page.url()); - expect(chatOnlySetupUrl.searchParams.get("purpose")).toBe("chat"); - expect(chatOnlySetupUrl.searchParams.get("toolHref")).toBeNull(); - await expect( - page.getByRole("heading", { name: "Choose how to connect" }), - ).toHaveCount(0); - } - - if (provider.provider === "github") { - await exerciseGitHubReviewSetup(page, mock, seed, provider, testInfo); - return; - } - - await expect( - page.getByRole("heading", { - name: "Which agent do you want to chat with?", - }), - ).toBeVisible(); - await expectSetupRail(page, true); - await selectMaya(page); - if (provider.provider === "slack") { - await page.getByText("Advanced", { exact: true }).click(); - await page.getByRole("button", { name: "Create manually", exact: true }).click(); - } - await expect.poll(() => mock.createdWithAgentId).toBe(seed.agentId); - expect(mock.createdWithAgentId).not.toBe(seed.otherAgentId); - await expect( - page.getByRole("button", { name: "Choose an active agent" }), - ).toHaveCount(0); - await expect( - page.getByRole("heading", { name: provider.setupHeading }), - ).toBeVisible(); - await expect( - page.getByText(PROVIDER_LIFECYCLE_COPY[provider.provider].reconnect, { - exact: false, - }), - ).toHaveCount(0); - await expectSetupRail(page); - await expectMinimumProviderSetup(page, provider); - await fillProviderSetup(page, provider); - - if (provider.provider === "telegram") { - const submittedToken = "123456:e2e-redacted"; - // The next step intentionally has its own identity-readiness alert. - // Assert that this failed setup attempt clears, not that all alerts - // disappear during the transition between two valid wizard states. - const setupAlert = page.getByRole("alert").filter({ - has: page.getByText("Connection failed", { exact: true }), - }); - await expect(setupAlert).toContainText("Connection failed"); - await expect(setupAlert).toContainText( - "Telegram rejected bot token [redacted]. Confirm the token in BotFather and try again.", - ); - await expect(page.locator("body")).not.toContainText(submittedToken); - const tokenInput = page.getByLabel("Bot token"); - await expect(tokenInput).toHaveAttribute("type", "password"); - await expect(tokenInput).toHaveValue(submittedToken); - await tokenInput.focus(); - await tokenInput.press("Tab"); - await expect(setupAlert).toBeVisible(); - - await page.getByRole("button", { name: provider.setupButton }).click(); - await expect( - page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), - ).toBeVisible(); - await expect(setupAlert).toHaveCount(0); - expect(mock.setupAttempts).toBe(2); - } - - if (provider.provider === "slack") { - await expect(page.getByRole("heading", { name: "Verify Slack connection" })).toBeVisible(); - await expect(page.getByText("Slack needs to confirm that it can reach your Paperclip instance.")).toBeVisible(); - mock.setWebhookVerified(); - await expect(page.getByRole("heading", { name: "Connect your Slack account" })).toBeVisible(); - await expect(page.getByText("/maya connect", { exact: true })).toBeVisible(); - await page.getByRole("button", { name: "Link Test operator to my Paperclip account" }).click(); - await page.getByRole("button", { name: "Continue to message test" }).click(); - } - - await expect( - page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: provider.provider === "slack" ? "Done" : "I've sent the test message" }), - ).toBeVisible(); - if (provider.provider !== "slack") { - await expect( - page.getByRole("heading", { - name: "Link the account you’re testing", - }), - ).toBeVisible(); - await expect( - page.getByText( - /An observed external account is unlinked, and isolated guest work is off, so it cannot safely start Maya/, - ), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: "Review identity access" }), - ).toBeVisible(); - await page - .getByRole("button", { name: "Review identity access" }) - .click(); - await expect(page).toHaveURL( - new RegExp( - `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/access$`, - ), - ); - await expect( - page.getByRole("button", { name: "Continue setup" }), - ).toBeVisible(); - await page.getByRole("button", { name: "Continue setup" }).click(); - expect(new URL(page.url()).searchParams.get("reconnect")).toBeNull(); - await expect( - page.getByRole("heading", { name: `Try Maya in ${provider.name}` }), - ).toBeVisible(); - } - await expectSetupRail(page); - await expectProviderTryInstructions(page, provider); - expect(mock.configuredCredentialKeys).toEqual( - expectedCredentialKeys(provider.provider), - ); - await page - .getByRole("button", { name: provider.provider === "slack" ? "Done" : "I've sent the test message" }) - .click(); - - await expect(page).toHaveURL( - new RegExp( - `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/settings$`, - ), - ); - await expect( - page.getByRole("heading", { name: "Maya", exact: true }), - ).toBeVisible(); - await expect( - page.getByText(provider.accountLabel, { exact: true }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: "Continue setup" }), - ).toHaveCount(0); - await expect(page.getByText("Change agent", { exact: true })).toHaveCount( - 0, - ); - await expect(page.getByRole("navigation", { name: "Chat connection" }).getByRole("link")).toHaveCount(4); - for (const tab of ["Settings", "Access", "Conversations", "Activity"]) { - await expect(page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: tab , exact: true })).toBeVisible(); - } - await expect( - page.getByRole("heading", { name: provider.provider === "slack" ? "Allowed Channels" : "Destinations" }), - ).toBeVisible(); - if (provider.provider === "slack") { - await expect(page.getByRole("heading", { name: "Allowed Channels" })).toBeVisible(); - await expect(page.getByRole("button", { name: "Send me a test message" })).toBeVisible(); - await expect(page.getByRole("link", { name: "Open Slack configuration" })).toBeVisible(); - await expect(page.getByText("Message in a channel", { exact: true })).toHaveCount(0); - await expect(page.getByText("Agent avatar", { exact: true })).toHaveCount(0); - await expect(page.getByRole("link", { name: "View message" })).toHaveCount(0); - } - - await expect( - page.getByRole("switch", { - name: `Enable ${provider.resourceLabel}`, - }), - ).toBeVisible(); - await expect( - page.getByText(provider.resourceLabel, { exact: true }), - ).toBeVisible(); - await expect( - page.getByText(provider.secondaryResourceLabel, { exact: true }), - ).toBeVisible(); - await expect( - page.getByRole("switch", { - name: `Enable ${provider.secondaryResourceLabel}`, - }), - ).not.toBeChecked(); - await page - .getByRole("switch", { name: `Enable ${provider.resourceLabel}` }) - .click(); - await expect.poll(() => mock.updatedResource).toBe(true); - expect(mock.resourceUpdates.at(-1)).toEqual([ - { id: `resource-${provider.provider}`, enabled: true }, - ]); - - const directMessages = page.getByRole("switch", { - name: "Allow direct messages", - }); - await expect(directMessages).toBeVisible(); - if (provider.provider === "discord") { - await expect( - page.getByText( - "People must also enable Direct Messages in their shared Discord server’s Privacy Settings.", - ), - ).toBeVisible(); - } - await directMessages.click(); - await expect.poll(() => mock.allowDirectMessages).toBe(true); - if (provider.provider === "microsoft-teams") { - const groupChats = page.getByRole("switch", { - name: "Allow group chats", - }); - await expect(groupChats).toBeVisible(); - await groupChats.click(); - await expect.poll(() => mock.allowGroupChats).toBe(true); - } - for (const lifecycleAction of [ - "Pause", - "Resume", - "Reconnect", - "Remove connection", - ]) { - await expect( - page.getByRole("button", { - name: lifecycleAction, - exact: true, - }), - ).toHaveCount(0); - } - await expect( - page.getByRole("switch", { name: "Allow unlinked people" }), - ).toHaveCount(0); - - await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Access", exact: true }).click(); - await expect( - page.getByRole("heading", { name: "People" }), - ).toBeVisible(); - if (provider.provider === "slack") { - await page.context().grantPermissions(["clipboard-read", "clipboard-write"], { origin: new URL(page.url()).origin }); - await page.getByRole("button", { name: "Invite people", exact: true }).click(); - await page.getByRole("dialog").getByRole("button", { name: "Copy invitation" }).click(); - await expect.poll(() => page.evaluate(() => navigator.clipboard.readText())).toContain("connect"); - expect(await page.evaluate(() => navigator.clipboard.readText())).not.toContain("token="); - await page.getByRole("dialog").getByRole("button", { name: "Close", exact: true }).click(); - } - await page.locator("summary").filter({ hasText: "Guest access" }).click(); - await expect(page.getByText(/Requests are refused when isolation is unavailable/)).toBeVisible(); - const allowUnlinked = page.getByRole("switch", { - name: "Allow unlinked people", - }); - await expect(allowUnlinked).toBeVisible(); - await allowUnlinked.click(); - await expect.poll(() => mock.allowUnlinkedPeople).toBe(true); - await expect( - page.getByText("Ada Lovelace", { exact: true }), - ).toBeVisible(); - await expect( - page.getByText("Grace Hopper", { exact: true }), - ).toBeVisible(); - - await expect( - page.getByRole("button", { name: "Create confirmation link" }), - ).toBeVisible(); - await page - .context() - .grantPermissions(["clipboard-read", "clipboard-write"], { - origin: new URL(page.url()).origin, - }); - await page.getByRole("button", { name: "Create confirmation link" }).click(); - await expect - .poll(() => mock.linkIntentPrincipalId) - .toBe(`principal-${provider.provider}`); - const confirmationUrl = `https://paperclip.example.test/${seed.prefix}/chat-identity/confirm?token=e2e-redacted`; - await expect( - page.getByText(confirmationUrl, { exact: true }), - ).toBeVisible(); - await page.getByRole("button", { name: "Copy link" }).click(); - await expect - .poll(() => page.evaluate(() => navigator.clipboard.readText())) - .toBe(confirmationUrl); - await expect( - page.getByText("Confirmation link copied", { exact: true }), - ).toBeVisible(); - await page.getByRole("listitem").filter({ hasText: "Grace Hopper" }).getByRole("button", { name: "Disconnect", exact: true }).click(); - await expect - .poll(() => mock.revokedPrincipalId) - .toBe(`principal-${provider.provider}-linked`); - await expect(page.getByText("Disconnected", { exact: true })).toBeVisible(); - - await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Conversations", exact: true }).click(); - await expect( - page.getByRole("list", { name: "Conversations", exact: true }), - ).toBeVisible(); - await expect( - page.getByText(`Investigate ${provider.name} delivery`, { exact: true }), - ).toBeVisible(); - await expect( - page.getByText(provider.resourceLabel, { exact: true }), - ).toHaveCount(1); - const providerLink = page.getByRole("link", { - name: provider.resourceLabel, - }); - await expect(providerLink).toHaveAttribute("href", provider.externalUrl); - const taskLink = page.getByRole("link", { name: `Investigate ${provider.name} delivery` }); - await expect(taskLink).toHaveAttribute( - "href", - new RegExp(`/${seed.prefix}/issues/issue-${provider.provider}$`), - ); - mock.conversationState = "waiting"; - await expect(page.getByText("waiting", { exact: true })).toBeVisible({ - timeout: 8_000, - }); - - await page.getByRole("navigation", { name: "Chat connection" }).getByRole("link", { name: "Activity", exact: true }).click(); - await expect( - page.getByRole("heading", { name: "Connection activity" }), - ).toBeVisible(); - await expect( - page.getByText( - `Inbound ${provider.name} delivery could not be processed`, - ), - ).toBeVisible(); - await expect( - page.getByText(`Published safe output to ${provider.name}`), - ).toBeVisible(); - await expect(page.getByText("Recent activity", { exact: true })).toBeVisible(); - await page.getByText("Connection health and controls", { exact: true }).click(); - const deliveryTimestamp = page - .getByText(`Inbound ${provider.name} delivery could not be processed`) - .locator("..") - .locator("time"); - await expect(deliveryTimestamp).toHaveText( - /\w+ \d+, \d{4}, \d{1,2}:\d{2}:\d{2} [AP]M/, - ); - await expect(deliveryTimestamp).toHaveAttribute( - "datetime", - /\d{4}-\d{2}-\d{2}T/, - ); - await expect(deliveryTimestamp).toHaveAttribute( - "title", - (await deliveryTimestamp.getAttribute("datetime"))!, - ); - await expect(page.getByText("xoxb-e2e-redacted")).toHaveCount(0); - await expect(page.getByText("teams-client-secret")).toHaveCount(0); - await expect(page.getByText("github-webhook-secret")).toHaveCount(0); - - // A provider callback does not cause a Board mutation. Keep this tab - // mounted and focused: neither navigation nor Replay may refresh it. - mock.liveActivitySummary = `${provider.name} reaction removed while viewing Activity`; - mock.setStatus("paused"); - await expect( - page.getByText(mock.liveActivitySummary, { exact: true }), - ).toBeVisible({ timeout: 8_000 }); - await expect( - page.getByRole("button", { name: "Resume", exact: true }), - ).toBeVisible({ timeout: 8_000 }); - mock.setStatus("active"); - await expect( - page.getByRole("button", { name: "Pause", exact: true }), - ).toBeVisible({ timeout: 8_000 }); - - await page.getByRole("button", { name: "Replay" }).click(); - await expect.poll(() => mock.replayedDelivery).toBe(true); - - await expect( - page.getByRole("button", { name: "Pause", exact: true }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: "Remove connection", exact: true }), - ).toBeVisible(); - await expect( - page.getByText(PROVIDER_LIFECYCLE_COPY[provider.provider].reconnect, { - exact: true, - }), - ).toBeVisible(); - await page.getByRole("button", { name: "Pause", exact: true }).click(); - await expect( - page.getByRole("button", { name: "Resume", exact: true }), - ).toBeVisible(); - await page.getByRole("button", { name: "Resume", exact: true }).click(); - await expect( - page.getByRole("button", { name: "Pause", exact: true }), - ).toBeVisible(); - await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume"]); - - mock.setStatus("attention"); - await page.reload(); - await page.getByText("Connection health and controls", { exact: true }).click(); - await expect( - page.getByRole("button", { name: "Reconnect", exact: true }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: "Remove connection" }), - ).toBeVisible(); - await page - .getByRole("button", { name: "Reconnect", exact: true }) - .click(); - await expect(page).toHaveURL( - new RegExp( - `/${seed.prefix}/apps/chat/connect\\?.*resume=endpoint-${provider.provider}`, - ), - ); - expect(new URL(page.url()).searchParams.get("reconnect")).toBe("1"); - await expect( - page.getByRole("heading", { - name: provider.provider === "slack" ? "Add Slack credentials" : provider.setupHeading, - }), - ).toBeVisible(); - await expect( - page.getByRole("button", { name: "Choose an active agent" }), - ).toHaveCount(0); - - mock.setStatus("active"); - await page.goto( - `/${seed.prefix}/apps/chat/endpoint-${provider.provider}/activity`, - ); - await page.getByText("Connection health and controls", { exact: true }).click(); - await page.getByRole("button", { name: "Remove connection" }).click(); - const confirmation = page.getByRole("alertdialog"); - await expect(confirmation).toContainText("Remove this connection?"); - await expect(confirmation).toContainText( - PROVIDER_LIFECYCLE_COPY[provider.provider].remove, - ); - await confirmation - .getByRole("button", { name: "Remove connection" }) - .click(); - await expect(page).toHaveURL(new RegExp(`/${seed.prefix}/apps$`)); - await expect.poll(() => mock.removed).toBe(true); - await expect.poll(() => mock.lifecycleActions).toEqual(["pause", "resume", "remove"]); - }); - } }); test.describe("iMessage Photon setup and management", () => { diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 0d9da6efcb7..0ea43449e9a 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -49,6 +49,7 @@ if (SKIP_UI_BUILD && !fs.existsSync(UI_DIST_INDEX)) { // `scripts/e2e-shard.mjs` — `scripts/__tests__/e2e-shard.test.mjs` fails if // the two ever drift. export const SERIAL_SPECS = [ + "agent-chat-projects-handoff.spec.ts", "agent-chat-projects.spec.ts", "agent-chat-sessions.spec.ts", "agent-configuration.spec.ts", diff --git a/tests/e2e/start-e2e-server.ts b/tests/e2e/start-e2e-server.ts index 20e7a377618..2aa8918bff4 100644 --- a/tests/e2e/start-e2e-server.ts +++ b/tests/e2e/start-e2e-server.ts @@ -1,19 +1,236 @@ import { randomBytes } from "node:crypto"; import fs from "node:fs"; +import { createRequire } from "node:module"; +import net from "node:net"; import os from "node:os"; import path from "node:path"; -import { createDb } from "../../packages/db/src/client.js"; -import { startEmbeddedPostgresTestDatabase } from "../../packages/db/src/test-embedded-postgres.js"; +import { + applyPendingMigrations, + closeRegisteredClients, + createDb, + ensurePostgresDatabase, +} from "../../packages/db/src/client.js"; +import { loadWithoutEmbeddedPostgresExitHooks } from "../../packages/db/src/embedded-postgres-lifecycle.js"; +import { prepareEmbeddedPostgresNativeRuntime } from "../../packages/db/src/embedded-postgres-native.js"; +import { + computeEmbeddedPostgresTemplateKey, + startEmbeddedPostgresTestDatabase, +} from "../../packages/db/src/test-embedded-postgres.js"; +import { + beforeTestPostgresShutdown, + ownTestPostgres, + type TestPostgresInstance, +} from "../../packages/db/src/test-postgres-owner.js"; // Fast throwaway server bootstrap for Playwright E2E shards. -// Replaces `cli onboard --yes --run` (which runs CLI onboarding + 12 doctor -// checks + fresh durable Postgres initdb/migrations) by: -// 1. Writing the minimal throwaway local_trusted config + secrets key directly. -// 2. Booting a disposable embedded Postgres via `@paperclipai/db`'s migrated -// template cache and disabling durability flushes (`fsync=off`, -// `synchronous_commit=off`, `full_page_writes=off`) so both startup and -// every E2E test write execute at memory speed. -// 3. Starting `server/src/index.ts` directly via `startServer()`. +// Replaces `cli onboard --yes --run` (and avoids building/copying a durable +// template cluster on ephemeral CI runners where only one server boots per job): +// 1. Writes the minimal throwaway local_trusted config + secrets key directly. +// 2. Boots a single disposable embedded Postgres with `initdb --no-sync` and +// non-durable settings (`fsync=off`, `synchronous_commit=off`, +// `full_page_writes=off`, `autovacuum=off`) written to `postgresql.conf` +// BEFORE `start()`, so all migrations and E2E test writes run at memory +// speed without stop/copy/restart overhead. +// 3. Overlaps `import("../../server/src/index.js")` with Postgres bootstrap +// and starts `server/src/index.ts` directly via `startServer()`. + +type EmbeddedPostgresCtor = new (opts: { + databaseDir: string; + user: string; + password: string; + port: number; + persistent: boolean; + initdbFlags?: string[]; + onLog?: (message: unknown) => void; + onError?: (message: unknown) => void; +}) => TestPostgresInstance; + +type DisposableDatabase = { + connectionString: string; + cleanup(): Promise; +}; + +const EMBEDDED_USER = "paperclip"; +const EMBEDDED_PASSWORD = "paperclip"; +const EMBEDDED_DB = "paperclip"; +const INITDB_FLAGS = ["--encoding=UTF8", "--locale=C", "--lc-messages=C", "--no-sync"]; +const DISPOSABLE_PG_CONF = [ + "", + "# Disposable E2E test cluster tuning — zero crash durability required", + "fsync = off", + "synchronous_commit = off", + "full_page_writes = off", + "autovacuum = off", + "checkpoint_timeout = 1h", + "max_wal_size = 1GB", + "log_min_messages = warning", + "", +].join("\n"); + +const MAX_START_ATTEMPTS = 5; + +async function getAvailablePort(): Promise { + return await new Promise((resolve, reject) => { + const server = net.createServer(); + server.unref(); + server.on("error", reject); + server.listen(0, "127.0.0.1", () => { + const address = server.address(); + if (!address || typeof address === "string") { + server.close(() => reject(new Error("Failed to allocate E2E Postgres port"))); + return; + } + const { port } = address; + server.close((error) => (error ? reject(error) : resolve(port))); + }); + }); +} + +async function loadEmbeddedPostgresCtor(): Promise { + const dbRequire = createRequire(new URL("../../packages/db/package.json", import.meta.url)); + const mod = await loadWithoutEmbeddedPostgresExitHooks(async () => { + const loaded = dbRequire("embedded-postgres") as { default?: EmbeddedPostgresCtor } | EmbeddedPostgresCtor; + return typeof loaded === "function" ? loaded : loaded.default; + }); + if (!mod) { + throw new Error("Failed to load embedded-postgres constructor from @paperclipai/db"); + } + await prepareEmbeddedPostgresNativeRuntime(); + return mod; +} + +type FastPostgresHandle = { + ready: Promise; +}; + +async function startFastDisposablePostgres( + EmbeddedPostgres: EmbeddedPostgresCtor, +): Promise { + // Allocate port and kick off `initdb` BEFORE returning so the `initdb` child + // process runs in parallel on another core while the caller concurrently + // transpiles `server/src/index.ts` via `tsx`. + const firstDataDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-e2e-pg-")); + const firstPort = await getAvailablePort(); + + const attemptStart = async ( + dataDir: string, + pgPort: number, + preStartedInit?: Promise, + preOwnedInstance?: ReturnType, + preLogs?: string[], + ): Promise => { + const recentLogs = preLogs ?? []; + const appendLog = (message: unknown) => { + const text = String(message ?? "").trim(); + if (!text) return; + recentLogs.push(text); + if (recentLogs.length > 40) recentLogs.shift(); + }; + const instance = + preOwnedInstance ?? + ownTestPostgres( + new EmbeddedPostgres({ + databaseDir: dataDir, + user: EMBEDDED_USER, + password: EMBEDDED_PASSWORD, + port: pgPort, + persistent: true, + initdbFlags: INITDB_FLAGS, + onLog: appendLog, + onError: appendLog, + }), + dataDir, + ); + + try { + await (preStartedInit ?? instance.initialise()); + fs.appendFileSync(path.join(dataDir, "postgresql.conf"), DISPOSABLE_PG_CONF, "utf8"); + await instance.start(); + + const adminUrl = `postgres://${EMBEDDED_USER}:${EMBEDDED_PASSWORD}@127.0.0.1:${pgPort}/postgres`; + const connectionString = `postgres://${EMBEDDED_USER}:${EMBEDDED_PASSWORD}@127.0.0.1:${pgPort}/${EMBEDDED_DB}`; + await ensurePostgresDatabase(adminUrl, EMBEDDED_DB); + await applyPendingMigrations(connectionString); + + let cleaned = false; + return { + connectionString, + cleanup: async () => { + if (cleaned) return; + cleaned = true; + try { + await closeRegisteredClients(connectionString).catch(() => {}); + } finally { + await instance.stop().catch(() => {}); + await fs.promises.rm(dataDir, { recursive: true, force: true }); + } + }, + }; + } catch (error) { + try { + await instance.stop(); + } catch { + // Ignore stop error on failed start attempt. + } + await fs.promises.rm(dataDir, { recursive: true, force: true }); + const combined = `${error instanceof Error ? error.message : String(error)}\n${recentLogs.join("\n")}`; + if (!/address already in use/i.test(combined)) { + throw new Error(`Fast E2E embedded Postgres startup failed: ${combined}`); + } + throw error; + } + }; + + const firstLogs: string[] = []; + const appendFirstLog = (message: unknown) => { + const text = String(message ?? "").trim(); + if (!text) return; + firstLogs.push(text); + if (firstLogs.length > 40) firstLogs.shift(); + }; + const firstInstance = ownTestPostgres( + new EmbeddedPostgres({ + databaseDir: firstDataDir, + user: EMBEDDED_USER, + password: EMBEDDED_PASSWORD, + port: firstPort, + persistent: true, + initdbFlags: INITDB_FLAGS, + onLog: appendFirstLog, + onError: appendFirstLog, + }), + firstDataDir, + ); + // Spawns the `initdb` child process synchronously before returning. + const firstInitPromise = firstInstance.initialise(); + + const ready = (async () => { + let lastError: unknown = new Error("embedded Postgres startup failed"); + try { + return await attemptStart(firstDataDir, firstPort, firstInitPromise, firstInstance, firstLogs); + } catch (error) { + lastError = error; + if (!/address already in use/i.test(error instanceof Error ? error.message : String(error))) { + throw error; + } + } + for (let attempt = 2; attempt <= MAX_START_ATTEMPTS; attempt += 1) { + const dataDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-e2e-pg-")); + const pgPort = await getAvailablePort(); + try { + return await attemptStart(dataDir, pgPort); + } catch (error) { + lastError = error; + if (!/address already in use/i.test(error instanceof Error ? error.message : String(error))) { + throw error; + } + } + } + throw lastError instanceof Error ? lastError : new Error(String(lastError)); + })(); + + return { ready }; +} const port = Number(process.env.PORT ?? process.env.PAPERCLIP_E2E_PORT ?? 3199); const instanceId = process.env.PAPERCLIP_INSTANCE_ID ?? "playwright-e2e"; @@ -39,48 +256,102 @@ if (!fs.existsSync(masterKeyPath)) { }); } -let db: Awaited> | undefined; +process.env.PAPERCLIP_HOME = homeDir; +process.env.PAPERCLIP_INSTANCE_ID = instanceId; +process.env.PAPERCLIP_CONFIG = configPath; +process.env.PAPERCLIP_STORAGE_LOCAL_DIR = storageDir; +process.env.PAPERCLIP_SECRETS_MASTER_KEY_FILE = masterKeyPath; +process.env.PAPERCLIP_DB_BACKUP_ENABLED = "false"; + +let db: DisposableDatabase | undefined; let shutdownServer: ((signal?: "SIGINT" | "SIGTERM") => Promise) | undefined; let shuttingDown = false; -async function shutdown(signal: "SIGINT" | "SIGTERM") { - if (shuttingDown) return; - shuttingDown = true; - try { - await shutdownServer?.(signal); - } finally { - await db?.cleanup(); - } - process.exit(0); +function hasWarmEmbeddedPostgresTemplate(): boolean { + if (process.env.PAPERCLIP_TEST_POSTGRES_TEMPLATE === "0") return false; + const uid = process.getuid?.(); + if (uid === undefined) return false; + const templateDir = path.join( + os.tmpdir(), + `paperclip-embedded-postgres-templates-${uid}`, + computeEmbeddedPostgresTemplateKey(), + ); + return ( + fs.existsSync(path.join(templateDir, "PG_VERSION")) && + !fs.existsSync(path.join(templateDir, "postmaster.pid")) + ); } -process.once("SIGINT", () => { - void shutdown("SIGINT"); -}); -process.once("SIGTERM", () => { - void shutdown("SIGTERM"); -}); +async function tuneDisposableCluster(connectionString: string): Promise { + const adminUrl = new URL(connectionString); + adminUrl.pathname = "/postgres"; + const admin = createDb(adminUrl.toString(), { maxConnections: 1 }); + try { + await admin.$client.unsafe("ALTER SYSTEM SET fsync = off"); + await admin.$client.unsafe("ALTER SYSTEM SET synchronous_commit = off"); + await admin.$client.unsafe("ALTER SYSTEM SET full_page_writes = off"); + await admin.$client.unsafe("ALTER SYSTEM SET autovacuum = off"); + await admin.$client.unsafe("SELECT pg_reload_conf()"); + } finally { + await admin.$client.end({ timeout: 1 }); + } +} + +const usesExternalPostgres = Boolean(process.env.PAPERCLIP_TEST_POSTGRES_ADMIN_URL?.trim()); +const useWarmTemplate = !usesExternalPostgres && hasWarmEmbeddedPostgresTemplate(); + +if (usesExternalPostgres) { + const shutdownExternal = async (signal: "SIGINT" | "SIGTERM") => { + if (shuttingDown) return; + shuttingDown = true; + try { + await shutdownServer?.(signal); + } finally { + await db?.cleanup(); + } + process.exit(0); + }; + process.once("SIGINT", () => void shutdownExternal("SIGINT")); + process.once("SIGTERM", () => void shutdownExternal("SIGTERM")); +} else { + beforeTestPostgresShutdown({ + stop: async (signal) => { + if (shuttingDown) return; + shuttingDown = true; + await shutdownServer?.(signal === "SIGINT" ? "SIGINT" : "SIGTERM"); + if (db) await closeRegisteredClients(db.connectionString).catch(() => {}); + }, + interrupt() {}, + afterStop: async () => { + await db?.cleanup(); + }, + }); +} try { - const usesExternalPostgres = Boolean(process.env.PAPERCLIP_TEST_POSTGRES_ADMIN_URL?.trim()); - db = await startEmbeddedPostgresTestDatabase("paperclip-e2e-pg-"); + let startedDb: DisposableDatabase; + let serverModule: typeof import("../../server/src/index.js"); - // Only tune cluster-wide durability settings on a disposable embedded - // PostgreSQL instance owned by this script. Never mutate a shared external - // PostgreSQL server passed via PAPERCLIP_TEST_POSTGRES_ADMIN_URL. - if (!usesExternalPostgres) { - const adminUrl = new URL(db.connectionString); - adminUrl.pathname = "/postgres"; - const admin = createDb(adminUrl.toString(), { maxConnections: 1 }); - try { - await admin.$client.unsafe("ALTER SYSTEM SET fsync = off"); - await admin.$client.unsafe("ALTER SYSTEM SET synchronous_commit = off"); - await admin.$client.unsafe("ALTER SYSTEM SET full_page_writes = off"); - await admin.$client.unsafe("SELECT pg_reload_conf()"); - } finally { - await admin.$client.end({ timeout: 1 }); - } + if (usesExternalPostgres) { + startedDb = await startEmbeddedPostgresTestDatabase("paperclip-e2e-pg-"); + serverModule = await import("../../server/src/index.js"); + } else if (useWarmTemplate) { + startedDb = await startEmbeddedPostgresTestDatabase("paperclip-e2e-pg-"); + await tuneDisposableCluster(startedDb.connectionString); + serverModule = await import("../../server/src/index.js"); + } else { + // Load `embedded-postgres` and spawn `initdb` BEFORE calling + // `import("../../server/src/index.js")` so synchronous `createRequire` + // never races `tsx`'s ESM loader AND `initdb` runs in a separate OS + // process while `tsx` transpiles the server graph. + const embeddedPostgresCtor = await loadEmbeddedPostgresCtor(); + const fastPg = await startFastDisposablePostgres(embeddedPostgresCtor); + [startedDb, serverModule] = await Promise.all([ + fastPg.ready, + import("../../server/src/index.js"), + ]); } + db = startedDb; const config = { $meta: { @@ -91,7 +362,12 @@ try { database: { mode: "postgres", connectionString: db.connectionString, - backup: { enabled: false, intervalMinutes: 60, retentionDays: 7, dir: path.join(instanceRoot, "data", "backups") }, + backup: { + enabled: false, + intervalMinutes: 60, + retentionDays: 7, + dir: path.join(instanceRoot, "data", "backups"), + }, }, logging: { mode: "file", logDir: logsDir }, server: { @@ -116,16 +392,9 @@ try { mode: 0o600, }); - process.env.PAPERCLIP_HOME = homeDir; - process.env.PAPERCLIP_INSTANCE_ID = instanceId; - process.env.PAPERCLIP_CONFIG = configPath; process.env.DATABASE_URL = db.connectionString; - process.env.PAPERCLIP_STORAGE_LOCAL_DIR = storageDir; - process.env.PAPERCLIP_SECRETS_MASTER_KEY_FILE = masterKeyPath; - process.env.PAPERCLIP_DB_BACKUP_ENABLED = "false"; - const { startServer } = await import("../../server/src/index.js"); - const started = await startServer(); + const started = await serverModule.startServer(); shutdownServer = started.shutdown; } catch (error) { await db?.cleanup(); diff --git a/tests/runner-e2e/run-unit.mjs b/tests/runner-e2e/run-unit.mjs index 5bdfed2d3df..4a489555363 100644 --- a/tests/runner-e2e/run-unit.mjs +++ b/tests/runner-e2e/run-unit.mjs @@ -7,13 +7,115 @@ import { fileURLToPath } from "node:url"; const root = fileURLToPath(new URL("../../", import.meta.url)); const vitest = path.join(root, "node_modules/vitest/vitest.mjs"); const prefix = "[runner-e2e:unit]"; -const args = process.argv.slice(2); -if (args[0] === "--") args.shift(); + +const NODE_TEST_FILES = [ + "tests/runner-e2e/product-regression-testops.test.mjs", + "tests/runner-e2e/reliability-testops.test.mjs", + "tests/runner-e2e/artifact-budget.test.mjs", + "tests/runner-e2e/native-completion-checks.test.mjs", + "tests/runner-e2e/native-completion-git-source.test.mjs", + "tests/runner-e2e/native-completion-source-contract.test.mjs", + "tests/runner-e2e/chat-feature-testops-api.test.mjs", + "tests/runner-e2e/chat-feature-testops-cli.test.mjs", + "tests/runner-e2e/chat-feature-testops-results.test.mjs", + "tests/runner-e2e/testops-chat-reporter.test.mjs", + "tests/runner-e2e/chat-feature-testops-retained-verification.node-test.mjs", + "tests/runner-e2e/chat-completion-testops-api.test.mjs", + "tests/runner-e2e/chat-completion-testops-contract.test.mjs", + "tests/runner-e2e/chat-full-catalog-testops-manifest.test.mjs", + "tests/runner-e2e/chat-full-catalog-testops-reconcile.test.mjs", + "tests/runner-e2e/chat-full-catalog-testops-adapter.test.mjs", + "tests/runner-e2e/chat-catalog-testops-streaming.test.mjs", +]; + +function failUsage(message) { + console.error(`${prefix} ${message}`); + process.exit(1); +} + +function parseIntArg(raw, flag, min) { + const parsed = Number(raw); + if (raw === undefined || raw.trim() === "" || !Number.isInteger(parsed) || parsed < min) { + failUsage(`${flag} must be an integer >= ${min}. Received ${JSON.stringify(raw)}.`); + } + return parsed; +} + +function parseArgs(argv) { + const rawArgs = [...argv]; + if (rawArgs[0] === "--") rawArgs.shift(); + + let shardIndex = null; + let shardCount = null; + let dryRun = false; + const passthrough = []; + + for (let i = 0; i < rawArgs.length; i += 1) { + const arg = rawArgs[i]; + if (arg === "--dry-run") { + dryRun = true; + continue; + } + if (arg === "--shard-index") { + shardIndex = parseIntArg(rawArgs[i + 1], arg, 0); + i += 1; + continue; + } + if (arg.startsWith("--shard-index=")) { + shardIndex = parseIntArg(arg.slice("--shard-index=".length), "--shard-index", 0); + continue; + } + if (arg === "--shard-count") { + shardCount = parseIntArg(rawArgs[i + 1], arg, 1); + i += 1; + continue; + } + if (arg.startsWith("--shard-count=")) { + shardCount = parseIntArg(arg.slice("--shard-count=".length), "--shard-count", 1); + continue; + } + passthrough.push(arg); + } + + if ((shardIndex === null) !== (shardCount === null)) { + failUsage("--shard-index and --shard-count must be provided together."); + } + if (shardIndex !== null && shardIndex >= shardCount) { + failUsage(`--shard-index must be less than --shard-count. Received ${shardIndex} of ${shardCount}.`); + } + if (shardIndex !== null && passthrough.some((arg) => arg === "--shard" || arg.startsWith("--shard="))) { + failUsage("--shard cannot be combined with --shard-index/--shard-count."); + } + + return { shardIndex, shardCount, dryRun, passthrough }; +} + +const { shardIndex, shardCount, dryRun, passthrough } = parseArgs(process.argv.slice(2)); if (!existsSync(vitest)) { console.error(`${prefix} launcher/environment failure: Vitest is not installed. Run pnpm install before validation.`); process.exit(2); } + +const vitestShardArgs = shardCount !== null && shardCount > 1 + ? [`--shard=${shardIndex + 1}/${shardCount}`] + : []; +const nodeTestFiles = shardCount !== null && shardCount > 1 + ? NODE_TEST_FILES.filter((_, index) => index % shardCount === shardIndex) + : [...NODE_TEST_FILES]; +const vitestArgs = ["run", "--config", "tests/runner-e2e/vitest.config.ts", ...vitestShardArgs, ...passthrough]; + +if (dryRun) { + console.log(JSON.stringify({ + shardIndex, + shardCount, + vitestShard: vitestShardArgs[0] ?? null, + vitestArgs, + nodeTestFiles, + }, null, 2)); + process.exit(0); +} + // Load after the check: a missing install must still report the launcher failure. const { invocationEnv } = await import(new URL("../../scripts/ci-profile/record.mjs", import.meta.url).href); @@ -22,17 +124,17 @@ delete env.NODE_PATH; delete env.NODE_OPTIONS; env.NODE_COMPILE_CACHE ??= path.join(tmpdir(), "paperclip-runner-e2e-compile-cache"); -for (const [name, command] of [ +const steps = [ // Server modules under test import the built plugin SDK (and shared) package. ["Plugin build dependencies", ["scripts/ensure-plugin-build-deps.mjs"]], - ["Vitest", [vitest, "run", "--config", "tests/runner-e2e/vitest.config.ts", ...args]], + ["Vitest", [vitest, ...vitestArgs]], // The wrapper adds the CI profiling reporter when PAPERCLIP_CI_PROFILE is set. - ["Node tests", ["scripts/ci-profile/node-test.mjs", "tests/runner-e2e/product-regression-testops.test.mjs", "tests/runner-e2e/reliability-testops.test.mjs", "tests/runner-e2e/artifact-budget.test.mjs", "tests/runner-e2e/native-completion-checks.test.mjs", - "tests/runner-e2e/native-completion-git-source.test.mjs", "tests/runner-e2e/native-completion-source-contract.test.mjs", - "tests/runner-e2e/chat-feature-testops-api.test.mjs", "tests/runner-e2e/chat-feature-testops-cli.test.mjs", "tests/runner-e2e/chat-feature-testops-results.test.mjs", "tests/runner-e2e/testops-chat-reporter.test.mjs", "tests/runner-e2e/chat-feature-testops-retained-verification.node-test.mjs", - "tests/runner-e2e/chat-completion-testops-api.test.mjs", "tests/runner-e2e/chat-completion-testops-contract.test.mjs", - "tests/runner-e2e/chat-full-catalog-testops-manifest.test.mjs", "tests/runner-e2e/chat-full-catalog-testops-reconcile.test.mjs", "tests/runner-e2e/chat-full-catalog-testops-adapter.test.mjs", "tests/runner-e2e/chat-catalog-testops-streaming.test.mjs"]], -]) { + ...(nodeTestFiles.length > 0 + ? [["Node tests", ["scripts/ci-profile/node-test.mjs", ...nodeTestFiles]]] + : []), +]; + +for (const [name, command] of steps) { const result = spawnSync(process.execPath, command, { cwd: root, env: name === "Vitest" ? invocationEnv("vitest", env) : env, stdio: "inherit", }); diff --git a/tests/runner-e2e/unit-launcher.test.mjs b/tests/runner-e2e/unit-launcher.test.mjs index b6672c06158..425324f0548 100644 --- a/tests/runner-e2e/unit-launcher.test.mjs +++ b/tests/runner-e2e/unit-launcher.test.mjs @@ -37,8 +37,10 @@ it.skipIf(process.env.PAPERCLIP_UNIT_BOUNDARY_PROBE === "1")("runs the documente expect(preloads.some(record => record.argv.some(arg => /pnpm(?:\.c?js)?$/.test(arg)))).toBe(true); expect(preloads.some(record => record.argv[1]?.endsWith("/run-unit.mjs") && record.nodePath?.split(path.delimiter).includes(foreignModules))).toBe(true); - expect(preloads.every(record => !/vitest|tinypool|\.test\.(?:ts|mjs)$/.test(record.argv[1] ?? "") - && !record.execArgv.includes("--test"))).toBe(true); + expect(preloads.every(record => { + const target = record.argv[1] ? path.relative(root, record.argv[1]) : ""; + return !/vitest|tinypool|\.test\.(?:ts|mjs)$/.test(target) && !record.execArgv.includes("--test"); + })).toBe(true); } finally { rmSync(directory, { recursive: true, force: true }); } @@ -58,3 +60,60 @@ it("reports a missing test runner as a launcher/environment failure before any p rmSync(directory, { recursive: true, force: true }); } }); + +it("shards Vitest and node:test suites into a complete, non-overlapping cover", () => { + const launcher = path.join(root, "tests/runner-e2e/run-unit.mjs"); + const dryRun = (args) => { + const result = spawnSync(process.execPath, [launcher, ...args, "--dry-run"], { + cwd: root, + encoding: "utf8", + timeout: 5000, + }); + expect(result.status, result.stderr).toBe(0); + return JSON.parse(result.stdout); + }; + + const unsharded = dryRun([]); + expect(unsharded.vitestShard).toBeNull(); + expect(unsharded.nodeTestFiles.length).toBeGreaterThan(0); + + const shardCount = 4; + const shards = Array.from({ length: shardCount }, (_, index) => + dryRun(["--shard-index", String(index), "--shard-count", String(shardCount)]), + ); + expect(shards.map((s) => s.vitestShard)).toEqual(["--shard=1/4", "--shard=2/4", "--shard=3/4", "--shard=4/4"]); + for (let i = 0; i < shardCount; i += 1) { + expect(shards[i].vitestArgs).toContain(`--shard=${i + 1}/4`); + expect(shards[i].vitestArgs).not.toContain("--shard-index"); + expect(shards[i].vitestArgs).not.toContain("--shard-count"); + } + const combinedNodeTests = shards.flatMap((s) => s.nodeTestFiles); + expect(new Set(combinedNodeTests).size).toBe(combinedNodeTests.length); + expect([...combinedNodeTests].sort()).toEqual([...unsharded.nodeTestFiles].sort()); + + // Supports `=` flag form and leading `--` separator used by `pnpm run`. + const eqShard = dryRun(["--", "--shard-index=2", "--shard-count=4"]); + expect(eqShard).toEqual(shards[2]); + + // Over-sharded trailing shards get an empty node:test list rather than duplicating files. + const emptyNodeShard = dryRun(["--shard-index", "20", "--shard-count", "25"]); + expect(emptyNodeShard.nodeTestFiles).toEqual([]); + expect(emptyNodeShard.vitestShard).toBe("--shard=21/25"); + + // Invalid or conflicting shard arguments fail fast with exit code 1. + for (const badArgs of [ + ["--shard-index", "0"], + ["--shard-count", "4"], + ["--shard-index", "4", "--shard-count", "4"], + ["--shard-index", "-1", "--shard-count", "4"], + ["--shard-index", "0", "--shard-count", "0"], + ["--shard-index", "0", "--shard-count", "4", "--shard=1/4"], + ]) { + const failed = spawnSync(process.execPath, [launcher, ...badArgs, "--dry-run"], { + cwd: root, + encoding: "utf8", + timeout: 5000, + }); + expect(failed.status, `expected failure for ${badArgs.join(" ")}`).toBe(1); + } +}); diff --git a/tests/runner-e2e/vitest.config.ts b/tests/runner-e2e/vitest.config.ts index b23653c84be..22b97ed6b2c 100644 --- a/tests/runner-e2e/vitest.config.ts +++ b/tests/runner-e2e/vitest.config.ts @@ -1,12 +1,20 @@ +import { availableParallelism } from "node:os"; import { fileURLToPath } from "node:url"; import { configDefaults, defineConfig } from "vitest/config"; const pendingDependabotLock = process.env.PAPERCLIP_CI_PR_AUTHOR === "dependabot[bot]"; +// Thread workers reuse the main process and V8 compile cache across the 699 +// support test files while keeping strict per-file isolation (`isolate: true`) +// for the 100+ suites using `vi.mock`. Scale to 4 workers on 4-core runners +// (vs Vitest's default `cpus - 1 = 3` forks) and 7 workers on 8-core runners. +const maxWorkers = Math.min(7, Math.max(1, availableParallelism())); export default defineConfig({ root: import.meta.dirname, test: { name: "runner-e2e-support", + pool: "threads", + maxWorkers, // CI profiling records per-test timings, like the root and Runner package configs. ...(process.env.PAPERCLIP_CI_PROFILE === "true" ? { reporters: [...configDefaults.reporters, fileURLToPath(new URL("../../scripts/ci-profile/vitest-reporter.mjs", import.meta.url))] }