From 089887316fc2eea5879eca4c2e8fb403c6ae5072 Mon Sep 17 00:00:00 2001 From: OrcaWin Date: Sat, 14 Nov 2026 17:33:48 -0800 Subject: [PATCH] test: remove 79 low-value suites (#42564) Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com> --- config/reliability-gates.jsonc | 40 +++--- .../scripts/ci/sharding/ci-shard-timings.json | 56 --------- ...runtime-launcher-protocol-ratchet.test.mjs | 108 ---------------- .../compact-packaged-orcad-ripgrep.test.mjs | 81 ------------ .../bridge-back-round-trip.test.ts | 78 ------------ .../bridge-route-update.test.ts | 70 ----------- .../page-back-consumers.test.ts | 105 ---------------- .../host-bridge/bridge-host-back.test.ts | 76 ----------- .../host-bridge/bridge-host.test.ts | 69 ---------- .../bridge-host-screencast.test.ts | 86 ------------- .../use-shell-page-storage-refresh.test.tsx | 108 ---------------- ...se-new-workspace-execution-target.test.tsx | 80 ------------ ...mobile-native-chat-terminal-stream.test.ts | 118 ------------------ .../MobileNativeChatRowOverlaysHost.test.tsx | 96 -------------- ...obile-native-chat-turn-disclosure.test.tsx | 101 --------------- .../MobileAgentSessionTabActionSheet.test.tsx | 90 ------------- .../execution/unhandled-recording.test.ts | 40 ------ .../operation-module-loader.test.ts | 72 ----------- .../scripted-client-wrapper.test.ts | 33 ----- ...oint-supervisor-relay-host-offline.test.ts | 118 ------------------ .../mobile-relay-director-fallback.test.ts | 75 ----------- .../session-scanner-droid-parser.test.ts | 32 ----- ...xternal-automation-probe-scheduler.test.ts | 32 ----- .../filesystem/sidecar-snapshot-file.test.ts | 33 ----- .../admission/git-operation-executor.test.ts | 33 ----- .../host/safe-storage-availability.test.ts | 34 ----- .../filesystem/local-file-range-read.test.ts | 33 ----- .../terminal-preview-output-stream.test.ts | 33 ----- .../queued-message-context-clear.test.ts | 32 ----- ...tructured-agent-session-fork-title.test.ts | 32 ----- .../diagnostic-upload-http.test.ts | 33 ----- .../history/history-gc-worktree-ids.test.ts | 33 ----- .../antigravity-background-task-rules.test.ts | 32 ----- ...er-host-page-placement-replacement.test.ts | 33 ----- ...wser-screencast-driver-attribution.test.ts | 33 ----- .../recent-pty-output-retention.test.ts | 31 ----- .../claude-worker-start-readiness.test.ts | 33 ----- ...ill-transaction-staging-visibility.test.ts | 31 ----- .../drawing/markup-shape-render.test.ts | 67 ---------- ...own-preview-document-search-budget.test.ts | 21 ---- ...down-preview-document-search-cache.test.ts | 15 --- .../native-chat-appearance-write.test.ts | 58 --------- .../native-chat-sent-prompt-history.test.ts | 65 ---------- ...se-native-chat-paced-text.remount.test.tsx | 67 ---------- .../setup/WorkspaceSetupChoice.test.tsx | 53 -------- .../use-plugin-contribution-source.test.tsx | 58 --------- .../workspace-lineage-menu-actions.test.ts | 70 ----------- .../tab-bar/SortableTab.fork.test.tsx | 68 ---------- .../use-task-page-jira-saved-filters.test.tsx | 58 --------- ...erminal-live-layout-reconciliation.test.ts | 67 ---------- .../terminal-parked-watcher-registry.test.ts | 59 --------- .../output/terminal-input-echo-delay.test.ts | 55 -------- .../discovery/useInstalledAgentSkills.test.ts | 61 --------- .../monaco-editor-gutter-disposal.test.ts | 52 -------- .../plugin-syntax-slot-pool.test.ts | 64 ---------- .../review/pr-bot-author-overrides.test.ts | 62 --------- .../worktree-palette-task-url-match.test.ts | 74 ----------- ...-session-journal-submission-schema.spec.ts | 25 ---- .../resume/ai-vault-ssh-resume-target.test.ts | 32 ----- .../file-link-path-normalization.test.ts | 32 ----- .../git-resolution-config-snapshot.test.ts | 34 ----- .../map-settled-with-concurrency.test.ts | 34 ----- src/shared/mermaid-flowchart-contrast.test.ts | 34 ----- .../native-chat-transcript-retention.test.ts | 32 ----- .../smart-workspace-linear-intent.test.ts | 32 ----- src/shared/openssh-default-shell.test.ts | 33 ----- src/shared/physical-exit-tracker.test.ts | 34 ----- .../portuguese-ui-language-migration.test.ts | 34 ----- .../agent-status-projector.test.ts | 31 ----- ...secure-path-hardening-retry-budget.test.ts | 31 ----- src/shared/skill-metadata.test.ts | 34 ----- .../source-control-push-failure.test.ts | 33 ----- ...ructured-session-message-contracts.test.ts | 1 - .../terminal-markdown-file-links.test.ts | 32 ----- src/shared/tmux-host-attachment-probe.test.ts | 33 ----- .../e2e/helpers/alt-screen-frame.unit.test.ts | 80 ------------ .../helpers/electron-launch-args.unit.test.ts | 61 --------- .../electron-main-evaluate-retry.unit.test.ts | 71 ----------- ...ed-client-runtime-environment.unit.test.ts | 74 ----------- tests/tools/relay-bench/README.md | 8 +- .../relay-bench-invocation.test.mjs | 118 ------------------ ...ckaged-node-pty-capability-oracle.test.mjs | 98 --------------- .../run.test.mjs | 18 --- 83 files changed, 17 insertions(+), 4409 deletions(-) delete mode 100644 config/scripts/daemon-protocol/admission/check-runtime-launcher-protocol-ratchet.test.mjs delete mode 100644 config/scripts/orcad-distribution/template/compact-packaged-orcad-ripgrep.test.mjs delete mode 100644 mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-back-round-trip.test.ts delete mode 100644 mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-route-update.test.ts delete mode 100644 mobile/src/mobile-web-shell/bridge/page-lifecycle/page-back-consumers.test.ts delete mode 100644 mobile/src/mobile-web-shell/host-bridge/bridge-host-back.test.ts delete mode 100644 mobile/src/mobile-web-shell/host-bridge/bridge-host.test.ts delete mode 100644 mobile/src/mobile-web-shell/host-streams/bridge-host-screencast.test.ts delete mode 100644 mobile/src/mobile-web-shell/page-storage/use-shell-page-storage-refresh.test.tsx delete mode 100644 mobile/src/new-workspace/creation/runtime/use-new-workspace-execution-target.test.tsx delete mode 100644 mobile/src/session/native-chat/conversation/use-mobile-native-chat-terminal-stream.test.ts delete mode 100644 mobile/src/session/native-chat/transcript/message-actions/MobileNativeChatRowOverlaysHost.test.tsx delete mode 100644 mobile/src/session/native-chat/transcript/turn-state/use-mobile-native-chat-turn-disclosure.test.tsx delete mode 100644 mobile/src/session/tabs/MobileAgentSessionTabActionSheet.test.tsx delete mode 100644 mobile/src/test-support/rpc-recording/execution/unhandled-recording.test.ts delete mode 100644 mobile/src/test-support/rpc-recording/module-mounting/operation-module-loader.test.ts delete mode 100644 mobile/src/test-support/rpc-recording/scripted-transport/scripted-client-wrapper.test.ts delete mode 100644 mobile/src/transport/connection/mobile-endpoint-supervisor-relay-host-offline.test.ts delete mode 100644 mobile/src/transport/relay/mobile-relay-director-fallback.test.ts delete mode 100644 src/main/ai-vault/scanners/droid/session-scanner-droid-parser.test.ts delete mode 100644 src/main/automations/external-managers/external-automation-probe-scheduler.test.ts delete mode 100644 src/main/filesystem/sidecar-snapshot-file.test.ts delete mode 100644 src/main/git/command-runner/admission/git-operation-executor.test.ts delete mode 100644 src/main/host/safe-storage-availability.test.ts delete mode 100644 src/main/ipc/filesystem/local-file-range-read.test.ts delete mode 100644 src/main/ipc/terminal-preview-output-stream.test.ts delete mode 100644 src/main/native-chat/agent-session-journal/queued-messages/queued-message-context-clear.test.ts delete mode 100644 src/main/native-chat/agent-session-wire/acquisition/testing/structured-agent-session-fork-title.test.ts delete mode 100644 src/main/observability/diagnostic-upload-http.test.ts delete mode 100644 src/main/pty/history/history-gc-worktree-ids.test.ts delete mode 100644 src/main/runtime/agent-state-rules/antigravity-background-task-rules.test.ts delete mode 100644 src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts delete mode 100644 src/main/runtime/browser/screencast/browser-screencast-driver-attribution.test.ts delete mode 100644 src/main/runtime/terminal/output/recent-pty-output-retention.test.ts delete mode 100644 src/main/runtime/terminal/wait/claude-worker-start-readiness.test.ts delete mode 100644 src/main/skills/filesystem/skill-transaction-staging-visibility.test.ts delete mode 100644 src/renderer/src/components/browser-pane/annotate/drawing/markup-shape-render.test.ts delete mode 100644 src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-budget.test.ts delete mode 100644 src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-cache.test.ts delete mode 100644 src/renderer/src/components/native-chat/appearance/native-chat-appearance-write.test.ts delete mode 100644 src/renderer/src/components/native-chat/drafts/native-chat-sent-prompt-history.test.ts delete mode 100644 src/renderer/src/components/native-chat/markdown/use-native-chat-paced-text.remount.test.tsx delete mode 100644 src/renderer/src/components/new-workspace/setup/WorkspaceSetupChoice.test.tsx delete mode 100644 src/renderer/src/components/plugins/state/use-plugin-contribution-source.test.tsx delete mode 100644 src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.test.ts delete mode 100644 src/renderer/src/components/tab-bar/SortableTab.fork.test.tsx delete mode 100644 src/renderer/src/components/task-page/jira/filters/use-task-page-jira-saved-filters.test.tsx delete mode 100644 src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-live-layout-reconciliation.test.ts delete mode 100644 src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-registry.test.ts delete mode 100644 src/renderer/src/components/terminal-pane/pty-connection/output/terminal-input-echo-delay.test.ts delete mode 100644 src/renderer/src/hooks/skills/discovery/useInstalledAgentSkills.test.ts delete mode 100644 src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts delete mode 100644 src/renderer/src/lib/monaco-languages/plugin-syntax-slot-pool.test.ts delete mode 100644 src/renderer/src/lib/source-control/review/pr-bot-author-overrides.test.ts delete mode 100644 src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts delete mode 100644 src/shared/agent-session/journal/agent-session-journal-submission-schema.spec.ts delete mode 100644 src/shared/ai-vault/resume/ai-vault-ssh-resume-target.test.ts delete mode 100644 src/shared/file-links/file-link-path-normalization.test.ts delete mode 100644 src/shared/git/compatibility/git-resolution-config-snapshot.test.ts delete mode 100644 src/shared/map-settled-with-concurrency.test.ts delete mode 100644 src/shared/mermaid-flowchart-contrast.test.ts delete mode 100644 src/shared/native-chat/transcript/messages/native-chat-transcript-retention.test.ts delete mode 100644 src/shared/new-workspace/smart-workspace-linear-intent.test.ts delete mode 100644 src/shared/openssh-default-shell.test.ts delete mode 100644 src/shared/physical-exit-tracker.test.ts delete mode 100644 src/shared/portuguese-ui-language-migration.test.ts delete mode 100644 src/shared/program-status/agent-status-projector.test.ts delete mode 100644 src/shared/secure-storage/secure-path-hardening-retry-budget.test.ts delete mode 100644 src/shared/skill-metadata.test.ts delete mode 100644 src/shared/source-control/recovery/source-control-push-failure.test.ts delete mode 100644 src/shared/terminal/links/terminal-markdown-file-links.test.ts delete mode 100644 src/shared/tmux-host-attachment-probe.test.ts delete mode 100644 tests/e2e/helpers/alt-screen-frame.unit.test.ts delete mode 100644 tests/e2e/helpers/electron-launch-args.unit.test.ts delete mode 100644 tests/e2e/helpers/electron-main-evaluate-retry.unit.test.ts delete mode 100644 tests/e2e/helpers/paired-client-runtime-environment.unit.test.ts delete mode 100644 tests/tools/relay-bench/relay-bench-invocation.test.mjs delete mode 100644 tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-oracle.test.mjs delete mode 100644 tests/tools/windows-pty-native-capability-smoke/run.test.mjs diff --git a/config/reliability-gates.jsonc b/config/reliability-gates.jsonc index 628ad4c1764..504e5d4c9a4 100644 --- a/config/reliability-gates.jsonc +++ b/config/reliability-gates.jsonc @@ -4755,7 +4755,7 @@ "providers": ["local", "remote-runtime", "ssh", "wsl"], "coveredPlatforms": ["macos", "linux"], "coveredProviders": [], - "coverageNotes": "Audit5434 deletes the direct browser page inventory suite. URL-copy/duplicate-page preparation and whole-snapshot refusal for an unencodable page alarms are intentionally lost without equivalent replacement. Remove the deleted file from its compound command and testFiles. Other selectors/assertions and all three unrelated complete dated receipts retain their exact scope; no fresh full-gate execution is claimed. Historical prior account (preserved verbatim): Audit5429 trims paired browser-host composition and reconnect tests. Retire composition close-order/whenClosed wiring and explicit inventory-refresh reattachment/publication/cardinality alarms without equivalent replacement. Keep generation/recovery ownership and completed-mutation replay at their existing narrower scope. The removed composition close assertion is retired; surviving file commands remain valid selectors. No fresh full-gate execution or validation of reduced selectors is claimed. All three unrelated complete dated receipts retain their original exact fields and scope. Historical prior account (preserved verbatim): Audit4014 removes the complete browser client page command integration suite and its active command token, test selector and assertion reference. Its synthetic guest lifecycle still exercised real executor/dispatcher/Session/WebContents registry composition: navigation normalization, generation reclaim, spontaneous destruction inventory revocation, and exactly-once route/policy retirement alarms are intentionally lost. Electron guest navigation, proxy resolution and renderer lifecycle were supplied test ports; no equivalent replacement or fresh execution is claimed. The three unrelated active dated receipts and all prior historical strings remain unchanged. Historical prior account (preserved verbatim): Audit3381 intentionally removes the entire browser network tunnel protocol suite and active selectors/assertion. Static envelope/dispatch protocol alarms are lost without equivalent replacement. Remaining tunnel session and stream tests have narrower scopes. All three unrelated complete dated receipts are preserved verbatim with their original selectors; no fresh execution claimed. Module layout SSH policy: Retire the dynamic-forward launch argument/default inventory. The retained actual startup-cancellation entry case covers cancellation classification and termination/probe cleanup requests with supplied process/socket boundaries, not real SSH launch flags or live forwarding. Remove only the retired launch-flags assertion; unrelated dated receipts and their executed commands remain unchanged. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit1991: Remove the ordinary browser-host release/sub-cap and exact socket-close counter aliases. Retain the two actual admitted-device fairness and shared ask/browser/wait budget callbacks, which call server handlers with fake WebSockets and controlled pending RPCs. Preserve all3 unrelated dated receipts. No real browser placement or remote tunnel deployment is proved by this admission suite. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked browser placement mutation and projection suites and both prospective selectors. Preserve3 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1973: Remove stale production-registration and negotiated metadata aliases, compound refusal/cleanup aliases, isolated descriptor/route/memory/cleanup microcases. Retain exact negotiated command settlement, duplicate/conflict fencing, ready/replay ordering, superseded-connection cleanup, second-host refusal, ungranted target refusal, public connector redaction, revocation race and route replacement aliases within injected-port scope. Reconciliation and all3 unrelated dated receipts remain unchanged. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1918 narrows browser-host-command-ledger-capacity: intentionally loses injected per-page/global cache expiry-count ceilings and authority/command/result cloning inventory alarms. Retain valid commands/testFile and the oversized-wire pre-admission and delivery-failure outstanding-outcome assertions, backed by unchanged retained real-ledger callbacks with supplied browser delivery. These survivors are not equivalent replacement coverage for the deleted cache/cloning examples. Existing three exact unrelated tunnel/wire receipts retain their original scope; no fresh reduced-gate, real browser/provider, native/platform, soak or measured-budget result is added. Historical prior account (preserved verbatim): Audit1900 reduces ws-outbound-backpressure-queue by seven authored definitions while retaining ten. Current source19 assertions still describe distinct direct/queued aggregate admission, cooperative drain ordering and aggregate claim release. Existing commands, testFiles and all three source19 assertions remain valid and unchanged. The affected2026-11-04 Linux44tests/4files/5.58s receipt is retired whole as historical evidence. The other three unchanged-selector browser receipts retain their exact original scope. Reduced selectors have no fresh integrated, physical-device, mixed-host, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1709 removes low-value test definitions and retires affected assertion or execution-receipt claims without equivalent replacement coverage. Per-source reviews bound retained behavior and injected/native/remote limits. Unchanged assertions and receipts keep their original scope; gates lacking current active evidence are downgraded. Historical scope before this audit: Audit1687 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1686 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1571 removes mock forwarding, capability/schema inventories, private predicates, supplied error/result replays, and filesystem-mocked persistence checks without equivalent replacement claims. Retained changed tests also exercise real local permission-file reread, registry proxy rollback/credential retirement, site display recovery, and pending sender/credential/document admission with injected Electron/UI producers. Retained network tests exercise owned stream credit/cleanup, generation and retirement fences, real loopback proxy/SOCKS bytes and file-backed binding state. SSH/WSL/paired runtime, native sessions, authority producers and storage clears remain injected; simulated relaunch uses filesystem mocks. The unchanged profile-retirement suite was statically reviewed and not rerun. No actual SSH/WSL runtime, native Chromium jar deletion, durable process restart, remote DNS or external site proof. Receipts selecting changed tests are retired and unaffected receipts remain unchanged. Historical scope before this audit: Audit1563 retires mock cookie inventories, summary/flag/counter checks, historical replacement/replay narratives and setup-only alarms without equivalent replacement coverage. Retained changed cases exercise owned admission and cleanup, real staged-file lifetime, JSON/SQLite/WAL/schema compatibility, synthetic encryption and native Electron SameSite storage. Session/CDP/credential/write/renderer producers remain injected where recorded. Seven unchanged native definitions are not rerun locally; known stale registry-stub fixtures are not executable proof. Receipts selecting modified tests are retired; unaffected exact-selector receipts remain unchanged. Historical scope before this audit: Audit1559 removes mocked host/lease/reconciliation, event/flag/counter, forwarding, inventory and retry-budget alarms without equivalent replacement coverage. Retained cases establish owned promise, registry, rollback, admission and cleanup boundaries with injected Electron/renderer/host inputs; actual local sockets, file staging and Buffer collection are scoped in the PR. Receipts selecting modified tests are retired; unaffected exact-selector receipts remain historical evidence only. No live paired runtime, rendered browser/profile/TLS or device claim. Historical scope before this audit: Audit1401 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1340 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic protocol, registry, injected-socket, and loopback-listener tests cover strict framing, remote-DNS targets, exact destination-write and source-consumption credit, at most 256 streams per route with pending opens counted inside that cap, 1024 admitted opens per 10-second monotonic window, an 8 MiB per-route application-buffer ledger, shared 32 MiB browser-host and 128 MiB process ledgers across application copies, encrypted client queues, and native WebSocket bufferedAmount, bounded byte/claim/socket-source counts, a four-frame queued-drain quantum, authority epochs, exact host selection, one host per authenticated connection, four hosts per paired device, eight global browser-host polls with four per authenticated paired device, a shared ask/host ceiling that retains one quarter for waits, bounded initial and reconnect runtime_busy recovery, long-poll metering and disconnect abort, monotonic host/page/route generations without page tombstones, two-phase exact page retirement with cancellation, connection-owned cleanup, exact client revocation, stale and replaced fences, retired stream IDs, half-close and close ordering, SOCKS CONNECT, bind/close races, listener wildcard normalization, unsupported commands, unavailable routes, and raw/terminal binary-handler isolation. Page commands use a separately echoed v1 attach negotiation, exact authority/host/page generations, bounded command IDs and sequences, and bounded create/navigate payloads; legacy attaches still receive only the unchanged ready/revoked event shapes. A second optional reconciliation subprotocol gates bounded reclaim, close, and restore payloads behind exact attach/ready echo, complete inventory, command negotiation, reconnect authority, and command-result authority; the production client advertises it only with the matching command and inventory capabilities. Exact guest or app-renderer loss marks one page generation outcome-unknown, coalesces a bounded negotiated inventory reattach, closes or retires the dead generation, and allocates a fresh generation before URL restore; explicit close is not misclassified as a crash. Mixed-version mutation tests project hidden client pages before activate, close, split, reorder, and move-to-group admission, preserve hidden raw order slots, translate visible insertion indices, and project mutation snapshots. A production server orchestrator consumes each immutable inventory once, reserves target generations without exposing placement, emits only negotiated ledger commands, commits after exact completed proof, preserves unrelated and server placements, aborts an attempt when connection authority enters reconnect grace, and requires fresh inventory after failure or abort. The production client dispatcher additionally proves per-page FIFO execution, exact payload-matched duplicate replay, frozen command/result snapshots, a global retired-generation floor, transactional admission, bounded pages/active commands/queues/per-page and global result cache/concurrency, create dependency failure, cancellation, deduplicated retirement joining, and bounded close without late-result overwrite. The server ledger owns issue order and immutable command/result snapshots, bounds outstanding commands, active pages, and per-page/global replay caches, releases active-page capacity after an exact completed close while retaining bounded result replay, validates the shared wire payload before admission, requires live delivery and exact placement, authenticates results to the negotiated connection and paired lease, rejects gaps and conflicting replay, and fences outstanding outcomes at exact retirement. Negotiated command results reuse the authenticated attach socket through bounded nested JSON requests; exact ID routing, reverse-order replies, unknown and duplicate IDs, timeout teardown, serialization failure, aggregate queue accounting, acknowledgement validation, and the unchanged non-v1 path are deterministic. A stable local listener rejects CONNECT while offline or reconnecting, retains its address across replacement, requires a strictly increasing tunnel generation, ignores late superseded callbacks, propagates tunnel protocol failure to the route owner, and recycles exhausted stream IDs only after generation replacement. Reconnect uses the unchanged native v1 attach payload and capability pair; SSH descriptors alone add an execution-host capability and require a runtime-minted grant bound to the exact browser-host lease. Exact SSH provider epoch and connection generation fence ssh2 forwardOut and one non-interactive standalone system-SSH dynamic forward per route. Unit tests preserve domain-form SOCKS requests, sanitize remote errors, bound stderr, cancel startup, release timed-out and synchronously failed sockets, and release routes once. An ephemeral Docker sshd resolves a container-only domain and returns a unique HTTP marker through both ssh2 and the actual system-OpenSSH dynamic-forward adapter without touching the user's SSH files; authority loss fences the ssh2 route. The execution runtime charges route application bytes to the same per-host/process policy; its existing E2EE owner separately caps native outbound buffers process-wide. Production-registered browser-host and paired-runtime methods lease one exact host, prove attach, command delivery, and result settlement share one exact connection identity, then carry SOCKS and HTTP bytes over a dedicated E2EE socket to the fenced execution-host revision and prove route close destroys the destination socket. The production desktop adapter now composes one exact host per environment pairing revision with the page executor, current renderer selector, route Session/WebContents registries, and one reference-counted route per canonical execution-host key. Negotiated same-client control reconnect retains exact authority, placements, grants, dispatcher dedupe, executor guests, and listener addresses; it fences tunnels immediately, blocks route admission, reattaches command delivery only after ready, and replays unsettled commands without repeating completed mutations. Terminal release, replacement, legacy disconnect, and reconnect-grace expiry make only the exact host generation's client placements non-cancellable retirement-pending while retaining capacity until exact cleanup; reconnect grace preserves them. Environment replacement and app shutdown still serialize transport closure before page cleanup and force-close every remaining route. The production placement preparation starts the exact desktop adapter and advertises host/tunnel capabilities only when the paired Electron client is eligible. Node stream-internal high-water bytes, strict cross-route scheduling, and physical cross-platform evidence remain uncovered. The two Docker remote-only SSH browser routing journeys now run in the dedicated Linux ssh-browser-network-route CI job on full runs and their mapped source/test changes; 2 baseline and 6 repeated cases passed with no skips/retries on 2026-09-06. The removed retry-arithmetic and attach-request inventory suites are not current coverage; retained lease and composition suites exercise admission retry, cleanup, inventory negotiation, and reconnect behavior. Test-value audit1293 removes src/main/browser/network/tunnels/browser-network-tunnel-client-memory-budget.test.ts (4 authored cases). Their isolated assertions no longer run; surviving tests are not claimed as equivalent coverage. Fresh execution against the candidate SHA is required. Audit1302: src/main/browser/client-pages/lifecycle/browser-client-page-unavailability.test.ts: Every route/guest lifecycle/currentness/navigation/renderer/automation authority is supplied by fake callbacks, then unavailability listener is invoked manually and private inventory/mock calls are checked. No guest destruction, renderer disconnect or actual reconciliation/close consumer. Lose generation fence/reconcile-once/missing-renderer-close branch alarms; no equivalent replacement. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1318: src/shared/remote-runtime/requests/remote-runtime-subscription-request.test.ts: Retain actual local encrypted WebSocket subscription concurrency routing when host replies out of order, plus an exception thrown by a real ws consumer callback being turned into a subscription error. Server is a test-shaped handshake/response producer using production crypto, not actual runtime host/auth authority or independent cryptographic oracle. Remove happy second-request duplicate, unknown/duplicate-ID branches, fixed32 capacity, serialization/capacity/timeouts and fake memory release/admission call-count scenarios; intentionally lose those alarms. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1340: src/main/runtime/runtime-binary-message-router.test.ts removed. Connection mode conflict exceptions and one terminal/raw callback each. No equivalent replacement coverage is claimed. Audit1352: focused Linux unit selections validated on source head b638e07d395b76af3ba6b03761a1a0fe7e5e026e. Historical statements above retain their original scope. Intentional test losses are recorded in knownGaps; these runs claim no physical-provider, p95, rendered E2E or cross-platform validation. Audit1360: focused Linux unit selections validated on source head 415c9cffc2d10024131ec4b6721767a22195de6d. Historical statements above retain their original scope. Intentional test losses are recorded in knownGaps; these runs claim no physical-provider, p95, rendered E2E or cross-platform validation. Audit1371 removes the reconciliation protocol/capability echo inventory from browser-client-host-reconciliation.test.ts. The pending command result refusal without exact authority and later accepted acknowledgement callback remains byte-identical. The narrow negotiation echo alarm is intentionally lost; no equivalent browser/authenticated transport proof is claimed. Existing receipts with unchanged selectors retain only their original scope. Audit1401: src/main/browser/client-pages/lifecycle/browser-client-page-inventory.test.ts reduced. Loses deterministic equal-length URL compaction tie-breaking and reversed-input invariance alarm. No equivalent replacement coverage is claimed.", + "coverageNotes": "Audit5577 removes the entire src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts suite and its active selectors/assertion reference. The mocked replacement-page placement lifecycle sample alarms are intentionally retired without equivalent replacement or fresh gate evidence. Unrelated dated receipts retain their exact original scopes. Historical account follows: Audit5434 deletes the direct browser page inventory suite. URL-copy/duplicate-page preparation and whole-snapshot refusal for an unencodable page alarms are intentionally lost without equivalent replacement. Remove the deleted file from its compound command and testFiles. Other selectors/assertions and all three unrelated complete dated receipts retain their exact scope; no fresh full-gate execution is claimed. Historical prior account (preserved verbatim): Audit5429 trims paired browser-host composition and reconnect tests. Retire composition close-order/whenClosed wiring and explicit inventory-refresh reattachment/publication/cardinality alarms without equivalent replacement. Keep generation/recovery ownership and completed-mutation replay at their existing narrower scope. The removed composition close assertion is retired; surviving file commands remain valid selectors. No fresh full-gate execution or validation of reduced selectors is claimed. All three unrelated complete dated receipts retain their original exact fields and scope. Historical prior account (preserved verbatim): Audit4014 removes the complete browser client page command integration suite and its active command token, test selector and assertion reference. Its synthetic guest lifecycle still exercised real executor/dispatcher/Session/WebContents registry composition: navigation normalization, generation reclaim, spontaneous destruction inventory revocation, and exactly-once route/policy retirement alarms are intentionally lost. Electron guest navigation, proxy resolution and renderer lifecycle were supplied test ports; no equivalent replacement or fresh execution is claimed. The three unrelated active dated receipts and all prior historical strings remain unchanged. Historical prior account (preserved verbatim): Audit3381 intentionally removes the entire browser network tunnel protocol suite and active selectors/assertion. Static envelope/dispatch protocol alarms are lost without equivalent replacement. Remaining tunnel session and stream tests have narrower scopes. All three unrelated complete dated receipts are preserved verbatim with their original selectors; no fresh execution claimed. Module layout SSH policy: Retire the dynamic-forward launch argument/default inventory. The retained actual startup-cancellation entry case covers cancellation classification and termination/probe cleanup requests with supplied process/socket boundaries, not real SSH launch flags or live forwarding. Remove only the retired launch-flags assertion; unrelated dated receipts and their executed commands remain unchanged. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit1991: Remove the ordinary browser-host release/sub-cap and exact socket-close counter aliases. Retain the two actual admitted-device fairness and shared ask/browser/wait budget callbacks, which call server handlers with fake WebSockets and controlled pending RPCs. Preserve all3 unrelated dated receipts. No real browser placement or remote tunnel deployment is proved by this admission suite. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked browser placement mutation and projection suites and both prospective selectors. Preserve3 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1973: Remove stale production-registration and negotiated metadata aliases, compound refusal/cleanup aliases, isolated descriptor/route/memory/cleanup microcases. Retain exact negotiated command settlement, duplicate/conflict fencing, ready/replay ordering, superseded-connection cleanup, second-host refusal, ungranted target refusal, public connector redaction, revocation race and route replacement aliases within injected-port scope. Reconciliation and all3 unrelated dated receipts remain unchanged. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1918 narrows browser-host-command-ledger-capacity: intentionally loses injected per-page/global cache expiry-count ceilings and authority/command/result cloning inventory alarms. Retain valid commands/testFile and the oversized-wire pre-admission and delivery-failure outstanding-outcome assertions, backed by unchanged retained real-ledger callbacks with supplied browser delivery. These survivors are not equivalent replacement coverage for the deleted cache/cloning examples. Existing three exact unrelated tunnel/wire receipts retain their original scope; no fresh reduced-gate, real browser/provider, native/platform, soak or measured-budget result is added. Historical prior account (preserved verbatim): Audit1900 reduces ws-outbound-backpressure-queue by seven authored definitions while retaining ten. Current source19 assertions still describe distinct direct/queued aggregate admission, cooperative drain ordering and aggregate claim release. Existing commands, testFiles and all three source19 assertions remain valid and unchanged. The affected2026-11-04 Linux44tests/4files/5.58s receipt is retired whole as historical evidence. The other three unchanged-selector browser receipts retain their exact original scope. Reduced selectors have no fresh integrated, physical-device, mixed-host, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1709 removes low-value test definitions and retires affected assertion or execution-receipt claims without equivalent replacement coverage. Per-source reviews bound retained behavior and injected/native/remote limits. Unchanged assertions and receipts keep their original scope; gates lacking current active evidence are downgraded. Historical scope before this audit: Audit1687 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1686 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1571 removes mock forwarding, capability/schema inventories, private predicates, supplied error/result replays, and filesystem-mocked persistence checks without equivalent replacement claims. Retained changed tests also exercise real local permission-file reread, registry proxy rollback/credential retirement, site display recovery, and pending sender/credential/document admission with injected Electron/UI producers. Retained network tests exercise owned stream credit/cleanup, generation and retirement fences, real loopback proxy/SOCKS bytes and file-backed binding state. SSH/WSL/paired runtime, native sessions, authority producers and storage clears remain injected; simulated relaunch uses filesystem mocks. The unchanged profile-retirement suite was statically reviewed and not rerun. No actual SSH/WSL runtime, native Chromium jar deletion, durable process restart, remote DNS or external site proof. Receipts selecting changed tests are retired and unaffected receipts remain unchanged. Historical scope before this audit: Audit1563 retires mock cookie inventories, summary/flag/counter checks, historical replacement/replay narratives and setup-only alarms without equivalent replacement coverage. Retained changed cases exercise owned admission and cleanup, real staged-file lifetime, JSON/SQLite/WAL/schema compatibility, synthetic encryption and native Electron SameSite storage. Session/CDP/credential/write/renderer producers remain injected where recorded. Seven unchanged native definitions are not rerun locally; known stale registry-stub fixtures are not executable proof. Receipts selecting modified tests are retired; unaffected exact-selector receipts remain unchanged. Historical scope before this audit: Audit1559 removes mocked host/lease/reconciliation, event/flag/counter, forwarding, inventory and retry-budget alarms without equivalent replacement coverage. Retained cases establish owned promise, registry, rollback, admission and cleanup boundaries with injected Electron/renderer/host inputs; actual local sockets, file staging and Buffer collection are scoped in the PR. Receipts selecting modified tests are retired; unaffected exact-selector receipts remain historical evidence only. No live paired runtime, rendered browser/profile/TLS or device claim. Historical scope before this audit: Audit1401 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1340 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic protocol, registry, injected-socket, and loopback-listener tests cover strict framing, remote-DNS targets, exact destination-write and source-consumption credit, at most 256 streams per route with pending opens counted inside that cap, 1024 admitted opens per 10-second monotonic window, an 8 MiB per-route application-buffer ledger, shared 32 MiB browser-host and 128 MiB process ledgers across application copies, encrypted client queues, and native WebSocket bufferedAmount, bounded byte/claim/socket-source counts, a four-frame queued-drain quantum, authority epochs, exact host selection, one host per authenticated connection, four hosts per paired device, eight global browser-host polls with four per authenticated paired device, a shared ask/host ceiling that retains one quarter for waits, bounded initial and reconnect runtime_busy recovery, long-poll metering and disconnect abort, monotonic host/page/route generations without page tombstones, two-phase exact page retirement with cancellation, connection-owned cleanup, exact client revocation, stale and replaced fences, retired stream IDs, half-close and close ordering, SOCKS CONNECT, bind/close races, listener wildcard normalization, unsupported commands, unavailable routes, and raw/terminal binary-handler isolation. Page commands use a separately echoed v1 attach negotiation, exact authority/host/page generations, bounded command IDs and sequences, and bounded create/navigate payloads; legacy attaches still receive only the unchanged ready/revoked event shapes. A second optional reconciliation subprotocol gates bounded reclaim, close, and restore payloads behind exact attach/ready echo, complete inventory, command negotiation, reconnect authority, and command-result authority; the production client advertises it only with the matching command and inventory capabilities. Exact guest or app-renderer loss marks one page generation outcome-unknown, coalesces a bounded negotiated inventory reattach, closes or retires the dead generation, and allocates a fresh generation before URL restore; explicit close is not misclassified as a crash. Mixed-version mutation tests project hidden client pages before activate, close, split, reorder, and move-to-group admission, preserve hidden raw order slots, translate visible insertion indices, and project mutation snapshots. A production server orchestrator consumes each immutable inventory once, reserves target generations without exposing placement, emits only negotiated ledger commands, commits after exact completed proof, preserves unrelated and server placements, aborts an attempt when connection authority enters reconnect grace, and requires fresh inventory after failure or abort. The production client dispatcher additionally proves per-page FIFO execution, exact payload-matched duplicate replay, frozen command/result snapshots, a global retired-generation floor, transactional admission, bounded pages/active commands/queues/per-page and global result cache/concurrency, create dependency failure, cancellation, deduplicated retirement joining, and bounded close without late-result overwrite. The server ledger owns issue order and immutable command/result snapshots, bounds outstanding commands, active pages, and per-page/global replay caches, releases active-page capacity after an exact completed close while retaining bounded result replay, validates the shared wire payload before admission, requires live delivery and exact placement, authenticates results to the negotiated connection and paired lease, rejects gaps and conflicting replay, and fences outstanding outcomes at exact retirement. Negotiated command results reuse the authenticated attach socket through bounded nested JSON requests; exact ID routing, reverse-order replies, unknown and duplicate IDs, timeout teardown, serialization failure, aggregate queue accounting, acknowledgement validation, and the unchanged non-v1 path are deterministic. A stable local listener rejects CONNECT while offline or reconnecting, retains its address across replacement, requires a strictly increasing tunnel generation, ignores late superseded callbacks, propagates tunnel protocol failure to the route owner, and recycles exhausted stream IDs only after generation replacement. Reconnect uses the unchanged native v1 attach payload and capability pair; SSH descriptors alone add an execution-host capability and require a runtime-minted grant bound to the exact browser-host lease. Exact SSH provider epoch and connection generation fence ssh2 forwardOut and one non-interactive standalone system-SSH dynamic forward per route. Unit tests preserve domain-form SOCKS requests, sanitize remote errors, bound stderr, cancel startup, release timed-out and synchronously failed sockets, and release routes once. An ephemeral Docker sshd resolves a container-only domain and returns a unique HTTP marker through both ssh2 and the actual system-OpenSSH dynamic-forward adapter without touching the user's SSH files; authority loss fences the ssh2 route. The execution runtime charges route application bytes to the same per-host/process policy; its existing E2EE owner separately caps native outbound buffers process-wide. Production-registered browser-host and paired-runtime methods lease one exact host, prove attach, command delivery, and result settlement share one exact connection identity, then carry SOCKS and HTTP bytes over a dedicated E2EE socket to the fenced execution-host revision and prove route close destroys the destination socket. The production desktop adapter now composes one exact host per environment pairing revision with the page executor, current renderer selector, route Session/WebContents registries, and one reference-counted route per canonical execution-host key. Negotiated same-client control reconnect retains exact authority, placements, grants, dispatcher dedupe, executor guests, and listener addresses; it fences tunnels immediately, blocks route admission, reattaches command delivery only after ready, and replays unsettled commands without repeating completed mutations. Terminal release, replacement, legacy disconnect, and reconnect-grace expiry make only the exact host generation's client placements non-cancellable retirement-pending while retaining capacity until exact cleanup; reconnect grace preserves them. Environment replacement and app shutdown still serialize transport closure before page cleanup and force-close every remaining route. The production placement preparation starts the exact desktop adapter and advertises host/tunnel capabilities only when the paired Electron client is eligible. Node stream-internal high-water bytes, strict cross-route scheduling, and physical cross-platform evidence remain uncovered. The two Docker remote-only SSH browser routing journeys now run in the dedicated Linux ssh-browser-network-route CI job on full runs and their mapped source/test changes; 2 baseline and 6 repeated cases passed with no skips/retries on 2026-09-06. The removed retry-arithmetic and attach-request inventory suites are not current coverage; retained lease and composition suites exercise admission retry, cleanup, inventory negotiation, and reconnect behavior. Test-value audit1293 removes src/main/browser/network/tunnels/browser-network-tunnel-client-memory-budget.test.ts (4 authored cases). Their isolated assertions no longer run; surviving tests are not claimed as equivalent coverage. Fresh execution against the candidate SHA is required. Audit1302: src/main/browser/client-pages/lifecycle/browser-client-page-unavailability.test.ts: Every route/guest lifecycle/currentness/navigation/renderer/automation authority is supplied by fake callbacks, then unavailability listener is invoked manually and private inventory/mock calls are checked. No guest destruction, renderer disconnect or actual reconciliation/close consumer. Lose generation fence/reconcile-once/missing-renderer-close branch alarms; no equivalent replacement. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1318: src/shared/remote-runtime/requests/remote-runtime-subscription-request.test.ts: Retain actual local encrypted WebSocket subscription concurrency routing when host replies out of order, plus an exception thrown by a real ws consumer callback being turned into a subscription error. Server is a test-shaped handshake/response producer using production crypto, not actual runtime host/auth authority or independent cryptographic oracle. Remove happy second-request duplicate, unknown/duplicate-ID branches, fixed32 capacity, serialization/capacity/timeouts and fake memory release/admission call-count scenarios; intentionally lose those alarms. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1340: src/main/runtime/runtime-binary-message-router.test.ts removed. Connection mode conflict exceptions and one terminal/raw callback each. No equivalent replacement coverage is claimed. Audit1352: focused Linux unit selections validated on source head b638e07d395b76af3ba6b03761a1a0fe7e5e026e. Historical statements above retain their original scope. Intentional test losses are recorded in knownGaps; these runs claim no physical-provider, p95, rendered E2E or cross-platform validation. Audit1360: focused Linux unit selections validated on source head 415c9cffc2d10024131ec4b6721767a22195de6d. Historical statements above retain their original scope. Intentional test losses are recorded in knownGaps; these runs claim no physical-provider, p95, rendered E2E or cross-platform validation. Audit1371 removes the reconciliation protocol/capability echo inventory from browser-client-host-reconciliation.test.ts. The pending command result refusal without exact authority and later accepted acknowledgement callback remains byte-identical. The narrow negotiation echo alarm is intentionally lost; no equivalent browser/authenticated transport proof is claimed. Existing receipts with unchanged selectors retain only their original scope. Audit1401: src/main/browser/client-pages/lifecycle/browser-client-page-inventory.test.ts reduced. Loses deterministic equal-length URL compaction tie-breaking and reversed-input invariance alarm. No equivalent replacement coverage is claimed.", "motivatingLinks": [ "https://linear.app/stably/issue/STA-4150/refactor-remote-browser-to-client-hosted-electron-webviews" ], @@ -4763,7 +4763,7 @@ "oracle": "Audit5434 deletes the direct browser page inventory suite. URL-copy/duplicate-page preparation and whole-snapshot refusal for an unencodable page alarms are intentionally lost without equivalent replacement. Remove the deleted file from its compound command and testFiles. Other selectors/assertions and all three unrelated complete dated receipts retain their exact scope; no fresh full-gate execution is claimed. Historical prior account (preserved verbatim): Audit5429 trims paired browser-host composition and reconnect tests. Retire composition close-order/whenClosed wiring and explicit inventory-refresh reattachment/publication/cardinality alarms without equivalent replacement. Keep generation/recovery ownership and completed-mutation replay at their existing narrower scope. The removed composition close assertion is retired; surviving file commands remain valid selectors. No fresh full-gate execution or validation of reduced selectors is claimed. All three unrelated complete dated receipts retain their original exact fields and scope. Historical prior account (preserved verbatim): Audit4014 removes the complete browser client page command integration suite and its active command token, test selector and assertion reference. Its synthetic guest lifecycle still exercised real executor/dispatcher/Session/WebContents registry composition: navigation normalization, generation reclaim, spontaneous destruction inventory revocation, and exactly-once route/policy retirement alarms are intentionally lost. Electron guest navigation, proxy resolution and renderer lifecycle were supplied test ports; no equivalent replacement or fresh execution is claimed. The three unrelated active dated receipts and all prior historical strings remain unchanged. Historical prior account (preserved verbatim): Test-value audit3842 retires four ws-outbound queue unit probes: direct empty-queue send failure, configured drain quantum/zero-delay reschedule, injected aggregate claim/release accounting, and supplied unwritable drain guard. Their exact alarms are intentionally lost; retained queue behaviors are not equivalent replacements. All source-file commands remain valid. No fresh execution or measured-budget evidence is claimed. Historical prior account (preserved verbatim): Test-value audit removes the retired suite and its active selectors/assertions. Retire the paired-host late subscription smoke: it checks a mocked close count and startup rejection, without remote unsubscribe or successor outcomes. Audit3381 intentionally removes the entire browser network tunnel protocol suite and active selectors/assertion. Static envelope/dispatch protocol alarms are lost without equivalent replacement. Remaining tunnel session and stream tests have narrower scopes. All three unrelated complete dated receipts are preserved verbatim with their original selectors; no fresh execution claimed. Module layout SSH policy: Retire the dynamic-forward launch argument/default inventory. The retained actual startup-cancellation entry case covers cancellation classification and termination/probe cleanup requests with supplied process/socket boundaries, not real SSH launch flags or live forwarding. Remove only the retired launch-flags assertion; unrelated dated receipts and their executed commands remain unchanged. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit1991: Remove the ordinary browser-host release/sub-cap and exact socket-close counter aliases. Retain the two actual admitted-device fairness and shared ask/browser/wait budget callbacks, which call server handlers with fake WebSockets and controlled pending RPCs. Preserve all3 unrelated dated receipts. No real browser placement or remote tunnel deployment is proved by this admission suite. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked browser placement mutation and projection suites and both prospective selectors. Preserve3 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1973: Remove stale production-registration and negotiated metadata aliases, compound refusal/cleanup aliases, isolated descriptor/route/memory/cleanup microcases. Retain exact negotiated command settlement, duplicate/conflict fencing, ready/replay ordering, superseded-connection cleanup, second-host refusal, ungranted target refusal, public connector redaction, revocation race and route replacement aliases within injected-port scope. Reconciliation and all3 unrelated dated receipts remain unchanged. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1918 narrows browser-host-command-ledger-capacity: intentionally loses injected per-page/global cache expiry-count ceilings and authority/command/result cloning inventory alarms. Retain valid commands/testFile and the oversized-wire pre-admission and delivery-failure outstanding-outcome assertions, backed by unchanged retained real-ledger callbacks with supplied browser delivery. These survivors are not equivalent replacement coverage for the deleted cache/cloning examples. Existing three exact unrelated tunnel/wire receipts retain their original scope; no fresh reduced-gate, real browser/provider, native/platform, soak or measured-budget result is added. Historical prior account (preserved verbatim): Audit1900 reduces ws-outbound-backpressure-queue by seven authored definitions while retaining ten. Current source19 assertions still describe distinct direct/queued aggregate admission, cooperative drain ordering and aggregate claim release. Existing commands, testFiles and all three source19 assertions remain valid and unchanged. The affected2026-11-04 Linux44tests/4files/5.58s receipt is retired whole as historical evidence. The other three unchanged-selector browser receipts retain their exact original scope. Reduced selectors have no fresh integrated, physical-device, mixed-host, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1709 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: Audit1687 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: Audit1686 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Attach two browser hosts and require unqualified selection to fail ambiguous while exact selection succeeds. Reject a second identity on one connection and a fifth identity for one paired device, release one exact lease, then admit its replacement without starving another device. Admit four hosts from one authenticated device and a host from a second, reject the first device's fifth host, and release only the first device's exact counters while the second remains live. Fill asks and hosts to their shared ceiling, retain a quarter of the total budget for ordinary waits, close both sockets, and prove every global, class, and device counter releases. Reject one initial host attach with the unchanged runtime_busy response, then require bounded client-specific jitter to attach when capacity returns; repeated rejection and explicit close must release every timer and subscription. Replace one same-device connection, require the old subscription and route to fence, then prove late old cleanup leaves the new generation live. Mint an exact execution-host grant, reject a different key, prove late old grant cleanup leaves its replacement, and invalidate every grant with lease replacement. Reject client-to-client, client-to-server, server-to-server, and server-to-client placement overwrite until exact retirement. Begin retirement once idempotently, reject client use and every replacement while pending, cancel the exact token to restore the same placement, and reject delayed cancellation or completion after a newer retirement begins. On explicit release, replacement, legacy disconnect, and reconnect-grace expiry, require only the exact host generation's client placements to become non-cancellable retirement-pending before lease settlement; preserve negotiated grace, other hosts, server placements, replacements, and capacity until exact completion. Complete only the exact pending token, retain capacity until completion, and require a reused client page ID to receive a higher global generation without retaining a tombstone. Require a client page through the exact runtime, epoch, host, and page tuple; reject every mismatch, released or replaced leases, retirement-pending pages, retired pages, server placements, invalid identities, and the 257th live placement. Admit 1024 opens in one monotonic 10-second window and reject the 1025th until the window expires. Fill 8 MiB across destination-to-client queues and separately across unsettled client-to-destination writes, release one exact retired stream, admit one replacement, and require the next byte claim to close the route without stale-callback or reentrant-close underflow. Across multiple routes, charge application copies, encrypted queue entries, and dynamic native socket bytes to one 32 MiB browser-host and 128 MiB process ceiling; reject zero-byte claim/socket-source floods, fence released leases, synchronously release JavaScript queue claims while retaining native claims through exact socket close, and yield a parked queue after four frames without reordering. Route nested responses by exact ID under reordering, reject unknown and duplicate IDs, cap pending requests and queued bytes, and tear down every concurrent waiter once on timeout or close. Drive one real paired attach, command, and result through one exact connection ID; reject missing send support and malformed or wrong-runtime acknowledgements while preserving old non-v1 attaches. Drop an authenticated transport, require the same listener to reject CONNECT before and during reconnect, attach the exact existing native v1 payload and capability pair to a strictly newer generation, ignore late old callbacks, and roll an exhausted stream-ID ledger only by replacing the generation. Require SSH descriptors to add an execution-host capability and exact grant, reject missing grants and stale provider authority before resolver or binary registration, pass exact domains to ssh2 and system-SSH SOCKS without local resolution, sanitize connector diagnostics, and close every stream and standalone route process once on timeout, synchronous failure, or rotation. Drive the accepted lease through real paired E2EE native SOCKS-to-HTTP and ephemeral Docker ssh2 remote-only DNS journeys, then exercise exact frame, credit, half-close, stale-stream, remote-DNS, unsupported-command, offline, and teardown assertions.", "commands": [ "pnpm exec vitest run --config config/vitest.config.ts src/main/browser/routing/guest-authority/browser-route-webcontents-registry.test.ts src/main/browser/client-hosts/lifecycle/paired-runtime-browser-client-host-reconnect.test.ts src/main/browser/client-hosts/lifecycle/paired-runtime-browser-client-host-composition.test.ts src/main/runtime/browser/client-pages/runtime-browser-client-page-recovery.test.ts", - "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts", + "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/browser-host/commands/browser-host-command-ledger.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/browser/browser-client-host-reconciliation.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/browser/client-pages/execution/browser-client-page-command-executor.test.ts src/main/browser/client-hosts/lifecycle/paired-runtime-browser-client-host-composition.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts src/main/runtime/rpc/methods/browser/browser-client-host.test.ts", @@ -4790,7 +4790,6 @@ "src/main/browser/routing/guest-authority/browser-route-webcontents-registry.test.ts", "src/main/runtime/browser/client-pages/runtime-browser-client-page-recovery.test.ts", "src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts", - "src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts", "src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts", "src/main/runtime/browser-host/commands/browser-host-command-ledger.test.ts", "src/main/runtime/browser-host/commands/browser-host-command-ledger-capacity.test.ts", @@ -5150,7 +5149,8 @@ "Test-value audit: Retire the paired-host late subscription smoke: it checks a mocked close count and startup rejection, without remote unsubscribe or successor outcomes. No equivalent replacement or fresh execution is claimed.", "Test-value audit3842 removes four authored/four finite outbound queue probes and the count80 row from each of three inbound queue declarations (zero extra authored removals, three extra finite removals). Direct fast-path failure, synthetic work quantum, injected aggregate callback accounting, supplied unwritable guard, and repeated eighty-payload alarms are accepted losses without equivalent replacement claims. Remaining inbound count8 cases retain actual WeakRef/GC and FIFO/rejection observations. All three unrelated dated gate receipts retain their original command/results/counts and are not fresh validation of changed sources.", "Audit5429 removes composition close-order and explicit reconnect-refresh alarms. No replacement equivalence or full-gate execution. Retired assertion: fails closed without racing page cleanup when handlers do not settle", - "Audit5434 retires browser-client-page-inventory.test.ts preparation/duplicate/optional-snapshot refusal alarms without equivalent replacement." + "Audit5434 retires browser-client-page-inventory.test.ts preparation/duplicate/optional-snapshot refusal alarms without equivalent replacement.", + "Audit5577 exact prior command before retired suite selector removal: pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts" ], "demotionRule": "Keep experimental or demote if a self-asserted or ambiguous host can receive a route, an SSH descriptor bypasses capability, lease-bound grant, or provider-authority checks, late cleanup can remove a replacement, a route can resolve names on the desktop, exceed a byte or stream bound, replenish credit before destination settlement, accept a stale or non-increasing generation, reuse a stream ID within one generation, lose or bypass its fail-closed listener during reconnect, expose the SOCKS listener off-loopback, accept BIND/UDP, or fall back when the selected route is unavailable." }, @@ -9722,7 +9722,7 @@ "providers": ["local", "daemon", "ssh", "remote-runtime"], "coveredPlatforms": ["macos", "linux"], "coveredProviders": [], - "coverageNotes": "Audit5117 narrows the Kitty tracker from 20 to 3 authored/finite cases. Retain exact split-live confirmed-shell-reset parity against xterm, replay-push idempotence with one live exit pop, and snapshot-restored nonzero-frame exhaustion yielding unknown proof. Intentionally remove nullish guards, generic push/pop and set/or/clear/default samples, ordinary split/C1 and fragmented DECSTR samples, reset/DECSTR/RIS matrices, replayed-pop happy path, relative/absolute proof, no-frame omitted-history pop, zero-baseline proof preservation, screen proof movement, baseline-grounding getter cases and withheld-protocol checks. No equivalent replacement or fresh execution claimed. Dated receipts and historical prose retain original scope. Previous account (preserved verbatim): Preload layout cleanup retires the complete mocked macOS keyboard bridge registration. Its API-read forwarding, two-phase payload forwarding and exact listener-disposer alarms are intentionally lost without equivalent replacement. The remaining restart/checkpoint registrations do not cover this IME contract. Unaffected dated receipts retain their original commands and scope; this metadata change claims no new execution. Previous account (preserved verbatim): Audit3699 removes the complete restored app-owned-copy xterm bypass predicate suite (3 authored/3 finite). Intentionally lose Linux/Windows Ctrl+Shift+C keydown/keyup and logical-over-physical-key pass-through, selection/Kitty-disabled/defaultPrevented refusal, and macOS Cmd+C pass-through/selection/Kitty-disabled policy alarms. No actual browser dispatch, clipboard operation, negotiated application bytes, native key delivery or PTY result was established by this driver. No equivalent replacement or fresh execution claimed. Preserve all prior dated receipts and historical accounts. Previous account (preserved verbatim): Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. The complete mocked AgentTerminalPreview component suite is removed, including the snapshot-proven kitty mirror forwarding alarm. Remove its active file, command token and assertion reference; the other IME drivers are unchanged and do not replace the removed component checks. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit1709 removes low-value test definitions and retires affected assertion or execution-receipt claims without equivalent replacement coverage. Per-source reviews bound retained behavior and injected/native/remote limits. Unchanged assertions and receipts keep their original scope; gates lacking current active evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1619 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally reduces src/renderer/src/components/terminal-pane/terminal-ime-candidate-key-release-guard.test.ts: Loses direct timestamp-formula assertion; no useful independent alarm in removed registration. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1361 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1320 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1301 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): This audit removes the browser native-keyboard fallback inventory case. Its empty-chord, absent-layout and no-op-subscription alarms are lost; retained native input evidence is not an equivalent replacement. Historical commands and results remain historical. Local macOS and containerized Linux evidence, deterministic renderer-unit coverage for the Linux/Sogou candidate-key policy including the legacy orphaned-keyup fallback, xterm preedit visibility and row-occlusion behavior, Electron/CDP preedit geometry, Electron/CDP live-PTY Sogou-style repros, and macOS renderer/main slices for Preview kitty commits and layout-native Option input. The Option slice covers complete CSI-u flag fields including lock state, repeat/release event types, authoritative committed associated text, native dead-key release suppression, functional-versus-printable numpad codes, press-pinned release identity, live keyup modifiers, pending-layout text fallback, atomic layout refresh, rapid in-focus input-source changes, stable native layout characters, and both native/web preload fallbacks. The standalone remote SnapshotStart metadata suite is removed. Its proven-zero, nonzero, absent-field and malformed-value propagation alarms are intentionally lost; retained daemon and preview consumer contracts do not establish equivalent remote projection coverage. Historical commands and results remain historical. Real Linux/Sogou OS IME automation, native Windows candidate-window placement, Windows ConPTY post-agent reset, and the CJK/Vietnamese/Arabic matrix remain registered gaps. The audit removes isolated candidate-anchor width, last-column, timer-ordering and detached-textarea examples. The retained deterministic fixtures do not observe a native candidate window or establish equivalent geometry coverage; separate Electron geometry evidence remains historical. The test-value audit removes the empty end-of-row/no-tail composition baseline from terminal-korean-midline-preedit-occlusion.spec.ts. The placeholder masking and measured row-tail occlusion registrations remain; they are not equivalent replacement coverage for the removed empty-tail alarm. No new execution or native IME evidence is claimed. Audit1301: src/renderer/src/components/terminal-pane/terminal-shortcut-option-compose.test.ts reduced. Dead-key/IME variants, Unicode/language inventories, numpad/CapsLock cases and other protocol samples lose their individual alarms. No equivalent replacement coverage is claimed. Audit1320: src/renderer/src/lib/keyboard-layout/layout-base-character.test.ts reduced. Last-complete snapshot while layout-map/native-snapshot partial refresh settles loses its individual implementation-cache alarm. No equivalent replacement coverage is claimed. Audit1342: src/renderer/src/components/terminal-pane/terminal-ime-macos-keybinding-dict-trace.test.ts reduced. Second Korean-layout replay, ordinary Korean/ASCII no-remap baselines and weak Option nonempty-byte alarm are dropped. No equivalent replacement coverage is claimed. Audit1361: src/renderer/src/components/dashboard-popout/preview-terminal-snapshot-replay.test.ts removed. Snapshot/live-proven kitty flags, replacement choice and replay idempotence in the assembled mirror. No equivalent replacement coverage is claimed. Audit1365: focused Linux unit selection passed on source head 8880357cb420c45f1b808ae545a5bc609324624d. This new result has its own exact command; historical results keep their prior scope. Intentional test losses remain recorded in knownGaps. No physical-provider, native input, rendered E2E, p95, soak or replacement-coverage claim. Audit1391: src/renderer/src/lib/pane-manager/terminal-ime-candidate-anchor.test.ts reduced. Lose explicit one-read/unchanged-style work budget across 30 syllables and single-timer burst alarm. Synthetic screen bounds/terminal cursor bound retained proof to DOM anchor updates, not actual OS IME placement. src/renderer/src/components/terminal-pane/terminal-kitty-csi-u-encoding.test.ts reduced. Lose explicit PC-101 alternate omission, multi-codepoint/control associated text filtering, lock modifier integer, shifted punctuation, standalone separator and printable nonfunctional keypad fallbacks. Retained pure encoding is a wire-contract check without host input delivery. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1396: src/renderer/src/components/terminal-pane/xterm-bypass-policy.test.ts reduced. Lose standalone handled Ctrl, Shift+Space, shifted non-ASCII keydown and active-composition backspace/arrow/text/Process suppression alarms. No actual IME/PTY encoding occurs. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1402: src/renderer/src/lib/keyboard-layout/option-as-alt-probe.test.ts removed. Intentionally loses invalidation, focus/manual refresh gating and stale/newest generation settlement outcomes, including direct stale category suppression. No equivalent replacement or default preload input-source delivery claim. src/renderer/src/components/terminal-pane/terminal-ime-substituted-text-commit.test.ts removed. Intentionally loses substituted sentence punctuation, shifted/backslash/multi-unit/full-width/letter input and Kitty flag/release/report encoding alarms across14 authored registrations. No equivalent replacement or real pane/browser input delivery claim. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", + "coverageNotes": "Audit5577 removes the entire src/main/ipc/terminal-preview-output-stream.test.ts suite and its active selectors/assertion reference. The sequenced live-output suffix and transformed replay overlap samples alarms are intentionally retired without equivalent replacement or fresh gate evidence. Unrelated dated receipts retain their exact original scopes. Historical account follows: Audit5117 narrows the Kitty tracker from 20 to 3 authored/finite cases. Retain exact split-live confirmed-shell-reset parity against xterm, replay-push idempotence with one live exit pop, and snapshot-restored nonzero-frame exhaustion yielding unknown proof. Intentionally remove nullish guards, generic push/pop and set/or/clear/default samples, ordinary split/C1 and fragmented DECSTR samples, reset/DECSTR/RIS matrices, replayed-pop happy path, relative/absolute proof, no-frame omitted-history pop, zero-baseline proof preservation, screen proof movement, baseline-grounding getter cases and withheld-protocol checks. No equivalent replacement or fresh execution claimed. Dated receipts and historical prose retain original scope. Previous account (preserved verbatim): Preload layout cleanup retires the complete mocked macOS keyboard bridge registration. Its API-read forwarding, two-phase payload forwarding and exact listener-disposer alarms are intentionally lost without equivalent replacement. The remaining restart/checkpoint registrations do not cover this IME contract. Unaffected dated receipts retain their original commands and scope; this metadata change claims no new execution. Previous account (preserved verbatim): Audit3699 removes the complete restored app-owned-copy xterm bypass predicate suite (3 authored/3 finite). Intentionally lose Linux/Windows Ctrl+Shift+C keydown/keyup and logical-over-physical-key pass-through, selection/Kitty-disabled/defaultPrevented refusal, and macOS Cmd+C pass-through/selection/Kitty-disabled policy alarms. No actual browser dispatch, clipboard operation, negotiated application bytes, native key delivery or PTY result was established by this driver. No equivalent replacement or fresh execution claimed. Preserve all prior dated receipts and historical accounts. Previous account (preserved verbatim): Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. The complete mocked AgentTerminalPreview component suite is removed, including the snapshot-proven kitty mirror forwarding alarm. Remove its active file, command token and assertion reference; the other IME drivers are unchanged and do not replace the removed component checks. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit1709 removes low-value test definitions and retires affected assertion or execution-receipt claims without equivalent replacement coverage. Per-source reviews bound retained behavior and injected/native/remote limits. Unchanged assertions and receipts keep their original scope; gates lacking current active evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1619 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally reduces src/renderer/src/components/terminal-pane/terminal-ime-candidate-key-release-guard.test.ts: Loses direct timestamp-formula assertion; no useful independent alarm in removed registration. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1361 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1320 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audit1301 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): This audit removes the browser native-keyboard fallback inventory case. Its empty-chord, absent-layout and no-op-subscription alarms are lost; retained native input evidence is not an equivalent replacement. Historical commands and results remain historical. Local macOS and containerized Linux evidence, deterministic renderer-unit coverage for the Linux/Sogou candidate-key policy including the legacy orphaned-keyup fallback, xterm preedit visibility and row-occlusion behavior, Electron/CDP preedit geometry, Electron/CDP live-PTY Sogou-style repros, and macOS renderer/main slices for Preview kitty commits and layout-native Option input. The Option slice covers complete CSI-u flag fields including lock state, repeat/release event types, authoritative committed associated text, native dead-key release suppression, functional-versus-printable numpad codes, press-pinned release identity, live keyup modifiers, pending-layout text fallback, atomic layout refresh, rapid in-focus input-source changes, stable native layout characters, and both native/web preload fallbacks. The standalone remote SnapshotStart metadata suite is removed. Its proven-zero, nonzero, absent-field and malformed-value propagation alarms are intentionally lost; retained daemon and preview consumer contracts do not establish equivalent remote projection coverage. Historical commands and results remain historical. Real Linux/Sogou OS IME automation, native Windows candidate-window placement, Windows ConPTY post-agent reset, and the CJK/Vietnamese/Arabic matrix remain registered gaps. The audit removes isolated candidate-anchor width, last-column, timer-ordering and detached-textarea examples. The retained deterministic fixtures do not observe a native candidate window or establish equivalent geometry coverage; separate Electron geometry evidence remains historical. The test-value audit removes the empty end-of-row/no-tail composition baseline from terminal-korean-midline-preedit-occlusion.spec.ts. The placeholder masking and measured row-tail occlusion registrations remain; they are not equivalent replacement coverage for the removed empty-tail alarm. No new execution or native IME evidence is claimed. Audit1301: src/renderer/src/components/terminal-pane/terminal-shortcut-option-compose.test.ts reduced. Dead-key/IME variants, Unicode/language inventories, numpad/CapsLock cases and other protocol samples lose their individual alarms. No equivalent replacement coverage is claimed. Audit1320: src/renderer/src/lib/keyboard-layout/layout-base-character.test.ts reduced. Last-complete snapshot while layout-map/native-snapshot partial refresh settles loses its individual implementation-cache alarm. No equivalent replacement coverage is claimed. Audit1342: src/renderer/src/components/terminal-pane/terminal-ime-macos-keybinding-dict-trace.test.ts reduced. Second Korean-layout replay, ordinary Korean/ASCII no-remap baselines and weak Option nonempty-byte alarm are dropped. No equivalent replacement coverage is claimed. Audit1361: src/renderer/src/components/dashboard-popout/preview-terminal-snapshot-replay.test.ts removed. Snapshot/live-proven kitty flags, replacement choice and replay idempotence in the assembled mirror. No equivalent replacement coverage is claimed. Audit1365: focused Linux unit selection passed on source head 8880357cb420c45f1b808ae545a5bc609324624d. This new result has its own exact command; historical results keep their prior scope. Intentional test losses remain recorded in knownGaps. No physical-provider, native input, rendered E2E, p95, soak or replacement-coverage claim. Audit1391: src/renderer/src/lib/pane-manager/terminal-ime-candidate-anchor.test.ts reduced. Lose explicit one-read/unchanged-style work budget across 30 syllables and single-timer burst alarm. Synthetic screen bounds/terminal cursor bound retained proof to DOM anchor updates, not actual OS IME placement. src/renderer/src/components/terminal-pane/terminal-kitty-csi-u-encoding.test.ts reduced. Lose explicit PC-101 alternate omission, multi-codepoint/control associated text filtering, lock modifier integer, shifted punctuation, standalone separator and printable nonfunctional keypad fallbacks. Retained pure encoding is a wire-contract check without host input delivery. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1396: src/renderer/src/components/terminal-pane/xterm-bypass-policy.test.ts reduced. Lose standalone handled Ctrl, Shift+Space, shifted non-ASCII keydown and active-composition backspace/arrow/text/Process suppression alarms. No actual IME/PTY encoding occurs. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1402: src/renderer/src/lib/keyboard-layout/option-as-alt-probe.test.ts removed. Intentionally loses invalidation, focus/manual refresh gating and stale/newest generation settlement outcomes, including direct stale category suppression. No equivalent replacement or default preload input-source delivery claim. src/renderer/src/components/terminal-pane/terminal-ime-substituted-text-commit.test.ts removed. Intentionally loses substituted sentence punctuation, shifted/backslash/multi-unit/full-width/letter input and Kitty flag/release/report encoding alarms across14 authored registrations. No equivalent replacement or real pane/browser input delivery claim. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", "motivatingLinks": [ "https://github.com/stablyai/orca/pull/6699", "https://github.com/stablyai/orca/pull/6682", @@ -9738,7 +9738,7 @@ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-native-text-forwarder.test.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-macos-keybinding-dict-trace.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-linux-fcitx4-trace-replay.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-xterm-resumed-preedit-visibility.test.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-composer-placeholder-mask.test.ts src/shared/terminal/input/terminal-composer-draft.test.ts src/main/daemon/emulation/testing/terminal-cursor-line-context.test.ts", - "pnpm exec vitest run --config config/vitest.config.ts src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts src/main/ipc/terminal-preview-output-stream.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts", + "pnpm exec vitest run --config config/vitest.config.ts src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts src/main/ipc/macos-keyboard-layout-change-notifications.test.ts src/renderer/src/web/web-preload-api-ui.test.ts", "pnpm run test:e2e -- tests/e2e/chinese-ime-chat-input-repro.spec.ts", "pnpm run test:e2e -- tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts tests/e2e/terminal-korean-midline-preedit-occlusion.spec.ts", @@ -9757,7 +9757,6 @@ "src/main/ipc/macos-keyboard-layout-change-notifications.test.ts", "src/renderer/src/web/web-preload-api-ui.test.ts", "src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts", - "src/main/ipc/terminal-preview-output-stream.test.ts", "src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts", "tests/e2e/chinese-ime-chat-input-repro.spec.ts", "tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts", @@ -9803,13 +9802,6 @@ "a live push/pop after restoring nonzero snapshot metadata exhausts the mirror stack to numeric zero with undefined snapshot proof" ] }, - { - "file": "src/main/ipc/terminal-preview-output-stream.test.ts", - "assertions": [ - "a partially covered sequenced chunk retains exactly its unseen suffix in live mode", - "a transformed overlap remains unsliced in replay mode" - ] - }, { "file": "tests/e2e/chinese-ime-chat-input-repro.spec.ts", "assertions": [ @@ -9916,7 +9908,8 @@ "Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. The complete mocked AgentTerminalPreview component suite is removed, including the snapshot-proven kitty mirror forwarding alarm. Remove its active file, command token and assertion reference; the other IME drivers are unchanged and do not replace the removed component checks. Earlier notes, complete dated receipts and archived gaps retain their original scopes.", "Audit3460 historical original active selectors (verbatim JSON values; not current coverage):\ncommands: [\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-native-text-forwarder.test.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-macos-keybinding-dict-trace.test.ts\",\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-linux-fcitx4-trace-replay.test.ts\",\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-xterm-resumed-preedit-visibility.test.ts src/renderer/src/components/terminal-pane/input/ime/terminal-ime-composer-placeholder-mask.test.ts src/shared/terminal/input/terminal-composer-draft.test.ts src/main/daemon/emulation/testing/terminal-cursor-line-context.test.ts\",\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/dashboard-popout/preview-terminal-ime-bridge-kitty-bytes.test.ts src/renderer/src/components/dashboard-popout/AgentTerminalPreview.test.tsx src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts src/main/ipc/terminal-preview-output-stream.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts\",\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts src/main/ipc/macos-keyboard-layout-change-notifications.test.ts src/preload/app-restart-checkpoint-routing.test.ts src/renderer/src/web/web-preload-api-ui.test.ts\",\n \"pnpm run test:e2e -- tests/e2e/chinese-ime-chat-input-repro.spec.ts\",\n \"pnpm run test:e2e -- tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts tests/e2e/terminal-korean-midline-preedit-occlusion.spec.ts\",\n \"pnpm run test:e2e -- tests/e2e/terminal-option-composed-ascii.spec.ts\"\n ]\ntestFiles: [\n \"tests/e2e/terminal-option-composed-ascii.spec.ts\",\n \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-native-text-forwarder.test.ts\",\n \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-macos-keybinding-dict-trace.test.ts\",\n \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-linux-fcitx4-trace-replay.test.ts\",\n \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-xterm-resumed-preedit-visibility.test.ts\",\n \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-composer-placeholder-mask.test.ts\",\n \"src/shared/terminal/input/terminal-composer-draft.test.ts\",\n \"src/main/daemon/emulation/testing/terminal-cursor-line-context.test.ts\",\n \"src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts\",\n \"src/main/ipc/macos-keyboard-layout-change-notifications.test.ts\",\n \"src/preload/app-restart-checkpoint-routing.test.ts\",\n \"src/renderer/src/web/web-preload-api-ui.test.ts\",\n \"src/renderer/src/components/dashboard-popout/preview-terminal-ime-bridge-kitty-bytes.test.ts\",\n \"src/renderer/src/components/dashboard-popout/AgentTerminalPreview.test.tsx\",\n \"src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts\",\n \"src/main/ipc/terminal-preview-output-stream.test.ts\",\n \"src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts\",\n \"tests/e2e/chinese-ime-chat-input-repro.spec.ts\",\n \"tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts\",\n \"tests/e2e/terminal-korean-midline-preedit-occlusion.spec.ts\"\n ]\nassertionRefs: [\n {\n \"file\": \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-linux-fcitx4-trace-replay.test.ts\",\n \"assertions\": [\n \"real fcitx4 Sogou captures (GTK module and XIM) send only the committed candidate for Space and digit picks, under legacy keys and kitty flags 1 and 5\",\n \"a real fcitx4 Google Pinyin in-client preedit still commits through the composition path\",\n \"an XIM pick's code-less keydown pairs with its keyup so kitty event reporting sends one release per pick\"\n ]\n },\n {\n \"file\": \"src/renderer/src/components/terminal-pane/input/ime/terminal-ime-xterm-resumed-preedit-visibility.test.ts\",\n \"assertions\": [\"A transaction inferred from update alone commits and cleans up.\"]\n },\n {\n \"file\": \"tests/e2e/terminal-option-composed-ascii.spec.ts\",\n \"assertions\": [\n \"a live kitty-negotiated pane receives the Option-composed ASCII character, not the physical alt chord\",\n \"an Option layer that also needs Shift still reaches the pty as text\",\n \"configured Option-as-Alt still reports the layout-resolved physical chord\",\n \"a non-ASCII Option glyph still reaches the application as its alt hotkey\"\n ]\n },\n {\n \"file\": \"src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts\",\n \"assertions\": [\n \"Autorepeat cannot replace the first release sender; a fresh press can replace an orphaned sender for the same key.\"\n ]\n },\n {\n \"file\": \"src/main/ipc/macos-keyboard-layout-change-notifications.test.ts\",\n \"assertions\": [\n \"rapid input-source changes coalesce to one latest-generation refresh signal\"\n ]\n },\n {\n \"file\": \"src/preload/app-restart-checkpoint-routing.test.ts\",\n \"assertions\": [\n \"macOS keyboard reads and the change subscription remain wired after main integration\",\n \"the two-phase change payload reaches the renderer unchanged\",\n \"the subscription disposer removes the exact IPC listener\"\n ]\n },\n {\n \"file\": \"src/renderer/src/components/dashboard-popout/preview-terminal-ime-bridge-kitty-bytes.test.ts\",\n \"assertions\": [\n \"the real forwarder behind the Preview bridge encodes the commit from the snapshot-proven flags before any live output\",\n \"flags 0/1 commit raw text, flags 2 add one CSI-u release, flags 8 emit one CSI-u press, and flags 10 emit a CSI-u press followed by exactly one release\",\n \"both keydown->insertText->keyup and keydown->keyup->insertText orderings produce the same bytes\",\n \"the release is emitted by the forwarder while xterm's internal kitty flags stay 0\",\n \"the mutable flags getter is read exactly once, at commit time, never on keydown or keyup\",\n \"auto-repeat, two-key rollover, a swallowed commit, a retired claim, blur, and disposal each emit at most one release and never synthesize one\"\n ]\n },\n {\n \"file\": \"src/renderer/src/components/dashboard-popout/AgentTerminalPreview.test.tsx\",\n \"assertions\": [\n \"the Preview hands the forwarder the live kitty mirror seeded from the snapshot's proven flags\"\n ]\n },\n {\n \"file\": \"src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts\",\n \"assertions\": [\n \"a fresh PTY's known 0 is distinguishable from a snapshot's unproven 0 fallback\",\n \"restoreSnapshotFlags proves only the active screen\",\n \"provenance survives absolute sets, screen switches, RIS and DECSTR, but a pop past omitted push history returns to unknown rather than a manufactured 0\"\n ]\n },\n {\n \"file\": \"src/main/ipc/terminal-preview-output-stream.test.ts\",\n \"assertions\": [\n \"a partially covered sequenced chunk retains exactly its unseen suffix in live mode\",\n \"a transformed overlap remains unsliced in replay mode\"\n ]\n },\n {\n \"file\": \"tests/e2e/chinese-ime-chat-input-repro.spec.ts\",\n \"assertions\": [\n \"Sogou-style Space candidate selection submits only the committed Chinese character\",\n \"Sogou-style digit candidate selection submits only the committed Chinese phrase\",\n \"Post-composition Sogou-style digit selection stays out of the PTY after compositionend\",\n \"Legacy orphaned-letter-keyup digit selection submits no selector byte to the PTY; real legacy candidate commit preservation remains a platform gap\"\n ]\n },\n {\n \"file\": \"tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts\",\n \"assertions\": [\n \"the rendered final-column preedit caret remains inside the terminal screen\",\n \"a rendered full-width Korean preedit spans materially more than the one terminal cell reported in #12729\"\n ]\n },\n {\n \"file\": \"tests/e2e/terminal-korean-midline-preedit-occlusion.spec.ts\",\n \"assertions\": [\n \"the rendered opaque overlay reproduces every committed row-tail cell its measured rectangle hides\",\n \"a real Codex placeholder with bold prompt, blank footer gap, model footer, and cursor at column 2 stays masked\"\n ]\n }\n ]", "Preload layout cleanup retires the complete mocked macOS keyboard bridge registration. Its API-read forwarding, two-phase payload forwarding and exact listener-disposer alarms are intentionally lost without equivalent replacement. The remaining restart/checkpoint registrations do not cover this IME contract. Unaffected dated receipts retain their original commands and scope; this metadata change claims no new execution. Retired assertion reference: {\"file\":\"src/preload/app-restart-checkpoint-routing.test.ts\",\"assertions\":[\"macOS keyboard reads and the change subscription remain wired after main integration\",\"the two-phase change payload reaches the renderer unchanged\",\"the subscription disposer removes the exact IPC listener\"]}", - "Audit5034 retires the fresh nonrepeat same-key release-owner replacement case. Lost alarm: an orphaned pending sender is replaced by the next fresh press, and only that fresh sender receives the kitty q+Alt release bytes. The retained autorepeat case does not replace this behavior. No live OS/PTy/input-source recovery claimed. Original assertion reference verbatim: {\n \"file\": \"src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts\",\n \"assertions\": [\n \"Autorepeat cannot replace the first release sender; a fresh press can replace an orphaned sender for the same key.\"\n ]\n }" + "Audit5034 retires the fresh nonrepeat same-key release-owner replacement case. Lost alarm: an orphaned pending sender is replaced by the next fresh press, and only that fresh sender receives the kitty q+Alt release bytes. The retained autorepeat case does not replace this behavior. No live OS/PTy/input-source recovery claimed. Original assertion reference verbatim: {\n \"file\": \"src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts\",\n \"assertions\": [\n \"Autorepeat cannot replace the first release sender; a fresh press can replace an orphaned sender for the same key.\"\n ]\n }", + "Audit5577 exact prior command before retired suite selector removal: pnpm exec vitest run --config config/vitest.config.ts src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts src/main/ipc/terminal-preview-output-stream.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts" ], "demotionRule": "Cannot promote if success is based only on DOM text without PTY byte/cell evidence." }, @@ -12297,7 +12290,7 @@ "providers": ["local", "remote-runtime", "ssh"], "coveredPlatforms": ["macos", "linux"], "coveredProviders": ["local", "remote-runtime", "ssh"], - "coverageNotes": "Audit4368 intentionally drops seven mocked teardown cases: duplicate single-chat rollback, forced stuck-close warning/retirement, post-close-throw exit acceptance, mixed live/unconfirmed wording, exact serial-close budget work, missing runtime selector success and runtime-sweep rejection. Four structured-session and three PTY teardown cases remain; no replacement or fresh native/process/remote proof is claimed. Historical assertion anchors and receipts are not refreshed by this source-only reduction. Audit4362 intentionally deletes the imported stale-waiter retry and manually assembled OSC9999 mobile-republish cases, plus the mocked missing-worktree cleanup suite (4 authored / 5 finite cases in three suites). Lost alarms include repeated unread worker_done pointers, working-to-waiting mobile status publication, missing-worktree filtering, and scoped daemon shutdown with unrelated duplicate identities. No replacement coverage or new platform proof is claimed. Audit4358 intentionally removes six whole mocked daemon subprocess suites and two extra pre-listener replay variants (18 authored / 20 finite cases). Lost alarms include cancel-during-cwd-validation, root agent startup refusal, output/exit before ConPTY publication, fresh/delayed/unavailable foreground confirmation, cache/decision separation, detached/no-tty child evidence and synthetic agent authorization. The retained lifecycle case checks data and exit replay after handle creation, not startup-time publication or alternate listener order. The retained native Windows Git Bash workflow and host cold-restore seed check have separate scopes. No equivalent replacement or fresh gate execution is claimed. Earlier notes and dated receipts retain their original scope. Audit4351 removes the physical-exit timeout/retry and kill-failure/retry local-PTY shutdown cases. The retained shutdown case proves pending ownership until the injected node-pty exit callback only. These two narrow error-path alarms are intentionally lost; retained commands still select the reduced suite. No equivalent replacement or fresh runtime execution is claimed. Earlier notes and dated receipts retain their original scopes. Audit3994 retires two authored callbacks imported by the shared construction test driver: split OSC 9999 carry and rendererless status ownership, plus OpenCode permission text taking priority in status and tui-idle refusal. Remaining imports and selectors keep their scope. No equivalent replacement or fresh gate execution is claimed. Audit 3959 retires the whole session.test.ts driver (27 authored / 33 finite cases): startup/echo filtering, readiness input gates, ownership confirmation, detach authority, and termination retry/exit ordering alarms are intentionally lost. No equivalent replacement or fresh runtime validation is claimed. Audit3788 retires10 authored/11 expanded cases across six changed drivers, including the entire screencast pending-frame-retry and usage-source-cache-streaming suites. Deliberate losses are false-refused last-frame retry/once-only delivery, ordinary stable-pane reattachment, cleared-chat Dispatch completion, terminal-declared chat-caller refusal, at-rest worker liveness projection, nested depth/cap policy, small unsigned6/sealed7 plain-format and verified-bit examples, generic malformed-ISIZE footer refusal examples, and synthetic10k/100k chunk-size/work-count budgets in gzip and general cache I/O. These include real state/disk/RPC outcomes consciously retired for marginal value; retained E2EE-backlog, receipt/custody/uncertain-ack, integrity/migration and staging-cleanup cases are not equivalent replacements. The footer test did not prove early rejection or bounded allocation; staging cleanup did not seed unrelated files. No replacement or fresh native/remote/performance execution is claimed. Earlier raw selectors and dated receipts remain historical. Audit3779 retires17 authored/17 expanded registrations across six changed drivers, including the entire shared-Codex-home and prompt-telemetry suites. Accepted losses are shared-home wrapper noninterference/opt-out preservation, mocked metric count/provenance filters, SSH activity labeling/clearing and handover idle timing, VM ownership/capability/status projections and asleep-worktree refusal, a link-only external conversation replay sample, and two narrow input-credit noninterference/expiry examples. Retain the direct exact-tab/single-use input-credit case. These bounded real disk/state/routing alarms are intentionally retired for marginal value without equivalent replacement or fresh execution claims; earlier receipts remain historical. Audit3772 retires18 authored/27 expanded cases, including whole Codex service opt-out, RPC capability-parser, creator-provenance, short-ciphertext and readiness-null suites. Accepted losses include service ledger/symlink/mode cleanup, user TOML substring preservation, old-hash cleanup, description pass-through, malformed-file/pending-hash examples, coordinator write/probe counts, capability array bounds, positive creator projections, early short-payload refusal and readiness helper null shape. Two redundant Codex exit-cause rows are also retired; Pi shares their direct-idle path only in this empty-output immediate-exit fixture, and future agent-config drift coverage is lost. Real bounded filesystem/parser/runtime alarms are deliberately retired for marginal value; no equivalent replacements or fresh execution are claimed. Earlier receipts retain their historical scope. Audits3754/3755 intentionally remove9 authored/9 finite registrations: the entire one-case usage-source-cache-streaming.test.ts driver and8 cases from the surviving computer-action-validation.test.ts driver. This gate retains an unfiltered root Vitest command; UNIT_INCLUDE admits both source paths. Accepted losses are the real encoder output chunk-size/work-count alarm on repetitive10k/100k ownership payloads through a mocked durable sink, plus CLI diagnostic precedence, fractional window-id rejection, action-call-site window-target exclusivity, plain-text click-count recovery copy, incomplete click/drag targeting, mouse/modifier/direction allowlist samples and inline/stdin text exclusivity. These CLI cases exercise real argument/handler validation before mocked runtime calls; they are deliberately retired for marginal value, not declared tautologies. Retained cache I/O and CLI cases are not equivalent replacements for these alarms. Existing historical raw receipts remain unchanged and do not validate the deleted or reduced drivers. No fresh execution claim is made. Audits3758/3763 intentionally remove9 authored/11 finite registrations from6 changed drivers, including the entire pane-title-notification, window-linear-notices and worktree-card-lifecycle-effects suites. This gate retains an unfiltered root Vitest command admitting these paths. Accepted losses are same-account linked-row success-notice fanout, sidebar-switch channel forwarding, Linear-only notification forwarding/non-terminal-consumer selection/closed-window detach, destroyed-window refusal and first-send-failure suspension through the pane-title adapter, the100-card synthetic focus/poll absence sample, stored-source local folder badge refresh, unobserved-row badge refusal, and immediate reposChanged lineage invalidation. These exercise real owners with controlled ports; they are retired for marginal value, without equivalent replacement claims. The no-badge-work fixture does not seed its title-promised collection-only cache. Preserved historical receipts do not validate deleted or reduced drivers; no fresh execution is claimed. Audit3759 retires the entire one-case Tailwind compiler/scanner smoke. Accept loss of the direct CSS production/test/spec source-exclusion and rescan alarm; no replacement or current execution is claimed. Audit3752 independently approves audit3749: retire five authored/five finite watcher-process registrations, retaining18 raw-exact registrations. Accept loss of healthy shared-pool joint recovery, last-pending-failure idle retirement/respawn, late VITEST fallback release, missing-entry fail-closed selection and independent-supervisor fuse locality alarms. These are real bounded host-policy alarms intentionally retired for low marginal value; no equivalent replacement is asserted. Remaining driver selections exercise controlled FakeChild supervisor lifecycle, cancellation, physical-exit fencing, recovery and fuse behavior. This source review supplies no fresh native/process/platform/remote/SSH execution; historical receipts retain original source and selector scopes. Audits3738/3742/3743/3744 intentionally remove15 authored/21 finite registrations from six surviving drivers, with no equivalent replacement or fresh execution claim. This gate retains an unfiltered root Vitest command. Current UNIT_INCLUDE admits the partial push-service, metadata-dialog and two config/scripts browser drivers:10 authored/16 finite removals. Accepted losses: actual retry30s/60s progression and register bucket/refill wiring, explicit seven-day lease arithmetic (its notification lacked seq/epoch and never reached send), equal-name edit latch/save payload, real image/font/meta-refresh/form/popup browser refusal controls, and broad rich-markdown bridge/command/edit-select smoke. Actual production state, callback routing and browser enforcement run in these cases; these alarms are deliberately retired on marginal value. All drivers and selectors survive. Existing unrelated receipts remain historical evidence for their unchanged selectors, not proof of the reduced cases. Audit3732 removes 2 authored/3 finite registrations from two partial suites: nominal custom/Kimi local naming success and deferred context usage row presentation. Real losses: custom/Kimi successful extraction through conversation-name sanitization and agentLabel composition; separate ordered counted/deferred lists and exact percentage/token formatting. No replacement or equivalent coverage claimed. Retain 11 authored/13 finite raw-exact registrations for bounded naming instruction/refusal/cancellation, menu dismissal focus ownership and hover/composer Escape/timer cleanup. Source-only bounded value review, no runtime/CI/native/remote/mobile/folder workspace or global completion credit. Previous account (preserved verbatim): Audit3733 removes2authored/2finite terminal input checks: fixed custom-cap error/secret fixture and three-emoji cap5refusal whose6UTF16units already trip length fast guard (no UTF8-dependent boundary). Accept exact non-disclosure/oversized-refusal alarm losses; no replacement/equivalence claim. Retain13/13scalar/pending input, OSC state and cron DST/cadence outcomes after bounded material reads. Source-only zero runtime/novelty credit; original historical reasons preserved. Previous account (preserved verbatim): Audit3729 removes1authored/3finite by deleting whole CLI runtime pairing advisory-close suite. Accept losing post-real-close injected EIO preservation of native/script/unreadable pairing, env identity/preservation and exact close/release assertions; no actual failed-close leak or replacement coverage claimed. Two retained URL grammar/identity suites11authored16finite raw unchanged. Bounded source/owner/caller value review, zero novelty/runtime credit; other seven3724deferred closures remain. Historical receipts preserve original limits. Previous account (preserved verbatim): Audit3724 removes3authored/3finite checks by deleting two whole suites: TUI clear burst-size singleton and terminal-file-URL target two-case wrapper suite. Deliberate losses: derived widest burst<64byte alarm, UNC authority+line-column anchor composition, and malformed-percent null refusal. Real production algorithms execute in those tests; no mocked-output tautology, equivalent replacement, actual Claude/file-navigation delivery or universal safety-irrelevance claim. TUI58byte bound and URI examples have low marginal value as standalone suites. Actual1262/1264/1742KEEP superseded explicitly. Remaining14drivers83authored136finite raw unchanged. Bounded source-only review; ten closures deferred, four bounded keep judgments repeated with zero new semantic-frontier credit. No runtime/CI/native/remote/mobile/folder/global completion claim; historical receipts retain original scope. Previous account (preserved verbatim): Audit3723 removes 4 authored/4 finite registrations in two whole suites: keybinding cache freeze/token spellings and host-dependent Orca command name examples. Real losses include returned-object freeze, repeated Mod+P key, Space/PageDown/NumpadSubtract mapping, unknown/empty/prototype-token rejection, and headless Linux versus Windows-server/WSL command choice. No equivalent or replacement coverage claimed. Retain 12 authored/21 finite raw-exact registrations exercising generated scaffold validation, artifact failures, shipped editor/hook/worker/panel tests, actual generated typing compilation, independent CLI root routing and intent-name precedence. Source-only bounded audit; no runtime, CI, native, remote, mobile, folder workspace or global completion credit. Previous account (preserved verbatim): Audit3720 removes17authored/23finite checks: whole main catalog-date adapter2 and shared date-helper7, seven renderer nominal ranking/cap/no-date/composition cases, and one browser registration expanding to seven forced-container/DOM-child boundary cases. Deliberate real losses: community oldest-date UTC forwarding, official/undated omission, date sorting/window/invalid/future/skew/clamp and default/override cap; nominal ranking/cap and combined Featured/Newly-added outputs; real CSS459/460,719/720,1055/1056breakpoint, five-card partial-row and720px two-card first-row alarms. Browser cases really measure rendered geometry but force width/remove DOM children; no fake-pixel or tautology rationale. No replacement/equivalent coverage claimed. Retain14authored/19finite raw-exact registrations across4drivers: adversarial featured category/order/tie and installability, date order/window selection, actual PluginManager failure/escaping/duplicate-card suppression, real browser viewport/odd-count geometry/phone catalog visibility, syntax ingress/depth/include/printability and68dlong-bracket auto-close fill-in. No tests/browser/native/UI/provider/remote/mobile/folder/CI/global execution or completion credit. Previous account (preserved verbatim): Audit3717 removes6 authored/6finite checks in two whole thin-adapter/presentation suites. Deliberate real losses: ordinary recipe repository-URL withholding and provisioned-root credential scrubbing/forwarding; repository label lockstep suffix expansion, host-scoped map identity/collision grouping, Windows crosshost paths and WSL distro suffixes. Actual provision options, label/sort consumers and host/scrubber delegates inspected; no replacement/equivalence claim. Retain40 authored/84finite registrations raw exact in14 drivers with bounded owner/context review. Prior KEEP superseded for removed suites; no runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous account (preserved verbatim): Audit3714 removes8 authored/39finite checks: whole CLI selector-recovery, task display-text and ANSI grammar suites plus two name joiner/blank tables. Deliberate real losses: selector flag/value/identity and mutation recovery merge/serialization; exact task suffix, transcript fallback, input immutability, cache reuse and edited blocks; independent failed-escape/resumption and OSC/DCS/BEL/ST/C1/nested/unfinished stripping outputs; meaningful-language joiner preservation and invisible/blank-name rejection. These are real bounded alarms, removed as narrow supplied-error examples, helper/token inventories and repeated internal-work fixtures. Prior2936,1195/1196,1214/1215 and1082 KEEP superseded; no replacement or equivalent coverage claimed. Keep9authored/9finite raw-exact registrations in5surviving drivers: screenshot export/failure filesystem behavior, CLI local tree query, event-local reply provenance, vault role-sensitive content and four hostile/UTF16/dangling/tag-name regressions. No native/UI/provider/remote/mobile/folder/runtime/CI/global completion credit. Previous account (preserved verbatim): Audit3711 retires2authored/4finite cases by deleting whole clipboard-image-temp-file signature-to-name inventory (HEIC/TIFF/unrecognised bytes) and workspace-last-active switch-on supplied visit/reason singleton, plus its now-orphan test fixture. This intentionally loses real generated-filename suffix/extensionless alarms and real newer-visit archived7day versus inactive30day filtering/older-visit identity alarms. Filesystem writing and production reason pruning really execute; no equivalent replacement or universal absence of safety relevance is claimed. The clipboard test does not inspect written bytes, native delivery or decode; the visit test supplies candidate/timestamps and does not exercise persisted visit routing or actual removal.20authored/20finite cases remain unchanged across4bounded Git/sidecar/removal drivers. No new runner/test/module evaluation or runtime result; historical notes and receipts remain historical. Previous account (preserved verbatim): Audit3707 removes10 authored/11finite checks: three whole renderer adapter/assembled-stage suites and two native projection cases. Deliberate losses: plugin URL/ref/default-version/local-path and unsafe credential refusal forwarding; real Task hook/store A→B→A late-save/list/count fences, owner disappearance, legacy-host convergence, query/history/eviction and same-ID host history; native child append ordered-ID/replacement and compound fallback/order/optimistic-admission/child-turn/duplicate/shrink/revision alarms. These are real bounded alarms; removal follows thin adapter, manually assembled Task pipeline and repetitive fixture value judgment, with no replacement or equivalent coverage claim. Prior1179/1182,1220/1221 and1885 KEEP superseded as applicable. Keep36 authored/38finite registrations raw exact across13 surviving drivers. No runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous account (preserved verbatim): Audit3706 removes7authored/7potential cases from3renderer sources: whole usage-label3case and130000-distinct-day usage-overview singleton suites, plus3SSH grouping/ordinary-range examples. Retain11authored/11potential cases across6drivers in this bounded selection; no equivalent replacement or fresh runtime result. Existing bare root-unit commands admit this selection statically; prior command/receipt strings remain historical. Audit3706 intentionally retires first/second-order usage-group label collision alarms; equal50%-weekly bucket versus derived-weekly selection identity and Gemini wk label alarm;130000distinct-day aggregation no-spread-crash/max/intensity alarm; legacy absent-source SSH grouping and ordinary reverse-select/selected-target deselect range alarms. Actual label ambiguity and pathological-input crash are accepted losses. Distinct-day fixture spans~356years; no hard producer/date bound is claimed. Retained filtered-anchor/grouped-order guards do not replace removed deselection/reverse-range/legacy-group coverage. No native SSH, mounted renderer, live provider, remote/folder/mobile end-to-end or current runtime pass was obtained. Previous account (preserved verbatim): Audit3699 removes4 authored/4finite checks, including one whole xterm copy-policy suite and one root/group CLI help case. Deliberate losses: direct copy-chord admission for platform, selection, Kitty mode, defaultPrevented, logical/physical key and key phase; command-group disclosure and group help routing including claude-teams early return without RuntimeClient construction. These are real bounded policy/wiring alarms; no replacement or equivalent coverage claimed. Retain14 authored/19finite raw-exact registrations across6 drivers: unsafe CLI refusal, Claude model event carry and disk reconstruction/OSC-first case, attachment ownership/upload lifetime and mixed BMP file-reference/PNG-chip delivery, actual SQLite authority/admission/mutation, and Electron geometry/hit-testing. No runtime, CI, native-key delivery, external provider, mobile, remote, folder or global completion credit. Previous account (preserved verbatim): Audit3692 removes5 authored/5finite marginal Codex checks: unrelated login URL without notice; ordinary per-account launch resource/config materialization; no-retained-pane skip; preservation of a previously owed full scan through actual preparation and pending-marker update (no actual history scan/settlement); ordinary later-config refresh. Accept these exact branch/wiring alarms as deliberate losses without replacement. Retain32 authored/34finite raw callbacks/registrations/table bytes exact across14suites, including credential/admission refusal, grace/reset readiness, filesystem ownership, commit-dependent queue state, streaming/host trust, path canonicalization and private-state preservation. All14whole suites challenged without keeper quota; no whole deletion warranted on current concrete signals. No runtime/CI/native WSL/remote/mobile/folder/global completion credit Previous account (preserved verbatim): Audit3691 removes two complete runtime-home routing singleton suites (2 authored/2 finite): catalog wrapper mirror login-copy and passive transcript-lookup filesystem noncreation. Exact accepted losses are recorded in knownGaps; no replacement or equivalent coverage claimed. Audit3691: no dedicated alarm remains in the deleted sources for post-launch system login import through prepareHostCodexHomeForReadOnlyAppServer, or for repeated missing-transcript lookups leaving removed Codex account/runtime directories absent and userData entries unchanged. Ownership-marker read avoidance was never independently measured. No real catalog probe, provider, native Windows or crash was validated by those fixtures. Previous account (preserved verbatim): Audit3686 current Claude profile/account review removes5 authored/5 finite cases: whole structured-auth diagnostic-label suite3 and Windows-only command suite1 whose advertised cache alarm is ineffective because cache lifetime is per invocation; remove duplicate setup namespace-link refusal1 at wrapper layer. All5 exact historical KEEP are consciously superseded. Retain49 authored/50 finite unchanged, including filesystem privacy/recovery, route identity and concurrency, built worker/helper, legacy WSL alias compatibility and sign-in handoff. These are deliberate coverage losses without replacement. No runtime/CI/native WSL/macOS Keychain, remote/mobile/folder or global completion credit. Explicit accepted real losses: unknown-account host fallback and mixed-version/WSL-only structured auth diagnostic labels; Windows-only sentinel ENOENT-to-friendly-error translation plus fresh-call successful dispatch smoke; setup catch-to-refused wrapper and no-write outcome for a namespace symlink. The command case does not discriminate removal of its per-invocation noncache guard; it still supplies the error-translation alarm, which is intentionally retired. No replacement/equivalence promise. Previous account (preserved verbatim): Audit3680 removes eleven authored/eleven finite unit cases across four files, including entire launch setup row projection, structured legacy-model metadata, and legacy classifier suites. Accept loss of exact row partition/start selection, Codex supersession/default/unknown and Claude alias/suffix folding examples, other-agent exemption, getter/cache read budgets, same-array per-agent cache isolation, replaced-catalog metadata, and tracked-only model exclusion from structured and PTY legacy inventories. These are real narrow policy/metadata alarms intentionally retired without equivalent replacements. Retain real menu collapse/reopen in dropdown/select, AI picker cancel/accept and stale-effort filing, IME carry/gesture/frame transitions, and typed-flip versus held-dispatch fencing. No production or shared fixtures change. No dead timing entry exists for the three deleted drivers; retained timing keys stay unchanged. Static source-value review only; no project import, test runner, native/app execution or runtime validation established. Earlier receipts retain historical scope. Previous account (preserved verbatim): Audit3678 current-source reassessment removes20 authored/24 finite root-unit cases across7 retained test sources; all10 selected current drivers80 authored/93 finite were read, leaving60 authored/69 finite unchanged. Removed alarms are the in-memory WAL PRAGMA constant, ordinary latest-dispatch/gate-creation inventories, self-reported-failure and explicit-terminal retry policy rows, SSH/unsupported-provider output fallback labels, legacy typing no-op/retain-before-report/manual scheduling rows, exited output status and copied resume-session metadata, incomplete inventory deferral/reset cascade inventory, and nominal release/active-state/corrupt external history/stopped-abandoned outcome/generic close-exception rows. These are intentional coverage losses, not replaced alarms. Retained source includes actual SQLite rollback/custody, mutable transcript/deletion and saved-copy compatibility, cursor mutation, clear lineage, auto-release timing/restart/admission and concurrent recovery seams. Historical KEEP decisions are consciously superseded where stated in decisions.json. Source-only evidence; no runtime, CI, native, provider, remote, mobile/folder or global completion credit. Previous account (preserved verbatim): Audit3672 renewed by3676 removes four authored/four finite cases from federation-output.test.ts: nominal show/read routing and terminal-fallback projection; initial archive-table SELECT failure returning retained/no-close; simulated old-peer read/fleet/refusal and method inventory; and absent archive-release capability refusing release. These actual compatibility/guard alarms are intentionally lost without equivalent replacement; the dropped-table case never reaches capture or commit. Current selected frontier9 becomes5: retain actual temporary transcript parsing/path omission, current no-transcript release/unavailable-output/restart/replay regression, and three home deadline/stop nonmutation cases. Prior held-capture case was already removed upstream and receives no new removal credit; prior redacted snapshot archive behavior was rewritten upstream and is not claimed retained here. The surviving driver timing entry stays. Static review/private composition only; no actual peer/network/native/platform or fresh runtime validation. Previous account (preserved verbatim): Audit3671 removes14 authored/32 finite root-unit cases, including the whole WSL move-handler refusal suite, WSL preload object-presence suite and internal gate spelling truth table. Also retire the weak withheld-command non-array shape assertion, static serve-only Add/capability/mock-remove example, grammar scope equality and basic configuration/payload schema roundtrips. Genuine wrong-window/malformed-request/gate-before-work, exact gate spellings/platform/argv precedence, static serve-only routing, declaration mismatch and empty grammar/pair admission alarms are consciously lost without replacement; prior KEEP decisions are reconsidered. Seven unchanged authored/finite root-unit cases retain real image/provider/line budgets, live policy transition/capability broadcast, grammar resource/reference traversal and strict-versus-tolerant literal salvage. Source-value evidence only; no runner/compiler/build/app/native/provider/remote/mobile/folder validation or historical fault claim. Independently remove one authored/finite Playwright closed-gate app-boot inventory: accept loss of real renderer/preload/main refusal composition, saved-host row and Add/Move hiding/Remove visibility alarms. Keep the unchanged scripted-move rendered dialog lifecycle/reload case. It runs no real WSL migration, host connection, file copy or automation restoration. No selector or Playwright participation cleanup is required because the spec remains. Previous account (preserved verbatim): Audit3663 renews approved3644/3645/3648/amended3651 at privatec1ef: remove10authored/26finite across7changedtestpaths,4whole drivers; retain23authored/24finite including actualcmdkStrictMode defaultcursor race. Retire version1.5.0/1.5.1→shrinksImages capability threshold and launch-to-prompt wiring alarm. Surviving prompt tests explicitly supply capability and do not replace wiring coverage. Retire resolved-before-personOnly precedence; hook-gone/live-dialog guidance; stale-incarnation versus live-looking dialog classification; delayed/clipped warning extraction and wait-for-paint wiring; 3row setting/personOnly approve/deny/disclaimer suggestion composition;13row setting/reason/person/coordinator admission, close/mail attribution, terminal delivery/refusal/preanswered/personOnly/dropped-allow handler propagation alarms. Real state/access/SQLite effects occur; these genuine losses are accepted, not mocked-away. Retire full command extraction from serialized JSON in worker receipt and nontruncation alarm; no rendering, actual worker approval or native shell proof. Retire2row extra-source first/last order and controlled default cursor projection, plus generic open-palette livefolder add/remove render alarm. Explicitly supersede rawexact297KEEP refresh. Keep actualcmdk/StrictMode default cursor race driver; no default-suite loss claim. No equivalent replacement asserted. Retained queue/commit/retryownership/filebudget, terminalfreshness/provenance/competing-answer, RPC DB-effect, qualifiedfolder/runtimehandoff and lingering-reopen cases have distinct scope. Audit3675 preserves the upstream revised unreported-approval close regression, its escalation helper and adapted survivors. Source-only static renewal; no runner/compiler/app/native/remote/CI claim. Upstream41390host-owned approvalwatch/report lifetime reviewed separately; no new lifetime test removed. Preserve all earlier metadata/evidence. Audit3634: Remove five authored/five finite cases, including the complete structured chat terminal-refusal, terminal-plus-agent worker-start validation, and canonical Git common-directory parser suites. Also remove the gh free-text -R argument projection case. Consciously supersede prior KEEP decisions and accept chat-versus-stale redirect classification, real RPC refusal-before-SQLite-Dispatch, old-Git echoed-option relative-path parsing, WSL execution-space resolution, and free-text preservation/bare-repo qualification alarms. These are genuine narrow alarms, intentionally retired without equivalent replacements. Retain real Git stdin/EOF delivery, bound-account host admission, naming environment/account precedence, upload iterator cancellation and remote path confinement. Shared fixtures and production code remain. Remove only the dead canonical-repo-key timing entry. Static source-value evidence only; all prior evidence retains historical scope. Audit3636: Remove the entire maintenance opportunity internal-count driver (one authored/two finite cases), the mocked remote worker start-card argument case (one/one), and the follow-up heading mapping table (one/two). Root-unit discovery loses three authored/five finite cases. Independently remove four Python native screenshot methods/five statically enumerated subTest scenarios: grim argv/stub payload, failure-code mapping, X11 mocked capture payload, and capability flags. The Python lane is verify:computer-native and is not root Vitest. Accept loss of exact native command/projection and exception/capability alarms, ready-only card publication arguments/agent forwarding, and serialized follow-up heading mapping; no equivalent replacement is claimed. Retain actual ownership/mail/queue/reopen transitions, remote lost-response fencing and first-result settlement, filesystem/maintenance admission and successor progress, wrong-region screenshot refusal and Sway geometry. The whole-deleted new driver has no timing key; this component requires no timing cleanup. No production changes. Static source-value review only; no project import, runner, app, native desktop or runtime validation established. All prior evidence retains historical scope. Audit3629 removes two singleton parser suites: WSL Claude plugin metadata out-of-range index rejection and Git checkout unlink-warning path extraction. Their real range-refusal and quoted-path extraction alarms are intentionally lost without replacement; no WSL execution, checkout recovery or equivalent remaining coverage is claimed. Audit3630 removes the sole orphan automation availability test (1 authored/1 finite). Its real policy kind, orphan precondition, delete/toggle enablement and run/edit refusal alarms are intentionally lost. The test did not dispatch an action, enforce a server generation fence or observe a remote mutation. No equivalent replacement, actual renderer/transport execution or new platform/provider evidence is claimed. Previous account (preserved verbatim): Audit3628: remove the entire one-authored/one-finite RepositoryRemoveProjectSection happy-dom suite. Accept losing the local zero-to-one-terminal stale-count revalidation alarm: first confirmation defers the removal callback and second confirmation invokes it after the count snapshot updates. The test never asserts updated warning text/count, actual terminal creation or removal/PTY teardown, host/scope routing, cancellation or folder/mobile behavior. No equivalent replacement or end-to-end warning-before-teardown proof asserted. Static evidence only; historical receipts retain original scope. Audit3624: Remove one authored/five finite positive Gemini identity table from the Claude/Gemini title collision driver. The real normalization, legacy label and explicit title evidence owners execute, so ordinary Gemini marker/name/wrapper recognition and normalized-label composition alarms are consciously retired without equivalent replacement; these five supplied title-to-literal identity examples have low marginal value. Preserve the six-row Claude task-text collision oracle, whose unrelated CLI mentions must not rebrand or destructively normalize titles. The other audited drivers preserve real permission-mode session transitions, prompt secret/fence/bounds defenses, JSON-to-Ask option/preview preservation, and optional GitLab failure summary/trace composition. Root-unit discovery loses one authored/five finite cases; no whole driver or timing key is removed. No actual terminal stream, UI routing, application/native or runtime execution established; all prior evidence retains historical scope. Audit3618: Remove three authored/three finite browser reload cases, including the complete renderer reload-actions suite. Agent bridge fake did-fail-load plus permanently supplied manager error projects description/code into a rejection. Renderer seeded empty metadata projects a saved URL into plain webview src; its earlier not-ready case projects a live-id/throwing fake reload into absence of a loading patch. Real queue/wait/error/cache/classifier/hook code executes, but these narrow supplied-state and exception-to-callback wirings have low marginal value; no rerender, lifecycle, actual cache generation/retirement or guest commit is asserted. Explicitly supersede audit1822 not-ready KEEP and preliminary3617 cross-module retain opinion, accepting offline-reload failure reporting, empty guest to saved URL routing, native-reload bypass and premature-loading/stranded-state alarms without replacement. Retain distinct main cancellation queue progression and absent queued side-effect dispatch. Root-unit discovery loses three/three. No Electron guest, network failure, restored navigation/commit, app/native focus or runtime execution established; earlier evidence retains its historical scope. Audit3614: Remove thirty-one authored/thirty-nine finite potential cases across CLI format and argument drivers, including three whole suites: search-result/status sanitation sites, Linear issue/list/warning sanitation sites, and quote-stripped JSON diagnostic secret non-echo. Those real formatter/guard transformations execute on supplied strings; intentionally retire their field-specific CSI/OSC/C1/newline/bell and diagnostic secrecy alarms as low-value caller/output inventories, without replacement. Also retire twenty-one search registrations/twenty-four finite cases covering minimal positional request/default omission, exhaustive all-flags request projection, nominal named query/index routes, repeated syntax/agent examples, enum/agent/path-count/timestamp/numeric/cursor admission examples, unknown/browser flag examples and postcommand last-wins projections; retire one parser sentinel-only case. Keep actual ambiguity, conflicting index request, precommand/crosscommand scoping, variadic reference parsing and missing-repeatable-value controls, without claiming equivalent coverage. Root-unit discovery loses all twenty-nine/thirty-seven. No CLI/RPC/terminal/PowerShell/host/schema/runtime execution is established by this source-only audit; earlier evidence retains its historical scope. Audit3613: remove six authored/six finite callbacks, including whole reviewer-display oversize-input and explorer-root record-filter suites, plus plugin family-emoji/invisible-only-name and pool legacy-name/urgent-countdown samples. Accept losing oversized-input empty-result/no-split, malformed-record/prototype-sensitive-key/nonstring filtering, exact ZWJ family preservation, invisible-only name refusal, no-group old-host full-name preservation, and80/79/null-reset countdown composition alarms. No equivalent replacement asserted. Retained strict/runtime sanitization, SVG parser, mobile focus recovery and collision/tie cases have different scopes. Static evidence only; historical receipts retain original scope. Audit3609: Remove the complete pnpm CLI invocation literal-selection suite (eleven authored/nineteen finite potential cases), with no replacement claimed. Root-unit discovery loses JavaScript-versus-native command selection, npm/npx executable rejection, Windows cmd/bat casing and shell selection, non-Windows cmd behavior, native PNPM_HOME flat/bin preference, explicit-path priority, relative-home rejection, missing-native fallback and non-Windows home-probe refusal alarms. The suite called the real resolver with independently expected objects, but exercised no pnpm/node/cmd process, installed native executable or real filesystem probe. Earlier KEEP decisions are consciously superseded by accepting these narrow branch and probe-inventory alarms as low value. Real symlink entry, Git signing isolation, Bun filesystem/Node child normalization and compiler scheduling/continuation tests remain distinct tests, not equivalent coverage. No runner, compiler, app, platform or remote execution was performed in this source-only audit. Earlier evidence retains its historical scope. Audit3608: remove five authored/five finite callbacks, including whole owner-slug and remote favicon URL suites and two repository-label projections. Lose five owner acceptance samples, eleven negative owner samples plus nonstring refusal, six host-local icon refusal samples, legacy-SSH same-path label-map cardinality, and explicit runtime ownership over stale legacy metadata at label level. These are accepted narrow grammar/presentation alarms with no equivalent replacement claimed. Retained binary parser, React recovery and label grouping/platform cases do not replace these losses. Static evidence only; historical receipts retain their original scope. Audit3606 adopts the enhanced3604/3605 icon cuts: nine authored/nine finite cases removed, including the whole tray-attention-icon suite. Retires the no-encoder oversized-upload null sample, missing-ID/request-order sample, encoder-null PNG-prefix fallback, SVG/404 rejection samples, transparent amber-dot placement and half-alpha white-tint sample, exact small fetched-byte passthrough, host-qualified image-key inventory and constant-encoder large-upload projection. These specific admission, formatting and bitmap alarms are intentionally lost without equivalent replacements. Retained queue/cache, bounded fetch and Dock lifecycle checks do not establish actual raster decoding, native image conversion or rendered appearance. Historical receipts below are preserved evidence for earlier test sets, not fresh validation of this reduced selection. Audit3601 scope: remove the whole custom-sound happy-path IPC suite and one custom-label/multiline notification formatting example (2 authored/2 finite). Intentionally lose configured .ogg selection, exact byte/MIME success wiring, successful dispatch for the formatting fixture, custom-label whitespace/title normalization and assistant-body whitespace/180-character-cap alarms. Retain prompt-exclusion, persisted qualified dismissal/restart, theme ownership/restore and Ghostty precedence/collision cases; none replaces the retired sound/formatting alarms. No actual playback, native delivery, phone/network, cross-platform or new runtime evidence is claimed; historical execution keeps its original scope. Audit3598: Remove seven authored/nine finite literal-table potential test registrations across workflow routing, Claude cold-start and real-zsh preexec drivers. Root-unit discovery loses six authored/six finite: three test-local workflow parser fixtures, the five-positive/three-negative explicit command-paint route inventory, a boot-banner-before-composer sample and an already-painted bare-title positive sample. The separately selected shell_contracts live-shell driver loses one authored/three finite raw-capture paint-only cases across three hook configurations; its real-wrapper launch-order, four rechunkings (twelve finite) and runtime-wait replay remain, without claiming equivalent replacement. Intentionally lose those parser, exact routing-list, banner, post-paint subscription and native-read-boundary paint alarms. Retained workflow/UNIT_EXCLUDE/classifier cross-source routing checks and readiness-race-to-writer timing are distinct bounded alarms. No runner, real shell, PTY, app, native focus, remote delivery, cross-platform execution or full-feature correctness is established by this source-only audit. Earlier evidence retains its historical scope. Audit3597 scope: remove two renderer-hang-capture examples (2 authored/2 finite): an invalid repeated-token oversized reducer fixture and a shorter unanswered-request fixture. Intentionally lose the direct truncated flag/sanitized frame fixture and request-pending status/zero-sample alarms. Retain window-death/stale-result exclusion, generation reconciliation, and baseline-publication cancellation lifecycles; they are not equivalent bound, redaction or pending-status replacements. Historical execution retains its original source scope; no new runtime evidence is claimed. Audit3591: Retire the whole one-case background journal-producer attribution suite and the fabricated malformed-details-block case (two authored/two finite cases). Intentionally lose the fixed own-task versus output/foreign-task attribution examples across flat/message row shapes, missing-root classification, and direct unbalanced/detailsish fabricated-block rejection alarms. Retained parser sibling/depth and editor navigation tests do not replace these alarms. No equivalent replacement or fresh runtime, transport, persistence, native focus or rendered UI validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3592: Retire the whole three-case shared agent smart-key resolver suite, explicitly superseding its Audit3238/3237 keep decisions. Intentionally lose literal permission-versus-question classification, longest-question digit selection, Codex async-question opener/digit/Enter/skip mapping, and unsupported-agent/state/prompt refusal examples. These were real parser/selection and literal-byte alarms; they did not exercise terminal delivery or timing. No equivalent replacement or fresh runtime, native TUI, mobile, remote or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3587/3588: Retire six authored/fourteen finite cases, including the whole WSL stopped-notice and connecting-status selector suites. Intentionally lose direct WSL retry connection field/target/ready-epoch/null-guard examples, connecting/reconnecting distro and absent-state selector samples, and stopped/connecting notice text/button/data-attribute examples. Retained host-ready retry and content-loader/reload lifecycles do not replace these alarms. No equivalent replacement or fresh runtime, native WSL, remote, rendered UI or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3580: Retire the whole one-case runtime host environment prototype/subclass suite. Intentionally lose the exact configured lower-case Windows Claude home to account-identity normalization and host-account override precedence alarm previously retained by Audit3129. No equivalent replacement or fresh runtime validation is claimed. Earlier dated keep statements below describe their historical source scope; the current suite is removed. Audit3563 scope: retire the whole Kiro OSC/hook identity suite and the OpenCode2 identity-only case; reduce Codex cached startup child-retirement and missing-session-ID tables to one case each (2 authored/4 finite removals). Intentionally lose Kiro alias/session continuity, OpenCode2 completed OSC identity continuity, cached replacement without relay-generation restart, and missing-previous-ID context-preservation alarms. Remaining provider, remote compatibility, persistence and cross-session pollution cases are not equivalent replacements. Also remove the private Codex roster-size assertion while retaining public child-absence checks. Historical evidence retains its original source scope; no new execution or transferred pass validates these reductions. Audit3553/3559 current scope: delete worktrees-delete-pty-teardown.test.ts and worktrees-issue-command-overrides.test.ts entirely and remove three cases from worktrees-orphan-directory-cleanup.test.ts (6 authored/6 finite removals). Intentionally retire typed unserved-SSH create/delete admission, exact-name collision/error-token, proven-orphan no-force confirmation, standalone .git-directory refusal, and SSH-owned local-path preservation alarms. Retain only actual authorized orphan deletion and no-marker notes-file preservation; they are not equivalent replacements. The no-marker fixture resolves the default getRepos owner, so it does not prove temporary owner-repo binding. Git/Store/PTY/notifications are mocked; no physical process stop, durable metadata, real SSH delivery or native UI proof is claimed. Unchanged historical oracle, coverage, evidenceRuns and escaped receipts retain their original scopes only; no fresh execution or transferred pass validates the reduced sources. Audit3492 composes ROOT-approved75(AUTHOR3475/PEER3476 and AUTHOR3485/PEER3481, including five-field clarification and zero-credit selector3483) plus123(AUTHOR3486/PEER3487 reconciled FINAL3491, including peer case10:3 and9:0 wording clarifications). It intentionally removes198 authored registrations/232 finite literal-table potential registrations across70 changed JS/TS test sources, including45 whole suites;87 authored/90 finite potential registrations remain across95 reviewed JS/TS bodies. One mobile native-suspension manual recipe and the now-unreferenced GitLab mock fixture helper are separately removed with zero registration credit. Static literal table potential is not execution. No equivalent replacement, fresh runtime result or merge credit is claimed. Earlier135 complete dated receipts, all raw gaps and full prior98/161/history notes retain their exact scopes and bytes. The additional123 retirement accepts loss of mocked GitLab request/error/identity/classification inventories; basic Linear migration and metadata discovery; simulated OpenCode key failed-save retention/retry/log redaction; analytics identity-flush smoke that did not prove ordering; AppImage static entry guards and empty-staging cleanup; GPU/process/minidump breadcrumb/annotation shapes and weak redaction oracles; namespace/status/foreign-launcher ownership guards and persistence roundtrips; profile transfer field projections; worker hook/screen/incarnation/result admission/classification guards; and source-coupled CLI transaction fixtures. Privileged publication failure injection was a false-positive: its mkdir regex missed -m 700 and outer rejection accepted an inner assertion before any shell ran. The identity-flush case awaited identity after flush and could pass despite early flush. Retained actual negative-token cache recovery, SQL filter-before-LIMIT open approval, unreadable-root FTS preservation/degradation, latest-connect-wins persistence, worker stop-debt settlement, unmodified same-inode foreign-content transaction, explicit incomplete-pagination error, FTS own-message snippet association, filter-before-route result and bounded-search truncation honesty are distinct bounded outcomes, not replacements for retired alarms. Case9:0 checks both roots before chmod but only mounted-session/degraded-root after chmod. Entire extraction-root suite is removed; no retained extraction cleanup is claimed. Removing the manual iOS foreground-stall shell script loses its unique real native-suspension recipe; timer tests do not replace it. First-match PIDs, indefinite waiting, broad success matching and absent trap cleanup made that diagnostic brittle and able to leave a desktop stopped. The current Windows operational driver remains byte-exact, preserving already-merged removal of orcad-convert and orcad-cli-convert selectors and the retained cmd/powershell/managed CLI lanes. The package skill-sharing release selector loses only the exact already-retired skills-suite token; no extra test credit. Included approved75 retirement account follows (historical proposal labels identify provenance; final198 counts above control): Audit3488 composes ROOT-approved source49(AUTHOR3485/PEER3481, including its immutable five-field clarification) and source26(AUTHOR3475/PEER3476): intentionally removes75 authored registrations/87 finite potential registrations across35 changed sources, including25 whole suites;35 authored/36 finite potential registrations remain in the combined reviewed scopes. Literal table potential counts are not executions. This source-only reduction has no equivalent replacement, fresh runtime result or merge credit. Root unit discovery deliberately loses entire message-row filtering/chunk reconstruction, discussion-pagination rejection passthrough, Linear bearer/stack redaction, new-profile telemetry/default/existing-JSON no-op, WSL user-trigger routing, terminal-delivery refusal, native-chat worker-approval UI, followup-paste routing, live-surface tombstone refusal, activity-bar hydration, fabricated approval-caller policy, child-PATH transformation and branch-review URL/identity suites. It also loses cache roundtrip/mode/fingerprint/fallback/no-op samples; GPU field-shape privacy examples; older auth-probe failure retention; orphan SQLite-sidecar/future-schema admission; usage tie/duplicate/composite-key examples; allocation-name sanitizer/unknown-prefix examples; real worker-and-backup preflight wrapper smoke; and JSONL descriptor-loop truncation. The discussion page contained id-only discussions without notes, so its rejection did not prove a nonempty notes-prefix oracle. The preflight did launch actual worker/backup entrypoints with production internal self-validation; removing its revision/version wrapper deliberately retires that real-entry smoke alarm. The skipped-prefix JSONL keeper rewrites/grows after collecting the suffix and before final validation, not concurrently during parsing. Retained queue rejection/recovery and held/drain mechanisms, recorder nonsettling-provider deadline, corrupt authoritative-DB refusal, legacy cache split migration, merge-added-row indexing, external-frame redaction, and pinned JSONL read/verification/mutation checks are bounded concrete oracles, not equivalent replacements for retired alarms. The full cloud relay cohort/ceiling/control suite is separately removed from the relay package runner, outside root unit discovery; no cloud runtime result is claimed. The Python computer-use benchmark remains unchanged tooling with zero authored/removal credit; no native benchmark trial ran. The package skill-sharing release selector drops only the exact already-deleted skills-suite token, with zero additional removal credit. Prior dated receipts, raw gaps, and complete earlier161/98/history notes remain exactly at their original scopes; no changed-source historical receipt becomes fresh reduced-suite evidence. Included approved26 alarm account: Broad root-unit discovery loses entire ref-label string, hostile/malformed CSV-link rendering, Codex filename-discovery, mocked paged-preview postscan mutation, usage path-containment, real symlink-ancestor, Codex skip RPC, local/remote inference routing, width-preference, and synthetic workspace-document input suites. It also loses the hand-assembled sorted CSV edit example, connect-time JPEG seed and invalid AVCC guard samples, and eight-record/64KiB detector boundary cases. The symlink suite exercised actual kernel traversal; its lost ancestor alarm could omit supplemental local editor watches and leave content stale, not bypass authorization. Retained linked stream cancellation, preview-only save fence, failed-flush dirty-draft preservation, clipboard byte/edit preservation, fragmented AVCC parsing and independent quoted-CSV interpretation checks do not replace these deliberately retired alarms. The stream fixture uses an in-memory source and does not establish actual fd cleanup; editor save endpoints are synthetic, browser events are synthetic, and no native focus, actual remote delivery, real disk write, cross-platform execution or interoperability is claimed. Earlier complete dated receipts, raw known gaps and previous notes are historical evidence at their original source/selector scope, not fresh evidence for this reduced suite. Audit3438 composes ROOT-adopted3434/independent3436: intentionally removes60 authored/62 potential expanded cases across16 sources, deleting9 whole suites. Eight authored/eight potential cases remain; delete the102line unused ACP fixture and57line unused teardown helper with zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses ACP model-catalog fixtures, resume-record projections, dashboard mock payload/state cases, mobile folder/launch/session examples and dictionary pipeline rows. Selected E2E removals also retire auto-conversion and golden-core journeys and one Windows CLI conversion registration. Retain ACP reply text across a resumed subagent, both VAD checks, focused tab send ownership, async focus ownership in happy-dom, the question-skip journey, the original managed Windows CLI lifecycle journey and dictionary substitution. These checks do not replace the removed alarms. Audit3470 composes ROOT-approved AUTHOR3466/PEER3467 source proposal: intentionally removes38 authored registrations/59 finite potential expansions, including8 whole registering suites, retaining13 authored registrations/18 finite potential expansions. The sole dead shell-recipe caller cleanup has zero additional test credit. No equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses process-import boundary, Korean/Japanese locale policy, worker-reset, mobile agent-history/queued-message and median-summary suites, plus packaged mobile-manifest, worker-pool fixture, HTML preview, mobile shell and terminal samples. The environment-provider contract and its sole shell-recipe caller are deleted. Separate cross-version-wire discovery loses the large byte-budget fresh-snapshot/replay sample while retaining independent live same-revision note publication; the retained terminal stale-refresh and dirty HTML draft persistence checks do not replace removed alarms. The source4 unused start/stop fixture hooks are removed; its retained nested failed-import test remains byte-exact with its own lifecycle. Unchanged SVG preview and Git-resolution registrations stay intact. Root balanced CI excludes the cross-version directory, which has a separate job; unbalanced root discovery can include its parent. No native app/device, actual remote, released-pair interoperability or cross-platform execution result is claimed. Audit3468 accepted source proposal AUTHOR3462/PEER3463, composed privately by audit3469: removes62 authored registrations/95 finite potential expansions, including5 whole suites, retaining25 authored registrations/29 finite potential expansions. ROOT approved source value; no equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses the profile-state worker smoke, worker-agent views and three search discovery suites, plus samples from node-server qualification, skill-bundle generation, CLI hooks/profile/recovery/offline admission, permission-hook holds and search indexing. The separate Cloud relay runner loses one relay blackbox sample; unchanged mobile native-chat and dependent-transcript drivers remain. Retained source callback/table/ancestor/fixture bytes bind to the sealed candidate. No physical-device, mixed-version, remote, cross-platform or app execution result is claimed. Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. Broad root-unit discovery loses whole cross-client workspace-sync, terminal-preview, picker-skill-hint and close-routing suites plus reduced worker-stop, remote-owned-record, scanner, mobile-bundle and daemon-health samples. Separate E2E discovery also loses the paired mobile/desktop mirror journey and two unit drivers. Retained callback/table/outer-loop/guard bytes are exact; retained checks do not replace the removed alarms. No app, native device, mixed-version, remote or cross-platform execution result is claimed. Audit3456 composes ROOT-adopted3449/independent3450: intentionally removes62 authored/82 potential expanded cases from16 selected drivers, including7 whole suites, while13 authored/13 potential cases remain. Delete the unused48line legacy workspace-session JSON fixture with zero test credit. These are source-only reductions without equivalent replacement or fresh runtime claims. Broad unit discovery intentionally loses whole trust-dialog observer, background-turn notifications, redirected session refusal, typed-agent identity, chat-tab lifetime-cost, model-manager and mobile diff-review controller suites, plus individual persistence, synthetic composition, pairing, manifest and subprocess samples. Retain deferred snapshot dirty-domain persistence, two direct editor ownership cases, stream counter-domain distinction, two persisted pairing identity cases, parser entrypoint asymmetry, dictation retry and process-group timeout; paired restart and packaged old-binary/corrupt-profile journeys remain in their E2E driver scope. Retained checks do not replace removed alarms. No fresh execution, native IME/microphone, real authentication, mixed-version/platform or performance result is claimed. Audit3451 composes ROOT-adopted3444/independent3445: intentionally removes101 authored registrations across16 reviewed sources, deleting7 whole suites and reducing8; one reviewed source is unchanged. Fresh main has123 authored registrations before and22 after because an upstream direct-child shell regression remains verbatim with zero removal credit. Registered removals are100+7*S and explicit-active removals99+7*S, where S is the unprobed count0..3 of admitted bash/zsh/fish shells. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses extra stream lifecycle/forwarding examples, unreadable-store/cache projections, orchestration presentation/benchmark cases, remote-owned routing matrices, mobile legacy navigation and model-catalog listing/cache examples. Whole suites retire renderer client-event projections, manually assembled structured-session reader ownership, mobile prompt presentation, renderer AI-vault resume commands, mobile Jira URL lookup, composer retention and mobile folder source-repository queries. Retained checks preserve original stream/store/orchestration/routing/navigation/catalog cases and shell behavior, including the upstream direct-child case. No real provider, native desktop or mobile acceptance is established by this reduction. Audit3446 composes ROOT-adopted3441/independent3442: intentionally removes100 authored registrations/119 potential expanded cases (118 conditional-active before platform gates) across16 sources, retaining11 authored/13 expanded cases and deleting6 whole suites. Two parent registrar import/call cleanups and the unused68line CLI recording fixture carry zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit and mobile discovery loses interrupt/wake registrars, task storage/session-close/account snapshot hooks, permission tables, copy/preference/model-discovery/composer examples, launch placement examples, VM projections and extra mobile-history scenarios. Retained checks cover abandoned versus dispatched fork uncertainty; /fast dispatch supersession; discovery lock release after exit; stale-send draft preservation; OSC status lifetime; future-version file preservation; launch cancellation before/during dispatch on both layout owners; mobile resume addressability before hooks; and recipe snapshot cleanup after plugin removal. The paired browser-link Electron source is unchanged. Terminal launch seams, mobile roles-only history and injected provider results do not establish native terminal destruction, transcript text fidelity or real remote provider cleanup. Audit3437 composes ROOT-adopted3431/independent3432: intentionally removes127 authored/174 potential expanded cases across12 sources, deleting7 whole suites and one267line unused helper without test credit. Retain8 authored/13 potential cases. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses reduced or deleted relay, coordinator mail, recovery watchdog, automation observer, launch picker, folder PTY, profile restart, web migration, retirement, pointer delivery, agent-row and run-bound mailbox examples. Retained checks cover relay hello/payload and SIGTERM drain, coordinator pending-check and clear-to-Run continuity, profile persistence, the full six-row web merge table and real run-bound delivery waiter. These do not replace removed alarms. Audit3429 composes root-adopted3426/independent3427: intentionally removes168 authored/205 potential expanded cases across16 semantic sources, deleting11 whole suites and one304line unused assertion helper. Five authored/five potential cases remain; the duplicate500k graph row is dropped while its50k row and callback remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted migration/recovery/federation/rich-draft/paste/automation/mobile/catalog examples. Keep server-edit preservation during migration, native supervised cancellation holding the agent home until physical stop, pagehide lost-text preservation, graph old-result WRAPPER WeakRef collection with50k rows, and mobile React render isolation. The WeakRef does not prove all commit objects are collectible or a memory budget. Audit3425 composes root-adopted3420/independent3421: intentionally removes83 authored/112 potential expanded registrations across13 semantic sources, deleting7 whole conventional suites and1 registering helper;7 authored/10 potential expanded cases remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted mock orchestration, refusal, restart and storage examples. Retain unchanged two-phase real-WSL deployment/survival, the reduced idle-release holder proof without restart/first-output measurement, real worker stop/release cleanup barrier rows, physical Git branch-preservation rows, and SSH disconnected-close proof. Other SSH and CLI variants and WSL telemetry/warmup churn are intentionally removed. Audit3417 composes root-adopted3415v2/independent3416v2: intentionally removes117authored/173potential expanded registrations from12semantic sources, deleting4whole conventional suites and3registration modules and retaining4authored/5expanded cases, without equivalent replacement or fresh execution. Broad root-unit discovery loses naming/title/queued-host fixtures, main-window focus-shortcut and attach-services mock orchestration, Git Bash console-capacity fake process inventories, most real-Git preparation/locking variants and Claude/Codex catch-up examples. Keep lifetime rejected-writer followed by late termination proof and autonomous real-checkout cleanup; two-row real-Git rollback after a real move preserving a replacement/admin marker or revoked permission; a live translator write during a held transcript read fencing stale Claude history append; and Codex expected-item revision rejection before a historical writer shim. Codex driver registers retained bounds exactly once with original inputs; bounds does not prove modern writer persistence. Accepted changed-lock preflight sentinel and omitted-parent routing losses are not replaced. Audit3413 composes root-adopted3405/independent3406 and3409/independent3410: intentionally removes337 authored registrations/363potential expanded cases from13sources, retaining31authored/32potential cases and deleting one whole clipboard suite, without equivalent replacement or fresh execution. Broad root-unit discovery loses35WSL examples,22STT examples,22shared-server-banner examples,18clipboard-handler examples (whole suite deleted),14VM lifecycle examples and16commit-message cancellation examples. Retain4WSL and7STT mocked connector/worker cases,1rendered stale-banner refusal,2VM guard/failed-compensation cases and1late-stream ownership cancellation case; real WSL/microphone/remote-provider proof is not established. Separately discovered e2e-unit drivers lose13cross-version-wire local cases and15mobile active-publication cases, keeping same-process disk-reopen/new-host cursor content/epoch/sequence outcomes and a host/renderer-snapshot selection and inventory revision race respectively. Imported released stop-note scenarios remain unchanged and receive no duplicate credit. Cloud suites are outside root UNIT_INCLUDE. Audit3403 composes root-adopted3393/3394,3400/3401 and3398/3399: intentionally retires167 authored registrations/196 potential expanded cases across93 whole suites without equivalent replacement or fresh execution. Retained65 registrations/79 potential cases include one conditional missing-input failure sentinel; potential counts are not executions. Historical notes and complete dated receipts retain their exact original scopes. The retained runtime registration driver loses three complete imported fragments: changed-working-label title facts and suppressed-frame tracked snapshots; refusing SSH GitLab MR-base lookup before local Git/glab calls; and missing folder-workspace path creation/update refusal before spawn/store mutation. These alarms are intentionally lost. Other imported fragments and separately rooted dated receipts are unchanged; they are not equivalent replacement coverage. The broad root-unit command loses the UNIT_INCLUDE src/ subset of retired examples; mobile is outside UNIT_INCLUDE. Other lost alarms are recorded by the adopted per-case source reviews. Audit3390 composes root-adopted3382/independent3383 and3386/independent3387 and3388/independent3389: intentionally retires216 authored registrations/230 expanded cases in42 whole authored suites plus5 zero-case registration drivers, without equivalent replacement. Lost local alarms include fake PTY identity/routing/startup/replay/mode/title/mouse/IME/scroll matrices, broad startup identity and file-open wiring, mock mailbox title recovery, mobile row parity and whole-v-selective save parity. Retained24 registrations/26 expanded cases in22 suites preserve actual xterm Windows buffer/wrap/scroll, typed TOML scalar, real Promise cancellation/settlement, HTTP Codex scanner/projector semantics, durable recovery admission/newer-schema bytes, federation completion/ACK/SQLite atomicity and failed stale-run-write versus imported durable history. Additional retained clock-domain scheduling, durable freeze/ACK/checkpoint ordering, ABA dirty intent, SQL atomicity, folder-domain retier/last-note deletion, scrollback durable no-sync staging, PanelBridge subscriber lifetime and reserved-send publication preserve narrower concrete behaviors. Current finite owner drift assessed in bounded defining bodies; retained callback bytes unchanged. Historical notes and complete dated receipts keep their original exact scopes. No new execution, equivalent replacement, native focus/device/pixel, live remote or global mixed-version guarantee is claimed. Audit3381 composes root-adopted3376/independent3377 and3379/independent3380: intentionally retires436 authored registrations/670 expanded cases, including79 whole suites and12877 test lines, without equivalent replacement. Lost alarms include scheduling, account/host/status/filter/format inventories, microphone/image cleanup, title/bell/capability lifecycle routing, access/impersonation/outcome matrices, paste/input resend/ledger/retention, stale completions/reload containment, trust-read failure and popup OAuth/security/geometry vectors. Retained30 registrations/34expanded cases in22 suites preserve narrower SQLite TEMP/TZ/WAL, HTTP transcript root resume, mobile original-index Choose/Submit, child environment/Git lock expiry, stale ACK/PTY lifetime/peer fairness/durable replay/output ordering, actual DOM paste/editor focus, DEC2026 conservation, filesystem rollback, owned buffer lifetime, actual OSC parser/tracker handback, POSIX Python UTF8/fallback, durable trust concurrency/version, OpenSSH verdicts and hidden Chromium POST/route lifecycle. Mocked boundaries limit claims. Current bounded defining-owner reads preserve the retained oracles; captured identities are not full transitive semantic review. Both component blind pins authenticated before exchange; final reconciliation and explicit postpin3380reason correction supplement control, without retroactive blind claims. Root unit command excludes mobile and separately admitted Electron probes; use existing respective runners. No fresh execution, native focus/device/pixel UI, live SSH/remote, equivalent replacement or broad mixed-version/cross-platform validation is claimed. Prior dated receipts retain exact original scopes. Audit3375 composes root-adopted3370/independent3371 and3373/independent3374: intentionally retires79 authored registrations/84 expanded cases, including39 whole suites, without equivalent replacement. Lost alarms include federation field/parser inventories; Claude rejected-key precedence, credential clone redaction, managed-versus-user hook preservation and CLI defaults; setting/status/activity projections, mocked SSH/notification/reveal/Linear refusal, fake-clock reconnect and noise; image-fold artifact visibility, paste eligibility, setup trust, scripted ACP error-to-journal publication and ligature cache tuple aliasing; plus supplied folder-runner uniqueness, mobile host-overlay/credential/update/preference races, status/markup/title/keyed-row projections, subscriber cleanup, cancellation/close/refusal/link-issue and mirror suppression alarms. Retained3373 merger contiguity, dual-clock overdue-resume exactly-once, rejected-paste IPC sink and annotation schema roundtrip remain bounded. Retained actual HTTP/OSC status composition, destructive sibling-filesystem isolation, external contrast invariant and fixture CSS pixel intervention remain narrower. Original reviewed87authored/92expanded become9/9; current OpenCode suite adds two preserved upstream cases and the synthetic-title suite gained one Cursor policy mock-call case, independently reviewed for removal in root3378; current90/95 become11/11. That Cursor suppression/ready-frame regression alarm is intentionally lost; it does not observe native title ownership or tab flicker. For3370 only the peer was independently blind, with author exposure explicit;3373/3374 both blind pins were verified. This broad root unit command selects the reduced root unit suite; UNIT_INCLUDE excludes mobile tests, which require the existing mobile runner; retained Playwright component-pixel spec uses its separate existing headless fixture runner and is not validated by the broad unit command. No fresh execution, actual agent/shell/provider, OS material/focus, historical import equivalence, mobile, mixed-version or cross-platform evidence is claimed. All dated receipts retain their original scope. Audit3368 composes root-adopted3363/3364 and3367/3369: intentionally retires181 authored registrations/196 expanded cases, including28 whole suites, without equivalent replacement. Lost alarms include hibernation attention/liveness/backoff/sequential teardown and inventory, host launch compatibility/legacy/Kimi/resource cleanup, terminal recovery parser/pause/quarantine/remount, window-visibility omission-fence lifetime, launch-option rendered Start, sleeping-resume saved recipe/WSL quoting/cancellation, plus removed project/window/input variants. Additional tiny-suite losses include sentence/label/field/default inventories, credential omission, Windows argument/environment mapping, URI decoding, diagnostics, provider classification and fake-clock callback/parser examples. Retained ten registrations/twelve expanded cases include two literal Unicode Mn/Cf zero-width range guards in the actual character-range algorithm and protect narrower delayed editor bytes/destructive ownership, mounted hidden collision repair, ten transport epochs, duplicate-command refusal, caller timeout typing, executor unknown-opener refusal and failed-chunk user bytes. This broad unit command selects the reduced suite; no fresh runtime, real provider/network/PTY, filesystem restart, native UI, historical import equivalence, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3362 composes root-adopted3358/independent3360: intentionally retires129 authored registrations/140 expanded cases, including four whole suites, without equivalent replacement. Lost alarms include supplied orphan-adoption retry/malformed inventory/cancellation; fake-terminal replay parser/wedge/disposal callbacks; all-host catalog metadata and Windows preferences; host keepalive/protocol/stale/settings failures; and removed exact-stop/suppression, source save lifetime, diff-note queue, rename/editor close, input flood/chunk refusal/limits, purge and creation examples. Retained18 registrations/21 expanded cases protect narrower ownership, generation, dirty-state, queue convergence, encoding and attachment-lease outcomes. No replacement or keeper quota claim. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY/xterm parser, disk restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3359 composes root-adopted source3355/independent3356: intentionally retires130 authored registrations/139 expanded cases, including eight whole suites, without equivalent replacement. Lost alarms include strict create naming/capability/legacy payloads; supplied transport host replacement, deadline reattach, create-handoff and split activation; agent-session fork/clipboard/platform flags; shutdown cleared-scrollback/unmounted bindings; simulator host-collision/selection/shutdown; and removed editor, catalog, mutation, launch and status examples. Retained12 adverse-ordering/state-consequence cases are narrower and do not replace all removed alarms. Two queue absences receive zero removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY, filesystem restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3349 composes adopted batches3343,3345 and refreshed3354: intentionally retires234 authored registrations/294 expanded cases, including13 whole suites, without equivalent replacement. Lost alarms include supplied terminal reconnect/replacement/typeahead/mirror/result and snapshot examples; synthetic render-desync persistence/recovery; worktree listing/owner/catalog/lineage/removal and activation/creation examples; host-scoped PR and task-record projections; editor diff/status/comment and UI send-target examples; automation observation/wake, supplied sleep/deadline clock and native-chat completion/notification/relaunch samples; held-tab layout and cleanup/progress guard examples. Retained adverse-ordering and wire-boundary cases are narrower and do not replace all removed alarms. The already-upstream visibility-resume deletion receives zero new removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH, native process/power/GPU, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3342 composes adopted source batches3333/3334,3336/3337 and3340/3341: intentionally retires180 authored registrations/263 expanded cases, including seven whole suites, without equivalent replacement. Lost alarms include corrupt editor hydration; mobile editor/diff publication and privacy projections; stale-resubscribe routing; model-picker projection/refetch/retry/fallback; editor check-details and frame property inventories; latched-pane cleanup/quiescence; client create replay identity/options/compatibility; and removed owner, async routing, terminal and layout examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts keep their original scope. Audit3335 composes adopted source unions3327/3328 and3330/3332: intentionally retires100 authored registrations/123 expanded cases, including ten whole suites, without equivalent replacement. Lost alarms include seeded host persistence/contention and stale-host cleanup; browser snapshot assembly; mocked wake/DPR callbacks and frame budgets; preflight projections; palette authority/cache suppression, URL intent and saved-title cross-repo collisions; metadata coverage/set patch and dropdown assembly; and removed terminal, worktree, review-refresh and owner-routing examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI/GPU/focus, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain only their original scope. Audit 3318 composes adopted sources 3310, 3313 and 3317: intentionally retires 71 authored declarations and 102 expanded cases, including whole terminal-detach agent-retention, seeded batch/single open-files equivalence, shallow context-menu shortcut-badge, mocked active-workspace delete-dispatch, workspace session hydration, SSH target cleanup, editor session hydration and worktree terminal purge suites. Lost alarms include chained transfer alias and immediate close/exit retention; batch/single divergence, survivor/selection/map preservation and input nonmutation across 400 imperative seeds (one registered case); disconnected pending-handle retry, authoritative absences/close-record shortcut/older-host absence and published-presence/unpublished-frame examples; published empty host-graph omission to pane exit; legacy search ranking/exclusion fallback; provider request upgrade/dedupe/finalizer ownership; asynchronous PR suppression/primary-change and same-number different-repository URL rejection. Deletion routing loses host/instance qualification, paired and legacy mapping, folder ownership, active-versus-hover/menu-row selection, ambiguity, modal/editable/creation/view/main/deleting/missing guards and shortcut advertisement. Unchanged real keyboard/hover/confirmation/catalog E2E remains narrower, not an equivalent replacement. Additional losses include scripted old-host disk/UTF-8/noop/baseline and landed/unlanded lost-reply/replacement-retry outcomes; ordinary/repeated healthy-link reattach; cross-owner terminal/chat binding; oversized replay permanent-unavailable classification; floating reveal keyboard ownership/close/disable/listener disposal; naming/retained-turn/Sleep/error/close/reject status tables; SSH membership prune/new-target-only reads and environment/local bucket isolation; same-frame receipt capacity and positive bare/headless publisher readmission. These actual regression alarms are deliberately lost; no fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit 3312 composes adopted sources 3302 and 3308: deliberately retires 33 authored declarations and 36 expanded cases, including the whole backend startup-focus, active-browser IPC-close-routing, remote-browser-creation and agent-terminal-presence suites. Intentionally lost alarms cover distinct six-pane reconnect handles; SSH host label/Connect callback, unhydrated visit cleanup, repo cache aliases and hidden worktree/tab/PTY cleanup; adopted-agent startup focus and viewer navigation/reuse; staged, pageless, source, stale and orphan browser-close routing; web local-materialization refusal, desktop incapable-host fallback, failed/thrown remote creation and paired-web sign-in refusal; BOM/NUL and remote/local custom-editor byte-read examples; immediate folder activation and unread clearing; and batching idle/coalescing, accumulated byte ceiling, leading-edge-disabled, standalone synchronous oversize rejection, validation yield, deferred pending-tail order and both viewport-clear examples. The newly reintroduced agent-terminal-presence suite also loses actual terminal-status membership positive and nonterminal-status callback suppression alarms, including the recent 40916 guard regression; the older different 2133 presence-suite history remains historical and receives zero duplicate removal credit. These real regression alarms are intentionally lost. The unchanged survivors provide narrower coverage, with no equivalent replacement or fresh gate, provider, rendered, remote/mobile, mixed-version, cross-platform, soak or measured-budget validation claimed. Audit 3301 combines adopted source batches 3296 and 3299: retire 27 authored declarations and 36 expanded scenarios, including six whole suites. Intentionally lost alarms cover failed-verification/recovery/restart counters and mocked hosting/toast; early overlapping pane-read scheduling/count; unreadable removal listing draft guard; bulk-purge remote-qualified and raw-local guard maps; initial-snapshot blank/mode/oversize/printable/fresh-spawn callback and replay examples; fallback mobile file close and ordinary MRU; default queue overload/drain; seeded browser-page reuse and supplied missing-page URL recreation; ambiguous sleep/hibernation owner refusal and untouched bindings/origins; ordinary selection/activity/fallback priority; skip-remote success and retained hints; supplied structured-chat unsent retention and scoped removal draft eviction; caller-chat focus precedence; open/draft PR cache eviction and merged-head fallback result inventories. Retained adverse-ordering and ownership cases are narrower and do not establish equivalent replacements. No fresh runtime, native, physical provider, cross-platform, mobile or mixed-version evidence is claimed. Audit 3292 combines adopted 3285/3287/3289/3293 removals: 40 authored declarations and 47 expanded scenarios, including whole frame-editor-view, ambiguous remote-delete-refusal, unverifiable-host subscription and editor-close cleanup suites. The previously reviewed dock-badge suite was already removed upstream in PR 40895 and receives zero new removal credit. Intentionally retired alarms include background browser selection and last-tab landing; main startup fallback, SSH project cleanup/survivor routing, exact-PR contradiction/saved-push positives, replay/sidecar rollback and wrapped remote error normalization; records/snapshot missing-diff hydration, ambiguous folder-owner delete refusal, focus no-op notifications, nested editor context-only cache check, pending broadcast-first status and ordinary four-confirmation aggregation; preview-source frontmatter pruning, approved local/runtime agent dispatch, non-GitHub legacy PR cache invalidation, stale merged-head transient-error fallback, empty-queue immediate query reply and unverified-to-concrete preflight risk. Additional intentionally retired alarms are injected host subscription/unsubscribe counts, synthetic editor reveal/draft/fallback/scoped close, ambiguous unread refusals and hidden mark/read roundtrip, immediate connect backoff/noError, positive mirrored evidence-clock renewal, supplied VM failure/success projections and git-local/folder-SSH wake permutations. Remaining temporal/ownership cases are narrower; no equivalent replacement or fresh execution is claimed. Audit 3283 removes 20 authored declarations and 31 expanded scenarios, including two whole suites. Retired alarms cover PR refresh-state pruning, shared runtime subscription cleanup and store isolation, language content-change routing and older completion ownership, ordinary panel retry-timer cleanup and pending loading, four hosted-review lifetime permutations, mocked terminal creation error/order wiring, five sleep-inventory variants with pending-frame-only assertions, palette fallback/composite highlights, Windows/UNC encoded-editor input rows, mixed-repository partial failure counts, title setters and generated-title bypass/replacement, five window-close coordinator delegation/guard/finally branches, and ambiguous-old-record frame reveal. These regression checks are intentionally lost under the test-value audit; retained cases are not equivalent replacements. Prior coverage notes and receipts remain historical. Audit 3273 removes 14 authored declarations and 19 expanded scenarios across four whole suites and eight partial suites. Retired alarms cover saved-local cancellation/layout ownership, ambiguous-owner warning reset, folder attachment routing, VM false-capability bypass, abandoned reveal warmup cleanup and viewport claim deduplication/rearming, quiet unrelated remote-removal refusal, startup-command one-shot consumption, repository/floating recovery-ledger rows, fake-React pinned-scroll intent, split-ratio state identity/subscriber suppression and fractional change, cross-host project-group join refusal, three PR request-lifetime permutations, upstream-status preservation on error, and unresolved Git-owner refusal. These regression checks are intentionally lost under the test-value audit; retained scenarios are not equivalent replacements. Historical coverage receipts remain historical, including gate35 subscriber claims. Audit 3256 removes these specific alarms from the broad root unit commands: skill dialog active-share selection, close and pending-share handoff; simple keyed-record deletion; marker live-region insertion, simple landing and nine baseline policy examples; General search/control navigation inventory; orphan-count cache bootstrap; seven Codex code classifications and HTTP 429 warning mapping; two skill unread-root verdict examples; peer-mail payload and conversation-ID rejection; and the GitHub organization TABLE text-field optimistic rollback/failed-envelope example. These include real behaviors; retained tests do not provide equivalent coverage for every removed scenario. Mobile losses are recorded separately and are not coverage of these root commands. Audit3246 retires NewRowsMarker reveal/no-repeat and pane-scoped beforeinput checks; skill-owner option availability/count/dedup/order; six styled Input/Textarea IME forwarding rows; the static Codex/OpenCode smart-key inventory; tab-map AST ratchet diagnostic fixtures; child-roster work-budget and retained-aggregate alarms; malformed persisted floating-cwd fallback/no-crash/empty exact-root checks; the unanswered-host empty-list discriminator; the direct invalidated-cache commit-false assertion; one redundant digit-keyup IME row; cached non-supported Claude title-generator rows; and the duplicate late naming-result singleton. These root broad commands lose those specific alarms without equivalent replacement. Distinct retained owner/state checks have their own bounded claims; the real scheduler still rejects stale response data, while the direct false-return alarm is retired. Audit3231 retires supported-host restore-pane key mapping, closed/open creation-sidebar toggle visibility, unrelated scope-error/null classification and quick-submit reveal/no-create checks. These broad commands lose those real narrow alarms; no replacement coverage is claimed. Audit3219 removes the synthetic Cmd+J extra-source suite; this broad command no longer checks its match/tie placement and selection, announced count, empty-query cap, or workspace hiding with retained recent tabs. No replacement coverage is claimed. Audit3209 composes approved sources3202/3206: deliberately retires seven authored/expanded cases in four whole suites without equivalent replacement. Work-item queries lose real GitHub/GitLab oversized ASCII secret-prefix empty-query and whitespace-before-trim refusal alarms; inputs share the imported size bound and exercise only its fast length branch, with no multibyte or actual provider/exposure guarantee. Skill sharing loses complete/partial managed-bundle and destination-ambiguity association checks plus three negative origin/path/scheme admission examples; these do not establish uploaded contents, arbitrary-URL fetching, authorization or execution. Retain exact originless-project direct-link fallback, cloud-delete confirmation, bundled-target repair/owner isolation and explicit Windows-host preference over stale WSL suites. Rejected3201 runtime-preference removal is excluded. No real cloud/network/host/disk, mobile or mixed-version execution validation is claimed. Audit3200 composes approved source3194: deliberately retires thirteen authored registrations/twenty-seven expanded cases in six whole automation host/list policy suites without equivalent replacement. Real RPC category/retryability and wrapped-timeout recognition, unscoped-failure/scoped-success health evidence precedence, exact-ID create selectors and per-run workspace omission, paired-web local/SSH/absent host catalog routing, incompatible/removed/unhydrated/offline execution health, runtime-before-nested-SSH recovery dispatch, and no-owned-focus/successor/foreign-list focus policy alarms are consciously lost. Retain exact20line orphan allow/refuse/precondition and exact90line cross-host same-ID search suites. No retry-timer/fence lifecycle, actual reconnect/network/write delivery, native focus, mobile/mixed-version runtime or disk persistence coverage is claimed. Audit3191 combines approved source3182/3187/3188: deliberately retires thirteen authored Vitest registrations and fifteen expanded cases, including five whole suites, without equivalent replacement. Attachment intake loses real portal/native-capture terminal interception and unowned-container refusal, immediate child-only committed availability/claim-ref negotiation and delivery, and direct-target over stable focused/background composer routing through disable/re-enable/remount and independent question focus. Exact destination/cache/draft and final-stat owner/workspace/File-release suites remain; they do not replace Surface recipient routing. Automation authoring loses destination runtime catalog membership, local/direct-SSH exclusion of paired-runtime repos, unknown-runtime empty catalog, logical project/host/setup/repo/path context payload, and missing/nonready setup refusal; these were genuine direct helper alarms, while exact schedule transformation, legacy schedule and setup-decision suites remain. Agent picker loses setup-chat/terminal/missing-installer/unsupported-or-unknown-host row projection samples and the ordinary unsearched menu variant; the entire original26-line resume recipe suite remains, including reported bypass versus default/absent permission modes, as does the exact search-result menu callback with its fixtures, model/effort commits and staged Arguments reopen outcome. Rejected predecessor3180 full recipe deletion is excluded. No actual native drag/cursor/focus/IME, upload bytes or disk/restart persistence, full automation save/scheduler/runtime transport, real resume-process flags/environment delivery, or native menu/rendered layout validation is claimed. Audit3178 combines source3169/3170/3175: deliberately retires eight authored units (six Vitest cases and two imperative custom relay scenarios), including two whole suites, without equivalent replacement. Voice Section loses per-model pending-delete isolation across interleaved A/B completion and the two-success refresh-call alarm; exact VoicePane delayed key-clear/newer enabled-toggle merge remains and does not replace row deletion coverage. Speech loses dedicated rating-scale/inclusive-ceiling, unsupported-versus-unmeasured, explicit/system-language precedence/locale alias, accuracy versus fast named/default/best-measured selection, and unmeasured/no-match examples; exact offered-user-pick versus retired-selection case and its fixture remain. Relay loses legacy ping-delivery count/liveness sampled before the silence deadline and grouped malformed Bearer/host-ID 401/429 routing checks; twelve real Worker/DurableObject/shipped-client scenarios remain, not equivalent replacement for those narrow alarms. Six prior speech cases are not all deleted: approved successor3175 keeps the original user-choice case. No actual credential/file persistence, native/GPU/engine/download delivery, production assignment policy or deployed-runtime validation is claimed by this reduction. Audit3165 combines source3160/3162: deliberately retires six authored/expanded cases across three whole suites without equivalent replacement. Launch/status losses: observed React-render pending/resuming coordination across settings and deferred offer read; stale-offer reread suppressing dialog reopen; held-local-chat recovery visibility with new-chat preferences off; disabled-local admission avoiding offer RPC despite an injected but unconsumed paired-tab fixture; and run-only lost-reply uncertainty reachability until direct viewed-run retirement. Launch probe does not prove arbitrary synchronous-store atomicity, the paired fixture is not remote runtime enrollment, and the status case directly marks viewed state rather than rendering the summary. Crew-hook losses: old-host method_not_found cache persists across party changes but is released by independently supplied connection generation/verified pairing status or pairing revision, with actual frame publication and teardown. These are real narrow coordination, admission, uncertainty and mixed-version cache alarms consciously lost. Exact web verified-runtime writer handoff guard remains; it does not replace those alarms or prove live host/native/mobile delivery. Audit3156 combines3147/3150/3152/3153/3154: deliberately retires39authored/40expanded native-chat recovery cases, eight whole suites and two orphan test-support files without equivalent replacement. Lost alarms: lost-reply unconfirmed reconciliation, skipped rows/counts and missed-frame repair, unknown/pending outcome and omitted-failure-list compatibility, uncertain history after dismissal, retry/refusal/dismiss lifecycle, hidden/consumed picker ownership, result-tree keyboard focus/disclosure and all-skipped retirement; unconfirmed-over-conflict guidance and failed-chat changes despite older host timestamps; nearest-listed ancestor/cyclic forest shape, descendant membership, host ordering/missing-host local fallback; skipped/readiness/admission counts, provisional skip/progress monotonicity, early per-chat verdicts with batch pending protection, older-host waiting, start-slot/delivery distinction, retry-over-failure and unknown-after-withdrawal attention; remote snooze/reconnect/reoffer, unseen mixed summary through open/close, watched completion retirement, new success beside old failure, failed-reread mixed-result preservation, filter/collapse completion resets, retry summary replacement and current-offer/history selection; cross-host workspace identity, rendered cyclic reachability, nested tri-state/toggle propagation, project eligibility isolation and collapse preserving selection. Exact fallback-list completion barrier, batched verdict/cleanup retention, stale-read versus dismissal publication race, and requested-but-never-rendered finished-run retirement remain; they do not replace retired alarms. Audit3146 combines source reviews3132/3133/3135/3138/3143: intentionally retire20authored/31expanded cases without equivalent replacement. Provider-session losses: structured-native terminal-resume exclusion, metadata-less completed identity, new-turn completion clearing, Pi provider-only/periodic/manual promotion, changed-transcript launch-config isolation, Pi/omp/prime-agent completed-session remote/manual-shutdown promotion, and quit/done precedence over heartbeat. Side-thread/question losses: finished-pane acquisition, hidden title/recap states, local/relay/relay-done conversation takeover with prompt/session/child resets, plain-message abandonment, compaction/session replacement and completion resets. Codex startup losses: incoming-owner cached child replacement, old-relay foreign live-session correction, completed foreign-root turn-fact permutations. Transcript losses: real temporary-JSONL partial sibling/final-child completion, unlabelled child attribution, compact cached replay preservation and100/1000completed-child roster retention/release. Compiler-ratchet losses: valid-line uncompiled-list parser grammar examples and injected-existence stale-path filtering; these did not exercise actual filesystem canonicalization or build exclusion. These are real lifecycle, ownership, replay, liveness and retention alarms, including recent#40246 regressions, deliberately lost. Retained conditional record replacement, clockless root/SSH owner isolation, persisted main-thread fork rejection, partial/final question-answer lifetime, cached-roster/missing-ID/live HTTP/durable startup boundaries and restarted-relay refusal/acceptance do not replace those losses. No native/SSH/WSL execution or equivalent coverage is claimed. Audit3128 scoped coverage reduction: Audit3121 removes VoiceDictationLanguageSetting.test.tsx (Spanish-to-es callback and unsupported-model Korean option presence) and voice-speech-model-rows.test.ts (provider/language-order/retired-on-disk list policy); these real narrow alarms are deliberately retired without replacement. VoiceSpeechModelSection per-model concurrent deletion remains unchanged. Audit3122 removes the direct absolute/parent-segment sparse-directory exception-type sample and the five-row IPC sparse-preset error-code/non-save table (two authored/six expanded cases). Those real typed-validation and IPC refusal/error-code alarms are deliberately retired. Keep both real symlink/junction floating-directory trust cases and the minimal RPC structured validation-reason serialization case. The RPC case does not replace IPC save/refusal behavior, typed normalization for both path inputs, actual Git sparse checkout or rendered localization. No equivalent replacement or fresh test/runtime/platform/remote/performance validation is claimed. Audit3124 removes ExperimentalPane.test.tsx (ordinary Pet switch callback), WorkspaceDirectorySetting.test.tsx (padded absolute saved-path normalization/no-write blur), and repository-search.perf.test.ts (navigation/selected-pane builder-call policy, fixture cardinality/nonempty entries and renamed project keyword inclusion). These real narrow alarms are retired without replacement; RepositoryPane.search.test.tsx search-to-sparse-editor request remains unchanged. Audit3129: resolver Windows case-insensitive and POSIX case-sensitive configured-env composition plus mocked-base launch-preflight Windows composition are intentionally no longer checked by the two deleted suites. No equivalent coverage claimed. Keep runtime-structured-agent-host-env.test.ts unchanged: configured Windows Claude-home account identity and host-account precedence remain checked. Audit3114 incorporates source3101: retire three structured Claude child-environment wrapper cases covering inherited stamp isolation/default and explicit entrypoint, Windows SDK-key canonicalization/default/duplicate-key order, and configured lookup/final environment/config-dir conjunction. Keep direct auth/session sanitation and Windows-versus-Linux overlay checks, actual executable lookup from supplied inherited PATH, native Windows child environment delivery, and stale option-mutation fencing. These are not equivalent replacements for the retired wrapper alarms. No fresh test/runtime, real login-shell probe, Claude SDK startup, remote/mixed-version, UI or performance result is claimed. Audit3114 incorporates source3105: retire 17 authored/20 expanded daemon launch-note cases, including the entire two-case SessionLaunchNote suite. Deliberately lose split-marker carry across same-token re-arm, stale-token retirement refusal, foreground tri-state and serial settlement, omitted-note/no-incarnation mixed-version policy, sticky retirement, first-incarnation/replacement launch preservation and held-launch precedence. Keep only the unchanged unresolved foreground-read race against a later finished attach. Supplied notes/foreground and runtime calls do not establish actual daemon/main restart, SSH, native Windows observation, mobile UI, equivalent replacement or fresh runtime/performance validation. Audit3114 incorporates source3109: retire six authored/35 expanded pricing cases: 21 accepted model-name examples, 10 unsupported/future-model fail-closed examples, malformed TTL clamp, unknown-model estimate refusal, flat-model long-context disregard and oversized long-context clamp. Keep mixed five-minute/one-hour write allocation and short/all-long/mixed long-context allocation with original fixed oracles. Real parser/refusal/bounds alarms are knowingly lost without equivalent replacement; retained tests do not validate provider rates, actual billing or request threshold classification. Preserve the archived usage-scan-append source-freeze receipt without transferring historical execution/performance credit. No fresh runtime result is claimed. Audit3108 source-only reduction (3094/3095/3100): retire 27 authored/30 expanded cases, including complete markdown view-state, file-preview link-open and CLI agent-server-route suites, without replacement. Deliberate losses include preview visibility/reference lifetime and same-path owners; SSH stat, directory/missing-target, explicit-null owner, nonmarkdown line/column, local URI routing, remote-to-client guard and same-file reuse; document-preview source-owner/folder/reuse routing, stable grant location and outside-workspace POSIX/Windows request projection; and verified remote CLI send/check refusal, suggested --on argv/copy, shell no-probe bypass, unverified-launch admission and older-peer refusal. Retain two markdown source-runtime/qualified-reveal alarms, one stale grant-rejection fence and two remote read/mutation evidence policies, with original callbacks. Final last-wins reveal did not prove transient cancellation; CLI prerequisite did not prove no real send, and envelope tests do not execute server refusal. No fresh runtime, rendered UI, actual file/SSH/paired transport, authorization, mixed-version or performance result is claimed. Audit3096 source-only reduction (3087/3088): retire 69 authored/76 expanded cases, including complete recovery-portals and reconnect-banner suites. Intentionally lose dead/default TUI replay, generated alternate-frame style composition, reset/mode/dimension and legacy missing-mode-boundary alarms, UI notice/action/reveal policies, and isolated recovery lifecycle variants, without equivalent replacement. Retained registrations and callbacks are unchanged; headless cells are not pixels, and no fresh runtime, host, SSH, WSL, rendered-app or performance result is claimed. Audit3086 source-only reduction (3079/3080/3081): intentionally retire 93 authored/100 expanded mock-boundary cases, including the complete spawn-errors and SSH reconnect overlay suites, without replacement. Retired alarms include spawn classification/ownership, reply ceilings and renderer-write failure recovery, disconnect/detach fencing branches, authority facts, and overlay retry/visibility wiring. Retained callbacks are unchanged; no fresh execution, real PTY/SSH, rendered UI, or performance result is claimed. Audit2432: The broad unit command loses the isolated BranchPicker open-change notification sample. Its unique true/false callback alarm is intentionally retired; reopening/status-refresh behavior was not exercised. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2425: The broad unit command loses the workspace-copy-status supplied readError forwarding sample. It did not exercise the branch-switch blocking promised by its title. This alarm is intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2417: The broad unit command loses two ordinary clean Git cherry-pick/revert success samples and two terminal startup foreground-read work-budget samples. These unique alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2412: The broad unit command loses the whole six-case fake-React-hook scroll-anchor suite, two generic draft-retention samples, a simple new-agent order sample, a real history-publication batching-count sample, an unmounted handoff abort/timer sample and three basic WSL preview/error samples. These alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2404: The broad unit command loses the standalone share-name lookup 503 propagation suite, initial deletion placement-kind sample, direct changed-mtime stale sample, first-pass rollback existence example and abandoned-preparation directory sample. These exact alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2397 review amendment: The broad unit command loses three standalone suites, two partial-case definitions and two URL table rows across package/download/placement tests. Keep initial wrong-port authorization, modified independent-copy digest refusal and abort-after-begin cancellation dispatch. The remaining alarms are deliberately retired; no equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2393 current-parent refresh2401: Remove the basic skill-install service alias sample and original public managed-remove receiptless refusal case. Preserve the upstream request ownership suite and transaction interruption coverage. No equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2389: The broad unit command loses the missing-preview suite, plain-global destination sample and prepublished-receipt recovery example. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2385: The broad unit command loses four authored walker/staging/protocol examples (six expanded cases); no equivalent replacement or fresh validation is claimed for the reduced suite. Audit2383: The unscoped Vitest command no longer includes the removed Antigravity catalogue suite; its exact provider-root/owner example has no equivalent replacement or fresh validation claim. Audit2377/2381: The unscoped Vitest command includes the reduced bundled-skill and native-discovery suites; the eight removed backup/legacy/catalogue/symlink/SSH-builder examples have no replacement-equivalence or fresh validation claim here. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts: delivers remote file changes to listeners for the same worktree. src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/mobile-session-tabs-part-14.spec'). src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-03.spec.ts: arms the stale-title timer for a seeded working title; arms the Command Code scrape from the noted spawn command; prefers the tracked title over a stale renderer lastTitle in the hydration seed; writes recent output into the current runtime output map; uses a later title handler replacement with the runtime receiver; calls the current injected listener with the runtime receiver; keeps optional reconciliation lazy after its callback is removed. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-14.spec.ts: lists them, so a paired client can mirror a migrated editor; closes one by retiring it from the host session; keeps an unsaved draft unless the close is forced; shares aggregate work but leaves a replacement pending promise alone; lets a targeted refresh finish while an aggregate refresh waits; refuses a close when the store lacks %s before the guard; keeps a later missing %s on the original caught failure path. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Exact retired assertionRefs, preserved as historical objects only: {\n \"file\": \"src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts\",\n \"assertions\": [\n \"terminal watcher error and setup failure evict the shared entry before retrying callbacks run\",\n \"an old stream end cannot evict the replacement stream, which still delivers to its listener\",\n \"two same-worktree listeners share a synthetic subscription until the final stop unsubscribes and sends unwatch\"\n ]\n } Historical prior account (preserved verbatim): Audit1973: Delete the standalone mocked watcher cleanup suite and its entire sole-file prospective command. Retire the removed file-command transport-abort alias; preserve the independent cancellation suite and final-overflow/error/end cleanup callback, and13 unrelated receipt objects. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial runtime files-watch suite retains controlled Windows close-event waiting, shared-client survival, late physical-exit ownership/deadline cleanup and shutdown joining. Its combined Windows close/deadline/late-exit alias remains backed by unchanged callbacks. Retire native-error-close, pre-publication setup ownership and failed-delete rearm aliases; associated delegation, failure forwarding, removal routing and recovery examples are lost. These tests inject watch/subscription seams and do not observe an actual native watcher or physical process. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Partial runtime watcher-host suite loses mocked option/event/overflow/resubscription forwarding, supplied teardown-error propagation, aborted-signal/no-call and private ten-thousand-waiter-count inventories. Retire the 10,000-caller bound and failed-recovery-subscriber-ending assertion aliases. Keep same-root owner cancellation, pre-ready replacement, held root-close join, stale-generation recovery delivery and initial failed-root ownership mappings backed by retained real-host callbacks with injected subscription/error/physical-exit promises. No actual native watcher, process termination or resource bound was observed. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1683 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1645 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1634 removes low-value IPC, filesystem and runtime projections, argument inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained cancellation, ownership, authorization, filesystem and SQLite boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1516 removes package-electron-runtime-contract.test.mjs, a copied release-workflow platform and marker matrix. Its workflow wiring alarm is intentionally retired; no actual packaged watcher delivery was exercised and no equivalent replacement is claimed. Unaffected dated execution receipts retain their original scope; changed optional selectors have no fresh full-gate execution result. This audit removes the paired-web stopped-during-outage and late-ready direct-branch examples. The retained pre-ready cancellation, failed-unwatch retry and replay-continuity cases are not equivalent replacements for those ordering alarms. Current web-runtime-client.test.ts assertions below name only its retained pre-ready callback case; replay cases remain in their separate suite. Historical commands and results remain historical. Deterministic tests cover one shared healthy child per runtime process plus at most four bounded fault-quarantine children, native desktop, paired-runtime, and WSL snapshot processes sharing the same eight-physical-child reservation with typed serialized event-driven capacity recovery, including recursive re-wait when crash recovery reclaims an announced slot, one quarantine attempt per watch lifetime, generation-scoped cancellation, bounded termination with removable deadline waiters, replacement-crawl errors that cannot be blessed by a late readiness ack, pre-ready paired-web cancellation registered before an unbounded capacity wait, already-resolved and late physical-exit retry of a rejected paired-web teardown, physical desktop-install and local/SSH PTY teardown, stale-generation rejection, per-child stat bounds, final-overflow RPC delivery, and renderer eviction before terminal callbacks can retry. Destructive local and SSH removal fences both ID-derived and resolved-cwd terminal roots, including sibling-root/cwd combinations with reverse admission rollback, closes descendant relay watches before parent deletion, enumerates authoritative provider/cwd ownership, falls back to daemon spawn cwd before OSC 7, and keeps daemon/relay immediate shutdown pending until native exit or a bounded fail-closed error; a dead relay PID discovered during attach also settles concurrent shutdown before its stale entry is reaped, while Windows runtime watcher deadlines retain one removable physical-close waiter, treat Node's error-close path as positive physical-exit proof, and clear root ownership on late close. The relay policy test maps a standard repository's base, Git common directory, and worktree roots to one healthy supervisor, then proves a shared-child failure recovers those roots in separate quarantine supervisors with overflow and resumed events. Abortable capacity, quarantine, runtime-root, relay, SSH, and relay pre-install setup waits attach one reaction to each shared promise and explicitly remove 10,000 cancelled caller closures while one anchor remains. Built-entry macOS harnesses kill the desktop/runtime and SSH relay watcher children, then require automatic resubscription and later events while the host process and relay PTY survive. SSH bundles the child boundary beside relay.js, requires both artifacts for install completeness, and preserves registration-owned same-root cancellation. The test-value audit corrects the active renderer watch command/file reference to the existing runtime-file-client-watch.test.ts, whose three cases are retained unchanged. They observe synthetic subscription retry/fanout and unsubscribe/unwatch calls, not actual preload/main bookkeeping or physical watcher-process cleanup. The separate read/preview client suite loses forwarding, supplied-error and negative-only examples, retaining binary detection and Unicode SVG decoding. Historical evidence commands/results are unchanged. Test-value audit1293 removes src/main/providers/local-pty/local-pty-provider-session-inventory.test.ts (2 authored cases). Their isolated assertions no longer run; surviving tests are not claimed as equivalent coverage. Fresh execution against the candidate SHA is required. Audit1312 removes low-value imported specs from aggregate test drivers; old whole-driver execution receipts are archived. Retained registrations are unchanged. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1412: src/main/workspaces/removal/watcher-removal-gate.test.ts reduced. Loses exact removal-error compatibility with renderer predicate under shared message constants. Kept public refusal outcomes do not establish that renderer classification. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", + "coverageNotes": "Audit5574 removes the entire physical-exit waiter bookkeeping suite and its active selectors/assertion reference. Timeout/retry, fanout/double-exit and immediate-later-wait alarms are intentionally retired without equivalent replacement or fresh process-exit evidence. Unrelated dated receipts retain their exact original scopes. Historical account follows: Audit4368 intentionally drops seven mocked teardown cases: duplicate single-chat rollback, forced stuck-close warning/retirement, post-close-throw exit acceptance, mixed live/unconfirmed wording, exact serial-close budget work, missing runtime selector success and runtime-sweep rejection. Four structured-session and three PTY teardown cases remain; no replacement or fresh native/process/remote proof is claimed. Historical assertion anchors and receipts are not refreshed by this source-only reduction. Audit4362 intentionally deletes the imported stale-waiter retry and manually assembled OSC9999 mobile-republish cases, plus the mocked missing-worktree cleanup suite (4 authored / 5 finite cases in three suites). Lost alarms include repeated unread worker_done pointers, working-to-waiting mobile status publication, missing-worktree filtering, and scoped daemon shutdown with unrelated duplicate identities. No replacement coverage or new platform proof is claimed. Audit4358 intentionally removes six whole mocked daemon subprocess suites and two extra pre-listener replay variants (18 authored / 20 finite cases). Lost alarms include cancel-during-cwd-validation, root agent startup refusal, output/exit before ConPTY publication, fresh/delayed/unavailable foreground confirmation, cache/decision separation, detached/no-tty child evidence and synthetic agent authorization. The retained lifecycle case checks data and exit replay after handle creation, not startup-time publication or alternate listener order. The retained native Windows Git Bash workflow and host cold-restore seed check have separate scopes. No equivalent replacement or fresh gate execution is claimed. Earlier notes and dated receipts retain their original scope. Audit4351 removes the physical-exit timeout/retry and kill-failure/retry local-PTY shutdown cases. The retained shutdown case proves pending ownership until the injected node-pty exit callback only. These two narrow error-path alarms are intentionally lost; retained commands still select the reduced suite. No equivalent replacement or fresh runtime execution is claimed. Earlier notes and dated receipts retain their original scopes. Audit3994 retires two authored callbacks imported by the shared construction test driver: split OSC 9999 carry and rendererless status ownership, plus OpenCode permission text taking priority in status and tui-idle refusal. Remaining imports and selectors keep their scope. No equivalent replacement or fresh gate execution is claimed. Audit 3959 retires the whole session.test.ts driver (27 authored / 33 finite cases): startup/echo filtering, readiness input gates, ownership confirmation, detach authority, and termination retry/exit ordering alarms are intentionally lost. No equivalent replacement or fresh runtime validation is claimed. Audit3788 retires10 authored/11 expanded cases across six changed drivers, including the entire screencast pending-frame-retry and usage-source-cache-streaming suites. Deliberate losses are false-refused last-frame retry/once-only delivery, ordinary stable-pane reattachment, cleared-chat Dispatch completion, terminal-declared chat-caller refusal, at-rest worker liveness projection, nested depth/cap policy, small unsigned6/sealed7 plain-format and verified-bit examples, generic malformed-ISIZE footer refusal examples, and synthetic10k/100k chunk-size/work-count budgets in gzip and general cache I/O. These include real state/disk/RPC outcomes consciously retired for marginal value; retained E2EE-backlog, receipt/custody/uncertain-ack, integrity/migration and staging-cleanup cases are not equivalent replacements. The footer test did not prove early rejection or bounded allocation; staging cleanup did not seed unrelated files. No replacement or fresh native/remote/performance execution is claimed. Earlier raw selectors and dated receipts remain historical. Audit3779 retires17 authored/17 expanded registrations across six changed drivers, including the entire shared-Codex-home and prompt-telemetry suites. Accepted losses are shared-home wrapper noninterference/opt-out preservation, mocked metric count/provenance filters, SSH activity labeling/clearing and handover idle timing, VM ownership/capability/status projections and asleep-worktree refusal, a link-only external conversation replay sample, and two narrow input-credit noninterference/expiry examples. Retain the direct exact-tab/single-use input-credit case. These bounded real disk/state/routing alarms are intentionally retired for marginal value without equivalent replacement or fresh execution claims; earlier receipts remain historical. Audit3772 retires18 authored/27 expanded cases, including whole Codex service opt-out, RPC capability-parser, creator-provenance, short-ciphertext and readiness-null suites. Accepted losses include service ledger/symlink/mode cleanup, user TOML substring preservation, old-hash cleanup, description pass-through, malformed-file/pending-hash examples, coordinator write/probe counts, capability array bounds, positive creator projections, early short-payload refusal and readiness helper null shape. Two redundant Codex exit-cause rows are also retired; Pi shares their direct-idle path only in this empty-output immediate-exit fixture, and future agent-config drift coverage is lost. Real bounded filesystem/parser/runtime alarms are deliberately retired for marginal value; no equivalent replacements or fresh execution are claimed. Earlier receipts retain their historical scope. Audits3754/3755 intentionally remove9 authored/9 finite registrations: the entire one-case usage-source-cache-streaming.test.ts driver and8 cases from the surviving computer-action-validation.test.ts driver. This gate retains an unfiltered root Vitest command; UNIT_INCLUDE admits both source paths. Accepted losses are the real encoder output chunk-size/work-count alarm on repetitive10k/100k ownership payloads through a mocked durable sink, plus CLI diagnostic precedence, fractional window-id rejection, action-call-site window-target exclusivity, plain-text click-count recovery copy, incomplete click/drag targeting, mouse/modifier/direction allowlist samples and inline/stdin text exclusivity. These CLI cases exercise real argument/handler validation before mocked runtime calls; they are deliberately retired for marginal value, not declared tautologies. Retained cache I/O and CLI cases are not equivalent replacements for these alarms. Existing historical raw receipts remain unchanged and do not validate the deleted or reduced drivers. No fresh execution claim is made. Audits3758/3763 intentionally remove9 authored/11 finite registrations from6 changed drivers, including the entire pane-title-notification, window-linear-notices and worktree-card-lifecycle-effects suites. This gate retains an unfiltered root Vitest command admitting these paths. Accepted losses are same-account linked-row success-notice fanout, sidebar-switch channel forwarding, Linear-only notification forwarding/non-terminal-consumer selection/closed-window detach, destroyed-window refusal and first-send-failure suspension through the pane-title adapter, the100-card synthetic focus/poll absence sample, stored-source local folder badge refresh, unobserved-row badge refusal, and immediate reposChanged lineage invalidation. These exercise real owners with controlled ports; they are retired for marginal value, without equivalent replacement claims. The no-badge-work fixture does not seed its title-promised collection-only cache. Preserved historical receipts do not validate deleted or reduced drivers; no fresh execution is claimed. Audit3759 retires the entire one-case Tailwind compiler/scanner smoke. Accept loss of the direct CSS production/test/spec source-exclusion and rescan alarm; no replacement or current execution is claimed. Audit3752 independently approves audit3749: retire five authored/five finite watcher-process registrations, retaining18 raw-exact registrations. Accept loss of healthy shared-pool joint recovery, last-pending-failure idle retirement/respawn, late VITEST fallback release, missing-entry fail-closed selection and independent-supervisor fuse locality alarms. These are real bounded host-policy alarms intentionally retired for low marginal value; no equivalent replacement is asserted. Remaining driver selections exercise controlled FakeChild supervisor lifecycle, cancellation, physical-exit fencing, recovery and fuse behavior. This source review supplies no fresh native/process/platform/remote/SSH execution; historical receipts retain original source and selector scopes. Audits3738/3742/3743/3744 intentionally remove15 authored/21 finite registrations from six surviving drivers, with no equivalent replacement or fresh execution claim. This gate retains an unfiltered root Vitest command. Current UNIT_INCLUDE admits the partial push-service, metadata-dialog and two config/scripts browser drivers:10 authored/16 finite removals. Accepted losses: actual retry30s/60s progression and register bucket/refill wiring, explicit seven-day lease arithmetic (its notification lacked seq/epoch and never reached send), equal-name edit latch/save payload, real image/font/meta-refresh/form/popup browser refusal controls, and broad rich-markdown bridge/command/edit-select smoke. Actual production state, callback routing and browser enforcement run in these cases; these alarms are deliberately retired on marginal value. All drivers and selectors survive. Existing unrelated receipts remain historical evidence for their unchanged selectors, not proof of the reduced cases. Audit3732 removes 2 authored/3 finite registrations from two partial suites: nominal custom/Kimi local naming success and deferred context usage row presentation. Real losses: custom/Kimi successful extraction through conversation-name sanitization and agentLabel composition; separate ordered counted/deferred lists and exact percentage/token formatting. No replacement or equivalent coverage claimed. Retain 11 authored/13 finite raw-exact registrations for bounded naming instruction/refusal/cancellation, menu dismissal focus ownership and hover/composer Escape/timer cleanup. Source-only bounded value review, no runtime/CI/native/remote/mobile/folder workspace or global completion credit. Previous account (preserved verbatim): Audit3733 removes2authored/2finite terminal input checks: fixed custom-cap error/secret fixture and three-emoji cap5refusal whose6UTF16units already trip length fast guard (no UTF8-dependent boundary). Accept exact non-disclosure/oversized-refusal alarm losses; no replacement/equivalence claim. Retain13/13scalar/pending input, OSC state and cron DST/cadence outcomes after bounded material reads. Source-only zero runtime/novelty credit; original historical reasons preserved. Previous account (preserved verbatim): Audit3729 removes1authored/3finite by deleting whole CLI runtime pairing advisory-close suite. Accept losing post-real-close injected EIO preservation of native/script/unreadable pairing, env identity/preservation and exact close/release assertions; no actual failed-close leak or replacement coverage claimed. Two retained URL grammar/identity suites11authored16finite raw unchanged. Bounded source/owner/caller value review, zero novelty/runtime credit; other seven3724deferred closures remain. Historical receipts preserve original limits. Previous account (preserved verbatim): Audit3724 removes3authored/3finite checks by deleting two whole suites: TUI clear burst-size singleton and terminal-file-URL target two-case wrapper suite. Deliberate losses: derived widest burst<64byte alarm, UNC authority+line-column anchor composition, and malformed-percent null refusal. Real production algorithms execute in those tests; no mocked-output tautology, equivalent replacement, actual Claude/file-navigation delivery or universal safety-irrelevance claim. TUI58byte bound and URI examples have low marginal value as standalone suites. Actual1262/1264/1742KEEP superseded explicitly. Remaining14drivers83authored136finite raw unchanged. Bounded source-only review; ten closures deferred, four bounded keep judgments repeated with zero new semantic-frontier credit. No runtime/CI/native/remote/mobile/folder/global completion claim; historical receipts retain original scope. Previous account (preserved verbatim): Audit3723 removes 4 authored/4 finite registrations in two whole suites: keybinding cache freeze/token spellings and host-dependent Orca command name examples. Real losses include returned-object freeze, repeated Mod+P key, Space/PageDown/NumpadSubtract mapping, unknown/empty/prototype-token rejection, and headless Linux versus Windows-server/WSL command choice. No equivalent or replacement coverage claimed. Retain 12 authored/21 finite raw-exact registrations exercising generated scaffold validation, artifact failures, shipped editor/hook/worker/panel tests, actual generated typing compilation, independent CLI root routing and intent-name precedence. Source-only bounded audit; no runtime, CI, native, remote, mobile, folder workspace or global completion credit. Previous account (preserved verbatim): Audit3720 removes17authored/23finite checks: whole main catalog-date adapter2 and shared date-helper7, seven renderer nominal ranking/cap/no-date/composition cases, and one browser registration expanding to seven forced-container/DOM-child boundary cases. Deliberate real losses: community oldest-date UTC forwarding, official/undated omission, date sorting/window/invalid/future/skew/clamp and default/override cap; nominal ranking/cap and combined Featured/Newly-added outputs; real CSS459/460,719/720,1055/1056breakpoint, five-card partial-row and720px two-card first-row alarms. Browser cases really measure rendered geometry but force width/remove DOM children; no fake-pixel or tautology rationale. No replacement/equivalent coverage claimed. Retain14authored/19finite raw-exact registrations across4drivers: adversarial featured category/order/tie and installability, date order/window selection, actual PluginManager failure/escaping/duplicate-card suppression, real browser viewport/odd-count geometry/phone catalog visibility, syntax ingress/depth/include/printability and68dlong-bracket auto-close fill-in. No tests/browser/native/UI/provider/remote/mobile/folder/CI/global execution or completion credit. Previous account (preserved verbatim): Audit3717 removes6 authored/6finite checks in two whole thin-adapter/presentation suites. Deliberate real losses: ordinary recipe repository-URL withholding and provisioned-root credential scrubbing/forwarding; repository label lockstep suffix expansion, host-scoped map identity/collision grouping, Windows crosshost paths and WSL distro suffixes. Actual provision options, label/sort consumers and host/scrubber delegates inspected; no replacement/equivalence claim. Retain40 authored/84finite registrations raw exact in14 drivers with bounded owner/context review. Prior KEEP superseded for removed suites; no runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous account (preserved verbatim): Audit3714 removes8 authored/39finite checks: whole CLI selector-recovery, task display-text and ANSI grammar suites plus two name joiner/blank tables. Deliberate real losses: selector flag/value/identity and mutation recovery merge/serialization; exact task suffix, transcript fallback, input immutability, cache reuse and edited blocks; independent failed-escape/resumption and OSC/DCS/BEL/ST/C1/nested/unfinished stripping outputs; meaningful-language joiner preservation and invisible/blank-name rejection. These are real bounded alarms, removed as narrow supplied-error examples, helper/token inventories and repeated internal-work fixtures. Prior2936,1195/1196,1214/1215 and1082 KEEP superseded; no replacement or equivalent coverage claimed. Keep9authored/9finite raw-exact registrations in5surviving drivers: screenshot export/failure filesystem behavior, CLI local tree query, event-local reply provenance, vault role-sensitive content and four hostile/UTF16/dangling/tag-name regressions. No native/UI/provider/remote/mobile/folder/runtime/CI/global completion credit. Previous account (preserved verbatim): Audit3711 retires2authored/4finite cases by deleting whole clipboard-image-temp-file signature-to-name inventory (HEIC/TIFF/unrecognised bytes) and workspace-last-active switch-on supplied visit/reason singleton, plus its now-orphan test fixture. This intentionally loses real generated-filename suffix/extensionless alarms and real newer-visit archived7day versus inactive30day filtering/older-visit identity alarms. Filesystem writing and production reason pruning really execute; no equivalent replacement or universal absence of safety relevance is claimed. The clipboard test does not inspect written bytes, native delivery or decode; the visit test supplies candidate/timestamps and does not exercise persisted visit routing or actual removal.20authored/20finite cases remain unchanged across4bounded Git/sidecar/removal drivers. No new runner/test/module evaluation or runtime result; historical notes and receipts remain historical. Previous account (preserved verbatim): Audit3707 removes10 authored/11finite checks: three whole renderer adapter/assembled-stage suites and two native projection cases. Deliberate losses: plugin URL/ref/default-version/local-path and unsafe credential refusal forwarding; real Task hook/store A→B→A late-save/list/count fences, owner disappearance, legacy-host convergence, query/history/eviction and same-ID host history; native child append ordered-ID/replacement and compound fallback/order/optimistic-admission/child-turn/duplicate/shrink/revision alarms. These are real bounded alarms; removal follows thin adapter, manually assembled Task pipeline and repetitive fixture value judgment, with no replacement or equivalent coverage claim. Prior1179/1182,1220/1221 and1885 KEEP superseded as applicable. Keep36 authored/38finite registrations raw exact across13 surviving drivers. No runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous account (preserved verbatim): Audit3706 removes7authored/7potential cases from3renderer sources: whole usage-label3case and130000-distinct-day usage-overview singleton suites, plus3SSH grouping/ordinary-range examples. Retain11authored/11potential cases across6drivers in this bounded selection; no equivalent replacement or fresh runtime result. Existing bare root-unit commands admit this selection statically; prior command/receipt strings remain historical. Audit3706 intentionally retires first/second-order usage-group label collision alarms; equal50%-weekly bucket versus derived-weekly selection identity and Gemini wk label alarm;130000distinct-day aggregation no-spread-crash/max/intensity alarm; legacy absent-source SSH grouping and ordinary reverse-select/selected-target deselect range alarms. Actual label ambiguity and pathological-input crash are accepted losses. Distinct-day fixture spans~356years; no hard producer/date bound is claimed. Retained filtered-anchor/grouped-order guards do not replace removed deselection/reverse-range/legacy-group coverage. No native SSH, mounted renderer, live provider, remote/folder/mobile end-to-end or current runtime pass was obtained. Previous account (preserved verbatim): Audit3699 removes4 authored/4finite checks, including one whole xterm copy-policy suite and one root/group CLI help case. Deliberate losses: direct copy-chord admission for platform, selection, Kitty mode, defaultPrevented, logical/physical key and key phase; command-group disclosure and group help routing including claude-teams early return without RuntimeClient construction. These are real bounded policy/wiring alarms; no replacement or equivalent coverage claimed. Retain14 authored/19finite raw-exact registrations across6 drivers: unsafe CLI refusal, Claude model event carry and disk reconstruction/OSC-first case, attachment ownership/upload lifetime and mixed BMP file-reference/PNG-chip delivery, actual SQLite authority/admission/mutation, and Electron geometry/hit-testing. No runtime, CI, native-key delivery, external provider, mobile, remote, folder or global completion credit. Previous account (preserved verbatim): Audit3692 removes5 authored/5finite marginal Codex checks: unrelated login URL without notice; ordinary per-account launch resource/config materialization; no-retained-pane skip; preservation of a previously owed full scan through actual preparation and pending-marker update (no actual history scan/settlement); ordinary later-config refresh. Accept these exact branch/wiring alarms as deliberate losses without replacement. Retain32 authored/34finite raw callbacks/registrations/table bytes exact across14suites, including credential/admission refusal, grace/reset readiness, filesystem ownership, commit-dependent queue state, streaming/host trust, path canonicalization and private-state preservation. All14whole suites challenged without keeper quota; no whole deletion warranted on current concrete signals. No runtime/CI/native WSL/remote/mobile/folder/global completion credit Previous account (preserved verbatim): Audit3691 removes two complete runtime-home routing singleton suites (2 authored/2 finite): catalog wrapper mirror login-copy and passive transcript-lookup filesystem noncreation. Exact accepted losses are recorded in knownGaps; no replacement or equivalent coverage claimed. Audit3691: no dedicated alarm remains in the deleted sources for post-launch system login import through prepareHostCodexHomeForReadOnlyAppServer, or for repeated missing-transcript lookups leaving removed Codex account/runtime directories absent and userData entries unchanged. Ownership-marker read avoidance was never independently measured. No real catalog probe, provider, native Windows or crash was validated by those fixtures. Previous account (preserved verbatim): Audit3686 current Claude profile/account review removes5 authored/5 finite cases: whole structured-auth diagnostic-label suite3 and Windows-only command suite1 whose advertised cache alarm is ineffective because cache lifetime is per invocation; remove duplicate setup namespace-link refusal1 at wrapper layer. All5 exact historical KEEP are consciously superseded. Retain49 authored/50 finite unchanged, including filesystem privacy/recovery, route identity and concurrency, built worker/helper, legacy WSL alias compatibility and sign-in handoff. These are deliberate coverage losses without replacement. No runtime/CI/native WSL/macOS Keychain, remote/mobile/folder or global completion credit. Explicit accepted real losses: unknown-account host fallback and mixed-version/WSL-only structured auth diagnostic labels; Windows-only sentinel ENOENT-to-friendly-error translation plus fresh-call successful dispatch smoke; setup catch-to-refused wrapper and no-write outcome for a namespace symlink. The command case does not discriminate removal of its per-invocation noncache guard; it still supplies the error-translation alarm, which is intentionally retired. No replacement/equivalence promise. Previous account (preserved verbatim): Audit3680 removes eleven authored/eleven finite unit cases across four files, including entire launch setup row projection, structured legacy-model metadata, and legacy classifier suites. Accept loss of exact row partition/start selection, Codex supersession/default/unknown and Claude alias/suffix folding examples, other-agent exemption, getter/cache read budgets, same-array per-agent cache isolation, replaced-catalog metadata, and tracked-only model exclusion from structured and PTY legacy inventories. These are real narrow policy/metadata alarms intentionally retired without equivalent replacements. Retain real menu collapse/reopen in dropdown/select, AI picker cancel/accept and stale-effort filing, IME carry/gesture/frame transitions, and typed-flip versus held-dispatch fencing. No production or shared fixtures change. No dead timing entry exists for the three deleted drivers; retained timing keys stay unchanged. Static source-value review only; no project import, test runner, native/app execution or runtime validation established. Earlier receipts retain historical scope. Previous account (preserved verbatim): Audit3678 current-source reassessment removes20 authored/24 finite root-unit cases across7 retained test sources; all10 selected current drivers80 authored/93 finite were read, leaving60 authored/69 finite unchanged. Removed alarms are the in-memory WAL PRAGMA constant, ordinary latest-dispatch/gate-creation inventories, self-reported-failure and explicit-terminal retry policy rows, SSH/unsupported-provider output fallback labels, legacy typing no-op/retain-before-report/manual scheduling rows, exited output status and copied resume-session metadata, incomplete inventory deferral/reset cascade inventory, and nominal release/active-state/corrupt external history/stopped-abandoned outcome/generic close-exception rows. These are intentional coverage losses, not replaced alarms. Retained source includes actual SQLite rollback/custody, mutable transcript/deletion and saved-copy compatibility, cursor mutation, clear lineage, auto-release timing/restart/admission and concurrent recovery seams. Historical KEEP decisions are consciously superseded where stated in decisions.json. Source-only evidence; no runtime, CI, native, provider, remote, mobile/folder or global completion credit. Previous account (preserved verbatim): Audit3672 renewed by3676 removes four authored/four finite cases from federation-output.test.ts: nominal show/read routing and terminal-fallback projection; initial archive-table SELECT failure returning retained/no-close; simulated old-peer read/fleet/refusal and method inventory; and absent archive-release capability refusing release. These actual compatibility/guard alarms are intentionally lost without equivalent replacement; the dropped-table case never reaches capture or commit. Current selected frontier9 becomes5: retain actual temporary transcript parsing/path omission, current no-transcript release/unavailable-output/restart/replay regression, and three home deadline/stop nonmutation cases. Prior held-capture case was already removed upstream and receives no new removal credit; prior redacted snapshot archive behavior was rewritten upstream and is not claimed retained here. The surviving driver timing entry stays. Static review/private composition only; no actual peer/network/native/platform or fresh runtime validation. Previous account (preserved verbatim): Audit3671 removes14 authored/32 finite root-unit cases, including the whole WSL move-handler refusal suite, WSL preload object-presence suite and internal gate spelling truth table. Also retire the weak withheld-command non-array shape assertion, static serve-only Add/capability/mock-remove example, grammar scope equality and basic configuration/payload schema roundtrips. Genuine wrong-window/malformed-request/gate-before-work, exact gate spellings/platform/argv precedence, static serve-only routing, declaration mismatch and empty grammar/pair admission alarms are consciously lost without replacement; prior KEEP decisions are reconsidered. Seven unchanged authored/finite root-unit cases retain real image/provider/line budgets, live policy transition/capability broadcast, grammar resource/reference traversal and strict-versus-tolerant literal salvage. Source-value evidence only; no runner/compiler/build/app/native/provider/remote/mobile/folder validation or historical fault claim. Independently remove one authored/finite Playwright closed-gate app-boot inventory: accept loss of real renderer/preload/main refusal composition, saved-host row and Add/Move hiding/Remove visibility alarms. Keep the unchanged scripted-move rendered dialog lifecycle/reload case. It runs no real WSL migration, host connection, file copy or automation restoration. No selector or Playwright participation cleanup is required because the spec remains. Previous account (preserved verbatim): Audit3663 renews approved3644/3645/3648/amended3651 at privatec1ef: remove10authored/26finite across7changedtestpaths,4whole drivers; retain23authored/24finite including actualcmdkStrictMode defaultcursor race. Retire version1.5.0/1.5.1→shrinksImages capability threshold and launch-to-prompt wiring alarm. Surviving prompt tests explicitly supply capability and do not replace wiring coverage. Retire resolved-before-personOnly precedence; hook-gone/live-dialog guidance; stale-incarnation versus live-looking dialog classification; delayed/clipped warning extraction and wait-for-paint wiring; 3row setting/personOnly approve/deny/disclaimer suggestion composition;13row setting/reason/person/coordinator admission, close/mail attribution, terminal delivery/refusal/preanswered/personOnly/dropped-allow handler propagation alarms. Real state/access/SQLite effects occur; these genuine losses are accepted, not mocked-away. Retire full command extraction from serialized JSON in worker receipt and nontruncation alarm; no rendering, actual worker approval or native shell proof. Retire2row extra-source first/last order and controlled default cursor projection, plus generic open-palette livefolder add/remove render alarm. Explicitly supersede rawexact297KEEP refresh. Keep actualcmdk/StrictMode default cursor race driver; no default-suite loss claim. No equivalent replacement asserted. Retained queue/commit/retryownership/filebudget, terminalfreshness/provenance/competing-answer, RPC DB-effect, qualifiedfolder/runtimehandoff and lingering-reopen cases have distinct scope. Audit3675 preserves the upstream revised unreported-approval close regression, its escalation helper and adapted survivors. Source-only static renewal; no runner/compiler/app/native/remote/CI claim. Upstream41390host-owned approvalwatch/report lifetime reviewed separately; no new lifetime test removed. Preserve all earlier metadata/evidence. Audit3634: Remove five authored/five finite cases, including the complete structured chat terminal-refusal, terminal-plus-agent worker-start validation, and canonical Git common-directory parser suites. Also remove the gh free-text -R argument projection case. Consciously supersede prior KEEP decisions and accept chat-versus-stale redirect classification, real RPC refusal-before-SQLite-Dispatch, old-Git echoed-option relative-path parsing, WSL execution-space resolution, and free-text preservation/bare-repo qualification alarms. These are genuine narrow alarms, intentionally retired without equivalent replacements. Retain real Git stdin/EOF delivery, bound-account host admission, naming environment/account precedence, upload iterator cancellation and remote path confinement. Shared fixtures and production code remain. Remove only the dead canonical-repo-key timing entry. Static source-value evidence only; all prior evidence retains historical scope. Audit3636: Remove the entire maintenance opportunity internal-count driver (one authored/two finite cases), the mocked remote worker start-card argument case (one/one), and the follow-up heading mapping table (one/two). Root-unit discovery loses three authored/five finite cases. Independently remove four Python native screenshot methods/five statically enumerated subTest scenarios: grim argv/stub payload, failure-code mapping, X11 mocked capture payload, and capability flags. The Python lane is verify:computer-native and is not root Vitest. Accept loss of exact native command/projection and exception/capability alarms, ready-only card publication arguments/agent forwarding, and serialized follow-up heading mapping; no equivalent replacement is claimed. Retain actual ownership/mail/queue/reopen transitions, remote lost-response fencing and first-result settlement, filesystem/maintenance admission and successor progress, wrong-region screenshot refusal and Sway geometry. The whole-deleted new driver has no timing key; this component requires no timing cleanup. No production changes. Static source-value review only; no project import, runner, app, native desktop or runtime validation established. All prior evidence retains historical scope. Audit3629 removes two singleton parser suites: WSL Claude plugin metadata out-of-range index rejection and Git checkout unlink-warning path extraction. Their real range-refusal and quoted-path extraction alarms are intentionally lost without replacement; no WSL execution, checkout recovery or equivalent remaining coverage is claimed. Audit3630 removes the sole orphan automation availability test (1 authored/1 finite). Its real policy kind, orphan precondition, delete/toggle enablement and run/edit refusal alarms are intentionally lost. The test did not dispatch an action, enforce a server generation fence or observe a remote mutation. No equivalent replacement, actual renderer/transport execution or new platform/provider evidence is claimed. Previous account (preserved verbatim): Audit3628: remove the entire one-authored/one-finite RepositoryRemoveProjectSection happy-dom suite. Accept losing the local zero-to-one-terminal stale-count revalidation alarm: first confirmation defers the removal callback and second confirmation invokes it after the count snapshot updates. The test never asserts updated warning text/count, actual terminal creation or removal/PTY teardown, host/scope routing, cancellation or folder/mobile behavior. No equivalent replacement or end-to-end warning-before-teardown proof asserted. Static evidence only; historical receipts retain original scope. Audit3624: Remove one authored/five finite positive Gemini identity table from the Claude/Gemini title collision driver. The real normalization, legacy label and explicit title evidence owners execute, so ordinary Gemini marker/name/wrapper recognition and normalized-label composition alarms are consciously retired without equivalent replacement; these five supplied title-to-literal identity examples have low marginal value. Preserve the six-row Claude task-text collision oracle, whose unrelated CLI mentions must not rebrand or destructively normalize titles. The other audited drivers preserve real permission-mode session transitions, prompt secret/fence/bounds defenses, JSON-to-Ask option/preview preservation, and optional GitLab failure summary/trace composition. Root-unit discovery loses one authored/five finite cases; no whole driver or timing key is removed. No actual terminal stream, UI routing, application/native or runtime execution established; all prior evidence retains historical scope. Audit3618: Remove three authored/three finite browser reload cases, including the complete renderer reload-actions suite. Agent bridge fake did-fail-load plus permanently supplied manager error projects description/code into a rejection. Renderer seeded empty metadata projects a saved URL into plain webview src; its earlier not-ready case projects a live-id/throwing fake reload into absence of a loading patch. Real queue/wait/error/cache/classifier/hook code executes, but these narrow supplied-state and exception-to-callback wirings have low marginal value; no rerender, lifecycle, actual cache generation/retirement or guest commit is asserted. Explicitly supersede audit1822 not-ready KEEP and preliminary3617 cross-module retain opinion, accepting offline-reload failure reporting, empty guest to saved URL routing, native-reload bypass and premature-loading/stranded-state alarms without replacement. Retain distinct main cancellation queue progression and absent queued side-effect dispatch. Root-unit discovery loses three/three. No Electron guest, network failure, restored navigation/commit, app/native focus or runtime execution established; earlier evidence retains its historical scope. Audit3614: Remove thirty-one authored/thirty-nine finite potential cases across CLI format and argument drivers, including three whole suites: search-result/status sanitation sites, Linear issue/list/warning sanitation sites, and quote-stripped JSON diagnostic secret non-echo. Those real formatter/guard transformations execute on supplied strings; intentionally retire their field-specific CSI/OSC/C1/newline/bell and diagnostic secrecy alarms as low-value caller/output inventories, without replacement. Also retire twenty-one search registrations/twenty-four finite cases covering minimal positional request/default omission, exhaustive all-flags request projection, nominal named query/index routes, repeated syntax/agent examples, enum/agent/path-count/timestamp/numeric/cursor admission examples, unknown/browser flag examples and postcommand last-wins projections; retire one parser sentinel-only case. Keep actual ambiguity, conflicting index request, precommand/crosscommand scoping, variadic reference parsing and missing-repeatable-value controls, without claiming equivalent coverage. Root-unit discovery loses all twenty-nine/thirty-seven. No CLI/RPC/terminal/PowerShell/host/schema/runtime execution is established by this source-only audit; earlier evidence retains its historical scope. Audit3613: remove six authored/six finite callbacks, including whole reviewer-display oversize-input and explorer-root record-filter suites, plus plugin family-emoji/invisible-only-name and pool legacy-name/urgent-countdown samples. Accept losing oversized-input empty-result/no-split, malformed-record/prototype-sensitive-key/nonstring filtering, exact ZWJ family preservation, invisible-only name refusal, no-group old-host full-name preservation, and80/79/null-reset countdown composition alarms. No equivalent replacement asserted. Retained strict/runtime sanitization, SVG parser, mobile focus recovery and collision/tie cases have different scopes. Static evidence only; historical receipts retain original scope. Audit3609: Remove the complete pnpm CLI invocation literal-selection suite (eleven authored/nineteen finite potential cases), with no replacement claimed. Root-unit discovery loses JavaScript-versus-native command selection, npm/npx executable rejection, Windows cmd/bat casing and shell selection, non-Windows cmd behavior, native PNPM_HOME flat/bin preference, explicit-path priority, relative-home rejection, missing-native fallback and non-Windows home-probe refusal alarms. The suite called the real resolver with independently expected objects, but exercised no pnpm/node/cmd process, installed native executable or real filesystem probe. Earlier KEEP decisions are consciously superseded by accepting these narrow branch and probe-inventory alarms as low value. Real symlink entry, Git signing isolation, Bun filesystem/Node child normalization and compiler scheduling/continuation tests remain distinct tests, not equivalent coverage. No runner, compiler, app, platform or remote execution was performed in this source-only audit. Earlier evidence retains its historical scope. Audit3608: remove five authored/five finite callbacks, including whole owner-slug and remote favicon URL suites and two repository-label projections. Lose five owner acceptance samples, eleven negative owner samples plus nonstring refusal, six host-local icon refusal samples, legacy-SSH same-path label-map cardinality, and explicit runtime ownership over stale legacy metadata at label level. These are accepted narrow grammar/presentation alarms with no equivalent replacement claimed. Retained binary parser, React recovery and label grouping/platform cases do not replace these losses. Static evidence only; historical receipts retain their original scope. Audit3606 adopts the enhanced3604/3605 icon cuts: nine authored/nine finite cases removed, including the whole tray-attention-icon suite. Retires the no-encoder oversized-upload null sample, missing-ID/request-order sample, encoder-null PNG-prefix fallback, SVG/404 rejection samples, transparent amber-dot placement and half-alpha white-tint sample, exact small fetched-byte passthrough, host-qualified image-key inventory and constant-encoder large-upload projection. These specific admission, formatting and bitmap alarms are intentionally lost without equivalent replacements. Retained queue/cache, bounded fetch and Dock lifecycle checks do not establish actual raster decoding, native image conversion or rendered appearance. Historical receipts below are preserved evidence for earlier test sets, not fresh validation of this reduced selection. Audit3601 scope: remove the whole custom-sound happy-path IPC suite and one custom-label/multiline notification formatting example (2 authored/2 finite). Intentionally lose configured .ogg selection, exact byte/MIME success wiring, successful dispatch for the formatting fixture, custom-label whitespace/title normalization and assistant-body whitespace/180-character-cap alarms. Retain prompt-exclusion, persisted qualified dismissal/restart, theme ownership/restore and Ghostty precedence/collision cases; none replaces the retired sound/formatting alarms. No actual playback, native delivery, phone/network, cross-platform or new runtime evidence is claimed; historical execution keeps its original scope. Audit3598: Remove seven authored/nine finite literal-table potential test registrations across workflow routing, Claude cold-start and real-zsh preexec drivers. Root-unit discovery loses six authored/six finite: three test-local workflow parser fixtures, the five-positive/three-negative explicit command-paint route inventory, a boot-banner-before-composer sample and an already-painted bare-title positive sample. The separately selected shell_contracts live-shell driver loses one authored/three finite raw-capture paint-only cases across three hook configurations; its real-wrapper launch-order, four rechunkings (twelve finite) and runtime-wait replay remain, without claiming equivalent replacement. Intentionally lose those parser, exact routing-list, banner, post-paint subscription and native-read-boundary paint alarms. Retained workflow/UNIT_EXCLUDE/classifier cross-source routing checks and readiness-race-to-writer timing are distinct bounded alarms. No runner, real shell, PTY, app, native focus, remote delivery, cross-platform execution or full-feature correctness is established by this source-only audit. Earlier evidence retains its historical scope. Audit3597 scope: remove two renderer-hang-capture examples (2 authored/2 finite): an invalid repeated-token oversized reducer fixture and a shorter unanswered-request fixture. Intentionally lose the direct truncated flag/sanitized frame fixture and request-pending status/zero-sample alarms. Retain window-death/stale-result exclusion, generation reconciliation, and baseline-publication cancellation lifecycles; they are not equivalent bound, redaction or pending-status replacements. Historical execution retains its original source scope; no new runtime evidence is claimed. Audit3591: Retire the whole one-case background journal-producer attribution suite and the fabricated malformed-details-block case (two authored/two finite cases). Intentionally lose the fixed own-task versus output/foreign-task attribution examples across flat/message row shapes, missing-root classification, and direct unbalanced/detailsish fabricated-block rejection alarms. Retained parser sibling/depth and editor navigation tests do not replace these alarms. No equivalent replacement or fresh runtime, transport, persistence, native focus or rendered UI validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3592: Retire the whole three-case shared agent smart-key resolver suite, explicitly superseding its Audit3238/3237 keep decisions. Intentionally lose literal permission-versus-question classification, longest-question digit selection, Codex async-question opener/digit/Enter/skip mapping, and unsupported-agent/state/prompt refusal examples. These were real parser/selection and literal-byte alarms; they did not exercise terminal delivery or timing. No equivalent replacement or fresh runtime, native TUI, mobile, remote or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3587/3588: Retire six authored/fourteen finite cases, including the whole WSL stopped-notice and connecting-status selector suites. Intentionally lose direct WSL retry connection field/target/ready-epoch/null-guard examples, connecting/reconnecting distro and absent-state selector samples, and stopped/connecting notice text/button/data-attribute examples. Retained host-ready retry and content-loader/reload lifecycles do not replace these alarms. No equivalent replacement or fresh runtime, native WSL, remote, rendered UI or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3580: Retire the whole one-case runtime host environment prototype/subclass suite. Intentionally lose the exact configured lower-case Windows Claude home to account-identity normalization and host-account override precedence alarm previously retained by Audit3129. No equivalent replacement or fresh runtime validation is claimed. Earlier dated keep statements below describe their historical source scope; the current suite is removed. Audit3563 scope: retire the whole Kiro OSC/hook identity suite and the OpenCode2 identity-only case; reduce Codex cached startup child-retirement and missing-session-ID tables to one case each (2 authored/4 finite removals). Intentionally lose Kiro alias/session continuity, OpenCode2 completed OSC identity continuity, cached replacement without relay-generation restart, and missing-previous-ID context-preservation alarms. Remaining provider, remote compatibility, persistence and cross-session pollution cases are not equivalent replacements. Also remove the private Codex roster-size assertion while retaining public child-absence checks. Historical evidence retains its original source scope; no new execution or transferred pass validates these reductions. Audit3553/3559 current scope: delete worktrees-delete-pty-teardown.test.ts and worktrees-issue-command-overrides.test.ts entirely and remove three cases from worktrees-orphan-directory-cleanup.test.ts (6 authored/6 finite removals). Intentionally retire typed unserved-SSH create/delete admission, exact-name collision/error-token, proven-orphan no-force confirmation, standalone .git-directory refusal, and SSH-owned local-path preservation alarms. Retain only actual authorized orphan deletion and no-marker notes-file preservation; they are not equivalent replacements. The no-marker fixture resolves the default getRepos owner, so it does not prove temporary owner-repo binding. Git/Store/PTY/notifications are mocked; no physical process stop, durable metadata, real SSH delivery or native UI proof is claimed. Unchanged historical oracle, coverage, evidenceRuns and escaped receipts retain their original scopes only; no fresh execution or transferred pass validates the reduced sources. Audit3492 composes ROOT-approved75(AUTHOR3475/PEER3476 and AUTHOR3485/PEER3481, including five-field clarification and zero-credit selector3483) plus123(AUTHOR3486/PEER3487 reconciled FINAL3491, including peer case10:3 and9:0 wording clarifications). It intentionally removes198 authored registrations/232 finite literal-table potential registrations across70 changed JS/TS test sources, including45 whole suites;87 authored/90 finite potential registrations remain across95 reviewed JS/TS bodies. One mobile native-suspension manual recipe and the now-unreferenced GitLab mock fixture helper are separately removed with zero registration credit. Static literal table potential is not execution. No equivalent replacement, fresh runtime result or merge credit is claimed. Earlier135 complete dated receipts, all raw gaps and full prior98/161/history notes retain their exact scopes and bytes. The additional123 retirement accepts loss of mocked GitLab request/error/identity/classification inventories; basic Linear migration and metadata discovery; simulated OpenCode key failed-save retention/retry/log redaction; analytics identity-flush smoke that did not prove ordering; AppImage static entry guards and empty-staging cleanup; GPU/process/minidump breadcrumb/annotation shapes and weak redaction oracles; namespace/status/foreign-launcher ownership guards and persistence roundtrips; profile transfer field projections; worker hook/screen/incarnation/result admission/classification guards; and source-coupled CLI transaction fixtures. Privileged publication failure injection was a false-positive: its mkdir regex missed -m 700 and outer rejection accepted an inner assertion before any shell ran. The identity-flush case awaited identity after flush and could pass despite early flush. Retained actual negative-token cache recovery, SQL filter-before-LIMIT open approval, unreadable-root FTS preservation/degradation, latest-connect-wins persistence, worker stop-debt settlement, unmodified same-inode foreign-content transaction, explicit incomplete-pagination error, FTS own-message snippet association, filter-before-route result and bounded-search truncation honesty are distinct bounded outcomes, not replacements for retired alarms. Case9:0 checks both roots before chmod but only mounted-session/degraded-root after chmod. Entire extraction-root suite is removed; no retained extraction cleanup is claimed. Removing the manual iOS foreground-stall shell script loses its unique real native-suspension recipe; timer tests do not replace it. First-match PIDs, indefinite waiting, broad success matching and absent trap cleanup made that diagnostic brittle and able to leave a desktop stopped. The current Windows operational driver remains byte-exact, preserving already-merged removal of orcad-convert and orcad-cli-convert selectors and the retained cmd/powershell/managed CLI lanes. The package skill-sharing release selector loses only the exact already-retired skills-suite token; no extra test credit. Included approved75 retirement account follows (historical proposal labels identify provenance; final198 counts above control): Audit3488 composes ROOT-approved source49(AUTHOR3485/PEER3481, including its immutable five-field clarification) and source26(AUTHOR3475/PEER3476): intentionally removes75 authored registrations/87 finite potential registrations across35 changed sources, including25 whole suites;35 authored/36 finite potential registrations remain in the combined reviewed scopes. Literal table potential counts are not executions. This source-only reduction has no equivalent replacement, fresh runtime result or merge credit. Root unit discovery deliberately loses entire message-row filtering/chunk reconstruction, discussion-pagination rejection passthrough, Linear bearer/stack redaction, new-profile telemetry/default/existing-JSON no-op, WSL user-trigger routing, terminal-delivery refusal, native-chat worker-approval UI, followup-paste routing, live-surface tombstone refusal, activity-bar hydration, fabricated approval-caller policy, child-PATH transformation and branch-review URL/identity suites. It also loses cache roundtrip/mode/fingerprint/fallback/no-op samples; GPU field-shape privacy examples; older auth-probe failure retention; orphan SQLite-sidecar/future-schema admission; usage tie/duplicate/composite-key examples; allocation-name sanitizer/unknown-prefix examples; real worker-and-backup preflight wrapper smoke; and JSONL descriptor-loop truncation. The discussion page contained id-only discussions without notes, so its rejection did not prove a nonempty notes-prefix oracle. The preflight did launch actual worker/backup entrypoints with production internal self-validation; removing its revision/version wrapper deliberately retires that real-entry smoke alarm. The skipped-prefix JSONL keeper rewrites/grows after collecting the suffix and before final validation, not concurrently during parsing. Retained queue rejection/recovery and held/drain mechanisms, recorder nonsettling-provider deadline, corrupt authoritative-DB refusal, legacy cache split migration, merge-added-row indexing, external-frame redaction, and pinned JSONL read/verification/mutation checks are bounded concrete oracles, not equivalent replacements for retired alarms. The full cloud relay cohort/ceiling/control suite is separately removed from the relay package runner, outside root unit discovery; no cloud runtime result is claimed. The Python computer-use benchmark remains unchanged tooling with zero authored/removal credit; no native benchmark trial ran. The package skill-sharing release selector drops only the exact already-deleted skills-suite token, with zero additional removal credit. Prior dated receipts, raw gaps, and complete earlier161/98/history notes remain exactly at their original scopes; no changed-source historical receipt becomes fresh reduced-suite evidence. Included approved26 alarm account: Broad root-unit discovery loses entire ref-label string, hostile/malformed CSV-link rendering, Codex filename-discovery, mocked paged-preview postscan mutation, usage path-containment, real symlink-ancestor, Codex skip RPC, local/remote inference routing, width-preference, and synthetic workspace-document input suites. It also loses the hand-assembled sorted CSV edit example, connect-time JPEG seed and invalid AVCC guard samples, and eight-record/64KiB detector boundary cases. The symlink suite exercised actual kernel traversal; its lost ancestor alarm could omit supplemental local editor watches and leave content stale, not bypass authorization. Retained linked stream cancellation, preview-only save fence, failed-flush dirty-draft preservation, clipboard byte/edit preservation, fragmented AVCC parsing and independent quoted-CSV interpretation checks do not replace these deliberately retired alarms. The stream fixture uses an in-memory source and does not establish actual fd cleanup; editor save endpoints are synthetic, browser events are synthetic, and no native focus, actual remote delivery, real disk write, cross-platform execution or interoperability is claimed. Earlier complete dated receipts, raw known gaps and previous notes are historical evidence at their original source/selector scope, not fresh evidence for this reduced suite. Audit3438 composes ROOT-adopted3434/independent3436: intentionally removes60 authored/62 potential expanded cases across16 sources, deleting9 whole suites. Eight authored/eight potential cases remain; delete the102line unused ACP fixture and57line unused teardown helper with zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses ACP model-catalog fixtures, resume-record projections, dashboard mock payload/state cases, mobile folder/launch/session examples and dictionary pipeline rows. Selected E2E removals also retire auto-conversion and golden-core journeys and one Windows CLI conversion registration. Retain ACP reply text across a resumed subagent, both VAD checks, focused tab send ownership, async focus ownership in happy-dom, the question-skip journey, the original managed Windows CLI lifecycle journey and dictionary substitution. These checks do not replace the removed alarms. Audit3470 composes ROOT-approved AUTHOR3466/PEER3467 source proposal: intentionally removes38 authored registrations/59 finite potential expansions, including8 whole registering suites, retaining13 authored registrations/18 finite potential expansions. The sole dead shell-recipe caller cleanup has zero additional test credit. No equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses process-import boundary, Korean/Japanese locale policy, worker-reset, mobile agent-history/queued-message and median-summary suites, plus packaged mobile-manifest, worker-pool fixture, HTML preview, mobile shell and terminal samples. The environment-provider contract and its sole shell-recipe caller are deleted. Separate cross-version-wire discovery loses the large byte-budget fresh-snapshot/replay sample while retaining independent live same-revision note publication; the retained terminal stale-refresh and dirty HTML draft persistence checks do not replace removed alarms. The source4 unused start/stop fixture hooks are removed; its retained nested failed-import test remains byte-exact with its own lifecycle. Unchanged SVG preview and Git-resolution registrations stay intact. Root balanced CI excludes the cross-version directory, which has a separate job; unbalanced root discovery can include its parent. No native app/device, actual remote, released-pair interoperability or cross-platform execution result is claimed. Audit3468 accepted source proposal AUTHOR3462/PEER3463, composed privately by audit3469: removes62 authored registrations/95 finite potential expansions, including5 whole suites, retaining25 authored registrations/29 finite potential expansions. ROOT approved source value; no equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses the profile-state worker smoke, worker-agent views and three search discovery suites, plus samples from node-server qualification, skill-bundle generation, CLI hooks/profile/recovery/offline admission, permission-hook holds and search indexing. The separate Cloud relay runner loses one relay blackbox sample; unchanged mobile native-chat and dependent-transcript drivers remain. Retained source callback/table/ancestor/fixture bytes bind to the sealed candidate. No physical-device, mixed-version, remote, cross-platform or app execution result is claimed. Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. Broad root-unit discovery loses whole cross-client workspace-sync, terminal-preview, picker-skill-hint and close-routing suites plus reduced worker-stop, remote-owned-record, scanner, mobile-bundle and daemon-health samples. Separate E2E discovery also loses the paired mobile/desktop mirror journey and two unit drivers. Retained callback/table/outer-loop/guard bytes are exact; retained checks do not replace the removed alarms. No app, native device, mixed-version, remote or cross-platform execution result is claimed. Audit3456 composes ROOT-adopted3449/independent3450: intentionally removes62 authored/82 potential expanded cases from16 selected drivers, including7 whole suites, while13 authored/13 potential cases remain. Delete the unused48line legacy workspace-session JSON fixture with zero test credit. These are source-only reductions without equivalent replacement or fresh runtime claims. Broad unit discovery intentionally loses whole trust-dialog observer, background-turn notifications, redirected session refusal, typed-agent identity, chat-tab lifetime-cost, model-manager and mobile diff-review controller suites, plus individual persistence, synthetic composition, pairing, manifest and subprocess samples. Retain deferred snapshot dirty-domain persistence, two direct editor ownership cases, stream counter-domain distinction, two persisted pairing identity cases, parser entrypoint asymmetry, dictation retry and process-group timeout; paired restart and packaged old-binary/corrupt-profile journeys remain in their E2E driver scope. Retained checks do not replace removed alarms. No fresh execution, native IME/microphone, real authentication, mixed-version/platform or performance result is claimed. Audit3451 composes ROOT-adopted3444/independent3445: intentionally removes101 authored registrations across16 reviewed sources, deleting7 whole suites and reducing8; one reviewed source is unchanged. Fresh main has123 authored registrations before and22 after because an upstream direct-child shell regression remains verbatim with zero removal credit. Registered removals are100+7*S and explicit-active removals99+7*S, where S is the unprobed count0..3 of admitted bash/zsh/fish shells. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses extra stream lifecycle/forwarding examples, unreadable-store/cache projections, orchestration presentation/benchmark cases, remote-owned routing matrices, mobile legacy navigation and model-catalog listing/cache examples. Whole suites retire renderer client-event projections, manually assembled structured-session reader ownership, mobile prompt presentation, renderer AI-vault resume commands, mobile Jira URL lookup, composer retention and mobile folder source-repository queries. Retained checks preserve original stream/store/orchestration/routing/navigation/catalog cases and shell behavior, including the upstream direct-child case. No real provider, native desktop or mobile acceptance is established by this reduction. Audit3446 composes ROOT-adopted3441/independent3442: intentionally removes100 authored registrations/119 potential expanded cases (118 conditional-active before platform gates) across16 sources, retaining11 authored/13 expanded cases and deleting6 whole suites. Two parent registrar import/call cleanups and the unused68line CLI recording fixture carry zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit and mobile discovery loses interrupt/wake registrars, task storage/session-close/account snapshot hooks, permission tables, copy/preference/model-discovery/composer examples, launch placement examples, VM projections and extra mobile-history scenarios. Retained checks cover abandoned versus dispatched fork uncertainty; /fast dispatch supersession; discovery lock release after exit; stale-send draft preservation; OSC status lifetime; future-version file preservation; launch cancellation before/during dispatch on both layout owners; mobile resume addressability before hooks; and recipe snapshot cleanup after plugin removal. The paired browser-link Electron source is unchanged. Terminal launch seams, mobile roles-only history and injected provider results do not establish native terminal destruction, transcript text fidelity or real remote provider cleanup. Audit3437 composes ROOT-adopted3431/independent3432: intentionally removes127 authored/174 potential expanded cases across12 sources, deleting7 whole suites and one267line unused helper without test credit. Retain8 authored/13 potential cases. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses reduced or deleted relay, coordinator mail, recovery watchdog, automation observer, launch picker, folder PTY, profile restart, web migration, retirement, pointer delivery, agent-row and run-bound mailbox examples. Retained checks cover relay hello/payload and SIGTERM drain, coordinator pending-check and clear-to-Run continuity, profile persistence, the full six-row web merge table and real run-bound delivery waiter. These do not replace removed alarms. Audit3429 composes root-adopted3426/independent3427: intentionally removes168 authored/205 potential expanded cases across16 semantic sources, deleting11 whole suites and one304line unused assertion helper. Five authored/five potential cases remain; the duplicate500k graph row is dropped while its50k row and callback remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted migration/recovery/federation/rich-draft/paste/automation/mobile/catalog examples. Keep server-edit preservation during migration, native supervised cancellation holding the agent home until physical stop, pagehide lost-text preservation, graph old-result WRAPPER WeakRef collection with50k rows, and mobile React render isolation. The WeakRef does not prove all commit objects are collectible or a memory budget. Audit3425 composes root-adopted3420/independent3421: intentionally removes83 authored/112 potential expanded registrations across13 semantic sources, deleting7 whole conventional suites and1 registering helper;7 authored/10 potential expanded cases remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted mock orchestration, refusal, restart and storage examples. Retain unchanged two-phase real-WSL deployment/survival, the reduced idle-release holder proof without restart/first-output measurement, real worker stop/release cleanup barrier rows, physical Git branch-preservation rows, and SSH disconnected-close proof. Other SSH and CLI variants and WSL telemetry/warmup churn are intentionally removed. Audit3417 composes root-adopted3415v2/independent3416v2: intentionally removes117authored/173potential expanded registrations from12semantic sources, deleting4whole conventional suites and3registration modules and retaining4authored/5expanded cases, without equivalent replacement or fresh execution. Broad root-unit discovery loses naming/title/queued-host fixtures, main-window focus-shortcut and attach-services mock orchestration, Git Bash console-capacity fake process inventories, most real-Git preparation/locking variants and Claude/Codex catch-up examples. Keep lifetime rejected-writer followed by late termination proof and autonomous real-checkout cleanup; two-row real-Git rollback after a real move preserving a replacement/admin marker or revoked permission; a live translator write during a held transcript read fencing stale Claude history append; and Codex expected-item revision rejection before a historical writer shim. Codex driver registers retained bounds exactly once with original inputs; bounds does not prove modern writer persistence. Accepted changed-lock preflight sentinel and omitted-parent routing losses are not replaced. Audit3413 composes root-adopted3405/independent3406 and3409/independent3410: intentionally removes337 authored registrations/363potential expanded cases from13sources, retaining31authored/32potential cases and deleting one whole clipboard suite, without equivalent replacement or fresh execution. Broad root-unit discovery loses35WSL examples,22STT examples,22shared-server-banner examples,18clipboard-handler examples (whole suite deleted),14VM lifecycle examples and16commit-message cancellation examples. Retain4WSL and7STT mocked connector/worker cases,1rendered stale-banner refusal,2VM guard/failed-compensation cases and1late-stream ownership cancellation case; real WSL/microphone/remote-provider proof is not established. Separately discovered e2e-unit drivers lose13cross-version-wire local cases and15mobile active-publication cases, keeping same-process disk-reopen/new-host cursor content/epoch/sequence outcomes and a host/renderer-snapshot selection and inventory revision race respectively. Imported released stop-note scenarios remain unchanged and receive no duplicate credit. Cloud suites are outside root UNIT_INCLUDE. Audit3403 composes root-adopted3393/3394,3400/3401 and3398/3399: intentionally retires167 authored registrations/196 potential expanded cases across93 whole suites without equivalent replacement or fresh execution. Retained65 registrations/79 potential cases include one conditional missing-input failure sentinel; potential counts are not executions. Historical notes and complete dated receipts retain their exact original scopes. The retained runtime registration driver loses three complete imported fragments: changed-working-label title facts and suppressed-frame tracked snapshots; refusing SSH GitLab MR-base lookup before local Git/glab calls; and missing folder-workspace path creation/update refusal before spawn/store mutation. These alarms are intentionally lost. Other imported fragments and separately rooted dated receipts are unchanged; they are not equivalent replacement coverage. The broad root-unit command loses the UNIT_INCLUDE src/ subset of retired examples; mobile is outside UNIT_INCLUDE. Other lost alarms are recorded by the adopted per-case source reviews. Audit3390 composes root-adopted3382/independent3383 and3386/independent3387 and3388/independent3389: intentionally retires216 authored registrations/230 expanded cases in42 whole authored suites plus5 zero-case registration drivers, without equivalent replacement. Lost local alarms include fake PTY identity/routing/startup/replay/mode/title/mouse/IME/scroll matrices, broad startup identity and file-open wiring, mock mailbox title recovery, mobile row parity and whole-v-selective save parity. Retained24 registrations/26 expanded cases in22 suites preserve actual xterm Windows buffer/wrap/scroll, typed TOML scalar, real Promise cancellation/settlement, HTTP Codex scanner/projector semantics, durable recovery admission/newer-schema bytes, federation completion/ACK/SQLite atomicity and failed stale-run-write versus imported durable history. Additional retained clock-domain scheduling, durable freeze/ACK/checkpoint ordering, ABA dirty intent, SQL atomicity, folder-domain retier/last-note deletion, scrollback durable no-sync staging, PanelBridge subscriber lifetime and reserved-send publication preserve narrower concrete behaviors. Current finite owner drift assessed in bounded defining bodies; retained callback bytes unchanged. Historical notes and complete dated receipts keep their original exact scopes. No new execution, equivalent replacement, native focus/device/pixel, live remote or global mixed-version guarantee is claimed. Audit3381 composes root-adopted3376/independent3377 and3379/independent3380: intentionally retires436 authored registrations/670 expanded cases, including79 whole suites and12877 test lines, without equivalent replacement. Lost alarms include scheduling, account/host/status/filter/format inventories, microphone/image cleanup, title/bell/capability lifecycle routing, access/impersonation/outcome matrices, paste/input resend/ledger/retention, stale completions/reload containment, trust-read failure and popup OAuth/security/geometry vectors. Retained30 registrations/34expanded cases in22 suites preserve narrower SQLite TEMP/TZ/WAL, HTTP transcript root resume, mobile original-index Choose/Submit, child environment/Git lock expiry, stale ACK/PTY lifetime/peer fairness/durable replay/output ordering, actual DOM paste/editor focus, DEC2026 conservation, filesystem rollback, owned buffer lifetime, actual OSC parser/tracker handback, POSIX Python UTF8/fallback, durable trust concurrency/version, OpenSSH verdicts and hidden Chromium POST/route lifecycle. Mocked boundaries limit claims. Current bounded defining-owner reads preserve the retained oracles; captured identities are not full transitive semantic review. Both component blind pins authenticated before exchange; final reconciliation and explicit postpin3380reason correction supplement control, without retroactive blind claims. Root unit command excludes mobile and separately admitted Electron probes; use existing respective runners. No fresh execution, native focus/device/pixel UI, live SSH/remote, equivalent replacement or broad mixed-version/cross-platform validation is claimed. Prior dated receipts retain exact original scopes. Audit3375 composes root-adopted3370/independent3371 and3373/independent3374: intentionally retires79 authored registrations/84 expanded cases, including39 whole suites, without equivalent replacement. Lost alarms include federation field/parser inventories; Claude rejected-key precedence, credential clone redaction, managed-versus-user hook preservation and CLI defaults; setting/status/activity projections, mocked SSH/notification/reveal/Linear refusal, fake-clock reconnect and noise; image-fold artifact visibility, paste eligibility, setup trust, scripted ACP error-to-journal publication and ligature cache tuple aliasing; plus supplied folder-runner uniqueness, mobile host-overlay/credential/update/preference races, status/markup/title/keyed-row projections, subscriber cleanup, cancellation/close/refusal/link-issue and mirror suppression alarms. Retained3373 merger contiguity, dual-clock overdue-resume exactly-once, rejected-paste IPC sink and annotation schema roundtrip remain bounded. Retained actual HTTP/OSC status composition, destructive sibling-filesystem isolation, external contrast invariant and fixture CSS pixel intervention remain narrower. Original reviewed87authored/92expanded become9/9; current OpenCode suite adds two preserved upstream cases and the synthetic-title suite gained one Cursor policy mock-call case, independently reviewed for removal in root3378; current90/95 become11/11. That Cursor suppression/ready-frame regression alarm is intentionally lost; it does not observe native title ownership or tab flicker. For3370 only the peer was independently blind, with author exposure explicit;3373/3374 both blind pins were verified. This broad root unit command selects the reduced root unit suite; UNIT_INCLUDE excludes mobile tests, which require the existing mobile runner; retained Playwright component-pixel spec uses its separate existing headless fixture runner and is not validated by the broad unit command. No fresh execution, actual agent/shell/provider, OS material/focus, historical import equivalence, mobile, mixed-version or cross-platform evidence is claimed. All dated receipts retain their original scope. Audit3368 composes root-adopted3363/3364 and3367/3369: intentionally retires181 authored registrations/196 expanded cases, including28 whole suites, without equivalent replacement. Lost alarms include hibernation attention/liveness/backoff/sequential teardown and inventory, host launch compatibility/legacy/Kimi/resource cleanup, terminal recovery parser/pause/quarantine/remount, window-visibility omission-fence lifetime, launch-option rendered Start, sleeping-resume saved recipe/WSL quoting/cancellation, plus removed project/window/input variants. Additional tiny-suite losses include sentence/label/field/default inventories, credential omission, Windows argument/environment mapping, URI decoding, diagnostics, provider classification and fake-clock callback/parser examples. Retained ten registrations/twelve expanded cases include two literal Unicode Mn/Cf zero-width range guards in the actual character-range algorithm and protect narrower delayed editor bytes/destructive ownership, mounted hidden collision repair, ten transport epochs, duplicate-command refusal, caller timeout typing, executor unknown-opener refusal and failed-chunk user bytes. This broad unit command selects the reduced suite; no fresh runtime, real provider/network/PTY, filesystem restart, native UI, historical import equivalence, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3362 composes root-adopted3358/independent3360: intentionally retires129 authored registrations/140 expanded cases, including four whole suites, without equivalent replacement. Lost alarms include supplied orphan-adoption retry/malformed inventory/cancellation; fake-terminal replay parser/wedge/disposal callbacks; all-host catalog metadata and Windows preferences; host keepalive/protocol/stale/settings failures; and removed exact-stop/suppression, source save lifetime, diff-note queue, rename/editor close, input flood/chunk refusal/limits, purge and creation examples. Retained18 registrations/21 expanded cases protect narrower ownership, generation, dirty-state, queue convergence, encoding and attachment-lease outcomes. No replacement or keeper quota claim. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY/xterm parser, disk restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3359 composes root-adopted source3355/independent3356: intentionally retires130 authored registrations/139 expanded cases, including eight whole suites, without equivalent replacement. Lost alarms include strict create naming/capability/legacy payloads; supplied transport host replacement, deadline reattach, create-handoff and split activation; agent-session fork/clipboard/platform flags; shutdown cleared-scrollback/unmounted bindings; simulator host-collision/selection/shutdown; and removed editor, catalog, mutation, launch and status examples. Retained12 adverse-ordering/state-consequence cases are narrower and do not replace all removed alarms. Two queue absences receive zero removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY, filesystem restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3349 composes adopted batches3343,3345 and refreshed3354: intentionally retires234 authored registrations/294 expanded cases, including13 whole suites, without equivalent replacement. Lost alarms include supplied terminal reconnect/replacement/typeahead/mirror/result and snapshot examples; synthetic render-desync persistence/recovery; worktree listing/owner/catalog/lineage/removal and activation/creation examples; host-scoped PR and task-record projections; editor diff/status/comment and UI send-target examples; automation observation/wake, supplied sleep/deadline clock and native-chat completion/notification/relaunch samples; held-tab layout and cleanup/progress guard examples. Retained adverse-ordering and wire-boundary cases are narrower and do not replace all removed alarms. The already-upstream visibility-resume deletion receives zero new removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH, native process/power/GPU, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3342 composes adopted source batches3333/3334,3336/3337 and3340/3341: intentionally retires180 authored registrations/263 expanded cases, including seven whole suites, without equivalent replacement. Lost alarms include corrupt editor hydration; mobile editor/diff publication and privacy projections; stale-resubscribe routing; model-picker projection/refetch/retry/fallback; editor check-details and frame property inventories; latched-pane cleanup/quiescence; client create replay identity/options/compatibility; and removed owner, async routing, terminal and layout examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts keep their original scope. Audit3335 composes adopted source unions3327/3328 and3330/3332: intentionally retires100 authored registrations/123 expanded cases, including ten whole suites, without equivalent replacement. Lost alarms include seeded host persistence/contention and stale-host cleanup; browser snapshot assembly; mocked wake/DPR callbacks and frame budgets; preflight projections; palette authority/cache suppression, URL intent and saved-title cross-repo collisions; metadata coverage/set patch and dropdown assembly; and removed terminal, worktree, review-refresh and owner-routing examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI/GPU/focus, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain only their original scope. Audit 3318 composes adopted sources 3310, 3313 and 3317: intentionally retires 71 authored declarations and 102 expanded cases, including whole terminal-detach agent-retention, seeded batch/single open-files equivalence, shallow context-menu shortcut-badge, mocked active-workspace delete-dispatch, workspace session hydration, SSH target cleanup, editor session hydration and worktree terminal purge suites. Lost alarms include chained transfer alias and immediate close/exit retention; batch/single divergence, survivor/selection/map preservation and input nonmutation across 400 imperative seeds (one registered case); disconnected pending-handle retry, authoritative absences/close-record shortcut/older-host absence and published-presence/unpublished-frame examples; published empty host-graph omission to pane exit; legacy search ranking/exclusion fallback; provider request upgrade/dedupe/finalizer ownership; asynchronous PR suppression/primary-change and same-number different-repository URL rejection. Deletion routing loses host/instance qualification, paired and legacy mapping, folder ownership, active-versus-hover/menu-row selection, ambiguity, modal/editable/creation/view/main/deleting/missing guards and shortcut advertisement. Unchanged real keyboard/hover/confirmation/catalog E2E remains narrower, not an equivalent replacement. Additional losses include scripted old-host disk/UTF-8/noop/baseline and landed/unlanded lost-reply/replacement-retry outcomes; ordinary/repeated healthy-link reattach; cross-owner terminal/chat binding; oversized replay permanent-unavailable classification; floating reveal keyboard ownership/close/disable/listener disposal; naming/retained-turn/Sleep/error/close/reject status tables; SSH membership prune/new-target-only reads and environment/local bucket isolation; same-frame receipt capacity and positive bare/headless publisher readmission. These actual regression alarms are deliberately lost; no fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit 3312 composes adopted sources 3302 and 3308: deliberately retires 33 authored declarations and 36 expanded cases, including the whole backend startup-focus, active-browser IPC-close-routing, remote-browser-creation and agent-terminal-presence suites. Intentionally lost alarms cover distinct six-pane reconnect handles; SSH host label/Connect callback, unhydrated visit cleanup, repo cache aliases and hidden worktree/tab/PTY cleanup; adopted-agent startup focus and viewer navigation/reuse; staged, pageless, source, stale and orphan browser-close routing; web local-materialization refusal, desktop incapable-host fallback, failed/thrown remote creation and paired-web sign-in refusal; BOM/NUL and remote/local custom-editor byte-read examples; immediate folder activation and unread clearing; and batching idle/coalescing, accumulated byte ceiling, leading-edge-disabled, standalone synchronous oversize rejection, validation yield, deferred pending-tail order and both viewport-clear examples. The newly reintroduced agent-terminal-presence suite also loses actual terminal-status membership positive and nonterminal-status callback suppression alarms, including the recent 40916 guard regression; the older different 2133 presence-suite history remains historical and receives zero duplicate removal credit. These real regression alarms are intentionally lost. The unchanged survivors provide narrower coverage, with no equivalent replacement or fresh gate, provider, rendered, remote/mobile, mixed-version, cross-platform, soak or measured-budget validation claimed. Audit 3301 combines adopted source batches 3296 and 3299: retire 27 authored declarations and 36 expanded scenarios, including six whole suites. Intentionally lost alarms cover failed-verification/recovery/restart counters and mocked hosting/toast; early overlapping pane-read scheduling/count; unreadable removal listing draft guard; bulk-purge remote-qualified and raw-local guard maps; initial-snapshot blank/mode/oversize/printable/fresh-spawn callback and replay examples; fallback mobile file close and ordinary MRU; default queue overload/drain; seeded browser-page reuse and supplied missing-page URL recreation; ambiguous sleep/hibernation owner refusal and untouched bindings/origins; ordinary selection/activity/fallback priority; skip-remote success and retained hints; supplied structured-chat unsent retention and scoped removal draft eviction; caller-chat focus precedence; open/draft PR cache eviction and merged-head fallback result inventories. Retained adverse-ordering and ownership cases are narrower and do not establish equivalent replacements. No fresh runtime, native, physical provider, cross-platform, mobile or mixed-version evidence is claimed. Audit 3292 combines adopted 3285/3287/3289/3293 removals: 40 authored declarations and 47 expanded scenarios, including whole frame-editor-view, ambiguous remote-delete-refusal, unverifiable-host subscription and editor-close cleanup suites. The previously reviewed dock-badge suite was already removed upstream in PR 40895 and receives zero new removal credit. Intentionally retired alarms include background browser selection and last-tab landing; main startup fallback, SSH project cleanup/survivor routing, exact-PR contradiction/saved-push positives, replay/sidecar rollback and wrapped remote error normalization; records/snapshot missing-diff hydration, ambiguous folder-owner delete refusal, focus no-op notifications, nested editor context-only cache check, pending broadcast-first status and ordinary four-confirmation aggregation; preview-source frontmatter pruning, approved local/runtime agent dispatch, non-GitHub legacy PR cache invalidation, stale merged-head transient-error fallback, empty-queue immediate query reply and unverified-to-concrete preflight risk. Additional intentionally retired alarms are injected host subscription/unsubscribe counts, synthetic editor reveal/draft/fallback/scoped close, ambiguous unread refusals and hidden mark/read roundtrip, immediate connect backoff/noError, positive mirrored evidence-clock renewal, supplied VM failure/success projections and git-local/folder-SSH wake permutations. Remaining temporal/ownership cases are narrower; no equivalent replacement or fresh execution is claimed. Audit 3283 removes 20 authored declarations and 31 expanded scenarios, including two whole suites. Retired alarms cover PR refresh-state pruning, shared runtime subscription cleanup and store isolation, language content-change routing and older completion ownership, ordinary panel retry-timer cleanup and pending loading, four hosted-review lifetime permutations, mocked terminal creation error/order wiring, five sleep-inventory variants with pending-frame-only assertions, palette fallback/composite highlights, Windows/UNC encoded-editor input rows, mixed-repository partial failure counts, title setters and generated-title bypass/replacement, five window-close coordinator delegation/guard/finally branches, and ambiguous-old-record frame reveal. These regression checks are intentionally lost under the test-value audit; retained cases are not equivalent replacements. Prior coverage notes and receipts remain historical. Audit 3273 removes 14 authored declarations and 19 expanded scenarios across four whole suites and eight partial suites. Retired alarms cover saved-local cancellation/layout ownership, ambiguous-owner warning reset, folder attachment routing, VM false-capability bypass, abandoned reveal warmup cleanup and viewport claim deduplication/rearming, quiet unrelated remote-removal refusal, startup-command one-shot consumption, repository/floating recovery-ledger rows, fake-React pinned-scroll intent, split-ratio state identity/subscriber suppression and fractional change, cross-host project-group join refusal, three PR request-lifetime permutations, upstream-status preservation on error, and unresolved Git-owner refusal. These regression checks are intentionally lost under the test-value audit; retained scenarios are not equivalent replacements. Historical coverage receipts remain historical, including gate35 subscriber claims. Audit 3256 removes these specific alarms from the broad root unit commands: skill dialog active-share selection, close and pending-share handoff; simple keyed-record deletion; marker live-region insertion, simple landing and nine baseline policy examples; General search/control navigation inventory; orphan-count cache bootstrap; seven Codex code classifications and HTTP 429 warning mapping; two skill unread-root verdict examples; peer-mail payload and conversation-ID rejection; and the GitHub organization TABLE text-field optimistic rollback/failed-envelope example. These include real behaviors; retained tests do not provide equivalent coverage for every removed scenario. Mobile losses are recorded separately and are not coverage of these root commands. Audit3246 retires NewRowsMarker reveal/no-repeat and pane-scoped beforeinput checks; skill-owner option availability/count/dedup/order; six styled Input/Textarea IME forwarding rows; the static Codex/OpenCode smart-key inventory; tab-map AST ratchet diagnostic fixtures; child-roster work-budget and retained-aggregate alarms; malformed persisted floating-cwd fallback/no-crash/empty exact-root checks; the unanswered-host empty-list discriminator; the direct invalidated-cache commit-false assertion; one redundant digit-keyup IME row; cached non-supported Claude title-generator rows; and the duplicate late naming-result singleton. These root broad commands lose those specific alarms without equivalent replacement. Distinct retained owner/state checks have their own bounded claims; the real scheduler still rejects stale response data, while the direct false-return alarm is retired. Audit3231 retires supported-host restore-pane key mapping, closed/open creation-sidebar toggle visibility, unrelated scope-error/null classification and quick-submit reveal/no-create checks. These broad commands lose those real narrow alarms; no replacement coverage is claimed. Audit3219 removes the synthetic Cmd+J extra-source suite; this broad command no longer checks its match/tie placement and selection, announced count, empty-query cap, or workspace hiding with retained recent tabs. No replacement coverage is claimed. Audit3209 composes approved sources3202/3206: deliberately retires seven authored/expanded cases in four whole suites without equivalent replacement. Work-item queries lose real GitHub/GitLab oversized ASCII secret-prefix empty-query and whitespace-before-trim refusal alarms; inputs share the imported size bound and exercise only its fast length branch, with no multibyte or actual provider/exposure guarantee. Skill sharing loses complete/partial managed-bundle and destination-ambiguity association checks plus three negative origin/path/scheme admission examples; these do not establish uploaded contents, arbitrary-URL fetching, authorization or execution. Retain exact originless-project direct-link fallback, cloud-delete confirmation, bundled-target repair/owner isolation and explicit Windows-host preference over stale WSL suites. Rejected3201 runtime-preference removal is excluded. No real cloud/network/host/disk, mobile or mixed-version execution validation is claimed. Audit3200 composes approved source3194: deliberately retires thirteen authored registrations/twenty-seven expanded cases in six whole automation host/list policy suites without equivalent replacement. Real RPC category/retryability and wrapped-timeout recognition, unscoped-failure/scoped-success health evidence precedence, exact-ID create selectors and per-run workspace omission, paired-web local/SSH/absent host catalog routing, incompatible/removed/unhydrated/offline execution health, runtime-before-nested-SSH recovery dispatch, and no-owned-focus/successor/foreign-list focus policy alarms are consciously lost. Retain exact20line orphan allow/refuse/precondition and exact90line cross-host same-ID search suites. No retry-timer/fence lifecycle, actual reconnect/network/write delivery, native focus, mobile/mixed-version runtime or disk persistence coverage is claimed. Audit3191 combines approved source3182/3187/3188: deliberately retires thirteen authored Vitest registrations and fifteen expanded cases, including five whole suites, without equivalent replacement. Attachment intake loses real portal/native-capture terminal interception and unowned-container refusal, immediate child-only committed availability/claim-ref negotiation and delivery, and direct-target over stable focused/background composer routing through disable/re-enable/remount and independent question focus. Exact destination/cache/draft and final-stat owner/workspace/File-release suites remain; they do not replace Surface recipient routing. Automation authoring loses destination runtime catalog membership, local/direct-SSH exclusion of paired-runtime repos, unknown-runtime empty catalog, logical project/host/setup/repo/path context payload, and missing/nonready setup refusal; these were genuine direct helper alarms, while exact schedule transformation, legacy schedule and setup-decision suites remain. Agent picker loses setup-chat/terminal/missing-installer/unsupported-or-unknown-host row projection samples and the ordinary unsearched menu variant; the entire original26-line resume recipe suite remains, including reported bypass versus default/absent permission modes, as does the exact search-result menu callback with its fixtures, model/effort commits and staged Arguments reopen outcome. Rejected predecessor3180 full recipe deletion is excluded. No actual native drag/cursor/focus/IME, upload bytes or disk/restart persistence, full automation save/scheduler/runtime transport, real resume-process flags/environment delivery, or native menu/rendered layout validation is claimed. Audit3178 combines source3169/3170/3175: deliberately retires eight authored units (six Vitest cases and two imperative custom relay scenarios), including two whole suites, without equivalent replacement. Voice Section loses per-model pending-delete isolation across interleaved A/B completion and the two-success refresh-call alarm; exact VoicePane delayed key-clear/newer enabled-toggle merge remains and does not replace row deletion coverage. Speech loses dedicated rating-scale/inclusive-ceiling, unsupported-versus-unmeasured, explicit/system-language precedence/locale alias, accuracy versus fast named/default/best-measured selection, and unmeasured/no-match examples; exact offered-user-pick versus retired-selection case and its fixture remain. Relay loses legacy ping-delivery count/liveness sampled before the silence deadline and grouped malformed Bearer/host-ID 401/429 routing checks; twelve real Worker/DurableObject/shipped-client scenarios remain, not equivalent replacement for those narrow alarms. Six prior speech cases are not all deleted: approved successor3175 keeps the original user-choice case. No actual credential/file persistence, native/GPU/engine/download delivery, production assignment policy or deployed-runtime validation is claimed by this reduction. Audit3165 combines source3160/3162: deliberately retires six authored/expanded cases across three whole suites without equivalent replacement. Launch/status losses: observed React-render pending/resuming coordination across settings and deferred offer read; stale-offer reread suppressing dialog reopen; held-local-chat recovery visibility with new-chat preferences off; disabled-local admission avoiding offer RPC despite an injected but unconsumed paired-tab fixture; and run-only lost-reply uncertainty reachability until direct viewed-run retirement. Launch probe does not prove arbitrary synchronous-store atomicity, the paired fixture is not remote runtime enrollment, and the status case directly marks viewed state rather than rendering the summary. Crew-hook losses: old-host method_not_found cache persists across party changes but is released by independently supplied connection generation/verified pairing status or pairing revision, with actual frame publication and teardown. These are real narrow coordination, admission, uncertainty and mixed-version cache alarms consciously lost. Exact web verified-runtime writer handoff guard remains; it does not replace those alarms or prove live host/native/mobile delivery. Audit3156 combines3147/3150/3152/3153/3154: deliberately retires39authored/40expanded native-chat recovery cases, eight whole suites and two orphan test-support files without equivalent replacement. Lost alarms: lost-reply unconfirmed reconciliation, skipped rows/counts and missed-frame repair, unknown/pending outcome and omitted-failure-list compatibility, uncertain history after dismissal, retry/refusal/dismiss lifecycle, hidden/consumed picker ownership, result-tree keyboard focus/disclosure and all-skipped retirement; unconfirmed-over-conflict guidance and failed-chat changes despite older host timestamps; nearest-listed ancestor/cyclic forest shape, descendant membership, host ordering/missing-host local fallback; skipped/readiness/admission counts, provisional skip/progress monotonicity, early per-chat verdicts with batch pending protection, older-host waiting, start-slot/delivery distinction, retry-over-failure and unknown-after-withdrawal attention; remote snooze/reconnect/reoffer, unseen mixed summary through open/close, watched completion retirement, new success beside old failure, failed-reread mixed-result preservation, filter/collapse completion resets, retry summary replacement and current-offer/history selection; cross-host workspace identity, rendered cyclic reachability, nested tri-state/toggle propagation, project eligibility isolation and collapse preserving selection. Exact fallback-list completion barrier, batched verdict/cleanup retention, stale-read versus dismissal publication race, and requested-but-never-rendered finished-run retirement remain; they do not replace retired alarms. Audit3146 combines source reviews3132/3133/3135/3138/3143: intentionally retire20authored/31expanded cases without equivalent replacement. Provider-session losses: structured-native terminal-resume exclusion, metadata-less completed identity, new-turn completion clearing, Pi provider-only/periodic/manual promotion, changed-transcript launch-config isolation, Pi/omp/prime-agent completed-session remote/manual-shutdown promotion, and quit/done precedence over heartbeat. Side-thread/question losses: finished-pane acquisition, hidden title/recap states, local/relay/relay-done conversation takeover with prompt/session/child resets, plain-message abandonment, compaction/session replacement and completion resets. Codex startup losses: incoming-owner cached child replacement, old-relay foreign live-session correction, completed foreign-root turn-fact permutations. Transcript losses: real temporary-JSONL partial sibling/final-child completion, unlabelled child attribution, compact cached replay preservation and100/1000completed-child roster retention/release. Compiler-ratchet losses: valid-line uncompiled-list parser grammar examples and injected-existence stale-path filtering; these did not exercise actual filesystem canonicalization or build exclusion. These are real lifecycle, ownership, replay, liveness and retention alarms, including recent#40246 regressions, deliberately lost. Retained conditional record replacement, clockless root/SSH owner isolation, persisted main-thread fork rejection, partial/final question-answer lifetime, cached-roster/missing-ID/live HTTP/durable startup boundaries and restarted-relay refusal/acceptance do not replace those losses. No native/SSH/WSL execution or equivalent coverage is claimed. Audit3128 scoped coverage reduction: Audit3121 removes VoiceDictationLanguageSetting.test.tsx (Spanish-to-es callback and unsupported-model Korean option presence) and voice-speech-model-rows.test.ts (provider/language-order/retired-on-disk list policy); these real narrow alarms are deliberately retired without replacement. VoiceSpeechModelSection per-model concurrent deletion remains unchanged. Audit3122 removes the direct absolute/parent-segment sparse-directory exception-type sample and the five-row IPC sparse-preset error-code/non-save table (two authored/six expanded cases). Those real typed-validation and IPC refusal/error-code alarms are deliberately retired. Keep both real symlink/junction floating-directory trust cases and the minimal RPC structured validation-reason serialization case. The RPC case does not replace IPC save/refusal behavior, typed normalization for both path inputs, actual Git sparse checkout or rendered localization. No equivalent replacement or fresh test/runtime/platform/remote/performance validation is claimed. Audit3124 removes ExperimentalPane.test.tsx (ordinary Pet switch callback), WorkspaceDirectorySetting.test.tsx (padded absolute saved-path normalization/no-write blur), and repository-search.perf.test.ts (navigation/selected-pane builder-call policy, fixture cardinality/nonempty entries and renamed project keyword inclusion). These real narrow alarms are retired without replacement; RepositoryPane.search.test.tsx search-to-sparse-editor request remains unchanged. Audit3129: resolver Windows case-insensitive and POSIX case-sensitive configured-env composition plus mocked-base launch-preflight Windows composition are intentionally no longer checked by the two deleted suites. No equivalent coverage claimed. Keep runtime-structured-agent-host-env.test.ts unchanged: configured Windows Claude-home account identity and host-account precedence remain checked. Audit3114 incorporates source3101: retire three structured Claude child-environment wrapper cases covering inherited stamp isolation/default and explicit entrypoint, Windows SDK-key canonicalization/default/duplicate-key order, and configured lookup/final environment/config-dir conjunction. Keep direct auth/session sanitation and Windows-versus-Linux overlay checks, actual executable lookup from supplied inherited PATH, native Windows child environment delivery, and stale option-mutation fencing. These are not equivalent replacements for the retired wrapper alarms. No fresh test/runtime, real login-shell probe, Claude SDK startup, remote/mixed-version, UI or performance result is claimed. Audit3114 incorporates source3105: retire 17 authored/20 expanded daemon launch-note cases, including the entire two-case SessionLaunchNote suite. Deliberately lose split-marker carry across same-token re-arm, stale-token retirement refusal, foreground tri-state and serial settlement, omitted-note/no-incarnation mixed-version policy, sticky retirement, first-incarnation/replacement launch preservation and held-launch precedence. Keep only the unchanged unresolved foreground-read race against a later finished attach. Supplied notes/foreground and runtime calls do not establish actual daemon/main restart, SSH, native Windows observation, mobile UI, equivalent replacement or fresh runtime/performance validation. Audit3114 incorporates source3109: retire six authored/35 expanded pricing cases: 21 accepted model-name examples, 10 unsupported/future-model fail-closed examples, malformed TTL clamp, unknown-model estimate refusal, flat-model long-context disregard and oversized long-context clamp. Keep mixed five-minute/one-hour write allocation and short/all-long/mixed long-context allocation with original fixed oracles. Real parser/refusal/bounds alarms are knowingly lost without equivalent replacement; retained tests do not validate provider rates, actual billing or request threshold classification. Preserve the archived usage-scan-append source-freeze receipt without transferring historical execution/performance credit. No fresh runtime result is claimed. Audit3108 source-only reduction (3094/3095/3100): retire 27 authored/30 expanded cases, including complete markdown view-state, file-preview link-open and CLI agent-server-route suites, without replacement. Deliberate losses include preview visibility/reference lifetime and same-path owners; SSH stat, directory/missing-target, explicit-null owner, nonmarkdown line/column, local URI routing, remote-to-client guard and same-file reuse; document-preview source-owner/folder/reuse routing, stable grant location and outside-workspace POSIX/Windows request projection; and verified remote CLI send/check refusal, suggested --on argv/copy, shell no-probe bypass, unverified-launch admission and older-peer refusal. Retain two markdown source-runtime/qualified-reveal alarms, one stale grant-rejection fence and two remote read/mutation evidence policies, with original callbacks. Final last-wins reveal did not prove transient cancellation; CLI prerequisite did not prove no real send, and envelope tests do not execute server refusal. No fresh runtime, rendered UI, actual file/SSH/paired transport, authorization, mixed-version or performance result is claimed. Audit3096 source-only reduction (3087/3088): retire 69 authored/76 expanded cases, including complete recovery-portals and reconnect-banner suites. Intentionally lose dead/default TUI replay, generated alternate-frame style composition, reset/mode/dimension and legacy missing-mode-boundary alarms, UI notice/action/reveal policies, and isolated recovery lifecycle variants, without equivalent replacement. Retained registrations and callbacks are unchanged; headless cells are not pixels, and no fresh runtime, host, SSH, WSL, rendered-app or performance result is claimed. Audit3086 source-only reduction (3079/3080/3081): intentionally retire 93 authored/100 expanded mock-boundary cases, including the complete spawn-errors and SSH reconnect overlay suites, without replacement. Retired alarms include spawn classification/ownership, reply ceilings and renderer-write failure recovery, disconnect/detach fencing branches, authority facts, and overlay retry/visibility wiring. Retained callbacks are unchanged; no fresh execution, real PTY/SSH, rendered UI, or performance result is claimed. Audit2432: The broad unit command loses the isolated BranchPicker open-change notification sample. Its unique true/false callback alarm is intentionally retired; reopening/status-refresh behavior was not exercised. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2425: The broad unit command loses the workspace-copy-status supplied readError forwarding sample. It did not exercise the branch-switch blocking promised by its title. This alarm is intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2417: The broad unit command loses two ordinary clean Git cherry-pick/revert success samples and two terminal startup foreground-read work-budget samples. These unique alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2412: The broad unit command loses the whole six-case fake-React-hook scroll-anchor suite, two generic draft-retention samples, a simple new-agent order sample, a real history-publication batching-count sample, an unmounted handoff abort/timer sample and three basic WSL preview/error samples. These alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2404: The broad unit command loses the standalone share-name lookup 503 propagation suite, initial deletion placement-kind sample, direct changed-mtime stale sample, first-pass rollback existence example and abandoned-preparation directory sample. These exact alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2397 review amendment: The broad unit command loses three standalone suites, two partial-case definitions and two URL table rows across package/download/placement tests. Keep initial wrong-port authorization, modified independent-copy digest refusal and abort-after-begin cancellation dispatch. The remaining alarms are deliberately retired; no equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2393 current-parent refresh2401: Remove the basic skill-install service alias sample and original public managed-remove receiptless refusal case. Preserve the upstream request ownership suite and transaction interruption coverage. No equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2389: The broad unit command loses the missing-preview suite, plain-global destination sample and prepublished-receipt recovery example. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2385: The broad unit command loses four authored walker/staging/protocol examples (six expanded cases); no equivalent replacement or fresh validation is claimed for the reduced suite. Audit2383: The unscoped Vitest command no longer includes the removed Antigravity catalogue suite; its exact provider-root/owner example has no equivalent replacement or fresh validation claim. Audit2377/2381: The unscoped Vitest command includes the reduced bundled-skill and native-discovery suites; the eight removed backup/legacy/catalogue/symlink/SSH-builder examples have no replacement-equivalence or fresh validation claim here. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts: delivers remote file changes to listeners for the same worktree. src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/mobile-session-tabs-part-14.spec'). src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-03.spec.ts: arms the stale-title timer for a seeded working title; arms the Command Code scrape from the noted spawn command; prefers the tracked title over a stale renderer lastTitle in the hydration seed; writes recent output into the current runtime output map; uses a later title handler replacement with the runtime receiver; calls the current injected listener with the runtime receiver; keeps optional reconciliation lazy after its callback is removed. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-14.spec.ts: lists them, so a paired client can mirror a migrated editor; closes one by retiring it from the host session; keeps an unsaved draft unless the close is forced; shares aggregate work but leaves a replacement pending promise alone; lets a targeted refresh finish while an aggregate refresh waits; refuses a close when the store lacks %s before the guard; keeps a later missing %s on the original caught failure path. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Exact retired assertionRefs, preserved as historical objects only: {\n \"file\": \"src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts\",\n \"assertions\": [\n \"terminal watcher error and setup failure evict the shared entry before retrying callbacks run\",\n \"an old stream end cannot evict the replacement stream, which still delivers to its listener\",\n \"two same-worktree listeners share a synthetic subscription until the final stop unsubscribes and sends unwatch\"\n ]\n } Historical prior account (preserved verbatim): Audit1973: Delete the standalone mocked watcher cleanup suite and its entire sole-file prospective command. Retire the removed file-command transport-abort alias; preserve the independent cancellation suite and final-overflow/error/end cleanup callback, and13 unrelated receipt objects. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial runtime files-watch suite retains controlled Windows close-event waiting, shared-client survival, late physical-exit ownership/deadline cleanup and shutdown joining. Its combined Windows close/deadline/late-exit alias remains backed by unchanged callbacks. Retire native-error-close, pre-publication setup ownership and failed-delete rearm aliases; associated delegation, failure forwarding, removal routing and recovery examples are lost. These tests inject watch/subscription seams and do not observe an actual native watcher or physical process. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Partial runtime watcher-host suite loses mocked option/event/overflow/resubscription forwarding, supplied teardown-error propagation, aborted-signal/no-call and private ten-thousand-waiter-count inventories. Retire the 10,000-caller bound and failed-recovery-subscriber-ending assertion aliases. Keep same-root owner cancellation, pre-ready replacement, held root-close join, stale-generation recovery delivery and initial failed-root ownership mappings backed by retained real-host callbacks with injected subscription/error/physical-exit promises. No actual native watcher, process termination or resource bound was observed. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1683 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1645 removes low-value test projections, mock wiring, private-state assertions, inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained public behavior and refusal boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1640 removes low-value IPC, SSH, workspace and transcript-watcher tests without equivalent replacement coverage. Per-source reviews record retained public refusal, cancellation, execution-host and real-filesystem outcomes with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1634 removes low-value IPC, filesystem and runtime projections, argument inventories and duplicate examples without equivalent replacement coverage. Per-source reviews record retained cancellation, ownership, authorization, filesystem and SQLite boundaries with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1516 removes package-electron-runtime-contract.test.mjs, a copied release-workflow platform and marker matrix. Its workflow wiring alarm is intentionally retired; no actual packaged watcher delivery was exercised and no equivalent replacement is claimed. Unaffected dated execution receipts retain their original scope; changed optional selectors have no fresh full-gate execution result. This audit removes the paired-web stopped-during-outage and late-ready direct-branch examples. The retained pre-ready cancellation, failed-unwatch retry and replay-continuity cases are not equivalent replacements for those ordering alarms. Current web-runtime-client.test.ts assertions below name only its retained pre-ready callback case; replay cases remain in their separate suite. Historical commands and results remain historical. Deterministic tests cover one shared healthy child per runtime process plus at most four bounded fault-quarantine children, native desktop, paired-runtime, and WSL snapshot processes sharing the same eight-physical-child reservation with typed serialized event-driven capacity recovery, including recursive re-wait when crash recovery reclaims an announced slot, one quarantine attempt per watch lifetime, generation-scoped cancellation, bounded termination with removable deadline waiters, replacement-crawl errors that cannot be blessed by a late readiness ack, pre-ready paired-web cancellation registered before an unbounded capacity wait, already-resolved and late physical-exit retry of a rejected paired-web teardown, physical desktop-install and local/SSH PTY teardown, stale-generation rejection, per-child stat bounds, final-overflow RPC delivery, and renderer eviction before terminal callbacks can retry. Destructive local and SSH removal fences both ID-derived and resolved-cwd terminal roots, including sibling-root/cwd combinations with reverse admission rollback, closes descendant relay watches before parent deletion, enumerates authoritative provider/cwd ownership, falls back to daemon spawn cwd before OSC 7, and keeps daemon/relay immediate shutdown pending until native exit or a bounded fail-closed error; a dead relay PID discovered during attach also settles concurrent shutdown before its stale entry is reaped, while Windows runtime watcher deadlines retain one removable physical-close waiter, treat Node's error-close path as positive physical-exit proof, and clear root ownership on late close. The relay policy test maps a standard repository's base, Git common directory, and worktree roots to one healthy supervisor, then proves a shared-child failure recovers those roots in separate quarantine supervisors with overflow and resumed events. Abortable capacity, quarantine, runtime-root, relay, SSH, and relay pre-install setup waits attach one reaction to each shared promise and explicitly remove 10,000 cancelled caller closures while one anchor remains. Built-entry macOS harnesses kill the desktop/runtime and SSH relay watcher children, then require automatic resubscription and later events while the host process and relay PTY survive. SSH bundles the child boundary beside relay.js, requires both artifacts for install completeness, and preserves registration-owned same-root cancellation. The test-value audit corrects the active renderer watch command/file reference to the existing runtime-file-client-watch.test.ts, whose three cases are retained unchanged. They observe synthetic subscription retry/fanout and unsubscribe/unwatch calls, not actual preload/main bookkeeping or physical watcher-process cleanup. The separate read/preview client suite loses forwarding, supplied-error and negative-only examples, retaining binary detection and Unicode SVG decoding. Historical evidence commands/results are unchanged. Test-value audit1293 removes src/main/providers/local-pty/local-pty-provider-session-inventory.test.ts (2 authored cases). Their isolated assertions no longer run; surviving tests are not claimed as equivalent coverage. Fresh execution against the candidate SHA is required. Audit1312 removes low-value imported specs from aggregate test drivers; old whole-driver execution receipts are archived. Retained registrations are unchanged. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result. Audit1412: src/main/workspaces/removal/watcher-removal-gate.test.ts reduced. Loses exact removal-error compatibility with renderer predicate under shared message constants. Kept public refusal outcomes do not establish that renderer classification. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", "motivatingLinks": [ "https://github.com/stablyai/orca/issues/5308", "https://github.com/stablyai/orca/issues/7547", @@ -12306,8 +12299,8 @@ "invariant": "Local runtime and SSH relay roots share one watcher child per host process while healthy and use at most four quarantine children after shard failure; native desktop, paired-runtime, and direct WSL snapshot children consume the same process-wide eight-child reservation and retry transient exhaustion without permanently disabling a root. Cancellation remains owned by its child generation and settles only after acknowledgement or bounded physical exit; paired-web retains cleanup ownership and can cancel before readiness even while capacity is exhausted, retries a failed unwatch after already-resolved or late physical exit without duplicating stream termination, replacements never overlap a still-retiring generation, and aborted or timed-out callers detach immediately even while queued behind same-root relay teardown. Destructive local and SSH cleanup holds one containment-aware watcher/terminal removal fence through descendant watcher and PTY physical exit plus parent Git/filesystem deletion; daemon and relay kill requests retain ownership until the actual subprocess exit callback or an equivalent positive dead-PID proof and propagate rejected signals or a bounded failure otherwise. A crash-fused shared shard moves affected roots into the bounded quarantine pool, a second fused quarantine ends those watch lifetimes, interrupted setup emits overflow after recovery, metadata work stays bounded, and the SSH relay, PTYs, Git, and other filesystem operations never load the watcher native addon or share its fault boundary.", "oracle": "Audit4368 intentionally drops seven mocked teardown cases: duplicate single-chat rollback, forced stuck-close warning/retirement, post-close-throw exit acceptance, mixed live/unconfirmed wording, exact serial-close budget work, missing runtime selector success and runtime-sweep rejection. Four structured-session and three PTY teardown cases remain; no replacement or fresh native/process/remote proof is claimed. Historical assertion anchors and receipts are not refreshed by this source-only reduction. Audit4362 intentionally deletes the imported stale-waiter retry and manually assembled OSC9999 mobile-republish cases, plus the mocked missing-worktree cleanup suite (4 authored / 5 finite cases in three suites). Lost alarms include repeated unread worker_done pointers, working-to-waiting mobile status publication, missing-worktree filtering, and scoped daemon shutdown with unrelated duplicate identities. No replacement coverage or new platform proof is claimed. Audit4358 intentionally removes six whole mocked daemon subprocess suites and two extra pre-listener replay variants (18 authored / 20 finite cases). Lost alarms include cancel-during-cwd-validation, root agent startup refusal, output/exit before ConPTY publication, fresh/delayed/unavailable foreground confirmation, cache/decision separation, detached/no-tty child evidence and synthetic agent authorization. The retained lifecycle case checks data and exit replay after handle creation, not startup-time publication or alternate listener order. The retained native Windows Git Bash workflow and host cold-restore seed check have separate scopes. No equivalent replacement or fresh gate execution is claimed. Earlier notes and dated receipts retain their original scope. Audit4351 removes the physical-exit timeout/retry and kill-failure/retry local-PTY shutdown cases. The retained shutdown case proves pending ownership until the injected node-pty exit callback only. These two narrow error-path alarms are intentionally lost; retained commands still select the reduced suite. No equivalent replacement or fresh runtime execution is claimed. Earlier notes and dated receipts retain their original scopes. Audit3832 deliberately retires76 authored/79 finite cases:75 runtime compatibility cases/78 finite cases across14 fragments, plus one localization extractor default-flag case. Three whole runtime fragments are deleted;27 authored/30 finite cases remain across the reviewed sources. This gate retains only its own selected scope; no equivalent replacement or fresh runtime/native/remote evidence is claimed. Runtime component A: Audit3828 composes3822 with independent3824: deliberately retires49 authored/52 finite cases from seven compatibility fragments, leaving15 authored/18 finite cases and deleting two entire fragments. Accepted losses: positive folder-worker recovery/materialization and reveal deadline; persisted-key normalization and legacy split/group/focus projection; fixed stale CAS refusal; occupied/alias/restored/preallocated terminal-handle variants; fixed OpenCode/Cursor/Claude/Codex/Antigravity classification, readiness, title and management examples; direct private-map browser authority projections; browser-focus and OMP title projection; already-aborted claim cleanup. Additional3824 loss: src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-02.spec.ts :: does not poll a wrapper foreground for a speculative CLI prompt send :: Speculative retryForegroundWrappers:false check must return false on a wrapper after one foreground read, without polling the supplied later codex response. These real bounded alarms are deliberately retired for low marginal value. Retained callbacks are unchanged and provide only their own bounded scope, not equivalent replacement. Historical receipts do not validate reduced callbacks. No fresh runtime/native/SSH/WSL/phone/browser evidence or full transitive closure is claimed. Runtime component B: Audit3834 deliberately retires26 authored/26 finite cases from seven fresh compatibility fragments, leaving10/10 and deleting the one-case saved-binding reattachment fragment. Original position58 is excluded: its existing substantive3578 KEEP7 review remains historical, with no fresh credit. Accepted losses: fixed hook/provider-session identities and stale metadata refusal; decorative/pre-title foreground ordering variants; saved-binding surface reattachment; saved-row exit ghost removal and silent activation selection; unsupported headless wake; positive pending materialization/group projections; per-caller navigation selection; positive SSH hydration/read partition; laptop mobile publication/buffer and background/pending/status projections; abnormal/unregistered SSH grace, normal-exit refusal, persisted SSH hydration, positive serve reattachment, pending-agent launch arguments and direct seeded running-launch admission guard. These are real bounded alarms deliberately retired for low marginal value. Retained cases preserve their own distinct deferred foreground coalescing, usable handle continuity, stale inventory refresh, concurrent browser snapshot preservation, renderer graph fencing, caller dedup isolation, SSH partition writes, runtime split lifetime, independent relay-ready publication, lease admission/state/expiry. The direct running-launch no-spawn guard alarm is deliberately retired; no remaining owning-launch refusal coverage is claimed. Historical runs do not validate reduced callbacks. No equivalent replacement, runtime/native/SSH/WSL/phone/browser result or full transitive closure is claimed. Additional extractor loss: config/scripts/localization/source-extraction/audit-localization-native-dialogs.test.mjs :: does not change the existing renderer scan by default :: Default options must omit the five native-only fields in this supplied snippet. No equivalent replacement is claimed. Historical prior account (preserved verbatim): Audit3814 deliberately retires60 authored/60 finite cases:53runtime compatibility cases,4native XCTest methods and3Python clipboard methods, including the entire StableElementIndexes suite. Clipboard cuts retire the one-over-cap sample, incoming-offer destruction trace and sequential20-copy replay; actual wire, FD/pipe, startup and Xvfb/GTK boundaries remain without equivalent replacement claims. Accepted losses include narrow terminal-send payload/provider projections, legacy and direct no-op/error permutations, timing/work-count examples, private state/title/activity projections and fixture-driven readiness examples, individually enumerated below. These include real bounded production alarms consciously retired for marginal value; retained failed writes, duplicate submission, stale capture, transcript/ring and allocation fences are not equivalent replacements. No fresh native/remote/browser execution or complete transitive closure is claimed. Earlier dated receipts and raw selectors remain historical accounts of prior callback sets. Audit3806 deliberately retires40 authored/40 finite runtime compatibility cases, including the terminal-side-effect-facts-part03 headless-snapshots-part02 and agent-status-and-waits-part03 fragments, plus20 scalar Swift precondition sites. Lost runtime alarms include status/title/attention projection examples, simple renderer/headless frame restoration and status waiting outcomes detailed in the accepted-loss ledger. Swift cuts retire duplicate generation-map/schema/navigation/bridge and notification-wrapper assertions; no standalone native program is deleted. These include real bounded production alarms consciously retired for marginal value. Retained races, pending writes/reflow, namespace and waiter ownership are not equivalent replacements. No fresh native/remote/browser execution or full transitive closure is claimed. Earlier dated receipts and raw selectors remain historical accounts of prior callback sets. Audit3798 deliberately retires21 authored/24 finite compatibility cases, including the entire SSH-worktree-lifecycle and repository-project-operations fragments. Accepted losses include navigation-only settings acknowledgement, browser session cleanup and host preservation projections, window positive/policy-state examples, terminal recovery/reload and no-incarnation remint examples, terminal listing compatibility/malformed IDs, directory browse/sort/Windows path smoke, SSH create refusal/manual lineage, recursive parent-folder creation and fork/origin/avatar/icon projections. Real bounded production alarms are consciously retired for marginal value; retained authority races, cleanup/clone ownership, pending waiters, nested-folder and scan invalidation cases are not equivalent replacements. No fresh native/remote/browser execution or full transitive closure is claimed. Earlier dated receipts and raw selectors remain historical accounts of prior callback sets. Audit3788 retires10 authored/11 expanded cases across six changed drivers, including the entire screencast pending-frame-retry and usage-source-cache-streaming suites. Deliberate losses are false-refused last-frame retry/once-only delivery, ordinary stable-pane reattachment, cleared-chat Dispatch completion, terminal-declared chat-caller refusal, at-rest worker liveness projection, nested depth/cap policy, small unsigned6/sealed7 plain-format and verified-bit examples, generic malformed-ISIZE footer refusal examples, and synthetic10k/100k chunk-size/work-count budgets in gzip and general cache I/O. These include real state/disk/RPC outcomes consciously retired for marginal value; retained E2EE-backlog, receipt/custody/uncertain-ack, integrity/migration and staging-cleanup cases are not equivalent replacements. The footer test did not prove early rejection or bounded allocation; staging cleanup did not seed unrelated files. No replacement or fresh native/remote/performance execution is claimed. Earlier raw selectors and dated receipts remain historical. Audit3779 retires17 authored/17 expanded registrations across six changed drivers, including the entire shared-Codex-home and prompt-telemetry suites. Accepted losses are shared-home wrapper noninterference/opt-out preservation, mocked metric count/provenance filters, SSH activity labeling/clearing and handover idle timing, VM ownership/capability/status projections and asleep-worktree refusal, a link-only external conversation replay sample, and two narrow input-credit noninterference/expiry examples. Retain the direct exact-tab/single-use input-credit case. These bounded real disk/state/routing alarms are intentionally retired for marginal value without equivalent replacement or fresh execution claims; earlier receipts remain historical. Audit3772 retires18 authored/27 expanded cases, including whole Codex service opt-out, RPC capability-parser, creator-provenance, short-ciphertext and readiness-null suites. Accepted losses include service ledger/symlink/mode cleanup, user TOML substring preservation, old-hash cleanup, description pass-through, malformed-file/pending-hash examples, coordinator write/probe counts, capability array bounds, positive creator projections, early short-payload refusal and readiness helper null shape. Two redundant Codex exit-cause rows are also retired; Pi shares their direct-idle path only in this empty-output immediate-exit fixture, and future agent-config drift coverage is lost. Real bounded filesystem/parser/runtime alarms are deliberately retired for marginal value; no equivalent replacements or fresh execution are claimed. Earlier receipts retain their historical scope. Audits3754/3755 intentionally remove9 authored/9 finite registrations: the entire one-case usage-source-cache-streaming.test.ts driver and8 cases from the surviving computer-action-validation.test.ts driver. This gate retains an unfiltered root Vitest command; UNIT_INCLUDE admits both source paths. Accepted losses are the real encoder output chunk-size/work-count alarm on repetitive10k/100k ownership payloads through a mocked durable sink, plus CLI diagnostic precedence, fractional window-id rejection, action-call-site window-target exclusivity, plain-text click-count recovery copy, incomplete click/drag targeting, mouse/modifier/direction allowlist samples and inline/stdin text exclusivity. These CLI cases exercise real argument/handler validation before mocked runtime calls; they are deliberately retired for marginal value, not declared tautologies. Retained cache I/O and CLI cases are not equivalent replacements for these alarms. Existing historical raw receipts remain unchanged and do not validate the deleted or reduced drivers. No fresh execution claim is made. Audits3758/3763 intentionally remove9 authored/11 finite registrations from6 changed drivers, including the entire pane-title-notification, window-linear-notices and worktree-card-lifecycle-effects suites. This gate retains an unfiltered root Vitest command admitting these paths. Accepted losses are same-account linked-row success-notice fanout, sidebar-switch channel forwarding, Linear-only notification forwarding/non-terminal-consumer selection/closed-window detach, destroyed-window refusal and first-send-failure suspension through the pane-title adapter, the100-card synthetic focus/poll absence sample, stored-source local folder badge refresh, unobserved-row badge refusal, and immediate reposChanged lineage invalidation. These exercise real owners with controlled ports; they are retired for marginal value, without equivalent replacement claims. The no-badge-work fixture does not seed its title-promised collection-only cache. Preserved historical receipts do not validate deleted or reduced drivers; no fresh execution is claimed. Audit3759 retires the entire one-case Tailwind compiler/scanner smoke. Accept loss of the direct CSS production/test/spec source-exclusion and rescan alarm; no replacement or current execution is claimed. Audit3752 independently approves audit3749: retire five authored/five finite watcher-process registrations, retaining18 raw-exact registrations. Accept loss of healthy shared-pool joint recovery, last-pending-failure idle retirement/respawn, late VITEST fallback release, missing-entry fail-closed selection and independent-supervisor fuse locality alarms. These are real bounded host-policy alarms intentionally retired for low marginal value; no equivalent replacement is asserted. Remaining driver selections exercise controlled FakeChild supervisor lifecycle, cancellation, physical-exit fencing, recovery and fuse behavior. This source review supplies no fresh native/process/platform/remote/SSH execution; historical receipts retain original source and selector scopes. Previous oracle (preserved verbatim): Audits3738/3742/3743/3744 intentionally remove15 authored/21 finite registrations from six surviving drivers, with no equivalent replacement or fresh execution claim. This gate retains an unfiltered root Vitest command. Current UNIT_INCLUDE admits the partial push-service, metadata-dialog and two config/scripts browser drivers:10 authored/16 finite removals. Accepted losses: actual retry30s/60s progression and register bucket/refill wiring, explicit seven-day lease arithmetic (its notification lacked seq/epoch and never reached send), equal-name edit latch/save payload, real image/font/meta-refresh/form/popup browser refusal controls, and broad rich-markdown bridge/command/edit-select smoke. Actual production state, callback routing and browser enforcement run in these cases; these alarms are deliberately retired on marginal value. All drivers and selectors survive. Existing unrelated receipts remain historical evidence for their unchanged selectors, not proof of the reduced cases. Audit3732 removes 2 authored/3 finite registrations from two partial suites: nominal custom/Kimi local naming success and deferred context usage row presentation. Real losses: custom/Kimi successful extraction through conversation-name sanitization and agentLabel composition; separate ordered counted/deferred lists and exact percentage/token formatting. No replacement or equivalent coverage claimed. Retain 11 authored/13 finite raw-exact registrations for bounded naming instruction/refusal/cancellation, menu dismissal focus ownership and hover/composer Escape/timer cleanup. Source-only bounded value review, no runtime/CI/native/remote/mobile/folder workspace or global completion credit. Previous oracle (preserved verbatim): Audit3733 removes2authored/2finite terminal input checks: fixed custom-cap error/secret fixture and three-emoji cap5refusal whose6UTF16units already trip length fast guard (no UTF8-dependent boundary). Accept exact non-disclosure/oversized-refusal alarm losses; no replacement/equivalence claim. Retain13/13scalar/pending input, OSC state and cron DST/cadence outcomes after bounded material reads. Source-only zero runtime/novelty credit; original historical reasons preserved. Previous oracle (preserved verbatim): Audit3729 removes1authored/3finite by deleting whole CLI runtime pairing advisory-close suite. Accept losing post-real-close injected EIO preservation of native/script/unreadable pairing, env identity/preservation and exact close/release assertions; no actual failed-close leak or replacement coverage claimed. Two retained URL grammar/identity suites11authored16finite raw unchanged. Bounded source/owner/caller value review, zero novelty/runtime credit; other seven3724deferred closures remain. Historical receipts preserve original limits. Previous oracle (preserved verbatim): Audit3724 removes3authored/3finite checks by deleting two whole suites: TUI clear burst-size singleton and terminal-file-URL target two-case wrapper suite. Deliberate losses: derived widest burst<64byte alarm, UNC authority+line-column anchor composition, and malformed-percent null refusal. Real production algorithms execute in those tests; no mocked-output tautology, equivalent replacement, actual Claude/file-navigation delivery or universal safety-irrelevance claim. TUI58byte bound and URI examples have low marginal value as standalone suites. Actual1262/1264/1742KEEP superseded explicitly. Remaining14drivers83authored136finite raw unchanged. Bounded source-only review; ten closures deferred, four bounded keep judgments repeated with zero new semantic-frontier credit. No runtime/CI/native/remote/mobile/folder/global completion claim; historical receipts retain original scope. Previous oracle (preserved verbatim): Audit3723 removes 4 authored/4 finite registrations in two whole suites: keybinding cache freeze/token spellings and host-dependent Orca command name examples. Real losses include returned-object freeze, repeated Mod+P key, Space/PageDown/NumpadSubtract mapping, unknown/empty/prototype-token rejection, and headless Linux versus Windows-server/WSL command choice. No equivalent or replacement coverage claimed. Retain 12 authored/21 finite raw-exact registrations exercising generated scaffold validation, artifact failures, shipped editor/hook/worker/panel tests, actual generated typing compilation, independent CLI root routing and intent-name precedence. Source-only bounded audit; no runtime, CI, native, remote, mobile, folder workspace or global completion credit. Previous oracle (preserved verbatim): Audit3720 removes17authored/23finite checks: whole main catalog-date adapter2 and shared date-helper7, seven renderer nominal ranking/cap/no-date/composition cases, and one browser registration expanding to seven forced-container/DOM-child boundary cases. Deliberate real losses: community oldest-date UTC forwarding, official/undated omission, date sorting/window/invalid/future/skew/clamp and default/override cap; nominal ranking/cap and combined Featured/Newly-added outputs; real CSS459/460,719/720,1055/1056breakpoint, five-card partial-row and720px two-card first-row alarms. Browser cases really measure rendered geometry but force width/remove DOM children; no fake-pixel or tautology rationale. No replacement/equivalent coverage claimed. Retain14authored/19finite raw-exact registrations across4drivers: adversarial featured category/order/tie and installability, date order/window selection, actual PluginManager failure/escaping/duplicate-card suppression, real browser viewport/odd-count geometry/phone catalog visibility, syntax ingress/depth/include/printability and68dlong-bracket auto-close fill-in. No tests/browser/native/UI/provider/remote/mobile/folder/CI/global execution or completion credit. Previous oracle (preserved verbatim): Audit3717 removes6 authored/6finite checks in two whole thin-adapter/presentation suites. Deliberate real losses: ordinary recipe repository-URL withholding and provisioned-root credential scrubbing/forwarding; repository label lockstep suffix expansion, host-scoped map identity/collision grouping, Windows crosshost paths and WSL distro suffixes. Actual provision options, label/sort consumers and host/scrubber delegates inspected; no replacement/equivalence claim. Retain40 authored/84finite registrations raw exact in14 drivers with bounded owner/context review. Prior KEEP superseded for removed suites; no runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous oracle (preserved verbatim): Audit3714 removes8 authored/39finite checks: whole CLI selector-recovery, task display-text and ANSI grammar suites plus two name joiner/blank tables. Deliberate real losses: selector flag/value/identity and mutation recovery merge/serialization; exact task suffix, transcript fallback, input immutability, cache reuse and edited blocks; independent failed-escape/resumption and OSC/DCS/BEL/ST/C1/nested/unfinished stripping outputs; meaningful-language joiner preservation and invisible/blank-name rejection. These are real bounded alarms, removed as narrow supplied-error examples, helper/token inventories and repeated internal-work fixtures. Prior2936,1195/1196,1214/1215 and1082 KEEP superseded; no replacement or equivalent coverage claimed. Keep9authored/9finite raw-exact registrations in5surviving drivers: screenshot export/failure filesystem behavior, CLI local tree query, event-local reply provenance, vault role-sensitive content and four hostile/UTF16/dangling/tag-name regressions. No native/UI/provider/remote/mobile/folder/runtime/CI/global completion credit. Previous oracle (preserved verbatim): Audit3711 retires2authored/4finite cases by deleting whole clipboard-image-temp-file signature-to-name inventory (HEIC/TIFF/unrecognised bytes) and workspace-last-active switch-on supplied visit/reason singleton, plus its now-orphan test fixture. This intentionally loses real generated-filename suffix/extensionless alarms and real newer-visit archived7day versus inactive30day filtering/older-visit identity alarms. Filesystem writing and production reason pruning really execute; no equivalent replacement or universal absence of safety relevance is claimed. The clipboard test does not inspect written bytes, native delivery or decode; the visit test supplies candidate/timestamps and does not exercise persisted visit routing or actual removal.20authored/20finite cases remain unchanged across4bounded Git/sidecar/removal drivers. No new runner/test/module evaluation or runtime result; historical notes and receipts remain historical. Previous oracle (preserved verbatim): Audit3707 removes10 authored/11finite checks: three whole renderer adapter/assembled-stage suites and two native projection cases. Deliberate losses: plugin URL/ref/default-version/local-path and unsafe credential refusal forwarding; real Task hook/store A→B→A late-save/list/count fences, owner disappearance, legacy-host convergence, query/history/eviction and same-ID host history; native child append ordered-ID/replacement and compound fallback/order/optimistic-admission/child-turn/duplicate/shrink/revision alarms. These are real bounded alarms; removal follows thin adapter, manually assembled Task pipeline and repetitive fixture value judgment, with no replacement or equivalent coverage claim. Prior1179/1182,1220/1221 and1885 KEEP superseded as applicable. Keep36 authored/38finite registrations raw exact across13 surviving drivers. No runtime/CI/provider/browser/native/mobile/remote/folder/global completion credit. Previous oracle (preserved verbatim): Audit3706 removes7authored/7potential cases from3renderer sources: whole usage-label3case and130000-distinct-day usage-overview singleton suites, plus3SSH grouping/ordinary-range examples. Retain11authored/11potential cases across6drivers in this bounded selection; no equivalent replacement or fresh runtime result. Existing bare root-unit commands admit this selection statically; prior command/receipt strings remain historical. Audit3706 intentionally retires first/second-order usage-group label collision alarms; equal50%-weekly bucket versus derived-weekly selection identity and Gemini wk label alarm;130000distinct-day aggregation no-spread-crash/max/intensity alarm; legacy absent-source SSH grouping and ordinary reverse-select/selected-target deselect range alarms. Actual label ambiguity and pathological-input crash are accepted losses. Distinct-day fixture spans~356years; no hard producer/date bound is claimed. Retained filtered-anchor/grouped-order guards do not replace removed deselection/reverse-range/legacy-group coverage. No native SSH, mounted renderer, live provider, remote/folder/mobile end-to-end or current runtime pass was obtained. Previous oracle (preserved verbatim): Audit3699 removes4 authored/4finite checks, including one whole xterm copy-policy suite and one root/group CLI help case. Deliberate losses: direct copy-chord admission for platform, selection, Kitty mode, defaultPrevented, logical/physical key and key phase; command-group disclosure and group help routing including claude-teams early return without RuntimeClient construction. These are real bounded policy/wiring alarms; no replacement or equivalent coverage claimed. Retain14 authored/19finite raw-exact registrations across6 drivers: unsafe CLI refusal, Claude model event carry and disk reconstruction/OSC-first case, attachment ownership/upload lifetime and mixed BMP file-reference/PNG-chip delivery, actual SQLite authority/admission/mutation, and Electron geometry/hit-testing. No runtime, CI, native-key delivery, external provider, mobile, remote, folder or global completion credit. Previous oracle (preserved verbatim): Audit3692 removes5 authored/5finite marginal Codex checks: unrelated login URL without notice; ordinary per-account launch resource/config materialization; no-retained-pane skip; preservation of a previously owed full scan through actual preparation and pending-marker update (no actual history scan/settlement); ordinary later-config refresh. Accept these exact branch/wiring alarms as deliberate losses without replacement. Retain32 authored/34finite raw callbacks/registrations/table bytes exact across14suites, including credential/admission refusal, grace/reset readiness, filesystem ownership, commit-dependent queue state, streaming/host trust, path canonicalization and private-state preservation. All14whole suites challenged without keeper quota; no whole deletion warranted on current concrete signals. No runtime/CI/native WSL/remote/mobile/folder/global completion credit Previous oracle (preserved verbatim): Audit3691 removes two complete runtime-home routing singleton suites (2 authored/2 finite): catalog wrapper mirror login-copy and passive transcript-lookup filesystem noncreation. Exact accepted losses are recorded in knownGaps; no replacement or equivalent coverage claimed. Audit3691: no dedicated alarm remains in the deleted sources for post-launch system login import through prepareHostCodexHomeForReadOnlyAppServer, or for repeated missing-transcript lookups leaving removed Codex account/runtime directories absent and userData entries unchanged. Ownership-marker read avoidance was never independently measured. No real catalog probe, provider, native Windows or crash was validated by those fixtures. Previous oracle (preserved verbatim): Audit3686 current Claude profile/account review removes5 authored/5 finite cases: whole structured-auth diagnostic-label suite3 and Windows-only command suite1 whose advertised cache alarm is ineffective because cache lifetime is per invocation; remove duplicate setup namespace-link refusal1 at wrapper layer. All5 exact historical KEEP are consciously superseded. Retain49 authored/50 finite unchanged, including filesystem privacy/recovery, route identity and concurrency, built worker/helper, legacy WSL alias compatibility and sign-in handoff. These are deliberate coverage losses without replacement. No runtime/CI/native WSL/macOS Keychain, remote/mobile/folder or global completion credit. Explicit accepted real losses: unknown-account host fallback and mixed-version/WSL-only structured auth diagnostic labels; Windows-only sentinel ENOENT-to-friendly-error translation plus fresh-call successful dispatch smoke; setup catch-to-refused wrapper and no-write outcome for a namespace symlink. The command case does not discriminate removal of its per-invocation noncache guard; it still supplies the error-translation alarm, which is intentionally retired. No replacement/equivalence promise. Previous oracle (preserved verbatim): Audit3680 removes eleven authored/eleven finite unit cases across four files, including entire launch setup row projection, structured legacy-model metadata, and legacy classifier suites. Accept loss of exact row partition/start selection, Codex supersession/default/unknown and Claude alias/suffix folding examples, other-agent exemption, getter/cache read budgets, same-array per-agent cache isolation, replaced-catalog metadata, and tracked-only model exclusion from structured and PTY legacy inventories. These are real narrow policy/metadata alarms intentionally retired without equivalent replacements. Retain real menu collapse/reopen in dropdown/select, AI picker cancel/accept and stale-effort filing, IME carry/gesture/frame transitions, and typed-flip versus held-dispatch fencing. No production or shared fixtures change. No dead timing entry exists for the three deleted drivers; retained timing keys stay unchanged. Static source-value review only; no project import, test runner, native/app execution or runtime validation established. Earlier receipts retain historical scope. Previous oracle (preserved verbatim): Audit3678 current-source reassessment removes20 authored/24 finite root-unit cases across7 retained test sources; all10 selected current drivers80 authored/93 finite were read, leaving60 authored/69 finite unchanged. Removed alarms are the in-memory WAL PRAGMA constant, ordinary latest-dispatch/gate-creation inventories, self-reported-failure and explicit-terminal retry policy rows, SSH/unsupported-provider output fallback labels, legacy typing no-op/retain-before-report/manual scheduling rows, exited output status and copied resume-session metadata, incomplete inventory deferral/reset cascade inventory, and nominal release/active-state/corrupt external history/stopped-abandoned outcome/generic close-exception rows. These are intentional coverage losses, not replaced alarms. Retained source includes actual SQLite rollback/custody, mutable transcript/deletion and saved-copy compatibility, cursor mutation, clear lineage, auto-release timing/restart/admission and concurrent recovery seams. Historical KEEP decisions are consciously superseded where stated in decisions.json. Source-only evidence; no runtime, CI, native, provider, remote, mobile/folder or global completion credit. Previous oracle (preserved verbatim): Audit3672 renewed by3676 removes four authored/four finite cases from federation-output.test.ts: nominal show/read routing and terminal-fallback projection; initial archive-table SELECT failure returning retained/no-close; simulated old-peer read/fleet/refusal and method inventory; and absent archive-release capability refusing release. These actual compatibility/guard alarms are intentionally lost without equivalent replacement; the dropped-table case never reaches capture or commit. Current selected frontier9 becomes5: retain actual temporary transcript parsing/path omission, current no-transcript release/unavailable-output/restart/replay regression, and three home deadline/stop nonmutation cases. Prior held-capture case was already removed upstream and receives no new removal credit; prior redacted snapshot archive behavior was rewritten upstream and is not claimed retained here. The surviving driver timing entry stays. Static review/private composition only; no actual peer/network/native/platform or fresh runtime validation. Previous oracle (preserved verbatim): Audit3671 removes14 authored/32 finite root-unit cases, including the whole WSL move-handler refusal suite, WSL preload object-presence suite and internal gate spelling truth table. Also retire the weak withheld-command non-array shape assertion, static serve-only Add/capability/mock-remove example, grammar scope equality and basic configuration/payload schema roundtrips. Genuine wrong-window/malformed-request/gate-before-work, exact gate spellings/platform/argv precedence, static serve-only routing, declaration mismatch and empty grammar/pair admission alarms are consciously lost without replacement; prior KEEP decisions are reconsidered. Seven unchanged authored/finite root-unit cases retain real image/provider/line budgets, live policy transition/capability broadcast, grammar resource/reference traversal and strict-versus-tolerant literal salvage. Source-value evidence only; no runner/compiler/build/app/native/provider/remote/mobile/folder validation or historical fault claim. Previous oracle (preserved verbatim): Audit3663 renews approved3644/3645/3648/amended3651 at privatec1ef: remove10authored/26finite across7changedtestpaths,4whole drivers; retain23authored/24finite including actualcmdkStrictMode defaultcursor race. Retire version1.5.0/1.5.1→shrinksImages capability threshold and launch-to-prompt wiring alarm. Surviving prompt tests explicitly supply capability and do not replace wiring coverage. Retire resolved-before-personOnly precedence; hook-gone/live-dialog guidance; stale-incarnation versus live-looking dialog classification; delayed/clipped warning extraction and wait-for-paint wiring; 3row setting/personOnly approve/deny/disclaimer suggestion composition;13row setting/reason/person/coordinator admission, close/mail attribution, terminal delivery/refusal/preanswered/personOnly/dropped-allow handler propagation alarms. Real state/access/SQLite effects occur; these genuine losses are accepted, not mocked-away. Retire full command extraction from serialized JSON in worker receipt and nontruncation alarm; no rendering, actual worker approval or native shell proof. Retire2row extra-source first/last order and controlled default cursor projection, plus generic open-palette livefolder add/remove render alarm. Explicitly supersede rawexact297KEEP refresh. Keep actualcmdk/StrictMode default cursor race driver; no default-suite loss claim. No equivalent replacement asserted. Retained queue/commit/retryownership/filebudget, terminalfreshness/provenance/competing-answer, RPC DB-effect, qualifiedfolder/runtimehandoff and lingering-reopen cases have distinct scope. Audit3675 preserves the upstream revised unreported-approval close regression, its escalation helper and adapted survivors. Source-only static renewal; no runner/compiler/app/native/remote/CI claim. Upstream41390host-owned approvalwatch/report lifetime reviewed separately; no new lifetime test removed. Preserve all earlier metadata/evidence. Audit3634: Remove five authored/five finite cases, including the complete structured chat terminal-refusal, terminal-plus-agent worker-start validation, and canonical Git common-directory parser suites. Also remove the gh free-text -R argument projection case. Consciously supersede prior KEEP decisions and accept chat-versus-stale redirect classification, real RPC refusal-before-SQLite-Dispatch, old-Git echoed-option relative-path parsing, WSL execution-space resolution, and free-text preservation/bare-repo qualification alarms. These are genuine narrow alarms, intentionally retired without equivalent replacements. Retain real Git stdin/EOF delivery, bound-account host admission, naming environment/account precedence, upload iterator cancellation and remote path confinement. Shared fixtures and production code remain. Remove only the dead canonical-repo-key timing entry. Static source-value evidence only; all prior evidence retains historical scope. Audit3636: Remove the entire maintenance opportunity internal-count driver (one authored/two finite cases), the mocked remote worker start-card argument case (one/one), and the follow-up heading mapping table (one/two). Root-unit discovery loses three authored/five finite cases. Independently remove four Python native screenshot methods/five statically enumerated subTest scenarios: grim argv/stub payload, failure-code mapping, X11 mocked capture payload, and capability flags. The Python lane is verify:computer-native and is not root Vitest. Accept loss of exact native command/projection and exception/capability alarms, ready-only card publication arguments/agent forwarding, and serialized follow-up heading mapping; no equivalent replacement is claimed. Retain actual ownership/mail/queue/reopen transitions, remote lost-response fencing and first-result settlement, filesystem/maintenance admission and successor progress, wrong-region screenshot refusal and Sway geometry. The whole-deleted new driver has no timing key; this component requires no timing cleanup. No production changes. Static source-value review only; no project import, runner, app, native desktop or runtime validation established. All prior evidence retains historical scope. Audit3629 removes two singleton parser suites: WSL Claude plugin metadata out-of-range index rejection and Git checkout unlink-warning path extraction. Their real range-refusal and quoted-path extraction alarms are intentionally lost without replacement; no WSL execution, checkout recovery or equivalent remaining coverage is claimed. Audit3630 removes the sole orphan automation availability test (1 authored/1 finite). Its real policy kind, orphan precondition, delete/toggle enablement and run/edit refusal alarms are intentionally lost. The test did not dispatch an action, enforce a server generation fence or observe a remote mutation. No equivalent replacement, actual renderer/transport execution or new platform/provider evidence is claimed. Previous account (preserved verbatim): Audit3628: remove the entire one-authored/one-finite RepositoryRemoveProjectSection happy-dom suite. Accept losing the local zero-to-one-terminal stale-count revalidation alarm: first confirmation defers the removal callback and second confirmation invokes it after the count snapshot updates. The test never asserts updated warning text/count, actual terminal creation or removal/PTY teardown, host/scope routing, cancellation or folder/mobile behavior. No equivalent replacement or end-to-end warning-before-teardown proof asserted. Static evidence only; historical receipts retain original scope. Audit3624: Remove one authored/five finite positive Gemini identity table from the Claude/Gemini title collision driver. The real normalization, legacy label and explicit title evidence owners execute, so ordinary Gemini marker/name/wrapper recognition and normalized-label composition alarms are consciously retired without equivalent replacement; these five supplied title-to-literal identity examples have low marginal value. Preserve the six-row Claude task-text collision oracle, whose unrelated CLI mentions must not rebrand or destructively normalize titles. The other audited drivers preserve real permission-mode session transitions, prompt secret/fence/bounds defenses, JSON-to-Ask option/preview preservation, and optional GitLab failure summary/trace composition. Root-unit discovery loses one authored/five finite cases; no whole driver or timing key is removed. No actual terminal stream, UI routing, application/native or runtime execution established; all prior evidence retains historical scope. Audit3618: Remove three authored/three finite browser reload cases, including the complete renderer reload-actions suite. Agent bridge fake did-fail-load plus permanently supplied manager error projects description/code into a rejection. Renderer seeded empty metadata projects a saved URL into plain webview src; its earlier not-ready case projects a live-id/throwing fake reload into absence of a loading patch. Real queue/wait/error/cache/classifier/hook code executes, but these narrow supplied-state and exception-to-callback wirings have low marginal value; no rerender, lifecycle, actual cache generation/retirement or guest commit is asserted. Explicitly supersede audit1822 not-ready KEEP and preliminary3617 cross-module retain opinion, accepting offline-reload failure reporting, empty guest to saved URL routing, native-reload bypass and premature-loading/stranded-state alarms without replacement. Retain distinct main cancellation queue progression and absent queued side-effect dispatch. Root-unit discovery loses three/three. No Electron guest, network failure, restored navigation/commit, app/native focus or runtime execution established; earlier evidence retains its historical scope. Audit3614: Remove thirty-one authored/thirty-nine finite potential cases across CLI format and argument drivers, including three whole suites: search-result/status sanitation sites, Linear issue/list/warning sanitation sites, and quote-stripped JSON diagnostic secret non-echo. Those real formatter/guard transformations execute on supplied strings; intentionally retire their field-specific CSI/OSC/C1/newline/bell and diagnostic secrecy alarms as low-value caller/output inventories, without replacement. Also retire twenty-one search registrations/twenty-four finite cases covering minimal positional request/default omission, exhaustive all-flags request projection, nominal named query/index routes, repeated syntax/agent examples, enum/agent/path-count/timestamp/numeric/cursor admission examples, unknown/browser flag examples and postcommand last-wins projections; retire one parser sentinel-only case. Keep actual ambiguity, conflicting index request, precommand/crosscommand scoping, variadic reference parsing and missing-repeatable-value controls, without claiming equivalent coverage. Root-unit discovery loses all twenty-nine/thirty-seven. No CLI/RPC/terminal/PowerShell/host/schema/runtime execution is established by this source-only audit; earlier evidence retains its historical scope. Audit3613: remove six authored/six finite callbacks, including whole reviewer-display oversize-input and explorer-root record-filter suites, plus plugin family-emoji/invisible-only-name and pool legacy-name/urgent-countdown samples. Accept losing oversized-input empty-result/no-split, malformed-record/prototype-sensitive-key/nonstring filtering, exact ZWJ family preservation, invisible-only name refusal, no-group old-host full-name preservation, and80/79/null-reset countdown composition alarms. No equivalent replacement asserted. Retained strict/runtime sanitization, SVG parser, mobile focus recovery and collision/tie cases have different scopes. Static evidence only; historical receipts retain original scope. Audit3609: Remove the complete pnpm CLI invocation literal-selection suite (eleven authored/nineteen finite potential cases), with no replacement claimed. Root-unit discovery loses JavaScript-versus-native command selection, npm/npx executable rejection, Windows cmd/bat casing and shell selection, non-Windows cmd behavior, native PNPM_HOME flat/bin preference, explicit-path priority, relative-home rejection, missing-native fallback and non-Windows home-probe refusal alarms. The suite called the real resolver with independently expected objects, but exercised no pnpm/node/cmd process, installed native executable or real filesystem probe. Earlier KEEP decisions are consciously superseded by accepting these narrow branch and probe-inventory alarms as low value. Real symlink entry, Git signing isolation, Bun filesystem/Node child normalization and compiler scheduling/continuation tests remain distinct tests, not equivalent coverage. No runner, compiler, app, platform or remote execution was performed in this source-only audit. Earlier evidence retains its historical scope. Audit3608: remove five authored/five finite callbacks, including whole owner-slug and remote favicon URL suites and two repository-label projections. Lose five owner acceptance samples, eleven negative owner samples plus nonstring refusal, six host-local icon refusal samples, legacy-SSH same-path label-map cardinality, and explicit runtime ownership over stale legacy metadata at label level. These are accepted narrow grammar/presentation alarms with no equivalent replacement claimed. Retained binary parser, React recovery and label grouping/platform cases do not replace these losses. Static evidence only; historical receipts retain their original scope. Audit3606 adopts the enhanced3604/3605 icon cuts: nine authored/nine finite cases removed, including the whole tray-attention-icon suite. Retires the no-encoder oversized-upload null sample, missing-ID/request-order sample, encoder-null PNG-prefix fallback, SVG/404 rejection samples, transparent amber-dot placement and half-alpha white-tint sample, exact small fetched-byte passthrough, host-qualified image-key inventory and constant-encoder large-upload projection. These specific admission, formatting and bitmap alarms are intentionally lost without equivalent replacements. Retained queue/cache, bounded fetch and Dock lifecycle checks do not establish actual raster decoding, native image conversion or rendered appearance. Historical receipts below are preserved evidence for earlier test sets, not fresh validation of this reduced selection. Audit3601 scope: remove the whole custom-sound happy-path IPC suite and one custom-label/multiline notification formatting example (2 authored/2 finite). Intentionally lose configured .ogg selection, exact byte/MIME success wiring, successful dispatch for the formatting fixture, custom-label whitespace/title normalization and assistant-body whitespace/180-character-cap alarms. Retain prompt-exclusion, persisted qualified dismissal/restart, theme ownership/restore and Ghostty precedence/collision cases; none replaces the retired sound/formatting alarms. No actual playback, native delivery, phone/network, cross-platform or new runtime evidence is claimed; historical execution keeps its original scope. Audit3598: Remove seven authored/nine finite literal-table potential test registrations across workflow routing, Claude cold-start and real-zsh preexec drivers. Root-unit discovery loses six authored/six finite: three test-local workflow parser fixtures, the five-positive/three-negative explicit command-paint route inventory, a boot-banner-before-composer sample and an already-painted bare-title positive sample. The separately selected shell_contracts live-shell driver loses one authored/three finite raw-capture paint-only cases across three hook configurations; its real-wrapper launch-order, four rechunkings (twelve finite) and runtime-wait replay remain, without claiming equivalent replacement. Intentionally lose those parser, exact routing-list, banner, post-paint subscription and native-read-boundary paint alarms. Retained workflow/UNIT_EXCLUDE/classifier cross-source routing checks and readiness-race-to-writer timing are distinct bounded alarms. No runner, real shell, PTY, app, native focus, remote delivery, cross-platform execution or full-feature correctness is established by this source-only audit. Earlier evidence retains its historical scope. Audit3597 scope: remove two renderer-hang-capture examples (2 authored/2 finite): an invalid repeated-token oversized reducer fixture and a shorter unanswered-request fixture. Intentionally lose the direct truncated flag/sanitized frame fixture and request-pending status/zero-sample alarms. Retain window-death/stale-result exclusion, generation reconciliation, and baseline-publication cancellation lifecycles; they are not equivalent bound, redaction or pending-status replacements. Historical execution retains its original source scope; no new runtime evidence is claimed. Audit3591: Retire the whole one-case background journal-producer attribution suite and the fabricated malformed-details-block case (two authored/two finite cases). Intentionally lose the fixed own-task versus output/foreign-task attribution examples across flat/message row shapes, missing-root classification, and direct unbalanced/detailsish fabricated-block rejection alarms. Retained parser sibling/depth and editor navigation tests do not replace these alarms. No equivalent replacement or fresh runtime, transport, persistence, native focus or rendered UI validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3592: Retire the whole three-case shared agent smart-key resolver suite, explicitly superseding its Audit3238/3237 keep decisions. Intentionally lose literal permission-versus-question classification, longest-question digit selection, Codex async-question opener/digit/Enter/skip mapping, and unsupported-agent/state/prompt refusal examples. These were real parser/selection and literal-byte alarms; they did not exercise terminal delivery or timing. No equivalent replacement or fresh runtime, native TUI, mobile, remote or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3587/3588: Retire six authored/fourteen finite cases, including the whole WSL stopped-notice and connecting-status selector suites. Intentionally lose direct WSL retry connection field/target/ready-epoch/null-guard examples, connecting/reconnecting distro and absent-state selector samples, and stopped/connecting notice text/button/data-attribute examples. Retained host-ready retry and content-loader/reload lifecycles do not replace these alarms. No equivalent replacement or fresh runtime, native WSL, remote, rendered UI or performance validation is claimed. Earlier dated text and evidence retain their historical scopes. Audit3580: Retire the whole one-case runtime host environment prototype/subclass suite. Intentionally lose the exact configured lower-case Windows Claude home to account-identity normalization and host-account override precedence alarm previously retained by Audit3129. No equivalent replacement or fresh runtime validation is claimed. Earlier dated keep statements below describe their historical source scope; the current suite is removed. Audit3563 scope: retire the whole Kiro OSC/hook identity suite and the OpenCode2 identity-only case; reduce Codex cached startup child-retirement and missing-session-ID tables to one case each (2 authored/4 finite removals). Intentionally lose Kiro alias/session continuity, OpenCode2 completed OSC identity continuity, cached replacement without relay-generation restart, and missing-previous-ID context-preservation alarms. Remaining provider, remote compatibility, persistence and cross-session pollution cases are not equivalent replacements. Also remove the private Codex roster-size assertion while retaining public child-absence checks. Historical evidence retains its original source scope; no new execution or transferred pass validates these reductions. Audit3553/3559 current scope: delete worktrees-delete-pty-teardown.test.ts and worktrees-issue-command-overrides.test.ts entirely and remove three cases from worktrees-orphan-directory-cleanup.test.ts (6 authored/6 finite removals). Intentionally retire typed unserved-SSH create/delete admission, exact-name collision/error-token, proven-orphan no-force confirmation, standalone .git-directory refusal, and SSH-owned local-path preservation alarms. Retain only actual authorized orphan deletion and no-marker notes-file preservation; they are not equivalent replacements. The no-marker fixture resolves the default getRepos owner, so it does not prove temporary owner-repo binding. Git/Store/PTY/notifications are mocked; no physical process stop, durable metadata, real SSH delivery or native UI proof is claimed. Unchanged historical oracle, coverage, evidenceRuns and escaped receipts retain their original scopes only; no fresh execution or transferred pass validates the reduced sources. Audit3492 composes ROOT-approved75(AUTHOR3475/PEER3476 and AUTHOR3485/PEER3481, including five-field clarification and zero-credit selector3483) plus123(AUTHOR3486/PEER3487 reconciled FINAL3491, including peer case10:3 and9:0 wording clarifications). It intentionally removes198 authored registrations/232 finite literal-table potential registrations across70 changed JS/TS test sources, including45 whole suites;87 authored/90 finite potential registrations remain across95 reviewed JS/TS bodies. One mobile native-suspension manual recipe and the now-unreferenced GitLab mock fixture helper are separately removed with zero registration credit. Static literal table potential is not execution. No equivalent replacement, fresh runtime result or merge credit is claimed. Earlier135 complete dated receipts, all raw gaps and full prior98/161/history notes retain their exact scopes and bytes. The additional123 retirement accepts loss of mocked GitLab request/error/identity/classification inventories; basic Linear migration and metadata discovery; simulated OpenCode key failed-save retention/retry/log redaction; analytics identity-flush smoke that did not prove ordering; AppImage static entry guards and empty-staging cleanup; GPU/process/minidump breadcrumb/annotation shapes and weak redaction oracles; namespace/status/foreign-launcher ownership guards and persistence roundtrips; profile transfer field projections; worker hook/screen/incarnation/result admission/classification guards; and source-coupled CLI transaction fixtures. Privileged publication failure injection was a false-positive: its mkdir regex missed -m 700 and outer rejection accepted an inner assertion before any shell ran. The identity-flush case awaited identity after flush and could pass despite early flush. Retained actual negative-token cache recovery, SQL filter-before-LIMIT open approval, unreadable-root FTS preservation/degradation, latest-connect-wins persistence, worker stop-debt settlement, unmodified same-inode foreign-content transaction, explicit incomplete-pagination error, FTS own-message snippet association, filter-before-route result and bounded-search truncation honesty are distinct bounded outcomes, not replacements for retired alarms. Case9:0 checks both roots before chmod but only mounted-session/degraded-root after chmod. Entire extraction-root suite is removed; no retained extraction cleanup is claimed. Removing the manual iOS foreground-stall shell script loses its unique real native-suspension recipe; timer tests do not replace it. First-match PIDs, indefinite waiting, broad success matching and absent trap cleanup made that diagnostic brittle and able to leave a desktop stopped. The current Windows operational driver remains byte-exact, preserving already-merged removal of orcad-convert and orcad-cli-convert selectors and the retained cmd/powershell/managed CLI lanes. The package skill-sharing release selector loses only the exact already-retired skills-suite token; no extra test credit. Included approved75 retirement account follows (historical proposal labels identify provenance; final198 counts above control): Audit3488 composes ROOT-approved source49(AUTHOR3485/PEER3481, including its immutable five-field clarification) and source26(AUTHOR3475/PEER3476): intentionally removes75 authored registrations/87 finite potential registrations across35 changed sources, including25 whole suites;35 authored/36 finite potential registrations remain in the combined reviewed scopes. Literal table potential counts are not executions. This source-only reduction has no equivalent replacement, fresh runtime result or merge credit. Root unit discovery deliberately loses entire message-row filtering/chunk reconstruction, discussion-pagination rejection passthrough, Linear bearer/stack redaction, new-profile telemetry/default/existing-JSON no-op, WSL user-trigger routing, terminal-delivery refusal, native-chat worker-approval UI, followup-paste routing, live-surface tombstone refusal, activity-bar hydration, fabricated approval-caller policy, child-PATH transformation and branch-review URL/identity suites. It also loses cache roundtrip/mode/fingerprint/fallback/no-op samples; GPU field-shape privacy examples; older auth-probe failure retention; orphan SQLite-sidecar/future-schema admission; usage tie/duplicate/composite-key examples; allocation-name sanitizer/unknown-prefix examples; real worker-and-backup preflight wrapper smoke; and JSONL descriptor-loop truncation. The discussion page contained id-only discussions without notes, so its rejection did not prove a nonempty notes-prefix oracle. The preflight did launch actual worker/backup entrypoints with production internal self-validation; removing its revision/version wrapper deliberately retires that real-entry smoke alarm. The skipped-prefix JSONL keeper rewrites/grows after collecting the suffix and before final validation, not concurrently during parsing. Retained queue rejection/recovery and held/drain mechanisms, recorder nonsettling-provider deadline, corrupt authoritative-DB refusal, legacy cache split migration, merge-added-row indexing, external-frame redaction, and pinned JSONL read/verification/mutation checks are bounded concrete oracles, not equivalent replacements for retired alarms. The full cloud relay cohort/ceiling/control suite is separately removed from the relay package runner, outside root unit discovery; no cloud runtime result is claimed. The Python computer-use benchmark remains unchanged tooling with zero authored/removal credit; no native benchmark trial ran. The package skill-sharing release selector drops only the exact already-deleted skills-suite token, with zero additional removal credit. Prior dated receipts, raw gaps, and complete earlier161/98/history notes remain exactly at their original scopes; no changed-source historical receipt becomes fresh reduced-suite evidence. Included approved26 alarm account: Broad root-unit discovery loses entire ref-label string, hostile/malformed CSV-link rendering, Codex filename-discovery, mocked paged-preview postscan mutation, usage path-containment, real symlink-ancestor, Codex skip RPC, local/remote inference routing, width-preference, and synthetic workspace-document input suites. It also loses the hand-assembled sorted CSV edit example, connect-time JPEG seed and invalid AVCC guard samples, and eight-record/64KiB detector boundary cases. The symlink suite exercised actual kernel traversal; its lost ancestor alarm could omit supplemental local editor watches and leave content stale, not bypass authorization. Retained linked stream cancellation, preview-only save fence, failed-flush dirty-draft preservation, clipboard byte/edit preservation, fragmented AVCC parsing and independent quoted-CSV interpretation checks do not replace these deliberately retired alarms. The stream fixture uses an in-memory source and does not establish actual fd cleanup; editor save endpoints are synthetic, browser events are synthetic, and no native focus, actual remote delivery, real disk write, cross-platform execution or interoperability is claimed. Earlier complete dated receipts, raw known gaps and previous notes are historical evidence at their original source/selector scope, not fresh evidence for this reduced suite. Audit3438 composes ROOT-adopted3434/independent3436: intentionally removes60 authored/62 potential expanded cases across16 sources, deleting9 whole suites. Eight authored/eight potential cases remain; delete the102line unused ACP fixture and57line unused teardown helper with zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses ACP model-catalog fixtures, resume-record projections, dashboard mock payload/state cases, mobile folder/launch/session examples and dictionary pipeline rows. Selected E2E removals also retire auto-conversion and golden-core journeys and one Windows CLI conversion registration. Retain ACP reply text across a resumed subagent, both VAD checks, focused tab send ownership, async focus ownership in happy-dom, the question-skip journey, the original managed Windows CLI lifecycle journey and dictionary substitution. These checks do not replace the removed alarms. Audit3470 composes ROOT-approved AUTHOR3466/PEER3467 source proposal: intentionally removes38 authored registrations/59 finite potential expansions, including8 whole registering suites, retaining13 authored registrations/18 finite potential expansions. The sole dead shell-recipe caller cleanup has zero additional test credit. No equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses process-import boundary, Korean/Japanese locale policy, worker-reset, mobile agent-history/queued-message and median-summary suites, plus packaged mobile-manifest, worker-pool fixture, HTML preview, mobile shell and terminal samples. The environment-provider contract and its sole shell-recipe caller are deleted. Separate cross-version-wire discovery loses the large byte-budget fresh-snapshot/replay sample while retaining independent live same-revision note publication; the retained terminal stale-refresh and dirty HTML draft persistence checks do not replace removed alarms. The source4 unused start/stop fixture hooks are removed; its retained nested failed-import test remains byte-exact with its own lifecycle. Unchanged SVG preview and Git-resolution registrations stay intact. Root balanced CI excludes the cross-version directory, which has a separate job; unbalanced root discovery can include its parent. No native app/device, actual remote, released-pair interoperability or cross-platform execution result is claimed. Audit3468 accepted source proposal AUTHOR3462/PEER3463, composed privately by audit3469: removes62 authored registrations/95 finite potential expansions, including5 whole suites, retaining25 authored registrations/29 finite potential expansions. ROOT approved source value; no equivalent replacement, fresh runtime or merge credit is claimed. Broad root-unit discovery loses the profile-state worker smoke, worker-agent views and three search discovery suites, plus samples from node-server qualification, skill-bundle generation, CLI hooks/profile/recovery/offline admission, permission-hook holds and search indexing. The separate Cloud relay runner loses one relay blackbox sample; unchanged mobile native-chat and dependent-transcript drivers remain. Retained source callback/table/ancestor/fixture bytes bind to the sealed candidate. No physical-device, mixed-version, remote, cross-platform or app execution result is claimed. Audit3460 final-v2 composes accepted AUTHOR3454/PEER3455 on actual post263 main: intentionally removes99 authored/106 potential expanded cases across16 selected drivers, including7 whole suites, retaining24 authored/26 potential cases. No equivalent replacement or fresh runtime is claimed. Broad root-unit discovery loses whole cross-client workspace-sync, terminal-preview, picker-skill-hint and close-routing suites plus reduced worker-stop, remote-owned-record, scanner, mobile-bundle and daemon-health samples. Separate E2E discovery also loses the paired mobile/desktop mirror journey and two unit drivers. Retained callback/table/outer-loop/guard bytes are exact; retained checks do not replace the removed alarms. No app, native device, mixed-version, remote or cross-platform execution result is claimed. Audit3456 composes ROOT-adopted3449/independent3450: intentionally removes62 authored/82 potential expanded cases from16 selected drivers, including7 whole suites, while13 authored/13 potential cases remain. Delete the unused48line legacy workspace-session JSON fixture with zero test credit. These are source-only reductions without equivalent replacement or fresh runtime claims. Broad unit discovery intentionally loses whole trust-dialog observer, background-turn notifications, redirected session refusal, typed-agent identity, chat-tab lifetime-cost, model-manager and mobile diff-review controller suites, plus individual persistence, synthetic composition, pairing, manifest and subprocess samples. Retain deferred snapshot dirty-domain persistence, two direct editor ownership cases, stream counter-domain distinction, two persisted pairing identity cases, parser entrypoint asymmetry, dictation retry and process-group timeout; paired restart and packaged old-binary/corrupt-profile journeys remain in their E2E driver scope. Retained checks do not replace removed alarms. No fresh execution, native IME/microphone, real authentication, mixed-version/platform or performance result is claimed. Audit3451 composes ROOT-adopted3444/independent3445: intentionally removes101 authored registrations across16 reviewed sources, deleting7 whole suites and reducing8; one reviewed source is unchanged. Fresh main has123 authored registrations before and22 after because an upstream direct-child shell regression remains verbatim with zero removal credit. Registered removals are100+7*S and explicit-active removals99+7*S, where S is the unprobed count0..3 of admitted bash/zsh/fish shells. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses extra stream lifecycle/forwarding examples, unreadable-store/cache projections, orchestration presentation/benchmark cases, remote-owned routing matrices, mobile legacy navigation and model-catalog listing/cache examples. Whole suites retire renderer client-event projections, manually assembled structured-session reader ownership, mobile prompt presentation, renderer AI-vault resume commands, mobile Jira URL lookup, composer retention and mobile folder source-repository queries. Retained checks preserve original stream/store/orchestration/routing/navigation/catalog cases and shell behavior, including the upstream direct-child case. No real provider, native desktop or mobile acceptance is established by this reduction. Audit3446 composes ROOT-adopted3441/independent3442: intentionally removes100 authored registrations/119 potential expanded cases (118 conditional-active before platform gates) across16 sources, retaining11 authored/13 expanded cases and deleting6 whole suites. Two parent registrar import/call cleanups and the unused68line CLI recording fixture carry zero test credit. No equivalent replacement or fresh execution is claimed. Broad unit and mobile discovery loses interrupt/wake registrars, task storage/session-close/account snapshot hooks, permission tables, copy/preference/model-discovery/composer examples, launch placement examples, VM projections and extra mobile-history scenarios. Retained checks cover abandoned versus dispatched fork uncertainty; /fast dispatch supersession; discovery lock release after exit; stale-send draft preservation; OSC status lifetime; future-version file preservation; launch cancellation before/during dispatch on both layout owners; mobile resume addressability before hooks; and recipe snapshot cleanup after plugin removal. The paired browser-link Electron source is unchanged. Terminal launch seams, mobile roles-only history and injected provider results do not establish native terminal destruction, transcript text fidelity or real remote provider cleanup. Audit3437 composes ROOT-adopted3431/independent3432: intentionally removes127 authored/174 potential expanded cases across12 sources, deleting7 whole suites and one267line unused helper without test credit. Retain8 authored/13 potential cases. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses reduced or deleted relay, coordinator mail, recovery watchdog, automation observer, launch picker, folder PTY, profile restart, web migration, retirement, pointer delivery, agent-row and run-bound mailbox examples. Retained checks cover relay hello/payload and SIGTERM drain, coordinator pending-check and clear-to-Run continuity, profile persistence, the full six-row web merge table and real run-bound delivery waiter. These do not replace removed alarms. Audit3429 composes root-adopted3426/independent3427: intentionally removes168 authored/205 potential expanded cases across16 semantic sources, deleting11 whole suites and one304line unused assertion helper. Five authored/five potential cases remain; the duplicate500k graph row is dropped while its50k row and callback remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted migration/recovery/federation/rich-draft/paste/automation/mobile/catalog examples. Keep server-edit preservation during migration, native supervised cancellation holding the agent home until physical stop, pagehide lost-text preservation, graph old-result WRAPPER WeakRef collection with50k rows, and mobile React render isolation. The WeakRef does not prove all commit objects are collectible or a memory budget. Audit3425 composes root-adopted3420/independent3421: intentionally removes83 authored/112 potential expanded registrations across13 semantic sources, deleting7 whole conventional suites and1 registering helper;7 authored/10 potential expanded cases remain. No equivalent replacement or fresh execution is claimed. Broad unit discovery loses the adopted mock orchestration, refusal, restart and storage examples. Retain unchanged two-phase real-WSL deployment/survival, the reduced idle-release holder proof without restart/first-output measurement, real worker stop/release cleanup barrier rows, physical Git branch-preservation rows, and SSH disconnected-close proof. Other SSH and CLI variants and WSL telemetry/warmup churn are intentionally removed. Audit3417 composes root-adopted3415v2/independent3416v2: intentionally removes117authored/173potential expanded registrations from12semantic sources, deleting4whole conventional suites and3registration modules and retaining4authored/5expanded cases, without equivalent replacement or fresh execution. Broad root-unit discovery loses naming/title/queued-host fixtures, main-window focus-shortcut and attach-services mock orchestration, Git Bash console-capacity fake process inventories, most real-Git preparation/locking variants and Claude/Codex catch-up examples. Keep lifetime rejected-writer followed by late termination proof and autonomous real-checkout cleanup; two-row real-Git rollback after a real move preserving a replacement/admin marker or revoked permission; a live translator write during a held transcript read fencing stale Claude history append; and Codex expected-item revision rejection before a historical writer shim. Codex driver registers retained bounds exactly once with original inputs; bounds does not prove modern writer persistence. Accepted changed-lock preflight sentinel and omitted-parent routing losses are not replaced. Audit3413 composes root-adopted3405/independent3406 and3409/independent3410: intentionally removes337 authored registrations/363potential expanded cases from13sources, retaining31authored/32potential cases and deleting one whole clipboard suite, without equivalent replacement or fresh execution. Broad root-unit discovery loses35WSL examples,22STT examples,22shared-server-banner examples,18clipboard-handler examples (whole suite deleted),14VM lifecycle examples and16commit-message cancellation examples. Retain4WSL and7STT mocked connector/worker cases,1rendered stale-banner refusal,2VM guard/failed-compensation cases and1late-stream ownership cancellation case; real WSL/microphone/remote-provider proof is not established. Separately discovered e2e-unit drivers lose13cross-version-wire local cases and15mobile active-publication cases, keeping same-process disk-reopen/new-host cursor content/epoch/sequence outcomes and a host/renderer-snapshot selection and inventory revision race respectively. Imported released stop-note scenarios remain unchanged and receive no duplicate credit. Cloud suites are outside root UNIT_INCLUDE. Audit3403 composes root-adopted3393/3394,3400/3401 and3398/3399: intentionally retires167 authored registrations/196 potential expanded cases across93 whole suites without equivalent replacement or fresh execution. Retained65 registrations/79 potential cases include one conditional missing-input failure sentinel; potential counts are not executions. Historical notes and complete dated receipts retain their exact original scopes. The retained runtime registration driver loses three complete imported fragments: changed-working-label title facts and suppressed-frame tracked snapshots; refusing SSH GitLab MR-base lookup before local Git/glab calls; and missing folder-workspace path creation/update refusal before spawn/store mutation. These alarms are intentionally lost. Other imported fragments and separately rooted dated receipts are unchanged; they are not equivalent replacement coverage. The broad root-unit command loses the UNIT_INCLUDE src/ subset of retired examples; mobile is outside UNIT_INCLUDE. Other lost alarms are recorded by the adopted per-case source reviews. Audit3390 composes root-adopted3382/independent3383 and3386/independent3387 and3388/independent3389: intentionally retires216 authored registrations/230 expanded cases in42 whole authored suites plus5 zero-case registration drivers, without equivalent replacement. Lost local alarms include fake PTY identity/routing/startup/replay/mode/title/mouse/IME/scroll matrices, broad startup identity and file-open wiring, mock mailbox title recovery, mobile row parity and whole-v-selective save parity. Retained24 registrations/26 expanded cases in22 suites preserve actual xterm Windows buffer/wrap/scroll, typed TOML scalar, real Promise cancellation/settlement, HTTP Codex scanner/projector semantics, durable recovery admission/newer-schema bytes, federation completion/ACK/SQLite atomicity and failed stale-run-write versus imported durable history. Additional retained clock-domain scheduling, durable freeze/ACK/checkpoint ordering, ABA dirty intent, SQL atomicity, folder-domain retier/last-note deletion, scrollback durable no-sync staging, PanelBridge subscriber lifetime and reserved-send publication preserve narrower concrete behaviors. Current finite owner drift assessed in bounded defining bodies; retained callback bytes unchanged. Historical notes and complete dated receipts keep their original exact scopes. No new execution, equivalent replacement, native focus/device/pixel, live remote or global mixed-version guarantee is claimed. Audit3381 composes root-adopted3376/independent3377 and3379/independent3380: intentionally retires436 authored registrations/670 expanded cases, including79 whole suites and12877 test lines, without equivalent replacement. Lost alarms include scheduling, account/host/status/filter/format inventories, microphone/image cleanup, title/bell/capability lifecycle routing, access/impersonation/outcome matrices, paste/input resend/ledger/retention, stale completions/reload containment, trust-read failure and popup OAuth/security/geometry vectors. Retained30 registrations/34expanded cases in22 suites preserve narrower SQLite TEMP/TZ/WAL, HTTP transcript root resume, mobile original-index Choose/Submit, child environment/Git lock expiry, stale ACK/PTY lifetime/peer fairness/durable replay/output ordering, actual DOM paste/editor focus, DEC2026 conservation, filesystem rollback, owned buffer lifetime, actual OSC parser/tracker handback, POSIX Python UTF8/fallback, durable trust concurrency/version, OpenSSH verdicts and hidden Chromium POST/route lifecycle. Mocked boundaries limit claims. Current bounded defining-owner reads preserve the retained oracles; captured identities are not full transitive semantic review. Both component blind pins authenticated before exchange; final reconciliation and explicit postpin3380reason correction supplement control, without retroactive blind claims. Root unit command excludes mobile and separately admitted Electron probes; use existing respective runners. No fresh execution, native focus/device/pixel UI, live SSH/remote, equivalent replacement or broad mixed-version/cross-platform validation is claimed. Prior dated receipts retain exact original scopes. Audit3375 composes root-adopted3370/independent3371 and3373/independent3374: intentionally retires79 authored registrations/84 expanded cases, including39 whole suites, without equivalent replacement. Lost alarms include federation field/parser inventories; Claude rejected-key precedence, credential clone redaction, managed-versus-user hook preservation and CLI defaults; setting/status/activity projections, mocked SSH/notification/reveal/Linear refusal, fake-clock reconnect and noise; image-fold artifact visibility, paste eligibility, setup trust, scripted ACP error-to-journal publication and ligature cache tuple aliasing; plus supplied folder-runner uniqueness, mobile host-overlay/credential/update/preference races, status/markup/title/keyed-row projections, subscriber cleanup, cancellation/close/refusal/link-issue and mirror suppression alarms. Retained3373 merger contiguity, dual-clock overdue-resume exactly-once, rejected-paste IPC sink and annotation schema roundtrip remain bounded. Retained actual HTTP/OSC status composition, destructive sibling-filesystem isolation, external contrast invariant and fixture CSS pixel intervention remain narrower. Original reviewed87authored/92expanded become9/9; current OpenCode suite adds two preserved upstream cases and the synthetic-title suite gained one Cursor policy mock-call case, independently reviewed for removal in root3378; current90/95 become11/11. That Cursor suppression/ready-frame regression alarm is intentionally lost; it does not observe native title ownership or tab flicker. For3370 only the peer was independently blind, with author exposure explicit;3373/3374 both blind pins were verified. This broad root unit command selects the reduced root unit suite; UNIT_INCLUDE excludes mobile tests, which require the existing mobile runner; retained Playwright component-pixel spec uses its separate existing headless fixture runner and is not validated by the broad unit command. No fresh execution, actual agent/shell/provider, OS material/focus, historical import equivalence, mobile, mixed-version or cross-platform evidence is claimed. All dated receipts retain their original scope. Audit3368 composes root-adopted3363/3364 and3367/3369: intentionally retires181 authored registrations/196 expanded cases, including28 whole suites, without equivalent replacement. Lost alarms include hibernation attention/liveness/backoff/sequential teardown and inventory, host launch compatibility/legacy/Kimi/resource cleanup, terminal recovery parser/pause/quarantine/remount, window-visibility omission-fence lifetime, launch-option rendered Start, sleeping-resume saved recipe/WSL quoting/cancellation, plus removed project/window/input variants. Additional tiny-suite losses include sentence/label/field/default inventories, credential omission, Windows argument/environment mapping, URI decoding, diagnostics, provider classification and fake-clock callback/parser examples. Retained ten registrations/twelve expanded cases include two literal Unicode Mn/Cf zero-width range guards in the actual character-range algorithm and protect narrower delayed editor bytes/destructive ownership, mounted hidden collision repair, ten transport epochs, duplicate-command refusal, caller timeout typing, executor unknown-opener refusal and failed-chunk user bytes. This broad unit command selects the reduced suite; no fresh runtime, real provider/network/PTY, filesystem restart, native UI, historical import equivalence, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3362 composes root-adopted3358/independent3360: intentionally retires129 authored registrations/140 expanded cases, including four whole suites, without equivalent replacement. Lost alarms include supplied orphan-adoption retry/malformed inventory/cancellation; fake-terminal replay parser/wedge/disposal callbacks; all-host catalog metadata and Windows preferences; host keepalive/protocol/stale/settings failures; and removed exact-stop/suppression, source save lifetime, diff-note queue, rename/editor close, input flood/chunk refusal/limits, purge and creation examples. Retained18 registrations/21 expanded cases protect narrower ownership, generation, dirty-state, queue convergence, encoding and attachment-lease outcomes. No replacement or keeper quota claim. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY/xterm parser, disk restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3359 composes root-adopted source3355/independent3356: intentionally retires130 authored registrations/139 expanded cases, including eight whole suites, without equivalent replacement. Lost alarms include strict create naming/capability/legacy payloads; supplied transport host replacement, deadline reattach, create-handoff and split activation; agent-session fork/clipboard/platform flags; shutdown cleared-scrollback/unmounted bindings; simulator host-collision/selection/shutdown; and removed editor, catalog, mutation, launch and status examples. Retained12 adverse-ordering/state-consequence cases are narrower and do not replace all removed alarms. Two queue absences receive zero removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH/PTY, filesystem restart, native UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3349 composes adopted batches3343,3345 and refreshed3354: intentionally retires234 authored registrations/294 expanded cases, including13 whole suites, without equivalent replacement. Lost alarms include supplied terminal reconnect/replacement/typeahead/mirror/result and snapshot examples; synthetic render-desync persistence/recovery; worktree listing/owner/catalog/lineage/removal and activation/creation examples; host-scoped PR and task-record projections; editor diff/status/comment and UI send-target examples; automation observation/wake, supplied sleep/deadline clock and native-chat completion/notification/relaunch samples; held-tab layout and cleanup/progress guard examples. Retained adverse-ordering and wire-boundary cases are narrower and do not replace all removed alarms. The already-upstream visibility-resume deletion receives zero new removal credit. This broad unit command selects the reduced suite; no fresh execution, historical import equivalence, real provider/network/SSH, native process/power/GPU, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain their original scope. Audit3342 composes adopted source batches3333/3334,3336/3337 and3340/3341: intentionally retires180 authored registrations/263 expanded cases, including seven whole suites, without equivalent replacement. Lost alarms include corrupt editor hydration; mobile editor/diff publication and privacy projections; stale-resubscribe routing; model-picker projection/refetch/retry/fallback; editor check-details and frame property inventories; latched-pane cleanup/quiescence; client create replay identity/options/compatibility; and removed owner, async routing, terminal and layout examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts keep their original scope. Audit3335 composes adopted source unions3327/3328 and3330/3332: intentionally retires100 authored registrations/123 expanded cases, including ten whole suites, without equivalent replacement. Lost alarms include seeded host persistence/contention and stale-host cleanup; browser snapshot assembly; mocked wake/DPR callbacks and frame budgets; preflight projections; palette authority/cache suppression, URL intent and saved-title cross-repo collisions; metadata coverage/set patch and dropdown assembly; and removed terminal, worktree, review-refresh and owner-routing examples. Retained definitions do not replace these alarms. This broad root unit command selects the reduced suite; no fresh execution, historical source/import equivalence, real provider/network/SSH, rendered UI/GPU/focus, durability restart, mobile, mixed-version or cross-platform validation is claimed. Unrelated dated receipts retain only their original scope. Audit 3318 composes adopted sources 3310, 3313 and 3317: intentionally retires 71 authored declarations and 102 expanded cases, including whole terminal-detach agent-retention, seeded batch/single open-files equivalence, shallow context-menu shortcut-badge, mocked active-workspace delete-dispatch, workspace session hydration, SSH target cleanup, editor session hydration and worktree terminal purge suites. Lost alarms include chained transfer alias and immediate close/exit retention; batch/single divergence, survivor/selection/map preservation and input nonmutation across 400 imperative seeds (one registered case); disconnected pending-handle retry, authoritative absences/close-record shortcut/older-host absence and published-presence/unpublished-frame examples; published empty host-graph omission to pane exit; legacy search ranking/exclusion fallback; provider request upgrade/dedupe/finalizer ownership; asynchronous PR suppression/primary-change and same-number different-repository URL rejection. Deletion routing loses host/instance qualification, paired and legacy mapping, folder ownership, active-versus-hover/menu-row selection, ambiguity, modal/editable/creation/view/main/deleting/missing guards and shortcut advertisement. Unchanged real keyboard/hover/confirmation/catalog E2E remains narrower, not an equivalent replacement. Additional losses include scripted old-host disk/UTF-8/noop/baseline and landed/unlanded lost-reply/replacement-retry outcomes; ordinary/repeated healthy-link reattach; cross-owner terminal/chat binding; oversized replay permanent-unavailable classification; floating reveal keyboard ownership/close/disable/listener disposal; naming/retained-turn/Sleep/error/close/reject status tables; SSH membership prune/new-target-only reads and environment/local bucket isolation; same-frame receipt capacity and positive bare/headless publisher readmission. These actual regression alarms are deliberately lost; no fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit 3312 composes adopted sources 3302 and 3308: deliberately retires 33 authored declarations and 36 expanded cases, including the whole backend startup-focus, active-browser IPC-close-routing, remote-browser-creation and agent-terminal-presence suites. Intentionally lost alarms cover distinct six-pane reconnect handles; SSH host label/Connect callback, unhydrated visit cleanup, repo cache aliases and hidden worktree/tab/PTY cleanup; adopted-agent startup focus and viewer navigation/reuse; staged, pageless, source, stale and orphan browser-close routing; web local-materialization refusal, desktop incapable-host fallback, failed/thrown remote creation and paired-web sign-in refusal; BOM/NUL and remote/local custom-editor byte-read examples; immediate folder activation and unread clearing; and batching idle/coalescing, accumulated byte ceiling, leading-edge-disabled, standalone synchronous oversize rejection, validation yield, deferred pending-tail order and both viewport-clear examples. The newly reintroduced agent-terminal-presence suite also loses actual terminal-status membership positive and nonterminal-status callback suppression alarms, including the recent 40916 guard regression; the older different 2133 presence-suite history remains historical and receives zero duplicate removal credit. These real regression alarms are intentionally lost. The unchanged survivors provide narrower coverage, with no equivalent replacement or fresh gate, provider, rendered, remote/mobile, mixed-version, cross-platform, soak or measured-budget validation claimed. Audit 3301 combines adopted source batches 3296 and 3299: retire 27 authored declarations and 36 expanded scenarios, including six whole suites. Intentionally lost alarms cover failed-verification/recovery/restart counters and mocked hosting/toast; early overlapping pane-read scheduling/count; unreadable removal listing draft guard; bulk-purge remote-qualified and raw-local guard maps; initial-snapshot blank/mode/oversize/printable/fresh-spawn callback and replay examples; fallback mobile file close and ordinary MRU; default queue overload/drain; seeded browser-page reuse and supplied missing-page URL recreation; ambiguous sleep/hibernation owner refusal and untouched bindings/origins; ordinary selection/activity/fallback priority; skip-remote success and retained hints; supplied structured-chat unsent retention and scoped removal draft eviction; caller-chat focus precedence; open/draft PR cache eviction and merged-head fallback result inventories. Retained adverse-ordering and ownership cases are narrower and do not establish equivalent replacements. No fresh runtime, native, physical provider, cross-platform, mobile or mixed-version evidence is claimed. Audit 3292 combines adopted 3285/3287/3289/3293 removals: 40 authored declarations and 47 expanded scenarios, including whole frame-editor-view, ambiguous remote-delete-refusal, unverifiable-host subscription and editor-close cleanup suites. The previously reviewed dock-badge suite was already removed upstream in PR 40895 and receives zero new removal credit. Intentionally retired alarms include background browser selection and last-tab landing; main startup fallback, SSH project cleanup/survivor routing, exact-PR contradiction/saved-push positives, replay/sidecar rollback and wrapped remote error normalization; records/snapshot missing-diff hydration, ambiguous folder-owner delete refusal, focus no-op notifications, nested editor context-only cache check, pending broadcast-first status and ordinary four-confirmation aggregation; preview-source frontmatter pruning, approved local/runtime agent dispatch, non-GitHub legacy PR cache invalidation, stale merged-head transient-error fallback, empty-queue immediate query reply and unverified-to-concrete preflight risk. Additional intentionally retired alarms are injected host subscription/unsubscribe counts, synthetic editor reveal/draft/fallback/scoped close, ambiguous unread refusals and hidden mark/read roundtrip, immediate connect backoff/noError, positive mirrored evidence-clock renewal, supplied VM failure/success projections and git-local/folder-SSH wake permutations. Remaining temporal/ownership cases are narrower; no equivalent replacement or fresh execution is claimed. Audit 3283 removes 20 authored declarations and 31 expanded scenarios, including two whole suites. Retired alarms cover PR refresh-state pruning, shared runtime subscription cleanup and store isolation, language content-change routing and older completion ownership, ordinary panel retry-timer cleanup and pending loading, four hosted-review lifetime permutations, mocked terminal creation error/order wiring, five sleep-inventory variants with pending-frame-only assertions, palette fallback/composite highlights, Windows/UNC encoded-editor input rows, mixed-repository partial failure counts, title setters and generated-title bypass/replacement, five window-close coordinator delegation/guard/finally branches, and ambiguous-old-record frame reveal. These regression checks are intentionally lost under the test-value audit; retained cases are not equivalent replacements. Prior coverage notes and receipts remain historical. Audit 3273 removes 14 authored declarations and 19 expanded scenarios across four whole suites and eight partial suites. Retired alarms cover saved-local cancellation/layout ownership, ambiguous-owner warning reset, folder attachment routing, VM false-capability bypass, abandoned reveal warmup cleanup and viewport claim deduplication/rearming, quiet unrelated remote-removal refusal, startup-command one-shot consumption, repository/floating recovery-ledger rows, fake-React pinned-scroll intent, split-ratio state identity/subscriber suppression and fractional change, cross-host project-group join refusal, three PR request-lifetime permutations, upstream-status preservation on error, and unresolved Git-owner refusal. These regression checks are intentionally lost under the test-value audit; retained scenarios are not equivalent replacements. Historical coverage receipts remain historical, including gate35 subscriber claims. Audit 3256 removes these specific alarms from the broad root unit commands: skill dialog active-share selection, close and pending-share handoff; simple keyed-record deletion; marker live-region insertion, simple landing and nine baseline policy examples; General search/control navigation inventory; orphan-count cache bootstrap; seven Codex code classifications and HTTP 429 warning mapping; two skill unread-root verdict examples; peer-mail payload and conversation-ID rejection; and the GitHub organization TABLE text-field optimistic rollback/failed-envelope example. These include real behaviors; retained tests do not provide equivalent coverage for every removed scenario. Mobile losses are recorded separately and are not coverage of these root commands. Audit3246 retires NewRowsMarker reveal/no-repeat and pane-scoped beforeinput checks; skill-owner option availability/count/dedup/order; six styled Input/Textarea IME forwarding rows; the static Codex/OpenCode smart-key inventory; tab-map AST ratchet diagnostic fixtures; child-roster work-budget and retained-aggregate alarms; malformed persisted floating-cwd fallback/no-crash/empty exact-root checks; the unanswered-host empty-list discriminator; the direct invalidated-cache commit-false assertion; one redundant digit-keyup IME row; cached non-supported Claude title-generator rows; and the duplicate late naming-result singleton. These root broad commands lose those specific alarms without equivalent replacement. Distinct retained owner/state checks have their own bounded claims; the real scheduler still rejects stale response data, while the direct false-return alarm is retired. Audit3231 retires supported-host restore-pane key mapping, closed/open creation-sidebar toggle visibility, unrelated scope-error/null classification and quick-submit reveal/no-create checks. These broad commands lose those real narrow alarms; no replacement coverage is claimed. Audit3219 removes the synthetic Cmd+J extra-source suite; this broad command no longer checks its match/tie placement and selection, announced count, empty-query cap, or workspace hiding with retained recent tabs. No replacement coverage is claimed. Audit3209 composes approved sources3202/3206: deliberately retires seven authored/expanded cases in four whole suites without equivalent replacement. Work-item queries lose real GitHub/GitLab oversized ASCII secret-prefix empty-query and whitespace-before-trim refusal alarms; inputs share the imported size bound and exercise only its fast length branch, with no multibyte or actual provider/exposure guarantee. Skill sharing loses complete/partial managed-bundle and destination-ambiguity association checks plus three negative origin/path/scheme admission examples; these do not establish uploaded contents, arbitrary-URL fetching, authorization or execution. Retain exact originless-project direct-link fallback, cloud-delete confirmation, bundled-target repair/owner isolation and explicit Windows-host preference over stale WSL suites. Rejected3201 runtime-preference removal is excluded. No real cloud/network/host/disk, mobile or mixed-version execution validation is claimed. Audit3200 composes approved source3194: deliberately retires thirteen authored registrations/twenty-seven expanded cases in six whole automation host/list policy suites without equivalent replacement. Real RPC category/retryability and wrapped-timeout recognition, unscoped-failure/scoped-success health evidence precedence, exact-ID create selectors and per-run workspace omission, paired-web local/SSH/absent host catalog routing, incompatible/removed/unhydrated/offline execution health, runtime-before-nested-SSH recovery dispatch, and no-owned-focus/successor/foreign-list focus policy alarms are consciously lost. Retain exact20line orphan allow/refuse/precondition and exact90line cross-host same-ID search suites. No retry-timer/fence lifecycle, actual reconnect/network/write delivery, native focus, mobile/mixed-version runtime or disk persistence coverage is claimed. Audit3191 combines approved source3182/3187/3188: deliberately retires thirteen authored Vitest registrations and fifteen expanded cases, including five whole suites, without equivalent replacement. Attachment intake loses real portal/native-capture terminal interception and unowned-container refusal, immediate child-only committed availability/claim-ref negotiation and delivery, and direct-target over stable focused/background composer routing through disable/re-enable/remount and independent question focus. Exact destination/cache/draft and final-stat owner/workspace/File-release suites remain; they do not replace Surface recipient routing. Automation authoring loses destination runtime catalog membership, local/direct-SSH exclusion of paired-runtime repos, unknown-runtime empty catalog, logical project/host/setup/repo/path context payload, and missing/nonready setup refusal; these were genuine direct helper alarms, while exact schedule transformation, legacy schedule and setup-decision suites remain. Agent picker loses setup-chat/terminal/missing-installer/unsupported-or-unknown-host row projection samples and the ordinary unsearched menu variant; the entire original26-line resume recipe suite remains, including reported bypass versus default/absent permission modes, as does the exact search-result menu callback with its fixtures, model/effort commits and staged Arguments reopen outcome. Rejected predecessor3180 full recipe deletion is excluded. No actual native drag/cursor/focus/IME, upload bytes or disk/restart persistence, full automation save/scheduler/runtime transport, real resume-process flags/environment delivery, or native menu/rendered layout validation is claimed. Audit3178 combines source3169/3170/3175: deliberately retires eight authored units (six Vitest cases and two imperative custom relay scenarios), including two whole suites, without equivalent replacement. Voice Section loses per-model pending-delete isolation across interleaved A/B completion and the two-success refresh-call alarm; exact VoicePane delayed key-clear/newer enabled-toggle merge remains and does not replace row deletion coverage. Speech loses dedicated rating-scale/inclusive-ceiling, unsupported-versus-unmeasured, explicit/system-language precedence/locale alias, accuracy versus fast named/default/best-measured selection, and unmeasured/no-match examples; exact offered-user-pick versus retired-selection case and its fixture remain. Relay loses legacy ping-delivery count/liveness sampled before the silence deadline and grouped malformed Bearer/host-ID 401/429 routing checks; twelve real Worker/DurableObject/shipped-client scenarios remain, not equivalent replacement for those narrow alarms. Six prior speech cases are not all deleted: approved successor3175 keeps the original user-choice case. No actual credential/file persistence, native/GPU/engine/download delivery, production assignment policy or deployed-runtime validation is claimed by this reduction. Audit3165 combines source3160/3162: deliberately retires six authored/expanded cases across three whole suites without equivalent replacement. Launch/status losses: observed React-render pending/resuming coordination across settings and deferred offer read; stale-offer reread suppressing dialog reopen; held-local-chat recovery visibility with new-chat preferences off; disabled-local admission avoiding offer RPC despite an injected but unconsumed paired-tab fixture; and run-only lost-reply uncertainty reachability until direct viewed-run retirement. Launch probe does not prove arbitrary synchronous-store atomicity, the paired fixture is not remote runtime enrollment, and the status case directly marks viewed state rather than rendering the summary. Crew-hook losses: old-host method_not_found cache persists across party changes but is released by independently supplied connection generation/verified pairing status or pairing revision, with actual frame publication and teardown. These are real narrow coordination, admission, uncertainty and mixed-version cache alarms consciously lost. Exact web verified-runtime writer handoff guard remains; it does not replace those alarms or prove live host/native/mobile delivery. Audit3156 combines3147/3150/3152/3153/3154: deliberately retires39authored/40expanded native-chat recovery cases, eight whole suites and two orphan test-support files without equivalent replacement. Lost alarms: lost-reply unconfirmed reconciliation, skipped rows/counts and missed-frame repair, unknown/pending outcome and omitted-failure-list compatibility, uncertain history after dismissal, retry/refusal/dismiss lifecycle, hidden/consumed picker ownership, result-tree keyboard focus/disclosure and all-skipped retirement; unconfirmed-over-conflict guidance and failed-chat changes despite older host timestamps; nearest-listed ancestor/cyclic forest shape, descendant membership, host ordering/missing-host local fallback; skipped/readiness/admission counts, provisional skip/progress monotonicity, early per-chat verdicts with batch pending protection, older-host waiting, start-slot/delivery distinction, retry-over-failure and unknown-after-withdrawal attention; remote snooze/reconnect/reoffer, unseen mixed summary through open/close, watched completion retirement, new success beside old failure, failed-reread mixed-result preservation, filter/collapse completion resets, retry summary replacement and current-offer/history selection; cross-host workspace identity, rendered cyclic reachability, nested tri-state/toggle propagation, project eligibility isolation and collapse preserving selection. Exact fallback-list completion barrier, batched verdict/cleanup retention, stale-read versus dismissal publication race, and requested-but-never-rendered finished-run retirement remain; they do not replace retired alarms. Audit3146 combines source reviews3132/3133/3135/3138/3143: intentionally retire20authored/31expanded cases without equivalent replacement. Provider-session losses: structured-native terminal-resume exclusion, metadata-less completed identity, new-turn completion clearing, Pi provider-only/periodic/manual promotion, changed-transcript launch-config isolation, Pi/omp/prime-agent completed-session remote/manual-shutdown promotion, and quit/done precedence over heartbeat. Side-thread/question losses: finished-pane acquisition, hidden title/recap states, local/relay/relay-done conversation takeover with prompt/session/child resets, plain-message abandonment, compaction/session replacement and completion resets. Codex startup losses: incoming-owner cached child replacement, old-relay foreign live-session correction, completed foreign-root turn-fact permutations. Transcript losses: real temporary-JSONL partial sibling/final-child completion, unlabelled child attribution, compact cached replay preservation and100/1000completed-child roster retention/release. Compiler-ratchet losses: valid-line uncompiled-list parser grammar examples and injected-existence stale-path filtering; these did not exercise actual filesystem canonicalization or build exclusion. These are real lifecycle, ownership, replay, liveness and retention alarms, including recent#40246 regressions, deliberately lost. Retained conditional record replacement, clockless root/SSH owner isolation, persisted main-thread fork rejection, partial/final question-answer lifetime, cached-roster/missing-ID/live HTTP/durable startup boundaries and restarted-relay refusal/acceptance do not replace those losses. No native/SSH/WSL execution or equivalent coverage is claimed. Audit3128 scoped coverage reduction: Audit3121 removes VoiceDictationLanguageSetting.test.tsx (Spanish-to-es callback and unsupported-model Korean option presence) and voice-speech-model-rows.test.ts (provider/language-order/retired-on-disk list policy); these real narrow alarms are deliberately retired without replacement. VoiceSpeechModelSection per-model concurrent deletion remains unchanged. Audit3122 removes the direct absolute/parent-segment sparse-directory exception-type sample and the five-row IPC sparse-preset error-code/non-save table (two authored/six expanded cases). Those real typed-validation and IPC refusal/error-code alarms are deliberately retired. Keep both real symlink/junction floating-directory trust cases and the minimal RPC structured validation-reason serialization case. The RPC case does not replace IPC save/refusal behavior, typed normalization for both path inputs, actual Git sparse checkout or rendered localization. No equivalent replacement or fresh test/runtime/platform/remote/performance validation is claimed. Audit3124 removes ExperimentalPane.test.tsx (ordinary Pet switch callback), WorkspaceDirectorySetting.test.tsx (padded absolute saved-path normalization/no-write blur), and repository-search.perf.test.ts (navigation/selected-pane builder-call policy, fixture cardinality/nonempty entries and renamed project keyword inclusion). These real narrow alarms are retired without replacement; RepositoryPane.search.test.tsx search-to-sparse-editor request remains unchanged. Audit3129: resolver Windows case-insensitive and POSIX case-sensitive configured-env composition plus mocked-base launch-preflight Windows composition are intentionally no longer checked by the two deleted suites. No equivalent coverage claimed. Keep runtime-structured-agent-host-env.test.ts unchanged: configured Windows Claude-home account identity and host-account precedence remain checked. Audit3114 incorporates source3101: retire three structured Claude child-environment wrapper cases covering inherited stamp isolation/default and explicit entrypoint, Windows SDK-key canonicalization/default/duplicate-key order, and configured lookup/final environment/config-dir conjunction. Keep direct auth/session sanitation and Windows-versus-Linux overlay checks, actual executable lookup from supplied inherited PATH, native Windows child environment delivery, and stale option-mutation fencing. These are not equivalent replacements for the retired wrapper alarms. No fresh test/runtime, real login-shell probe, Claude SDK startup, remote/mixed-version, UI or performance result is claimed. Audit3114 incorporates source3105: retire 17 authored/20 expanded daemon launch-note cases, including the entire two-case SessionLaunchNote suite. Deliberately lose split-marker carry across same-token re-arm, stale-token retirement refusal, foreground tri-state and serial settlement, omitted-note/no-incarnation mixed-version policy, sticky retirement, first-incarnation/replacement launch preservation and held-launch precedence. Keep only the unchanged unresolved foreground-read race against a later finished attach. Supplied notes/foreground and runtime calls do not establish actual daemon/main restart, SSH, native Windows observation, mobile UI, equivalent replacement or fresh runtime/performance validation. Audit3114 incorporates source3109: retire six authored/35 expanded pricing cases: 21 accepted model-name examples, 10 unsupported/future-model fail-closed examples, malformed TTL clamp, unknown-model estimate refusal, flat-model long-context disregard and oversized long-context clamp. Keep mixed five-minute/one-hour write allocation and short/all-long/mixed long-context allocation with original fixed oracles. Real parser/refusal/bounds alarms are knowingly lost without equivalent replacement; retained tests do not validate provider rates, actual billing or request threshold classification. Preserve the archived usage-scan-append source-freeze receipt without transferring historical execution/performance credit. No fresh runtime result is claimed. Audit3108 source-only reduction (3094/3095/3100): retire 27 authored/30 expanded cases, including complete markdown view-state, file-preview link-open and CLI agent-server-route suites, without replacement. Deliberate losses include preview visibility/reference lifetime and same-path owners; SSH stat, directory/missing-target, explicit-null owner, nonmarkdown line/column, local URI routing, remote-to-client guard and same-file reuse; document-preview source-owner/folder/reuse routing, stable grant location and outside-workspace POSIX/Windows request projection; and verified remote CLI send/check refusal, suggested --on argv/copy, shell no-probe bypass, unverified-launch admission and older-peer refusal. Retain two markdown source-runtime/qualified-reveal alarms, one stale grant-rejection fence and two remote read/mutation evidence policies, with original callbacks. Final last-wins reveal did not prove transient cancellation; CLI prerequisite did not prove no real send, and envelope tests do not execute server refusal. No fresh runtime, rendered UI, actual file/SSH/paired transport, authorization, mixed-version or performance result is claimed. Audit3096 source-only reduction (3087/3088): retire 69 authored/76 expanded cases, including complete recovery-portals and reconnect-banner suites. Intentionally lose dead/default TUI replay, generated alternate-frame style composition, reset/mode/dimension and legacy missing-mode-boundary alarms, UI notice/action/reveal policies, and isolated recovery lifecycle variants, without equivalent replacement. Retained registrations and callbacks are unchanged; headless cells are not pixels, and no fresh runtime, host, SSH, WSL, rendered-app or performance result is claimed. Audit3086 source-only reduction (3079/3080/3081): intentionally retire 93 authored/100 expanded mock-boundary cases, including the complete spawn-errors and SSH reconnect overlay suites, without replacement. Retired alarms include spawn classification/ownership, reply ceilings and renderer-write failure recovery, disconnect/detach fencing branches, authority facts, and overlay retry/visibility wiring. Retained callbacks are unchanged; no fresh execution, real PTY/SSH, rendered UI, or performance result is claimed. Audit2432: The broad unit command loses the isolated BranchPicker open-change notification sample. Its unique true/false callback alarm is intentionally retired; reopening/status-refresh behavior was not exercised. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2425: The broad unit command loses the workspace-copy-status supplied readError forwarding sample. It did not exercise the branch-switch blocking promised by its title. This alarm is intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2417: The broad unit command loses two ordinary clean Git cherry-pick/revert success samples and two terminal startup foreground-read work-budget samples. These unique alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2412: The broad unit command loses the whole six-case fake-React-hook scroll-anchor suite, two generic draft-retention samples, a simple new-agent order sample, a real history-publication batching-count sample, an unmounted handoff abort/timer sample and three basic WSL preview/error samples. These alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2404: The broad unit command loses the standalone share-name lookup 503 propagation suite, initial deletion placement-kind sample, direct changed-mtime stale sample, first-pass rollback existence example and abandoned-preparation directory sample. These exact alarms are intentionally retired without equivalent replacement or fresh validation of the reduced selector. Audit2397 review amendment: The broad unit command loses three standalone suites, two partial-case definitions and two URL table rows across package/download/placement tests. Keep initial wrong-port authorization, modified independent-copy digest refusal and abort-after-begin cancellation dispatch. The remaining alarms are deliberately retired; no equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2393 current-parent refresh2401: Remove the basic skill-install service alias sample and original public managed-remove receiptless refusal case. Preserve the upstream request ownership suite and transaction interruption coverage. No equivalent complete replacement or fresh validation of the reduced selector is claimed. Audit2389: The broad unit command loses the missing-preview suite, plain-global destination sample and prepublished-receipt recovery example. No equivalent replacement or fresh validation of the reduced selector is claimed. Audit2385: The broad unit command loses four authored walker/staging/protocol examples (six expanded cases); no equivalent replacement or fresh validation is claimed for the reduced suite. Audit2383: The unscoped Vitest command no longer includes the removed Antigravity catalogue suite; its exact provider-root/owner example has no equivalent replacement or fresh validation claim. Audit2377/2381: The unscoped Vitest command includes the reduced bundled-skill and native-discovery suites; the eight removed backup/legacy/catalogue/symlink/SSH-builder examples have no replacement-equivalence or fresh validation claim here. Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2056 (sources2054/2055): Intentionally retire these low-value alarms without replacement: src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts: delivers remote file changes to listeners for the same worktree. src/main/runtime/orca-runtime.test.ts: ordinary registration cleanup removes only await import('./orca-runtime-tests/mobile-session-tabs-part-14.spec'). src/main/runtime/orca-runtime-tests/terminal-side-effect-facts-part-03.spec.ts: arms the stale-title timer for a seeded working title; arms the Command Code scrape from the noted spawn command; prefers the tracked title over a stale renderer lastTitle in the hydration seed; writes recent output into the current runtime output map; uses a later title handler replacement with the runtime receiver; calls the current injected listener with the runtime receiver; keeps optional reconciliation lazy after its callback is removed. src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-14.spec.ts: lists them, so a paired client can mirror a migrated editor; closes one by retiring it from the host session; keeps an unsaved draft unless the close is forced; shares aggregate work but leaves a replacement pending promise alone; lets a targeted refresh finish while an aggregate refresh waits; refuses a close when the store lacks %s before the guard; keeps a later missing %s on the original caught failure path. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Exact retired assertionRefs, preserved as historical objects only: {\n \"file\": \"src/renderer/src/runtime/files/watching/runtime-file-client-watch.test.ts\",\n \"assertions\": [\n \"terminal watcher error and setup failure evict the shared entry before retrying callbacks run\",\n \"an old stream end cannot evict the replacement stream, which still delivers to its listener\",\n \"two same-worktree listeners share a synthetic subscription until the final stop unsubscribes and sends unwatch\"\n ]\n } Historical prior account (preserved verbatim): Audit1973: Delete the standalone mocked watcher cleanup suite and its entire sole-file prospective command. Retire the removed file-command transport-abort alias; preserve the independent cancellation suite and final-overflow/error/end cleanup callback, and13 unrelated receipt objects. Whole original changed dated receipts are retired, never narrowed or transferred. This metadata review claims no fresh execution, equivalent replacement, provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial runtime files-watch suite retains controlled Windows close-event waiting, shared-client survival, late physical-exit ownership/deadline cleanup and shutdown joining. Its combined Windows close/deadline/late-exit alias remains backed by unchanged callbacks. Retire native-error-close, pre-publication setup ownership and failed-delete rearm aliases; associated delegation, failure forwarding, removal routing and recovery examples are lost. These tests inject watch/subscription seams and do not observe an actual native watcher or physical process. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1925 (sources1922/1923): Partial runtime watcher-host suite loses mocked option/event/overflow/resubscription forwarding, supplied teardown-error propagation, aborted-signal/no-call and private ten-thousand-waiter-count inventories. Retire the 10,000-caller bound and failed-recovery-subscriber-ending assertion aliases. Keep same-root owner cancellation, pre-ready replacement, held root-close join, stale-generation recovery delivery and initial failed-root ownership mappings backed by retained real-host callbacks with injected subscription/error/physical-exit promises. No actual native watcher, process termination or resource bound was observed. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1683 retires changed-source assertion and execution scope without equivalent replacement coverage. Existing unchanged-selector receipts remain scoped to their original sources. Historical prior-source oracle: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Fill the global watcher-child reservation, require native desktop, paired-runtime, and WSL setup to retain typed transient capacity and retry after one serialized release, then cancel pending desktop and paired-client watches and require no retry. Hold one live anchor while aborting 10,000 callers at the capacity, quarantine-assignment, runtime-root, relay-setup, and SSH-registration layers; require exactly one explicit waiter and one base-promise reaction to remain, then zero after settlement. Hold an old relay unsubscribe, queue one same-root setup leader and one anchor, then abort 10,000 joiners; require every cancellation to settle before teardown releases, exactly one anchor waiter, and only one later physical install. Advance the former paired-web callback deadline while capacity remains full, require cancellation ownership to stay live, publish the server token before ready, and require files.unwatch to abort setup before a later slot release can install a native root. Reject the first ready-watch unwatch with a physical-exit promise, resolve that exit later, and require a fresh physical unwatch attempt, registry release, and exactly one stream end. Fill one healthy shared child with multiple roots, map a standard SSH repository's base, Git common directory, and worktree roots to one relay supervisor, then inject IPC disconnect-before-exit, queued and active cancellation, operations during termination, kill-without-exit, repeated unkillable generations, initial and recovery timeouts, and shard failure. During local and SSH deletion, attempt a late terminal spawn whose worktree identity and cwd name different roots, enumerate a non-prefix remote PTY by authoritative worktree ownership, withhold daemon/relay exit callbacks, make attach positively prove a concurrent-shutdown PID dead, and make the provider unavailable; require every acquired admission to roll back on rejection, dead-PID proof to settle physical exit before reaping, timeout to retain ownership, and Git/filesystem deletion never to start. Require bounded watcher process count, physical-exit settlement, healthy-root recovery, stale-generation rejection, overflow plus later events, and fail-closed destructive cleanup. Verify relay build hashes and remote install probes require both relay.js and relay-watcher.js. Launch the built relay with a real PTY and Parcel watch, kill only the watcher child, and require the same relay PID and PTY to answer before a replacement child delivers overflow and a post-crash event.", "commands": [ - "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/shared/promise-settlement-waiters.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", - "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", + "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/promise-settlement-waiters.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", + "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts", @@ -12343,7 +12336,6 @@ "src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts", "src/renderer/src/web/web-runtime-client.test.ts", "src/shared/cross-platform-path.test.ts", - "src/shared/physical-exit-tracker.test.ts", "src/shared/promise-settlement-waiters.test.ts", "config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs", "config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-resource-probe.mjs" @@ -12361,12 +12353,6 @@ "capacity notification closes the release-before-listen race and serializes reserving waiters per released slot" ] }, - { - "file": "src/shared/physical-exit-tracker.test.ts", - "assertions": [ - "timed-out physical-exit waiters detach while active and later retries still settle on exact exit" - ] - }, { "file": "src/shared/promise-settlement-waiters.test.ts", "assertions": [ @@ -12790,7 +12776,9 @@ "Audit3628: remove the entire one-authored/one-finite RepositoryRemoveProjectSection happy-dom suite. Accept losing the local zero-to-one-terminal stale-count revalidation alarm: first confirmation defers the removal callback and second confirmation invokes it after the count snapshot updates. The test never asserts updated warning text/count, actual terminal creation or removal/PTY teardown, host/scope routing, cancellation or folder/mobile behavior. No equivalent replacement or end-to-end warning-before-teardown proof asserted. Static evidence only; historical receipts retain original scope.", "Audit3629 removes two singleton parser suites: WSL Claude plugin metadata out-of-range index rejection and Git checkout unlink-warning path extraction. Their real range-refusal and quoted-path extraction alarms are intentionally lost without replacement; no WSL execution, checkout recovery or equivalent remaining coverage is claimed.", "Audit3832 deliberately retires76 authored/79 finite cases:75 runtime compatibility cases/78 finite cases across14 fragments, plus one localization extractor default-flag case. Three whole runtime fragments are deleted;27 authored/30 finite cases remain across the reviewed sources. This gate retains only its own selected scope; no equivalent replacement or fresh runtime/native/remote evidence is claimed. Runtime component A: Audit3828 composes3822 with independent3824: deliberately retires49 authored/52 finite cases from seven compatibility fragments, leaving15 authored/18 finite cases and deleting two entire fragments. Accepted losses: positive folder-worker recovery/materialization and reveal deadline; persisted-key normalization and legacy split/group/focus projection; fixed stale CAS refusal; occupied/alias/restored/preallocated terminal-handle variants; fixed OpenCode/Cursor/Claude/Codex/Antigravity classification, readiness, title and management examples; direct private-map browser authority projections; browser-focus and OMP title projection; already-aborted claim cleanup. Additional3824 loss: src/main/runtime/orca-runtime-tests/terminal-handles-and-agent-status-part-02.spec.ts :: does not poll a wrapper foreground for a speculative CLI prompt send :: Speculative retryForegroundWrappers:false check must return false on a wrapper after one foreground read, without polling the supplied later codex response. These real bounded alarms are deliberately retired for low marginal value. Retained callbacks are unchanged and provide only their own bounded scope, not equivalent replacement. Historical receipts do not validate reduced callbacks. No fresh runtime/native/SSH/WSL/phone/browser evidence or full transitive closure is claimed. Runtime component B: Audit3834 deliberately retires26 authored/26 finite cases from seven fresh compatibility fragments, leaving10/10 and deleting the one-case saved-binding reattachment fragment. Original position58 is excluded: its existing substantive3578 KEEP7 review remains historical, with no fresh credit. Accepted losses: fixed hook/provider-session identities and stale metadata refusal; decorative/pre-title foreground ordering variants; saved-binding surface reattachment; saved-row exit ghost removal and silent activation selection; unsupported headless wake; positive pending materialization/group projections; per-caller navigation selection; positive SSH hydration/read partition; laptop mobile publication/buffer and background/pending/status projections; abnormal/unregistered SSH grace, normal-exit refusal, persisted SSH hydration, positive serve reattachment, pending-agent launch arguments and direct seeded running-launch admission guard. These are real bounded alarms deliberately retired for low marginal value. Retained cases preserve their own distinct deferred foreground coalescing, usable handle continuity, stale inventory refresh, concurrent browser snapshot preservation, renderer graph fencing, caller dedup isolation, SSH partition writes, runtime split lifetime, independent relay-ready publication, lease admission/state/expiry. The direct running-launch no-spawn guard alarm is deliberately retired; no remaining owning-launch refusal coverage is claimed. Historical runs do not validate reduced callbacks. No equivalent replacement, runtime/native/SSH/WSL/phone/browser result or full transitive closure is claimed. Additional extractor loss: config/scripts/localization/source-extraction/audit-localization-native-dialogs.test.mjs :: does not change the existing renderer scan by default :: Default options must omit the five native-only fields in this supplied snippet. No equivalent replacement is claimed.", - "Audit4358 retired original selector fields (historical provenance only; no current execution claim): {\"commands\":[\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/shared/promise-settlement-waiters.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts\",\"pnpm run build:electron-vite\",\"node config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-resource-probe.mjs\",\"node config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"ELECTRON_RUN_AS_NODE=1 pnpm exec electron config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"pnpm exec vitest run --config config/vitest.config.ts\"],\"testFiles\":[\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts\",\"src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts\",\"src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts\",\"src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts\",\"src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts\",\"src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts\",\"src/main/ipc/worktrees-orphan-directory-cleanup.test.ts\",\"src/main/ipc/worktrees-remove-preflight.test.ts\",\"src/main/workspaces/removal/watcher-removal-gate.test.ts\",\"src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts\",\"src/main/providers/local-pty/local-pty-provider-shutdown.test.ts\",\"src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts\",\"src/main/daemon/terminal-host/testing/terminal-host.test.ts\",\"src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"src/main/runtime/files/watch/orca-runtime-files-watch.test.ts\",\"src/main/runtime/workspaces/removal/worktree-teardown.test.ts\",\"src/main/runtime/construction/orca-runtime.test.ts\",\"src/main/runtime/rpc/methods/files/files.test.ts\",\"src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts\",\"src/renderer/src/web/web-runtime-client.test.ts\",\"src/shared/cross-platform-path.test.ts\",\"src/shared/physical-exit-tracker.test.ts\",\"src/shared/promise-settlement-waiters.test.ts\",\"config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-resource-probe.mjs\"]}" + "Audit4358 retired original selector fields (historical provenance only; no current execution claim): {\"commands\":[\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/shared/promise-settlement-waiters.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts\",\"pnpm run build:electron-vite\",\"node config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-resource-probe.mjs\",\"node config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"ELECTRON_RUN_AS_NODE=1 pnpm exec electron config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"pnpm exec vitest run --config config/vitest.config.ts\"],\"testFiles\":[\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts\",\"src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts\",\"src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts\",\"src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts\",\"src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts\",\"src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts\",\"src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts\",\"src/main/ipc/worktrees-orphan-directory-cleanup.test.ts\",\"src/main/ipc/worktrees-remove-preflight.test.ts\",\"src/main/workspaces/removal/watcher-removal-gate.test.ts\",\"src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts\",\"src/main/providers/local-pty/local-pty-provider-shutdown.test.ts\",\"src/main/daemon/pty-subprocess/testing/pty-subprocess.test.ts\",\"src/main/daemon/terminal-host/testing/terminal-host.test.ts\",\"src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts\",\"src/main/runtime/files/watch/orca-runtime-files-watch.test.ts\",\"src/main/runtime/workspaces/removal/worktree-teardown.test.ts\",\"src/main/runtime/construction/orca-runtime.test.ts\",\"src/main/runtime/rpc/methods/files/files.test.ts\",\"src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts\",\"src/renderer/src/web/web-runtime-client.test.ts\",\"src/shared/cross-platform-path.test.ts\",\"src/shared/physical-exit-tracker.test.ts\",\"src/shared/promise-settlement-waiters.test.ts\",\"config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-fault-harness.mjs\",\"config/scripts/diagnostics/runtime-watchers/runtime-file-watcher-resource-probe.mjs\"]}", + "Audit5574 exact prior command before retired physical-exit selector removal: pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/shared/promise-settlement-waiters.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot", + "Audit5574 exact prior command before retired physical-exit selector removal: pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/filesystem/watchers/filesystem-watcher.test.ts src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts src/main/ipc/filesystem/watcher-process/parcel-watcher-process.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-supervisor-capacity.test.ts src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-disconnect-termination.test.ts src/main/ipc/filesystem/watcher-process/event-delivery/parcel-watcher-event-delivery.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-local-unsubscribe.test.ts src/main/ipc/filesystem/watchers/filesystem-watcher-wsl.test.ts src/main/ipc/worktrees-orphan-directory-cleanup.test.ts src/main/ipc/worktrees-remove-preflight.test.ts src/main/workspaces/removal/watcher-removal-gate.test.ts src/main/runtime/files/watch/orca-runtime-files-watch.test.ts src/main/runtime/workspaces/removal/worktree-teardown.test.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/methods/files/files.test.ts src/main/runtime/rpc/methods/files/files-watch-cancellation.test.ts src/renderer/src/web/web-runtime-client.test.ts src/shared/cross-platform-path.test.ts src/shared/physical-exit-tracker.test.ts src/main/ipc/pty/pty-spawn-cwd-fallback.test.ts src/main/providers/local-pty/local-pty-provider-shutdown.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/daemon/terminal-host/testing/terminal-host.test.ts src/main/daemon/terminal-host/testing/terminal-host-session-reaping-leak.test.ts --reporter=dot" ], "demotionRule": "Demote or quarantine if the fault harness flakes without a product or harness bug, if healthy operation exceeds one runtime watcher child, if total physical operation exceeds eight children including retiring generations, if quarantine children outlive their roots or repeat after fusing, if event delivery becomes unbounded, or if metadata/stat work returns to the serve process." }, diff --git a/config/scripts/ci/sharding/ci-shard-timings.json b/config/scripts/ci/sharding/ci-shard-timings.json index fe9298209ab..59033b6d704 100644 --- a/config/scripts/ci/sharding/ci-shard-timings.json +++ b/config/scripts/ci/sharding/ci-shard-timings.json @@ -36,7 +36,6 @@ "config/scripts/static-analysis/repository-layout/check-root-directory-entries.test.mjs": 936, "config/scripts/static-analysis/process-boundaries/check-runtime-electron-ratchet-graph.test.mjs": 160, "config/scripts/static-analysis/process-boundaries/check-runtime-electron-ratchet.test.mjs": 3540, - "config/scripts/daemon-protocol/admission/check-runtime-launcher-protocol-ratchet.test.mjs": 212, "config/scripts/ci/unit-selection/check-test-file-runners.test.mjs": 267, "config/scripts/ci/workflow-contracts/ci-closed-pr-cancellation.test.mjs": 112, "config/scripts/ci/workflow-contracts/ci-draft-pr-admission.test.mjs": 546, @@ -57,7 +56,6 @@ "config/scripts/ci/sharding/ci-unit-timing-reporter.test.mjs": 374, "config/scripts/ci/workflow-contracts/cloud-security-history-workflow.test.mjs": 357, "config/scripts/runtime-verification/codex-account/codex-primary-home-tripwire.test.ts": 378, - "config/scripts/orcad-distribution/template/compact-packaged-orcad-ripgrep.test.mjs": 1153, "config/scripts/desktop-build/output-contracts/dark-build-switches.test.mjs": 52, "config/scripts/dependency-security/audit-tools/dependency-security-audit.test.mjs": 187, "config/scripts/dependency-security/audit-tools/dependency-security-patches.test.mjs": 50, @@ -584,7 +582,6 @@ "src/main/ai-vault/scanners/devin/session-scanner-devin-dedup.test.ts": 501, "src/main/ai-vault/scanners/devin/session-scanner-devin-parser.test.ts": 283, "src/main/ai-vault/session-scanner-discovery-pipeline.test.ts": 244, - "src/main/ai-vault/scanners/droid/session-scanner-droid-parser.test.ts": 166, "src/main/ai-vault/session-scanner-first-user-prompt.test.ts": 60, "src/main/ai-vault/scanners/session-scanner-graph-parsers.test.ts": 176, "src/main/ai-vault/scanners/grok/session-scanner-grok-parser.test.ts": 199, @@ -691,7 +688,6 @@ "src/main/automations/automation-zero-grace-tick-latency.test.ts": 2108, "src/main/automations/dispatch/dispatch-refusal-wsl-move.test.ts": 577, "src/main/automations/external-managers/external-automation-manager-cache.test.ts": 70, - "src/main/automations/external-managers/external-automation-probe-scheduler.test.ts": 97, "src/main/automations/external-managers/scoped-external-automations.test.ts": 391, "src/main/automations/run-terminal-retention.test.ts": 112, "src/main/automations/automation-workspace-create.test.ts": 50, @@ -1484,7 +1480,6 @@ "src/main/git/command-runner/git-admission-storm-measurement.test.ts": 264, "src/main/git/command-runner/git-command-resolution-windows-checkout.test.ts": 133, "src/main/git/command-runner/git-exec-admission-lifetime.test.ts": 718, - "src/main/git/command-runner/git-operation-executor.test.ts": 59, "src/main/git/command-runner/git-spawn-wsl-admission.test.ts": 153, "src/main/git/command-runner/missing-git-spawn-cwd.test.ts": 218, "src/main/git/command-runner/spawned-command-tree-kill.test.ts": 81, @@ -1719,7 +1714,6 @@ "src/main/host/deferred-secret-protection-report.test.ts": 81, "src/main/host/electron-http-client.test.ts": 496, "src/main/host/electron-manual-redirect-fetch.test.ts": 52, - "src/main/host/safe-storage-availability.test.ts": 51, "src/main/host/secret-protection-report.test.ts": 59, "src/main/i18n/main-i18n-lazy-locale.test.ts": 518, "src/shared/image-file-signature.test.ts": 47, @@ -1785,7 +1779,6 @@ "src/main/ipc/filesystem/filesystem-wsl-stopped-distro-reads.test.ts": 1284, "src/main/ipc/filesystem/filesystem.test.ts": 2043, "src/main/ipc/filesystem/local-disk-write-precondition.test.ts": 8407, - "src/main/ipc/filesystem/local-file-range-read.test.ts": 56, "src/main/ipc/filesystem/local-regular-file-read.test.ts": 78, "src/main/ipc/filesystem/watcher-process/child-lifecycle/parcel-watcher-child-registry.test.ts": 93, "src/main/ipc/filesystem/watcher-process/supervision/parcel-watcher-crash-fuse.test.ts": 54, @@ -1909,7 +1902,6 @@ "src/main/ipc/ssh/ssh-host-user-disconnect.test.ts": 4734, "src/main/ipc/ssh/ssh-passphrase.test.ts": 135, "src/main/ipc/ssh/ssh.test.ts": 6905, - "src/main/ipc/terminal-preview-output-stream.test.ts": 53, "src/main/ipc/terminal-render-desync-evidence.test.ts": 78, "src/main/ipc/terminal-startup-color-query-replies.test.ts": 265, "src/main/ipc/filesystem/watcher-process/root-paths/watcher-event-root-path-rewrite.test.ts": 48, @@ -2075,7 +2067,6 @@ "src/main/native-chat/agent-session-journal/store-lifecycle/journal-settlement-contracts.test.ts": 3953, "src/main/native-chat/agent-session-journal/durable-rows/journal-storage-admission.test.ts": 1276, "src/main/native-chat/agent-session-journal/replay/journal-streaming-replay.test.ts": 1394, - "src/main/native-chat/agent-session-journal/queued-messages/queued-message-context-clear.test.ts": 60, "src/main/native-chat/agent-session-journal/queued-messages/queued-message-edit-leases.test.ts": 79, "src/main/native-chat/agent-session-timeline/provider-timeline-assembler-earlier-turn-end.test.ts": 686, "src/main/native-chat/agent-session-timeline/provider-timeline-assembler-held-rows.test.ts": 799, @@ -2194,7 +2185,6 @@ "src/main/node-runtime/runtime-archive-download.test.ts": 149, "src/main/notebook/notebook-kernel.test.ts": 151, "src/main/observability/bundle.test.ts": 696, - "src/main/observability/diagnostic-upload-http.test.ts": 56, "src/main/observability/local-file-sink.test.ts": 1124, "src/main/observability/redactor-environment-lines.test.ts": 46, "src/main/observability/redactor.test.ts": 80, @@ -2656,12 +2646,10 @@ "src/main/runtime/browser-host/commands/browser-host-command-ledger-capacity.test.ts": 140, "src/main/runtime/browser-host/commands/browser-host-command-ledger.test.ts": 136, "src/main/runtime/browser-host/leases/browser-host-lease-registry.test.ts": 184, - "src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts": 159, "src/main/runtime/browser-host/reconciliation/browser-host-page-placement.test.ts": 169, "src/main/runtime/browser-host/reconciliation/browser-host-page-reconciliation-preconditions.test.ts": 129, "src/main/runtime/browser-host/reconciliation/browser-host-page-retirement.test.ts": 59, "src/main/runtime/browser/network/browser-network-tunnel-paired-runtime.integration.test.ts": 5293, - "src/main/runtime/browser/screencast/browser-screencast-driver-attribution.test.ts": 5015, "src/main/runtime/browser/screencast/browser-screencast-renderer-throttle-lease.test.ts": 5665, "src/main/runtime/browser/tabs/browser-session-tab-selection-snapshot.test.ts": 45, "src/main/runtime/browser/screencast/browser-screencasts.test.ts": 632, @@ -2673,7 +2661,6 @@ "src/main/runtime/agent-session/lifecycle/claude-structured-failed-start-resume.test.ts": 2454, "src/main/runtime/agent-session/lifecycle/claude-structured-resumed-start-failure.test.ts": 4153, "src/main/runtime/agent-session/lifecycle/claude-structured-startup-fault-is-not-an-exit.test.ts": 2741, - "src/main/runtime/terminal/wait/claude-worker-start-readiness.test.ts": 4076, "src/main/runtime/browser/client-pages/client-hosted-browser-page-persistence.integration.test.ts": 4022, "src/main/runtime/browser/client-pages/client-hosted-browser-page-persistence.test.ts": 315, "src/main/runtime/browser/client-pages/client-hosted-browser-row-publication.test.ts": 73, @@ -2919,7 +2906,6 @@ "src/main/runtime/terminal/launch/qoder-mobile-resume-adoption.test.ts": 22896, "src/main/runtime/terminal/identity/quarter-circle-title-send-authorization.test.ts": 25181, "src/main/runtime/terminal/lifecycle/queued-terminal-graph-exit.test.ts": 4008, - "src/main/runtime/terminal/output/recent-pty-output-retention.test.ts": 114, "src/main/runtime/session-construction/agent-session/remote-agent-session-host-authority.integration.test.ts": 7614, "src/main/runtime/browser/screencast/remote-browser-screencast-frame-admission.test.ts": 316, "src/main/runtime/terminal/driver/remote-desktop-driver.test.ts": 4334, @@ -3397,7 +3383,6 @@ "src/main/pty/shell-startup/shell-startup-identity-scanner.test.ts": 39, "src/main/pty/shell-startup/shell-startup-output-scanner.test.ts": 58, "src/main/pty/shell-startup/shell-wrapper-content-address.test.ts": 49, - "src/main/filesystem/sidecar-snapshot-file.test.ts": 65, "src/main/source-control/hosted-review-azure-devops.integration.test.ts": 818, "src/main/source-control/hosted-review-base-ref-suffix.test.ts": 474, "src/main/source-control/hosted-review-bitbucket.integration.test.ts": 1172, @@ -3719,7 +3704,6 @@ "src/main/window/dropped-path-preparation-ipc.test.ts": 129, "src/main/window/dropped-path-preparation.test.ts": 602, "src/main/window/foreground-activation-policy.test.ts": 61, - "src/main/window/history-gc-worktree-ids.test.ts": 384, "src/main/window/host-frame-navigation-guard.test.ts": 105, "src/main/window/host-frame-permission-policy.test.ts": 100, "src/main/window/mac-app-paste-input.test.ts": 85, @@ -3956,7 +3940,6 @@ "src/renderer/src/components/browser-pane/annotate/browser-grab-toast-owner-cleanup.test.tsx": 1007, "src/renderer/src/components/browser-pane/annotate/markup-gesture.test.ts": 95, "src/renderer/src/components/browser-pane/annotate/markup-shape-hit-test.test.ts": 76, - "src/renderer/src/components/browser-pane/annotate/markup-shape-render.test.ts": 64, "src/renderer/src/components/browser-pane/annotate/use-browser-page-annotation-send.test.tsx": 1485, "src/renderer/src/components/browser-pane/annotate/useMarkupPointerHandlers.test.ts": 280, "src/renderer/src/components/browser-pane/assemble-chrome/BrowserPane.webview-preferences.test.ts": 1920, @@ -4111,8 +4094,6 @@ "src/renderer/src/components/editor/markdown-export-html.test.ts": 47, "src/renderer/src/components/editor/markdown/navigation/markdown-navigation-details.test.ts": 626, "src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-client.test.ts": 65, - "src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-budget.test.ts": 400, - "src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-cache.test.ts": 588, "src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document.test.ts": 1670, "src/renderer/src/components/editor/markdown-preview/links/markdown-preview-local-images.test.ts": 1639, "src/renderer/src/components/editor/markdown-preview/review/markdown-preview-review-frame-lifecycle.test.tsx": 642, @@ -4317,7 +4298,6 @@ "src/renderer/src/components/native-chat/viewport/rail/native-chat-active-rail-item.test.ts": 62, "src/renderer/src/components/native-chat/messages/agent-senders/native-chat-agent-message-sender-host.test.tsx": 8140, "src/renderer/src/components/native-chat/messages/agent-senders/native-chat-agent-message-sender-identity.test.tsx": 1880, - "src/renderer/src/components/native-chat/appearance/native-chat-appearance-write.test.ts": 329, "src/renderer/src/components/native-chat/attachments/uploads/native-chat-attachment-upload.test.ts": 1614, "src/renderer/src/components/native-chat/conversation/slots/native-chat-compaction-visibility.test.ts": 363, "src/renderer/src/components/native-chat/composer/editor/native-chat-composer-composition.test.tsx": 2961, @@ -4350,7 +4330,6 @@ "src/renderer/src/components/native-chat/queue/editing/native-chat-queued-edit-draft.test.ts": 649, "src/renderer/src/components/native-chat/viewport/rail/native-chat-rail-outline-parity.test.ts": 497, "src/renderer/src/components/native-chat/attachments/uploads/native-chat-resolved-path-ownership.test.ts": 1749, - "src/renderer/src/components/native-chat/drafts/native-chat-sent-prompt-history.test.ts": 217, "src/renderer/src/components/native-chat/session/terminal/assembly/native-chat-session-assembler.test.ts": 221, "src/renderer/src/components/native-chat/session/options/catalog/native-chat-session-option-enrichment.test.ts": 2042, "src/renderer/src/components/native-chat/session/terminal/read/native-chat-session-transport.test.ts": 381, @@ -4390,7 +4369,6 @@ "src/renderer/src/components/native-chat/session/terminal/read/use-native-chat-live-session.test.ts": 2218, "src/renderer/src/components/native-chat/composer/pickers/use-native-chat-mention-files.test.tsx": 2162, "src/renderer/src/components/native-chat/viewport/rail/use-native-chat-message-rail.test.ts": 655, - "src/renderer/src/components/native-chat/markdown/use-native-chat-paced-text.remount.test.tsx": 327, "src/renderer/src/components/native-chat/paste/use-native-chat-paste-lifetime.test.tsx": 567, "src/renderer/src/components/native-chat/paste/use-native-chat-pasted-text-file.test.tsx": 2385, "src/renderer/src/components/native-chat/session/terminal/delivery/use-native-chat-pending-delivery.test.tsx": 457, @@ -4431,7 +4409,6 @@ "src/renderer/src/components/plugins/page/PluginAddsSection.test.tsx": 2043, "src/renderer/src/components/plugins/page/PluginCommandReplacementRow.test.tsx": 1926, "src/renderer/src/components/plugins/page/PluginDetailPage.test.tsx": 3367, - "src/renderer/src/components/plugins/state/use-plugin-contribution-source.test.tsx": 1935, "src/renderer/src/components/plugins/state/use-plugin-install-link.test.tsx": 518, "src/renderer/src/components/plugins/view/plugin-view-acts.test.tsx": 3241, "src/renderer/src/components/plugins/view/plugin-view-data-acts.test.tsx": 3002, @@ -4640,7 +4617,6 @@ "src/renderer/src/components/sidebar/workspace-board/projection/workspace-board-task-status-sync.test.ts": 378, "src/renderer/src/components/sidebar/workspace-actions/deletion/workspace-delete-lineage.test.ts": 51, "src/renderer/src/components/sidebar/workspace-board/search/workspace-kanban-search.test.ts": 176, - "src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.test.ts": 235, "src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-detail-read.test.ts": 662, "src/renderer/src/components/sidebar/workspace-card/review/workspace-reference-refresh-targets.test.ts": 945, "src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-activity-summary.test.ts": 577, @@ -4729,7 +4705,6 @@ "src/renderer/src/components/task-page/jira/task-page-jira-linked-issues.test.ts": 204, "src/renderer/src/components/task-page/jira/filters/use-task-page-jira-project-scope.test.tsx": 2642, "src/renderer/src/components/task-page/jira/filters/use-task-page-jira-quick-filters.test.tsx": 1466, - "src/renderer/src/components/task-page/jira/filters/use-task-page-jira-saved-filters.test.tsx": 1501, "src/renderer/src/components/task-page/jira/creation/use-task-page-jira-summary-generation.test.tsx": 571, "src/renderer/src/components/task-page/linear/task-page-linear-creation-lifetime.test.tsx": 3315, "src/renderer/src/components/task-page/linear/issues/task-page-linear-in-orca-issues.test.ts": 430, @@ -4809,7 +4784,6 @@ "src/renderer/src/components/terminal-pane/pty-connection/spawn/main-pane-start-wait.test.ts": 76, "src/renderer/src/components/terminal-pane/pty-connection/serialization/pane-serializer-register.test.ts": 123, "src/renderer/src/components/terminal-pane/pty-connection/output-restore/snapshot-covered-terminal-queries.test.ts": 150, - "src/renderer/src/components/terminal-pane/pty-connection/output/terminal-input-echo-delay.test.ts": 132, "src/renderer/src/components/terminal-pane/pty-connection/host-ownership/unserved-ssh-pane-bridge.test.ts": 70, "src/renderer/src/components/terminal-pane/pty-transport/delivery/pty-dispatcher-delivery-resync.test.ts": 85, "src/renderer/src/components/terminal-pane/pty-transport/delivery/pty-dispatcher-pi-routing.test.ts": 1362, @@ -4913,7 +4887,6 @@ "src/renderer/src/components/terminal-pane/links/files/terminal-link-provider-markdown.test.ts": 1480, "src/renderer/src/components/terminal-pane/links/gestures/terminal-link-pty-mouse-suppression.test.ts": 574, "src/renderer/src/components/terminal-pane/links/files/terminal-link-same-id-ssh-file-host.test.ts": 879, - "src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-live-layout-reconciliation.test.ts": 74, "src/renderer/src/components/terminal-pane/input/keyboard/terminal-option-kitty-release.test.ts": 52, "src/renderer/src/components/terminal-pane/input/file-drop/terminal-pane-element-file-drop.test.tsx": 1748, "src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-pane-frame-reconciliation.test.ts": 903, @@ -4921,7 +4894,6 @@ "src/renderer/src/components/terminal-pane/layout/detach/terminal-pane-tab-detach-main-commit.test.ts": 2090, "src/renderer/src/components/terminal-pane/layout/detach/terminal-pane-tab-detach-main-move.test.ts": 2147, "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts": 473, - "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-registry.test.ts": 245, "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-sleep-preserved-exit.test.ts": 399, "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-sole-newborn-exit.test.ts": 402, "src/renderer/src/components/terminal-pane/emulation/terminal-parser-handler-guard.test.ts": 55, @@ -5160,10 +5132,8 @@ "src/renderer/src/lib/workspace/creation/work-item/launch-work-item-direct-setup.test.tsx": 3435, "src/renderer/src/lib/work-items/linear/linear-issue-workspace-attachment.test.ts": 99, "src/renderer/src/lib/work-items/linked-work-item-context.test.ts": 64, - "src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts": 295, "src/renderer/src/lib/monaco-languages/monarch-embed-entry-recursion.test.ts": 697, "src/renderer/src/lib/monaco-languages/plugin-grammar-worker-client.test.ts": 198, - "src/renderer/src/lib/monaco-languages/plugin-syntax-slot-pool.test.ts": 65, "src/renderer/src/lib/monaco-languages/register-astro.test.ts": 267, "src/renderer/src/lib/monaco-languages/register-jsonl.test.ts": 259, "src/renderer/src/lib/monaco-languages/register-svelte.test.ts": 319, @@ -5184,7 +5154,6 @@ "src/renderer/src/lib/text-input/paste/paste-payload-metadata.test.ts": 53, "src/renderer/src/lib/path.test.ts": 55, "src/renderer/src/lib/plugin-icons/plugin-icon-svg.test.ts": 231, - "src/renderer/src/lib/source-control/review/pr-bot-author-overrides.test.ts": 349, "src/renderer/src/lib/source-control/review/comments/pr-comment-thread-resolution.test.ts": 48, "src/renderer/src/lib/editor/file-operations/remap-open-editor-tabs-for-path-change.test.ts": 2178, "src/renderer/src/lib/renderer-agent-status-observation-ingress.test.ts": 81, @@ -5231,7 +5200,6 @@ "src/renderer/src/lib/workspace/ownership/worktree-live-terminal-surface-owners.test.ts": 266, "src/renderer/src/lib/workspace/ownership/worktree-operation-route.test.ts": 342, "src/renderer/src/lib/workspace/search/worktrees/worktree-palette-comment-snippet.test.ts": 53, - "src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts": 165, "src/renderer/src/lib/workspace/activation/worktree-reactivation-preserved-pane-replacement.test.ts": 2268, "src/renderer/src/lib/workspace/activation/worktree-reactivation-tab-forkbomb.test.ts": 4131, "src/renderer/src/lib/workspace/ownership/worktree-runtime-owner-index.detected.test.ts": 121, @@ -5698,7 +5666,6 @@ "src/shared/ai-vault/search/ai-vault-search-status-fallback.test.ts": 175, "src/shared/ai-vault/scanning/ai-vault-session-depth.test.ts": 78, "src/shared/ai-vault/session-display/ai-vault-session-filters.test.ts": 176, - "src/shared/ai-vault/resume/ai-vault-ssh-resume-target.test.ts": 84, "src/shared/ansi-escape-sequences-consumers.test.ts": 140, "src/shared/antigravity-generation-plan.test.ts": 122, "src/shared/automatic-work-run-marker.test.ts": 93, @@ -5801,7 +5768,6 @@ "src/shared/git/remotes/git-remote-error.test.ts": 88, "src/shared/git/remotes/git-remote-identity.test.ts": 56, "src/shared/git/remotes/git-remote-url-index.test.ts": 47, - "src/shared/git/compatibility/git-resolution-config-snapshot.test.ts": 72, "src/shared/git/commands/git-ssh-policy-env.test.ts": 221, "src/shared/git/status/git-status-branch-line-total-cache.test.ts": 82, "src/shared/git/status/git-status-conflict-entries.test.ts": 56, @@ -5868,12 +5834,10 @@ "src/shared/managed-orcad-execution-host.test.ts": 170, "src/shared/managed-orcad-ssh-owner.test.ts": 42, "src/shared/manual-repo-order.test.ts": 44, - "src/shared/map-settled-with-concurrency.test.ts": 61, "src/shared/map-with-concurrency.test.ts": 50, "src/shared/markdown-document-listing-limits.test.ts": 44, "src/shared/markdown-document-paths.test.ts": 51, "src/shared/mcp-config.test.ts": 92, - "src/shared/mermaid-flowchart-contrast.test.ts": 180, "src/shared/remote-runtime/e2ee/mobile-e2ee-v2-contract.test.ts": 56, "src/shared/remote-runtime/e2ee/mobile-e2ee-v2-framing.test.ts": 48, "src/shared/remote-runtime/e2ee/node/mobile-e2ee-v2-node-key-schedule.test.ts": 125, @@ -5922,7 +5886,6 @@ "src/shared/native-chat/transcript/native-chat-text-reveal.test.ts": 48, "src/shared/native-chat/transcript/native-chat-transcript-contracts.test.ts": 715, "src/shared/native-chat/transcript/native-chat-transcript-projection.test.ts": 182, - "src/shared/native-chat/transcript/native-chat-transcript-retention.test.ts": 58, "src/shared/native-chat/transcript/native-chat-turn-activity.test.ts": 119, "src/shared/native-chat/transcript/native-chat-turn-fold.test.ts": 192, "src/shared/native-chat/transcript/native-chat-turn-status.test.ts": 69, @@ -5933,7 +5896,6 @@ "src/shared/network-proxy.test.ts": 44, "src/shared/network/manual-address.test.ts": 68, "src/shared/new-workspace-dialog-repo.test.ts": 50, - "src/shared/new-workspace/smart-workspace-linear-intent.test.ts": 64, "src/shared/new-workspace/smart-workspace-url-source-results.test.ts": 67, "src/shared/new-workspace/work-item-lookup-text.test.ts": 56, "src/shared/new-workspace/workspace-source.test.ts": 68, @@ -5962,7 +5924,6 @@ "src/shared/opencode-plugin-permissions.test.ts": 121, "src/shared/opencode-tui-config-registration.test.ts": 91, "src/shared/opencode-tui-plugin-install.test.ts": 82, - "src/shared/openssh-default-shell.test.ts": 54, "src/shared/orca-hook-setup-config.test.ts": 38, "src/shared/orca-session-address.test.ts": 154, "src/shared/orca-yaml-alias-bounds.test.ts": 425, @@ -5991,7 +5952,6 @@ "src/shared/palette-match/palette-match-core.test.ts": 104, "src/shared/palette-match/palette-ranking.test.ts": 46, "src/shared/pan-zoom-view.test.ts": 39, - "src/shared/physical-exit-tracker.test.ts": 46, "src/shared/plugin-theme-settings.test.ts": 55, "src/shared/plugins/approval/plugin-consent-fingerprint.test.ts": 197, "src/shared/plugins/approval/plugin-update-access-growth.test.ts": 189, @@ -6030,11 +5990,9 @@ "src/shared/plugins/manifest/plugin-manifest.test.ts": 234, "src/shared/plugins/view/plugin-editor-shot-acts.test.ts": 112, "src/shared/plugins/workers/plugin-hook-chain.test.ts": 182, - "src/shared/portuguese-ui-language-migration.test.ts": 264, "src/shared/posix-wait-status.test.ts": 40, "src/shared/powershell-native-argument.test.ts": 34, "src/shared/powershell-native-argument.windows.test.ts": 67, - "src/shared/source-control/review-comments/pr-bot-author-overrides.test.ts": 76, "src/shared/source-control/checks/pr-checks-fix-prompt.test.ts": 93, "src/shared/preferred-git-remote.test.ts": 42, "src/shared/priority-semaphore.test.ts": 43, @@ -6146,7 +6104,6 @@ "src/shared/secure-file-fsync-flags.test.ts": 81, "src/shared/secure-file-windows.test.ts": 190, "src/shared/secure-file.test.ts": 69, - "src/shared/secure-path-hardening-retry-budget.test.ts": 63, "src/shared/secure-path-windows-acl.win32.test.ts": 67, "src/shared/session-tab-placement.test.ts": 53, "src/shared/session-tabs-tab-delta.test.ts": 59, @@ -6167,12 +6124,10 @@ "src/shared/sidebar-list/stamp-order.test.ts": 86, "src/shared/sidebar-list/text-order.test.ts": 59, "src/shared/sidebar-list/workspace-review-facts.test.ts": 191, - "src/shared/skill-metadata.test.ts": 41, "src/shared/skill-package-manifest.test.ts": 188, "src/shared/skill-path-containment.test.ts": 49, "src/shared/sleeping-record-legacy-pane-key.test.ts": 59, "src/shared/source-control/listing/source-control-discard-all-sequence.test.ts": 50, - "src/shared/source-control/recovery/source-control-push-failure.test.ts": 51, "src/shared/source-scan/source-tree-scan.test.ts": 50, "src/shared/source-scan/source-tree-walk.test.ts": 62, "src/shared/ssh-pending-pty-kill.test.ts": 43, @@ -6200,7 +6155,6 @@ "src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-tail-retention.test.ts": 220, "src/shared/terminal/links/terminal-links-cjk.test.ts": 116, "src/shared/terminal/links/terminal-links.test.ts": 299, - "src/shared/terminal/links/terminal-markdown-file-links.test.ts": 67, "src/shared/terminal/output/terminal-mode-2031-final-state.test.ts": 96, "src/shared/terminal/protocol/input-modes/terminal-mode-reset-profiles.test.ts": 79, "src/shared/terminal/protocol/input-modes/terminal-mouse-encoding.test.ts": 63, @@ -6212,7 +6166,6 @@ "src/shared/terminal/protocol/escape/terminal-partial-escape-tail-ground-scan.test.ts": 59, "src/shared/terminal/protocol/escape/terminal-partial-escape-tail.fuzz.test.ts": 79, "src/shared/terminal/protocol/escape/terminal-partial-escape-tail.test.ts": 65, - "src/shared/file-links/file-link-path-normalization.test.ts": 50, "src/shared/terminal/protocol/queries/terminal-query-reply.test.ts": 94, "src/shared/terminal/protocol/queries/terminal-reply-query-extraction.test.ts": 46, "src/shared/terminal/protocol/queries/terminal-reply-query-scan.test.ts": 51, @@ -6231,7 +6184,6 @@ "src/shared/tmux-agent-hook-owner.test.ts": 423, "src/shared/tmux-client-attachment.test.ts": 50, "src/shared/tmux-hook-refresh-retirement.test.ts": 608, - "src/shared/tmux-host-attachment-probe.test.ts": 69, "src/shared/agent-launch/permissions/tui-agent-auto-permissions.test.ts": 293, "src/shared/agent-launch/startup/tui-agent-launch-command-argument-values.test.ts": 266, "src/shared/agent-launch/startup/tui-agent-launch-command-override.test.ts": 63, @@ -6376,16 +6328,12 @@ "tests/e2e/global-setup-cli-artifact.unit.test.ts": 58, "tests/e2e/global-teardown.unit.test.ts": 113, "tests/e2e/headless-editor-mirror-identities.unit.test.ts": 1889, - "tests/e2e/helpers/alt-screen-frame.unit.test.ts": 100, "tests/e2e/helpers/client-hosted-browser-fixture.unit.test.ts": 792, "tests/e2e/helpers/electron-crashpad-cleanup.unit.test.ts": 50, "tests/e2e/helpers/electron-home-isolation.unit.test.ts": 140, - "tests/e2e/helpers/electron-launch-args.unit.test.ts": 58, - "tests/e2e/helpers/electron-main-evaluate-retry.unit.test.ts": 49, "tests/e2e/helpers/electron-process-shutdown.unit.test.ts": 6545, "tests/e2e/helpers/golden-source-control.unit.test.ts": 804, "tests/e2e/helpers/headless-paired-runtime-serve-readiness.unit.test.ts": 53, - "tests/e2e/helpers/paired-client-runtime-environment.unit.test.ts": 67, "tests/e2e/helpers/paired-client-window-reveal.unit.test.ts": 57, "tests/e2e/helpers/persisted-profile-state.unit.test.ts": 402, "tests/e2e/helpers/wsl-terminate-retry.unit.test.ts": 60, @@ -6429,13 +6377,10 @@ "tests/tools/omp-config-root-relay-shell.test.mjs": 297, "tests/tools/relay-bench/phone-e2ee-desktop-parity.test.mjs": 111, "tests/tools/relay-bench/region-probe-replay.test.mjs": 79, - "tests/tools/relay-bench/relay-bench-invocation.test.mjs": 85, "tests/tools/relay-bench/relay-bench-state-file.test.mjs": 60, "tests/tools/relay-bench/relay-phone-connect-bench.test.mjs": 93, "tests/tools/win-update-e2e/app-shutdown.test.mjs": 726, - "tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-oracle.test.mjs": 52, "tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-probe.test.mjs": 261, - "tests/tools/windows-pty-native-capability-smoke/run.test.mjs": 49, "src/main/skills/sharing/agent-skill-selection.test.ts": 103, "src/main/skills/bundled-skill-install/bundled-skill-auto-update-eligibility.test.ts": 400, "src/main/skills/bundled-skill-install/bundled-skill-backup-permissions.test.ts": 246, @@ -6461,7 +6406,6 @@ "src/main/skills/skill-delete/skill-delete-plan.test.ts": 239, "src/main/skills/skill-delete/skill-delete-recovery.test.ts": 178, "src/main/skills/skill-delete/skill-deletion.test.ts": 524, - "src/main/skills/filesystem/skill-transaction-staging-visibility.test.ts": 48, "src/main/skills/filesystem/skill-wsl-enumeration-protocol.test.ts": 52, "src/main/skills/discovery/skill-discovery-wsl-bash-filter.test.ts": 2105, "src/main/skills/discovery/skill-discovery-wsl-script-roundtrip.test.ts": 136, diff --git a/config/scripts/daemon-protocol/admission/check-runtime-launcher-protocol-ratchet.test.mjs b/config/scripts/daemon-protocol/admission/check-runtime-launcher-protocol-ratchet.test.mjs deleted file mode 100644 index 357c6f81c81..00000000000 --- a/config/scripts/daemon-protocol/admission/check-runtime-launcher-protocol-ratchet.test.mjs +++ /dev/null @@ -1,108 +0,0 @@ -import { execFileSync } from 'node:child_process' -import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs' -import { tmpdir } from 'node:os' -import { dirname, join } from 'node:path' -import { afterEach, describe, expect, it } from 'vitest' -import { - RUNTIME_PROTOCOL_OVERRIDE_ENV, - checkRuntimeLauncherProtocolRatchet -} from './check-runtime-launcher-protocol-ratchet.mjs' -import { DAEMON_PROTOCOL_SOURCE_PATH } from '../schema-facts/daemon-protocol-facts.mjs' -const repos = [] -const LAUNCHER = 'src/main/managed-server/install/orcad-remote-runtime.ts' - -function git(repo, args) { - return execFileSync('git', args, { - cwd: repo, - encoding: 'utf8', - stdio: ['ignore', 'pipe', 'pipe'] - }) -} - -function write(repo, path, contents) { - const file = join(repo, path) - mkdirSync(dirname(file), { recursive: true }) - writeFileSync(file, contents) -} - -function writeProtocol(repo, current) { - const previous = Array.from({ length: current - 1 }, (_, index) => index + 1) - write( - repo, - DAEMON_PROTOCOL_SOURCE_PATH, - `export const PROTOCOL_VERSION = ${current}\nexport const PREVIOUS_DAEMON_PROTOCOL_VERSIONS = [${previous.join(', ')}] as const\n` - ) -} - -function commit(repo, message) { - git(repo, ['add', '.']) - git(repo, [ - '-c', - 'user.name=test', - '-c', - 'user.email=test@example.com', - 'commit', - '-q', - '--no-gpg-sign', - '-m', - message - ]) - return git(repo, ['rev-parse', 'HEAD']).trim() -} - -/** A base commit at protocol 3, then a candidate commit shaped by `change`. */ -function repoWithCandidate(change) { - const repo = mkdtempSync(join(tmpdir(), 'runtime-launcher-ratchet-')) - repos.push(repo) - git(repo, ['init', '-q']) - writeProtocol(repo, 3) - write(repo, LAUNCHER, 'export const launcher = 1\n') - write(repo, 'src/unrelated.ts', 'export const unrelated = 1\n') - const base = commit(repo, 'base') - change(repo) - commit(repo, 'candidate') - return { repo, base } -} - -afterEach(() => { - for (const repo of repos.splice(0)) { - rmSync(repo, { recursive: true, force: true }) - } -}) - -describe('checkRuntimeLauncherProtocolRatchet against git history', () => { - it('fails when the diff from the base both edits a launcher and bumps PROTOCOL_VERSION', () => { - const { repo, base } = repoWithCandidate((candidate) => { - writeProtocol(candidate, 4) - write(candidate, LAUNCHER, 'export const launcher = 2\n') - }) - expect(checkRuntimeLauncherProtocolRatchet({ repoRoot: repo, base, env: {} }).ok).toBe(false) - expect( - checkRuntimeLauncherProtocolRatchet({ - repoRoot: repo, - base, - env: { [RUNTIME_PROTOCOL_OVERRIDE_ENV]: 'true' } - }).ok - ).toBe(true) - }) - - it('passes a bump next to unrelated edits', () => { - const { repo, base } = repoWithCandidate((candidate) => { - writeProtocol(candidate, 4) - write(candidate, 'src/unrelated.ts', 'export const unrelated = 2\n') - }) - expect(checkRuntimeLauncherProtocolRatchet({ repoRoot: repo, base, env: {} }).ok).toBe(true) - }) - - it('ignores edits to the protocol file that keep PROTOCOL_VERSION', () => { - const { repo, base } = repoWithCandidate((candidate) => { - write( - candidate, - DAEMON_PROTOCOL_SOURCE_PATH, - '// comment\nexport const PROTOCOL_VERSION = 3\nexport const PREVIOUS_DAEMON_PROTOCOL_VERSIONS = [1, 2] as const\n' - ) - write(candidate, LAUNCHER, 'export const launcher = 2\n') - }) - expect(checkRuntimeLauncherProtocolRatchet({ repoRoot: repo, base, env: {} }).ok).toBe(true) - }) -}) diff --git a/config/scripts/orcad-distribution/template/compact-packaged-orcad-ripgrep.test.mjs b/config/scripts/orcad-distribution/template/compact-packaged-orcad-ripgrep.test.mjs deleted file mode 100644 index 2313680fdd0..00000000000 --- a/config/scripts/orcad-distribution/template/compact-packaged-orcad-ripgrep.test.mjs +++ /dev/null @@ -1,81 +0,0 @@ -import { createHash } from 'node:crypto' -import 'node:fs' -import { copyFile, mkdir, mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises' -import { createRequire } from 'node:module' -import { tmpdir } from 'node:os' -import { dirname, join } from 'node:path' -import { afterEach, describe, expect, it, vi } from 'vitest' -import '../../../../src/main/orcad/artifact-slots/orcad-artifact-materializer.ts' -import '../../../../src/main/orcad/artifact-slots/orcad-artifact-identity.ts' -import { - ORCAD_TEMPLATE_MANIFEST_FILENAME, - orcadRipgrepArtifact -} from '../../../../src/shared/orcad-artifacts.ts' -import { writeOrcadTemplateTestFixture } from './orcad-template-test-fixture.mjs' - -const require = createRequire(import.meta.url) -const { compactPackagedOrcadRipgrep } = require('./compact-packaged-orcad-ripgrep.cjs') -const { resealSignedWindowsApp } = require('./packaged-orcad-template.cjs') -const roots = [] -const hash = (bytes) => createHash('sha256').update(bytes).digest('hex') - -afterEach(async () => { - vi.restoreAllMocks() - await Promise.all(roots.splice(0).map((root) => rm(root, { recursive: true, force: true }))) -}) - -async function fixture() { - vi.spyOn(console, 'log').mockImplementation(() => {}) - const appDir = await mkdtemp(join(tmpdir(), 'orca-compact-ripgrep-')) - roots.push(appDir) - const resourcesDir = join(appDir, 'resources') - const templateDir = await writeOrcadTemplateTestFixture(resourcesDir, { compat: true }) - const manifestPath = join(templateDir, ORCAD_TEMPLATE_MANIFEST_FILENAME) - const manifest = JSON.parse(await readFile(manifestPath, 'utf8')) - for (const [target, entry] of Object.entries(manifest.targets)) { - const filename = orcadRipgrepArtifact(target) - const desktop = join(resourcesDir, filename) - await mkdir(dirname(desktop), { recursive: true }) - const bytes = Buffer.from(`${filename}:static binary`) - await writeFile(desktop, bytes) - await writeFile(join(templateDir, 'targets', target, filename), bytes) - entry.files[filename] = hash(bytes) - } - await writeFile(manifestPath, JSON.stringify(manifest)) - return { appDir, resourcesDir, templateDir, manifest, manifestPath } -} - -describe('packaged ripgrep storage', () => { - it('does not launder corrupted target bytes while removing duplicates', async () => { - const f = await fixture() - await writeFile(join(f.templateDir, 'targets/linux-x64-glibc/ripgrep/linux-x64/rg'), 'tampered') - expect(() => compactPackagedOrcadRipgrep(f.resourcesDir)).toThrow('checksum mismatch') - }) - - it.skipIf(process.platform === 'win32')('rejects a shared symlink', async () => { - const f = await fixture() - const shared = join(f.resourcesDir, 'ripgrep/linux-x64/rg') - const other = `${shared}.other` - await copyFile(shared, other) - await rm(shared) - await symlink(other, shared) - expect(() => compactPackagedOrcadRipgrep(f.resourcesDir)).toThrow('must be a regular file') - }) - - it('reseals only shared Windows binaries explicitly returned by SignPath', async () => { - const f = await fixture() - compactPackagedOrcadRipgrep(f.resourcesDir) - const filename = 'ripgrep/win32-x64/rg.exe' - const shared = join(f.resourcesDir, filename) - await writeFile(shared, 'authenticode-signed binary') - const list = join(f.appDir, 'inner-signing-list.txt') - await writeFile(list, 'Orca.exe\r\n') - expect(() => resealSignedWindowsApp(f.appDir, list)).toThrow('checksum mismatch') - await writeFile(list, 'Orca.exe\r\nresources\\ripgrep\\win32-x64\\rg.exe\r\n') - resealSignedWindowsApp(f.appDir, list) - const manifest = JSON.parse(await readFile(f.manifestPath, 'utf8')) - expect(manifest.targets['win32-x64'].files[filename]).toBe(hash(await readFile(shared))) - await writeFile(join(f.resourcesDir, 'ripgrep/linux-x64/rg'), 'unrelated change') - expect(() => resealSignedWindowsApp(f.appDir, list)).toThrow('checksum mismatch') - }) -}) diff --git a/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-back-round-trip.test.ts b/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-back-round-trip.test.ts deleted file mode 100644 index f6de3098d92..00000000000 --- a/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-back-round-trip.test.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { afterEach, describe, expect, it } from 'vitest' -import { BRIDGE_PROTOCOL_VERSION } from '../protocol/bridge-frame-fields' - -import { createFakeBridgePortPair as createPair } from '../test-support/bridge-port-pair-test-harness' -import type { BridgePortPair } from '../test-support/bridge-port-pair-contract' -import type { FakeRpcClient } from '../../test-support/bridge-host-test-fakes' - -const resources = new Set>() -function createFakeBridgePortPair( - ...args: Parameters -): ReturnType { - const resource = createPair(...args) - resources.add(resource) - return resource -} -function closeResources(): void { - for (const resource of resources) { - resource.client.close() - resource.host.dispose() - } - resources.clear() -} - -async function opened(): Promise> { - const pair = createFakeBridgePortPair() - await pair.flush() - return pair -} - -// Use both bridge endpoints: the page’s claim and shell’s Back press travel in opposite directions, so testing either alone misses their coordination. -describe('a Back press crossing from the shell to the page', () => { - it('tells the shell when the last consumer lets go, so the key goes back to the navigator', async () => { - const pair = await opened() - const release = pair.client.claimBack(() => true) - await pair.flush() - release() - await pair.flush() - expect(pair.backClaims).toEqual([true, false]) - }) - - // A sheet can close between claim and press; hand an unclaimed press back to native navigation instead of swallowing it. - it('hands a press nothing took back as a navigate-back, and says so on the page', async () => { - const pair = await opened() - const release = pair.client.claimBack(() => true) - await pair.flush() - release() - await pair.flush() - pair.host.receive(JSON.stringify({ v: BRIDGE_PROTOCOL_VERSION, type: 'ready' })) - await pair.flush() - expect(pair.host.sendBack()).toBe(true) - await pair.flush() - expect(pair.backPops).toEqual(['popped']) - expect(pair.diagnostics).toContainEqual({ kind: 'back-unclaimed' }) - }) - - // Reassert the page’s current claim on init because readReady clears the shell’s claim; otherwise Back can pop a screen beneath an open sheet. - it('says the claim again on the init that answers a re-asked ready', async () => { - const pair = await opened() - pair.client.claimBack(() => true) - await pair.flush() - expect(pair.backClaims).toEqual([true]) - // A stale state causes another ready/init; reassert the claim after the shell clears it. - pair.host.receive(JSON.stringify({ v: BRIDGE_PROTOCOL_VERSION, type: 'ready' })) - await pair.flush() - expect(pair.backClaims).toEqual([true, false, true]) - }) - - it('gives the key back when the page client closes', async () => { - const pair = await opened() - pair.client.claimBack(() => true) - await pair.flush() - pair.client.close() - await pair.flush() - expect(pair.backClaims).toEqual([true, false]) - }) -}) - -afterEach(closeResources) diff --git a/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-route-update.test.ts b/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-route-update.test.ts deleted file mode 100644 index 33793f0369c..00000000000 --- a/mobile/src/mobile-web-shell/bridge/page-lifecycle/bridge-route-update.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { createFakeBridgePortPair } from '../test-support/bridge-port-pair-test-harness' -import type { BridgeInitRoute } from '../protocol/bridge-init-route' - -const SESSION = '/h/host-a/session/wt-1' - -function sessionRoute(paneKey?: string): BridgeInitRoute { - return { - pathname: SESSION, - params: { name: 'my worktree', ...(paneKey === undefined ? {} : { paneKey }) } - } -} - -async function openedOnTheSession(): Promise> { - const pair = createFakeBridgePortPair({ - route: sessionRoute(), - storage: { 'orca:hostDockWidth': '320' } - }) - await pair.flush() - return pair -} - -function recordRouteUpdates(pair: ReturnType): string[] { - const seen: string[] = [] - pair.client.onRouteUpdate((route) => { - seen.push(route?.params?.paneKey ?? '') - }) - return seen -} - -// Deliver pane taps through same-session init updates so the mounted page keeps its state; remount keys exclude pane params (ruling 33.1). -describe('a route update over a re-sent init', () => { - it('reaches the page twice for a repeat tap on the same pane', async () => { - const pair = await openedOnTheSession() - const seen = recordRouteUpdates(pair) - pair.host.publishRoute(sessionRoute('pane-1')) - await pair.flush() - pair.host.publishRoute(sessionRoute()) - await pair.flush() - pair.host.publishRoute(sessionRoute('pane-1')) - await pair.flush() - expect(seen).toEqual(['pane-1', '', 'pane-1']) - }) - - // Repeated ready repairs state but is not another pane request; notify listeners only when route params move. - it('publishes nothing for a re-asked ready that carries the route the page holds', async () => { - const pair = await openedOnTheSession() - const seen = recordRouteUpdates(pair) - pair.host.receive(JSON.stringify({ v: 1, type: 'ready' })) - await pair.flush() - expect(seen).toEqual([]) - pair.host.publishRoute(sessionRoute('pane-1')) - await pair.flush() - pair.host.receive(JSON.stringify({ v: 1, type: 'ready' })) - await pair.flush() - expect(seen).toEqual(['pane-1']) - }) - - it('leaves a request pending across the update still resolving', async () => { - const pair = await openedOnTheSession() - const pending = pair.client.sendRequest('worktree.list') - await pair.flush() - pair.host.publishRoute(sessionRoute('pane-1')) - await pair.flush() - const sent = pair.rpc.requests.find((request) => request.method === 'worktree.list') - sent?.resolve({ id: 'r1', ok: true, result: { worktrees: [] } }) - await pair.flush() - await expect(pending).resolves.toMatchObject({ ok: true }) - }) -}) diff --git a/mobile/src/mobile-web-shell/bridge/page-lifecycle/page-back-consumers.test.ts b/mobile/src/mobile-web-shell/bridge/page-lifecycle/page-back-consumers.test.ts deleted file mode 100644 index 470bbd7e4b0..00000000000 --- a/mobile/src/mobile-web-shell/bridge/page-lifecycle/page-back-consumers.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { createPageBackConsumers } from './page-back-consumers' - -function consumers() { - const claims: boolean[] = [] - const unclaimed = vi.fn() - return { - claims, - unclaimed, - stack: createPageBackConsumers({ - publishClaim: (claimed) => claims.push(claimed), - onUnclaimed: unclaimed - }) - } -} - -describe('who in the page is holding the device Back key', () => { - it('tells the shell on the edges only, so one sheet over another does not flicker the key', () => { - const { claims, stack } = consumers() - const first = stack.claim(() => true) - const second = stack.claim(() => true) - expect(claims).toEqual([true]) - second() - expect(claims).toEqual([true]) - first() - expect(claims).toEqual([true, false]) - }) - - it('offers a press newest first, and stops at the one that takes it', () => { - const { stack } = consumers() - const order: string[] = [] - stack.claim(() => { - order.push('bottom') - return true - }) - stack.claim(() => { - order.push('top') - return true - }) - stack.press() - expect(order).toEqual(['top']) - }) - - it('falls through a consumer that says the press was not its own', () => { - const { stack, unclaimed } = consumers() - const order: string[] = [] - stack.claim(() => { - order.push('bottom') - return true - }) - stack.claim(() => { - order.push('top') - return false - }) - stack.press() - expect(order).toEqual(['top', 'bottom']) - expect(unclaimed).not.toHaveBeenCalled() - }) - - it('survives a consumer that disposes itself from inside its own answer', () => { - const { stack } = consumers() - const order: string[] = [] - stack.claim(() => { - order.push('bottom') - return true - }) - const release = stack.claim(() => { - order.push('top') - release() - return false - }) - stack.press() - // A copied stack must still visit the lower consumer after the upper one disposes itself. - expect(order).toEqual(['top', 'bottom']) - }) - - it('ignores a release called twice, so a remounting claim cannot free another one', () => { - const { claims, stack } = consumers() - const release = stack.claim(() => true) - release() - const other = stack.claim(() => true) - release() - expect(claims).toEqual([true, false, true]) - other() - expect(claims).toEqual([true, false, true, false]) - }) - - // Every ready/init clears the host claim; reassert current page state even without a new consumer edge. - it('says again what it is holding when the shell asks, without a second edge', () => { - const { claims, stack } = consumers() - stack.claim(() => true) - stack.reassert() - expect(claims).toEqual([true, true]) - }) - - it('gives the key back when the client closes, whoever was still holding it', () => { - const { claims, stack } = consumers() - stack.claim(() => true) - stack.claim(() => true) - stack.clear() - expect(claims).toEqual([true, false]) - stack.clear() - expect(claims).toEqual([true, false]) - }) -}) diff --git a/mobile/src/mobile-web-shell/host-bridge/bridge-host-back.test.ts b/mobile/src/mobile-web-shell/host-bridge/bridge-host-back.test.ts deleted file mode 100644 index 18147aa26bb..00000000000 --- a/mobile/src/mobile-web-shell/host-bridge/bridge-host-back.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { clientFrame } from '../test-support/bridge-host-test-fakes' -import { harness } from '../test-support/bridge-host-test-harness' -import { BRIDGE_BACK_CLAIM_NOTIFY } from '../bridge/page-lifecycle/bridge-page-back' - -function ready(): string { - return clientFrame({ type: 'ready' }) -} - -function claim(claimed: boolean): string { - return clientFrame({ type: 'notify', name: BRIDGE_BACK_CLAIM_NOTIFY, claimed }) -} - -// Clear Back claims on every document-ending path; a stale claim hands the key to an unrelated page and swallows navigation. -describe('the claim a host holds on the device Back key', () => { - it('carries the page taking the key and letting it go, and says neither twice', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.receive(claim(true)) - bridge.host.receive(claim(true)) - bridge.host.receive(claim(false)) - expect(bridge.backClaims).toEqual([true, false]) - }) - - it('drops it on the next document saying ready, which is the one that has to claim again', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.receive(claim(true)) - bridge.host.receive(ready()) - expect(bridge.backClaims).toEqual([true, false]) - }) - - it('drops it when the page closes, which is the document saying it is going', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.receive(claim(true)) - bridge.host.receive(clientFrame({ type: 'close' })) - expect(bridge.backClaims).toEqual([true, false]) - }) - - // Host replacement preserves the live document and its Back claim; only leaving ready ends the session (shell-page-back-claim.ts). - it('reports nothing when the host itself ends: the claim belongs to the session', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.receive(claim(true)) - bridge.host.dispose() - expect(bridge.backClaims).toEqual([true]) - expect(bridge.host.readSessionBack()).toEqual({ claimed: true }) - }) - - it('lets the next document reset a carried claim, so the seed is not a latch', () => { - const rebuilt = harness({ - sessionBack: { claimed: true }, - sessionEstablished: true - }) - rebuilt.host.receive(ready()) - expect(rebuilt.backClaims).toEqual([false]) - }) -}) - -describe('handing one press to the page', () => { - // Older pages drop unknown Back frames; return false without sending so the navigator retains the press. - it('sends nothing between documents, when the view belongs to no page', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.receive(clientFrame({ type: 'close' })) - expect(bridge.host.sendBack()).toBe(false) - }) - - it('sends nothing once the host is disposed', () => { - const bridge = harness() - bridge.host.receive(ready()) - bridge.host.dispose() - expect(bridge.host.sendBack()).toBe(false) - }) -}) diff --git a/mobile/src/mobile-web-shell/host-bridge/bridge-host.test.ts b/mobile/src/mobile-web-shell/host-bridge/bridge-host.test.ts deleted file mode 100644 index fd52fbbd5f0..00000000000 --- a/mobile/src/mobile-web-shell/host-bridge/bridge-host.test.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { harness, ID, OTHER, subscribeFrame } from '../test-support/bridge-host-test-harness' -import { BRIDGE_MAX_UNACKED_FRAMES } from '../host-streams/bridge-host-subscriptions' -import { - clientFrame, - createFakeRpcClient, - flushBridge, - rpcSuccess -} from '../test-support/bridge-host-test-fakes' - -describe('requests', () => { - it('answers a synchronous throw from the client and frees the slot', () => { - const client = createFakeRpcClient() - const bridge = harness({ - ready: true, - client: { - ...client, - sendRequest: () => { - throw new Error('no socket') - } - } - }) - bridge.host.receive(clientFrame({ type: 'request', id: ID, method: 'status.get' })) - bridge.host.receive(clientFrame({ type: 'request', id: ID, method: 'status.get' })) - const errors = bridge.frames().filter((frame) => frame.type === 'error') - expect(errors).toHaveLength(2) - expect( - errors.every((frame) => frame.type === 'error' && frame.error.category === 'Error') - ).toBe(true) - }) - - it('stops answering a cancelled request without pretending the desktop stopped running it', async () => { - const bridge = harness({ ready: true }) - bridge.host.receive(clientFrame({ type: 'request', id: ID, method: 'status.get' })) - bridge.host.receive(clientFrame({ type: 'cancel', id: ID, target: 'request' })) - bridge.client.requests[0]?.resolve(rpcSuccess('wire-1', 'ok')) - await flushBridge() - expect(bridge.frames().filter((frame) => frame.type !== 'init')).toEqual([]) - }) -}) - -describe('backpressure', () => { - // Use a nonterminal stream to test the byte window; terminal.subscribe now holds/coalesces output and tests that exception separately. - const WINDOWED = 'session.tabs.subscribe' - - it('keeps each stream on its own window', () => { - const bridge = harness({ ready: true }) - bridge.host.receive(subscribeFrame(ID, WINDOWED)) - bridge.host.receive(subscribeFrame(OTHER, WINDOWED)) - for (let index = 0; index <= BRIDGE_MAX_UNACKED_FRAMES; index += 1) { - bridge.client.streams[0]?.emit({ n: index }) - } - bridge.client.streams[1]?.emit({ n: 0 }) - expect(bridge.last()).toEqual({ v: 1, type: 'event', id: OTHER, seq: 1, payload: { n: 0 } }) - }) -}) - -describe('teardown', () => { - it('posts nothing into a view that belongs to no document yet', () => { - const bridge = harness() - bridge.host.receive(clientFrame({ type: 'close' })) - // Client state fan-out continues between documents; do not post it into the replacement before init. - bridge.client.pushState('reconnecting') - bridge.client.pushState('connected') - expect(bridge.posted).toHaveLength(0) - expect(bridge.diagnostics).toEqual([]) - }) -}) diff --git a/mobile/src/mobile-web-shell/host-streams/bridge-host-screencast.test.ts b/mobile/src/mobile-web-shell/host-streams/bridge-host-screencast.test.ts deleted file mode 100644 index f7dd64236e6..00000000000 --- a/mobile/src/mobile-web-shell/host-streams/bridge-host-screencast.test.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - BrowserScreencastOpcode, - type BrowserScreencastFrame -} from '../../browser/screencast/browser-screencast-protocol' -import { clientFrame } from '../test-support/bridge-host-test-fakes' -import { harness, ID } from '../test-support/bridge-host-test-harness' - -const SCREENCAST = 'browser.screencast' - -function screencastSubscribe(id: string, wantsBinary?: boolean): string { - return clientFrame({ - type: 'subscribe', - id, - method: SCREENCAST, - params: { worktree: 'id:w', page: 'p' }, - ...(wantsBinary === undefined ? {} : { wantsBinary }) - }) -} - -function frame(seq: number, image: Uint8Array): BrowserScreencastFrame { - return { - opcode: BrowserScreencastOpcode.Frame, - seq, - format: 'jpeg', - metadata: { deviceWidth: 390, deviceHeight: 712, imageWidth: 975, imageHeight: 609 }, - image - } -} - -const IMAGE = Uint8Array.from({ length: 512 }, (_, index) => (index * 31 + 7) & 0xff) - -describe('a binary frame crosses as the event the page decodes', () => { - // JSON and binary share sequence numbers because the page acknowledges one event ledger. - it('shares one seq sequence with the JSON events of the same stream', () => { - const bridge = harness({ ready: true }) - bridge.host.receive(screencastSubscribe(ID, true)) - bridge.client.streams[0]?.emit({ type: 'ready' }) - bridge.client.streams[0]?.emitBinary?.(frame(0, IMAGE)) - bridge.client.streams[0]?.emit({ type: 'ready' }) - expect( - bridge - .frames() - .filter((message) => message.type === 'event') - .map((m) => m.seq) - ).toEqual([1, 2, 3]) - }) - - it('delivers nothing for a stream the page already cancelled', () => { - const bridge = harness({ ready: true }) - bridge.host.receive(screencastSubscribe(ID, true)) - const emitBinary = bridge.client.streams[0]?.emitBinary - bridge.host.receive(clientFrame({ type: 'cancel', id: ID, target: 'subscription' })) - if (emitBinary === undefined || emitBinary === null) { - throw new Error('binary listener never installed') - } - emitBinary(frame(1, IMAGE)) - expect(bridge.frames().filter((message) => message.type === 'event')).toEqual([]) - }) -}) - -// Oversized JSON must end the stream because invisible gaps corrupt state; screencast may drop a frame and retain the last picture until the next. -describe('an over-cap frame drops on the binary lane and ends the stream on the JSON one', () => { - // 500,000 raw bytes encode to 666,668 base64 characters, exceeding the message cap. - const OVERSIZED = new Uint8Array(500_000) - - function openBinary(): ReturnType { - const bridge = harness({ ready: true }) - bridge.host.receive(screencastSubscribe(ID, true)) - return bridge - } - - // Dropped frames must not consume a sequence number that the page could acknowledge as sent. - it('does not spend a seq on a frame it dropped', () => { - const bridge = openBinary() - bridge.client.streams[0]?.emitBinary?.(frame(1, IMAGE)) - bridge.client.streams[0]?.emitBinary?.(frame(2, OVERSIZED)) - bridge.client.streams[0]?.emitBinary?.(frame(3, IMAGE)) - expect( - bridge - .frames() - .filter((message) => message.type === 'event') - .map((message) => message.seq) - ).toEqual([1, 2]) - }) -}) diff --git a/mobile/src/mobile-web-shell/page-storage/use-shell-page-storage-refresh.test.tsx b/mobile/src/mobile-web-shell/page-storage/use-shell-page-storage-refresh.test.tsx deleted file mode 100644 index 56cbe2e8889..00000000000 --- a/mobile/src/mobile-web-shell/page-storage/use-shell-page-storage-refresh.test.tsx +++ /dev/null @@ -1,108 +0,0 @@ -import { createElement, useEffect } from 'react' -import { act, create } from 'react-test-renderer' -import { beforeEach, expect, it, vi } from 'vitest' -import { useShellPageStorageRefresh } from './use-shell-page-storage-refresh' - -import { - hydrateMirroredStorage, - readMirroredStorage, - retainMirroredStorage, - writeMirroredStorage -} from '../../storage/mirrored-storage-keys' - -import { createFakeBridgePortPair } from '../bridge/test-support/bridge-port-pair-test-harness' - -const store = vi.hoisted(() => ({ - values: new Map(), - pending: new Array<() => void>() -})) -vi.mock('@react-native-async-storage/async-storage', () => ({ - default: { - setItem: (key: string, value: string) => - new Promise((resolve) => - store.pending.push(() => { - store.values.set(key, value) - resolve() - }) - ), - getItem: async (key: string) => store.values.get(key) ?? null, - multiGet: async (keys: string[]) => keys.map((key) => [key, store.values.get(key) ?? null]) - } -})) -const focus = vi.hoisted(() => ({ active: true })) -const app = vi.hoisted(() => ({ listener: (_state: string) => {}, remove: vi.fn() })) -vi.mock('expo-router', () => ({ - useFocusEffect: (effect: () => void | (() => void)) => - useEffect(() => (focus.active ? effect() : undefined), [effect, focus.active]) -})) -vi.mock('react-native', () => ({ - AppState: { - addEventListener: (_event: string, listener: (state: string) => void) => { - app.listener = listener - return { remove: app.remove } - } - } -})) - -beforeEach(() => { - focus.active = true - app.remove.mockClear() - store.values.clear() - store.pending.length = 0 -}) - -it('republishes an accepted page zoom after an older native snapshot crosses the pinch', async () => { - const key = 'orca:terminalTextScale' - store.values.set(key, '1') - const releaseKeys = retainMirroredStorage([key]) - const storage = { [key]: '1' } - let hold = false - const held: string[] = [] - const pair = createFakeBridgePortPair({ - route: { pathname: '/h/host-a/session/wt-1' }, - storage, - holdToPage: (json) => { - if (hold) { - held.push(json) - } - return hold - }, - onStorageWrite: writeMirroredStorage - }) - await pair.flush() - let displayedScale = 1 - pair.client.onStorageUpdate(() => { - displayedScale = Number(pair.client.getShellSession()!.storage[key]) - }) - const refresh = () => hydrateMirroredStorage([key]) - const publish = () => { - Object.assign(storage, readMirroredStorage([key])) - pair.host.publishStorage() - } - function Harness() { - useShellPageStorageRefresh(refresh, publish) - return null - } - let renderer!: ReturnType - await act(async () => { - renderer = create(createElement(Harness)) - await pair.flush() - }) - hold = true - pair.host.publishStorage() - displayedScale = 1.5 - expect(pair.client.notifyStorageWrite(key, '1.5')).toBe(true) - await act(async () => pair.flush()) - pair.deliverToPage(held.shift()!) - expect(displayedScale).toBe(1) - for (const frame of held) { - pair.deliverToPage(frame) - } - await act(async () => store.pending.shift()!()) - expect(store.values.get(key)).toBe('1.5') - expect(displayedScale).toBe(1.5) - act(() => renderer.unmount()) - pair.client.close() - pair.host.dispose() - releaseKeys() -}) diff --git a/mobile/src/new-workspace/creation/runtime/use-new-workspace-execution-target.test.tsx b/mobile/src/new-workspace/creation/runtime/use-new-workspace-execution-target.test.tsx deleted file mode 100644 index 89234dbad68..00000000000 --- a/mobile/src/new-workspace/creation/runtime/use-new-workspace-execution-target.test.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import { createElement } from 'react' -import { act, create, type ReactTestRenderer } from 'react-test-renderer' -import { afterEach, describe, expect, it } from 'vitest' -import { FakeSession } from '../../../transport/connection/mobile-endpoint-supervisor-test-fakes' -import type { RpcClient } from '../../../transport/rpc/rpc-client-contract' - -import { useNewWorkspaceExecutionTarget } from './use-new-workspace-execution-target' - -const mounted: ReactTestRenderer[] = [] -afterEach(() => { - for (const renderer of mounted.splice(0)) { - act(() => renderer.unmount()) - } -}) - -describe('New Workspace agent detection', () => { - it('targets the picked repo and clears the previous repo agents while switching', async () => { - const client = new FakeSession('connected') - let resolveNext: ((response: { id: string; ok: true; result: string[] }) => void) | undefined - client.sendRequest.mockImplementation(async (_method: string, params?: unknown) => { - if (JSON.stringify(params) === JSON.stringify({ repoId: 'wsl-repo' })) { - return { id: 'reply', ok: true, result: ['claude'] } - } - return new Promise((resolve) => { - resolveNext = resolve - }) - }) - let detected: Set | null = null - function Harness({ - repoId, - selectedClient = client - }: { - repoId: string - selectedClient?: RpcClient - }) { - detected = useNewWorkspaceExecutionTarget({ - client: selectedClient, - repoId, - connectionId: null, - visible: true - }).detectedAgentIds - return null - } - let renderer: ReactTestRenderer | undefined - await act(async () => { - renderer = create(createElement(Harness, { repoId: 'wsl-repo' })) - mounted.push(renderer) - }) - expect(client.sendRequest).toHaveBeenCalledWith('preflight.detectAgents', { - repoId: 'wsl-repo' - }) - expect(detected).toEqual(new Set(['claude'])) - await act(async () => { - renderer?.update(createElement(Harness, { repoId: 'host-repo' })) - }) - expect(detected).toBeNull() - expect(client.sendRequest).toHaveBeenLastCalledWith('preflight.detectAgents', { - repoId: 'host-repo' - }) - await act(async () => { - resolveNext?.({ id: 'reply', ok: true, result: ['codex'] }) - }) - expect(detected).toEqual(new Set(['codex'])) - const otherHost = new FakeSession('connected') - otherHost.sendRequest.mockImplementation( - () => - new Promise((resolve) => { - resolveNext = resolve - }) - ) - await act(async () => { - renderer?.update(createElement(Harness, { repoId: 'host-repo', selectedClient: otherHost })) - }) - expect(detected).toBeNull() - await act(async () => { - resolveNext?.({ id: 'reply', ok: true, result: ['gemini'] }) - }) - expect(detected).toEqual(new Set(['gemini'])) - }) -}) diff --git a/mobile/src/session/native-chat/conversation/use-mobile-native-chat-terminal-stream.test.ts b/mobile/src/session/native-chat/conversation/use-mobile-native-chat-terminal-stream.test.ts deleted file mode 100644 index 084b090f152..00000000000 --- a/mobile/src/session/native-chat/conversation/use-mobile-native-chat-terminal-stream.test.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { createElement } from 'react' -import { act, create, type ReactTestRenderer } from 'react-test-renderer' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { useMobileNativeChatTerminalStream } from './use-mobile-native-chat-terminal-stream' - -describe('useMobileNativeChatTerminalStream', () => { - let renderer: ReactTestRenderer | null = null - const subscriptionsRef = { current: new Map void>() } - const subscribingRef = { current: new Set() } - const leaseOnlyRef = { current: new Set() } - const webReadyRef = { current: new Set(['terminal-1']) } - const registerSubscription = (handle: string): boolean => { - subscriptionsRef.current.set(handle, () => {}) - leaseOnlyRef.current.delete(handle) - return true - } - const subscribe = vi.fn(registerSubscription) - const unsubscribe = vi.fn((handle: string) => { - subscriptionsRef.current.delete(handle) - leaseOnlyRef.current.delete(handle) - }) - const notifyListedHandlesRef = { current: (_liveHandles: ReadonlySet): void => {} } - const hasTabsRecoveryNeedRef = { current: (): boolean => false } - - beforeEach(() => { - subscriptionsRef.current = new Map([['terminal-1', () => {}]]) - subscribingRef.current = new Set() - leaseOnlyRef.current = new Set() - webReadyRef.current = new Set(['terminal-1']) - subscribe.mockClear() - unsubscribe.mockClear() - }) - - afterEach(() => { - act(() => renderer?.unmount()) - renderer = null - }) - - function Harness({ - showNativeChat, - activeHandle = 'terminal-1', - leaseReady = true, - streamRevision = 0 - }: { - showNativeChat: boolean - activeHandle?: string - leaseReady?: boolean - streamRevision?: number - }): null { - const stream = useMobileNativeChatTerminalStream({ - showNativeChat, - activeHandle, - activeTabType: 'terminal', - leaseReady, - streamRevision, - subscriptionsRef, - subscribingRef, - leaseOnlyRef, - webReadyRef, - subscribe, - unsubscribe - }) - notifyListedHandlesRef.current = stream.notifyListedHandles - hasTabsRecoveryNeedRef.current = stream.hasTabsRecoveryNeed - return null - } - - // Model subscribed then end in one dead-PTY round trip; testing end alone misses a self-refilling rearm loop. - async function playDeadPtyRoundTrip(revision: number): Promise { - subscriptionsRef.current.delete('terminal-1') - await act(async () => { - renderer?.update( - createElement(Harness, { - showNativeChat: true, - leaseReady: false, - streamRevision: revision - }) - ) - }) - await act(async () => { - renderer?.update( - createElement(Harness, { showNativeChat: true, leaseReady: true, streamRevision: revision }) - ) - }) - } - - it('keeps asking until a tab snapshot replaces the exhausted handle', async () => { - await act(async () => { - renderer = create(createElement(Harness, { showNativeChat: true })) - }) - for (let revision = 1; revision <= 3; revision += 1) { - await playDeadPtyRoundTrip(revision) - } - await act(async () => { - notifyListedHandlesRef.current(new Set(['terminal-1'])) - }) - expect(hasTabsRecoveryNeedRef.current()).toBe(false) - - // Exhaustion plus absence needs a fresh tab snapshot to find the reminted handle. - await act(async () => { - notifyListedHandlesRef.current(new Set(['terminal-2'])) - }) - expect(hasTabsRecoveryNeedRef.current()).toBe(true) - expect(hasTabsRecoveryNeedRef.current()).toBe(true) - - await act(async () => { - renderer?.update( - createElement(Harness, { - showNativeChat: true, - activeHandle: 'terminal-2', - leaseReady: false, - streamRevision: 4 - }) - ) - }) - expect(hasTabsRecoveryNeedRef.current()).toBe(false) - }) -}) diff --git a/mobile/src/session/native-chat/transcript/message-actions/MobileNativeChatRowOverlaysHost.test.tsx b/mobile/src/session/native-chat/transcript/message-actions/MobileNativeChatRowOverlaysHost.test.tsx deleted file mode 100644 index b5a812f54d9..00000000000 --- a/mobile/src/session/native-chat/transcript/message-actions/MobileNativeChatRowOverlaysHost.test.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import { useContext } from 'react' -import { act, create, type ReactTestRenderer } from 'react-test-renderer' -import { afterEach, describe, expect, it, vi } from 'vitest' -import type { NativeChatMessage } from '../../../../../../src/shared/native-chat/native-chat-types' -import { MobileNativeChatRowOverlaysHost } from './MobileNativeChatRowOverlaysHost' -import { - MobileNativeChatRowOverlaysContext, - type MobileNativeChatRowOverlays -} from './mobile-native-chat-row-overlays' -import type { MobileNativeChatConversation } from '../../conversation/use-mobile-native-chat-conversation-state' - -vi.mock('react-native', async () => ({ - ...(await import('../../../../test-support/react-native-motion-stub')).reactNativeMotionStub(), - Image: 'Image', - Modal: 'Modal', - Platform: { OS: 'ios' }, - Pressable: 'Pressable', - ScrollView: 'ScrollView', - View: 'View', - StyleSheet: { create: (styles: unknown) => styles } -})) -vi.mock('react-native-safe-area-context', () => ({ - useSafeAreaInsets: () => ({ top: 0, bottom: 0, left: 0, right: 0 }) -})) -vi.mock('lucide-react-native', () => ({ X: 'X' })) -vi.mock('../../../../platform/haptics/haptics', () => ({ triggerMediumImpact: vi.fn() })) -vi.mock('./MobileNativeChatRewindDialog', () => ({ MobileNativeChatRewindDialog: () => null })) -vi.mock('./MobileNativeChatMessageActionsSheet', () => ({ - MobileNativeChatMessageActionsSheet: 'MessageActionsSheet' -})) -vi.mock('./MobileLinkActionSheet', () => ({ MobileLinkActionSheet: 'LinkActionSheet' })) -vi.mock('../../visual/MobileImageViewerActions', () => ({ - MobileImageViewerActions: 'ImageViewerActions' -})) - -let overlays: MobileNativeChatRowOverlays | null = null -function Row(): null { - overlays = useContext(MobileNativeChatRowOverlaysContext) - return null -} -const chat = (conversation: MobileNativeChatConversation) => ( - - - -) -const message: NativeChatMessage = { - id: 'a1', - role: 'assistant', - blocks: [{ type: 'text', text: 'Done.' }], - timestamp: null, - source: 'transcript' -} - -let renderer: ReactTestRenderer | null = null -afterEach(() => { - act(() => renderer?.unmount()) - renderer = null -}) - -describe("a row's actions sheet", () => { - function shownAcross(conversations: MobileNativeChatConversation[]): boolean[] { - const [first, ...rest] = conversations - act(() => { - renderer = create(chat(first!)) - }) - act(() => overlays!.openActions(message)) - const shown = () => - renderer!.root.findAll((node) => String(node.type) === 'MessageActionsSheet').length === 1 - return [shown()].concat( - rest.map((conversation) => { - act(() => renderer!.update(chat(conversation))) - return shown() - }) - ) - } - - it('closes when a notification switches the tab, and does not reopen', () => { - expect( - shownAcross([ - { surfaceId: 'tab-a', sessionId: 's1' }, - { surfaceId: 'tab-b', sessionId: 's1' }, - { surfaceId: 'tab-a', sessionId: 's1' } - ]) - ).toEqual([true, false, false]) - }) - - it("stays open when the tab's first session id arrives, then closes on a replacement", () => { - expect( - shownAcross([ - { surfaceId: 'tab-a', sessionId: null }, - { surfaceId: 'tab-a', sessionId: 's1' }, - { surfaceId: 'tab-a', sessionId: 's2' } - ]) - ).toEqual([true, true, false]) - }) -}) diff --git a/mobile/src/session/native-chat/transcript/turn-state/use-mobile-native-chat-turn-disclosure.test.tsx b/mobile/src/session/native-chat/transcript/turn-state/use-mobile-native-chat-turn-disclosure.test.tsx deleted file mode 100644 index 636f35e97e8..00000000000 --- a/mobile/src/session/native-chat/transcript/turn-state/use-mobile-native-chat-turn-disclosure.test.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import { createElement } from 'react' -import { act, create, type ReactTestRenderer } from 'react-test-renderer' -import { afterEach, describe, expect, it, vi } from 'vitest' -import type { NativeChatMessage } from '../../../../../../src/shared/native-chat/native-chat-types' -import { useMobileNativeChatTurnDisclosure } from './use-mobile-native-chat-turn-disclosure' - -import { Harness, Result, userMessage } from './use-mobile-native-chat-turn-disclosure.test-fixture' - -describe('useMobileNativeChatTurnDisclosure', () => { - let renderer: ReactTestRenderer | null = null - - afterEach(() => { - act(() => renderer?.unmount()) - renderer = null - }) - - it('keeps the live bar on every render until it settles in place', () => { - vi.useFakeTimers() - try { - vi.setSystemTime(1_000) - const messages = [userMessage('u1')] - const seen: unknown[] = [] - function Recorder({ isWorking }: { isWorking: boolean }): React.JSX.Element { - const disclosure = useMobileNativeChatTurnDisclosure({ - messages, - enabled: true, - isWorking, - scopeKey: 'host\0worktree\0tab-a' - }) - seen.push(disclosure.resolveRow(0, messages[0]).turnStatus) - return createElement('result', { disclosure }) - } - act(() => { - renderer = create(createElement(Recorder, { isWorking: true })) - }) - vi.setSystemTime(6_000) - seen.length = 0 - act(() => { - renderer?.update(createElement(Recorder, { isWorking: false })) - }) - expect(seen).not.toContain(null) - expect(seen.at(-1)).toEqual({ startedAt: 1_000, thinking: false, workedSeconds: 5 }) - } finally { - vi.useRealTimers() - } - }) -}) - -describe('the open reasoning block the live line discloses', () => { - let renderer: ReactTestRenderer | null = null - - afterEach(() => { - act(() => renderer?.unmount()) - renderer = null - }) - - const block = (id: string, state: 'running' | 'completed'): NativeChatMessage => ({ - id, - role: 'reasoning', - blocks: [{ type: 'text', text: `${id} weighs two approaches` }], - timestamp: null, - source: 'transcript', - state - }) - const show = ( - messages: NativeChatMessage[], - props: { thinking?: boolean; lineYields?: boolean } - ) => - act(() => { - const element = createElement(Harness, { messages, enabled: true, ...props }) - if (renderer) { - renderer.update(element) - } else { - renderer = create(element) - } - }) - const latest = () => renderer!.root.findByType(Result).props.disclosure - - it('hides only that block, and lands it open once it ends if the reader opened it live', () => { - const prompt = userMessage('u1') - show([prompt, block('r-1', 'running')], { thinking: true }) - expect(latest().liveLine).toMatchObject({ - reasoning: { message: { id: 'r-1' } }, - reasoningExpanded: false - }) - expect(latest().resolveRow(1, block('r-1', 'running')).reasoningIsLive).toBe(true) - act(() => latest().onToggleReasoning('reasoning:r-1')) - expect(latest().liveLine.reasoningExpanded).toBe(true) - - show([prompt, block('r-1', 'completed')], { thinking: false }) - expect(latest().liveLine).toMatchObject({ reasoning: null }) - const row = latest().resolveRow(1, block('r-1', 'completed')) - expect(row).toMatchObject({ reasoningIsLive: false, reasoningExpanded: true }) - - show([prompt, block('r-1', 'completed'), block('r-2', 'running')], { thinking: true }) - expect(latest().liveLine).toMatchObject({ - reasoning: { message: { id: 'r-2' } }, - reasoningExpanded: false - }) - }) -}) diff --git a/mobile/src/session/tabs/MobileAgentSessionTabActionSheet.test.tsx b/mobile/src/session/tabs/MobileAgentSessionTabActionSheet.test.tsx deleted file mode 100644 index f88dec58a57..00000000000 --- a/mobile/src/session/tabs/MobileAgentSessionTabActionSheet.test.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { createElement, type ReactNode } from 'react' -import { act, create, type ReactTestRenderer } from 'react-test-renderer' -import { afterEach, expect, it, vi } from 'vitest' - -const hosts = vi.hoisted(() => { - const make = (name: string) => { - const Host = (props: { - children?: ReactNode - accessibilityLabel?: string - name?: string - }): ReactNode => props.children ?? null - Host.displayName = name - return Host - } - return { Title: make('Title'), MarkedName: make('MarkedName') } -}) - -vi.mock('react-native', () => ({})) -// The sheet's chrome is not under test: keep only the title and its spoken label. -vi.mock('../../components/sheets/ActionSheetModal', () => ({ - ActionSheetModal: (props: { title?: ReactNode; titleAccessibilityLabel?: string }) => - createElement(hosts.Title, { accessibilityLabel: props.titleAccessibilityLabel }, props.title) -})) -vi.mock('../fork/MobileForkMarkedName', () => ({ - MobileForkMarkedName: (props: { name: string }) => createElement(hosts.MarkedName, props) -})) -vi.mock('../fork/mobile-fork-marked-name', () => ({ - mobileForkAccessibleName: (name: string) => `fork-label(${name})` -})) -vi.mock('../../i18n/use-mobile-translation', () => ({ - useMobileTranslation: () => (_key: string, fallback: string) => fallback -})) -vi.mock('../native-chat/mobile-native-chat-cli-fork', () => ({ - getMobileNativeChatCliForkActions: () => [] -})) -vi.mock('./mobile-worker-auto-close', () => ({ - useMobileAllowAutoCloseActions: () => [], - workerSubjectOf: () => undefined -})) - -const { MobileAgentSessionTabActionSheet } = await import('./MobileAgentSessionTabActionSheet') - -let renderer: ReactTestRenderer | undefined -afterEach(() => { - act(() => renderer?.unmount()) - renderer = undefined -}) - -function renderSheet(forked: boolean): ReactTestRenderer { - const tab = { - type: 'agent-session' as const, - id: 'tab', - title: 'Plan', - sessionId: 'chat', - agent: 'claude' as const, - isActive: true, - ...(forked ? { forked: true as const } : {}) - } - const controller = { - agentSessionActionTarget: tab, - setAgentSessionActionTarget: () => {}, - closeWithBulkActions: () => [], - client: null - } - act(() => { - renderer = create( - createElement(MobileAgentSessionTabActionSheet, { - // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the sheet reads only these controller members. - controller: controller as never, - workspaceOnPairedHost: true - }) - ) - }) - return renderer! -} - -it("titles a fork tab's sheet with the fork-marked name and its spoken label", () => { - const sheet = renderSheet(true) - const title = sheet.root.findByType(hosts.Title) - expect(sheet.root.findByType(hosts.MarkedName).props.name).toBe('Plan') - expect(title.props.accessibilityLabel).toBe('fork-label(Plan)') -}) - -it("titles an original chat tab's sheet with its plain name", () => { - const sheet = renderSheet(false) - const title = sheet.root.findByType(hosts.Title) - expect(sheet.root.findAllByType(hosts.MarkedName)).toHaveLength(0) - expect(title.props.children).toBe('Plan') - expect(title.props.accessibilityLabel).toBeUndefined() -}) diff --git a/mobile/src/test-support/rpc-recording/execution/unhandled-recording.test.ts b/mobile/src/test-support/rpc-recording/execution/unhandled-recording.test.ts deleted file mode 100644 index 30a81ccec26..00000000000 --- a/mobile/src/test-support/rpc-recording/execution/unhandled-recording.test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { runRecording } from '../run-recording' -import { vitestRecordingScheduler } from './vitest-recording-scheduler' -import type { RecordingScenario } from '../scenarios/recording-scenario' - -// No corpus golden has detached rejections; pin capture and recording integration directly. -describe('recordUnhandledRejections', () => { - it('reaches a checkpoint and the cleanup checkpoint through a real recording', async () => { - const scenario: RecordingScenario = { - id: 'detached', - operation: 'op', - family: 'op', - sites: [], - schedules: [], - steps: [{ action: 'fire', id: 'fire' }, { checkpoint: 'after-fire' }] - } - const recording = await runRecording( - scenario, - () => ({ - action: () => { - void Promise.reject(new TypeError('detached in an action')) - }, - state: () => ({}), - dispose: () => { - void Promise.reject(new Error('detached in cleanup')) - } - }), - vitestRecordingScheduler() - ) - const effects = (id: string) => - recording.checkpoints.find((checkpoint) => checkpoint.id === id)!.observation.effects - expect(effects('after-fire')).toMatchObject([ - { name: 'unhandled-rejection', value: { message: 'detached in an action' } } - ]) - expect(effects('cleanup')).toMatchObject([ - { name: 'unhandled-rejection', value: { message: 'detached in an action' } }, - { name: 'unhandled-rejection', value: { message: 'detached in cleanup' } } - ]) - }) -}) diff --git a/mobile/src/test-support/rpc-recording/module-mounting/operation-module-loader.test.ts b/mobile/src/test-support/rpc-recording/module-mounting/operation-module-loader.test.ts deleted file mode 100644 index 79cdfe28d82..00000000000 --- a/mobile/src/test-support/rpc-recording/module-mounting/operation-module-loader.test.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs' -import { tmpdir } from 'node:os' -import { join } from 'node:path' -import { afterAll, describe, expect, it } from 'vitest' -import { operationModuleLoader } from './operation-module-loader' - -// Use synthetic trees so loader properties do not depend on current product imports. -const roots: string[] = [] -function sourceTree(files: Record): string { - const root = mkdtempSync(join(tmpdir(), 'pr-31602-rpc-loader-')) - roots.push(root) - for (const [name, source] of Object.entries(files)) { - mkdirSync(join(root, 'mobile/src'), { recursive: true }) - writeFileSync(join(root, 'mobile/src', name), source) - } - return root -} -function loaderOver(files: Record): ReturnType { - return operationModuleLoader(sourceTree(files)) -} - -afterAll(() => { - for (const root of roots) { - rmSync(root, { recursive: true, force: true }) - } - roots.length = 0 -}) - -describe('the mounted module loader', () => { - it('follows named reexports reached through the task foundation barrel', () => { - const modules = loaderOver({ - 'mobile-tasks-legacy-foundation.tsx': `export * from './mapping'`, - 'mapping.ts': `export { run as search } from './operation'; export type { Missing } from './missing'`, - 'operation.ts': `export const run = (query: string) => 'is:pr ' + query` - }) - const foundation = modules.load<{ search: (query: string) => string }>( - 'mobile/src/mobile-tasks-legacy-foundation.tsx' - ) - expect(foundation.search('is:open')).toBe('is:pr is:open') - expect(() => modules.load('mobile/src/mobile-tasks-legacy-foundation.tsx').Missing).toThrow( - 'Unmapped barrel export: Missing' - ) - }) - - // Preserve proxy interop so refusal occurs on actual member use rather than merely importing the package. - it('lets a default import of an unlisted package load, and refuses the member it uses', () => { - const modules = loaderOver({ - 'uses-default.ts': ` - import Animated from 'react-native-not-substituted' - export const read = () => Animated.createAnimatedComponent - ` - }) - const { read } = modules.load<{ read: () => unknown }>('mobile/src/uses-default.ts') - expect(() => read()).toThrow( - 'Unspecified native mounting dependency: react-native-not-substituted.default' - ) - }) - - // Default dependencies may reference native members before an adapter overrides them; import alone must remain possible. - it('lets a namespace import of an unlisted package load, and refuses the member it reads', () => { - const modules = loaderOver({ - 'uses-namespace.ts': ` - import * as Haptics from 'expo-not-substituted' - export const read = () => Haptics.selectionAsync - ` - }) - const { read } = modules.load<{ read: () => unknown }>('mobile/src/uses-namespace.ts') - expect(() => read()).toThrow( - 'Unspecified native mounting dependency: expo-not-substituted.selectionAsync' - ) - }) -}) diff --git a/mobile/src/test-support/rpc-recording/scripted-transport/scripted-client-wrapper.test.ts b/mobile/src/test-support/rpc-recording/scripted-transport/scripted-client-wrapper.test.ts deleted file mode 100644 index 69390594efb..00000000000 --- a/mobile/src/test-support/rpc-recording/scripted-transport/scripted-client-wrapper.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { ScriptedRpcTransport } from './scripted-rpc-transport' -import { vitestRecordingScheduler } from '../execution/vitest-recording-scheduler' - -describe('a transparent wrapper between the operation and the scripted transport', () => { - it('keeps the sibling identity and still rejects a swallowed invocation', async () => { - const clock = vitestRecordingScheduler() - await clock.start() - const transport = new ScriptedRpcTransport(clock.elapsed, undefined, (client) => ({ - ...client, - sendRequest: (...args) => - args[0] === 'alpha.one' - ? Promise.reject(new Error('the wrapper kept this one')) - : client.sendRequest(...args) - })) - try { - const swallowed = transport.client.sendRequest('alpha.one').catch(() => undefined) - const sibling = transport.client.sendRequest('beta.two') - await clock.flush() - expect(transport.payloads.map(({ name }) => name)).toEqual(['beta.two#1']) - transport.complete('beta.two#1', undefined, { ok: true, result: 'B' }) - await Promise.all([swallowed, sibling]) - await transport.dispose() - await clock.flush() - expect(() => transport.causality.assertTransparentCalls()).toThrow('swallowed alpha.one#1') - } finally { - await transport.dispose() - await clock.flush() - transport.causality.close() - clock.stop() - } - }) -}) diff --git a/mobile/src/transport/connection/mobile-endpoint-supervisor-relay-host-offline.test.ts b/mobile/src/transport/connection/mobile-endpoint-supervisor-relay-host-offline.test.ts deleted file mode 100644 index 2d7b447b190..00000000000 --- a/mobile/src/transport/connection/mobile-endpoint-supervisor-relay-host-offline.test.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { - dependencies, - FakeLogicalClient, - FakeRelaySession, - host, - relay -} from './mobile-endpoint-supervisor-test-fakes' -import { MobileEndpointSupervisor } from './mobile-endpoint-supervisor' -import { RelayOuterError } from '../encryption/mobile-relay-e2ee-link' -import { RelayDirectorResolveTimeoutError } from '../relay/mobile-relay-resume-director' -import type { MobileEndpointSupervisorDependencies } from './mobile-endpoint-supervisor-contract' -import type { ConnectionLogEntry } from '../../diagnostics/connection/connection-log-types' - -vi.mock('react-native', () => ({ Platform: { OS: 'ios' } })) -vi.mock('expo-secure-store', () => ({ WHEN_UNLOCKED_THIS_DEVICE_ONLY: 'when-unlocked' })) -vi.mock('expo-crypto', () => ({ getRandomBytes: (length: number) => new Uint8Array(length) })) - -const hostOfflineSession = () => - new FakeRelaySession('disconnected', new RelayOuterError(4404, false, '')) - -async function startOffLan(overrides: Partial) { - const logical = new FakeLogicalClient('disconnected', 'lan') - const logs: ConnectionLogEntry[] = [] - const deps = dependencies({ - openRelay: vi.fn(hostOfflineSession), - onLog: (entry) => logs.push(entry), - // Full-width jitter: 4404 retries wait the full 15s. - randomBytes: () => new Uint8Array([255, 255]), - ...overrides - }) - const supervisor = new MobileEndpointSupervisor(logical, host.id, relay, deps) - await supervisor.start() - await vi.advanceTimersByTimeAsync(0) - return { logical, deps, logs, supervisor } -} - -describe('mobile endpoint supervisor on persistent host-offline', () => { - beforeEach(() => { - vi.useFakeTimers() - vi.setSystemTime(new Date('2026-11-13T12:00:00Z')) - vi.spyOn(console, 'log').mockImplementation(() => {}) - }) - - afterEach(() => { - vi.useRealTimers() - vi.restoreAllMocks() - }) - - it('asks the director on the second 4404 and adopts the cell it names', async () => { - const moved = { ...relay, cellUrl: 'https://relay-hk.onorca.dev' } - const openRelay = vi - .fn() - .mockImplementationOnce(hostOfflineSession) - .mockImplementationOnce(hostOfflineSession) - .mockImplementation(() => new FakeRelaySession('connected')) - const resolveRelay = vi.fn(async () => moved) - const { logical, deps, supervisor } = await startOffLan({ openRelay, resolveRelay }) - expect(openRelay).toHaveBeenCalledTimes(1) - expect(resolveRelay).not.toHaveBeenCalled() - - await vi.advanceTimersByTimeAsync(15_000) - expect(resolveRelay).toHaveBeenCalledOnce() - expect(resolveRelay).toHaveBeenCalledWith(expect.objectContaining({ timeoutMs: 5_000 })) - expect(deps.setRelayRouting).toHaveBeenCalledWith(host.id, moved) - expect(openRelay).toHaveBeenLastCalledWith( - moved, - expect.anything(), - expect.any(String), - expect.any(Function) - ) - expect(logical.getActivePath()).toBe('relay') - supervisor.stop() - }) - - it('gives the next resolve 10s after one times out', async () => { - const resolveRelay = vi.fn(async (_input: { timeoutMs?: number }) => { - throw new RelayDirectorResolveTimeoutError(5_000) - }) - const { supervisor } = await startOffLan({ resolveRelay }) - // Resolves are at least 5 minutes apart within an offline episode. - await vi.advanceTimersByTimeAsync(12 * 60_000) - const budgets = resolveRelay.mock.calls.map(([input]) => input.timeoutMs) - expect(budgets.length).toBeGreaterThanOrEqual(2) - expect(budgets[0]).toBe(5_000) - expect(budgets.slice(1).every((timeoutMs) => timeoutMs === 10_000)).toBe(true) - supervisor.stop() - }) - - it('asks the director only a few times while a laptop sleeps for two hours', async () => { - // The director keeps naming the same cell; the edge keeps answering 4404. - const resolveRelay = vi.fn(async ({ relay: current }: { relay: typeof relay }) => current) - const { deps, supervisor } = await startOffLan({ resolveRelay }) - await vi.advanceTimersByTimeAsync(2 * 60 * 60_000) - // Gaps of 5, 10, 20, 40 min: resolves near 0, 5, 15, 35 and 75 min. - expect(resolveRelay.mock.calls.length).toBeGreaterThanOrEqual(5) - expect(resolveRelay.mock.calls.length).toBeLessThanOrEqual(6) - // Unchanged answers neither re-route nor add an immediate redial: 4404 pacing alone (5-15s). - expect(deps.setRelayRouting).not.toHaveBeenCalled() - expect(vi.mocked(deps.openRelay).mock.calls.length).toBeLessThanOrEqual(120 * 4 + 1) - supervisor.stop() - }) - - it('logs cooldown deferrals with their remaining time, at most once per window', async () => { - const { logical, logs, supervisor } = await startOffLan({}) - // An unroutable LAN address fails fast; each direct state flap re-enters relay recovery. - for (let i = 0; i < 10; i++) { - logical.publishState('reconnecting') - logical.publishState('disconnected') - await vi.advanceTimersByTimeAsync(1_000) - } - const deferrals = logs.filter((entry) => entry.message.startsWith('Relay: recovery deferred')) - expect(deferrals).toHaveLength(1) - expect(deferrals[0].message).toBe('Relay: recovery deferred by cooldown') - expect(deferrals[0].detail).toMatch(/^retryInMs=\d+$/) - supervisor.stop() - }) -}) diff --git a/mobile/src/transport/relay/mobile-relay-director-fallback.test.ts b/mobile/src/transport/relay/mobile-relay-director-fallback.test.ts deleted file mode 100644 index fc3b829d3b1..00000000000 --- a/mobile/src/transport/relay/mobile-relay-director-fallback.test.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { dialRelayThroughDirectorFallback } from './mobile-relay-director-fallback' -import { RelayHostOfflineStreak } from './relay-host-offline-streak' -import { RelayOuterError } from '../encryption/mobile-relay-e2ee-link' - -const relay = { - v: 1 as const, - directorUrl: 'https://relay.onorca.dev', - cellUrl: 'https://relay-edge.onorca.dev', - assignmentEpoch: 7, - relayHostId: 'AbCdEf0123_-xyZ9', - e2eeFraming: 2 as const -} - -const hostOffline = { ok: false as const, error: new RelayOuterError(4404) } -const attachTimeout = { - ok: false as const, - error: new RelayOuterError(4404, false, 'attach-timeout') -} - -function dialer( - results: { ok: boolean; error?: Error }[], - resolved: typeof relay = { ...relay, cellUrl: 'https://relay-hk.onorca.dev', assignmentEpoch: 8 } -) { - const streak = new RelayHostOfflineStreak(() => null) - const resolveRelay = vi.fn(async () => resolved) - const persistResolvedRelay = vi.fn(async () => {}) - const queue = [...results] - const dial = vi.fn(async () => { - const next = queue.shift() ?? { ok: true } - return next.ok ? { ok: true as const } : { ok: false as const, error: next.error! } - }) - const attempt = () => - dialRelayThroughDirectorFallback({ - resumeToken: 'A'.repeat(43), - hostOfflineStreak: streak, - relay: () => relay, - dial, - resolveRelay, - persistResolvedRelay - }) - return { attempt, dial, resolveRelay, persistResolvedRelay } -} - -describe('dialRelayThroughDirectorFallback on host-offline', () => { - it('resolves on the second consecutive 4404 and redials the moved cell once', async () => { - const { attempt, dial, resolveRelay } = dialer([hostOffline, hostOffline, { ok: true }]) - await expect(attempt()).resolves.toEqual(hostOffline) - expect(resolveRelay).not.toHaveBeenCalled() - - await expect(attempt()).resolves.toEqual({ ok: true }) - expect(resolveRelay).toHaveBeenCalledOnce() - expect(dial).toHaveBeenCalledTimes(3) - }) - - it('does not redial when the director still names the same cell', async () => { - const { attempt, dial, resolveRelay, persistResolvedRelay } = dialer( - [hostOffline, hostOffline], - relay - ) - await attempt() - await expect(attempt()).resolves.toEqual(hostOffline) - expect(resolveRelay).toHaveBeenCalledOnce() - expect(persistResolvedRelay).not.toHaveBeenCalled() - expect(dial).toHaveBeenCalledTimes(2) - }) - - it('never resolves on attach timeouts, which prove the desktop is seated on this cell', async () => { - const { attempt, resolveRelay } = dialer([attachTimeout, attachTimeout, attachTimeout]) - for (let i = 0; i < 3; i++) { - await attempt() - } - expect(resolveRelay).not.toHaveBeenCalled() - }) -}) diff --git a/src/main/ai-vault/scanners/droid/session-scanner-droid-parser.test.ts b/src/main/ai-vault/scanners/droid/session-scanner-droid-parser.test.ts deleted file mode 100644 index 5631040b99a..00000000000 --- a/src/main/ai-vault/scanners/droid/session-scanner-droid-parser.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { expect, it } from 'vitest' -import { createDroidSessionResumeState } from './session-scanner-droid-parser' -import type { TranscriptMessage } from '../../transcripts/session-transcript-consumers' - -it.each([413, 256 * 1024 + 1])( - 'publishes %i-character Droid content before preview limits', - async (length) => { - const messages: TranscriptMessage[] = [] - const state = createDroidSessionResumeState( - { path: 'droid-session.jsonl', mtimeMs: 1, modifiedAt: '2026-05-01T00:00:00.000Z' }, - { active: true, push: (message) => messages.push(message) } - ) - const text = 'x'.repeat(length) - state.consumeLine( - JSON.stringify({ - type: 'message', - message: { role: 'assistant', content: [{ type: 'text', text }] } - }) - ) - state.consumeLine(JSON.stringify({ type: 'message', role: 'user', text })) - expect(messages).toEqual( - ['assistant', 'user'].map((role) => ({ - role, - text: text.slice(0, 256 * 1024), - timestamp: null, - ...(length > 256 * 1024 ? { textTruncated: true } : {}) - })) - ) - const session = await state.finalize('linux') - expect(session?.previewMessages.map((message) => message.text.length)).toEqual([220, 220]) - } -) diff --git a/src/main/automations/external-managers/external-automation-probe-scheduler.test.ts b/src/main/automations/external-managers/external-automation-probe-scheduler.test.ts deleted file mode 100644 index 2087c7c041e..00000000000 --- a/src/main/automations/external-managers/external-automation-probe-scheduler.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { - ExternalAutomationProbeCancelledError, - ExternalAutomationProbeScheduler -} from './external-automation-probe-scheduler' - -function deferred(): { promise: Promise; resolve: (value: T) => void } { - let resolve!: (value: T) => void - const promise = new Promise((res) => { - resolve = res - }) - return { promise, resolve } -} - -describe('ExternalAutomationProbeScheduler', () => { - it('does not start a duplicate key while cancelled provider work is still settling', async () => { - const scheduler = new ExternalAutomationProbeScheduler({ concurrency: 2 }) - const never = deferred() - const run = vi.fn(() => never.promise) - const first = scheduler.schedule({ key: 'openclaw@self', scopeKey: 'self', run }) - - scheduler.cancelAll() - const second = scheduler.schedule({ key: 'openclaw@self', scopeKey: 'self', run }) - - await expect(first).rejects.toBeInstanceOf(ExternalAutomationProbeCancelledError) - await expect(second).rejects.toBeInstanceOf(ExternalAutomationProbeCancelledError) - expect(run).toHaveBeenCalledTimes(1) - - never.resolve('ignored') - await vi.waitFor(() => expect(scheduler.inFlight).toBe(0)) - }) -}) diff --git a/src/main/filesystem/sidecar-snapshot-file.test.ts b/src/main/filesystem/sidecar-snapshot-file.test.ts deleted file mode 100644 index 91b9318fbf7..00000000000 --- a/src/main/filesystem/sidecar-snapshot-file.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - _getSidecarSnapshotPendingFileCountForTests, - withSidecarSnapshotQueue -} from './sidecar-snapshot-file' - -describe('sidecar snapshot queues', () => { - it('releases completed per-file queue entries', async () => { - const gate = Promise.withResolvers() - let started = 0 - const tasks = Array.from({ length: 600 }, (_, index) => - withSidecarSnapshotQueue(`snapshot-${index}`, async () => { - started += 1 - await gate.promise - return `result-${index}` - }) - ) - - try { - await Promise.resolve() - expect(started).toBe(600) - expect(_getSidecarSnapshotPendingFileCountForTests()).toBe(600) - } finally { - gate.resolve() - } - - expect(await Promise.all(tasks)).toEqual( - Array.from({ length: 600 }, (_, index) => `result-${index}`) - ) - await Promise.resolve() - expect(_getSidecarSnapshotPendingFileCountForTests()).toBe(0) - }) -}) diff --git a/src/main/git/command-runner/admission/git-operation-executor.test.ts b/src/main/git/command-runner/admission/git-operation-executor.test.ts deleted file mode 100644 index 6e089300ef9..00000000000 --- a/src/main/git/command-runner/admission/git-operation-executor.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { afterEach, describe, expect, it } from 'vitest' -import { resolveGitAdmissionTier } from './git-operation-executor' -import { _resetGitAdmissionForTests } from './git-subprocess-admission' - -import { - worktreeCreateGit, - worktreePreparationGit -} from '../../worktrees/creation/worktree-create-git-executor' - -afterEach(() => _resetGitAdmissionForTests()) - -describe('Git operation execution policy', () => { - it('isolates concurrent callers and restores the create policy after nested work', async () => { - const entered = Promise.withResolvers() - const finish = Promise.withResolvers() - const create = worktreeCreateGit.run(async () => { - expect(resolveGitAdmissionTier()).toBe('interactive') - await worktreePreparationGit.run(async () => { - await Promise.resolve() - expect(resolveGitAdmissionTier()).toBe('status') - }) - entered.resolve() - await finish.promise - expect(resolveGitAdmissionTier()).toBe('interactive') - expect(resolveGitAdmissionTier('background')).toBe('background') - }) - await entered.promise - expect(resolveGitAdmissionTier()).toBe('status') - finish.resolve() - await create - expect(resolveGitAdmissionTier()).toBe('status') - }) -}) diff --git a/src/main/host/safe-storage-availability.test.ts b/src/main/host/safe-storage-availability.test.ts deleted file mode 100644 index 8179b176676..00000000000 --- a/src/main/host/safe-storage-availability.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' - -const safeStorageMock = vi.hoisted(() => ({ - isEncryptionAvailable: vi.fn(() => true), - encryptString: vi.fn((value: string) => Buffer.from(`sealed:${value}`)), - decryptString: vi.fn((cipher: Buffer) => cipher.toString().replace('sealed:', '')) -})) -vi.mock('electron', () => ({ safeStorage: safeStorageMock })) - -const { - guardedSafeStorage, - resetSafeStorageWithholdForTests, - safeStorageWithheldReason, - withholdSafeStorage -} = await import('./safe-storage-availability') - -describe('guardedSafeStorage', () => { - afterEach(() => { - resetSafeStorageWithholdForTests() - vi.clearAllMocks() - }) - - it('never reaches the native keychain once withheld', () => { - withholdSafeStorage('no default keychain') - withholdSafeStorage('a later reason') - - expect(safeStorageWithheldReason()).toBe('no default keychain') - expect(guardedSafeStorage.isEncryptionAvailable()).toBe(false) - expect(() => guardedSafeStorage.encryptString('token')).toThrow('secrets_unavailable') - expect(() => guardedSafeStorage.decryptString(Buffer.from('x'))).toThrow('secrets_unavailable') - expect(safeStorageMock.isEncryptionAvailable).not.toHaveBeenCalled() - expect(safeStorageMock.encryptString).not.toHaveBeenCalled() - }) -}) diff --git a/src/main/ipc/filesystem/local-file-range-read.test.ts b/src/main/ipc/filesystem/local-file-range-read.test.ts deleted file mode 100644 index 46581df58ff..00000000000 --- a/src/main/ipc/filesystem/local-file-range-read.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { mkdtemp, rm, writeFile } from 'node:fs/promises' -import { tmpdir } from 'node:os' -import { join } from 'node:path' -import { afterEach, beforeEach, expect, it } from 'vitest' -import { readLocalFileRange } from './local-file-range-read' - -let folder: string -beforeEach(async () => { - folder = await mkdtemp(join(tmpdir(), 'orca-file-range-')) -}) -afterEach(async () => { - await rm(folder, { recursive: true, force: true }) -}) - -it('reads only the requested bytes and reports partial and past-EOF ranges', async () => { - const file = join(folder, 'records.csv') - await writeFile(file, '0123456789') - await expect(readLocalFileRange(file, 3, 4)).resolves.toEqual({ - contentBase64: Buffer.from('3456').toString('base64'), - bytesRead: 4, - eof: false - }) - await expect(readLocalFileRange(file, 8, 4)).resolves.toEqual({ - contentBase64: Buffer.from('89').toString('base64'), - bytesRead: 2, - eof: true - }) - await expect(readLocalFileRange(file, 12, 4)).resolves.toEqual({ - contentBase64: '', - bytesRead: 0, - eof: true - }) -}) diff --git a/src/main/ipc/terminal-preview-output-stream.test.ts b/src/main/ipc/terminal-preview-output-stream.test.ts deleted file mode 100644 index 44d2ef94c5c..00000000000 --- a/src/main/ipc/terminal-preview-output-stream.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import type { WebContents } from 'electron' -import { TerminalPreviewOutputStream } from './terminal-preview-output-stream' - -function makeStream(): TerminalPreviewOutputStream { - const contents = { - id: 1, - isDestroyed: () => false, - send: vi.fn() - } as unknown as WebContents - return new TerminalPreviewOutputStream( - contents, - 'p1', - () => undefined, - () => undefined - ) -} - -// Preserve chunk mode: replaying post-snapshot kitty pushes as redelivery corrupts the later pop. -describe('TerminalPreviewOutputStream.completeSnapshot', () => { - it('slices a partially covered chunk and keeps the suffix live', () => { - const stream = makeStream() - stream.append('abc', { seq: 7, rawLength: 3 }) - expect(stream.completeSnapshot(6)).toEqual([{ data: 'c', mode: 'live' }]) - }) - - it('falls back to replay mode for an unsliceable transformed overlap', () => { - const stream = makeStream() - // Transformed bytes cannot be split by raw offsets; preserve uncertain redelivery. - stream.append('abc', { seq: 7, rawLength: 3, transformed: true }) - expect(stream.completeSnapshot(6)).toEqual([{ data: 'abc', mode: 'replay' }]) - }) -}) diff --git a/src/main/native-chat/agent-session-journal/queued-messages/queued-message-context-clear.test.ts b/src/main/native-chat/agent-session-journal/queued-messages/queued-message-context-clear.test.ts deleted file mode 100644 index c5ad225dbe9..00000000000 --- a/src/main/native-chat/agent-session-journal/queued-messages/queued-message-context-clear.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { deriveQueuePauses, journalQueuePauseRestatement } from './queued-message-pause' -import { createJournalQueuePauseMarks } from './queued-message-pause-marks' - -const card = (messageId: string) => ({ - messageId, - state: 'waiting', - holdReason: null, - queuedAt: { epoch: 'epoch', sequence: 2 } -}) -const marks = () => ({ - ...createJournalQueuePauseMarks(), - cleared: { sequence: 5, operationId: 'clear', messageIds: ['before-one', 'before-two'] } -}) -const pauses = (cards = [card('before-one'), card('before-two')], m = marks(), accepted = 0) => - deriveQueuePauses({ - epoch: 'epoch', - marks: m, - latestAcceptedTurnSequence: accepted, - cards, - reopenFloor: null - }) - -describe('exact waiting-card membership after context clear', () => { - it('restates an explicit lift when rewind retires the accepted turn', () => { - const prior = marks() - const cards = [card('before-one'), card('before-two')] - const restated = journalQueuePauseRestatement(prior, 6, pauses(cards, prior, 6)).cleared! - expect(restated.lifted).toBe(true) - expect(pauses(cards, { ...prior, cleared: { ...restated, sequence: 10 } }, 0)).toEqual([]) - }) -}) diff --git a/src/main/native-chat/agent-session-wire/acquisition/testing/structured-agent-session-fork-title.test.ts b/src/main/native-chat/agent-session-wire/acquisition/testing/structured-agent-session-fork-title.test.ts deleted file mode 100644 index 8ba83d1195d..00000000000 --- a/src/main/native-chat/agent-session-wire/acquisition/testing/structured-agent-session-fork-title.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { afterEach, beforeEach, expect, it, vi } from 'vitest' -import { forkTestSource } from './structured-agent-session-fork.test-fixture' -import { - createRestTestRig, - type RestTestRig -} from '../../host/testing/structured-agent-session-rest-test-rig.test-fixture' -import { setStructuredAgentSessionHost } from '../../host/structured-agent-session-registry' - -let rig: RestTestRig -beforeEach(async () => { - rig = await createRestTestRig({ idleSweep: { intervalMs: 60_000 } }) -}) -afterEach(async () => { - setStructuredAgentSessionHost(null) - await rig.dispose() - vi.restoreAllMocks() -}) - -it('saves a fork under its source name, with no " fork" suffix', async () => { - const test = forkTestSource(rig) - test.record.conversationName = 'Annotate capabilities' - const params = await test.prepare() - expect(test.copy.mock.calls[0]![0].title).toBe('Annotate capabilities') - expect(params.adopt?.conversationName).toBe('Annotate capabilities') -}) - -it('saves a fork of an unnamed chat under the agent default label', async () => { - const test = forkTestSource(rig) - test.record.conversationName = undefined - await test.prepare() - expect(test.copy.mock.calls[0]![0].title).toBe('Codex Chat') -}) diff --git a/src/main/observability/diagnostic-upload-http.test.ts b/src/main/observability/diagnostic-upload-http.test.ts deleted file mode 100644 index 589d08459d0..00000000000 --- a/src/main/observability/diagnostic-upload-http.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { EventEmitter } from 'node:events' -import { describe, expect, it, vi } from 'vitest' - -const { httpRequestMock, httpsRequestMock } = vi.hoisted(() => ({ - httpRequestMock: vi.fn(), - httpsRequestMock: vi.fn() -})) - -vi.mock('node:http', () => ({ request: httpRequestMock })) -vi.mock('node:https', () => ({ request: httpsRequestMock })) - -import { postJsonForJson } from './diagnostic-upload-http' - -class FakeRequest extends EventEmitter { - destroy = vi.fn() - end = vi.fn() - write = vi.fn() -} - -describe('diagnostic upload HTTP', () => { - it('handles the asynchronous socket error after a request timeout until close', async () => { - const request = new FakeRequest() - httpRequestMock.mockReturnValueOnce(request) - const result = postJsonForJson('http://diagnostics.example/upload', {}, 1000) - request.emit('timeout') - - await expect(result).rejects.toThrow('diagnostic network request timed out') - expect(request.destroy).toHaveBeenCalledOnce() - expect(() => request.emit('error', new Error('socket hang up'))).not.toThrow() - request.emit('close') - expect(request.eventNames()).toEqual([]) - }) -}) diff --git a/src/main/pty/history/history-gc-worktree-ids.test.ts b/src/main/pty/history/history-gc-worktree-ids.test.ts deleted file mode 100644 index 0604b456f0a..00000000000 --- a/src/main/pty/history/history-gc-worktree-ids.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** An incomplete GC live set deletes owned history; regressions here caused the #14863 revert (#14975). */ -import { describe, expect, it } from 'vitest' -import { getKnownWorktreeIdsForHistoryGc } from './history-gc-worktree-ids' - -const noOtherProfiles = () => ({ ids: new Set(), unreadableProfiles: 0 }) - -const store = (worktreeIds: string[], folderIds: string[]) => - ({ - getAllWorktreeMeta: () => Object.fromEntries(worktreeIds.map((id) => [id, {}])), - getFolderWorkspaces: () => folderIds.map((id) => ({ id })) - }) as never - -describe('getKnownWorktreeIdsForHistoryGc', () => { - it('includes git worktrees', () => { - expect( - getKnownWorktreeIdsForHistoryGc(store(['repo-1::/path/wt'], []), noOtherProfiles) - ).toEqual(new Set(['repo-1::/path/wt'])) - }) - - // Folder PTYs mint history under folder:; omitting their separate store collection falsely marks live history orphaned. - - // History is not profile-scoped, so other profiles must remain in the live set. - - // Unreadable profiles make ownership unknown; empty means prune nothing, while partial IDs would delete live history. - it('reports nothing live when a profile could not be read', () => { - const live = getKnownWorktreeIdsForHistoryGc(store(['repo-1::/b'], ['fw-b']), () => ({ - ids: new Set(['repo-1::/a']), - unreadableProfiles: 1 - })) - - expect(live.size).toBe(0) - }) -}) diff --git a/src/main/runtime/agent-state-rules/antigravity-background-task-rules.test.ts b/src/main/runtime/agent-state-rules/antigravity-background-task-rules.test.ts deleted file mode 100644 index 408195ec75e..00000000000 --- a/src/main/runtime/agent-state-rules/antigravity-background-task-rules.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { readFileSync } from 'node:fs' -import { join } from 'node:path' -import { describe, expect, it } from 'vitest' -import { HeadlessEmulator } from '../../daemon/emulation/headless-emulator' -import { visibleNonBlankTerminalLines } from '../terminal/output/tail/terminal-tail-read' -import { evaluateAgentStateRules } from './agent-state-rules-engine' - -async function verdictFor(fixture: string) { - const emulator = new HeadlessEmulator({ cols: 120, rows: 40 }) - await emulator.write( - readFileSync(join(__dirname, '..', '__fixtures__', `${fixture}.txt`), 'utf8') - ) - const lines = visibleNonBlankTerminalLines(emulator.getVisibleLines()) - emulator.dispose() - return evaluateAgentStateRules('antigravity', { readScreenLines: () => lines }) -} - -describe('antigravity composer with background task rows', () => { - it.each([ - 'antigravity-1-4-11-ready-background-task', - 'antigravity-1-4-11-ready-two-background-tasks' - ])('reads %s as a strong idle composer', async (fixture) => { - expect(await verdictFor(fixture)).toMatchObject({ state: 'idle', strength: 'strong' }) - }) - - it.each([ - 'antigravity-1-4-11-busy-with-background-task', - 'antigravity-1-4-11-draft-with-background-task' - ])('holds %s', async (fixture) => { - expect(await verdictFor(fixture)).toMatchObject({ state: 'hold' }) - }) -}) diff --git a/src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts b/src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts deleted file mode 100644 index 0d9cee858af..00000000000 --- a/src/main/runtime/browser-host/reconciliation/browser-host-page-placement-replacement.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { BrowserHostPagePlacementRegistry } from './browser-host-page-placement' - -const host = { - browserHostClientId: 'host-a', - browserHostGeneration: 1 -} - -const registry = (maxPagePlacements = 256): BrowserHostPagePlacementRegistry => - new BrowserHostPagePlacementRegistry( - { authorityRuntimeId: 'runtime-a', authorityEpoch: 'epoch-a' }, - { maxPagePlacements } - ) - -describe('browser page placement replacement barrier', () => { - it('keeps capacity occupied until exact retirement and preserves generations', () => { - const pages = registry(1) - const original = pages.placeClientPage('page-a', host) - - expect(() => pages.placeClientPage('page-a', host)).toThrow( - 'browser_page_replacement_requires_retirement' - ) - expect(() => pages.placeServerPage('page-b')).toThrow('browser_page_placement_capacity') - const retirement = pages.beginPageRetirement('page-a', original) - expect(pages.completePageRetirement(retirement)).toBe(true) - - const replacement = pages.placeClientPage('page-a', host) - expect(replacement.pageHostGeneration).toBe(original.pageHostGeneration + 1) - expect(pages.completePageRetirement(retirement)).toBe(false) - expect(() => pages.placeServerPage('page-b')).toThrow('browser_page_placement_capacity') - expect(pages.getPlacement('page-a')).toBe(replacement) - }) -}) diff --git a/src/main/runtime/browser/screencast/browser-screencast-driver-attribution.test.ts b/src/main/runtime/browser/screencast/browser-screencast-driver-attribution.test.ts deleted file mode 100644 index 625767cbaf6..00000000000 --- a/src/main/runtime/browser/screencast/browser-screencast-driver-attribution.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** Shared screencast subscriptions must not give desktop/web/CLI viewers a phone's input lock. */ -import { describe, expect, it, vi } from 'vitest' -import { - createScreencastHarness, - HARNESS_PAGE_ID as PAGE -} from './browser-screencast-subscriber-test-harness' - -vi.mock('electron', () => ({ - ipcMain: { on: vi.fn(), removeListener: vi.fn(), handle: vi.fn(), removeHandler: vi.fn() }, - webContents: { fromId: vi.fn() } -})) - -describe('browser screencast driver attribution', () => { - it('take-back cancels the phone stream and leaves a desktop viewer streaming', async () => { - const { runtime, subscribe, driver } = createScreencastHarness() - const phone = subscribe({ connectionId: 'conn-phone', clientKind: 'mobile' }) - await phone.streaming() - expect(driver()).toEqual({ kind: 'mobile', clientId: 'conn-phone' }) - const desktop = subscribe({ connectionId: 'conn-desktop', clientKind: 'runtime' }) - await desktop.streaming() - - runtime.reclaimBrowserForDesktop(PAGE) - await phone.done - expect(driver()).toEqual({ kind: 'desktop' }) - expect(phone.stops()).toBe(1) - expect(desktop.stops()).toBe(0) - - desktop.stop() - await desktop.done - // Prove the counter can move; zero alone could be a vacuous assertion. - expect(desktop.stops()).toBeGreaterThan(0) - }) -}) diff --git a/src/main/runtime/terminal/output/recent-pty-output-retention.test.ts b/src/main/runtime/terminal/output/recent-pty-output-retention.test.ts deleted file mode 100644 index a76935c0c85..00000000000 --- a/src/main/runtime/terminal/output/recent-pty-output-retention.test.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { RECENT_PTY_OUTPUT_LIMIT, RecentPtyOutputBuffer } from './recent-pty-output-buffer' - -function heapAfterGc(): number { - if (!('gc' in globalThis) || typeof globalThis.gc !== 'function') { - throw new Error('The test runner must enable --expose-gc') - } - globalThis.gc() - globalThis.gc() - return process.memoryUsage().heapUsed -} - -describe('recent PTY output retention', () => { - it('releases oversized parent strings', () => { - const count = 8 - const before = heapAfterGc() - const buffers = Array.from({ length: count }, (_value, index) => { - const buffer = new RecentPtyOutputBuffer() - buffer.append(`${index}:${'x'.repeat(4 * 1024 * 1024)}`) - return buffer - }) - const growth = heapAfterGc() - before - - expect(growth).toBeLessThan(count * RECENT_PTY_OUTPUT_LIMIT * 4) - for (const buffer of buffers) { - expect(buffer.read()).toBe('x'.repeat(RECENT_PTY_OUTPUT_LIMIT)) - buffer.append('next') - expect(buffer.read()).toBe(`${'x'.repeat(RECENT_PTY_OUTPUT_LIMIT - 4)}next`) - } - }) -}) diff --git a/src/main/runtime/terminal/wait/claude-worker-start-readiness.test.ts b/src/main/runtime/terminal/wait/claude-worker-start-readiness.test.ts deleted file mode 100644 index 954bc0971a4..00000000000 --- a/src/main/runtime/terminal/wait/claude-worker-start-readiness.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { createDraftPasteReadyScanner } from '../../../../shared/draft-paste-ready-scanner' -import { readRuntimeFixture } from './agent-transcript-replay-test-harness' - -vi.mock('electron', () => ({ - BrowserWindow: { fromId: vi.fn(() => null) }, - webContents: { fromId: vi.fn(() => null) }, - ipcMain: { on: vi.fn(), removeListener: vi.fn() }, - app: { getPath: vi.fn(() => '/tmp') } -})) - -describe('the Claude composer marker', () => { - const firesOn = (fixture: string): boolean => { - const scanner = createDraftPasteReadyScanner('claude-composer-prompt') - return scanner.observe(readRuntimeFixture(fixture)).ready - } - - it('does not fire on the workspace-trust menu, which draws the same pointer', () => { - expect(readRuntimeFixture('claude-dialog-trust-workspace')).toContain('❯') - expect(firesOn('claude-dialog-trust-workspace')).toBe(false) - }) - - // A powerlevel10k/starship prompt draws the same `❯` + NBSP after the shell's own DECSET 2004. - const SHELL_PROMPT = '\x1b[?2004h~/repo \x1b[32m❯ \x1b[0m' - - it('does not fire on a shell prompt that draws the same glyph', () => { - // Presence precondition: the shell turns bracketed paste on just as Claude does. - expect(readRuntimeFixture('zsh-prompt-runs-command')).toContain('\x1b[?2004h') - const scanner = createDraftPasteReadyScanner('claude-composer-prompt') - expect(scanner.observe(readRuntimeFixture('zsh-prompt-runs-command')).ready).toBe(false) - expect(scanner.observe(SHELL_PROMPT).ready).toBe(false) - }) -}) diff --git a/src/main/skills/filesystem/skill-transaction-staging-visibility.test.ts b/src/main/skills/filesystem/skill-transaction-staging-visibility.test.ts deleted file mode 100644 index 8b421aa106e..00000000000 --- a/src/main/skills/filesystem/skill-transaction-staging-visibility.test.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises' -import { tmpdir } from 'node:os' -import { join } from 'node:path' -import { afterEach, describe, expect, it } from 'vitest' -import { findSkillFiles } from '../discovery/skill-root-file-walk' -import { skillDeleteStagedName } from '../skill-delete/skill-delete-staging-names' - -const roots: string[] = [] - -afterEach(async () => { - await Promise.all(roots.splice(0).map((root) => rm(root, { recursive: true, force: true }))) -}) - -async function stagedRoot(stagedName: string): Promise { - const root = await mkdtemp(join(tmpdir(), 'orca-staging-visibility-')) - roots.push(root) - const staged = join(root, stagedName) - await mkdir(staged, { recursive: true }) - await writeFile(join(staged, 'SKILL.md'), '---\nname: demo\n---\n') - return root -} - -describe('native walker', () => { - it('still finds an ordinary skill beside a staged one', async () => { - const root = await stagedRoot(skillDeleteStagedName('demo', 'id')) - const real = join(root, 'demo') - await mkdir(real) - await writeFile(join(real, 'SKILL.md'), '---\nname: demo\n---\n') - expect(await findSkillFiles(root, 4)).toEqual([join(real, 'SKILL.md')]) - }) -}) diff --git a/src/renderer/src/components/browser-pane/annotate/drawing/markup-shape-render.test.ts b/src/renderer/src/components/browser-pane/annotate/drawing/markup-shape-render.test.ts deleted file mode 100644 index f9380f0ae37..00000000000 --- a/src/renderer/src/components/browser-pane/annotate/drawing/markup-shape-render.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { textInkBox } from './markup-shape-render' - -// Record the context subset drawShape uses without requiring a real canvas. -function makeRecordingCtx() { - const calls: { method: string; args: unknown[] }[] = [] - const record = - (method: string) => - (...args: unknown[]) => { - calls.push({ method, args }) - } - const ctx = { - save: record('save'), - restore: record('restore'), - beginPath: record('beginPath'), - moveTo: record('moveTo'), - lineTo: record('lineTo'), - arc: record('arc'), - ellipse: record('ellipse'), - stroke: record('stroke'), - fill: record('fill'), - strokeRect: record('strokeRect'), - fillText: record('fillText'), - strokeText: record('strokeText'), - // Records the style in force when measuring, and returns fixed ink metrics. - measureText: () => { - calls.push({ method: 'measureText', args: [ctx.font, ctx.textBaseline] }) - return { - actualBoundingBoxLeft: 1, - actualBoundingBoxRight: 40, - actualBoundingBoxAscent: -2, - actualBoundingBoxDescent: 20 - } - }, - lineCap: '', - lineJoin: '', - strokeStyle: '', - fillStyle: '', - lineWidth: 0, - globalAlpha: 1, - font: '', - textBaseline: '' - } - const methods = (name: string) => calls.filter((c) => c.method === name) - return { ctx: ctx as unknown as CanvasRenderingContext2D, calls, methods } -} - -describe('textInkBox', () => { - it('covers the measured glyphs plus the halo, measured in the style text is drawn with', () => { - const { ctx, methods } = makeRecordingCtx() - - const box = textInkBox(ctx, { - id: 't', - kind: 'text', - color: '#111827', - at: { x: 100, y: 200 }, - text: 'gy', - fontSize: 18 - }) - - const [font, textBaseline] = methods('measureText')[0].args - expect(font).toContain('18px') - expect(textBaseline).toBe('top') - // The halo is 3px wide at 18px type, so it adds 1.5px on every side. - expect(box).toEqual({ x: 97.5, y: 200.5, width: 44, height: 21 }) - }) -}) diff --git a/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-budget.test.ts b/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-budget.test.ts deleted file mode 100644 index a64f64a0e45..00000000000 --- a/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-budget.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { MarkdownPreviewDocumentEngine } from './markdown-preview-document-engine' -import type * as DocumentTypes from './markdown-preview-document-types' - -vi.mock('./markdown-preview-document-types', async () => ({ - ...(await vi.importActual('./markdown-preview-document-types')), - MARKDOWN_PREVIEW_SEARCH_TEXT_MAX_BYTES: 32, - MARKDOWN_PREVIEW_SEARCH_TEXT_MAX_NODES: 3 -})) - -describe('large preview search index budgets', () => { - it('bounds retained text bytes, leaves viewport rendering available, and resets on replacement', async () => { - const engine = new MarkdownPreviewDocumentEngine() - engine.load('12345678\n\nabcdefgh\n\nexhaust') - await expect(engine.search('missing')).rejects.toThrow('search limit') - await expect(engine.search('123')).rejects.toThrow('search limit') - expect(engine.blocks([2])[0].oversized).toBe(false) - engine.load('# New') - expect((await engine.search('New'))?.matches).toHaveLength(1) - }) -}) diff --git a/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-cache.test.ts b/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-cache.test.ts deleted file mode 100644 index 8a616877f6a..00000000000 --- a/src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-search-cache.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { MarkdownPreviewDocumentEngine } from './markdown-preview-document-engine' - -describe('large preview searchable text ownership', () => { - it('cancels indexing, retains completed text, and clears it on document replacement', async () => { - const engine = new MarkdownPreviewDocumentEngine() - engine.load('needle\n\n'.repeat(100)) - const pending = engine.search('needle') - engine.cancelSearch() - expect(await pending).toBeNull() - expect((await engine.search('needle'))?.matches).toHaveLength(100) - engine.load('needle replacement') - expect((await engine.search('replacement'))?.matches).toHaveLength(1) - }) -}) diff --git a/src/renderer/src/components/native-chat/appearance/native-chat-appearance-write.test.ts b/src/renderer/src/components/native-chat/appearance/native-chat-appearance-write.test.ts deleted file mode 100644 index b4c69d45ce3..00000000000 --- a/src/renderer/src/components/native-chat/appearance/native-chat-appearance-write.test.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { GlobalSettings } from '../../../../../shared/global-settings-types' -import { getDefaultSettings } from '../../../../../shared/constants' -import { beforeEach, describe, expect, it, vi } from 'vitest' - -const mock = vi.hoisted( - (): { - state: { - settings: GlobalSettings | null - updateSettings: (updates: Partial) => Promise - } - } => ({ state: { settings: null, updateSettings: async () => {} } }) -) - -vi.mock('../../../store/index', () => ({ useAppStore: { getState: () => mock.state } })) - -import { writeNativeChatAppearance } from './native-chat-appearance-write' -import { writeNativeChatFontSize } from './native-chat-font-size-write' - -beforeEach(() => { - mock.state.settings = getDefaultSettings('/tmp') -}) - -describe('chat appearance write queue', () => { - it('serializes card and zoom changes against the latest published settings', async () => { - let releaseFirst: () => void = () => {} - const firstWrite = new Promise((resolve) => { - releaseFirst = resolve - }) - let calls = 0 - const updateSettings = vi.fn(async (updates: Partial) => { - calls += 1 - if (calls === 1) { - await firstWrite - } - mock.state.settings = { ...mock.state.settings!, ...updates } - }) - mock.state.updateSettings = updateSettings - const fromNewerVersion = { fontSize: 14, contrast: 151, futureSetting: 'keep' } - mock.state.settings = { - ...getDefaultSettings('/tmp'), - nativeChatAppearance: fromNewerVersion - } - - const cardWrite = writeNativeChatAppearance((current) => ({ ...current, codeFontSize: 16 })) - const zoomWrite = writeNativeChatFontSize('increase') - await vi.waitFor(() => expect(updateSettings).toHaveBeenCalledTimes(1)) - releaseFirst() - await Promise.all([cardWrite, zoomWrite]) - - expect(updateSettings).toHaveBeenCalledTimes(2) - expect(mock.state.settings?.nativeChatAppearance).toEqual({ - contrast: 150, - futureSetting: 'keep', - codeFontSize: 16, - fontSize: 15 - }) - }) -}) diff --git a/src/renderer/src/components/native-chat/drafts/native-chat-sent-prompt-history.test.ts b/src/renderer/src/components/native-chat/drafts/native-chat-sent-prompt-history.test.ts deleted file mode 100644 index 6b909651115..00000000000 --- a/src/renderer/src/components/native-chat/drafts/native-chat-sent-prompt-history.test.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { describe, expect, it } from 'vitest' -import type { NativeChatMessage } from '../../../../../shared/native-chat/native-chat-types' -import { - nativeChatSentPrompts, - stepNativeChatPromptRecall -} from './native-chat-sent-prompt-history' - -function message( - id: string, - role: NativeChatMessage['role'], - text: string, - extra: Partial = {} -): NativeChatMessage { - return { - id, - role, - blocks: text ? [{ type: 'text', text }] : [], - timestamp: null, - source: 'transcript', - ...extra - } -} - -describe('nativeChatSentPrompts', () => { - it('recalls a structured prompt without the markers of images recall cannot bring back', () => { - const image = { type: 'image-ref' as const, path: '/tmp/a.png' } - const messages = [ - message('1', 'user', '', { blocks: [image, { type: 'text', text: '[Image #1] ' }] }), - message('2', 'user', '', { blocks: [image, { type: 'text', text: 'fix [Image #1]' }] }) - ] - expect(nativeChatSentPrompts({ messages, withoutImageMarkers: true })).toEqual([ - { id: '2', prompt: 'fix' } - ]) - const typed = [ - message('3', 'user', '[Image #1]'), - message('4', 'user', '', { blocks: [image, { type: 'text', text: 'not [Image #2]' }] }) - ] - expect(nativeChatSentPrompts({ messages: typed, withoutImageMarkers: true })).toEqual([ - { id: '3', prompt: '[Image #1]' }, - { id: '4', prompt: 'not [Image #2]' } - ]) - // A terminal chat's transcript text is the agent's own, markers included. - expect(nativeChatSentPrompts({ messages }).map(({ prompt }) => prompt)).toEqual([ - '[Image #1]', - 'fix [Image #1]' - ]) - }) -}) - -describe('stepNativeChatPromptRecall', () => { - const prompts = [ - { id: '1', prompt: 'one' }, - { id: '2', prompt: 'two' } - ] - - it('keeps its place when the recalled echo is replaced by its transcript turn', () => { - const step = stepNativeChatPromptRecall({ - direction: 'back', - prompts, - position: { id: 'pending:9', recalled: 'two' }, - draft: 'two' - }) - expect(step?.draft).toBe('one') - }) -}) diff --git a/src/renderer/src/components/native-chat/markdown/use-native-chat-paced-text.remount.test.tsx b/src/renderer/src/components/native-chat/markdown/use-native-chat-paced-text.remount.test.tsx deleted file mode 100644 index f0c116082c8..00000000000 --- a/src/renderer/src/components/native-chat/markdown/use-native-chat-paced-text.remount.test.tsx +++ /dev/null @@ -1,67 +0,0 @@ -// @vitest-environment happy-dom -import { act, cleanup, renderHook } from '@testing-library/react' -import type { ReactNode } from 'react' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { NativeChatReplyRevealsContext } from './native-chat-reply-reveals' -import type { NativeChatReplyReveals } from '../../../../../shared/native-chat/transcript/row-content/native-chat-reply-reveals' - -import { useNativeChatPacedText } from './use-native-chat-paced-text' - -const motion = vi.hoisted(() => ({ reduced: false })) -vi.mock('@/hooks/usePrefersReducedMotion', () => ({ - usePrefersReducedMotion: () => motion.reduced -})) - -function transcript(): NativeChatReplyReveals { - return { begun: new Set(['reply']), drawn: new Map() } -} -function within(reveals = transcript()) { - return function Transcript({ children }: { children: ReactNode }) { - return ( - - {children} - - ) - } -} -function advance(ms: number): void { - act(() => vi.advanceTimersByTime(ms)) -} - -beforeEach(() => { - motion.reduced = false - vi.useFakeTimers({ - toFake: [ - 'setTimeout', - 'clearTimeout', - 'requestAnimationFrame', - 'cancelAnimationFrame', - 'performance' - ] - }) -}) -afterEach(() => { - cleanup() - vi.useRealTimers() -}) - -describe('fixed latency text reveal', () => { - it('keeps the original deadline through a reconnect and remount', () => { - const wrapper = within() - const row = renderHook(() => useNativeChatPacedText('reply', 'a '.repeat(1000), true), { - wrapper - }) - advance(100) - const shown = row.result.current.text.length - expect(shown).toBeGreaterThan(0) - expect(shown).toBeLessThan(2000) - row.unmount() - advance(200) - const returned = renderHook(() => useNativeChatPacedText('reply', 'a '.repeat(1000), true), { - wrapper - }) - expect(returned.result.current.text.length).toBeGreaterThan(shown) - advance(50) - expect(returned.result.current.text).toHaveLength(2000) - }) -}) diff --git a/src/renderer/src/components/new-workspace/setup/WorkspaceSetupChoice.test.tsx b/src/renderer/src/components/new-workspace/setup/WorkspaceSetupChoice.test.tsx deleted file mode 100644 index d9e83d5d164..00000000000 --- a/src/renderer/src/components/new-workspace/setup/WorkspaceSetupChoice.test.tsx +++ /dev/null @@ -1,53 +0,0 @@ -// @vitest-environment happy-dom -import { cleanup, render, screen } from '@testing-library/react' -import { afterEach, describe, expect, it, vi } from 'vitest' -import { WorkspaceSetupChoice } from './WorkspaceSetupChoice' - -afterEach(() => { - cleanup() - vi.useRealTimers() -}) - -describe('WorkspaceSetupChoice', () => { - it('brings the choice into view and focuses it on each reveal request', () => { - vi.useFakeTimers() - const scrollIntoView = vi.fn() - Element.prototype.scrollIntoView = scrollIntoView - const onRevealed = vi.fn() - const props = { - decision: null, - onChange: vi.fn(), - runLabel: 'Run', - skipLabel: 'Skip', - onRevealed - } - const { rerender } = render() - vi.runAllTimers() - expect(scrollIntoView).not.toHaveBeenCalled() - - // A second request matters too: Advanced may already be open from the first. - for (const revealRequest of [1, 2]) { - rerender() - vi.runAllTimers() - expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Run' })) - } - expect(scrollIntoView).toHaveBeenCalledTimes(2) - // Each handled request is cleared so a remount after a project switch cannot replay it. - expect(onRevealed).toHaveBeenCalledTimes(2) - }) - - it('does not move focus onto Run when the user chose before the reveal fired', () => { - vi.useFakeTimers() - Element.prototype.scrollIntoView = vi.fn() - const onRevealed = vi.fn() - const props = { onChange: vi.fn(), runLabel: 'Run', skipLabel: 'Skip', onRevealed } - const { rerender } = render( - - ) - rerender() - vi.runAllTimers() - - expect(document.activeElement).not.toBe(screen.getByRole('button', { name: 'Run' })) - expect(onRevealed).toHaveBeenCalledTimes(1) - }) -}) diff --git a/src/renderer/src/components/plugins/state/use-plugin-contribution-source.test.tsx b/src/renderer/src/components/plugins/state/use-plugin-contribution-source.test.tsx deleted file mode 100644 index c0a3a680ea3..00000000000 --- a/src/renderer/src/components/plugins/state/use-plugin-contribution-source.test.tsx +++ /dev/null @@ -1,58 +0,0 @@ -// @vitest-environment happy-dom - -import { act } from 'react' -import { createRoot, type Root } from 'react-dom/client' -import { afterEach, describe, expect, it, vi } from 'vitest' -import { pluginManifestSchema } from '../../../../../shared/plugins/manifest/plugin-manifest' -import { useInstalledPluginManifest } from './use-plugin-contribution-source' - -const base = { - manifestVersion: 1, - id: 'notes', - publisher: 'acme', - name: 'Notes', - engines: { orca: '>=1.0.0' }, - pluginApi: 1 -} -const before = pluginManifestSchema.parse({ ...base, version: '1.0.0' }) -const after = pluginManifestSchema.parse({ ...base, version: '2.0.0' }) - -let root: Root | null = null -afterEach(() => { - act(() => root?.unmount()) - root = null -}) - -describe('useInstalledPluginManifest', () => { - it('forgets the old manifest when a same-key update changes the installed revision', async () => { - let resolveNext: (manifest: typeof after) => void = () => {} - const getInstalledManifest = vi - .fn() - .mockResolvedValueOnce(before) - .mockReturnValueOnce(new Promise((resolve) => (resolveNext = resolve))) - Object.defineProperty(window, 'api', { - configurable: true, - value: { plugins: { getInstalledManifest } } - }) - const seen: unknown[] = [] - function Probe({ revision }: { revision: string }): null { - seen.push( - useInstalledPluginManifest({ - pluginKey: 'acme.notes', - consentFingerprint: revision, - source: undefined - })?.version - ) - return null - } - root = createRoot(document.createElement('div')) - await act(async () => root?.render()) - expect(seen.at(-1)).toBe('1.0.0') - - // Why undefined first: pairing 1.0.0's contents with the new fingerprint would misreport trust. - await act(async () => root?.render()) - expect(seen.at(-1)).toBeUndefined() - await act(async () => resolveNext(after)) - expect(seen.at(-1)).toBe('2.0.0') - }) -}) diff --git a/src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.test.ts b/src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.test.ts deleted file mode 100644 index d8690626e15..00000000000 --- a/src/renderer/src/components/sidebar/workspace-actions/context-menu/workspace-lineage-menu-actions.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import type { WorktreeLineage } from '../../../../../../shared/worktree/lineage-types' -import type { Worktree } from '../../../../../../shared/worktree/types' - -import { getWorkspaceLineageMenuActions } from './workspace-lineage-menu-actions' - -function makeWorktree(id: string): Worktree { - return { - id, - instanceId: `${id}-instance`, - repoId: 'repo-1', - path: `/workspaces/${id}`, - head: 'abc123', - branch: id, - isBare: false, - isMainWorktree: false, - displayName: id, - comment: '', - linkedIssue: null, - linkedPR: null, - linkedLinearIssue: null, - isArchived: false, - isUnread: false, - isPinned: false, - sortOrder: 0, - lastActivityAt: 1 - } -} - -function makeLineage(child: Worktree, parent: Worktree): WorktreeLineage { - return { - worktreeId: child.id, - worktreeInstanceId: child.instanceId ?? '', - parentWorktreeId: parent.id, - parentWorktreeInstanceId: parent.instanceId ?? '', - origin: 'manual', - capture: { source: 'manual-action', confidence: 'explicit' }, - createdAt: 1 - } -} - -describe('workspace lineage menu actions', () => { - it('does not expose stale descendants through the recursive action scope', () => { - const parent = makeWorktree('parent') - const child = makeWorktree('child') - - const actions = getWorkspaceLineageMenuActions({ - parent, - worktrees: [parent, child], - lineageById: { - [child.id]: { - ...makeLineage(child, parent), - parentWorktreeInstanceId: 'stale-parent-instance' - } - }, - activity: { - tabsByWorktree: { [child.id]: [{ id: 'child-tab' }] }, - ptyIdsByTabId: { 'child-tab': ['child-pty'] }, - browserTabsByWorktree: {}, - unifiedTabsByWorktree: {}, - agentStatusByPaneKey: {}, - structuredChatSleptAtByPaneKey: {} - } - }) - - expect(actions.descendants).toEqual([]) - expect(actions.sleepableTargets).toEqual([]) - }) -}) diff --git a/src/renderer/src/components/tab-bar/SortableTab.fork.test.tsx b/src/renderer/src/components/tab-bar/SortableTab.fork.test.tsx deleted file mode 100644 index 4546a580fad..00000000000 --- a/src/renderer/src/components/tab-bar/SortableTab.fork.test.tsx +++ /dev/null @@ -1,68 +0,0 @@ -// @vitest-environment happy-dom -import '@testing-library/jest-dom/vitest' -import { DndContext } from '@dnd-kit/core' -import { cleanup, render, screen } from '@testing-library/react' -import { afterEach, expect, it } from 'vitest' -import { TooltipProvider } from '@/components/ui/tooltip' -import SortableTab from './SortableTab' - -afterEach(cleanup) - -const noop = (): void => {} - -function renderChatTab(fork: boolean): void { - render( - - - 'Fork of Annotate', markedTitle: 'Fork · Annotate' } - : undefined - } - /> - - - ) -} - -it("names a fork tab's close button after its marked title", () => { - renderChatTab(true) - expect(screen.getByRole('button', { name: 'Close tab Fork · Annotate' })).toBeInTheDocument() - expect(screen.getByText('Fork: Annotate')).toBeInTheDocument() -}) - -it('keeps the plain title on an original chat tab', () => { - renderChatTab(false) - expect(screen.getByRole('button', { name: 'Close tab Annotate' })).toBeInTheDocument() -}) diff --git a/src/renderer/src/components/task-page/jira/filters/use-task-page-jira-saved-filters.test.tsx b/src/renderer/src/components/task-page/jira/filters/use-task-page-jira-saved-filters.test.tsx deleted file mode 100644 index 9d536b63eb9..00000000000 --- a/src/renderer/src/components/task-page/jira/filters/use-task-page-jira-saved-filters.test.tsx +++ /dev/null @@ -1,58 +0,0 @@ -// @vitest-environment happy-dom -import { afterEach, beforeEach, expect, it, vi } from 'vitest' -import { act, cleanup, renderHook, waitFor } from '@testing-library/react' - -import { useTaskPageJiraSavedFilters } from './use-task-page-jira-saved-filters' -import { toRuntimeExecutionHostId } from '../../../../../../shared/execution-host' -const { read, mutate } = vi.hoisted(() => ({ read: vi.fn(), mutate: vi.fn() })) -vi.mock('@/runtime/jira/runtime-jira-saved-filter-state', () => ({ - readJiraSavedFilterState: read, - mutateJiraSavedFilters: mutate -})) -afterEach(cleanup) -beforeEach(() => { - vi.resetAllMocks() -}) -const filter = { id: 'mine', name: 'My work', jql: 'project = APP' } -const initial = { filters: [filter], activeFilterId: filter.id } -function model( - host: string | null, - accountHost = 'account-owner' -): Parameters[0] { - return { - taskSource: 'jira', - taskResumeApplied: true, - accountBackedTaskSourceHostId: toRuntimeExecutionHostId(accountHost), - jiraTaskSourceContext: host - ? { - kind: 'task-source', - provider: 'jira', - projectId: 'project', - hostId: toRuntimeExecutionHostId(host) - } - : null - } -} -it('ignores an old host read that completes after switching execution hosts', async () => { - let resolveOld: (value: typeof initial) => void = () => {} - read - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveOld = resolve - }) - ) - .mockResolvedValueOnce({ filters: [], activeFilterId: null }) - const setQuery = vi.fn() - const { result, rerender } = renderHook( - ({ host }) => useTaskPageJiraSavedFilters(model(host), setQuery), - { initialProps: { host: 'host-a' } } - ) - rerender({ host: 'host-b' }) - await waitFor(() => expect(result.current.jiraSavedFiltersReady).toBe(true)) - await act(async () => { - resolveOld(initial) - }) - expect(result.current.jiraSavedFilters).toEqual([]) - expect(setQuery).not.toHaveBeenCalledWith(filter.jql) -}) diff --git a/src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-live-layout-reconciliation.test.ts b/src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-live-layout-reconciliation.test.ts deleted file mode 100644 index c66bdbf9924..00000000000 --- a/src/renderer/src/components/terminal-pane/layout/reconciliation/terminal-live-layout-reconciliation.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { planTerminalLiveLayoutInsertions } from './terminal-live-layout-reconciliation' -import type { TerminalPaneLayoutNode } from '../../../../../../shared/workspace-layout/terminal-tab-types' - -describe('planTerminalLiveLayoutInsertions', () => { - it('bridges a missing parent second subtree before filling the first subtree', () => { - const layout: TerminalPaneLayoutNode = { - type: 'split', - direction: 'vertical', - first: { - type: 'split', - direction: 'horizontal', - first: { type: 'leaf', leafId: 'leaf-a' }, - second: { type: 'leaf', leafId: 'leaf-b' } - }, - second: { type: 'leaf', leafId: 'leaf-c' } - } - - expect(planTerminalLiveLayoutInsertions(layout, ['leaf-a'])).toEqual([ - { - sourceLeafId: 'leaf-a', - sourceLeafIds: ['leaf-a'], - newLeafId: 'leaf-c', - direction: 'vertical', - placement: 'after' - }, - { - sourceLeafId: 'leaf-a', - sourceLeafIds: ['leaf-a'], - newLeafId: 'leaf-b', - direction: 'horizontal', - placement: 'after' - } - ]) - }) - - it('plans nested missing first subtrees from an anchor in the second subtree', () => { - const layout: TerminalPaneLayoutNode = { - type: 'split', - direction: 'vertical', - first: { type: 'leaf', leafId: 'leaf-a' }, - second: { - type: 'split', - direction: 'horizontal', - first: { type: 'leaf', leafId: 'leaf-b' }, - second: { type: 'leaf', leafId: 'leaf-c' } - } - } - - expect(planTerminalLiveLayoutInsertions(layout, ['leaf-c'])).toEqual([ - { - sourceLeafId: 'leaf-c', - sourceLeafIds: ['leaf-c'], - newLeafId: 'leaf-a', - direction: 'vertical', - placement: 'before' - }, - { - sourceLeafId: 'leaf-c', - sourceLeafIds: ['leaf-c'], - newLeafId: 'leaf-b', - direction: 'horizontal', - placement: 'before' - } - ]) - }) -}) diff --git a/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-registry.test.ts b/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-registry.test.ts deleted file mode 100644 index f984a887bc8..00000000000 --- a/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-watcher-registry.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' -import { - bufferPreHandlerPtyData, - bufferPreHandlerPtyExit, - clearPreHandlerPtyState, - drainPreHandlerPtyData, - drainPreHandlerPtyExit, - hasPreHandlerPtyExit -} from '../../pty-transport/delivery/pty-pre-handler-buffer' -import { - capturedPanesByTabId, - parkedWatchersByTabId, - pruneParkedTerminalWatchers -} from './terminal-parked-watcher-registry' - -const TAB_ID = 'removed-parked-tab' -const PTY_ID = 'removed-worktree@@parked-pty' -const FLOATING_TAB_ID = 'floating-parked-tab' - -describe('terminal parked watcher registry removal', () => { - afterEach(() => { - parkedWatchersByTabId.delete(TAB_ID) - parkedWatchersByTabId.delete(FLOATING_TAB_ID) - capturedPanesByTabId.delete(TAB_ID) - capturedPanesByTabId.delete(FLOATING_TAB_ID) - clearPreHandlerPtyState(PTY_ID) - }) - - it('consumes retained state and suppresses a delayed exit for a removed worktree', () => { - const dispose = vi.fn() - parkedWatchersByTabId.set(TAB_ID, { - worktreeId: 'removed-worktree', - tabPtyId: PTY_ID, - paneIdByPtyId: new Map([[PTY_ID, 1]]), - disposersByPtyId: new Map([[PTY_ID, dispose]]) - }) - bufferPreHandlerPtyData(PTY_ID, 'final frame') - bufferPreHandlerPtyExit(PTY_ID, 17) - - pruneParkedTerminalWatchers(new Set()) - - expect(dispose).toHaveBeenCalledTimes(1) - expect(parkedWatchersByTabId.has(TAB_ID)).toBe(false) - expect(hasPreHandlerPtyExit(PTY_ID)).toBe(false) - const data = vi.fn() - drainPreHandlerPtyData(PTY_ID, data) - expect(data).not.toHaveBeenCalled() - - // Why: the actual kill exit can arrive after sidecar disposal and prune. - bufferPreHandlerPtyExit(PTY_ID, 18) - bufferPreHandlerPtyData(PTY_ID, 'delayed final frame') - const exit = vi.fn() - const delayedData = vi.fn() - drainPreHandlerPtyExit(PTY_ID, exit) - drainPreHandlerPtyData(PTY_ID, delayedData) - expect(exit).not.toHaveBeenCalled() - expect(delayedData).not.toHaveBeenCalled() - }) -}) diff --git a/src/renderer/src/components/terminal-pane/pty-connection/output/terminal-input-echo-delay.test.ts b/src/renderer/src/components/terminal-pane/pty-connection/output/terminal-input-echo-delay.test.ts deleted file mode 100644 index 8ecfeffdceb..00000000000 --- a/src/renderer/src/components/terminal-pane/pty-connection/output/terminal-input-echo-delay.test.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - INPUT_ECHO_DELAY_MAX_ALLOWANCE_MS, - createTerminalInputEchoDelay, - noteTerminalInputAwaitingEcho, - noteTerminalOutputAfterInput, - terminalInputEchoAllowanceMs -} from './terminal-input-echo-delay' - -describe('terminal input echo delay', () => { - it('measures the round trip from the oldest unanswered input', () => { - const delay = createTerminalInputEchoDelay() - noteTerminalInputAwaitingEcho(delay, 1000) - noteTerminalInputAwaitingEcho(delay, 1040) - noteTerminalOutputAfterInput(delay, 1200) - expect(terminalInputEchoAllowanceMs(delay)).toBe(200) - }) - - it('stays at zero with no input, so output alone never widens the windows', () => { - const delay = createTerminalInputEchoDelay() - noteTerminalOutputAfterInput(delay, 5000) - expect(terminalInputEchoAllowanceMs(delay)).toBe(0) - }) - - it('takes the recent minimum so one slow frame cannot inflate it', () => { - const delay = createTerminalInputEchoDelay() - for (const [input, output] of [ - [0, 210], - [1000, 1900], - [2000, 2205] - ]) { - noteTerminalInputAwaitingEcho(delay, input) - noteTerminalOutputAfterInput(delay, output) - } - expect(terminalInputEchoAllowanceMs(delay)).toBe(205) - }) - - it('ignores output that cannot be the echo and clamps the allowance', () => { - const delay = createTerminalInputEchoDelay() - noteTerminalInputAwaitingEcho(delay, 0) - noteTerminalOutputAfterInput(delay, 5000) - expect(terminalInputEchoAllowanceMs(delay)).toBe(0) - noteTerminalInputAwaitingEcho(delay, 6000) - noteTerminalOutputAfterInput(delay, 6900) - expect(terminalInputEchoAllowanceMs(delay)).toBe(INPUT_ECHO_DELAY_MAX_ALLOWANCE_MS) - }) - - it('restarts a pending input that went unanswered past the sample limit', () => { - const delay = createTerminalInputEchoDelay() - noteTerminalInputAwaitingEcho(delay, 0) - noteTerminalInputAwaitingEcho(delay, 3000) - noteTerminalOutputAfterInput(delay, 3180) - expect(terminalInputEchoAllowanceMs(delay)).toBe(180) - }) -}) diff --git a/src/renderer/src/hooks/skills/discovery/useInstalledAgentSkills.test.ts b/src/renderer/src/hooks/skills/discovery/useInstalledAgentSkills.test.ts deleted file mode 100644 index b0052f0c40a..00000000000 --- a/src/renderer/src/hooks/skills/discovery/useInstalledAgentSkills.test.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { describe, expect, it } from 'vitest' -import type { DiscoveredSkill } from '../../../../../shared/skills' -import { GLOBAL_AGENT_SKILL_SOURCE_KINDS, hasInstalledAgentSkill } from './useInstalledAgentSkills' - -function makeSkill( - overrides: Partial & Pick -): DiscoveredSkill { - return { - id: overrides.name, - description: '', - sourceKind: 'home', - sourceLabel: 'Claude', - installed: true, - updatedAt: null, - providers: ['claude'], - rootPath: '/Users/test/.claude/skills', - directoryPath: `/Users/test/.claude/skills/${overrides.name}`, - skillFilePath: `/Users/test/.claude/skills/${overrides.name}/SKILL.md`, - ...overrides - } -} - -describe('hasInstalledAgentSkill synced-folder exclusion', () => { - it('does not count Claude desktop synced skills as installs', () => { - const synced = [ - makeSkill({ - name: 'computer-use', - providers: ['claude'], - rootPath: '/Users/test/.claude/skills', - directoryPath: '/Users/test/.claude/skills/synced/org_bucket/computer-use' - }), - makeSkill({ - name: 'computer-use', - providers: ['claude'], - rootPath: 'C:\\Users\\test\\.claude\\skills', - directoryPath: 'C:\\Users\\test\\.claude\\skills\\synced\\org_bucket\\computer-use' - }) - ] - expect( - hasInstalledAgentSkill(synced, 'computer-use', { - sourceKinds: GLOBAL_AGENT_SKILL_SOURCE_KINDS - }) - ).toBe(false) - }) - - it('still counts synced folder installs outside Claude home', () => { - const options = { sourceKinds: GLOBAL_AGENT_SKILL_SOURCE_KINDS } - for (const directoryPath of [ - '/Users/test/.hermes/skills/synced/computer-use', - '/Users/test/.hermes/skills/synced/team/computer-use' - ]) { - const installed = makeSkill({ - name: 'computer-use', - providers: ['codex'], - rootPath: '/Users/test/.hermes/skills', - directoryPath - }) - expect(hasInstalledAgentSkill([installed], 'computer-use', options)).toBe(true) - } - }) -}) diff --git a/src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts b/src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts deleted file mode 100644 index a16210626b2..00000000000 --- a/src/renderer/src/lib/editor/monaco/monaco-editor-gutter-disposal.test.ts +++ /dev/null @@ -1,52 +0,0 @@ -// @vitest-environment happy-dom -import { afterEach, describe, expect, it, vi } from 'vitest' -import { EditorGutter } from 'monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils/editorGutter.js' - -// Guard the Monaco 0.55.1 patch: visible gutter views must dispose their global MenuRegistry toolbar entries. -class FakeResizeObserver { - observe(): void {} - disconnect(): void {} -} - -const noEvent = (): { dispose(): void } => ({ dispose: () => undefined }) - -function createGutter(): { gutter: EditorGutter; viewDispose: () => void; domNode: HTMLElement } { - const editor = { - onDidScrollChange: noEvent, - onDidChangeModel: noEvent, - onDidChangeViewZones: noEvent, - onDidContentSizeChange: noEvent, - getScrollTop: () => 0, - hasModel: () => true, - getModel: () => ({ getLineCount: () => 10 }), - getVisibleRanges: () => [{ startLineNumber: 1, endLineNumber: 10 }], - getTopForLineNumber: (line: number) => (line - 1) * 20, - getBottomForLineNumber: (line: number) => line * 20 - } - const domNode = document.createElement('div') - Object.defineProperty(domNode, 'clientHeight', { value: 200 }) - const viewDispose = vi.fn() - const range = { startLineNumber: 2, endLineNumberExclusive: 4, intersect: () => range } - const gutter = new EditorGutter(editor, domNode, { - getIntersectingGutterItems: () => [{ id: 'hunk-1', range }], - createView: () => ({ layout: () => undefined, dispose: viewDispose }) - }) - return { gutter, viewDispose, domNode } -} - -afterEach(() => { - vi.unstubAllGlobals() -}) - -describe('monaco-editor EditorGutter disposal patch', () => { - it('disposes gutter item views that are still on screen when the gutter is disposed', () => { - vi.stubGlobal('ResizeObserver', FakeResizeObserver) - const { gutter, viewDispose, domNode } = createGutter() - expect(domNode.childElementCount).toBeGreaterThan(1) - expect(viewDispose).not.toHaveBeenCalled() - - gutter.dispose() - - expect(viewDispose).toHaveBeenCalledTimes(1) - }) -}) diff --git a/src/renderer/src/lib/monaco-languages/plugin-syntax-slot-pool.test.ts b/src/renderer/src/lib/monaco-languages/plugin-syntax-slot-pool.test.ts deleted file mode 100644 index a77a1706d54..00000000000 --- a/src/renderer/src/lib/monaco-languages/plugin-syntax-slot-pool.test.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { PluginSyntaxSlotPool } from './plugin-syntax-slot-pool' - -function pool(limit?: number) { - const registered: string[] = [] - const live = new Set() - const released: string[] = [] - const instance = new PluginSyntaxSlotPool({ - limit, - register: (languageId) => registered.push(languageId), - create: (languageId, key) => { - const id = `${languageId}:${key}` - live.add(id) - return { - dispose: () => { - live.delete(id) - }, - releaseModels: () => { - released.push(id) - } - } - } - }) - return { instance, registered, live, released } -} - -describe('PluginSyntaxSlotPool', () => { - it('evicts the least recently used idle language, and only falls back when all are open', () => { - const { instance, live } = pool(2) - const a = instance.acquire('a@1') - const b = instance.acquire('b@1') - a?.release() - b?.release() - // `a` is older, so it is evicted first. - const c = instance.acquire('c@1') - expect(c?.languageId).toBe(a?.languageId) - expect([...live].some((id) => id.endsWith(':a@1'))).toBe(false) - const d = instance.acquire('d@1') - expect(d?.languageId).toBe(b?.languageId) - expect(instance.acquire('e@1')).toBeNull() - c?.release() - expect(instance.acquire('e@1')?.languageId).toBe(c?.languageId) - }) - - it('ignores a second release of the same lease', () => { - const { instance } = pool(1) - const first = instance.acquire('a@1') - const second = instance.acquire('a@1') - first?.release() - first?.release() - expect(instance.acquire('b@1')).toBeNull() - second?.release() - }) - - it('moves models off a language once no editor uses it', () => { - const { instance, released } = pool() - const first = instance.acquire('a@1') - const second = instance.acquire('a@1') - first?.release() - expect(released).toEqual([]) - second?.release() - expect(released).toEqual([`${second?.languageId}:a@1`]) - }) -}) diff --git a/src/renderer/src/lib/source-control/review/pr-bot-author-overrides.test.ts b/src/renderer/src/lib/source-control/review/pr-bot-author-overrides.test.ts deleted file mode 100644 index 39aa2ac6d42..00000000000 --- a/src/renderer/src/lib/source-control/review/pr-bot-author-overrides.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { beforeEach, describe, expect, it, vi } from 'vitest' -import { applyPRBotAuthorOverride } from '../../../../../shared/source-control/review-comments/pr-bot-author-overrides' - -const store = vi.hoisted(() => ({ - settings: { prBotAuthorOverrides: [] as string[] }, - pending: [] as (() => void)[], - apiUpdate: vi.fn(), - warning: vi.fn() -})) - -vi.mock('sonner', () => ({ toast: { warning: store.warning } })) - -vi.mock('@/store/index', () => ({ - useAppStore: Object.assign(vi.fn(), { - getState: () => ({ settings: store.settings }), - setState: (next: { settings: typeof store.settings }) => { - store.settings = next.settings - } - }) -})) - -import { setPRBotAuthorOverride } from './pr-bot-author-overrides' - -describe('PR bot author override updates', () => { - beforeEach(() => { - store.settings = { prBotAuthorOverrides: [] } - store.pending = [] - store.apiUpdate.mockReset() - store.warning.mockReset() - store.apiUpdate.mockImplementation( - (args: { author: string; isBot: boolean }) => - new Promise((resolve) => { - store.pending.push(() => { - store.settings = { - prBotAuthorOverrides: applyPRBotAuthorOverride( - store.settings.prBotAuthorOverrides, - args.author, - args.isBot - ) - } - resolve(store.settings) - }) - }) - ) - Object.defineProperty(globalThis, 'window', { - configurable: true, - value: { api: { settings: { updatePRBotAuthorOverride: store.apiUpdate } } } - }) - }) - - it('continues processing updates after an atomic settings write fails', async () => { - store.apiUpdate - .mockRejectedValueOnce(new Error('settings unavailable')) - .mockResolvedValueOnce({ prBotAuthorOverrides: ['bob'] }) - - setPRBotAuthorOverride('alice', true) - setPRBotAuthorOverride('bob', true) - - await vi.waitFor(() => expect(store.apiUpdate).toHaveBeenCalledTimes(2)) - expect(store.settings.prBotAuthorOverrides).toEqual(['bob']) - }) -}) diff --git a/src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts b/src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts deleted file mode 100644 index 9efdb40a52c..00000000000 --- a/src/renderer/src/lib/workspace/search/worktrees/worktree-palette-task-url-match.test.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import type { Worktree } from '../../../../../../shared/worktree/types' -import { - matchWorktreePaletteTaskUrl, - parseCmdJTaskSourceUrl -} from './worktree-palette-task-url-match' - -function makeWorktree(overrides: Partial = {}): Worktree { - return { - id: 'wt-1', - repoId: 'repo-1', - path: '/tmp/wt-1', - head: 'abc123', - branch: 'refs/heads/feature/url-match', - isBare: false, - isMainWorktree: false, - displayName: 'URL match', - comment: '', - linkedIssue: null, - linkedPR: null, - linkedLinearIssue: null, - isArchived: false, - isUnread: false, - isPinned: false, - sortOrder: 0, - lastActivityAt: 0, - ...overrides - } -} - -describe('matchWorktreePaletteTaskUrl', () => { - // Jira issue keys repeat across tenants sharing a project key. - it('rejects a Jira issue URL from a different tenant with the same issue key', () => { - const intent = parseCmdJTaskSourceUrl('https://acme.atlassian.net/browse/PROJ-123') - - expect( - matchWorktreePaletteTaskUrl({ - worktree: makeWorktree({ - linkedWorkItem: { - provider: 'jira', - type: 'issue', - number: 0, - title: 'Other tenant', - jiraIdentifier: 'PROJ-123', - url: 'https://other.atlassian.net/browse/PROJ-123' - } - }), - intent: intent! - }) - ).toBeNull() - }) - - // Same host, different site path: Jira Server installs are commonly path-scoped. - it('rejects a Jira issue URL from a different site path on the same host', () => { - const intent = parseCmdJTaskSourceUrl('https://jira.acme.test/one/browse/PROJ-123') - - expect( - matchWorktreePaletteTaskUrl({ - worktree: makeWorktree({ - linkedWorkItem: { - provider: 'jira', - type: 'issue', - number: 0, - title: 'Other site', - jiraIdentifier: 'PROJ-123', - url: 'https://jira.acme.test/two/browse/PROJ-123' - } - }), - intent: intent! - }) - ).toBeNull() - }) -}) diff --git a/src/shared/agent-session/journal/agent-session-journal-submission-schema.spec.ts b/src/shared/agent-session/journal/agent-session-journal-submission-schema.spec.ts deleted file mode 100644 index 1e31ead3ddf..00000000000 --- a/src/shared/agent-session/journal/agent-session-journal-submission-schema.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { expect, it } from 'vitest' - -import { - AgentJournalSubmissionSchema, - isAdmissibleAgentJournalSubmission -} from './agent-session-journal-submission-schema' - -it('admits newer fields without replacing or mutating the submission', () => { - const value = { - clientMessageId: 'client-1', - fence: 1, - payloadFingerprint: 'fingerprint', - dispatchState: 'future-dispatch-state', - providerItemId: null, - reason: null, - submittedAt: 1, - resolvedAt: null, - source: { kind: 'future-source', sender: 'retained-by-guard' }, - future: { retained: true } - } - const original = structuredClone(value) - expect(isAdmissibleAgentJournalSubmission(value)).toBe(true) - expect(value).toEqual(original) - expect(AgentJournalSubmissionSchema.parse(value).source).toEqual({ kind: 'future-source' }) -}) diff --git a/src/shared/ai-vault/resume/ai-vault-ssh-resume-target.test.ts b/src/shared/ai-vault/resume/ai-vault-ssh-resume-target.test.ts deleted file mode 100644 index 10329ebde1d..00000000000 --- a/src/shared/ai-vault/resume/ai-vault-ssh-resume-target.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { canResumeAiVaultSessionOnSshHost } from './ai-vault-ssh-resume-target' - -describe('canResumeAiVaultSessionOnSshHost', () => { - it('keeps a transcript-referencing Antigravity resume on the transcript host', () => { - const wslReference = - '//wsl.localhost/Ubuntu/home/ada/.gemini/antigravity-ide/brain/id/transcript_full.jsonl' - const sshReference = '/home/ada/.gemini/antigravity-ide/brain/id/transcript_full.jsonl' - expect( - canResumeAiVaultSessionOnSshHost({ - sessionFilePath: wslReference, - sessionExecutionHostId: 'local', - targetExecutionHostId: 'ssh:builder' - }) - ).toBe(false) - expect( - canResumeAiVaultSessionOnSshHost({ - sessionFilePath: sshReference, - sessionExecutionHostId: 'ssh:builder', - targetExecutionHostId: 'ssh:builder' - }) - ).toBe(true) - // The CLI resumes by ID, so it keeps the WSL exception. - expect( - canResumeAiVaultSessionOnSshHost({ - sessionFilePath: wslReference.replace('antigravity-ide', 'antigravity-cli'), - sessionExecutionHostId: 'local', - targetExecutionHostId: 'ssh:builder' - }) - ).toBe(true) - }) -}) diff --git a/src/shared/file-links/file-link-path-normalization.test.ts b/src/shared/file-links/file-link-path-normalization.test.ts deleted file mode 100644 index 2635b1a29b5..00000000000 --- a/src/shared/file-links/file-link-path-normalization.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { joinAbsolutePath } from './file-link-path-normalization' - -describe('joinAbsolutePath', () => { - it.each([ - ['/repo', '../sibling/readme.md', '/sibling/readme.md'], - ['/repo/worktree', '../../sibling/readme.md', '/sibling/readme.md'], - ['/repo/worktree', 'src/../../readme.md', '/repo/readme.md'], - ['/repo/./worktree/..', '../sibling/readme.md', '/sibling/readme.md'], - ['/repo', '../../../readme.md', '/readme.md'], - ['/repo', '..', '/'], - ['/', '../../readme.md', '/readme.md'], - ['/', '', '/'], - ['/', '/readme.md', '/readme.md'], - [String.raw`c:\repo\worktree`, String.raw`..\sibling\readme.md`, 'C:/repo/sibling/readme.md'], - ['C:/repo/worktree', '../../../readme.md', 'C:/readme.md'], - ['C:/repo', '..', 'C:/'], - ['C:/', '../readme.md', 'C:/readme.md'], - ['C:/', '', 'C:/'], - [ - String.raw`\\server\share\repo`, - String.raw`..\sibling\readme.md`, - '//server/share/sibling/readme.md' - ], - ['//server/share/repo', '../../../readme.md', '//server/share/readme.md'], - ['//server/share/repo', '..', '//server/share'], - ['//server/share', '../../readme.md', '//server/share/readme.md'], - ['//server/share', '', '//server/share'] - ])('joins %j and %j without escaping its filesystem root', (base, relative, expected) => { - expect(joinAbsolutePath(base, relative)).toBe(expected) - }) -}) diff --git a/src/shared/git/compatibility/git-resolution-config-snapshot.test.ts b/src/shared/git/compatibility/git-resolution-config-snapshot.test.ts deleted file mode 100644 index 61dae350b3d..00000000000 --- a/src/shared/git/compatibility/git-resolution-config-snapshot.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { resolveConfiguredGitPushTarget } from '../remotes/git-push-target-resolution' - -function createRunner(config = new Map()) { - return vi.fn(async (args: string[]) => { - if (args[0] === 'symbolic-ref') { - return { stdout: 'refs/heads/feature\n' } - } - if (args[0] === 'config' && args[1] === '--list') { - return { stdout: Array.from(config, ([key, value]) => `${key}\n${value}\0`).join('') } - } - throw new Error(`unexpected Git command: ${args.join(' ')}`) - }) -} - -describe('resolution config snapshots', () => { - it('reads a fresh push snapshot after branch config changes', async () => { - const config = new Map([ - ['branch.feature.remote', 'fork'], - ['branch.feature.merge', 'refs/heads/feature'] - ]) - const runGit = createRunner(config) - - await expect(resolveConfiguredGitPushTarget(runGit)).resolves.toEqual({ - remote: 'fork', - refspec: 'HEAD:feature' - }) - config.set('remote.pushdefault', 'other-fork') - await expect(resolveConfiguredGitPushTarget(runGit)).resolves.toEqual({ - remote: 'other-fork', - refspec: 'HEAD:feature' - }) - }) -}) diff --git a/src/shared/map-settled-with-concurrency.test.ts b/src/shared/map-settled-with-concurrency.test.ts deleted file mode 100644 index 3127a31f852..00000000000 --- a/src/shared/map-settled-with-concurrency.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { mapSettledWithConcurrency } from './map-with-concurrency' - -describe('mapSettledWithConcurrency', () => { - it('preserves all-settled results and order while bounding a large fanout', async () => { - const limit = 7 - const items = Array.from({ length: 1_000 }, (_, index) => index) - let inFlight = 0 - let peak = 0 - - const results = await mapSettledWithConcurrency(items, limit, async (item) => { - inFlight += 1 - peak = Math.max(peak, inFlight) - await Promise.resolve() - for (let turn = 0; turn < item % 5; turn += 1) { - await Promise.resolve() - } - inFlight -= 1 - if (item % 97 === 0) { - throw `rejected-${item}` - } - return `fulfilled-${item}` - }) - - expect(peak).toBe(limit) - expect(results).toEqual( - items.map((item): PromiseSettledResult => - item % 97 === 0 - ? { status: 'rejected', reason: `rejected-${item}` } - : { status: 'fulfilled', value: `fulfilled-${item}` } - ) - ) - }) -}) diff --git a/src/shared/mermaid-flowchart-contrast.test.ts b/src/shared/mermaid-flowchart-contrast.test.ts deleted file mode 100644 index fd40ed73c29..00000000000 --- a/src/shared/mermaid-flowchart-contrast.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -// @vitest-environment happy-dom -import { describe, expect, it } from 'vitest' -import { readableMermaidFlowchartSvg } from './mermaid-flowchart-contrast' - -function flowchart(fill: string, label: string): string { - return ( - '' + - `` + - `Node` + - '' - ) -} - -function labelFill(svg: string): string { - const host = document.createElement('div') - host.innerHTML = svg - return host.querySelector('text')!.style.getPropertyValue('fill') -} - -describe('readableMermaidFlowchartSvg', () => { - it('recolours a light theme label on a pale custom fill', () => { - const svg = readableMermaidFlowchartSvg(flowchart('#fde68a', '#e0e0e0'), '#e0e0e0', '#111111') - expect(labelFill(svg)).toBe('#111111') - }) - - it('reads the painted path when the label container is a group', () => { - const stadium = flowchart('#1e3a8a', '#e0e0e0').replace( - '', - // The group inherits the diagram's text colour; only its path is painted. - '' - ) - expect(labelFill(readableMermaidFlowchartSvg(stadium, '#e0e0e0', '#111111'))).toBe('#e0e0e0') - }) -}) diff --git a/src/shared/native-chat/transcript/messages/native-chat-transcript-retention.test.ts b/src/shared/native-chat/transcript/messages/native-chat-transcript-retention.test.ts deleted file mode 100644 index e8b1272fb98..00000000000 --- a/src/shared/native-chat/transcript/messages/native-chat-transcript-retention.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import type { NativeChatMessage } from '../../native-chat-types' -import { createNativeChatTranscriptRetention } from './native-chat-transcript-retention' - -function message(id: string): NativeChatMessage { - return { id, role: 'assistant', blocks: [], timestamp: 0, source: 'transcript' } -} - -describe('native chat transcript retention', () => { - it('holds only the latest settled transcript for the same identity while unsettled', () => { - const retention = createNativeChatTranscriptRetention() - const first = [message('first')] - const second = [message('second')] - - retention.capture('source-a', first) - expect(retention.visible({ identity: 'source-a', messages: [], settled: false })).toBe(first) - expect(retention.visible({ identity: 'source-b', messages: [], settled: false })).toEqual([]) - - retention.capture('source-b', second) - expect(retention.visible({ identity: 'source-a', messages: [], settled: false })).toEqual([]) - expect(retention.visible({ identity: 'source-b', messages: [], settled: false })).toBe(second) - }) - - it('never substitutes retained history for a settled read', () => { - const retention = createNativeChatTranscriptRetention() - const retained = [message('retained')] - const fresh = [message('fresh')] - retention.capture('source', retained) - - expect(retention.visible({ identity: 'source', messages: fresh, settled: true })).toBe(fresh) - }) -}) diff --git a/src/shared/new-workspace/smart-workspace-linear-intent.test.ts b/src/shared/new-workspace/smart-workspace-linear-intent.test.ts deleted file mode 100644 index b2311eadb49..00000000000 --- a/src/shared/new-workspace/smart-workspace-linear-intent.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - getSmartWorkspaceLinearSearchQuery, - parseBoundedSmartWorkspaceLinearIssueInput, - parseBoundedSmartWorkspaceLinearIssueUrlIntent -} from './smart-workspace-linear-intent' - -describe('numeric-leading Linear workspace source input', () => { - it.each(['2eng-123', '1pass-42', '3d-15'])('recognizes %s as an issue identifier', (input) => { - const identifier = input.toUpperCase() - const url = `https://linear.app/acme/issue/${input}/notes` - const intent = { identifier, organizationUrlKey: 'acme' } - - expect(parseBoundedSmartWorkspaceLinearIssueInput(` ${input} `)).toEqual({ identifier }) - expect(getSmartWorkspaceLinearSearchQuery(input)).toBe(identifier) - expect(parseBoundedSmartWorkspaceLinearIssueInput(url)).toEqual(intent) - expect(parseBoundedSmartWorkspaceLinearIssueUrlIntent(url)).toEqual(intent) - expect(getSmartWorkspaceLinearSearchQuery(url)).toBe(identifier) - }) - - it.each(['2026-09', '555-1234', '8080-8090', '1_2-3'])( - 'keeps %s as search text without issue intent', - (input) => { - const url = `https://linear.app/acme/issue/${input}/notes` - - expect(parseBoundedSmartWorkspaceLinearIssueInput(input)).toBeNull() - expect(getSmartWorkspaceLinearSearchQuery(input)).toBe(input) - expect(parseBoundedSmartWorkspaceLinearIssueInput(url)).toBeNull() - expect(parseBoundedSmartWorkspaceLinearIssueUrlIntent(url)).toBeNull() - } - ) -}) diff --git a/src/shared/openssh-default-shell.test.ts b/src/shared/openssh-default-shell.test.ts deleted file mode 100644 index 4b3ade18af1..00000000000 --- a/src/shared/openssh-default-shell.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { beforeEach, describe, expect, it, vi } from 'vitest' - -const { runProcessSyncMock } = vi.hoisted(() => ({ runProcessSyncMock: vi.fn() })) - -vi.mock('@orca/process-host', () => ({ runProcessSync: runProcessSyncMock })) - -function regResult(stdout: string, code = 0) { - return { code, signal: null, stdout, stderr: '', timedOut: false } -} - -async function loadReader() { - return (await import('./openssh-default-shell.js')).readOpenSshDefaultShell -} - -describe('readOpenSshDefaultShell', () => { - beforeEach(() => { - vi.resetModules() - runProcessSyncMock.mockReset() - }) - - it('treats malformed output as empty', async () => { - runProcessSyncMock.mockReturnValue( - regResult( - [ - 'HKEY_LOCAL_MACHINE\\SOFTWARE\\OpenSSH', - ' DefaultShellCommandOption REG_SZ /c' - ].join('\r\n') - ) - ) - - expect((await loadReader())()).toBe('') - }) -}) diff --git a/src/shared/physical-exit-tracker.test.ts b/src/shared/physical-exit-tracker.test.ts deleted file mode 100644 index 0b7d43485b8..00000000000 --- a/src/shared/physical-exit-tracker.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' -import { PhysicalExitTracker } from './physical-exit-tracker' - -describe('PhysicalExitTracker', () => { - afterEach(() => vi.useRealTimers()) - - it('lets a later retry observe exit after an earlier wait times out', async () => { - vi.useFakeTimers() - const tracker = new PhysicalExitTracker() - const first = tracker.waitForExit(10, () => new Error('first deadline')) - const firstRejection = expect(first).rejects.toThrow('first deadline') - - await vi.advanceTimersByTimeAsync(10) - await firstRejection - - const retry = tracker.waitForExit(10, () => new Error('retry deadline')) - tracker.markExited() - - await expect(retry).resolves.toBeUndefined() - await expect(tracker.exitedPromise).resolves.toBeUndefined() - }) - - it('settles every active waiter once and resolves later waits immediately', async () => { - const tracker = new PhysicalExitTracker() - const first = tracker.waitForExit(100, () => new Error('deadline')) - const second = tracker.waitForExit(100, () => new Error('deadline')) - - tracker.markExited() - tracker.markExited() - - await expect(Promise.all([first, second])).resolves.toEqual([undefined, undefined]) - await expect(tracker.waitForExit(1, () => new Error('deadline'))).resolves.toBeUndefined() - }) -}) diff --git a/src/shared/portuguese-ui-language-migration.test.ts b/src/shared/portuguese-ui-language-migration.test.ts deleted file mode 100644 index b4f7aed61ea..00000000000 --- a/src/shared/portuguese-ui-language-migration.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { getDefaultSettings } from './constants' -import { migratePortugueseUiLanguageOnLoad } from './portuguese-ui-language-migration' -import { normalizeUiLanguage } from './ui-language' - -const plugin = 'plugin:stablyai.orca-portuguese/pt-BR' - -describe('Portuguese UI language load migration', () => { - it.each([undefined, false, null, 'true', 1, {}])( - 'converts only the exact legacy preference with marker %j', - (marker) => { - const stored = JSON.parse( - JSON.stringify({ uiLanguage: plugin, uiLanguagePortugueseMigrationApplied: marker }) - ) - const migrated = migratePortugueseUiLanguageOnLoad(stored) - expect(migrated).toEqual({ uiLanguage: 'pt', uiLanguagePortugueseMigrationApplied: true }) - expect(migratePortugueseUiLanguageOnLoad(migrated)).toEqual(migrated) - } - ) - - it('preserves explicit plugin selection in stamped and fresh stores', () => { - expect(normalizeUiLanguage(plugin)).toBe(plugin) - expect( - migratePortugueseUiLanguageOnLoad({ - ...getDefaultSettings('~'), - uiLanguage: plugin - }) - ).toEqual({ uiLanguage: plugin, uiLanguagePortugueseMigrationApplied: true }) - expect(migratePortugueseUiLanguageOnLoad(undefined)).toEqual({ - uiLanguage: 'system', - uiLanguagePortugueseMigrationApplied: true - }) - }) -}) diff --git a/src/shared/program-status/agent-status-projector.test.ts b/src/shared/program-status/agent-status-projector.test.ts deleted file mode 100644 index ff9f9185b6c..00000000000 --- a/src/shared/program-status/agent-status-projector.test.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { createProgramStatusProjector } from './agent-status-projector' - -const osc = (body: string): string => `\x1b]7501;${body}\x1b\\` - -function lastRootStates(data: string[]) { - const projector = createProgramStatusProjector(() => 1000) - return data.map((chunk) => { - const payloads = projector.process(chunk).payloads - const last = payloads.at(-1)?.payload - return last && { state: last.state, sessionBoundary: last.sessionBoundary } - }) -} - -describe('createProgramStatusProjector', () => { - it('ends an OpenCode turn on idle but not its startup', () => { - // Captured from OpenCode 2.2.5, which never reports done. - const session = 'ses_e57cc6093ffeU9dbfhOFmwKNgt' - expect( - lastRootStates([ - osc('state=idle:app=opencode'), - osc('state=working:app=opencode') + osc(`state=working:id=${session}:app=opencode`), - osc(`state=clear:id=${session}`) + osc('state=idle:app=opencode') - ]) - ).toEqual([ - { state: 'done', sessionBoundary: true }, - { state: 'working', sessionBoundary: undefined }, - { state: 'done', sessionBoundary: undefined } - ]) - }) -}) diff --git a/src/shared/secure-storage/secure-path-hardening-retry-budget.test.ts b/src/shared/secure-storage/secure-path-hardening-retry-budget.test.ts deleted file mode 100644 index 9c23619bde7..00000000000 --- a/src/shared/secure-storage/secure-path-hardening-retry-budget.test.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { configureHardeningRetryBudget } from './secure-path-hardening-retry-budget' - -const PATH = 'C:\\Users\\me\\.orca\\secret.json' -const OTHER = 'C:\\Users\\me\\.orca\\other.json' - -describe('secure path hardening retry budget', () => { - beforeEach(() => { - configureHardeningRetryBudget({ - maxEntries: 64, - maxKeyBytes: 4096, - maxTotalKeyBytes: 65_536 - }) - }) - - afterEach(() => { - vi.restoreAllMocks() - }) - - /** A second importer may have no configuration; throwing there made async hardening crash main. - * Import only the budget so secure-file cannot hide the missing defaults. */ - it('defaults its bounds when nothing configured it', async () => { - vi.resetModules() - const budget = await import('./secure-path-hardening-retry-budget.js') - - expect(budget.mayAttemptHardening(PATH)).toBe(true) - expect(() => budget.recordHardeningOutcome(PATH, false)).not.toThrow() - expect(budget.mayAttemptHardening(PATH)).toBe(false) - expect(budget.mayAttemptHardening(OTHER)).toBe(true) - }) -}) diff --git a/src/shared/skill-metadata.test.ts b/src/shared/skill-metadata.test.ts deleted file mode 100644 index f2a168dc24e..00000000000 --- a/src/shared/skill-metadata.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { summarizeSkillMarkdown } from './skill-metadata' - -describe('summarizeSkillMarkdown', () => { - it('reads name and folded description from YAML frontmatter', () => { - const summary = summarizeSkillMarkdown(`--- -name: orca-cli -description: >- - Use the orca CLI to drive a running editor; - keep worktree comments current. ---- - -# Orca CLI -`) - - expect(summary).toEqual({ - name: 'orca-cli', - description: 'Use the orca CLI to drive a running editor; keep worktree comments current.' - }) - }) -}) - -it.each(['', '\uFEFF'])('preserves the last CRLF frontmatter field with BOM %j', (bom) => { - for (const fields of [ - ['name: actual-name', 'description: actual description'], - ['description: actual description', 'name: actual-name'] - ]) { - const markdown = `${bom}${['---', ...fields, '---', '# Fallback heading', '', 'Fallback paragraph'].join('\r\n')}` - expect(summarizeSkillMarkdown(markdown)).toEqual({ - name: 'actual-name', - description: 'actual description' - }) - } -}) diff --git a/src/shared/source-control/recovery/source-control-push-failure.test.ts b/src/shared/source-control/recovery/source-control-push-failure.test.ts deleted file mode 100644 index c44ebd222fa..00000000000 --- a/src/shared/source-control/recovery/source-control-push-failure.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { isPushHookFailure, summarizePushFailure } from './source-control-push-failure' - -describe('push failure detection and summary', () => { - it('detects explicit pre-push hook failures', () => { - const raw = - "error: failed to push some refs to 'origin'\nhusky - pre-push hook exited with code 1" - - expect(isPushHookFailure(raw)).toBe(true) - expect(summarizePushFailure(raw)).toBe('Pre-push hook failed.') - }) - - it('does not treat auth failures as push hook failures', () => { - const raw = - 'git push failed: Command failed: git push origin main\nremote: Repository not found.\nfatal: Authentication failed' - - expect(isPushHookFailure(raw)).toBe(false) - }) - - it('does not treat protected, pre-receive, non-fast-forward, transport, or submodule failures as push hooks', () => { - const negatives = [ - 'git push failed: Command failed: git push origin main\nremote: error: GH006: Protected branch update failed for refs/heads/main.\nremote: lint status check is required', - 'git push failed: Command failed: git push origin main\nremote: pre-receive hook declined\nremote: eslint failed in hosted checks', - 'git push failed: Command failed: git push origin main\n! [rejected] main -> main (non-fast-forward)\nerror: failed to push some refs', - 'git push failed: Command failed: git push origin main\nfatal: unable to access https://example.com/repo.git: Could not resolve host', - "git push failed: Command failed: git push --recurse-submodules\nUnable to push submodule 'vendor/lib'\nfatal: failed to push all needed submodules" - ] - - for (const raw of negatives) { - expect(isPushHookFailure(raw)).toBe(false) - } - }) -}) diff --git a/src/shared/structured-session-message-contracts.test.ts b/src/shared/structured-session-message-contracts.test.ts index 1a7baed0eb5..43b50e79352 100644 --- a/src/shared/structured-session-message-contracts.test.ts +++ b/src/shared/structured-session-message-contracts.test.ts @@ -3,5 +3,4 @@ import './agent-session/requests/structured-agent-session-send-mutation.spec' import './agent-session/structured-agent-session-unknown-item.spec' import './structured-session-foreground-commands.spec' import './agent-session/requests/structured-agent-session-first-prompt.spec' -import './agent-session/journal/agent-session-journal-submission-schema.spec' import './agent-session/requests/structured-agent-session-projection-sender.spec' diff --git a/src/shared/terminal/links/terminal-markdown-file-links.test.ts b/src/shared/terminal/links/terminal-markdown-file-links.test.ts deleted file mode 100644 index 28fae100389..00000000000 --- a/src/shared/terminal/links/terminal-markdown-file-links.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { extractTerminalFileLinks } from './terminal-links' - -describe('extractTerminalFileLinks', () => { - it('preserves bare percent filenames and route punctuation beside Markdown', () => { - expect( - extractTerminalFileLinks( - '/tmp/literal%20/file.pdf [PDF](/tmp/report.pdf) app/(shop)/[id]/page.tsx' - ).map((link) => link.pathText) - ).toEqual(['/tmp/literal%20/file.pdf', '/tmp/report.pdf', 'app/(shop)/[id]/page.tsx']) - }) - - it('does not turn an external link label into a local file target', () => { - expect( - extractTerminalFileLinks('[/tmp/misleading.pdf](https://example.com/report.pdf)') - ).toEqual([]) - }) - - it('preserves adjacent route bracket and parenthesis segments in bare paths', () => { - expect( - extractTerminalFileLinks('/tmp/[id](group)/page.tsx').map((link) => link.pathText) - ).toEqual(['/tmp/[id](group)/page.tsx']) - }) - - it('finds adjacent Markdown destinations independently', () => { - expect( - extractTerminalFileLinks('[one](/tmp/one.pdf)[two](/tmp/two.pdf)').map( - (link) => link.pathText - ) - ).toEqual(['/tmp/one.pdf', '/tmp/two.pdf']) - }) -}) diff --git a/src/shared/tmux-host-attachment-probe.test.ts b/src/shared/tmux-host-attachment-probe.test.ts deleted file mode 100644 index d6e96c388f3..00000000000 --- a/src/shared/tmux-host-attachment-probe.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { readTmuxPaneBridge } from './tmux-host-attachment-probe' -const run = vi.hoisted(() => vi.fn()) -vi.mock('@orca/process-host', () => ({ runProcess: run })) -vi.mock('node:fs/promises', () => ({ - stat: async () => ({ isSocket: () => true, uid: process.getuid?.() }) -})) -vi.mock('./agent-status/process/agent-process-presence-probe', () => ({ - readAgentProcess: async (pid: number) => ({ verdict: 'live', startTime: `birth-${pid}` }) -})) - -describe('a tmux pane this terminal does not show', () => { - const start = process.platform === 'darwin' ? 'Fri Oct 2 03:00:00 2026' : '100' - // This pane's shell (pts/1), and a client attached in another app's terminal (pts/2). - const table: Record = { - 100: `100 1 100 100 S pts/1 ${start} /bin/bash`, - 300: `300 1 300 301 S pts/2 ${start} -zsh`, - 301: `301 300 301 301 S+ pts/2 ${start} /usr/bin/tmux attach` - } - - it.each([ - ['refuses it once the other client’s lineage is read', [100, 300, 301], 'elsewhere'], - ['leaves it unverified when that lineage is unread', [100, 301], null] - ])('%s', async (_name, readable, expected) => { - run.mockImplementation(async (options: { program: string; args: string[] }) => { - const pid = Number(options.args[1]) - const stdout = - options.program === 'tmux' ? '301:%1' : readable.includes(pid) ? `${table[pid]}\n` : '' - return { code: 0, timedOut: false, stdout } - }) - expect(await readTmuxPaneBridge('/tmp/fixture.sock', 100, '%1')).toBe(expected) - }) -}) diff --git a/tests/e2e/helpers/alt-screen-frame.unit.test.ts b/tests/e2e/helpers/alt-screen-frame.unit.test.ts deleted file mode 100644 index c6a08a0c29a..00000000000 --- a/tests/e2e/helpers/alt-screen-frame.unit.test.ts +++ /dev/null @@ -1,80 +0,0 @@ -// Pin viewport-only reveal reads; normal-buffer scrollback in serialize() can masquerade as a live alt frame (STA-5208). -import '../../../src/main/daemon/emulation/xterm-env-polyfill' -import { describe, expect, it } from 'vitest' -import { Terminal } from '@xterm/headless' -import { SerializeAddon } from '@xterm/addon-serialize' -import type { Page } from '@stablyai/playwright-test' -import { readActiveScreen, readRenderedAltScreenFrame } from './alt-screen-frame' - -const MARKER = 'DUPLICATE_PTY_REVEAL_TEST' -const TAB_ID = 'tab-under-test' - -type Harness = { page: Page; terminal: Terminal; serialize: () => string } - -// Matches the streaming TUI fixture in terminal-duplicate-pty-renderer-reveal.spec.ts. -function frameLine(frame: number): string { - return `${MARKER} frame ${String(frame).padStart(6, '0')}` -} - -function write(terminal: Terminal, data: string): Promise { - return new Promise((resolve) => terminal.write(data, () => resolve())) -} - -// Run the real serialized browser closure against a headless terminal, not a copied implementation. -function createHarness(rows: number): Harness { - const terminal = new Terminal({ cols: 80, rows, scrollback: 100, allowProposedApi: true }) - const serializeAddon = new SerializeAddon() - terminal.loadAddon(serializeAddon) - const pane = { terminal, serializeAddon } - ;(globalThis as Record).__paneManagers = new Map([ - [TAB_ID, { getPanes: () => [pane] }] - ]) - const page = { - evaluate: (fn: (arg: Arg) => Result, arg: Arg): Promise => - Promise.resolve(fn(arg)) - } as unknown as Page - return { page, terminal, serialize: () => serializeAddon.serialize() } -} - -// The oracle this replaces: a positional scan over every buffer serialize() emits. -function parseSerializedFrame(content: string, pick: 'first' | 'last'): number | null { - const prefix = `${MARKER} frame ` - const start = pick === 'first' ? content.indexOf(prefix) : content.lastIndexOf(prefix) - if (start < 0) { - return null - } - const digits = content.slice(start + prefix.length).match(/^\d+/)?.[0] - return digits ? Number(digits) : null -} - -describe('readRenderedAltScreenFrame', () => { - it('reads the live alt frame, not the stale copy left in the normal buffer', async () => { - const harness = createHarness(8) - await write(harness.terminal, `${frameLine(390)}\r\n`) - await write(harness.terminal, `\x1b[?1049h\x1b[H${frameLine(400)}\x1b[J`) - - const serialized = harness.serialize() - expect(parseSerializedFrame(serialized, 'first')).toBe(390) - expect(parseSerializedFrame(serialized, 'last')).toBe(400) - - await expect(readActiveScreen(harness.page, TAB_ID)).resolves.toMatchObject({ - bufferType: 'alternate' - }) - await expect(readRenderedAltScreenFrame(harness.page, TAB_ID, MARKER)).resolves.toBe(400) - }) - - it('reports no frame when the freshest marker scrolled off the visible rows', async () => { - const harness = createHarness(8) - await write(harness.terminal, `${frameLine(400)}\r\n`) - for (let row = 0; row < 12; row += 1) { - await write(harness.terminal, `filler row ${row}\r\n`) - } - - // serialize() still sees off-screen history; only the viewport proves the marker is absent. - expect(parseSerializedFrame(harness.serialize(), 'last')).toBe(400) - await expect(readActiveScreen(harness.page, TAB_ID)).resolves.toMatchObject({ - bufferType: 'normal' - }) - await expect(readRenderedAltScreenFrame(harness.page, TAB_ID, MARKER)).resolves.toBeNull() - }) -}) diff --git a/tests/e2e/helpers/electron-launch-args.unit.test.ts b/tests/e2e/helpers/electron-launch-args.unit.test.ts deleted file mode 100644 index 301548a9f4e..00000000000 --- a/tests/e2e/helpers/electron-launch-args.unit.test.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { join } from 'node:path' -import { afterEach, describe, expect, it, vi } from 'vitest' -import { getElectronIsolatedKeychainArgs, getOrcaElectronLaunchArgs } from './electron-launch-args' - -describe('getOrcaElectronLaunchArgs', () => { - afterEach(() => vi.unstubAllGlobals()) - - it.each(['darwin', 'linux', 'win32'])( - 'isolates packaged and source test keychains on %s', - (platform) => { - vi.stubGlobal('process', { ...process, platform }) - const args = getElectronIsolatedKeychainArgs() - expect(args).toEqual( - platform === 'darwin' ? ['--password-store=basic', '--use-mock-keychain'] : [] - ) - expect(getOrcaElectronLaunchArgs(join('orca', 'out', 'main', 'index.js'), false)).toEqual( - expect.arrayContaining(args) - ) - } - ) - - it.each([ - ['linux', 'true', true, true], - ['linux', undefined, true, false], - ['linux', 'true', false, false], - ['darwin', 'true', true, false], - ['win32', 'true', true, false] - ] as const)( - 'scopes software WebGL to Linux CI headful launches: %s/%s/%s', - (platform, ci, headful, enabled) => { - vi.stubGlobal('process', { ...process, platform, env: { ...process.env, CI: ci } }) - const args = getOrcaElectronLaunchArgs(join('orca', 'out', 'main', 'index.js'), headful) - expect(args.includes('--use-gl=angle')).toBe(enabled) - expect(args.includes('--use-angle=swiftshader')).toBe(enabled) - expect(args.includes('--enable-unsafe-swiftshader')).toBe(enabled) - if (enabled) { - expect(args).toContain('--disable-gpu-sandbox') - expect(args).not.toContain('--disable-gpu') - } - } - ) - - it('launches the package root that owns the compiled main entry', () => { - const root = join('workspace', 'orca') - const mainPath = join(root, 'out', 'main', 'index.js') - - const args = getOrcaElectronLaunchArgs(mainPath, true) - if (process.platform === 'darwin') { - expect(args).toEqual([ - '--password-store=basic', - '--use-mock-keychain', - root, - '-ApplePersistenceIgnoreState', - 'YES' - ]) - } else { - expect(args.at(-1)).toBe(root) - } - expect(getOrcaElectronLaunchArgs(mainPath, false)).toContain(root) - }) -}) diff --git a/tests/e2e/helpers/electron-main-evaluate-retry.unit.test.ts b/tests/e2e/helpers/electron-main-evaluate-retry.unit.test.ts deleted file mode 100644 index bd73bb7f711..00000000000 --- a/tests/e2e/helpers/electron-main-evaluate-retry.unit.test.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' -import { retryTransientMainEvaluate } from './electron-main-evaluate-retry' - -const transientMessages = [ - 'Execution context was destroyed, most likely because of a navigation.', - 'electronApplication.evaluate: Resulting promise was garbage collected.' -] - -afterEach(() => vi.useRealTimers()) - -describe('retryTransientMainEvaluate', () => { - it.each(transientMessages)('retries a transient startup failure: %s', async (message) => { - vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] }) - let calls = 0 - const outcome = expect( - retryTransientMainEvaluate(async () => { - calls += 1 - if (calls < 3) { - throw new Error(message) - } - return '/isolated/home' - }) - ).resolves.toBe('/isolated/home') - void outcome.catch(() => undefined) - await vi.advanceTimersByTimeAsync(400) - await outcome - expect(calls).toBe(3) - }) - - it('rethrows a real failure immediately instead of masking it behind retries', async () => { - let calls = 0 - await expect( - retryTransientMainEvaluate(async () => { - calls += 1 - throw new Error('Electron E2E HOME escaped the disposable profile boundary') - }) - ).rejects.toThrow(/escaped the disposable profile/) - expect(calls).toBe(1) - }) - - it.each(transientMessages)( - 'bounds retries when evaluation keeps failing: %s', - async (message) => { - vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] }) - let calls = 0 - const outcome = expect( - retryTransientMainEvaluate(async () => { - calls += 1 - throw new Error(message) - }) - ).rejects.toThrow(message) - void outcome.catch(() => undefined) - await vi.advanceTimersByTimeAsync(800) - await outcome - expect(calls).toBe(5) - } - ) - - it('does not retry a closed application', async () => { - let calls = 0 - await expect( - retryTransientMainEvaluate(async () => { - calls += 1 - throw new Error( - 'electronApplication.evaluate: Target page, context or browser has been closed' - ) - }) - ).rejects.toThrow(/has been closed/) - expect(calls).toBe(1) - }) -}) diff --git a/tests/e2e/helpers/paired-client-runtime-environment.unit.test.ts b/tests/e2e/helpers/paired-client-runtime-environment.unit.test.ts deleted file mode 100644 index 3851a9184c1..00000000000 --- a/tests/e2e/helpers/paired-client-runtime-environment.unit.test.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { afterEach, expect, it, vi } from 'vitest' -import { rePairPairedElectronClient } from './paired-client-runtime-environment' -import type { PairedElectronClient } from './paired-electron-client' - -afterEach(() => { - vi.unstubAllGlobals() - vi.unstubAllEnvs() -}) - -function fixture(canSelectLocal: boolean) { - let selected: string | null = 'old-hub' - const remove = vi.fn(async () => { - if (selected !== null) { - throw new Error('Cannot remove the selected runtime') - } - }) - const state = { - setActiveRuntimeEnvironmentPreference: vi.fn(async (id: string | null) => { - if (id === null && !canSelectLocal) { - return false - } - selected = id - return true - }), - setRuntimeEnvironments: vi.fn(), - refreshRuntimeEnvironmentStatus: vi.fn(async () => true) - } - vi.stubGlobal('window', { - __store: { getState: () => state }, - api: { - runtimeEnvironments: { - remove, - addFromPairingCode: vi.fn(async () => ({ environment: { id: 'new-hub' } })), - list: vi.fn(async () => [{ id: 'new-hub' }]) - } - } - }) - const nativeEvaluate = vi.fn() - const reload = vi.fn(async () => undefined) - const client = { - environmentId: 'old-hub', - captureDirectSshAttempts: vi.fn(async () => undefined), - installDirectSshAttemptProbe: vi.fn(async () => undefined), - app: { evaluate: nativeEvaluate }, - page: { - evaluate: async (callback: (args: unknown) => unknown, args: unknown) => callback(args), - reload, - waitForFunction: vi.fn(async () => undefined) - } - } as unknown as PairedElectronClient - return { client, remove, reload, nativeEvaluate } -} - -it('keeps the old pairing when selecting local fails', async () => { - const { client, remove, reload } = fixture(false) - await expect(rePairPairedElectronClient(client, { pairingUrl: 'code' }, 'HUB')).rejects.toThrow( - 'could not select local' - ) - expect(remove).not.toHaveBeenCalled() - expect(reload).not.toHaveBeenCalled() - expect(client.environmentId).toBe('old-hub') -}) - -it('replaces the active pairing without touching native windows in background mode', async () => { - vi.stubEnv('ORCA_BACKGROUND_LAUNCH', '1') - vi.stubEnv('GITHUB_ACTIONS', 'true') - vi.stubEnv('DISPLAY', ':99') - const { client, remove, reload, nativeEvaluate } = fixture(true) - await rePairPairedElectronClient(client, { pairingUrl: 'code' }, 'HUB') - expect(remove).toHaveBeenCalledWith({ selector: 'old-hub' }) - expect(client.environmentId).toBe('new-hub') - expect(reload).toHaveBeenCalledOnce() - expect(nativeEvaluate).not.toHaveBeenCalled() -}) diff --git a/tests/tools/relay-bench/README.md b/tests/tools/relay-bench/README.md index 8d9e014d881..418a5806669 100644 --- a/tests/tools/relay-bench/README.md +++ b/tests/tools/relay-bench/README.md @@ -13,9 +13,8 @@ session so it runs outside the React Native bundle. `phone-e2ee-desktop-parity.test.mjs` pins that port to the desktop responder in `src/main/runtime/rpc/mobile/e2ee/mobile-e2ee-v2-desktop-session.ts`. It runs in the normal unit suite, so a change to the transcript encoding, key schedule, or frame layout fails there instead of leaving -a bench that quietly measures a handshake nobody ships. The four other `*.test.mjs` files in this -directory cover the invocation guards, the state file, the region verdicts, and pairing-link -decoding, and none of them opens a socket. +a bench that quietly measures a handshake nobody ships. The other `*.test.mjs` files in this directory cover the state file, region verdicts, and +pairing-link decoding. The region tests use an owned loopback listener. ## Security rules @@ -33,8 +32,7 @@ No script here has a production default. Every one of them refuses to open a soc `--director=` or `ORCA_RELAY_BENCH_DIRECTOR`. Without those, they print usage and exit 2. That keeps an accidental or automated invocation inert instead of live traffic. -The guards are in `relay-bench-invocation.mjs` and `relay-bench-state-file.mjs`, and -`relay-bench-invocation.test.mjs` / `relay-bench-state-file.test.mjs` pin them: +The guards are in `relay-bench-invocation.mjs` and `relay-bench-state-file.mjs`: | Guard | What it stops | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | diff --git a/tests/tools/relay-bench/relay-bench-invocation.test.mjs b/tests/tools/relay-bench/relay-bench-invocation.test.mjs deleted file mode 100644 index 893c044df14..00000000000 --- a/tests/tools/relay-bench/relay-bench-invocation.test.mjs +++ /dev/null @@ -1,118 +0,0 @@ -// Pin numeric and destination guards against operator typos/hostile director URLs that would create unintended live traffic. -import { describe, expect, it, vi } from 'vitest' -import { - classifyPublicHttpsOrigin, - isPublicIpAddress, - parseBoundedInteger, - parsePort, - requireOrigin, - resolvesToPublicAddress -} from './relay-bench-invocation.mjs' - -/** refuse() exits the process; make that observable instead of killing the test worker. */ - -describe('parseBoundedInteger', () => { - // 'Infinity' is the one that mattered: Number('Infinity') made the run loops never terminate. - it.each(['Infinity', '-Infinity', 'NaN', '', ' ', 'abc', '1e3', '-1', '1.5', '0x10', '+2'])( - 'rejects %j', - (value) => { - expect(parseBoundedInteger(value, { min: 0, max: 10 })).toBeNull() - } - ) - - it('rejects values outside the bounds', () => { - expect(parseBoundedInteger('11', { min: 0, max: 10 })).toBeNull() - expect(parseBoundedInteger('0', { min: 1, max: 10 })).toBeNull() - }) -}) - -describe('parsePort', () => { - // WHATWG URL reads '80@attacker.example' as userinfo, so the fetch would leave loopback. - it.each(['80@attacker.example', '0', '65536', '9222 9223', 'Infinity', ''])( - 'rejects %j', - (value) => { - expect(parsePort(value)).toBeNull() - } - ) -}) - -describe('isPublicIpAddress', () => { - it.each([ - '127.0.0.1', - '127.1.2.3', - '0.0.0.0', - '10.0.0.1', - '172.16.0.1', - '172.31.255.255', - '192.168.1.1', - '169.254.169.254', - '100.64.0.1', - '224.0.0.1', - '255.255.255.255', - '::1', - '::', - '::ffff:127.0.0.1', - 'fe80::1', - 'fc00::1', - 'fd12:3456::1', - 'ff02::1' - ])('refuses %s', (host) => { - expect(isPublicIpAddress(host)).toBe(false) - }) - - it.each(['8.8.8.8', '172.32.0.1', '172.15.0.1', '1.1.1.1', '2001:db8::1', '::ffff:8.8.8.8'])( - 'allows %s', - (host) => { - expect(isPublicIpAddress(host)).toBe(true) - } - ) -}) - -describe('classifyPublicHttpsOrigin', () => { - it.each([ - ['http://relay.example', 'must be an https origin'], - ['wss://relay.example', 'must be an https origin'], - ['https://user:pass@relay.example', 'must not carry credentials'], - ['https://localhost:9222', 'loopback'], - ['https://app.localhost', 'loopback'], - ['https://127.0.0.1:8080', 'loopback, link-local, or private'], - ['https://[::1]/', 'loopback, link-local, or private'], - ['https://[::ffff:127.0.0.1]/', 'loopback, link-local, or private'], - ['https://169.254.169.254/latest/meta-data', 'loopback, link-local, or private'], - ['https://10.1.2.3', 'loopback, link-local, or private'], - ['not a url', 'not a URL'], - ['', 'missing origin'] - ])('refuses %s', (value, reason) => { - const verdict = classifyPublicHttpsOrigin(value) - expect(verdict.ok).toBe(false) - expect(verdict.reason).toContain(reason) - }) -}) - -describe('resolvesToPublicAddress', () => { - it('refuses when any resolved address is private', async () => { - const lookup = vi.fn().mockResolvedValue([ - { address: '8.8.8.8', family: 4 }, - { address: '10.0.0.5', family: 4 } - ]) - expect((await resolvesToPublicAddress('https://relay.example', { lookup })).ok).toBe(false) - }) - - it('accepts a name that resolves publicly', async () => { - const lookup = vi.fn().mockResolvedValue([{ address: '8.8.8.8', family: 4 }]) - expect(await resolvesToPublicAddress('https://relay.example', { lookup })).toEqual({ ok: true }) - }) - - it('refuses when resolution fails', async () => { - const lookup = vi.fn().mockRejectedValue(new Error('ENOTFOUND')) - expect((await resolvesToPublicAddress('https://relay.example', { lookup })).ok).toBe(false) - }) -}) - -describe('requireOrigin and requireDirector', () => { - it('returns the origin for an https target', () => { - expect(requireOrigin('https://relay.example/x', 'cell origin', 'usage')).toBe( - 'https://relay.example' - ) - }) -}) diff --git a/tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-oracle.test.mjs b/tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-oracle.test.mjs deleted file mode 100644 index a752c6f499d..00000000000 --- a/tests/tools/windows-pty-native-capability-smoke/packaged-node-pty-capability-oracle.test.mjs +++ /dev/null @@ -1,98 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { evaluatePackagedNodePtyCapability } from './packaged-node-pty-capability-oracle.mjs' - -const fixtureToken = 'a'.repeat(64) -const channel = `\\\\.\\pipe\\orca-pty-native-capability-${fixtureToken}` - -function observation(pid, role) { - return { pid, fixtureToken, role, channel } -} - -function closure(role) { - return { fixtureToken, role, channel } -} - -function passingEvidence() { - const shell = observation(4100, 'target-shell') - const launcherExited = observation(4101, 'target-launcher-exited') - const grandchild = observation(4102, 'target-grandchild') - const canary = observation(5100, 'canary-shell') - return { - patchedExports: ['assignCurrentProcessToJob', 'listJobProcessIds', 'terminateJob'], - fixtureToken, - channel, - target: { - terminalHandle: 'pty-job:7:4100', - shell, - launcherExited, - grandchild, - jobProcessIds: [shell.pid, grandchild.pid] - }, - canary: { - terminalHandle: 'pty-job:8:5100', - process: canary, - connectedAfterTargetClose: true, - jobProcessIdsAfterTargetClose: [canary.pid], - exit: { terminalHandle: 'pty-job:8:5100', exitCode: 1, signal: 0 }, - socketClosed: closure('canary-shell') - }, - close: { - method: 'terminate-job', - requestedHandle: 'pty-job:7:4100', - completedHandle: 'pty-job:7:4100', - targetExit: { terminalHandle: 'pty-job:7:4100', exitCode: 1, signal: 0 }, - targetShellClosed: closure('target-shell'), - targetGrandchildClosed: closure('target-grandchild') - } - } -} - -describe('packaged node-pty native capability oracle', () => { - it('accepts exact target teardown while the unrelated canary remains live', () => { - expect(evaluatePackagedNodePtyCapability(passingEvidence())).toEqual({ - pass: true, - failures: [] - }) - }) - - it.each([ - ['missing patched export', (evidence) => evidence.patchedExports.pop()], - ['launcher exit absent', (evidence) => delete evidence.target.launcherExited], - ['empty job membership', (evidence) => (evidence.target.jobProcessIds = [])], - [ - 'target shell outside membership', - (evidence) => (evidence.target.jobProcessIds = [evidence.target.grandchild.pid]) - ], - [ - 'launcher-surviving grandchild outside membership', - (evidence) => (evidence.target.jobProcessIds = [evidence.target.shell.pid]) - ], - ['target exit absent', (evidence) => delete evidence.close.targetExit], - ['canary connection loss', (evidence) => (evidence.canary.connectedAfterTargetClose = false)] - ])('rejects %s', (_name, mutate) => { - const evidence = passingEvidence() - mutate(evidence) - - expect(evaluatePackagedNodePtyCapability(evidence).pass).toBe(false) - }) - - it.each([ - ['guessable token', (evidence) => (evidence.fixtureToken = 'run-1')], - [ - 'grandchild from another channel', - (evidence) => (evidence.target.grandchild.channel = '\\\\.\\pipe\\other') - ], - ['wrong completed handle', (evidence) => (evidence.close.completedHandle = 'pty-job:9:9999')], - [ - 'launcher still in target job', - (evidence) => evidence.target.jobProcessIds.push(evidence.target.launcherExited.pid) - ], - ['canary outside its job', (evidence) => (evidence.canary.jobProcessIdsAfterTargetClose = [])], - ['canary teardown absent', (evidence) => delete evidence.canary.socketClosed] - ])('rejects scope violation: %s', (_name, mutate) => { - const evidence = passingEvidence() - mutate(evidence) - - expect(evaluatePackagedNodePtyCapability(evidence).pass).toBe(false) - }) -}) diff --git a/tests/tools/windows-pty-native-capability-smoke/run.test.mjs b/tests/tools/windows-pty-native-capability-smoke/run.test.mjs deleted file mode 100644 index 4d314330b37..00000000000 --- a/tests/tools/windows-pty-native-capability-smoke/run.test.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { formatProbeFailure } from './run.mjs' - -describe('packaged Windows native smoke runner boundary', () => { - it('keeps timeout evidence bounded and preserves both output channels', () => { - const failure = formatProbeFailure({ - code: null, - timedOut: true, - stdout: `old-${'x'.repeat(9_000)}-stdout-tail`, - stderr: 'stage=target-spawn:start' - }) - - expect(failure).toContain('code=null, timedOut=true') - expect(failure).not.toContain('old-') - expect(failure).toContain('stdout-tail') - expect(failure).toContain('stage=target-spawn:start') - }) -})